:root {
    --brand: #C85C7A;
    --brand-soft: #E7B7A8;
    --ink-deep: #2B2228;
    --bg: #FBF7F5;
    --bg-soft: #F3E9E6;
    --text: #342F32;
    --muted: #746A6F;
    --accent: #D9913D;
    --white: #fff;
    --line: rgba(43, 34, 40, .12);
    --line-strong: rgba(43, 34, 40, .22);
    --shadow: 0 18px 50px rgba(43, 34, 40, .08);
    --shadow-soft: 0 10px 28px rgba(43, 34, 40, .06);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shell: min(1180px, calc(100vw - 48px));
    --reading: min(760px, calc(100vw - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

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

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--brand);
}

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

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(217, 145, 61, .35);
    outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink-deep);
    line-height: 1.22;
    letter-spacing: -.02em;
}

h1 {
    font-size: clamp(2.45rem, 5vw, 5.4rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.8rem);
    margin-bottom: 18px;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    margin-bottom: 10px;
}

p:last-child,
ul:last-child,
ol:last-child {
    margin-bottom: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink-deep);
    color: var(--white);
    transform: translateY(-160%);
    transition: transform .18s ease;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(43, 34, 40, .09);
    background: rgba(251, 247, 245, .92);
    backdrop-filter: blur(18px);
}

.header-shell {
    width: var(--shell);
    min-height: 78px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 26px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-deep);
    text-decoration: none;
}

.brand-lockup img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
}

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

.brand-copy strong {
    font-size: 1.02rem;
    letter-spacing: .04em;
}

.brand-copy small {
    margin-top: 6px;
    color: var(--muted);
    font-size: .72rem;
    white-space: nowrap;
}

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

.primary-nav a,
.header-search {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: .93rem;
    font-weight: 650;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active,
.header-search:hover {
    color: var(--ink-deep);
    background: var(--bg-soft);
}

.primary-nav a.is-active {
    box-shadow: inset 0 0 0 1px rgba(200, 92, 122, .18);
}

.header-search {
    color: var(--ink-deep);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--white);
    color: var(--ink-deep);
    box-shadow: 0 0 0 1px var(--line);
}

.menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.menu-toggle-lines {
    display: grid;
    gap: 4px;
    width: 20px;
    margin: auto;
}

.menu-toggle-lines i {
    display: block;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.site-main {
    overflow: clip;
}

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

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

.section {
    padding: clamp(64px, 8vw, 110px) 0;
}

.section-tight {
    padding: 54px 0;
}

.section-soft {
    background: var(--bg-soft);
}

.section-dark {
    color: rgba(255, 255, 255, .84);
    background: var(--ink-deep);
}

.section-dark h2,
.section-dark h3,
.section-dark strong {
    color: var(--white);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 38px;
}

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

.section-dark .section-head p {
    color: rgba(255, 255, 255, .66);
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.section-dark .eyebrow {
    color: var(--brand-soft);
}

.lead {
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.8;
    color: var(--muted);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 760;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
    transform: translateY(-1px);
    color: inherit;
}

.button-primary {
    color: var(--white);
    background: var(--brand);
    box-shadow: 0 12px 24px rgba(200, 92, 122, .18);
}

.button-primary:hover {
    color: var(--white);
    box-shadow: 0 16px 30px rgba(200, 92, 122, .24);
}

.button-secondary {
    color: var(--ink-deep);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line);
}

.button-quiet {
    color: var(--ink-deep);
    background: transparent;
    box-shadow: 0 0 0 1px var(--line-strong);
}

.home-hero {
    padding: clamp(52px, 7vw, 92px) 0 40px;
}

.hero-grid {
    width: var(--shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    gap: clamp(26px, 5vw, 66px);
    align-items: stretch;
}

.hero-copy {
    min-width: 0;
    padding: clamp(12px, 3vw, 30px) 0;
}

.hero-copy h1 {
    max-width: 12ch;
}

.hero-copy .lead {
    max-width: 50ch;
}

.intent-switchboard {
    display: grid;
    gap: 14px;
    align-content: center;
}

.intent-card {
    position: relative;
    padding: 26px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    text-decoration: none;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
    transition: transform .22s ease, box-shadow .22s ease;
}

.intent-card:hover {
    transform: translateY(-3px);
    color: inherit;
    box-shadow: 0 0 0 1px rgba(200, 92, 122, .24), var(--shadow);
}

.intent-card.primary {
    min-height: 230px;
    padding-right: 42%;
    color: var(--white);
    background: var(--ink-deep);
}

.intent-card.primary::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 42%;
    background: linear-gradient(180deg, rgba(200, 92, 122, .12), rgba(231, 183, 168, .2));
}

.intent-card.primary h2,
.intent-card.primary .intent-link {
    color: var(--white);
}

.intent-card.primary p {
    color: rgba(255, 255, 255, .7);
}

.intent-card h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    margin-bottom: 12px;
}

