/* Guides use the same reading layout as About and Methodology. */
.guide-page {
    --guide-ink: #e2e8f0;
    --guide-copy: #b7c3d4;
    --guide-muted: #aab8cd;
    --guide-accent: #f4bd65;
    --guide-line: #ffffff16;
    margin: 0;
    background: var(--surface, #111827);
    color: var(--guide-ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
}
.guide-page *, .guide-page *::before, .guide-page *::after { box-sizing: border-box; }
.guide-page a { color: inherit; text-decoration: none; }
.guide-page a:hover { text-decoration: underline; text-underline-offset: 5px; }
.guide-page a:focus-visible, .guide-page summary:focus-visible { box-shadow: 0 0 0 2px var(--guide-accent); border-radius: 2px; }
.guide-page .guide-header { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1160px; min-height: 0; margin-inline: auto; padding: 28px 32px; border-bottom: 1px solid var(--guide-line); gap: 24px; }
.guide-page .guide-brand { flex: none; color: var(--guide-ink); font: 20px/1.8 Georgia, 'Songti SC', serif; letter-spacing: .06em; }
.guide-page .guide-languages { display: flex; align-items: center; gap: 6px; }
.guide-page .guide-languages a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 36px; padding: 2px 6px; color: var(--guide-muted); font-size: 12px; }
.guide-page .guide-languages a[aria-current='page'] { color: var(--guide-accent); text-decoration: underline; text-underline-offset: 6px; }
.guide-page .guide-main, .guide-page .guide-index { width: 100%; max-width: 1160px; margin-inline: auto; padding: 0 32px 80px; }
.guide-page .public-hero { max-width: 850px; padding: 80px 0 48px; margin: 0; border: 0; }
.guide-page h1 { margin: 22px 0; color: var(--guide-ink); font: 500 clamp(34px, 5vw, 58px)/1.25 Georgia, 'Songti SC', serif; letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: pretty; }
.guide-page .public-hero > p { max-width: 690px; margin: 0; color: var(--guide-muted); font-size: 18px; }
.guide-page .breadcrumb { display: inline-block; min-height: 28px; color: var(--guide-accent); font-size: 13px; }
.guide-page .public-hero .article-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-top: 24px; color: var(--guide-muted); font-size: 12px; }
.guide-page .article-meta a { text-decoration: underline; text-underline-offset: 4px; }
.guide-page time { display: inline; margin: 0; font: inherit; }
.guide-page .guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 38px; border-top: 1px solid var(--guide-line); }
.guide-page .guide-toc { align-self: start; position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; scrollbar-width: thin; color: var(--guide-muted); font-size: 13px; }
.guide-page .guide-toc-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 16px; color: var(--guide-ink); font-size: 13px; font-weight: 500; cursor: pointer; list-style: none; }
.guide-page summary::-webkit-details-marker { display: none; }
.guide-page .guide-toc-disclosure > summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.guide-page .guide-toc-disclosure[open] > summary svg { transform: rotate(180deg); }
.guide-page .guide-toc nav { display: block; margin: 0; }
.guide-page .guide-toc ol { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.guide-page .guide-toc a { display: flex; align-items: baseline; gap: 10px; line-height: 1.8; }
.guide-page .guide-toc a > span { flex: none; color: #b99057; font: 11px/1.8 monospace; }
.guide-page .guide-article, .guide-page .guide-article-shell { min-width: 0; }
.guide-page .public-section { scroll-margin-top: 24px; padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--guide-line); }
.guide-page .public-section-number { color: #b99057; font: 11px/1.8 monospace; letter-spacing: .15em; }
.guide-page h2 { margin: 10px 0 18px; color: var(--guide-ink); font: 500 22px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; overflow-wrap: anywhere; }
.guide-page .article-body p, .guide-page .article-faq p, .guide-page .article-faq li { margin: 0 0 18px; color: var(--guide-copy); font-size: 15px; overflow-wrap: anywhere; }
.guide-page .article-body p:last-child { margin-bottom: 0; }
.guide-page .article-note { position: static; margin: 0 0 32px; padding: 0; color: var(--guide-muted); font-size: 13px; line-height: 1.8; }
.guide-page .article-faq { scroll-margin-top: 24px; margin-bottom: 32px; }
.guide-page .article-faq details { border-top: 1px solid var(--guide-line); }
.guide-page .article-faq details:last-child { border-bottom: 1px solid var(--guide-line); }
.guide-page .article-faq summary { position: relative; list-style: none; padding: 18px 32px 18px 0; color: var(--guide-ink); font-size: 15px; font-weight: 500; line-height: 1.8; cursor: pointer; }
.guide-page .article-faq summary::after { content: ''; position: absolute; right: 4px; top: 25px; width: 7px; height: 7px; border-right: 1px solid var(--guide-muted); border-bottom: 1px solid var(--guide-muted); transform: rotate(45deg); }
.guide-page .article-faq details[open] summary::after { transform: rotate(225deg); top: 29px; }
.guide-page .article-faq details p { margin: 0 0 18px; }
.guide-page #references { padding-bottom: 32px; border-bottom: 1px solid var(--guide-line); }
.guide-page #references ul { padding-left: 22px; }
.guide-page #references li { margin: 0; padding-block: 8px; }
.guide-page #references a { color: var(--guide-accent); text-decoration: underline; text-underline-offset: 4px; }
/* The list is an editorial index, not a grid of elevated cards. */
.guide-page .guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--guide-line); }
.guide-page .guide-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: start; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--guide-line); }
.guide-page .guide-card:hover { text-decoration: none; }
.guide-page .guide-card:hover h2 { color: var(--guide-accent); }
.guide-page .guide-card-number { padding-top: 6px; color: #b99057; font: 11px/1.8 monospace; letter-spacing: .15em; }
.guide-page .guide-card h2 { margin: 0 0 12px; }
.guide-page .guide-card p { max-width: 760px; margin: 0 0 16px; color: var(--guide-copy); font-size: 15px; line-height: 1.8; }
.guide-page .guide-card small { display: block; color: var(--guide-muted); font-size: 12px; }
.guide-page .guide-card-arrow { width: 20px; height: 20px; margin-top: 6px; fill: none; stroke: var(--guide-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.guide-page .related { margin-top: 40px; }
.guide-page .related-grid { display: block; }
.guide-page .related-card { display: block; padding: 22px 0; border-top: 1px solid var(--guide-line); }
.guide-page .related-card:last-child { border-bottom: 1px solid var(--guide-line); }
.guide-page .related-card > span { display: none; }
.guide-page .related-card strong { display: block; margin-bottom: 8px; font-size: 17px; line-height: 1.6; font-weight: 500; }
.guide-page .related-card small { display: block; color: var(--guide-muted); font-size: 13px; line-height: 1.8; }
.guide-page .related-card:hover { text-decoration: none; }
.guide-page .related-card:hover strong { color: var(--guide-accent); }
.guide-page .chart-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; margin: 40px 0; border: 1px solid #b9905744; border-radius: 12px; background: #141c2b; }
.guide-page .chart-cta:hover { text-decoration: none; border-color: var(--guide-accent); }
.guide-page .chart-cta-copy { display: grid; gap: 8px; min-width: 0; }
.guide-page .chart-cta-eyebrow { display: none; }
.guide-page .chart-cta strong { font: 500 22px/1.5 Georgia, 'Songti SC', serif; }
.guide-page .chart-cta small { color: var(--guide-muted); font-size: 13px; }
.guide-page .chart-cta-action { display: inline-flex; align-items: center; justify-content: space-between; flex: none; gap: 20px; min-height: 44px; padding: 10px 16px; border-radius: 6px; background: var(--guide-accent); color: #171717; font-size: 14px; white-space: nowrap; }
.guide-page .chart-cta-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
    .guide-page .guide-header { padding: 22px 20px; gap: 16px; }
    .guide-page .guide-main, .guide-page .guide-index { padding: 0 20px 40px; }
    .guide-page .public-hero { padding: 48px 0 30px; }
    .guide-page .public-hero > p { font-size: 16px; }
    .guide-page .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; }
    .guide-page .guide-toc { position: static; max-height: none; overflow: visible; padding-bottom: 24px; border-bottom: 1px solid var(--guide-line); }
    .guide-page .guide-toc-disclosure > summary { min-height: 44px; margin: 0; }
    .guide-page .guide-toc nav { margin-top: 16px; }
    .guide-page .guide-toc ol { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
    .guide-page h2 { font-size: 21px; }
    .guide-page .guide-card { grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 12px; padding: 28px 0; }
    .guide-page .guide-card-arrow { width: 18px; }
    .guide-page .chart-cta { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; }
    .guide-page .chart-cta-action { align-self: flex-start; }
}
@media (max-width: 480px) {
    .guide-page .guide-header { padding: 18px 16px; gap: 10px; }
    .guide-page .guide-brand { font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
}
@media (max-width: 380px) {
    .guide-page .guide-toc ol { grid-template-columns: minmax(0, 1fr); }
    .guide-page .guide-card { grid-template-columns: 20px minmax(0, 1fr); }
    .guide-page .guide-card-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .guide-page .guide-toc-disclosure > summary svg { transition: none; }
}
