@charset "UTF-8";

:root {
  --ink: #153E35;
  --ink-deep: #0f3029;
  --ink-soft: #285348;
  --brass: #B48A4B;
  --brass-dark: #795B2E;
  --brass-pale: #e6d6b9;
  --rice: #F7F5EF;
  --paper: #fffdf8;
  --charcoal: #202C28;
  --muted: #5c6863;
  --rule: #d7d0c1;
  --alert: #8c3b32;
  --success: #245d49;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, Georgia, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --container: min(1280px, calc(100% - 64px));
  --reading: min(720px, 100%);
  --header-height: 82px;
  --shadow: 0 18px 50px rgba(16, 48, 41, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--charcoal); background: var(--rice); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }
button, input, select, textarea { font: inherit; }
button, [role="button"] { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
::selection { color: #fff; background: var(--ink); }

.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 10px 16px; color: #fff; background: var(--ink); transform: translateY(-160%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
.container { width: var(--container); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--brass-dark); font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 1px; background: currentColor; content: ""; }
.meta, .small { color: var(--muted); font-size: 14px; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border: 1px solid var(--rule); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.35; }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(215, 208, 193, .72); background: rgba(247, 245, 239, .95); backdrop-filter: blur(14px); }
.topline { min-height: 28px; border-bottom: 1px solid rgba(215, 208, 193, .75); color: var(--muted); font-size: 12px; line-height: 1.25; }
.topline .container { display: flex; align-items: center; justify-content: space-between; min-height: 28px; gap: 16px; }
.site-nav { display: flex; align-items: center; min-height: 64px; gap: 28px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 39px; height: 39px; object-fit: contain; }
.brand strong { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .1em; line-height: 1.3; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; flex: 1; gap: 6px; }
.primary-nav a:not(.btn) { padding: 11px 9px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.primary-nav a:not(.btn):hover, .primary-nav a[aria-current="page"] { color: var(--brass-dark); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.nav-toggle svg { width: 22px; height: 22px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--brass); border-radius: 2px; color: #fff; background: var(--brass); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.btn:hover { border-color: var(--brass-dark); color: #fff; background: var(--brass-dark); transform: translateY(-1px); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: #fff; background: var(--ink); }
.btn-light { border-color: var(--brass-pale); color: var(--paper); background: transparent; }
.btn-light:hover { border-color: var(--brass); color: var(--ink); background: var(--brass); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-compact { padding: clamp(48px, 6vw, 80px) 0; }
.section-paper { background: var(--paper); }
.section-ink { color: var(--paper); background: var(--ink); }
.section-sand { background: #ebe6da; }
.section-head { display: grid; grid-template-columns: minmax(0, .88fr) minmax(280px, .62fr); gap: 32px; align-items: end; margin-bottom: clamp(30px, 4vw, 56px); }
.section-head h2, .section-head h1, h2, h3 { margin-top: 0; font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.22; }
.section-ink h2, .section-ink h3 { color: var(--paper); }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5.65vw, 78px); font-weight: 700; line-height: 1.14; letter-spacing: -.04em; }
h2 { margin-bottom: 18px; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -.025em; }
h3 { margin-bottom: 10px; font-size: clamp(22px, 2vw, 30px); }
p { margin: 0 0 18px; }
.lead { max-width: 35em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(4px); }
.section-ink .text-link { color: var(--brass-pale); }

.hero { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.hero .container { min-height: min(760px, calc(100vh - 92px)); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); align-items: stretch; gap: clamp(40px, 7vw, 100px); }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(72px, 11vw, 150px) 0 clamp(72px, 9vw, 114px); }
.hero h1 { max-width: 8.2em; }
.hero .eyebrow { color: var(--brass-pale); }
.hero .lead { margin: 26px 0 34px; color: #e7ece8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; align-self: stretch; min-height: 480px; margin: 0 calc((min(1280px, calc(100vw - 64px)) - 100vw) / 2) 0 0; }
.hero-art::before { position: absolute; z-index: 1; top: 10%; bottom: 10%; left: -28px; width: 1px; background: var(--brass); content: ""; }
.hero-art img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; filter: saturate(.78) contrast(.95); }
.hero-art::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 62, 53, .67), rgba(21, 62, 53, .03) 53%); content: ""; }
.hero-art figcaption { position: absolute; z-index: 2; right: 20px; bottom: 18px; margin: 0; color: rgba(255,255,255,.84); font-size: 12px; }
.hero-bottom { position: absolute; right: 0; bottom: 0; left: 0; border-top: 1px solid rgba(230, 214, 185, .5); }
.hero-bottom .container { display: flex; align-items: center; min-height: 48px; color: var(--brass-pale); font-size: 12px; letter-spacing: .06em; }

