/*
Theme Name: Slap the Scissors
Description: Site theme for slapthescissors.com. A child of Twenty Twenty-Five (maintained by WordPress). Source: server-ops repo, themes/slapthescissors/.
Author: Terry Sergeant
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slapthescissors
*/

/* ---------- header band ---------- */
.sts-header { border-bottom: 1px solid #8fb4d6; }
.sts-header .wp-block-site-title a { text-decoration: none; }
.sts-header .wp-block-search__inside-wrapper { background: #fff; border: 4px solid rgba(255,255,255,.45); border-radius: 3px; }
.sts-header .wp-block-search { max-width: 100%; }
.sts-header .wp-block-search__inside-wrapper { max-width: 100%; box-sizing: border-box; padding: 2px; }
.sts-header .wp-block-search__input { border: 0; min-width: 0; padding: .35em .7em; }
.sts-header .wp-block-search__button { padding: .35em .8em; margin-left: 0; border-radius: 3px; }
.sts-header .wp-block-search__button svg { width: 1.2em; height: 1.2em; }
.sts-rss a { text-decoration: none; }
.sts-rss a::after {
	content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .45em;
	border-radius: 2px; background: #e8762c;
}

/* ---------- small labels (sidebar and home section headings) ---------- */
.sts-label { letter-spacing: .06em; text-transform: uppercase; }
.sts-sidebar ul { list-style: none; padding-left: 0; margin-top: .4em; }
.sts-sidebar li { margin: 0 0 .45em; }
.sts-sidebar a, .sts-termrow a { text-decoration: none; }
.sts-sidebar a:hover, .sts-termrow a:hover { text-decoration: underline; }

/* categories and archives as a flowing row on the home page */
.sts-termrow ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5em 2.2em; }

/* post titles in lists */
.wp-block-post-title a { text-decoration: none; }
.wp-block-post-title a:hover { text-decoration: underline; }

/* ---------- post content ---------- */
.wp-block-post-content h2 { margin-top: 1.6em; }
.wp-block-post-content img { height: auto; max-width: 100%; }
.wp-block-post-content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.wp-block-post-content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.wp-block-post-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-post-content .wp-caption { max-width: 100%; background: var(--wp--preset--color--accent-5); border: 1px solid var(--wp--preset--color--accent-6); padding: 6px; box-sizing: border-box; }
.wp-block-post-content .wp-caption-text { font-size: .8rem; margin: .3em 0 0; text-align: center; color: var(--wp--preset--color--accent-4); }

.wp-block-post-content blockquote {
	margin: 1.6em auto; padding: 1em 1.5em; max-width: 34em;
	background: var(--wp--preset--color--accent-2);
	border-left: 4px solid var(--wp--preset--color--accent-1);
	border-radius: 0 6px 6px 0; font-style: italic;
}
.wp-block-post-content blockquote p { margin: 0 0 .7em; }
.wp-block-post-content blockquote p:last-child { margin-bottom: 0; }
.wp-block-post-content blockquote ul, .wp-block-post-content blockquote ol { font-style: normal; margin: 0; }
.wp-block-post-content blockquote p.cite { font-style: normal; font-size: .85em; color: var(--wp--preset--color--accent-4); }

/* ---------- replacements for the old theme's shortcodes ---------- */
.sts-quote {
	margin: 1.4em 0; padding: .2em 0 .2em 1.2em;
	border-left: 4px solid var(--wp--preset--color--accent-1);
	font-style: italic; color: #444;
}
.sts-quote p { margin: 0; }
.sts-quote.boxed {
	border-left: 0; padding: 1em 1.2em 1em 3.2em; position: relative;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6); border-radius: 6px;
}
.sts-quote.boxed::before {
	content: "\201C"; position: absolute; left: .25em; top: .05em;
	font-family: Georgia, serif; font-size: 3.6em; line-height: 1; font-style: normal;
	color: var(--wp--preset--color--accent-1);
}
/* floated pull quotes repeat words from the text: side by side on wide screens, hidden on phones */
.sts-quote.left, .sts-quote.right { display: none; }
@media (min-width: 768px) {
	.sts-quote.left  { display: block; float: left;  width: 34%; margin: .3em 1.6em 1em 0; }
	.sts-quote.right { display: block; float: right; width: 34%; margin: .3em 0 1em 1.6em; }
}

.sts-box {
	margin: 1.4em 0; padding: .9em 1.2em; border-radius: 6px;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
}
.sts-box.alert { background: #fff6dd; border-color: #e6c66a; }
.sts-box.info, .sts-box.note { background: var(--wp--preset--color--accent-2); border-color: var(--wp--preset--color--accent-1); }
.sts-box.tick { background: #eaf6e6; border-color: #9cc98d; }

.sts-list {
	margin: 1.4em auto; padding: 1em 1.4em; max-width: 34em;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6); border-radius: 6px;
}
.sts-list ul { margin: 0; padding-left: 1.3em; }
.sts-list.arrow ul { list-style: none; padding-left: 0; }
.sts-list.arrow li { padding-left: 1.4em; position: relative; margin: .25em 0; }
.sts-list.arrow li::before { content: "\2192"; position: absolute; left: 0; color: var(--wp--preset--color--accent-3); }

.sts-hr { border: 0; border-top: 1px solid var(--wp--preset--color--accent-6); margin: 1.8em 0; clear: both; }

.sts-ilink { display: block; margin: .6em 0; }
.sts-ilink a { font-weight: 500; }
.sts-ilink a::before { content: "\2192\00a0"; }

.sts-cols { display: grid; gap: 0 2em; grid-template-columns: 1fr; margin: 1.2em 0; }
@media (min-width: 600px) { .sts-cols { grid-template-columns: 1fr 1fr; } }
.sts-col > :first-child { margin-top: 0; }
.sts-clear { clear: both; }

/* ---------- comments ---------- */
.wp-block-comment-template { list-style: none; padding-left: 0; }
.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]),
.wp-block-post-comments-form textarea { border: 1px solid #b9c4cf; border-radius: 3px; }
