/* ==========================================================================
   StudyXcel — main stylesheet
   Mobile-first. Tokens → base → layout → components → templates → utilities
   ========================================================================== */

@font-face {
	font-family: "Lexend";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/lexend-latin.woff2") format("woff2-variations"), url("../fonts/lexend-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-display: swap;
	font-weight: 400 700;
	src: url("../fonts/caveat-latin.woff2") format("woff2-variations"), url("../fonts/caveat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */
:root {
	/* Study notebook palette: paper, ink navy, chalkboard green, highlighter yellow, pencil blue. */
	--bg: #faf9f4;
	--bg-soft: #f1efe6;
	--surface: #ffffff;
	--surface-2: #f6f4ec;
	--border: #dcd8ca;
	--border-strong: #1b2a4a;
	--text: #2b3550;
	--muted: #5a6378;
	--navy: #1b2a4a;       /* headings: ink navy */
	--navy-2: #111c33;
	--board: #1f3d33;      /* chalkboard */
	--board-2: #17302a;
	--chalk: #f3f1e8;
	--hl: #ffe14d;         /* highlighter */
	--margin-red: #e5484d;
	--grid: rgba(35,72,168,.075);
	--accent: #1f7a55;
	--green: #1f7a55;
	--green-dark: #1f7a55;
	--green-ink: #2348a8;  /* link color: pencil blue */
	--on-accent: #ffffff;
	--danger: #b3261e;
	--warn-ink: #5e4700;
	--glow: rgba(35,72,168,.18);

	--tint-green: #e3f1e8;  --ink-green: #17603f;
	--tint-blue: #e2eafb;   --ink-blue: #1d3f93;
	--tint-orange: #fde9d6; --ink-orange: #8f400a;
	--tint-teal: #ddf1f0;   --ink-teal: #12605b;
	--tint-purple: #ece4fa; --ink-purple: #4b2f8f;
	--tint-red: #fbe3e4;    --ink-red: #9b1f2a;
	--tint-yellow: #fff4b8; --ink-yellow: #5e4700;
	--tint-slate: #eef1f6;  --ink-slate: #36425e;
	--gold: #ffe14d;

	--font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--display: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--serif: var(--display);
	--radius-sm: 8px;
	--radius: 10px;
	--radius-lg: 14px;
	--shadow: 0 1px 0 rgba(27,42,74,.06), 0 6px 16px rgba(27,42,74,.06);
	--shadow-hover: 0 2px 0 rgba(27,42,74,.08), 0 16px 32px rgba(27,42,74,.12);
	--wrap: 1240px;
	--gutter: 16px;
	--header-h: 68px;
	--focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--green-ink);
}
[hidden] { display: none !important; }
@media (min-width: 768px) { :root { --gutter: 28px; } }


/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6 { color: var(--navy); font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.3rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
::selection { background: var(--hl); color: var(--navy); }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: 12px 18px;
	background: var(--navy); color: #fff; border-radius: var(--radius-sm); text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 56px; }
.section--soft { background: var(--bg-soft); }
@media (min-width: 1024px) { .section { padding-block: 80px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink); margin: 0 0 12px; }

/* ---------- 4. Buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: 10px 20px;
	font-weight: 650; font-size: .95rem; line-height: 1.2;
	border-radius: var(--radius-sm); border: 1px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn--primary { background: var(--green-dark); color: #fff; } /* #0B6E65: AA contrast with white text */
.btn--primary:hover { background: var(--green-ink); color: #fff; }
.btn--outline { background: var(--surface); color: var(--navy); border-color: var(--border); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn svg { width: 1em; height: 1em; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; color: var(--green-ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 5. Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.96);
	border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(8px); } }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--navy); flex: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__accent { color: var(--green); }
.brand:hover { color: var(--navy); }
.custom-logo { max-height: 40px; width: auto; }

.primary-nav { display: none; margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.primary-nav a {
	display: block; padding: 8px 11px; border-radius: var(--radius-sm);
	color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 550; white-space: nowrap;
}
.primary-nav a:hover { background: var(--bg-soft); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current-post-ancestor > a, .primary-nav .current-category-ancestor > a { color: var(--green-ink); }
.primary-nav .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--navy); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.header-cta { display: none; }
@media (min-width: 600px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
	.primary-nav { display: block; }
	.header-actions { margin-left: 8px; }
	.menu-toggle { display: none; }
}

/* Mobile drawer */
.mobile-nav[hidden] { display: none; }
.mobile-nav {
	position: fixed; inset: 0; z-index: 100; background: rgba(12, 34, 56, .45);
}
.mobile-nav__panel {
	position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 360px);
	background: var(--surface); padding: 16px 20px 32px; overflow-y: auto;
	display: flex; flex-direction: column; gap: 8px;
}
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--navy); font-weight: 600; }
.mobile-nav .sub-menu a { padding-left: 18px; font-weight: 500; }
.mobile-nav .btn { margin-top: 16px; }
body.nav-open { overflow: hidden; }

