:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-soft: #edf2ec;
  --ink: #17221e;
  --muted: #607069;
  --line: #d9dfda;
  --brand: #174d3b;
  --brand-2: #0e372a;
  --accent: #e78047;
  --accent-soft: #fae9de;
  --danger: #9a3d35;
  --warning-bg: #fff3dc;
  --shadow: 0 18px 50px rgba(20, 49, 39, .09);
  --shadow-small: 0 8px 24px rgba(20, 49, 39, .08);
  --radius: 20px;
  --radius-small: 12px;
  --container: 1180px;
  --header-h: 78px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
svg { display: block; }
::selection { background: #bcd8ca; color: var(--brand-2); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-150%);
  padding: 10px 16px; background: var(--brand-2); color: #fff; border-radius: 8px;
}
.skip-link:focus { transform: none; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Header */
.site-header {
  position: sticky; z-index: 100; top: 0; height: var(--header-h);
  border-bottom: 1px solid rgba(23, 77, 59, .12);
  background: rgba(246, 244, 238, .92); backdrop-filter: blur(16px);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  color: #fff; background: var(--brand); box-shadow: 0 8px 18px rgba(23, 77, 59, .2);
}
.brand-icon { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; line-height: 1.1; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.primary-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.primary-nav a { color: #35443e; font-size: 15px; font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--brand); }
.header-search { display: flex; width: 210px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.header-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 77, 59, .12); }
.header-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0 4px 0 15px; color: var(--ink); background: transparent; font-size: 14px; }
.header-search button { display: grid; place-items: center; width: 42px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle { display: none; align-items: center; gap: 8px; border: 0; background: transparent; font-weight: 700; cursor: pointer; }

/* General typography and controls */
h1, h2, h3 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 6vw, 74px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
.eyebrow { display: inline-block; margin-bottom: 15px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .13em; line-height: 1.3; text-transform: uppercase; }
.eyebrow-light { color: #c7e2d4; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 750; line-height: 1.2; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #e5a87c; outline-offset: 3px; }
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(23, 77, 59, .22); }
.button-primary:hover { background: var(--brand-2); }
.button-ghost { border-color: rgba(23, 77, 59, .25); color: var(--brand); background: transparent; }
.button-light { background: #fff; color: var(--brand-2); box-shadow: var(--shadow-small); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 750; text-decoration: none; }
.text-link .icon, .button .icon { transition: transform .18s ease; }
.text-link:hover .icon, .button:hover .icon { transform: translateX(3px); }

/* Home hero */
.hero { position: relative; overflow: hidden; padding: 74px 0 84px; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -170px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 154, 105, .25), rgba(226, 154, 105, 0) 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.hero-copy h1 { max-width: 850px; }
.hero-copy > p { max-width: 690px; margin: 27px 0 31px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 30px 0 0; padding: 0; list-style: none; color: #46564f; font-size: 14px; font-weight: 650; }
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list .icon { color: var(--brand); }
.hero-visual { position: relative; min-width: 0; }
.hero-visual > img { filter: drop-shadow(0 24px 45px rgba(21, 57, 44, .14)); }
.floating-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid rgba(23, 77, 59, .12); border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-small); }
.floating-card strong { color: var(--brand); font: 700 30px/1 Georgia, serif; }
.floating-card span { max-width: 120px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.floating-card-a { left: -18px; bottom: 17%; }
.floating-card-b { right: -8px; top: 16%; }

/* Sections and cards */
.section { padding: 92px 0; }
.section-soft { background: var(--surface-soft); }
.section-dark { background: var(--brand-2); color: #eaf4ef; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading p { margin: 17px 0 0; color: var(--muted); font-size: 18px; }
.section-heading.compact { max-width: 690px; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.split-heading .section-heading { margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { padding: 29px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 7px 24px rgba(22, 57, 44, .04); }
.feature-card .icon, .feature-card .feature-icon { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 25px; color: var(--brand); }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: 15px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-chip { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: #44534d; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--brand); color: #fff; background: var(--brand); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.guide-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 43% 57%; min-height: 330px; border: 1px solid rgba(23, 77, 59, .12); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); transition: transform .2s ease, box-shadow .2s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-card[hidden] { display: none; }
.guide-image { display: grid; place-items: center; min-height: 100%; padding: 22px; background: var(--accent-soft); }
.guide-image img { width: 100%; max-height: 260px; object-fit: contain; }
.guide-card-body { display: flex; flex-direction: column; padding: 27px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 17px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.guide-card h3 { margin-bottom: 13px; }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card p { color: var(--muted); font-size: 14px; }
.guide-card .text-link { position: relative; z-index: 1; margin-top: auto; }
.compact-card { display: block; min-height: 285px; }
.compact-card .guide-card-body { height: 100%; }

.editorial-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.section-dark h2 { color: #fff; }
.section-dark p { color: #bfd0c8; }
.editorial-steps { margin: 0; padding: 0; list-style: none; }
.editorial-steps li { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.editorial-steps li > span { color: #e7a271; font: 700 25px/1 Georgia, serif; }
.editorial-steps strong { color: #fff; font-size: 17px; }
.editorial-steps p { margin: 6px 0 0; font-size: 14px; }
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 44px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-small); }
.contact-strip h2 { font-size: clamp(30px, 4vw, 43px); }
.contact-strip p { margin: 13px 0 0; color: var(--muted); }

/* Breadcrumb and articles */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 26px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--brand); }
.article { --accent: #e78047; --accent-soft: #fae9de; }
.article-hero { padding: 36px 0 66px; }
.article-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-bottom: 23px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.article-kicker span:first-child { color: var(--brand); }
.article-hero h1 { font-size: clamp(42px, 5.8vw, 69px); }
.article-deck { margin: 24px 0 27px; color: var(--muted); font-size: 19px; }
.author-row { display: flex; align-items: center; gap: 12px; }
.author-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--brand); background: var(--accent-soft); }
.author-row strong, .author-row span { display: block; }
.author-row strong { font-size: 14px; }
.author-row div > span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.article-cover { margin: 0; padding: 24px; border-radius: 28px; background: var(--accent-soft); box-shadow: var(--shadow-small); }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: center; gap: 62px; padding-bottom: 90px; }
.article-toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.74); }
.article-toc strong { display: block; margin-bottom: 11px; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.article-toc nav { display: grid; gap: 4px; }
.article-toc a { padding: 6px 7px; border-left: 2px solid transparent; color: var(--muted); font-size: 13px; line-height: 1.35; text-decoration: none; }
.article-toc a:hover, .article-toc a.is-current { border-left-color: var(--accent); color: var(--brand); }
.article-content { min-width: 0; }
.article-content > section { scroll-margin-top: calc(var(--header-h) + 28px); }
.article-lead { padding: 30px; border-left: 5px solid var(--accent); border-radius: 0 var(--radius-small) var(--radius-small) 0; background: #fff; box-shadow: var(--shadow-small); }
.article-lead p { color: #35433e; font-size: 19px; }
.article-lead p:last-child { margin-bottom: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 52px; }
.facts-grid div { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.62); }
.facts-grid span, .facts-grid strong { display: block; }
.facts-grid span { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.facts-grid strong { font-size: 14px; line-height: 1.4; }
.content-section { margin-top: 58px; }
.content-section h2 { margin-bottom: 24px; }
.content-section h3 { margin: 0 0 7px; font-size: 21px; }
.content-section p, .content-section > ul { color: #3e4d47; }
.content-section p + p { margin-top: 1em; }
.check-list, .plain-list { display: grid; gap: 13px; margin: 24px 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; }
.check-list li > .icon { width: 21px; height: 21px; margin-top: 2px; padding: 3px; border-radius: 50%; color: #fff; background: var(--brand); }
.table-scroll { margin: 27px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 14px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--brand-2); background: #eaf0eb; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.steps-list { margin: 30px 0 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; position: relative; padding-bottom: 25px; }
.steps-list li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 45px; bottom: 1px; width: 1px; background: var(--line); }
.steps-list li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--brand); background: var(--accent-soft); font-weight: 800; font-size: 13px; }
.steps-list p { margin: 0; font-size: 15px; }
.warning-section { display: grid; grid-template-columns: 54px 1fr; gap: 19px; padding: 29px; border: 1px solid #edcda1; border-radius: var(--radius); background: var(--warning-bg); }
.section-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: #9a5a22; background: #fff; }
.section-icon .icon { width: 27px; height: 27px; }
.warning-section h2 { margin-bottom: 15px; font-size: 32px; }
.warning-section ul { margin: 0; padding-left: 20px; }
.checklist-section { padding: 34px; border-radius: var(--radius); color: #fff; background: var(--brand-2); }
.checklist-section h2 { color: #fff; }
.checklist-section .eyebrow { color: #bde0d0; }
.checklist-section .check-list { grid-template-columns: repeat(2, 1fr); }
.checklist-section .check-list li > .icon { color: var(--brand-2); background: #c8e8d9; }
.term-list { margin-top: 26px; border-top: 1px solid var(--line); }
.term-row { display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.term-row h3 { font: 750 16px/1.45 Inter, sans-serif; letter-spacing: 0; }
.term-row p { margin: 0; font-size: 14px; }
.faq-list { display: grid; gap: 10px; margin-top: 25px; }
.faq-list details { border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { transition: transform .18s ease; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.related-section { border-top: 1px solid var(--line); }

/* Static pages, contact, search, errors */
.page-hero, .search-hero { padding: 72px 0 50px; text-align: center; }
.page-hero p, .search-hero p { max-width: 720px; margin: 20px auto 0; color: var(--muted); font-size: 19px; }
.page-content { padding-bottom: 90px; }
.page-content h2 { margin: 48px 0 18px; font-size: 36px; }
.page-content h3 { margin: 34px 0 12px; font-size: 25px; }
.page-content p, .page-content li { color: #3e4d47; }
.page-content ul, .page-content ol { padding-left: 22px; }
.note-card { margin: 30px 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fff; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; padding-bottom: 90px; }
.contact-copy h1 { font-size: clamp(40px, 5vw, 62px); }
.contact-copy p { margin-top: 22px; color: var(--muted); }
.form-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-small); }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 7px; color: #34433d; font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form textarea, .big-search input {
  width: 100%; border: 1px solid #cbd4cf; border-radius: 11px; outline: 0; color: var(--ink); background: #fff;
}
.contact-form input { height: 48px; padding: 0 13px; }
.contact-form textarea { min-height: 170px; padding: 12px 13px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .big-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,77,59,.12); }
.form-note { margin: 0; color: var(--muted); font-size: 12px; }
.honeypot { position: absolute; left: -10000px; }
.alert { margin-bottom: 20px; padding: 13px 16px; border-radius: 10px; font-size: 14px; }
.alert-success { color: #174d3b; background: #daf0e4; }
.alert-error { color: #84342d; background: #f8dedb; }
.big-search { display: flex; max-width: 710px; margin: 29px auto 0; padding: 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-small); }
.big-search input { height: 48px; padding: 0 18px; border: 0; border-radius: 999px; }
.big-search button { width: auto; min-width: 112px; padding: 0 18px; border: 0; border-radius: 999px; color: #fff; background: var(--brand); cursor: pointer; }
.search-results { padding-bottom: 90px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.results-head h2 { font-size: 34px; }
.results-head span { color: var(--muted); font-size: 14px; }
.search-list { display: grid; gap: 14px; }
.search-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 23px; align-items: center; padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.search-item > img { width: 180px; border-radius: 12px; background: var(--accent-soft); }
.search-item h3 { font-size: 26px; }
.search-item h3 a { text-decoration: none; }
.search-item p { margin: 10px 0; color: var(--muted); font-size: 15px; }
.match-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.match-tags span { padding: 5px 9px; border-radius: 999px; color: var(--brand); background: var(--surface-soft); font-size: 11px; font-weight: 700; }
.empty-icon { width: 46px; height: 46px; margin: 0 auto 18px; color: var(--brand); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.empty-state { padding: 48px; border: 1px dashed #bfcac4; border-radius: var(--radius); text-align: center; }
.error-screen { display: grid; place-items: center; min-height: calc(100vh - var(--header-h)); padding: 70px 20px; text-align: center; }
.error-code { display: block; color: #d99565; font: 700 100px/.9 Georgia, serif; }
.error-screen p { max-width: 580px; margin: 20px auto 27px; color: var(--muted); }

/* Footer */
.site-footer { padding: 65px 0 20px; color: #cad8d1; background: #112b22; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .65fr .65fr; gap: 70px; }
.brand-footer { color: #fff; }
.brand-footer small { color: #9fb2a9; }
.footer-note { max-width: 470px; margin: 22px 0 0; color: #91a69c; font-size: 13px; }
.footer-grid h2 { margin-bottom: 16px; color: #fff; font: 750 13px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid > div:not(:first-child) a { color: #b2c3bb; font-size: 14px; text-decoration: none; }
.footer-grid > div:not(:first-child) a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #80968b; font-size: 12px; }

/* Responsive */
@media (max-width: 1060px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: 14px; }
  .header-search { width: 180px; }
  .hero-grid, .article-hero-grid { gap: 38px; }
  .guide-card { grid-template-columns: 38% 62%; }
  .guide-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .container, .narrow { width: min(calc(100% - 30px), var(--container)); }
  .header-row { gap: 14px; }
  .brand small { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .primary-nav {
    position: fixed; left: 15px; right: 15px; top: calc(var(--header-h) + 8px); display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 11px 12px; border-radius: 8px; }
  .primary-nav a:hover { background: var(--surface-soft); }
  .header-search { width: 42px; }
  .header-search input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .hero { padding-top: 52px; }
  .hero-grid, .article-hero-grid, .editorial-grid, .contact-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .trust-list { justify-content: center; }
  .hero-visual { max-width: 620px; margin: 0 auto; }
  .article-hero-copy { text-align: center; }
  .article-kicker, .author-row { justify-content: center; }
  .article-cover { max-width: 700px; margin-inline: auto; }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-toc { position: static; margin-bottom: 25px; }
  .article-toc nav { grid-template-columns: repeat(3, 1fr); }
  .article-toc a { border-left: 0; border-bottom: 2px solid transparent; }
  .article-toc a:hover, .article-toc a.is-current { border-bottom-color: var(--accent); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: 45px 1fr; column-gap: 18px; }
  .feature-card .icon, .feature-card .feature-icon { grid-row: 1 / 3; }
  .feature-card p { margin-bottom: 0; }
  .editorial-grid { gap: 35px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 46px 0 62px; }
  h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-copy > p, .article-deck { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .floating-card { transform: scale(.9); }
  .floating-card-a { left: -10px; bottom: 8%; }
  .floating-card-b { right: -12px; top: 6%; }
  .split-heading { display: block; }
  .filter-row { margin-top: 20px; }
  .guide-grid, .guide-grid-3 { grid-template-columns: 1fr; }
  .guide-card { grid-template-columns: 37% 63%; min-height: 280px; }
  .guide-card-body { padding: 21px; }
  .guide-card h3 { font-size: 21px; }
  .contact-strip { align-items: flex-start; flex-direction: column; padding: 29px; }
  .contact-strip .button { width: 100%; }
  .article-hero { padding-bottom: 45px; }
  .article-hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .article-layout { width: min(calc(100% - 30px), 760px); }
  .article-toc nav { grid-template-columns: repeat(2, 1fr); }
  .article-lead { padding: 22px; }
  .article-lead p { font-size: 17px; }
  .facts-grid { grid-template-columns: 1fr; }
  .content-section { margin-top: 46px; }
  .content-section h2 { font-size: 34px; }
  .warning-section { grid-template-columns: 1fr; }
  .checklist-section { padding: 26px; }
  .checklist-section .check-list { grid-template-columns: 1fr; }
  .term-row { grid-template-columns: 1fr; gap: 6px; }
  .contact-layout { gap: 35px; }
  .form-card { padding: 23px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .search-item { grid-template-columns: 1fr; }
  .search-item > img { width: 100%; max-height: 190px; object-fit: cover; }
}

@media (max-width: 470px) {
  .container, .narrow { width: min(calc(100% - 24px), var(--container)); }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 15px; }
  .menu-toggle span { display: none; }
  .guide-card { grid-template-columns: 1fr; }
  .guide-image { min-height: 190px; }
  .guide-image img { max-height: 170px; }
  .article-layout { width: min(calc(100% - 24px), 760px); }
  .article-toc nav { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .empty-state { padding: 30px 20px; }
}

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

@media print {
  .site-header, .site-footer, .article-toc, .related-section, .button { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .article-layout, .article-hero-grid { display: block; }
  .article-cover { max-width: 500px; margin: 20px auto; box-shadow: none; }
  .content-section { break-inside: avoid; }
}

/* Category hubs and expanded content library */
.hero-search {
  display: flex;
  width: min(100%, 650px);
  min-height: 58px;
  margin-top: 24px;
  padding: 6px;
  border: 1px solid rgba(23, 77, 59, .17);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-small);
}
.hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,77,59,.12), var(--shadow-small); }
.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px 0 18px;
  color: var(--ink);
  background: transparent;
}
.hero-search button {
  min-width: 118px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.hero-search button:hover { background: var(--brand-2); }

.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.category-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 41% 59%;
  min-height: 286px;
  border: 1px solid rgba(23, 77, 59, .12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-small);
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card-image {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 18px;
  background: var(--accent-soft);
}
.category-card-image img { width: 100%; max-height: 245px; object-fit: contain; border-radius: 14px; }
.category-card-body { display: flex; flex-direction: column; min-width: 0; padding: 28px; }
.category-card .card-meta { justify-content: flex-start; color: var(--accent); }
.category-card h3 { margin-bottom: 12px; font-size: 27px; }
.category-card h3 a { text-decoration: none; }
.category-card h3 a::after { content: ""; position: absolute; inset: 0; }
.category-card p { color: var(--muted); font-size: 14px; }
.category-card .text-link { position: relative; z-index: 1; margin-top: auto; }

.category-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 78px;
}
.category-hero::before {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  right: -220px;
  top: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), rgba(255,255,255,0) 68%);
  opacity: .85;
  pointer-events: none;
}
.category-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; }
.category-hero h1 { font-size: clamp(43px, 5.7vw, 68px); }
.category-hero p { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: 19px; }
.category-hero-image {
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(23, 77, 59, .1);
  border-radius: 28px;
  background: var(--accent-soft);
  box-shadow: var(--shadow-small);
}
.category-hero-image img { width: 100%; }
.category-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 27px; }
.category-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #40514a;
  font-size: 13px;
  font-weight: 700;
}
.category-trust .icon { color: var(--accent); }
.category-method { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: 72px; }
.category-method h2 { max-width: 520px; }
.light-steps li { border-bottom-color: rgba(23,77,59,.14); }
.light-steps li > span { color: var(--accent); }
.light-steps strong { color: var(--ink); }
.light-steps p { color: var(--muted); }
.article-kicker a { color: var(--brand); text-decoration: none; }
.article-kicker a:hover { color: var(--brand-2); text-decoration: underline; }

@media (max-width: 1060px) {
  .category-card { grid-template-columns: 36% 64%; }
  .category-card-body { padding: 24px; }
  .category-card h3 { font-size: 24px; }
  .category-hero-grid { gap: 38px; }
}

@media (max-width: 880px) {
  .hero-search { margin-inline: auto; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { grid-template-columns: 34% 66%; min-height: 260px; }
  .category-hero-grid, .category-method { grid-template-columns: 1fr; }
  .category-hero-grid { gap: 38px; text-align: center; }
  .category-hero p { margin-inline: auto; }
  .category-trust { justify-content: center; }
  .category-hero-image { max-width: 700px; margin-inline: auto; }
  .category-method { gap: 32px; }
}

@media (max-width: 680px) {
  .hero-search { min-height: 54px; }
  .hero-search button { min-width: 104px; }
  .category-card { grid-template-columns: 37% 63%; min-height: 245px; }
  .category-card-body { padding: 21px; }
  .category-card h3 { font-size: 22px; }
  .category-hero { padding: 26px 0 58px; }
  .category-hero p { font-size: 17px; }
  .category-hero-image { padding: 18px; }
}

@media (max-width: 470px) {
  .hero-search { display: grid; padding: 7px; border-radius: 18px; }
  .hero-search input { min-height: 46px; padding-inline: 12px; text-align: center; }
  .hero-search button { min-height: 46px; width: 100%; }
  .category-card { grid-template-columns: 1fr; }
  .category-card-image { min-height: 190px; }
  .category-card-image img { max-height: 180px; }
  .category-card-body { min-height: 230px; }
}

.category-card-body > span:first-child {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-search button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