.license-band { position: relative; z-index: 2; margin-top: -1px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.license-band .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.license-band a { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; min-height: 118px; padding: 22px 28px; border-right: 1px solid var(--rule); color: var(--charcoal); text-decoration: none; }
.license-band a:first-child { border-left: 1px solid var(--rule); }
.license-band strong { color: var(--ink); font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.license-band span { font-size: 13px; line-height: 1.55; }
.license-band a:hover { color: var(--ink); background: #f3efe5; }

.editorial-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.editorial-grid > * { min-width: 0; }
.statement { grid-column: span 5; padding-top: 12px; }
.statement h2 { max-width: 8em; }
.statement .lead { font-size: 17px; }
.flow-diagram { grid-column: span 7; display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; margin-top: 8px; border-top: 1px solid var(--brass); }
.flow-diagram div { position: relative; padding: 22px 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.flow-diagram div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.flow-diagram strong { display: block; margin-bottom: 7px; color: var(--ink); font-family: var(--serif); font-size: 20px; }
.flow-diagram .flow-no { color: var(--brass-dark); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; }

.license-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.license-page { display: flex; flex-direction: column; border-top: 2px solid var(--brass); background: var(--paper); }
.license-page-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.license-page-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: transform .35s ease; }
.license-page:hover .license-page-media img { transform: scale(1.035); }
.license-page-body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.license-code { margin: 0 0 16px; color: var(--brass-dark); font-family: var(--serif); font-size: clamp(46px, 5vw, 68px); line-height: .9; letter-spacing: -.04em; }
.license-page h3 { margin-bottom: 8px; font-size: 25px; }
.license-page p { color: var(--muted); font-size: 15px; }
.license-page .text-link { margin-top: auto; padding-top: 16px; }

.split-route { display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(28px, 5vw, 76px); align-items: stretch; }
.split-rule { background: var(--brass); }
.route-panel { max-width: 525px; }
.route-panel h3 { font-size: clamp(28px, 2.6vw, 38px); }
.route-panel ul { padding: 0; margin: 24px 0 28px; list-style: none; }
.route-panel li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(215,208,193,.9); }
.route-panel li::before { color: var(--brass-dark); content: "—"; }
.route-panel .label { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }

.table-wrap { overflow-x: auto; border-top: 2px solid var(--brass); background: var(--paper); }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare-table caption { padding: 14px 18px; color: var(--muted); font-size: 13px; text-align: left; }
.compare-table th, .compare-table td { padding: 18px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
.compare-table th { color: var(--ink); font-size: 13px; letter-spacing: .04em; }
.compare-table th:first-child, .compare-table td:first-child { position: sticky; z-index: 1; left: 0; width: 20%; background: var(--paper); color: var(--ink); font-weight: 700; }
.compare-table td { line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--brass); }
.steps > li { position: relative; padding: 24px 24px 0 0; list-style: none; }
.steps > li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.step-no { display: block; margin-bottom: 28px; color: var(--brass-dark); font-family: var(--serif); font-size: 34px; line-height: 1; }
.steps strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 16px; }
.steps span { color: var(--muted); font-size: 14px; line-height: 1.65; }

.media-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 470px; background: var(--ink); }
.media-feature figure { position: relative; margin: 0; min-height: 360px; overflow: hidden; }
.media-feature figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.media-feature figcaption { position: absolute; right: 16px; bottom: 12px; left: 16px; color: rgba(255,255,255,.8); font-size: 12px; }
.media-feature-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 6vw, 84px); color: #dce5df; }
.media-feature-content h2 { max-width: 8em; }
.media-feature-content p { max-width: 33em; }