.intent-card p {
    margin-bottom: 22px;
    color: var(--muted);
}

.intent-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--brand);
    font-weight: 780;
}

.intent-link::after {
    content: "→";
    transition: transform .18s ease;
}

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

.hero-visual-band {
    width: var(--shell);
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: clamp(230px, 28vw, 380px);
    background: var(--bg-soft);
    box-shadow: var(--shadow-soft);
}

.hero-visual-band img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.editorial-map {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(34px, 6vw, 84px);
    align-items: start;
}

.editorial-sticky {
    position: sticky;
    top: 116px;
}

.editorial-sticky p {
    color: var(--muted);
}

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

.path-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.path-row:hover {
    color: inherit;
}

.path-row .number {
    color: var(--brand);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: .06em;
}

.path-row p {
    margin: 7px 0 0;
    color: var(--muted);
}

.path-row .arrow {
    font-size: 1.4rem;
    transition: transform .18s ease;
}

.path-row:hover .arrow {
    transform: translateX(5px);
}

.feature-story {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    min-height: 470px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--ink-deep);
    box-shadow: var(--shadow);
}

.feature-story-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 68px);
    color: rgba(255, 255, 255, .76);
}

.feature-story-copy h2 {
    color: var(--white);
    max-width: 14ch;
}

.feature-story-copy a {
    color: var(--brand-soft);
    font-weight: 760;
}

.feature-story-media {
    min-height: 340px;
}

.feature-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-ribbon {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 36vw);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.topic-card {
    scroll-snap-align: start;
    display: grid;
    grid-template-rows: 190px auto;
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
    text-decoration: none;
}

.topic-card:hover {
    color: inherit;
}

.topic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-card-body {
    padding: 24px;
}

.topic-card-body p {
    color: var(--muted);
}

.topic-card-body span {
    color: var(--brand);
    font-weight: 760;
}

.split-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.split-panel {
    padding: clamp(30px, 5vw, 58px);
    background: var(--white);
}

.split-panel.soft {
    background: var(--bg-soft);
}

.split-panel .mini-list {
    margin-top: 26px;
}

.mini-list {
    display: grid;
    gap: 14px;
}

.mini-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.mini-list a:first-child {
    border-top: 0;
}

.mini-list small {
    color: var(--muted);
}

.mini-list .tag {
    align-self: start;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 780;
}

.article-stream {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line-strong);
}

.article-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 160px;
    gap: 32px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.article-row:hover {
    color: inherit;
}

.article-row .category {
    color: var(--brand);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.article-row h3 {
    margin-bottom: 9px;
}

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

.article-row img {
    width: 160px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.notice-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(217, 145, 61, .11);
    box-shadow: inset 0 0 0 1px rgba(217, 145, 61, .22);
}

.notice-strip strong {
    color: #7b4a12;
}

.notice-strip p {
    margin: 0;
    color: #70563c;
}

.notice-strip a {
    font-weight: 760;
    color: #7b4a12;
}

.page-hero {
    padding: clamp(50px, 7vw, 92px) 0 54px;
}

.page-hero-inner {
    width: var(--shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: clamp(34px, 6vw, 86px);
    align-items: center;
}

.page-hero-copy h1 {
    font-size: clamp(2.25rem, 4.6vw, 4.8rem);
    max-width: 13ch;
}

.page-hero-copy .lead {
    max-width: 52ch;
}

.page-hero-aside {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
}

.page-hero-aside img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 22px;
}

.page-hero-aside ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

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

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

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: rgba(116, 106, 111, .55);
}

.breadcrumbs a {
    text-decoration: none;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(40px, 6vw, 76px);
    align-items: start;
}

.prose {
    color: var(--text);
}

.prose h2 {
    margin-top: 52px;
    margin-bottom: 18px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: 34px;
}

.prose p,
.prose li {
    font-size: 1.03rem;
}

.prose p {
    margin-bottom: 20px;
}

.prose ul,
.prose ol {
    padding-left: 1.25em;
    margin-bottom: 24px;
}

.prose blockquote {
    margin: 30px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--bg-soft);
}

.prose blockquote p {
    margin: 0;
    color: var(--muted);
}

.prose-image {
    margin: 34px 0;
}

.prose-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.prose-image figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: .86rem;
}

.side-stack {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 18px;
}

.side-panel {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line);
}

