:root {
    --brand: #C85C3A;
    --brand-strong: #A84429;
    --amber: #E6B85C;
    --ink: #2B2523;
    --text: #332E2B;
    --muted: #766C66;
    --paper: #FAF7F2;
    --soft: #F1EAE2;
    --accent: #D94A32;
    --line: #DED4C9;
    --white: #FFFDF9;
    --shadow: 0 18px 46px rgba(78, 54, 43, .09);
    --radius: 22px;
    --radius-small: 14px;
    --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: var(--shell); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 48px)); margin-inline: auto; }
.wide { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
    margin: 0 0 10px;
    color: var(--brand-strong);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(200, 92, 58, .09);
    color: var(--brand-strong);
    font-size: .82rem;
    font-weight: 700;
}
.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(43, 37, 35, .08);
    background: rgba(250, 247, 242, .94);
    backdrop-filter: blur(16px);
}
.header-row {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 26px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex: 0 0 auto;
}
.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
}
.brand span { display: grid; line-height: 1.2; }
.brand strong { font-size: 1.13rem; color: var(--ink); }
.brand small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.primary-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 9px 11px;
    border-radius: 11px;
    color: #554A45;
    font-size: .92rem;
    font-weight: 650;
    text-decoration: none;
}
.nav-link:hover, .nav-link.is-active { background: var(--soft); color: var(--brand-strong); }
.search-open, .menu-toggle {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    padding: 9px 13px;
    border-radius: 11px;
    font-weight: 750;
}
.search-open:hover, .menu-toggle:hover { border-color: #BDA99A; }
.menu-toggle { display: none; }

.search-modal[hidden] { display: none !important; }
.search-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding: 9vh 20px 20px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(43, 37, 35, .55); }
.search-dialog {
    position: relative;
    width: min(680px, 100%);
    padding: 34px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 24px 80px rgba(43, 37, 35, .28);
}
.search-dialog h2 { margin: 0 38px 18px 0; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.15rem); }
.search-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--soft);
    font-size: 1.4rem;
}
.search-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.search-form > div { display: flex; gap: 10px; }
.search-form input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    background: #fff;
    color: var(--text);
}
.search-form button {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.home-intro {
    padding: 62px 0 30px;
}
.home-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    gap: 54px;
    align-items: center;
}
.home-copy h1, .page-hero h1, .article-head h1 {
    margin: 0;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -.035em;
}
.home-copy h1 { max-width: 760px; font-size: clamp(2.45rem, 6vw, 5.3rem); }
.home-copy .lead {
    max-width: 690px;
    margin: 22px 0 0;
    color: #5A4E48;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
}
.hero-image-frame {
    position: relative;
    min-height: 420px;
    display: grid;
    align-items: end;
    border-radius: 36px 8px 36px 8px;
    overflow: hidden;
    background: var(--soft);
    box-shadow: var(--shadow);
}
.hero-image-frame img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.hero-note {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255, 253, 249, .92);
    box-shadow: 0 10px 40px rgba(43,37,35,.12);
}
.hero-note strong { display: block; color: var(--ink); }
.hero-note span { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.quick-paths {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.quick-paths a, .button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-weight: 750;
    text-decoration: none;
}
.quick-paths a:first-child, .button-link.primary { border-color: var(--brand); background: var(--brand); color: #fff; }

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #F7F0E8; }
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}
.section-head > div { max-width: 760px; }
.section-head h2, .content-title {
    margin: 0;
    color: var(--ink);
    line-height: 1.2;
    font-size: clamp(1.7rem, 3.2vw, 2.65rem);
    letter-spacing: -.025em;
}
.section-dark .section-head h2, .section-dark .content-title { color: #FFF9F2; }
.section-head p { margin: 10px 0 0; color: var(--muted); }
.section-dark .section-head p { color: #CBBFB7; }
.text-link { color: var(--brand-strong); font-weight: 800; white-space: nowrap; }
.section-dark .text-link { color: #F6CB74; }

.pathway-list { border-top: 1px solid var(--line); }
.pathway-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) minmax(220px, .52fr);
    gap: 20px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.pathway-number {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}
.pathway-row h3 { margin: 3px 0 7px; color: var(--ink); font-size: 1.18rem; }
.pathway-row p { margin: 0; color: var(--muted); }
.pathway-row a { justify-self: end; color: var(--brand-strong); font-weight: 800; }

.editorial-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .7fr);
    gap: 50px;
    align-items: start;
}
.editorial-split .feature-image { border-radius: 24px; overflow: hidden; min-height: 330px; background: #E7DCCD; }
.editorial-split .feature-image img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.editorial-copy h2 { margin: 0 0 14px; color: var(--ink); font-size: clamp(1.75rem, 3vw, 2.5rem); }
.editorial-copy p { color: #5D514B; }
.inline-index { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.inline-index li { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.inline-index strong { min-width: 7.5em; color: var(--ink); }

.community-preview {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}
.community-preview article {
    grid-column: span 4;
    min-height: 230px;
    padding: 24px;
    border: 1px solid rgba(92, 74, 65, .13);
    border-radius: 18px;
    background: rgba(255,255,255,.46);
}
.community-preview article:nth-child(1), .community-preview article:nth-child(4) { grid-column: span 7; }
.community-preview article:nth-child(2), .community-preview article:nth-child(5) { grid-column: span 5; }
.community-preview h3 { margin: 0 0 9px; color: var(--ink); }
.community-preview p { margin: 0 0 16px; color: var(--muted); }
.community-preview a { color: var(--brand-strong); font-weight: 800; }

.status-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}
.status-strip article { padding: 22px; border-right: 1px solid var(--line); }
.status-strip article:last-child { border-right: 0; }
.status-strip strong { display: block; color: var(--brand-strong); margin-bottom: 7px; }
.status-strip p { margin: 0; color: var(--muted); font-size: .92rem; }

.topic-ribbon {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 24px;
    align-items: stretch;
}
.topic-ribbon-main, .topic-ribbon-side {
    border-radius: var(--radius);
    overflow: hidden;
}
.topic-ribbon-main { position: relative; min-height: 390px; background: #D6C6B7; }
.topic-ribbon-main img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.topic-ribbon-main .overlay-copy {
    position: absolute;
    inset: auto 24px 24px 24px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(43,37,35,.86);
    color: #fff;
}
.topic-ribbon-main h3 { margin: 0 0 6px; font-size: 1.35rem; }
.topic-ribbon-main p { margin: 0; color: #E5DCD4; }
.topic-ribbon-side { padding: 28px; background: var(--ink); color: #F9F1E8; }
.topic-ribbon-side h3 { margin-top: 0; font-size: 1.4rem; }
.topic-ribbon-side ul { padding-left: 1.1em; }
.topic-ribbon-side a { color: #F6CB74; }

.page-hero { padding: 52px 0 34px; }
.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .42fr);
    gap: 42px;
    align-items: end;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.page-hero .lead { max-width: 800px; margin: 18px 0 0; color: #5D514A; font-size: 1.08rem; }
.page-hero figure { margin: 0; }
.page-hero figure img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 22px; }
.page-hero-meta {
    padding: 20px;
    border-left: 4px solid var(--brand);
    background: var(--soft);
    border-radius: 0 15px 15px 0;
}
.page-hero-meta strong { display: block; color: var(--ink); }
.page-hero-meta p { margin: 6px 0 0; color: var(--muted); }
.breadcrumbs { padding-top: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .85rem; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 7px; color: #B9A89C; }
.breadcrumbs a { color: #655952; }

.channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.channel {
    padding: 27px;
    border-top: 4px solid var(--brand);
    background: var(--white);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 10px 30px rgba(73,55,46,.05);
}
.channel h2, .channel h3 { margin: 0 0 9px; color: var(--ink); }
.channel p { color: var(--muted); }
.channel .detail { color: #4F4641; font-size: .95rem; }
.channel a { color: var(--brand-strong); font-weight: 800; }

.topic-directory { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.topic-entry {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
}
.topic-entry img { width: 100%; height: 160px; object-fit: cover; border-radius: 14px; }
.topic-entry h2, .topic-entry h3 { margin: 0 0 8px; color: var(--ink); }
.topic-entry p { margin: 0 0 13px; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.tag { padding: 3px 8px; border-radius: 999px; background: var(--soft); color: #675A53; font-size: .76rem; }
.topic-entry a { color: var(--brand-strong); font-weight: 800; }

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    padding: 25px 0;
    border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: grid;
    place-items: start center;
    padding-top: 3px;
    color: var(--brand);
    font-weight: 900;
    font-size: 1.25rem;
}
.step h2, .step h3 { margin: 0 0 7px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); }

.status-table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.status-row { display: grid; grid-template-columns: 140px 1fr 1fr; }
.status-row > div { padding: 18px; border-bottom: 1px solid var(--line); }
.status-row:last-child > div { border-bottom: 0; }
.status-row > div + div { border-left: 1px solid var(--line); }
.status-row strong { color: var(--brand-strong); }
.status-row p { margin: 0; color: var(--muted); }
.status-head { background: var(--ink); color: #fff; font-size: .85rem; font-weight: 800; }
.status-head > div { border-color: #493F3B; }

.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 13px 0 13px 38px; border-bottom: 1px dashed #D4C7BC; }
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #EEDCC6;
    color: var(--brand-strong);
    font-weight: 900;
}

.app-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 42px; align-items: start; }
.app-visual { position: sticky; top: 110px; }
.app-visual img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 26px; }
.app-points { display: grid; gap: 0; }
.app-point { padding: 23px 0; border-top: 1px solid var(--line); }
.app-point:last-child { border-bottom: 1px solid var(--line); }
.app-point h2, .app-point h3 { margin: 0 0 7px; color: var(--ink); }
.app-point p { margin: 0; color: var(--muted); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font-weight: 800;
}
.faq-question::after { content: '+'; flex: 0 0 auto; color: var(--brand); font-size: 1.3rem; }
.faq-question[aria-expanded="true"]::after { content: '−'; }
.faq-answer { padding: 0 44px 22px 0; color: var(--muted); }
.faq-answer p { margin: 0; }

.article-head { padding: 50px 0 28px; }
.article-head-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .6fr); gap: 44px; align-items: end; }
.article-head h1 { font-size: clamp(2.1rem, 4.5vw, 4.2rem); }
.article-head .intro { margin: 20px 0 0; font-size: 1.09rem; color: #5A504B; }
.article-head figure { margin: 0; }
.article-head figure img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 24px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(210px, 1fr); gap: 58px; align-items: start; }
.article-body { min-width: 0; }
.article-body section { padding: 30px 0; border-top: 1px solid var(--line); }
.article-body section:first-child { border-top: 0; padding-top: 0; }
.article-body h2 { margin: 0 0 15px; color: var(--ink); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.3; }
.article-body p { margin: 0 0 15px; color: #514742; font-size: 1.02rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-aside { position: sticky; top: 112px; padding: 22px; border-radius: 18px; background: var(--soft); }
.article-aside h2 { margin: 0 0 12px; color: var(--ink); font-size: 1.05rem; }
.article-aside ul { margin: 0; padding: 0; list-style: none; }
.article-aside li + li { border-top: 1px solid #D9CCC1; }
.article-aside a { display: block; padding: 11px 0; color: var(--brand-strong); font-weight: 700; }

.principle-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; }
.principle { padding: 21px 0; border-top: 1px solid var(--line); }
.principle h2, .principle h3 { margin: 0 0 7px; color: var(--ink); font-size: 1.12rem; }
.principle p { margin: 0; color: var(--muted); }

.archive-group { padding: 26px 0; border-top: 1px solid var(--line); }
.archive-group h2 { margin: 0 0 6px; color: var(--ink); }
.archive-group > p { margin: 0 0 16px; color: var(--muted); }
.archive-links { display: flex; flex-wrap: wrap; gap: 10px; }
.archive-links a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--brand-strong); font-weight: 750; }

.search-results { display: grid; gap: 0; border-top: 1px solid var(--line); }
.search-result { padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-result h2 { margin: 0 0 6px; font-size: 1.23rem; }
.search-result h2 a { color: var(--ink); }
.search-result p { margin: 0 0 9px; color: var(--muted); }
.search-result .result-path { color: var(--brand-strong); font-size: .82rem; font-weight: 700; }
.empty-state { padding: 30px; border-radius: 18px; background: var(--soft); }
.empty-state h2 { margin-top: 0; color: var(--ink); }

.notice { padding: 18px 20px; border-left: 4px solid var(--amber); background: #FFF8E8; border-radius: 0 12px 12px 0; color: #5A4E3C; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.prose h2 { color: var(--ink); margin-top: 1.5em; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #514742; }
.prose ul { color: #514742; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-card { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.contact-card h2, .contact-card h3 { margin: 0 0 8px; color: var(--ink); }
.contact-card p { margin: 0; color: var(--muted); }

.site-footer { margin-top: 58px; background: #251F1D; color: #EDE3DA; }
.footer-main { display: grid; grid-template-columns: 1.2fr repeat(3, .7fr); gap: 38px; padding: 48px 0 34px; }
.footer-brand strong { font-size: 1.25rem; }
.footer-brand p { max-width: 400px; color: #BFAFA5; }
.footer-group h2 { margin: 0 0 12px; color: #fff; font-size: .9rem; }
.footer-group a { display: block; width: fit-content; margin: 7px 0; color: #CDBFB5; }
.footer-bottom { padding: 18px 0 28px; border-top: 1px solid #423735; color: #9E9189; font-size: .82rem; }
.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 28px rgba(43,37,35,.18);
}
.back-top[hidden] { display: none; }

@media (max-width: 1024px) {
    :root { --shell: min(100% - 40px, 980px); }
    .primary-nav { gap: 0; }
    .nav-link { padding-inline: 8px; font-size: .86rem; }
    .header-row { gap: 12px; }
    .home-intro-grid { gap: 34px; }
    .community-preview article, .community-preview article:nth-child(1), .community-preview article:nth-child(2), .community-preview article:nth-child(4), .community-preview article:nth-child(5) { grid-column: span 6; }
    .status-strip { grid-template-columns: repeat(2, 1fr); }
    .status-strip article:nth-child(2) { border-right: 0; }
    .status-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .topic-directory { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 34px; }
    .footer-main { grid-template-columns: 1.2fr repeat(3, .55fr); gap: 24px; }
}

@media (max-width: 860px) {
    .menu-toggle { display: inline-flex; margin-left: auto; }
    .primary-nav {
        position: absolute;
        top: 70px;
        left: 20px;
        right: 20px;
        display: none;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    .primary-nav.is-open { display: grid; }
    .nav-link { padding: 11px 12px; }
    .search-open { padding-inline: 11px; }
    .home-intro-grid, .page-hero-grid, .article-head-grid { grid-template-columns: 1fr; }
    .home-intro { padding-top: 44px; }
    .hero-image-frame { min-height: 330px; }
    .hero-image-frame img { min-height: 330px; }
    .page-hero figure img, .article-head figure img { max-height: 360px; }
    .editorial-split, .app-layout { grid-template-columns: 1fr; }
    .app-visual { position: static; }
    .app-visual img { max-height: 420px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    :root { --shell: calc(100% - 32px); }
    .narrow, .wide { width: calc(100% - 32px); }
    .header-row { min-height: 68px; }
    .brand img { width: 40px; height: 40px; }
    .brand small { display: none; }
    .search-open { font-size: 0; width: 42px; height: 42px; padding: 0; }
    .search-open::before { content: '搜'; font-size: .82rem; font-weight: 800; }
    .section { padding: 48px 0; }
    .section-head { display: block; }
    .section-head .text-link { display: inline-block; margin-top: 12px; }
    .pathway-row { grid-template-columns: 42px 1fr; }
    .pathway-row a { grid-column: 2; justify-self: start; }
    .community-preview { display: grid; grid-template-columns: 1fr; }
    .community-preview article, .community-preview article:nth-child(1), .community-preview article:nth-child(2), .community-preview article:nth-child(4), .community-preview article:nth-child(5) { grid-column: auto; min-height: auto; }
    .topic-ribbon { grid-template-columns: 1fr; }
    .topic-ribbon-main, .topic-ribbon-main img { min-height: 320px; }
    .channel-grid, .principle-list, .contact-grid, .two-col, .check-list { grid-template-columns: 1fr; }
    .status-row { grid-template-columns: 110px 1fr; }
    .status-row > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
    .status-head > div:nth-child(3) { display: none; }
    .topic-entry { grid-template-columns: 130px 1fr; }
    .topic-entry img { height: 130px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    :root { --shell: calc(100% - 24px); }
    .narrow, .wide { width: calc(100% - 24px); }
    .home-copy h1 { font-size: clamp(2.35rem, 13vw, 3.7rem); }
    .page-hero h1, .article-head h1 { font-size: clamp(2rem, 11vw, 3.25rem); }
    .hero-image-frame, .hero-image-frame img { min-height: 280px; }
    .hero-note { left: 14px; right: 14px; bottom: 14px; }
    .status-strip { grid-template-columns: 1fr; }
    .status-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
    .status-strip article:last-child { border-bottom: 0; }
    .status-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .topic-entry { grid-template-columns: 1fr; }
    .topic-entry img { height: 190px; }
    .step { grid-template-columns: 48px 1fr; }
    .search-dialog { padding: 26px 20px; }
    .search-form > div { display: grid; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}

@media (max-width: 375px) {
    .brand strong { font-size: 1rem; }
    .menu-toggle { padding-inline: 10px; }
    .header-row { gap: 8px; }
    .home-intro { padding-top: 34px; }
    .section { padding: 42px 0; }
    .quick-paths { display: grid; }
    .quick-paths a { width: 100%; }
    .topic-ribbon-main, .topic-ribbon-main img { min-height: 250px; }
    .topic-ribbon-main .overlay-copy { inset: auto 12px 12px 12px; }
}

body.modal-open { overflow: hidden; }
code { padding: .12em .34em; border-radius: 6px; background: #E9E0D8; color: #7B3B27; font-size: .92em; }