/* Search overlay */
.search-overlay[hidden] { display: none; }
.search-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(12,34,56,.55); padding: 10vh var(--gutter) 0; }
.search-overlay__box { max-width: 680px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-hover); }
.search-overlay__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.search-overlay__head p { margin: 0; font-weight: 700; color: var(--navy); }
.search-overlay__hints { margin: 14px 0 0; font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-overlay__hints a { padding: 4px 10px; background: var(--bg-soft); border-radius: 999px; text-decoration: none; color: var(--navy); }

/* Search form */
.search-form { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow); }
.search-form:focus-within { border-color: var(--green); }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font-size: 1rem; background: transparent; }
.search-form input[type="search"]:focus { outline: none; }
.search-form button { flex: none; }
.search-form button.btn { min-height: 44px; padding-inline: 14px; }
.search-form button.btn svg { width: 20px; height: 20px; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #eaf2f8 0%, #f4f7fa 100%); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero__inner { display: grid; gap: 36px; padding-block: 48px 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; max-width: 14ch; }
.hero__lead { font-size: 1.075rem; color: var(--text); max-width: 54ch; margin-bottom: 24px; }
.hero .search-form { max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; font-weight: 550; color: var(--navy); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.hero__media { position: relative; }
.hero__media > img, .hero__media > svg { width: 100%; height: auto; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) {
	.hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-block: 72px 80px; }
}

/* ---------- 7. Category cards ---------- */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-card { min-height: 0; }
.cat-card {
	position: relative; display: flex; flex-direction: column; gap: 8px;
	padding: 22px 20px 20px; border-radius: var(--radius); border: 1px solid transparent;
	text-decoration: none; color: var(--text); background: var(--tint, var(--bg-soft));
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--text); border-color: rgba(16,43,70,.08); }
.cat-card__icon { width: 44px; height: 44px; color: var(--ink, var(--navy)); margin-bottom: 6px; }
.cat-card h3 { margin: 0; font-size: 1.05rem; }
.cat-card p { margin: 0; font-size: .9rem; color: var(--text); flex: 1; }
.cat-card .cat-card__go { margin-top: 10px; color: var(--navy); }
.cat-card .cat-card__go svg { width: 18px; height: 18px; }
.cat-card .cat-card__count { font-size: .78rem; font-weight: 600; color: var(--muted); }
.tone-green  { --tint: var(--tint-green); --ink: var(--ink-green); --tab: #1f7a55; }
.tone-blue   { --tint: var(--tint-blue); --ink: var(--ink-blue); --tab: #2348a8; }
.tone-orange { --tint: var(--tint-orange); --ink: var(--ink-orange); --tab: #c2570f; }
.tone-teal   { --tint: var(--tint-teal); --ink: var(--ink-teal); --tab: #16706b; }
.tone-purple { --tint: var(--tint-purple); --ink: var(--ink-purple); --tab: #5b3ba8; }
.tone-red    { --tint: var(--tint-red); --ink: var(--ink-red); --tab: #c0303b; }
.tone-yellow { --tint: var(--tint-yellow); --ink: var(--ink-yellow); --tab: #b58900; }
.tone-slate  { --tint: var(--tint-slate); --ink: var(--ink-slate); --tab: #36425e; }

/* ---------- 8. Post cards ---------- */
.post-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.post-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
	position: relative; display: flex; flex-direction: column; background: var(--surface);
	border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
	transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card__media { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card__cat { font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ink, var(--green-ink)); text-decoration: none; position: relative; z-index: 2; align-self: flex-start; }
.card__title { font-size: 1.05rem; margin: 0; line-height: 1.35; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole-card click target */
.card__title a:focus-visible { box-shadow: none; }
.card:focus-within { box-shadow: var(--focus); }
.card__excerpt { font-size: .9rem; color: var(--muted); margin: 0; flex: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); padding-top: 6px; }
.card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.card__meta svg { width: 15px; height: 15px; }
.badge-draft { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--tint-yellow); color: var(--ink-yellow); padding: 2px 8px; border-radius: 999px; }

/* Featured (horizontal) card */
.card--feature { display: grid; }
@media (min-width: 768px) {
	.card--feature { grid-template-columns: 1.15fr 1fr; }
	.card--feature .card__media { aspect-ratio: auto; min-height: 100%; }
	.card--feature .card__body { padding: 32px; justify-content: center; }
	.card--feature .card__title { font-size: 1.6rem; }
	.card--feature .card__excerpt { font-size: 1rem; flex: 0; }
}

/* Compact list item (sidebar/related) */
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; position: relative; }
.mini img { width: 72px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-soft); }
.mini a { font-size: .9rem; font-weight: 600; color: var(--navy); text-decoration: none; line-height: 1.35; }
.mini a::after { content: ""; position: absolute; inset: 0; }
.mini a:hover { color: var(--green-ink); }
.mini small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }

/* ---------- 9. Start Here steps ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.step__num { width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: .95rem; }
.step h3 { margin: 6px 0 0; font-size: 1.05rem; }
.step p { margin: 0; font-size: .92rem; color: var(--muted); flex: 1; }
.step .link-arrow { font-size: .9rem; margin-top: 6px; }

/* ---------- 10. Loan calculator ---------- */
.calc { display: grid; gap: 28px; }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; } }
.calc__intro p { color: var(--muted); }
.entry-content .calc, .sidebar .calc { grid-template-columns: 1fr; }
.entry-content .calc__intro h2 { margin-top: 0; }
.calc__note { font-size: .85rem; background: var(--tint-yellow); color: var(--warn-ink); padding: 12px 14px; border-radius: var(--radius-sm); }
.calc__form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.calc__fields { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .calc__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.calc__input input { width: 100%; }
.calc__field { display: grid; gap: 6px; }
.calc__field label { font-weight: 650; color: var(--navy); font-size: .9rem; }
.calc__input { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.calc__input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--glow); }
.calc__input span { padding: 0 10px; color: var(--muted); font-weight: 600; }
.calc__input input { flex: 1; min-width: 0; border: 0; min-height: 46px; padding: 10px 12px; background: transparent; font-variant-numeric: tabular-nums; }
.calc__input span + input { padding-left: 0; }
.calc__input input:focus { outline: none; }
.calc__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.calc__error { color: var(--danger); font-size: .9rem; margin: 0; }
.calc__results { margin-top: 22px; }
.calc__results[hidden] { display: none; }
.calc__stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.calc__stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.calc__stat small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.calc__stat strong { display: block; color: var(--navy); font-size: 1.45rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc__stat--main { background: var(--tint-green); border-color: var(--border); }
.calc__split { margin: 16px 0 6px; height: 12px; border-radius: 999px; background: var(--gold); overflow: hidden; display: flex; }
.calc__split i { display: block; height: 100%; background: var(--navy); }
.calc__legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin: 0; }
.calc__legend b { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.calc details { margin-top: 14px; }
.calc summary { cursor: pointer; font-weight: 650; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.calc .table-wrap { margin: 8px 0 0; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; max-height: 340px; }
.calc table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.calc th, .calc td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--border); }
.calc th:first-child, .calc td:first-child { text-align: left; }
.calc thead th { position: sticky; top: 0; background: var(--bg-soft); color: var(--navy); }
.calc__fine { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* Trust / YMYL elements */
.fin-disclaimer { margin-top: 32px; padding: 16px 18px; border: 1px solid var(--border); border-left: 3px solid var(--navy); border-radius: var(--radius-sm); background: var(--bg-soft); font-size: .88rem; color: var(--text); }
.fin-disclaimer strong { color: var(--navy); }
.fin-disclaimer p { margin: 0; }
.reviewed-by { display: inline-flex; align-items: center; gap: 6px; }
.reviewed-by svg { width: 16px; height: 16px; color: var(--green-ink); }
.stale-note { margin-bottom: 22px; }

/* ---------- 11. Resources ---------- */
.resource-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.resource { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); position: relative; }
.resource:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: var(--text); }
.resource__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--tint, var(--tint-green)); color: var(--ink, var(--green-ink)); display: grid; place-items: center; }
.resource__icon svg { width: 22px; height: 22px; }
.resource strong { display: block; color: var(--navy); margin-bottom: 2px; }
.resource span { font-size: .88rem; color: var(--muted); }