.side-panel h2 {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.side-panel p {
    color: var(--muted);
    font-size: .92rem;
}

.side-panel a {
    display: block;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-weight: 680;
    text-decoration: none;
}

.side-panel a:first-of-type {
    border-top: 0;
}

.info-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.info-step {
    min-height: 220px;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line);
}

.info-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 34px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
    font-weight: 800;
}

.info-step p {
    color: var(--muted);
}

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

.check-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    background: var(--white);
}

.check-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--brand);
    background: rgba(200, 92, 122, .1);
    font-weight: 900;
}

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

.topic-index {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.topic-index-card {
    grid-column: span 6;
    display: grid;
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    text-decoration: none;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
}

.topic-index-card:nth-child(3n + 1) {
    grid-column: span 7;
}

.topic-index-card:nth-child(3n + 2) {
    grid-column: span 5;
}

.topic-index-card:hover {
    color: inherit;
}

.topic-index-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.topic-index-body {
    padding: 26px;
}

.topic-index-body p {
    color: var(--muted);
}

.topic-index-body span {
    color: var(--brand);
    font-weight: 760;
}

.topic-detail-hero {
    width: var(--shell);
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--ink-deep);
}

.topic-detail-hero img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.topic-detail-copy {
    padding: clamp(34px, 6vw, 72px);
    color: rgba(255, 255, 255, .72);
}

.topic-detail-copy h1 {
    color: var(--white);
    font-size: clamp(2.1rem, 4vw, 4.1rem);
}

.topic-detail-copy .eyebrow {
    color: var(--brand-soft);
}

.topic-points {
    width: var(--shell);
    margin: 54px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.topic-point {
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line);
}

.topic-point strong {
    color: var(--brand);
}

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

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

.faq-question {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border: 0;
    background: transparent;
    color: var(--ink-deep);
    text-align: left;
    font-weight: 780;
    cursor: pointer;
}

.faq-question span:last-child {
    font-size: 1.35rem;
    color: var(--brand);
    transition: transform .18s ease;
}

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

.faq-answer {
    padding: 0 48px 24px 0;
    color: var(--muted);
}

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

.search-page-form {
    padding: 28px;
    margin-bottom: 42px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
}

.search-page-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 760;
}

.search-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.search-input-row input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
}

.search-results {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line-strong);
}

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

.search-result:hover {
    color: inherit;
}

.search-result .type {
    color: var(--brand);
    font-size: .8rem;
    font-weight: 800;
}

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

.empty-state {
    padding: 42px;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
}

.empty-state h2 {
    font-size: 1.65rem;
}

.article-hero {
    padding: 40px 0 24px;
}

.article-hero .reading-shell {
    padding-top: 22px;
}

.article-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--brand);
    font-size: .82rem;
    font-weight: 820;
    letter-spacing: .08em;
}

.article-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 4.5rem);
    max-width: 16ch;
}

.article-summary {
    max-width: 48ch;
    color: var(--muted);
    font-size: 1.16rem;
}

.article-hero-image {
    width: var(--shell);
    margin: 36px auto 0;
}

.article-hero-image img {
    width: 100%;
    max-height: 560px;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line);
    text-decoration: none;
}

.related-card:hover {
    color: inherit;
}

.related-card small {
    color: var(--brand);
    font-weight: 760;
}

.related-card p {
    color: var(--muted);
}

.definition-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.definition-card {
    padding: 24px;
    border-top: 3px solid var(--brand);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.definition-card p {
    color: var(--muted);
}

.policy-block {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line);
}

.policy-block + .policy-block {
    margin-top: 18px;
}

.policy-block p,
.policy-block li {
    color: var(--muted);
}

.policy-block ul {
    padding-left: 20px;
}

.contact-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.contact-type {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line);
}

.contact-type p {
    color: var(--muted);
}

.not-found {
    min-height: 68vh;
    display: grid;
    place-items: center;
    padding: 64px 24px;
}

.not-found-inner {
    width: min(760px, 100%);
    text-align: center;
}

.not-found-code {
    margin-bottom: 18px;
    color: var(--brand);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: .9;
}

.not-found-inner .lead {
    max-width: 52ch;
    margin-inline: auto;
}

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

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

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 34, 40, .64);
    backdrop-filter: blur(8px);
}

.search-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--bg);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .24);
}

.search-dialog-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}

.search-dialog-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 0;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--ink-deep);
    background: var(--white);
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--line);
}

.search-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
}

.search-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.search-shortcuts a {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--bg-soft);
    text-decoration: none;
    font-size: .88rem;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: var(--ink-deep);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.back-to-top[hidden] {
    display: none !important;
}

