:root {
    --brand: #C84A5A;
    --brand-deep: #9e3444;
    --support: #D08A48;
    --accent: #E59A3A;
    --ink: #121214;
    --bg: #17171A;
    --panel: #222226;
    --panel-soft: #29292f;
    --text: #F1EEEE;
    --muted: #A9A3A6;
    --line: rgba(241, 238, 238, 0.12);
    --line-strong: rgba(241, 238, 238, 0.2);
    --success: #a7c7a0;
    --warning: #e3b066;
    --danger: #dd7c85;
    --shell: min(1180px, calc(100% - 40px));
    --reading: min(790px, calc(100% - 40px));
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}

body.modal-open,
body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #fff;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

p,
ul,
ol,
blockquote {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3.2vw, 3rem);
}

h3 {
    font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

::selection {
    background: rgba(200, 74, 90, 0.45);
    color: #fff;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.reading-shell {
    width: var(--reading);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    transform: translateY(-160%);
    z-index: 9999;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #111;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e7b270;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.section-kicker {
    color: var(--support);
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: 0.03em;
}

.lead {
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    color: #d6d0d2;
    line-height: 1.8;
}

.muted {
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #efb36a;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(239, 179, 106, 0.35);
    text-underline-offset: 5px;
}

.text-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.text-link:hover::after {
    transform: translateX(4px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(241, 238, 238, 0.42);
}

.button-accent {
    border-color: var(--accent);
    background: var(--accent);
    color: #23150a;
}

.button-brand {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.button-quiet {
    background: rgba(255,255,255,0.045);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(18, 18, 20, 0.92);
    backdrop-filter: blur(18px);
}

.header-row {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--panel);
    border: 1px solid var(--line);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.7rem;
}

.primary-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.primary-nav a {
    padding: 9px 11px;
    border-radius: 999px;
    color: #c5bfc2;
    font-size: 0.91rem;
    font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    background: rgba(200, 74, 90, 0.12);
    color: #fff;
}

.search-open,
.nav-toggle,
.icon-close {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.search-open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #d9d4d5;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--text);
    border-radius: 2px;
}

.search-modal[hidden] {
    display: none !important;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: start center;
    padding: 10vh 20px 20px;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 5, 0.78);
    backdrop-filter: blur(7px);
}

.search-panel {
    position: relative;
    width: min(720px, 100%);
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: #1d1d21;
    box-shadow: var(--shadow);
}

.search-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.search-panel h2 {
    margin-top: 8px;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.icon-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
}

.search-form {
    margin-top: 30px;
}

.search-form label {
    display: block;
    margin-bottom: 10px;
    color: #c6c1c3;
    font-size: 0.9rem;
}

.search-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-input-row input,
.inline-search input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    outline: none;
    background: #141416;
    color: #fff;
}

.search-input-row input:focus,
.inline-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(229, 154, 58, 0.12);
}

.search-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.breadcrumbs {
    width: var(--shell);
    margin: 24px auto 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.84rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #5d595b;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: min(820px, calc(100vh - 72px));
    display: grid;
    align-items: end;
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 14% 18%, rgba(200,74,90,0.18), transparent 30%),
        radial-gradient(circle at 80% 34%, rgba(208,138,72,0.11), transparent 28%),
        #151517;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.72fr);
    gap: clamp(34px, 6vw, 86px);
    align-items: end;
}

.home-hero-copy {
    max-width: 780px;
}

.home-hero h1 {
    margin-top: 18px;
    max-width: 820px;
}

.home-hero .lead {
    max-width: 720px;
    margin: 26px 0 0;
}

.hero-actions {
    margin-top: 30px;
}

.hero-facts {
    display: grid;
    gap: 1px;
    margin-top: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line);
}

.hero-fact {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 18px 20px;
    background: rgba(23, 23, 26, 0.88);
}

.hero-fact strong {
    color: #fff;
}

.hero-fact span {
    color: var(--muted);
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    filter: saturate(0.82) contrast(1.04);
}

.hero-visual figcaption {
    position: absolute;
    left: -20px;
    bottom: 26px;
    width: min(360px, calc(100% + 20px));
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(18,18,20,0.9);
    color: #ddd7d9;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.section {
    padding: clamp(72px, 9vw, 124px) 0;
}

.section-tight {
    padding: clamp(48px, 6vw, 78px) 0;
}

.section-alt {
    background: var(--ink);
    border-block: 1px solid var(--line);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.55fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 44px;
}