/* ---------- 12. Newsletter ---------- */
.newsletter { background: var(--tint-blue); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 22px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .newsletter { grid-template-columns: auto 1.2fr 1fr; padding: 36px 40px; gap: 32px; } }
.newsletter__art { width: 72px; height: 72px; color: var(--green); }
.newsletter h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 6px; }
.newsletter p { margin: 0; color: var(--text); }
.nl-form { display: grid; gap: 8px; }
.nl-form__row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-form input[type="email"] { flex: 1 1 200px; min-width: 0; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.nl-form input[type="email"]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--glow); }
.nl-form input[aria-invalid="true"] { border-color: var(--danger); }
.nl-form .consent { font-size: .78rem; color: var(--muted); line-height: 1.5; margin: 0; }
.nl-form .consent a, .site-footer .nl-form .consent a { text-decoration: underline; }
.form-msg { font-size: .88rem; margin: 0; min-height: 1.2em; }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-info { color: var(--navy); }
.form-msg.is-success { color: var(--green-ink); }
.sx-field, .hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--navy); color: #c8d4df; margin-top: 0; }
.site-footer a { color: #e6edf3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; gap: 36px; padding-block: 56px 40px; }
@media (min-width: 700px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.3fr .8fr .8fr 1.3fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand__accent { color: #f2a7bf; }
.footer-about p { margin: 12px 0 18px; font-size: .92rem; max-width: 34ch; }
.footer-col h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.social { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--green); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.site-footer .nl-form input[type="email"] { border-color: transparent; }
.site-footer .consent, .site-footer .form-msg.is-info { color: #aebdcb; }
.site-footer .form-msg.is-error { color: #ffb4a8; }
.site-footer .form-msg.is-success { color: var(--border); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- 14. Breadcrumbs ---------- */
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; color: #a5b2bf; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--navy); }

/* ---------- 15. Category hub ---------- */
.hub-hero { background: var(--tint, var(--bg-soft)); border-bottom: 1px solid var(--border); padding-block: 32px 40px; }
.hub-hero__inner { display: grid; gap: 20px; }
@media (min-width: 900px) { .hub-hero__inner { grid-template-columns: 1fr auto; align-items: end; } }
.hub-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 12px; }
.hub-hero__desc { max-width: 68ch; font-size: 1.05rem; }
.hub-hero__desc p:last-child { margin-bottom: 0; }
.hub-hero__icon { width: 84px; height: 84px; color: var(--ink, var(--navy)); display: none; }
@media (min-width: 900px) { .hub-hero__icon { display: block; } }
.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; padding: 0; }
.pill-nav a { display: inline-block; padding: 7px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--navy); font-size: .85rem; font-weight: 600; }
.pill-nav a:hover { border-color: var(--navy); }
.hub-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .hub-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; } }
.hub-block + .hub-block { margin-top: 48px; }
.hub-block h2 { font-size: 1.4rem; }
.hub-block .cat-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
@media (max-width: 599px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .cat-card { padding: 16px 14px; } .cat-card p { font-size: .84rem; } }

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

/* ---------- 16. Article ---------- */
.article-layout { display: grid; gap: 48px; padding-block: 28px 64px; }
.article-layout > *, .hub-layout > * { min-width: 0; }
@media (min-width: 1100px) {
	.article-layout { grid-template-columns: minmax(0, 740px) 300px; justify-content: space-between; gap: 56px; }
}
.article-header { margin-bottom: 24px; }
.article-header .card__cat { margin-bottom: 10px; display: inline-block; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.article-excerpt { font-size: 1.12rem; color: var(--text); margin-bottom: 18px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .85rem; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; }
.article-meta img.avatar { width: 28px; height: 28px; border-radius: 50%; }
.article-meta a { color: var(--navy); font-weight: 600; text-decoration: none; }
.share { display: flex; gap: 6px; margin-left: auto; }
.share a, .share button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--navy); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--navy); }
.share svg { width: 16px; height: 16px; }
.article-figure { margin: 0 0 28px; }
.article-figure img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16/9; object-fit: cover; }
.article-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* TOC (in-content, mobile) */
.toc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 28px; }
.toc summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { width: 18px; height: 18px; transition: transform .15s; }
.toc[open] summary svg { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 0 18px 16px 38px; font-size: .9rem; }
.toc li { margin: 6px 0; }
.toc li ol { padding: 0 0 0 18px; list-style: lower-alpha; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--green-ink); text-decoration: underline; }
.toc--inline { display: block; }
@media (min-width: 1100px) { .toc--inline { display: none; } }

/* Entry content typography */
.entry-content { font-size: 1.075rem; line-height: 1.75; }
.entry-content > * { margin-top: 0; }
.entry-content p:empty { display: none; }
.entry-content h2 { margin: 2.2em 0 .6em; font-size: clamp(1.45rem, 2.4vw, 1.75rem); }
.entry-content h3 { margin: 1.8em 0 .5em; }
.entry-content h4 { margin: 1.5em 0 .5em; font-size: 1.1rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.3em; }
.entry-content li { margin: .35em 0; }
.entry-content ul.is-style-checks, .entry-content ul.checklist { list-style: none; padding-left: 0; }
.entry-content ul.checklist li { position: relative; padding-left: 30px; }
.entry-content ul.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: left; }
.entry-content blockquote { margin: 1.8em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); color: var(--navy); font-size: 1.1rem; }
.entry-content a { font-weight: 550; }
.entry-content code { background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.entry-content .wp-block-table, .table-wrap { overflow-x: auto; margin: 1.8em 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; min-width: 520px; }
.entry-content th, .entry-content td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.entry-content thead th { background: var(--bg-soft); color: var(--navy); font-weight: 700; white-space: nowrap; }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table table { border: 0; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { border-left: 0; border-right: 0; }

/* Callouts (editorial notes, tips, warnings) */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px 18px; margin: 1.8em 0; border-radius: var(--radius); background: var(--tint-green); border: 1px solid var(--border); font-size: .98rem; line-height: 1.6; }
.callout svg { width: 22px; height: 22px; color: var(--green-ink); margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout__title { font-weight: 750; color: var(--navy); display: block; margin-bottom: 2px; }
.callout--note { background: var(--tint-blue); border-color: var(--border); }
.callout--note svg { color: var(--ink-blue); }
.callout--warning { background: var(--tint-yellow); border-color: var(--border); }
.callout--warning svg { color: var(--ink-yellow); }

/* Numbered steps in content */
.entry-content ol.steps-list { list-style: none; counter-reset: s; padding: 0; }
.entry-content ol.steps-list > li { counter-increment: s; position: relative; padding: 0 0 0 48px; margin: 0 0 22px; }
.entry-content ol.steps-list > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; line-height: 1; }
.entry-content ol.steps-list > li strong:first-child { color: var(--navy); }

/* Pros/cons */
.proscons { display: grid; gap: 14px; margin: 1.8em 0; }
@media (min-width: 640px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons > div { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.proscons__title { color: var(--navy); font-weight: 750; margin: 0 0 8px !important; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.proscons ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.proscons li { padding-left: 22px; position: relative; }
.proscons .pros { background: var(--surface-2); }
.proscons .cons { background: var(--surface-2); }
.proscons .pros li::before { content: "+"; position: absolute; left: 2px; font-weight: 800; color: var(--green-ink); }
.proscons .cons li::before { content: "–"; position: absolute; left: 2px; font-weight: 800; color: var(--danger); }

/* Idea card list (in-content) */
.idea { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; background: var(--surface); }
.idea h4 { margin: 0 0 6px !important; display: flex; gap: 10px; align-items: baseline; font-size: 1.15rem; }
.idea h4 .idea__n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-dark); color: #fff; font-size: .82rem; display: inline-grid; place-items: center; transform: translateY(-2px); }
.idea p { margin: 0 0 .7em; font-size: 1rem; }
.idea__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.idea__facts li { margin: 0 !important; }
.idea__facts strong { color: var(--navy); font-weight: 650; }

/* Affiliate CTA */
.aff-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 1.8em 0; background: var(--surface); box-shadow: var(--shadow); }
.aff-box__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.aff-box__name { margin: 0 !important; font-size: 1.1rem; font-weight: 750; color: var(--navy); }
.aff-box p { margin: 8px 0 12px; font-size: .95rem; }
.aff-box__disc { font-size: .76rem; color: var(--muted); margin: 10px 0 0 !important; }
.aff-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
a[rel~="sponsored"]:not(.btn)::after { content: "*"; font-size: .8em; margin-left: 1px; color: var(--muted); }
.disclosure { font-size: .85rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 24px; color: var(--text); }
.disclosure a { font-weight: 600; }

/* Ad slots (only rendered when configured) */
.ad-slot { margin: 2em 0; padding-top: 6px; border-top: 1px solid var(--border); text-align: center; clear: both; }
.ad-slot__label { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-slot--placeholder { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 18px; color: var(--muted); font-size: .82rem; background: repeating-linear-gradient(45deg, #fff, #fff 8px, var(--surface-2) 8px, var(--surface-2) 16px); }
.sidebar .ad-slot { margin: 0; }

/* Article footer bits */
.article-updated-note { font-size: .85rem; color: var(--muted); }
.sources { margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--border); font-size: .9rem; }
.sources h2 { font-size: 1.15rem !important; margin: 0 0 .6em !important; }
.sources ol { padding-left: 1.2em; }
.sources li { word-break: break-word; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; list-style: none; padding: 0; }
.tags a { font-size: .82rem; background: var(--bg-soft); padding: 5px 12px; border-radius: 999px; text-decoration: none; color: var(--navy); }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px; margin-top: 36px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; }
.author-box h2 { font-size: 1.05rem; margin: 0 0 4px; }
.author-box p { margin: 0; font-size: .92rem; }
.next-step { margin-top: 36px; border-radius: var(--radius); background: var(--tint-blue); padding: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.next-step strong { color: var(--navy); display: block; font-size: 1.05rem; }
.next-step p { margin: 4px 0 0; font-size: .92rem; }
.post-nav { display: grid; gap: 12px; margin-top: 36px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 650; line-height: 1.4; }
.post-nav a:hover { border-color: var(--navy); }
.post-nav small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
.related { border-top: 1px solid var(--border); }

/* ---------- 17. Sidebar ---------- */
.sidebar { display: grid; gap: 22px; align-content: start; }
.widget { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.widget-title, .widget h2 { font-size: .95rem; margin: 0 0 14px; color: var(--navy); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget--cta { background: var(--tint-yellow); border-color: var(--border); }
.widget--cta h2 { font-size: 1.2rem; }
.widget--cta p { font-size: .92rem; }
.widget--toc ol { margin: 0; padding-left: 20px; font-size: .88rem; }
.widget--toc li { margin: 7px 0; }
.widget--toc li ol { padding-left: 14px; list-style: lower-alpha; }
.widget--toc a { color: var(--text); text-decoration: none; }
.widget--toc a:hover, .widget--toc a.is-active { color: var(--green-ink); font-weight: 600; }
.cat-list li a { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: var(--navy); font-size: .92rem; font-weight: 550; }
.cat-list li + li { border-top: 1px solid var(--border); }
.cat-list .cat-list__icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--tint); color: var(--ink); flex: none; }
.cat-list .cat-list__icon svg { width: 18px; height: 18px; }
.cat-list .count { margin-left: auto; font-size: .78rem; color: var(--muted); }
.widget--promo { background: var(--tint-green); border-color: var(--border); }
@media (min-width: 1100px) {
	.sidebar--sticky-toc .widget--toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
}
.widget--toc { display: none; }
@media (min-width: 1100px) { .widget--toc { display: block; } }

/* ---------- 18. Pages ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding-block: 32px 40px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 10px; }
.page-hero p { margin: 0; font-size: 1.05rem; max-width: 68ch; }
.page-body { padding-block: 40px 72px; }
.page-body .entry-content { max-width: 760px; }
.page-body--wide .entry-content { max-width: none; }
.placeholder-note, .entry-content mark.placeholder { background: var(--surface-2); color: var(--warn-ink); padding: 0 .25em; border-radius: 3px; font-weight: 600; }
.legal-banner { background: var(--tint-yellow); border: 1px solid var(--border); color: var(--warn-ink); padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 28px; font-size: .92rem; }

/* Contact form */
.contact-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.3fr 1fr; } }
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; color: var(--navy); font-size: .92rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--glow); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .84rem; margin: 0; }
.field__error:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--green); }
.field--check label { font-weight: 500; font-size: .88rem; color: var(--text); }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 18px; }
.notice--success { background: var(--tint-green); color: var(--navy); border: 1px solid var(--border); }
.notice--error { background: var(--surface-2); color: var(--navy); border: 1px solid var(--border); }
.notice--info { background: var(--tint-blue); color: var(--navy); border: 1px solid var(--border); }