.faq-gateway { padding: clamp(38px, 6vw, 72px); border-top: 1px solid var(--brass); background: #eae3d4; }
.faq-gateway h2 { max-width: 8.5em; }
.faq-search { display: flex; max-width: 790px; margin-top: 26px; border: 1px solid var(--ink); background: var(--paper); }
.faq-search input { min-width: 0; flex: 1; padding: 15px 18px; border: 0; color: var(--charcoal); background: transparent; outline: 0; }
.faq-search input:focus { box-shadow: inset 0 0 0 2px var(--brass); }
.faq-search button { min-width: 92px; border: 0; color: #fff; background: var(--ink); font-weight: 700; }
.faq-search button:hover { background: var(--brass-dark); }
.faq-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.faq-suggestions a { padding: 4px 8px; border: 1px solid var(--rule); color: var(--ink); font-size: 13px; text-decoration: none; }

.author-block { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: clamp(32px, 7vw, 100px); align-items: center; }
.author-portrait { width: min(100%, 280px); margin: auto; border-bottom: 1px solid var(--brass); background: #e8e4da; }
.author-portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.author-copy h2 { max-width: 9em; }
.author-line { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 20px 0; color: var(--muted); font-size: 14px; }
.author-line strong { color: var(--ink); }

.consultation { position: relative; overflow: hidden; color: var(--paper); background: var(--ink-deep); }
.consultation::before { position: absolute; top: 0; right: 7%; width: 28vw; max-width: 410px; height: 1px; background: var(--brass); content: ""; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr); gap: clamp(44px, 8vw, 130px); align-items: start; }
.contact-grid h2 { color: var(--paper); }
.contact-details { margin: 30px 0 0; padding: 0; list-style: none; }
.contact-details li { padding: 11px 0; border-top: 1px solid rgba(230,214,185,.33); color: #d8e1db; }
.contact-details a { color: var(--brass-pale); }
.contact-details strong { display: block; color: var(--paper); font-size: 13px; letter-spacing: .04em; }
.contact-form { padding: clamp(22px, 3vw, 38px); color: var(--charcoal); background: var(--paper); }
.contact-form h3 { margin-bottom: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .consent label { color: var(--ink); font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid #aaa89f; border-radius: 1px; color: var(--charcoal); background: #fff; }
.field textarea { min-height: 126px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--brass-pale); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; }
.consent input { width: 20px; height: 20px; flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--ink); }
.consent label { font-weight: 500; line-height: 1.65; }
.form-note { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.form-status { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; font-weight: 700; }
.form-status.is-error { color: var(--alert); }
.form-status.is-success { color: var(--success); }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

.page-hero { padding: clamp(64px, 10vw, 128px) 0 clamp(54px, 8vw, 96px); color: var(--paper); background: var(--ink); }
.page-hero .eyebrow { color: var(--brass-pale); }
.page-hero h1 { max-width: 12em; }
.page-hero .lead { margin-top: 22px; color: #dce5df; }
.page-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--brass-pale); font-size: 13px; }
.guide-layout { display: grid; grid-template-columns: minmax(188px, .33fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-height) + 24px); border-top: 1px solid var(--brass); }
.toc strong { display: block; padding: 13px 0 10px; color: var(--ink); font-size: 13px; }
.toc a { display: block; padding: 9px 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; line-height: 1.5; text-decoration: none; }
.toc a:hover { color: var(--brass-dark); }
.prose { max-width: var(--reading); }
.prose h2, .chapter h2 { padding-top: 18px; }
.prose h3 { margin-top: 34px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.35em; }
.prose li { padding-left: .2em; margin: 7px 0; }
.chapter { padding: 38px 0 52px; border-top: 1px solid var(--rule); }
.chapter:first-child { padding-top: 0; border-top: 0; }
.chapter-no { display: block; margin-bottom: 12px; color: var(--brass-dark); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.callout { margin: 30px 0; padding: 22px 24px; border-left: 2px solid var(--brass); background: #eee9dc; }
.callout strong { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 24px; border-top: 2px solid var(--brass); background: var(--paper); }
.card h3 { font-size: 22px; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.notice { margin: 24px 0; padding: 14px 16px; border: 1px solid var(--rule); color: var(--muted); background: var(--paper); font-size: 14px; }
.source-list { margin: 24px 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.source-list li { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.source-list a { color: var(--ink); font-weight: 700; }

.faq-controls { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 12px; margin-bottom: 18px; }
.faq-controls input, .faq-controls select { min-height: 46px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); }
.faq-results { border-top: 1px solid var(--rule); }
.faq-results details { padding: 17px 0; border-bottom: 1px solid var(--rule); }
.faq-results summary { color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.faq-results details > div { padding: 14px 0 4px; }
.faq-results .faq-result-link { color: var(--brass-dark); font-size: 13px; font-weight: 700; }
.faq-results .faq-result-meta { color: var(--muted); font-size: 12px; }
.hash-target { outline: 2px solid var(--brass); outline-offset: 5px; background: #f1eadb; transition: outline-color .25s ease, background .25s ease; }
.load-more { margin-top: 20px; }

.site-footer { color: #d9e2dc; background: var(--ink-deep); }
.footer-main { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 48px; padding: 66px 0 42px; }
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand strong { display: block; color: var(--paper); font-family: var(--serif); font-size: 20px; }
.footer-brand p { margin-top: 12px; color: #c1cec6; font-size: 14px; line-height: 1.7; }
.footer-group h2 { margin-bottom: 13px; color: var(--brass-pale); font-family: var(--sans); font-size: 13px; letter-spacing: .1em; }
.footer-group a { display: block; padding: 4px 0; color: #d9e2dc; font-size: 14px; text-decoration: none; }
.footer-group a:hover { color: var(--brass-pale); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(230,214,185,.32); color: #aebeb5; font-size: 12px; }
.footer-bottom p { margin: 0; }

@media (max-width: 1060px) {
  :root { --container: min(100% - 48px, 1280px); }
  .primary-nav { gap: 0; }
  .primary-nav a:not(.btn) { padding-inline: 6px; font-size: 13px; }
  .hero .container { grid-template-columns: 1.03fr .97fr; }
  .hero-art { margin-right: calc((min(100vw - 48px, 1280px) - 100vw) / 2); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-height: 64px; --container: calc(100% - 40px); }
  .topline { display: none; }
  .site-nav { min-height: 64px; }
  .brand img { width: 36px; height: 36px; }
  .brand small { display: none; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; top: 64px; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 14px 20px 20px; border-bottom: 1px solid var(--rule); background: var(--rice); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.btn) { min-height: 44px; padding: 12px 4px; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .primary-nav .btn { margin-top: 14px; }
  .hero .container { min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 76px 0 45px; }
  .hero-art { min-height: auto; margin: 0; }
  .hero-art::before { top: -1px; right: 0; bottom: auto; left: 0; width: 42%; height: 1px; }
  .hero-art img { min-height: 390px; height: 57vw; }
  .hero-bottom { position: static; }
  .license-band .container { width: 100%; overflow-x: auto; }
  .license-band a { min-width: 230px; min-height: 100px; padding: 18px; }
  .editorial-grid { grid-template-columns: 1fr; }
  .statement, .flow-diagram { grid-column: 1; }
  .split-route { gap: 34px; grid-template-columns: 1fr; }
  .split-rule { width: 100%; height: 1px; }
  .steps { grid-template-columns: 1fr; }
  .steps > li, .steps > li + li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 19px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .step-no { margin: 0; }
  .media-feature { grid-template-columns: 1fr; }
  .media-feature figure { min-height: 300px; }
  .guide-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc details summary { min-height: 44px; padding: 10px 0; color: var(--ink); font-weight: 700; cursor: pointer; }
  .toc:not(:has(details)) { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 32px); }
  body { font-size: 16px; }
  h1 { font-size: clamp(42px, 12vw, 56px); }
  .section { padding: 60px 0; }
  .section-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 30px; }
  .hero-copy { padding-top: 64px; }
  .hero .lead { margin: 20px 0 28px; }
  .hero-actions .btn { width: 100%; }
  .hero-art img { height: 70vw; min-height: 295px; }
  .license-pages { grid-template-columns: 1fr; gap: 16px; }
  .license-page-body { padding: 23px; }
  .flow-diagram { grid-template-columns: 1fr 1fr; }
  .flow-diagram div { padding: 18px 14px 0 0; }
  .flow-diagram div:nth-child(3) { padding-left: 0; border-left: 0; }
  .flow-diagram div:nth-child(n+3) { margin-top: 18px; }
  .media-feature-content, .faq-gateway { padding: 30px 24px; }
  .author-block { grid-template-columns: 1fr; gap: 30px; }
  .author-portrait { max-width: 200px; margin-left: 0; }
  .form-grid, .faq-controls { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .contact-form { padding: 22px; }
  .faq-search { flex-direction: column; }
  .faq-search button { min-height: 46px; }
  .page-hero { padding: 62px 0 58px; }
  .cards { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 30px; }
  .footer-main > :first-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 8px; }
}

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