.site-footer {
    margin-top: 60px;
    color: rgba(255, 255, 255, .72);
    background: var(--ink-deep);
}

.footer-shell {
    width: var(--shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(150px, .75fr));
    gap: 34px;
    padding: 66px 0 54px;
}

.footer-intro p {
    max-width: 44ch;
    color: rgba(255, 255, 255, .58);
}

.footer-brand {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 850;
    text-decoration: none;
}

.footer-group {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-group h2 {
    color: var(--white);
    font-size: .95rem;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.footer-group a {
    color: rgba(255, 255, 255, .64);
    text-decoration: none;
    font-size: .91rem;
}

.footer-group a:hover,
.footer-brand:hover {
    color: var(--brand-soft);
}

.footer-bottom {
    width: var(--shell);
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .45);
    font-size: .84rem;
}

@media (max-width: 1100px) {
    .header-shell {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        grid-column: 2;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 24px;
        right: 24px;
        display: none;
        padding: 14px;
        border-radius: 0 0 18px 18px;
        background: var(--bg);
        box-shadow: 0 18px 44px rgba(43, 34, 40, .14);
    }

    .primary-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .header-search {
        grid-column: 3;
    }

    .hero-grid,
    .page-hero-inner,
    .editorial-map,
    .feature-story,
    .content-grid,
    .topic-detail-hero {
        grid-template-columns: 1fr;
    }

    .editorial-sticky,
    .side-stack {
        position: static;
    }

    .feature-story-media {
        order: -1;
    }

    .topic-detail-hero img {
        min-height: 320px;
        max-height: 480px;
    }

    .topic-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-shell {
        grid-template-columns: 1.4fr repeat(2, 1fr);
    }

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

@media (max-width: 860px) {
    :root {
        --shell: min(100% - 34px, 1180px);
        --reading: min(100% - 34px, 760px);
    }

    .section-head,
    .split-band {
        grid-template-columns: 1fr;
    }

    .section-head {
        gap: 14px;
    }

    .topic-ribbon {
        grid-auto-columns: minmax(270px, 78vw);
    }

    .article-row {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .article-row img {
        grid-column: 2;
        width: 100%;
        max-width: 220px;
    }

    .info-steps,
    .definition-grid,
    .contact-types,
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .topic-index-card,
    .topic-index-card:nth-child(3n + 1),
    .topic-index-card:nth-child(3n + 2) {
        grid-column: span 12;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .header-shell {
        min-height: 68px;
        gap: 10px;
    }

    .brand-copy small {
        display: none;
    }

    .brand-lockup img {
        width: 38px;
        height: 38px;
    }

    .header-search {
        min-height: 40px;
        padding: 0 11px;
        font-size: .86rem;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .primary-nav {
        left: 17px;
        right: 17px;
        grid-template-columns: 1fr !important;
    }

    .home-hero {
        padding-top: 36px;
    }

    .hero-copy h1,
    .page-hero-copy h1,
    .article-hero h1 {
        max-width: none;
    }

    .intent-card.primary {
        min-height: auto;
        padding-right: 26px;
    }

    .intent-card.primary::after {
        display: none;
    }

    .hero-visual-band {
        min-height: 210px;
        border-radius: 22px;
    }

    .path-row {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        gap: 14px;
    }

    .feature-story {
        border-radius: 22px;
    }

    .feature-story-copy {
        padding: 30px 24px 34px;
    }

    .notice-strip {
        grid-template-columns: 1fr;
    }

    .article-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 0;
    }

    .article-row img {
        grid-column: 1;
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }

    .info-steps,
    .definition-grid,
    .contact-types,
    .related-grid,
    .topic-points {
        grid-template-columns: 1fr;
    }

    .topic-index {
        gap: 14px;
    }

    .topic-index-card,
    .topic-index-card:nth-child(3n + 1),
    .topic-index-card:nth-child(3n + 2) {
        min-height: 0;
    }

    .topic-index-card img {
        height: 200px;
    }

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

    .search-result {
        grid-template-columns: 1fr auto;
        gap: 8px 14px;
    }

    .search-result .type {
        grid-column: 1 / -1;
    }

    .search-dialog {
        padding: 22px;
        border-radius: 22px;
    }

    .footer-shell {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding-top: 52px;
    }

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

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

    h1 {
        font-size: 2.25rem;
    }

    .section {
        padding: 58px 0;
    }

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

    .topic-ribbon {
        grid-auto-columns: 86vw;
    }

    .page-hero-aside,
    .intent-card,
    .split-panel,
    .info-step,
    .policy-block,
    .contact-type {
        padding: 22px;
    }

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

    .footer-group,
    .footer-intro {
        grid-column: 1;
    }
}