/* HTML sitemap */
.sitemap-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.sitemap-grid h2 { font-size: 1.15rem; }
.sitemap-grid ul { padding-left: 1.1em; }
.sitemap-grid li { margin: 6px 0; }

/* Search / 404 */
.search-head { padding-block: 32px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.search-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.search-head .search-form { max-width: 620px; margin-top: 16px; }
.empty-state { text-align: center; padding: 56px 0; max-width: 620px; margin: 0 auto; }
.empty-state .search-form { margin: 24px auto 0; text-align: left; }
.err-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--green); line-height: 1; margin: 0 0 8px; letter-spacing: -.04em; }

/* Back to top */
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top svg { width: 15px; height: 15px; }

/* WordPress core alignment & captions */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-size: .82rem; color: var(--muted); }
.sticky .card__cat::after { content: " • Pinned"; color: var(--muted); }
.bypostauthor { }
.gallery-caption { }

/* Comments (only shown when enabled) */
.comments-area { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border); }

@media print {
	.site-header, .site-footer, .sidebar, .share, .newsletter, .ad-slot, .next-step, .post-nav, .related { display: none !important; }
	.article-layout { display: block; }
	a { color: inherit; }
}


/* Tools */
.tool-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool-card:hover { border-color: var(--border); box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--text); }
.tool-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--ink); }
.tool-card__icon svg { width: 24px; height: 24px; }
.tool-card h3 { margin: 4px 0 0; font-size: 1.08rem; }
.tool-card p { margin: 0; font-size: .92rem; color: var(--muted); flex: 1; }
.tool-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 650; color: var(--muted); }
.tool-card__meta .free { color: #047857; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.tool__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.tool__field { display: grid; gap: 6px; min-width: 0; }
.tool__field label { font-weight: 650; color: var(--navy); font-size: .88rem; }
.tool__input { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.tool__input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--glow); }
.tool__input span { padding: 0 10px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tool__input input, .tool__input select { flex: 1; min-width: 0; width: 100%; border: 0; min-height: 44px; padding: 9px 12px; background: transparent; font-variant-numeric: tabular-nums; }
.tool__input span + input { padding-left: 0; }
.tool__input input:focus, .tool__input select:focus { outline: none; }
.tool__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.tool__error { color: var(--danger); font-size: .9rem; margin: 0; }
.tool__out { margin-top: 18px; }
.tool__stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.tool__stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.tool__stat small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.tool__stat strong { display: block; color: var(--navy); font-size: 1.4rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tool__stat--main { background: var(--tint-yellow); border-color: var(--border); }
.tool__stat--bad strong { color: var(--danger); }
.tool__note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.tool-page { display: grid; gap: 40px; }
@media (min-width: 1024px) { .tool-page { grid-template-columns: minmax(0, 1fr) 300px; } }

/* ==========================================================================
   StudyXcel — "study notebook" layer
   Graph-paper pages, chalkboard hero, index cards with tape, sticky notes,
   binder dividers, highlighter marks, and handwritten notes.
   ========================================================================== */
body {
	background-color: var(--bg);
	background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 28px 28px;
	color: var(--text); font-weight: 350; font-size: 1rem;
}
a { color: var(--green-ink); }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; color: var(--navy); line-height: 1.12; }
strong, b { font-weight: 650; }
.eyebrow { color: var(--green); font-weight: 700; letter-spacing: .12em; font-size: .72rem; }
.scribble { font-family: var(--hand); font-size: 1.6rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green); margin-bottom: 4px; line-height: 1; }
.section { padding-block: 48px; }
@media (min-width: 1024px) { .section { padding-block: 64px; } }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); display: flex; align-items: center; gap: 12px; }
.section-head--center { justify-content: center; text-align: center; }
.link-arrow { color: var(--green-ink); font-weight: 600; }
.link-arrow:hover { color: var(--navy); }
.hl, mark { background: linear-gradient(transparent 52%, var(--hl) 52%, var(--hl) 92%, transparent 92%); color: inherit; padding: 0 .08em; }

