/*
Theme Name: Axoria
Theme URI: https://axoriareviews.com/
Author: Axoria Reviews
Author URI: https://axoriareviews.com/about/
Description: Original editorial theme for Axoria Reviews — an evidence-based supplement guide. Includes a technical SEO layer (titles, descriptions, canonicals, Open Graph, JSON-LD), IndexNow, a contact form, and a one-click content installer.
Version: 1.1.4
Requires at least: 6.4
Tested up to: 7.1
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: axoria
Tags: blog, news, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ------------------------------------------------------------------
   1. Tokens
------------------------------------------------------------------ */
:root {
	--pine: #12322b;
	--pine-soft: #1d4a3f;
	--verdant: #1f7a52;
	--verdant-dark: #165c3e;
	--lime: #cff06a;
	--lime-soft: #eaf7c2;
	--chalk: #f5f7f3;
	--paper: #ffffff;
	--ink: #1b2420;
	--muted: #5a6660;
	--rule: #d9e0db;
	--rule-soft: #e8ede9;
	--danger: #9b2c2c;
	--font-display: "Newsreader", Georgia, "Times New Roman", serif;
	--font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--wrap: 1120px;
	--measure: 70ch;
	--radius: 6px;
	--gutter: 20px;
	--header-h: 64px;
}

/* ------------------------------------------------------------------
   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); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--chalk);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--verdant-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--verdant); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; color: var(--pine); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; word-wrap: normal !important; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--pine); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
.kicker { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0.4em; }
.section-title { font-size: 1.375rem; margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--pine); }
.section { padding: 2.75rem 0; }
.section-more { margin-top: 1.5rem; }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }

/* Buttons */
.button, .search-submit, .contact-form button {
	display: inline-block; background: var(--pine); color: #fff; border: 2px solid var(--pine); border-radius: var(--radius);
	padding: 0.7rem 1.2rem; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; line-height: 1.2;
}
.button:hover, .search-submit:hover, .contact-form button:hover { background: var(--verdant-dark); border-color: var(--verdant-dark); color: #fff; }
.button-secondary { background: transparent; color: var(--pine); }
.button-secondary:hover { background: var(--pine); color: #fff; }
.icon-button { background: none; border: 0; padding: 10px; border-radius: var(--radius); cursor: pointer; color: var(--pine); min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { background: var(--rule-soft); }

/* ------------------------------------------------------------------
   3. Header
------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-bar { display: flex; align-items: center; gap: 0.75rem; min-height: var(--header-h); max-width: 1280px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--pine); font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; flex: 0 0 auto; }
.brand-name { white-space: nowrap; }
.brand-logo { height: 36px; width: auto; display: block; }
.custom-logo { max-height: 40px; width: auto; }
.site-footer .brand-logo { height: 34px; }
@media (max-width: 480px) { .brand-logo { height: 30px; } }
.primary-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.1rem; flex-wrap: wrap; }
.nav-list a { display: block; padding: 0.55rem 0.5rem; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.875rem; white-space: nowrap; border-radius: var(--radius); border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current_page_item > a { color: var(--pine); border-bottom-color: var(--lime); }
.header-tools { display: flex; gap: 0.25rem; }
.menu-toggle { display: none; }
.header-search { border-top: 1px solid var(--rule); background: var(--paper); padding: 0.75rem 0; }
.search-form { display: flex; gap: 0.5rem; width: 100%; }
.search-field { flex: 1 1 auto; min-width: 0; padding: 0.65rem 0.9rem; border: 2px solid var(--rule); border-radius: var(--radius); background: var(--paper); min-height: 44px; }
.search-field:focus { border-color: var(--verdant); outline: none; }

@media (max-width: 1199px) {
	.primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); display: none; padding: 0.5rem var(--gutter) 1rem; margin: 0; }
	.primary-nav.is-open { display: block; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--rule-soft); border-radius: 0; font-size: 1.0625rem; }
	.menu-toggle { display: inline-flex; }
	.header-tools { margin-left: auto; }
}

/* ------------------------------------------------------------------
   4. Facts panel (the signature device)
------------------------------------------------------------------ */
.facts-panel { background: var(--paper); border-top: 10px solid var(--pine); border-bottom: 4px solid var(--pine); padding: 0.9rem 1.1rem 0.4rem; }
.facts-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--pine); margin: 0 0 0.35rem; padding-bottom: 0.35rem; border-bottom: 6px solid var(--pine); }
.facts-rows { list-style: none; margin: 0; padding: 0; }
.facts-rows li { border-bottom: 1px solid var(--rule); }
.facts-rows li:last-child { border-bottom: 0; }
.facts-rows a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; text-decoration: none; color: var(--ink); font-weight: 500; min-height: 44px; align-items: center; }
.facts-rows a:hover span:first-child { color: var(--verdant-dark); text-decoration: underline; }
.facts-value { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------------
   5. Hero
------------------------------------------------------------------ */
.hero { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 3rem 0 3.25rem; position: relative; overflow: hidden; }
.hero.has-image { background: var(--pine); padding: 3.5rem 0 3.75rem; border-bottom: 0; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,50,43,0.95) 0%, rgba(18,50,43,0.88) 42%, rgba(18,50,43,0.55) 70%, rgba(18,50,43,0.30) 100%); }
@media (max-width: 899px) { .hero-shade { background: linear-gradient(180deg, rgba(18,50,43,0.93) 0%, rgba(18,50,43,0.82) 60%, rgba(18,50,43,0.70) 100%); } }
.hero.has-image .hero-grid { position: relative; }
.hero.has-image h1, .hero.has-image .hero-lead { color: #fff; }
.hero.has-image .hero-note { color: #d2e3da; }
.hero.has-image .hero-note a { color: var(--lime); }
.hero.has-image .search-field { border-color: transparent; }
.hero.has-image .search-submit { background: var(--lime); color: var(--pine); border-color: var(--lime); }
.hero.has-image .search-submit:hover { background: #fff; border-color: #fff; color: var(--pine); }
.hero.has-image .facts-panel { box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; } }
.hero h1 { max-width: 18ch; }
.hero-lead { font-size: 1.2rem; line-height: 1.5; max-width: 56ch; color: var(--ink); }
.hero-search { max-width: 560px; margin: 1.5rem 0 0.75rem; }
.hero-note { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ------------------------------------------------------------------
   6. Cards and lists
------------------------------------------------------------------ */
.card { display: flex; flex-direction: column; gap: 0.6rem; }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--rule-soft); }
.card-body { display: flex; flex-direction: column; gap: 0.3rem; }
.topic-link { font-size: 0.875rem; color: var(--verdant-dark); text-decoration: none; font-weight: 600; }
.topic-link:hover { text-decoration: underline; }
.card-title { font-size: 1.25rem; margin: 0; }
.card-title a { color: var(--pine); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--lime); }
.card-excerpt { color: var(--ink); margin: 0; font-size: 0.9875rem; }
.card-meta, .article-meta { color: var(--muted); font-size: 0.875rem; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.article-meta a { color: inherit; }

.card-grid { display: grid; gap: 2rem 1.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card-feature { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.card-feature .card-media img { border-radius: 0; aspect-ratio: 16 / 9; }
.card-feature .card-body { padding: 1.25rem; gap: 0.5rem; }
.card-feature .card-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.card-feature .card-excerpt { font-size: 1.0625rem; }
@media (min-width: 760px) {
	.card-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
	.card-feature .card-media { height: 100%; }
	.card-feature .card-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
	.card-feature .card-body { padding: 2rem; justify-content: center; }
}

.row-list { display: flex; flex-direction: column; }
.card-row { flex-direction: row; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.row-list .card-row:last-child { border-bottom: 1px solid var(--rule); }
.card-row .card-media { flex: 0 0 200px; }
.card-row .card-media img { aspect-ratio: 16 / 9; }
.card-row .card-body { flex: 1 1 auto; }
@media (max-width: 599px) { .card-row { flex-direction: column; gap: 0.75rem; } .card-row .card-media { flex-basis: auto; } }

.card-compact { padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.card-compact .card-title { font-size: 1.05rem; }

/* Topic list on homepage */
.topic-list { display: grid; gap: 0 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.topic-item { padding: 1.25rem 0; border-top: 1px solid var(--rule); display: flex; gap: 1.1rem; align-items: flex-start; }
.topic-media { flex: 0 0 150px; }
.topic-media img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); width: 100%; }
.topic-body { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) { .topic-media { flex-basis: 110px; } }
.topic-item h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.topic-item h3 a { color: var(--pine); text-decoration: none; }
.topic-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.topic-item p { color: var(--muted); font-size: 0.9875rem; margin-bottom: 0.6rem; }
.topic-articles { list-style: none; margin: 0; padding: 0; }
.topic-articles li { padding: 0.3rem 0 0.3rem 1rem; position: relative; font-size: 0.9875rem; }
.topic-articles li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 6px; height: 6px; background: var(--lime); border: 1px solid var(--pine); }
.topic-articles a { color: var(--ink); text-decoration: none; }
.topic-articles a:hover { color: var(--verdant-dark); text-decoration: underline; }

/* Method strip */
.section-method { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.method-grid { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.method-grid h3 { font-size: 1.2rem; padding-left: 0.9rem; border-left: 4px solid var(--lime); }
.method-grid p { margin: 0; font-size: 0.9875rem; }

/* Chips */
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-block; padding: 0.5rem 0.9rem; border: 1px solid var(--pine); border-radius: 999px; text-decoration: none; color: var(--pine); font-weight: 500; font-size: 0.9375rem; min-height: 40px; }
.chip:hover { background: var(--pine); color: #fff; }

/* ------------------------------------------------------------------
   7. Archive pages
------------------------------------------------------------------ */
.archive-header { padding: 2rem 0 1.5rem; max-width: 760px; }
.archive-description { font-size: 1.1rem; max-width: 60ch; }
.archive-count { color: var(--muted); font-size: 0.9375rem; }
.archive-search { max-width: 560px; margin-top: 1rem; }
.category-header { border-bottom: 2px solid var(--pine); margin-bottom: 2rem; max-width: none; }
.category-header.has-image { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: center; padding-bottom: 1.5rem; }
@media (min-width: 760px) { .category-header.has-image { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.category-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.section-feature + section { margin-top: 2.5rem; }
.related-topics { margin: 3rem 0; }
.breadcrumbs { font-size: 0.875rem; margin: 1.25rem 0 0.5rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumbs li + li::before { content: "/"; margin: 0 0.4rem; color: var(--rule); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); }
.pagination, .page-body .pagination, ul.page-numbers { margin: 2rem 0; }
.nav-links, ul.page-numbers { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; }
.page-numbers { display: inline-block; padding: 0.55rem 0.9rem; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--pine); min-height: 44px; }
.page-numbers.current { background: var(--pine); color: #fff; border-color: var(--pine); }
.page-numbers.dots { border: 0; }
.empty-state { max-width: 640px; }
.page-404 { padding-bottom: 3rem; }

/* ------------------------------------------------------------------
   8. Article
------------------------------------------------------------------ */
.article-header { padding-top: 0.5rem; }
.article-header .topic-link { margin-top: 1rem; display: inline-block; }
.article-title { max-width: 22ch; margin: 0.4rem 0 0.6rem; }
.article-standfirst { font-size: 1.2rem; line-height: 1.5; max-width: 60ch; color: var(--ink); }
.disclosure { font-size: 0.875rem; color: var(--muted); border-left: 3px solid var(--lime); padding: 0.4rem 0 0.4rem 0.9rem; max-width: 70ch; margin: 1.25rem 0 0; }
.article-figure { margin: 1.75rem auto 2rem; }
.article-figure { max-width: 960px; }
.article-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.article-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
	.article-layout.has-toc { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
	.article-aside { position: sticky; top: calc(var(--header-h) + 16px); }
}
.article-body { max-width: var(--measure); }
.toc { font-size: 0.9375rem; border-top: 6px solid var(--pine); padding-top: 0.6rem; }
.toc-heading { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--pine); margin: 0 0 0.4rem; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { border-top: 1px solid var(--rule); }
.toc a { display: block; padding: 0.5rem 0; color: var(--ink); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--verdant-dark); text-decoration: underline; }
.article-footer { margin-top: 3rem; padding-bottom: 3rem; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; max-width: var(--measure); font-size: 0.9375rem; }
.author-box .brand-mark { flex: 0 0 auto; margin-top: 0.2rem; }
.author-name { font-weight: 700; margin-bottom: 0.25rem; color: var(--pine); }
.author-box p:last-child { margin: 0; }
.related { margin-top: 3rem; }

/* Entry content */
.entry-content { font-size: 1.0625rem; }
.entry-content > * { max-width: var(--measure); }
.entry-content h2 { margin-top: 2.2em; font-size: 1.75rem; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content p.lead { font-size: 1.2rem; line-height: 1.5; color: var(--pine); font-weight: 500; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--verdant-dark); }
.entry-content strong { color: var(--pine); }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.4em; }
.entry-content blockquote { margin: 1.5em 0; padding: 0.25em 0 0.25em 1.2em; border-left: 4px solid var(--lime); color: var(--ink); font-style: italic; }
.entry-content hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.entry-content a[target="_blank"]::after { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin: 0 0.1em 0 0.2em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg) translateY(-0.1em); opacity: 0.7; }

/* Key takeaways: facts-panel language */
.key-takeaways { background: var(--paper); border-top: 10px solid var(--pine); border-bottom: 4px solid var(--pine); padding: 0.75rem 1.1rem 0.5rem; margin: 1.75em 0 2em; }
.key-takeaways h2 { font-size: 1.5rem; margin: 0 0 0.4rem; padding-bottom: 0.35rem; border-bottom: 6px solid var(--pine); }
.key-takeaways ul { list-style: none; padding: 0; margin: 0; }
.key-takeaways li { padding: 0.55rem 0 0.55rem 1.2rem; border-bottom: 1px solid var(--rule); margin: 0; position: relative; font-size: 1rem; }
.key-takeaways li:last-child { border-bottom: 0; }
.key-takeaways li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; background: var(--lime); border: 1px solid var(--pine); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.75em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; background: var(--paper); border-top: 3px solid var(--pine); }
.entry-content caption { caption-side: top; text-align: left; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--pine); padding: 0 0 0.5rem; }
.entry-content th, .entry-content td { padding: 0.65rem 0.75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.entry-content th { font-weight: 700; color: var(--pine); background: var(--lime-soft); }
.entry-content tbody tr:nth-child(even) td { background: var(--chalk); }
.entry-content tbody th { background: transparent; }

/* In-article photo */
.entry-content .article-inline { margin: 2.25em 0; }
.entry-content .article-inline img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.entry-content .article-inline figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.5em; }
.entry-content .article-inline .credit { color: var(--muted); opacity: 0.8; }
.entry-content .article-inline .credit::before { content: '· '; }

/* Callouts */
.callout { margin: 1.75em 0; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); border-left-width: 6px; }
.callout p:last-child { margin: 0; }
.callout-evidence { border-left-color: var(--verdant); }
.callout-note { border-left-color: var(--lime); background: var(--lime-soft); border-color: var(--lime-soft); border-left-color: var(--pine); }
.callout-warning { border-left-color: var(--danger); }

/* FAQ */
.faq { margin-top: 2.5em; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--pine); padding: 0.9rem 2rem 0.9rem 0; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.25rem; width: 10px; height: 10px; border-right: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.5rem; }
.faq details > p { padding-bottom: 0.5rem; }