.section-head h2 {
    max-width: 720px;
    margin-top: 10px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.intent-strip {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.intent-intro,
.intent-item {
    padding: 28px;
    min-height: 190px;
    border-right: 1px solid var(--line);
}

.intent-item:last-child {
    border-right: 0;
}

.intent-intro {
    background: var(--brand);
    color: #fff;
}

.intent-intro h2 {
    font-size: clamp(1.55rem, 2.6vw, 2.4rem);
}

.intent-intro p {
    margin: 14px 0 0;
    color: rgba(255,255,255,0.82);
}

.intent-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--panel);
}

.intent-item .rank {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.intent-item strong {
    display: block;
    margin-top: 22px;
    font-size: 1.14rem;
}

.intent-item p {
    margin: 8px 0 20px;
    color: var(--muted);
    font-size: 0.92rem;
}

.access-story {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
    gap: 54px;
    align-items: start;
}

.access-story-media {
    position: sticky;
    top: 105px;
}

.access-story-media img {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.access-story-media p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.access-list {
    display: grid;
}

.access-entry {
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.access-entry:first-child {
    padding-top: 0;
}

.access-entry .eyebrow {
    color: var(--support);
}

.access-entry h3 {
    margin-top: 10px;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.access-entry p {
    margin: 14px 0 18px;
    color: #c8c3c5;
}

.editorial-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--panel);
}

.editorial-band-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.editorial-band-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 6vw, 76px);
}

.editorial-band-copy h2 {
    margin-top: 12px;
}

.editorial-band-copy p {
    margin: 18px 0 24px;
    color: #c8c2c4;
}

.reading-notes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line);
}

.reading-note {
    padding: 30px;
    background: var(--panel);
}

.reading-note h3 {
    margin-bottom: 10px;
}

.reading-note p {
    margin: 0;
    color: var(--muted);
}

.image-note-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
}

.image-note {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
}

.image-note img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    opacity: 0.8;
}

.image-note-copy {
    position: absolute;
    inset: auto 0 0;
    padding: 34px;
    background: linear-gradient(to top, rgba(12,12,13,0.96), rgba(12,12,13,0.2));
}

.image-note-copy p {
    max-width: 560px;
    margin: 10px 0 0;
    color: #d4ced0;
}

.route-list {
    border-top: 1px solid var(--line);
}

.route-row {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 26px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.route-row strong {
    font-size: 1.05rem;
}

.route-row p {
    margin: 0;
    color: var(--muted);
}

.route-row a {
    min-width: max-content;
    color: var(--accent);
    font-weight: 800;
}

.callout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 24px 28px;
    border: 1px solid rgba(229,154,58,0.3);
    border-radius: var(--radius);
    background: rgba(229,154,58,0.07);
}

.callout-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(229,154,58,0.16);
    color: var(--accent);
    font-weight: 900;
}

.callout p {
    margin: 3px 0 0;
    color: #cfc9cb;
}

.compact-faq {
    display: grid;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line);
}

.compact-faq article {
    padding: 26px 28px;
    background: var(--panel);
}

.compact-faq h3 {
    margin-bottom: 9px;
}

.compact-faq p {
    margin: 0;
    color: var(--muted);
}

.page-hero {
    padding: clamp(54px, 8vw, 104px) 0 clamp(44px, 7vw, 78px);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
    gap: clamp(34px, 6vw, 80px);
    align-items: center;
}