/* Ruler strip */
.ruler { height: 10px; background-color: #ffe14d; background-image: repeating-linear-gradient(90deg, rgba(27,42,74,.55) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(27,42,74,.8) 0 2px, transparent 2px 50px); background-size: 100% 4px, 100% 7px; background-repeat: no-repeat; background-position: 0 0, 0 0; }

/* Buttons */
.btn { border-radius: var(--radius-sm); font-weight: 600; border: 2px solid var(--navy); }
.btn--primary { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 3px 0 #145238; }
.btn--primary:hover { background: #17603f; border-color: #17603f; color: #fff; }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #145238; }
.btn--outline { background: var(--surface); color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--tint-yellow); color: var(--navy); }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(27,42,74,.04); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.9); } }
.admin-bar .site-header { top: 32px; }
.brand { font-family: var(--display); font-weight: 750; font-size: 1.42rem; letter-spacing: -.04em; color: var(--navy); gap: 9px; }
.brand:hover { color: var(--navy); }
.brand__mark { width: 34px; height: 34px; }
.brand__accent { color: var(--green); position: relative; }
.brand__accent::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 1px; height: .38em; background: var(--hl); z-index: -1; border-radius: 2px; }
.brand__text { position: relative; z-index: 0; }
.primary-nav a { color: var(--navy); font-weight: 500; font-size: .9rem; border-radius: var(--radius-sm); padding: 8px 11px; }
.primary-nav a:hover { background: var(--tint-yellow); color: var(--navy); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current-post-ancestor > a, .primary-nav .current-category-ancestor > a { color: var(--navy); background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 90%, transparent 90%); font-weight: 650; }
@media (min-width: 1100px) { .primary-nav { margin-inline: auto; } .header-actions { margin-left: 0; } }
@media (min-width: 1100px) and (max-width: 1259px) { .primary-nav a { padding-inline: 8px; font-size: .86rem; } }
.icon-btn { color: var(--navy); }
.icon-btn:hover { background: var(--tint-yellow); }
.header-cta svg { width: 16px; height: 16px; }
.mobile-nav { background: rgba(17,28,51,.5); }
.mobile-nav__panel { background: var(--surface); border-left: 6px solid var(--margin-red); }
.mobile-nav li a { color: var(--navy); border-bottom-color: #d9e1ef; font-size: 1.05rem; font-weight: 550; }
.search-overlay { background: rgba(17,28,51,.55); }
.search-overlay__box { background: var(--surface); border: 2px solid var(--navy); border-radius: var(--radius-lg); }
.search-overlay__head p { font-size: 1.15rem; }
.search-overlay__hints a { background: var(--tint-yellow); color: var(--ink-yellow); }
.search-form { background: var(--surface); border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: none; padding: 5px 5px 5px 12px; }
.search-form:focus-within { border-color: var(--green-ink); box-shadow: 0 0 0 4px var(--glow); }
.search-form input[type="search"] { color: var(--navy); }
.search-form input[type="search"]::placeholder { color: #6a7286; }

/* ---------- Chalkboard hero ---------- */
.hero.board {
	position: relative; overflow: hidden; margin: 0; border: 0;
	background-color: var(--board);
	background-image: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.07), transparent 55%), radial-gradient(ellipse at 85% 90%, rgba(255,255,255,.05), transparent 50%);
	color: var(--chalk);
	border-top: 12px solid #8a5a33; border-bottom: 0;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), inset 0 0 60px rgba(0,0,0,.25);
}
.hero.board::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M40 60c40-20 90 10 140-8M60 230l60-40 40 30M420 50a30 30 0 1 0 1 0M470 220h80M510 180v80M300 140q30-40 60 0t60 0'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 40px; padding-block: 44px 64px; align-items: center; }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding-block: 60px 84px; } }
.chalk-note { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hand); font-size: 1.55rem; font-weight: 700; line-height: 1; color: var(--hl); margin: 0 0 14px; transform: rotate(-2deg); }
.chalk-note svg { width: 22px; height: 22px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; max-width: 13ch; margin-bottom: 18px; color: #fffdf5; font-weight: 750; }
.hero .hl { background: none; color: var(--hl); position: relative; white-space: nowrap; padding: 0; }
.hero .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .22em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c40-6 90-7 194-3' fill='none' stroke='%23ffe14d' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M20 12c50-4 110-4 160-2' fill='none' stroke='%23ffe14d' stroke-opacity='.6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hero__lead { font-size: 1.1rem; max-width: 48ch; margin-bottom: 22px; color: #dfe7df; }
.hero .search-form { max-width: 520px; border-color: transparent; }
.hero .search-form:focus-within { box-shadow: 0 0 0 4px rgba(255,225,77,.55); }
.chalk-chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chalk-chips a { display: inline-block; padding: 6px 13px; border: 2px dashed rgba(243,241,232,.6); border-radius: 999px; color: var(--chalk); text-decoration: none; font-size: .88rem; font-weight: 500; }
.chalk-chips a:hover { border-style: solid; border-color: var(--hl); color: var(--hl); }
.hero :focus-visible { box-shadow: 0 0 0 2px var(--board), 0 0 0 4px var(--hl); }
.hero__feature { position: relative; display: grid; gap: 18px; }
.index-card { position: relative; background: var(--surface); color: var(--text); border-radius: 6px; padding: 16px 16px 6px; transform: rotate(1.2deg); box-shadow: 0 18px 40px rgba(0,0,0,.35); background-image: linear-gradient(var(--surface) 0 56px, transparent 56px), repeating-linear-gradient(transparent 0 27px, #d9e1ef 27px 28px); }
.index-card::before { content: ""; position: absolute; top: 46px; left: 0; right: 0; height: 2px; background: var(--margin-red); opacity: .7; }
.index-card__label { position: relative; margin: 0 0 18px; font-family: var(--hand); font-size: 1.55rem; font-weight: 700; line-height: 1; color: var(--margin-red); }
.tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: rgba(255,225,77,.85); transform: rotate(-3deg); box-shadow: 0 2px 4px rgba(0,0,0,.15); z-index: 2; }
.index-card .card { background: var(--surface); border: 0; box-shadow: none; }
.index-card .card:hover { transform: none; box-shadow: none; }
.index-card :focus-visible { box-shadow: var(--focus); }
.stickies { display: grid; gap: 16px; }
@media (min-width: 640px) { .stickies { grid-template-columns: 1fr 1fr; } }
.postit { padding: 8px; border-radius: 2px; box-shadow: 0 10px 20px rgba(0,0,0,.28); }
.postit--1 { background: #fff1a8; transform: rotate(-2deg); }
.postit--2 { background: #ffd6e0; transform: rotate(1.6deg); }
.postit .card { background: transparent; border: 0; box-shadow: none; }
.postit .card:hover { transform: none; box-shadow: none; }
.postit .card__title a { color: var(--navy); }
.postit .card__meta { color: #4a5266; }
.postit :focus-visible { box-shadow: var(--focus); }
.board__ledge { position: relative; z-index: 1; height: 16px; background: linear-gradient(#a06c3f, #7a4c26); box-shadow: 0 4px 8px rgba(0,0,0,.18); }
.board__ledge i { position: absolute; top: -7px; height: 8px; border-radius: 3px; background: #f7f5ee; }
.board__ledge i:nth-child(1) { left: 12%; width: 46px; transform: rotate(-4deg); }
.board__ledge i:nth-child(2) { left: 18%; width: 28px; background: #ffe14d; }
.board__ledge i:nth-child(3) { right: 14%; width: 70px; height: 12px; top: -11px; background: #3c4a66; border-radius: 4px; }

/* ---------- Cards (index cards) ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: var(--shadow-hover); }
.card:focus-within { box-shadow: var(--focus); }
.card__media { aspect-ratio: 4 / 3; background: var(--bg-soft); }
.card__body { padding: 16px 18px 18px; gap: 9px; border-top: 4px solid var(--tab, var(--navy)); }
.card__cat { font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink, var(--ink-slate)); background: var(--tint, var(--tint-slate)); padding: 3px 9px; border-radius: 4px; }
.card__title { font-family: var(--display); font-weight: 650; font-size: 1.16rem; line-height: 1.28; letter-spacing: -.02em; }
.card__title a { color: var(--navy); }
.card__title a:hover { color: var(--green-ink); }
.card__excerpt { color: var(--muted); font-size: .94rem; }
.card__meta { margin: 0; justify-content: flex-start; gap: 4px 12px; font-size: .8rem; color: var(--muted); }
.card__meta > * + *::before { content: "•"; margin-right: 12px; color: var(--margin-red); }
.card__by { color: var(--navy); font-weight: 600; }
.card--feature { display: flex; flex-direction: column; }
.card--feature .card__media { border-radius: 4px; aspect-ratio: 16 / 10; min-height: 0; }
.card--feature .card__body { padding: 14px 2px 10px; border-top: 0; }
.card--feature .card__title { font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.15; }
@media (min-width: 768px) { .card--feature { display: flex; grid-template-columns: none; } .card--feature .card__media { min-height: 0; aspect-ratio: 16 / 10; } .card--feature .card__body { padding: 14px 2px 10px; } .card--feature .card__title { font-size: clamp(1.35rem, 2.6vw, 1.85rem); } }
.card--list { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 8px; }
.card--list:hover { transform: translateY(-2px); }
.card--list .card__num { display: none; }
.card--list .card__media { width: 72px; aspect-ratio: 1; border-radius: 6px; }
.card--list .card__body { padding: 0; gap: 4px; border-top: 0; }
.card--list .card__title { font-size: .98rem; }
.card--list .card__cat { padding: 2px 7px; font-size: .62rem; }
.card--list .card__meta { font-size: .74rem; }
.post-grid { gap: 24px; }
.post-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.badge-draft { background: var(--tint-yellow); color: var(--ink-yellow); }

/* ---------- Subject dividers ---------- */
.subjects { padding-top: 56px; }
.dividers { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.divider { position: relative; display: block; text-decoration: none; color: var(--text); padding-top: 26px; }
.divider__tab { position: absolute; top: 0; left: 18px; padding: 5px 16px 8px; border-radius: 10px 10px 0 0; background: var(--tab); color: #fff; font-weight: 650; font-size: .92rem; letter-spacing: -.01em; }
.divider__body { display: grid; gap: 10px; min-height: 100%; padding: 20px 20px 18px; background: var(--tint); border: 1px solid rgba(27,42,74,.12); border-top: 4px solid var(--tab); border-radius: 0 var(--radius) var(--radius) var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.divider:hover .divider__body { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.divider__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink); border: 2px solid var(--tab); }
.divider__icon svg { width: 22px; height: 22px; }
.divider__desc { color: var(--navy); font-size: .95rem; line-height: 1.5; }
.divider__count { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 650; color: var(--ink); }
.divider__count svg { width: 15px; height: 15px; transition: transform .15s; }
.divider:hover .divider__count svg { transform: translateX(3px); }
.divider:focus-visible { box-shadow: none; }
.divider:focus-visible .divider__body { box-shadow: var(--focus); }

/* ---------- Study-tools desk ---------- */
.desk { position: relative; background: #eaf0f8; border-block: 1px solid #d3dceb; background-image: linear-gradient(rgba(35,72,168,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(35,72,168,.12) 1px, transparent 1px); background-size: 20px 20px; }
.desk__inner { display: grid; gap: 36px; align-items: start; padding-block: 56px 64px; }
@media (min-width: 1000px) { .desk__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; padding-block: 72px 80px; } }
.desk h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.desk__copy > p { max-width: 48ch; color: var(--text); }
.clipboard { position: relative; background: #c89a63; border-radius: 16px; padding: 30px 14px 14px; box-shadow: 0 16px 34px rgba(27,42,74,.2); }
.clipboard__clip { position: absolute; top: -14px; left: 50%; width: 130px; height: 36px; margin-left: -65px; border-radius: 10px 10px 6px 6px; background: linear-gradient(#c3cad6, #8892a5); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15), 0 3px 6px rgba(0,0,0,.2); }
.clipboard__clip::after { content: ""; position: absolute; top: 8px; left: 50%; width: 30px; height: 10px; margin-left: -15px; border-radius: 6px; background: #c89a63; }
.clipboard > .clipboard__label, .clipboard > .tool { background: var(--surface); }
.clipboard__label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 18px 20px 4px; border-radius: 6px 6px 0 0; font-family: var(--hand); font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--margin-red); }
.clipboard__label svg { width: 20px; height: 20px; flex: none; }
.clipboard .tool { border: 0; border-radius: 0 0 6px 6px; box-shadow: none; padding: 12px 20px 20px; }

/* ---------- Tools ---------- */
.tool-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.tool-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--tab, var(--navy)); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--border); border-top-color: var(--tab, var(--navy)); color: var(--text); }
.tool-card__icon { border-radius: 50%; background: var(--tint); color: var(--ink); }
.tool-card__text { display: grid; gap: 6px; flex: 1; min-width: 0; }
.tool-card h2, .tool-card h3 { margin: 4px 0 0; font-size: 1.08rem; font-weight: 650; color: var(--navy); }
.tool-card__desc { font-size: .9rem; color: var(--muted); }
.tool-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; font-weight: 650; color: var(--muted); }
.tool-card__meta .free { color: var(--ink-green); background: var(--tint-green); border: 0; padding: 2px 10px; border-radius: 999px; }
.tool-grid--compact { grid-template-columns: 1fr 1fr; margin-top: 24px; gap: 14px; }
@media (max-width: 560px) { .tool-grid--compact { grid-template-columns: 1fr; } }
.tool-grid--compact .tool-card { flex-direction: row; align-items: center; gap: 12px; padding: 14px; border: 0; border-radius: 2px; background: var(--tint); box-shadow: 0 6px 12px rgba(27,42,74,.12); }
.tool-grid--compact li:nth-child(odd) .tool-card, .tool-grid--compact > :nth-child(odd).tool-card { transform: rotate(-1deg); }
.tool-grid--compact li:nth-child(even) .tool-card, .tool-grid--compact > :nth-child(even).tool-card { transform: rotate(1deg); }
.tool-grid--compact .tool-card:hover { transform: rotate(0) translateY(-3px); }
.tool-grid--compact .tool-card__icon { width: 40px; height: 40px; flex: none; background: var(--surface); }
.tool-grid--compact .tool-card__icon svg { width: 20px; height: 20px; }
.tool-grid--compact h3 { margin: 0; font-size: .98rem; line-height: 1.2; }
.tool-card__go { width: 18px; height: 18px; color: var(--ink); flex: none; }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tool__field label { color: var(--navy); font-weight: 600; }
.tool__help { color: var(--muted); font-size: .8rem; }
.tool__input { background: #fff; border: 2px solid #b7c0d3; border-radius: var(--radius-sm); }
.tool__input:focus-within { border-color: var(--green-ink); box-shadow: 0 0 0 4px var(--glow); }
.tool__input input, .tool__input select { color: var(--navy); font-variant-numeric: tabular-nums; }
.tool__input span { color: #5a6378; }
.tool__check { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 500; color: var(--navy); cursor: pointer; min-height: 40px; }
.tool__check input { width: 20px; height: 20px; accent-color: var(--green); }
.tool__stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.tool__stat small { color: var(--muted); font-weight: 500; }
.tool__stat strong { font-weight: 700; color: var(--navy); font-size: 1.4rem; line-height: 1.2; }
.tool__stat--main { background: var(--board); border-color: var(--board); }
.tool__stat--main small { color: #cfdcd4; }
.tool__stat--main strong { color: var(--hl); font-size: 1.6rem; }
.tool__stat--bad { background: var(--tint-red); border-color: #f0b9bd; }
.tool__stat--bad strong { color: var(--danger); }
.tool__verdict { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--tint-yellow); color: var(--navy); border-left: 4px solid #d4a800; }
.tool__verdict--good { background: var(--tint-green); border-left-color: var(--green); }
.tool__note { color: var(--muted); }
.tool__error { color: var(--danger); font-weight: 550; }
.tool__table { margin-top: 16px; overflow-x: auto; }
.tool__table table, .entry-content .tool__table table { width: 100%; min-width: 0; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.tool__table caption { text-align: left; font-family: var(--hand); font-size: 1.35rem; font-weight: 700; color: var(--margin-red); padding-bottom: 4px; }
.tool__table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--navy); background: none; }
.entry-content .tool__table thead th { background: none; color: var(--muted); }
.tool__table td { padding: 7px 8px; border-bottom: 1px solid #d9e1ef; }
.tool__table .is-review td { background: var(--tint-yellow); font-weight: 600; }
.planner input[type="date"] { color-scheme: light; }
.gpa__wrap { overflow-x: auto; }
.gpa__table, .entry-content .gpa__table { width: 100%; min-width: 420px; border-collapse: collapse; }
.gpa__table th, .entry-content .gpa__table thead th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px; border-bottom: 2px solid var(--navy); background: none; }
.gpa__table td { padding: 6px; border-bottom: 1px solid #d9e1ef; }
.gpa__table input, .gpa__table select { width: 100%; min-height: 42px; border: 2px solid #b7c0d3; border-radius: var(--radius-sm); padding: 6px 10px; background: #fff; color: var(--navy); font: inherit; }
.gpa__table .num { width: 110px; }
.gpa__table .del { width: 44px; }
.gpa__table button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.gpa__table button:hover { background: var(--tint-red); color: var(--ink-red); }
.tool.gpa, .gpa__wrap, .entry-content .tool { min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .entry-content .gpa__table, .gpa__table { min-width: 0; } .gpa__table .num { width: 84px; } .gpa__table td, .gpa__table th { padding: 4px; } }
/* Pomodoro */
.pomo { text-align: center; }
.pomo__face { position: relative; width: min(100%, 300px); margin: 6px auto 18px; aspect-ratio: 1; }
.pomo__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.pomo__track { fill: var(--surface-2); stroke: #d9e1ef; stroke-width: 8; }
.pomo__bar { fill: none; stroke: var(--margin-red); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset .3s linear; }
.pomo[data-mode="short"] .pomo__bar, .pomo[data-mode="long"] .pomo__bar { stroke: var(--green); }
.pomo__readout { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; }
.pomo__readout p { margin: 0; }
.pomo__mode { font-family: var(--hand); font-size: 1.6rem; font-weight: 700; color: var(--margin-red); line-height: 1; }
.pomo[data-mode="short"] .pomo__mode, .pomo[data-mode="long"] .pomo__mode { color: var(--ink-green); }
.pomo__time { font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.pomo__count { font-size: .85rem; color: var(--muted); }
.pomo__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pomo__controls .btn { min-width: 104px; }
.pomo__settings { margin-top: 20px; text-align: left; border-top: 1px dashed #b7c0d3; padding-top: 14px; }
.pomo__settings summary { cursor: pointer; font-weight: 600; color: var(--navy); min-height: 32px; }
.pomo__settings .tool__grid { margin-top: 12px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; border: 2px solid var(--navy); border-radius: var(--radius); padding: 4px; margin: 0 0 16px; }
.seg label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-weight: 550; font-size: .88rem; color: var(--navy); min-height: 36px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--navy); color: #fff; }
.seg label:has(input:focus-visible) { box-shadow: var(--focus); }
.row-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--ink); border: 2px solid var(--tab, var(--navy)); }
.row-icon svg { width: 22px; height: 22px; }
.section--row .section-head { border-bottom: 2px solid var(--navy); padding-bottom: 12px; }

/* ---------- Newsletter (lined notebook page) ---------- */
.newsletter { position: relative; overflow: hidden; background-color: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px var(--radius-lg) var(--radius-lg) 6px; padding: 36px 24px 36px 64px; grid-template-columns: 1fr; box-shadow: var(--shadow-hover); background-image: linear-gradient(90deg, transparent 46px, rgba(229,72,77,.7) 46px 48px, transparent 48px), repeating-linear-gradient(transparent 0 31px, #d9e1ef 31px 32px); }
.newsletter::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 16px; background: radial-gradient(circle at 8px 8px, var(--bg) 7px, rgba(27,42,74,.25) 7px 8px, transparent 8px) 0 24px / 16px 90px repeat-y; pointer-events: none; }
.newsletter > * { position: relative; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1.2fr 1fr; padding: 48px 52px 48px 88px; gap: 44px; background-image: linear-gradient(90deg, transparent 66px, rgba(229,72,77,.7) 66px 68px, transparent 68px), repeating-linear-gradient(transparent 0 31px, #d9e1ef 31px 32px); } .newsletter::before { left: 24px; } }
.newsletter .eyebrow { font-family: var(--hand); font-size: 1.6rem; text-transform: none; letter-spacing: 0; color: var(--margin-red); }
.newsletter h2 { color: var(--navy); font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.newsletter p { color: var(--text); }
.nl-form input[type="email"] { border: 2px solid var(--navy); border-radius: var(--radius-sm); background: #fff; color: var(--navy); padding-inline: 14px; }
.newsletter .consent, .newsletter .form-msg.is-info { color: var(--muted); }
.newsletter .form-msg.is-success { color: var(--ink-green); }

/* ---------- Footer (chalkboard) ---------- */
.site-footer { background: var(--board); color: #cfdcd4; margin-top: 40px; border-top: 12px solid #8a5a33; }
.site-footer a { color: #f3f1e8; }
.site-footer a:hover { color: var(--hl); }
.site-footer .brand { color: #fffdf5; }
.site-footer .brand__accent { color: var(--hl); }
.site-footer .brand__accent::after { display: none; }
.footer-col h2 { font-family: var(--hand); font-weight: 700; font-size: 1.55rem; letter-spacing: 0; text-transform: none; color: var(--hl); border: 0; padding: 0; }
.footer-col__lead { font-size: .92rem; margin: 0 0 12px; }
.footer-about p { color: #cfdcd4; }
.social a { background: transparent; border: 2px dashed rgba(243,241,232,.6); border-radius: 50%; color: #f3f1e8; }
.social a:hover { background: var(--hl); border-color: var(--hl); border-style: solid; color: var(--board); }
.site-footer .nl-form input[type="email"] { border-color: transparent; }
.site-footer .nl-form .btn--primary { background: var(--hl); border-color: var(--hl); color: var(--navy); box-shadow: none; }
.site-footer .nl-form .btn--primary:hover { background: #fff; border-color: #fff; }
.site-footer .consent, .site-footer .form-msg.is-info { color: #b9cabf; }
.site-footer .form-msg.is-error { color: #ffc2c4; }
.site-footer .form-msg.is-success { color: var(--hl); }
.site-footer :focus-visible { box-shadow: 0 0 0 2px var(--board), 0 0 0 4px var(--hl); }
.footer-bottom { border-top: 1px dashed rgba(243,241,232,.25); font-size: .82rem; }

/* ---------- Hubs & pages ---------- */
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--navy); }
.hub-hero, .page-hero, .search-head { background: var(--tint, var(--surface)); border-bottom: 1px solid var(--border); border-top: 6px solid var(--tab, var(--navy)); padding-block: 28px 40px; }
.page-hero, .search-head { --tint: var(--surface); --tab: var(--hl); }
.hub-hero__inner { background: none; border: 0; box-shadow: none; padding: 0; }
.hub-hero .eyebrow { display: inline-flex; color: #fff; background: var(--tab, var(--navy)); padding: 4px 12px; border-radius: 6px 6px 0 0; letter-spacing: .08em; }
.hub-hero h1, .page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.04em; }
.hub-hero__desc { color: var(--text); }
.hub-hero__icon { color: var(--ink); width: 110px; height: 110px; border-radius: 50%; padding: 24px; background: var(--surface); border: 3px solid var(--tab, var(--navy)); box-shadow: var(--shadow); }
.pill-nav a { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--navy); }
.pill-nav a:hover { background: var(--tint-yellow); border-color: var(--navy); }
.hub-block h2 { font-size: 1.5rem; }
.hub-empty { color: var(--muted); }
.cat-card { background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--tab, var(--navy)); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--border); border-top-color: var(--tab, var(--navy)); color: var(--text); }
.cat-card__icon { color: var(--ink); }
.cat-card h3 { font-weight: 650; }
.cat-card p { color: var(--muted); }
.pagination .page-numbers { background: var(--surface); border: 1px solid var(--border); color: var(--navy); border-radius: var(--radius-sm); }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.legal-banner, .calc__note { background: var(--tint-yellow); border: 1px solid #e6cf5c; border-radius: var(--radius-sm); color: var(--warn-ink); }
.placeholder-note, .entry-content mark.placeholder { background: var(--hl); color: var(--warn-ink); }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.field input, .field select, .field textarea { border: 2px solid #b7c0d3; border-radius: var(--radius-sm); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-ink); box-shadow: 0 0 0 4px var(--glow); }
.notice { border-radius: var(--radius-sm); }
.err-code { color: var(--margin-red); font-family: var(--hand); font-weight: 700; }

/* ---------- Article ---------- */
.article-head { padding-block: 36px 8px; max-width: 900px; text-align: center; }
.article-head .breadcrumbs ol { justify-content: center; }
.article-head .card__cat { display: inline-block; margin-bottom: 14px; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.04em; margin-inline: auto; }
.article-head .article-excerpt { font-size: 1.12rem; color: var(--text); max-width: 60ch; margin-inline: auto; }
.article-head .article-meta { justify-content: center; border-bottom: 0; }
.article-head .share { margin-left: 0; }
.article-head .article-meta a { color: var(--navy); font-weight: 600; }
.article-hero { margin: 20px auto 0; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.article-hero figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }
.article-layout { padding-top: 36px; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 64px; } }
.share a, .share button { background: var(--surface); border: 1px solid var(--border); border-radius: 50%; color: var(--navy); }
.share a:hover, .share button:hover { background: var(--tint-yellow); border-color: var(--navy); }
.entry-content { color: var(--text); font-size: 1.06rem; line-height: 1.85; font-weight: 350; }
@media (min-width: 900px) { .article-layout > .entry-wrap, .article-main { position: relative; } }
.entry-content h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); }
.entry-content h2::before { content: "§ "; color: var(--margin-red); font-weight: 600; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-weight: 650; }
.entry-content a { color: var(--green-ink); text-decoration-color: rgba(35,72,168,.35); text-decoration-thickness: 2px; }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content strong { color: var(--navy); }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { border: 0; background: #fff1a8; border-radius: 2px; padding: 22px 26px; color: var(--navy); font-family: var(--hand); font-size: 1.7rem; font-weight: 600; line-height: 1.25; box-shadow: 0 10px 20px rgba(27,42,74,.12); transform: rotate(-.6deg); position: relative; }
.entry-content blockquote::before { content: none; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-family: var(--font); font-size: .82rem; font-style: normal; font-weight: 600; color: #4a5266; }
.entry-content pre { background: var(--board); color: var(--chalk); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; }
.entry-content code { background: var(--surface-2); border-radius: 4px; padding: .05em .35em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content thead th { background: var(--navy); color: #fff; }
.entry-content .wp-block-table, .table-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.entry-content ul.checklist li::before { background-color: var(--green); }
.entry-content ol.steps-list > li::before { background: var(--hl); color: var(--navy); border: 2px solid var(--navy); }
.callout { background: var(--tint-green); border: 1px solid var(--border); border-left: 5px solid var(--green); border-radius: var(--radius-sm); box-shadow: none; }
.callout svg { color: var(--navy); }
.callout--note { background: var(--tint-blue); border-left-color: var(--green-ink); }
.callout--warning { background: var(--tint-yellow); border-left-color: #d4a800; }
.proscons > div { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; }
.proscons .pros { background: var(--tint-green); }
.proscons .cons { background: var(--tint-red); }
.proscons .pros li::before { color: var(--ink-green); }
.proscons .cons li::before { color: var(--ink-red); }
.idea, .aff-box, .resource { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.disclosure { background: var(--tint-yellow); border: 1px solid #e6cf5c; border-radius: var(--radius-sm); }
.fin-disclaimer { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--margin-red); border-radius: var(--radius-sm); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; }
.author-box { background: var(--tint-blue); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: none; }
.author-box img { border: 2px solid var(--navy); }
.next-step { background: var(--board); border: 0; border-radius: var(--radius-lg); color: var(--chalk); }
.next-step strong { font-family: var(--hand); font-weight: 700; color: var(--hl); font-size: 1.7rem; }
.next-step p { color: #dfe7df; }
.next-step .btn--primary { background: var(--hl); border-color: var(--hl); color: var(--navy); box-shadow: none; }
.next-step :focus-visible { box-shadow: 0 0 0 2px var(--board), 0 0 0 4px var(--hl); }
.post-nav a { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--navy); font-weight: 600; }
.post-nav a:hover { border-color: var(--navy); }
.tags a { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.related { background: var(--bg-soft); border-top: 1px solid var(--border); }

/* Sidebar */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.widget-title, .widget h2 { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.widget--cta { background: #fff1a8; border: 0; border-radius: 2px; transform: rotate(-1deg); box-shadow: 0 10px 20px rgba(27,42,74,.14); }
.widget--cta h2 { color: var(--navy); font-family: var(--hand); font-size: 1.8rem; }
.widget--cta p { color: var(--navy); }
.widget--cta .btn--primary { box-shadow: none; }
.widget--toc a:hover, .widget--toc a.is-active { color: var(--green-ink); }
.mini { grid-template-columns: 56px 1fr; }
.mini img { width: 56px; height: 56px; border-radius: 6px; }
.mini a { color: var(--navy); font-weight: 600; }
.cat-list li a { color: var(--navy); }
.cat-list li + li { border-top-color: #d9e1ef; }
.cat-list .cat-list__icon { border-radius: 50%; }

/* Comments */
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; display: grid; gap: 6px; }
.comment-form label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; max-width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid #b7c0d3; border-radius: var(--radius-sm); background: #fff; color: var(--navy); }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 4px var(--glow); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form .submit { background: var(--green); color: #fff; border: 0; border-radius: var(--radius-sm); min-height: 44px; padding: 10px 22px; font-weight: 600; cursor: pointer; justify-self: start; }
.comment-notes, .logged-in-as { font-size: .88rem; color: var(--muted); }

:focus-visible { box-shadow: var(--focus); }
@media (prefers-reduced-motion: reduce) { .card:hover, .tool-card:hover, .cat-card:hover, .divider:hover .divider__body, .tool-grid--compact .tool-card, .index-card, .postit, .widget--cta, .entry-content blockquote { transform: none !important; } .pomo__bar { transition: none; } }
@media print {
	.ruler, .site-header, .site-footer, .sidebar, .share, .newsletter, .ad-slot, .next-step, .post-nav, .related { display: none !important; }
	body { background: #fff; }
	.article-layout { display: block; }
	.pomo__controls, .pomo__settings { display: none; }
}
.entry-content .tool__stat strong { color: var(--navy); }
.entry-content .tool__stat--main strong { color: var(--hl); }
.entry-content .tool__stat--bad strong { color: var(--danger); }
.postit .card__meta > *, .card--list .card__meta > * { white-space: nowrap; }
