/*
Theme Name: Kidologist 2026
Theme URI: https://kidologist.com
Author: BubbleUP Marketing
Author URI: https://bubbleup.ca
Description: The Kidologist hub for Karl Bastian and the Kidology family of sites. Articles, permanent pages and easy links back to Kidology.org, KidsMinistry.ai and PastorKarl.com.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kidologist
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--navy: #14305c;
	--navy-deep: #0c1f3f;
	--ink: #1b2436;
	--muted: #5a6477;
	--line: #e2e8f1;
	--soft: #eef3fb;
	--red: #e3262f;
	--blue: #1f6fe0;
	--green: #2e9e44;
	--yellow: #ffc72c;
	--orange: #f07c1c;

	--font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--marker: "Permanent Marker", "Comic Sans MS", cursive;

	--wide: 1200px;
	--content: 860px;
	--gutter: 20px;
	--radius: 12px;
	--shadow: 0 2px 6px rgba(20, 48, 92, .06), 0 8px 24px rgba(20, 48, 92, .06);
	--shadow-hover: 0 4px 10px rgba(20, 48, 92, .08), 0 16px 40px rgba(20, 48, 92, .12);

	--swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10C55 3 130 2 197 6' stroke='%23ffc72c' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe { max-width: 100%; height: auto; }

a { color: var(--blue); }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	color: var(--navy);
	font-weight: 700;
	line-height: 1.2;
	margin: 1.6em 0 .5em;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wide) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.marker {
	font-family: var(--marker);
	font-weight: 400;
	letter-spacing: .02em;
	line-height: 1.25;
}

/* Yellow brush underline for marker text */
.swoosh { position: relative; padding-bottom: 14px; }
.swoosh::after {
	content: "";
	position: absolute;
	left: 4%;
	bottom: 0;
	width: 80%;
	height: 12px;
	background: var(--swoosh) no-repeat center / 100% 100%;
}

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 10px 16px;
	background: #fff;
	color: var(--navy);
	font-weight: 600;
	border-radius: 6px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--yellow);
	color: var(--navy-deep);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 0 rgba(0, 0, 0, .15);
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, .15); }

/* ==========================================================================
   Return To bar
   ========================================================================== */