/* Sources */
.sources { margin-top: 2.5em; padding-top: 1rem; border-top: 3px solid var(--pine); font-size: 0.9375rem; }
.sources h2 { font-size: 1.35rem; margin-top: 0; }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: 0.5em; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------
   9. Pages & forms
------------------------------------------------------------------ */
.page-layout { padding-bottom: 3rem; }
.page-header { padding-top: 0.5rem; margin-bottom: 1.5rem; }
.page-header h1 { max-width: 22ch; }
.page-updated { color: var(--muted); font-size: 0.875rem; }
.page-body { max-width: var(--measure); }
.contact-form { max-width: 560px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 0.65rem 0.8rem; border: 2px solid var(--rule); border-radius: var(--radius); background: #fff; min-height: 44px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--verdant); outline: none; }
.form-help { font-size: 0.875rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-notice { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin: 1rem 0; border-left: 6px solid; }
.form-ok { background: var(--lime-soft); border-color: var(--verdant); }
.form-error { background: #fbeaea; border-color: var(--danger); }
.contact-ways { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin: 1.5rem 0; }
@media (min-width: 620px) { .contact-ways { grid-template-columns: 1fr 1fr; } }
.contact-ways > div { border-top: 3px solid var(--pine); padding-top: 0.75rem; }
.contact-ways h3 { font-size: 1.15rem; }

/* ------------------------------------------------------------------
   10. Footer
------------------------------------------------------------------ */
.site-footer { background: var(--pine); color: #d9e6df; margin-top: 2rem; padding: 3rem 0 1.5rem; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 0.75rem; }
.site-footer .brand-mark rect:first-of-type { fill: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.footer-about p { max-width: 52ch; }
.footer-note { font-size: 0.875rem; color: #b7cbc1; }
.footer-heading { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: #fff; margin: 0 0 0.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.25); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list a { display: block; padding: 0.4rem 0; text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.8125rem; color: #b7cbc1; }
.footer-bottom p { margin: 0; max-width: none; }

/* ------------------------------------------------------------------
   11. Core block compatibility (minimal)
------------------------------------------------------------------ */
.alignwide, .alignfull { max-width: none; }
.wp-block-image img { border-radius: var(--radius); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--muted); }
.sticky, .bypostauthor, .gallery-caption, .alignleft, .alignright, .aligncenter, .wp-caption { display: initial; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
@media print { .site-header, .site-footer, .toc, .related, .disclosure { display: none; } body { background: #fff; } }