.page-hero h1 {
    margin-top: 14px;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.page-hero .lead {
    margin: 22px 0 0;
}

.page-hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.meta-pill {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #c6c0c2;
    font-size: 0.82rem;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: clamp(38px, 6vw, 76px);
    align-items: start;
}

.article-main {
    min-width: 0;
}

.article-main > section,
.article-main > div.section-block {
    padding: 38px 0;
    border-top: 1px solid var(--line);
}

.article-main > section:first-child,
.article-main > div.section-block:first-child {
    padding-top: 0;
    border-top: 0;
}

.article-main h2 {
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    margin-bottom: 16px;
}

.article-main h3 {
    margin-bottom: 10px;
}

.article-main p,
.article-main li {
    color: #cbc5c7;
}

.article-main ul,
.article-main ol {
    padding-left: 1.2em;
}

.article-main li + li {
    margin-top: 8px;
}

.article-aside {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 16px;
}

.aside-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.aside-card h2,
.aside-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.aside-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.aside-links {
    display: grid;
    margin-top: 10px;
}

.aside-links a {
    padding: 9px 0;
    border-top: 1px solid var(--line);
    color: #d8d2d4;
    font-size: 0.88rem;
}

.aside-links a:hover {
    color: var(--accent);
}

.step-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.step-item {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.step-number {
    color: var(--support);
    font-size: 1.35rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.step-item p {
    margin: 9px 0 0;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.check-item {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.check-item strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.check-item p {
    margin: 0;
    color: var(--muted);
}

.warning-box,
.info-box,
.success-box {
    padding: 22px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.warning-box {
    border-color: rgba(229,154,58,0.28);
    background: rgba(229,154,58,0.07);
}

.info-box {
    border-color: rgba(200,74,90,0.28);
    background: rgba(200,74,90,0.07);
}

.success-box {
    border-color: rgba(167,199,160,0.25);
    background: rgba(167,199,160,0.06);
}

.warning-box p,
.info-box p,
.success-box p {
    margin-bottom: 0;
}

.template-box {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #111113;
}

.template-box pre {
    margin: 0;
    white-space: pre-wrap;
    color: #dfd9db;
    font: inherit;
    line-height: 1.8;
}

.template-tools {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.signal-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.signal-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, #232327, #1e1e22);
}

.signal-card h3 {
    color: #fff;
}

.signal-card p {
    margin: 11px 0 0;
    color: var(--muted);
}

.guide-index {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line);
}

.guide-index a {
    min-height: 170px;
    padding: 24px;
    background: var(--panel);
}

.guide-index a:hover {
    background: var(--panel-soft);
}

.guide-index strong {
    display: block;
    margin-bottom: 9px;
}

.guide-index span {
    color: var(--muted);
    font-size: 0.9rem;
}

.guide-topic {
    scroll-margin-top: 100px;
}

.guide-topic + .guide-topic {
    margin-top: 46px;
    padding-top: 46px;
    border-top: 1px solid var(--line);
}

.guide-topic h2 {
    margin-bottom: 12px;
}

.guide-topic .topic-summary {
    color: #e0d9dc;
    font-size: 1.06rem;
}

.guide-topic ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 26px;
    margin-top: 20px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    scroll-margin-top: 96px;
    border-bottom: 1px solid var(--line);
}

.faq-question {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 24px 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.faq-question strong {
    font-size: 1.06rem;
}

.faq-question span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] span {
    transform: rotate(45deg);
}

.faq-answer {
    max-width: 780px;
    padding: 0 44px 24px 0;
    color: var(--muted);
}

.faq-answer[hidden] {
    display: none;
}

.policy-lead {
    max-width: 840px;
    margin-bottom: 34px;
}

.policy-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 44px;
}

.policy-nav {
    position: sticky;
    top: 110px;
    align-self: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.policy-nav a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    color: #c9c3c5;
}

.policy-nav a:last-child {
    border-bottom: 0;
}

.policy-content section {
    scroll-margin-top: 100px;
    padding: 0 0 34px;
    margin: 0 0 34px;
    border-bottom: 1px solid var(--line);
}

.policy-content h2 {
    margin-bottom: 14px;
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.policy-content p,
.policy-content li {
    color: #c9c3c5;
}

.source-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.source-table th,
.source-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}

.source-table th {
    background: #202024;
    color: #fff;
}

.source-table td {
    color: #c8c2c4;
}

.source-table tr:last-child td {
    border-bottom: 0;
}

.search-page {
    min-height: 62vh;
}

.inline-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 700px;
    margin-top: 26px;
}

.search-results {
    margin-top: 44px;
    border-top: 1px solid var(--line);
}

.search-result {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 22px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.result-type {
    color: var(--support);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.search-result h2 {
    font-size: 1.2rem;
}

.search-result p {
    margin: 8px 0 0;
    color: var(--muted);
}

.search-result a:last-child {
    color: var(--accent);
    font-weight: 800;
    min-width: max-content;
}

.empty-state {
    margin-top: 40px;
    padding: 34px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.025);
}

.empty-state p {
    color: var(--muted);
}

.error-page {
    min-height: 66vh;
    display: grid;
    align-items: center;
}

.error-code {
    color: var(--brand);
    font-size: clamp(5rem, 18vw, 12rem);
    font-weight: 950;
    line-height: 0.8;
}

.error-grid {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 60px;
    align-items: end;
}

.error-grid h1 {
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
}

.error-grid p {
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #111113;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 0.75fr);
    gap: 42px;
    padding: 64px 0 50px;
}

.footer-intro p {
    max-width: 420px;
    color: var(--muted);
}

.footer-brand {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 950;
}

.footer-nav {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-nav h2 {
    margin-bottom: 7px;
    font-size: 0.85rem;
    color: #fff;
}

.footer-nav a {
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 24px;
    border-top: 1px solid var(--line);
    color: #817b7d;
    font-size: 0.78rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    min-width: max-content;
}

@media (max-width: 1100px) {
    .header-row {
        grid-template-columns: auto 1fr auto auto;
        gap: 14px;
    }

    .nav-toggle {
        display: inline-block;
        justify-self: end;
    }

    .primary-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        padding: 18px 20px 24px;
        background: #141416;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: grid;
    }

    .primary-nav a {
        padding: 13px 14px;
        border-radius: 12px;
    }

    .search-open {
        grid-column: 4;
    }

    .home-hero-grid,
    .page-hero-grid {
        grid-template-columns: 1fr 0.62fr;
        gap: 36px;
    }

    .intent-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .intent-intro {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .footer-grid {
        grid-template-columns: 1.2fr repeat(2, 0.8fr);
    }

    .footer-intro {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    :root {
        --shell: min(100% - 32px, 760px);
        --reading: min(100% - 32px, 720px);
    }

    .home-hero {
        min-height: auto;
        align-items: center;
    }

    .home-hero-grid,
    .page-hero-grid,
    .section-head,
    .access-story,
    .editorial-band,
    .image-note-grid,
    .article-layout,
    .policy-grid,
    .error-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        max-width: 560px;
    }

    .hero-visual img {
        aspect-ratio: 16 / 9;
    }

    .hero-visual figcaption {
        left: 16px;
        right: 16px;
        width: auto;
    }

    .access-story-media,
    .article-aside,
    .policy-nav {
        position: static;
    }

    .access-story-media img {
        aspect-ratio: 16 / 9;
    }

    .editorial-band-media img {
        min-height: 320px;
        aspect-ratio: 16 / 9;
    }

    .guide-index {
        grid-template-columns: repeat(2, 1fr);
    }

    .policy-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0 16px;
    }

    .policy-nav a {
        border: 0;
    }

    .article-aside {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .brand-copy small,
    .search-open span:last-child {
        display: none;
    }

    .header-row {
        grid-template-columns: auto 1fr auto auto;
        min-height: 64px;
    }

    .primary-nav {
        top: 64px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    h1 {
        font-size: clamp(2.25rem, 12vw, 3.8rem);
    }

    .home-hero,
    .page-hero {
        padding-top: 50px;
    }

    .hero-facts {
        margin-top: 32px;
    }

    .hero-fact {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .intent-strip,
    .reading-notes,
    .check-grid,
    .signal-list,
    .guide-index,
    .article-aside {
        grid-template-columns: 1fr;
    }

    .intent-intro,
    .intent-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .intent-item:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 64px 0;
    }

    .section-head {
        gap: 18px;
        margin-bottom: 30px;
    }

    .route-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .callout {
        grid-template-columns: auto 1fr;
    }

    .callout .button {
        grid-column: 1 / -1;
    }

    .step-item {
        grid-template-columns: 50px 1fr;
        gap: 14px;
    }

    .guide-topic ul {
        grid-template-columns: 1fr;
    }

    .source-table,
    .source-table tbody,
    .source-table tr,
    .source-table td {
        display: block;
        width: 100%;
    }

    .source-table thead {
        display: none;
    }

    .source-table tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .source-table td {
        border: 0;
        padding: 6px 16px;
    }

    .search-input-row,
    .inline-search,
    .search-result {
        grid-template-columns: 1fr;
    }

    .search-result {
        gap: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px 20px;
    }

    .footer-intro {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        display: grid;
    }
}

@media (max-width: 480px) {
    :root {
        --shell: calc(100% - 24px);
        --reading: calc(100% - 24px);
    }

    .brand-copy strong {
        font-size: 0.94rem;
    }

    .search-open,
    .nav-toggle {
        width: 40px;
        height: 40px;
        padding: 9px;
    }

    .search-open {
        justify-content: center;
        border-radius: 12px;
    }

    .search-modal {
        padding-inline: 12px;
    }

    .search-panel {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .section,
    .section-tight {
        padding: 52px 0;
    }

    .home-hero {
        padding-bottom: 40px;
    }

    .page-hero-media img,
    .hero-visual img,
    .access-story-media img {
        border-radius: 20px;
    }

    .editorial-band-copy,
    .reading-note,
    .image-note-copy,
    .signal-card,
    .check-item {
        padding: 22px;
    }

    .faq-question {
        padding: 20px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-intro {
        grid-column: auto;
    }
}

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