.sister-bar {
	background: var(--navy);
	padding: 10px 0;
}
.sister-bar .wrap {
	display: flex;
	align-items: center;
	gap: 18px;
}
.sister-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}
.sister-label .icon { width: 22px; height: 22px; }
.sister-list {
	display: flex;
	flex: 1;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sister-list li { flex: 1; max-width: 250px; }
.sister {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 8px 16px;
	border: 2px solid rgba(255, 255, 255, .3);
	border-radius: 10px;
	color: #fff;
	text-decoration: none;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
	transition: transform .15s ease, filter .15s ease;
}
.sister:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); }
.sister .icon { width: 26px; height: 26px; }
.sister-1 { background: linear-gradient(180deg, #f0373f, #c91c25); }
.sister-2 { background: linear-gradient(180deg, #2f80f0, #1659bf); }
.sister-2 .icon { color: var(--yellow); }
.sister-3 { background: linear-gradient(180deg, #3db552, #238338); }
.sister-text { display: flex; flex-direction: column; line-height: 1.2; }
.sister-text strong { font-size: 16px; font-weight: 600; }
.sister-text small { font-size: 11px; opacity: .92; }

/* ==========================================================================
   Header banner
   ========================================================================== */

.site-banner { background: #fff; border-bottom: 1px solid var(--line); }
.site-banner.is-image { line-height: 0; }
.banner-image img { display: block; width: 100%; height: auto; }

.banner-inner {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 28px;
	min-height: 180px;
}
.brand { padding: 20px 0; }
.brand .custom-logo { display: block; width: auto; max-height: 140px; }
.brand-text { display: flex; flex-direction: column; text-decoration: none; }
.brand-name {
	color: var(--red);
	font-size: 44px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
	text-shadow: 3px 3px 0 var(--yellow);
}
.brand-desc { margin-top: 8px; color: var(--navy); font-family: var(--marker); font-size: 22px; }

.banner-tagline {
	justify-self: center;
	margin: 0;
	color: var(--navy);
	font-size: 22px;
	text-transform: uppercase;
}
.banner-photo { align-self: end; line-height: 0; }
.banner-photo img { display: block; width: auto; max-height: 190px; }
.banner-note {
	margin: 0;
	color: var(--navy);
	font-size: 21px;
	transform: rotate(-7deg);
}

/* ==========================================================================
   Kidologist navigation
   ========================================================================== */

.main-nav { background: var(--soft); border-bottom: 1px solid var(--line); }
.main-nav-inner { display: flex; align-items: center; gap: 24px; }
.main-nav .menu {
	display: flex;
	flex: 1;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.main-nav .menu a {
	position: relative;
	display: block;
	padding: 18px 16px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.main-nav .menu a:hover { color: var(--red); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { font-weight: 700; }
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 8px;
	height: 3px;
	border-radius: 3px;
	background: var(--red);
}

/* Mobile menu button (shown under 720px once the script runs) */
.menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--navy);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s ease, background-color .2s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.is-open .menu-toggle-bars { background-color: transparent; }
.is-open .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.search-form {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 260px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
}
.search-form input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 14px;
	color: var(--ink);
}
.search-form input:focus { outline: none; }
.search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 111, 224, .15); }
.search-form button {
	display: grid;
	place-items: center;
	padding: 0 12px;
	align-self: stretch;
	border: 0;
	background: transparent;
	color: var(--navy);
	cursor: pointer;
}

/* ==========================================================================
   Home promo banner
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(ellipse at 80% 20%, #2a5aa0 0%, transparent 55%), linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
	color: #fff;
}
.hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(12, 31, 63, .92) 0%, rgba(12, 31, 63, .7) 40%, rgba(12, 31, 63, 0) 72%);
}
.hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 340px;
	padding-top: 48px;
	padding-bottom: 48px;
}
.hero-copy { max-width: 560px; }
.hero-title {
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(32px, 4.4vw, 50px);
	line-height: 1.12;
	text-transform: uppercase;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
.hero-text { margin: 0 0 26px; font-size: 17px; line-height: 1.6; opacity: .95; }
.hero-note {
	align-self: flex-start;
	margin: 0;
	color: #fff;
	font-size: 22px;
	text-align: right;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
	transform: rotate(-7deg);
}

/* ==========================================================================
   Latest posts + cards
   ========================================================================== */

.latest { padding: 48px 0 56px; }
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}
.section-head h2 {
	margin: 0;
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 800;
	letter-spacing: -.01em;
}
.section-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.card-grid { display: grid; gap: 24px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-1 { grid-template-columns: 1fr; max-width: 420px; }

.card {
	--tone: var(--blue);
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tone-0 { --tone: var(--red); }
.tone-1 { --tone: var(--blue); }
.tone-2 { --tone: var(--green); }
.tone-3 { --tone: var(--orange); }

.card-media { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	padding: 20px;
	background: linear-gradient(135deg, var(--tone), var(--navy));
	color: #fff;
	font-family: var(--marker);
	font-size: 26px;
	text-align: center;
	line-height: 1.2;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-cat {
	margin: 0 0 4px;
	color: var(--tone);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.card-title { margin: 0 0 8px; font-size: 19px; line-height: 1.28; }
.card-title a { color: var(--navy-deep); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.card:hover .card-title a { color: var(--blue); }
.card-excerpt {
	display: -webkit-box;
	margin: 0 0 14px;
	color: var(--muted);
	font-size: 14.5px;
	line-height: 1.55;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card-date {
	margin-top: auto;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Pages and single posts: related posts sit on a soft band */
.page-article + .latest,
.single-article + .latest,
.archive + .latest { background: var(--soft); border-top: 1px solid var(--line); }

/* ==========================================================================
   Pages, posts, archives
   ========================================================================== */

.breadcrumbs { padding-top: 18px; font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "\203A"; margin-left: 6px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--muted); }

.page-title {
	margin: 18px 0 10px;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	letter-spacing: -.01em;
}
.page-article { padding-bottom: 40px; }

.single-article { padding: 40px 0 24px; }
.entry-header { max-width: calc(var(--content) + var(--gutter) * 2); text-align: center; }
.entry-cat { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.entry-cat a { color: var(--tone); text-decoration: none; }
.entry-title { margin: 0 0 12px; font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.015em; }
.entry-meta { display: flex; justify-content: center; gap: 16px; margin: 0; color: var(--muted); font-size: 14px; }
.entry-meta span::before { content: "\2022"; margin-right: 16px; }
.entry-hero { max-width: calc(1000px + var(--gutter) * 2); margin: 28px auto 8px; }
.entry-hero img { display: block; width: 100%; border-radius: var(--radius); }

.entry-footer { max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.entry-tags a {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--soft);
	color: var(--navy);
	font-size: 13px;
	text-decoration: none;
}
.entry-tags a:hover { background: var(--navy); color: #fff; }

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 24px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.post-navigation a { display: block; color: var(--navy); font-weight: 600; text-decoration: none; line-height: 1.35; }
.post-navigation a:hover { color: var(--blue); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

.archive { padding-bottom: 48px; }
.archive-head { padding: 28px 0 22px; }
.archive-desc { max-width: var(--content); color: var(--muted); }
.empty-state { padding: 20px 0 40px; }
.empty-state .search-form { max-width: 420px; }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
}
.page-numbers.current,
.page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-numbers.dots { border: 0; background: none; color: var(--muted); }

/* ==========================================================================
   Entry content (blocks + classic posts)
   ========================================================================== */

.entry-content { padding: 2rem var(--gutter); font-size: 17px; line-height: 1.75; }
.entry-content > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--wide); }
.entry-content > .alignfull { max-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.entry-content::after { content: ""; display: table; clear: both; }
.home-content { padding-bottom: 48px; }

.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 23px; }
.entry-content h4 { font-size: 19px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p,
.entry-content ul,
.entry-content ol { margin-top: 0; margin-bottom: 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content img { border-radius: 8px; margin-bottom: 2rem; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em auto; }

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin: 1.6em auto;
	padding: 20px 24px;
	border-left: 5px solid var(--yellow);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--soft);
	font-size: 18px;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; font-style: normal; }

.entry-content .wp-block-button__link {
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { background: var(--green); }
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color) { color: #fff; }

.entry-content .wp-block-image figcaption,
.wp-caption-text { color: var(--muted); font-size: 14px; text-align: center; }

/* Classic editor alignment (older posts) */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content > .alignleft { margin-left: max(0px, calc((100% - var(--content)) / 2)); }
.entry-content > .alignright { margin-right: max(0px, calc((100% - var(--content)) / 2)); }
.wp-caption { max-width: 100%; }

/* Editor palette */
.has-navy-color { color: var(--navy); }
.has-red-color { color: var(--red); }
.has-blue-color { color: var(--blue); }
.has-green-color { color: var(--green); }
.has-yellow-color { color: var(--yellow); }
.has-soft-color { color: var(--soft); }
.has-white-color { color: #fff; }
.has-navy-background-color { background-color: var(--navy); }
.has-red-background-color { background-color: var(--red); }
.has-blue-background-color { background-color: var(--blue); }
.has-green-background-color { background-color: var(--green); }
.has-yellow-background-color { background-color: var(--yellow); }
.has-soft-background-color { background-color: var(--soft); }
.has-white-background-color { background-color: #fff; }

/* ==========================================================================
   Comments
   ========================================================================== */

.comments { padding: 28px 0; }
.comment-list { margin: 0 0 28px; padding: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: 12px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font: inherit;
}
.comment-form .submit {
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================================
   Closing band + footer
   ========================================================================== */

.closing-band {
	position: relative;
	padding: 40px 0 48px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V70l90-40 70 30 110-55 120 60 80-30 130 50 100-45 120 55 90-35 110 45 90-30 90 25v70z' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E") no-repeat bottom / 100% 90px,
		linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
	color: #fff;
}
.closing-inner {
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	align-items: center;
	gap: 32px;
}
.closing-left { margin: 0; font-size: 22px; transform: rotate(-7deg); }
.closing-verse { margin: 0; text-align: center; }
.closing-verse p { max-width: 460px; margin: 0 auto 8px; font-size: 15.5px; line-height: 1.6; }
.closing-verse cite { position: relative; display: inline-block; padding-bottom: 8px; color: #9cc3ff; font-style: normal; }
.closing-verse cite::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	background: var(--swoosh) no-repeat center / 100% 100%;
}
.closing-tag {
	justify-self: end;
	margin: 0;
	padding: 14px 22px;
	border-radius: 6px;
	background: var(--red);
	color: #fff;
	font-size: 22px;
	text-align: center;
	box-shadow: 0 6px 0 rgba(0, 0, 0, .25);
	transform: rotate(-5deg);
}

.site-footer { padding: 18px 0; background: #eef1f6; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer-family,
.footer-nav .menu { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.footer-family { font-weight: 600; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
	.banner-note { display: none; }
	.banner-inner { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 900px) {
	.card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
	.hero-note { display: none; }
	.banner-tagline { font-size: 18px; }
	.sister-text small { display: none; }
	.closing-inner { grid-template-columns: 1fr; text-align: center; }
	.closing-left { justify-self: center; transform: rotate(-4deg); }
	.closing-tag { justify-self: center; }
}

@media (max-width: 720px) {
	:root { --gutter: 16px; }
	.sister-label { display: none; }
	.sister-list { gap: 8px; }
	.sister { justify-content: center; gap: 6px; padding: 8px; }
	.sister .icon { display: none; }
	.sister-text strong { font-size: 13px; }

	.banner-inner { grid-template-columns: 1fr auto; min-height: 0; gap: 12px; }
	.banner-tagline { display: none; }
	.brand .custom-logo { max-height: 90px; }
	.brand-name { font-size: 32px; }
	.banner-photo img { max-height: 120px; }

	.main-nav-inner { flex-wrap: wrap; gap: 0; padding-bottom: 12px; }
	.main-nav .menu { flex-basis: 100%; }
	.main-nav .menu a { padding: 14px 12px; }
	.search-form { max-width: none; }

	.main-nav.has-toggle .main-nav-inner { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
	.main-nav.has-toggle .menu-toggle { display: inline-flex; }
	.main-nav.has-toggle .search-form { flex: 1; }
	.main-nav.has-toggle .menu {
		display: none;
		order: 3;
		flex-direction: column;
		gap: 0;
		overflow: visible;
	}
	.main-nav.has-toggle.is-open .menu { display: flex; }
	.main-nav.has-toggle .menu a { padding: 13px 4px; border-top: 1px solid var(--line); }
	.main-nav.has-toggle .current-menu-item > a::after,
	.main-nav.has-toggle .current_page_item > a::after { left: 4px; right: auto; width: 28px; bottom: 6px; }

	.hero-inner { min-height: 0; padding-top: 36px; padding-bottom: 40px; }
	.hero.has-image::before { background: rgba(12, 31, 63, .78); }

	.section-head { flex-direction: column; gap: 6px; }
	.card-grid.cols-3,
	.card-grid.cols-2 { grid-template-columns: 1fr; }

	.entry-content { font-size: 16.5px; }
	.alignleft,
	.alignright { float: none; margin: 1em auto; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition: none !important; scroll-behavior: auto !important; }
}
