.guide-page { background: #fff; }
.guide-shell { width: calc(100% - 88px); max-width: 1310px; margin-inline: auto; }
.guide-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 46px; padding-block: 44px 72px; min-height: 680px; }
.guide-main { min-width: 0; }
.guide-intro h1 { font-size: clamp(34px,4vw,48px); line-height: 1.15; letter-spacing: -.04em; }
.guide-intro h1 span { color: var(--coral); }
.guide-intro p { font-size: 21px; color: var(--muted); margin-top: 14px; }
.guide-sidebar { padding-top: 222px; border-right: 1px solid var(--line); padding-right: 28px; font-size: 15px; }
.guide-sidebar form { display: grid; gap: 12px; }
.guide-sidebar label { font-weight: 700; }
.guide-sidebar select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.guide-filter-button, .guide-article-meta button { font: inherit; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; cursor: pointer; }
.guide-sidebar nav { display: grid; gap: 4px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.guide-sidebar nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; color: var(--muted); }
.guide-sidebar nav a:hover { color: var(--coral-hover); }
.guide-sidebar .icon { width: 16px; height: 16px; }
.guide-search { margin-top: 26px; position: relative; display: flex; align-items: stretch; gap: 0; max-width: 940px; }
.guide-search-field { display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; padding-left: 16px; border: 1px solid var(--line); border-radius: 6px 0 0 6px; }
.guide-search-field:focus-within { border-color: var(--coral); box-shadow: 0 0 0 3px var(--blush); }
.guide-search-field .icon { width: 21px; height: 21px; flex-shrink: 0; color: var(--muted); }
.guide-search input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.guide-search input:focus-visible { outline: none; }
.guide-search kbd { flex: 0 0 auto; margin-right: 12px; font: inherit; font-size: 12px; color: var(--muted); background: #f5f5f5; border-radius: 3px; padding: 3px 6px; }
.guide-search > button { flex-shrink: 0; padding: 10px 22px; min-height: 48px; border: 1px solid var(--coral); border-radius: 0 6px 6px 0; background: var(--coral); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.guide-search > button:hover { background: var(--coral-hover); }
.guide-search-status { color: var(--muted); font-size: 14px; min-height: 22px; margin-block: 10px 22px; }
#guide-suggestions { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 100px; list-style: none; padding: 6px; margin: 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px #00000012; border-radius: 6px; max-height: 380px; overflow-y: auto; }
#guide-suggestions[hidden] { display: none; }
#guide-suggestions a { display: block; min-height: 44px; padding: 12px; border-radius: 4px; font-size: 16px; }
#guide-suggestions a:hover, #guide-suggestions a:focus-visible { background: #f5f5f5; }
.guide-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 0 16px; }
.guide-section-heading h2 { font-size: 22px; letter-spacing: -.02em; }
.guide-section-heading > span { color: var(--muted); font-size: 14px; }
.guide-topic { border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.guide-topic summary { display: flex; align-items: center; gap: 18px; padding: 16px 14px; cursor: pointer; list-style: none; border-radius: 5px; }
.guide-topic summary::-webkit-details-marker { display: none; }
.guide-topic summary h3 { font-size: 21px; line-height: 1.3; }
.guide-topic summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s; flex-shrink: 0; }
.guide-topic[open] > summary { background: #f6f7f8; }
.guide-topic[open] > summary svg { transform: rotate(90deg); }
.guide-topic summary:hover { background: #f6f7f8; }
.guide-topic-articles { padding-left: 62px; }
.guide-topic-articles h4 { margin-top: 18px; color: var(--muted); font-size: 14px; }
.guide-article-link { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 20px; gap: 20px; align-items: center; min-height: 58px; padding-block: 16px; border-bottom: 1px solid var(--line); font-size: 17px; transition: color .15s; }
.guide-article-link strong { font-weight: 600; }
.guide-article-link > span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.guide-article-link .icon { width: 18px; height: 18px; }
.guide-article-link:hover { color: var(--coral-hover); }
.guide-breadcrumb { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.guide-breadcrumb a:hover { color: var(--coral-hover); }
.guide-reading { display: grid; grid-template-columns: minmax(0,1fr) 172px; gap: 36px; }
.guide-article-heading h1, .guide-main section > h1 { font-size: clamp(30px,3.2vw,42px); line-height: 1.2; letter-spacing: -.035em; }
.guide-article-heading > p { margin-top: 14px; font-size: 19px; color: var(--muted); }
.guide-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.guide-article-body { font-size: 17px; line-height: 1.8; margin-top: 34px; overflow-wrap: anywhere; }
.guide-article-body h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.025em; margin-top: 38px; margin-bottom: 14px; scroll-margin-top: 110px; }
.guide-article-body h3 { font-size: 21px; line-height: 1.4; margin-block: 26px 12px; }
.guide-article-body p, .guide-article-body ul, .guide-article-body ol { margin-block: 14px; }
.guide-article-body ul, .guide-article-body ol { padding-left: 24px; }
.guide-article-body li { margin-block: 6px; }
.guide-article-body a { text-decoration: underline; text-underline-offset: 4px; color: var(--coral-hover); }
.guide-article-body img { display: block; width: 100%; height: auto; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.guide-article-body figure { margin: 26px 0; }
.guide-article-body figcaption { margin-top: 9px; font-size: 13px; color: var(--muted); }
.guide-article-body blockquote { border-left: 3px solid var(--coral); margin: 20px 0; padding: 12px 18px; background: var(--blush); }
.guide-article-body pre { overflow-x: auto; white-space: pre-wrap; padding: 16px; background: #f5f5f5; border-radius: 6px; }
.guide-article-body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; }
.guide-article-body td, .guide-article-body th { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.guide-toc { align-self: start; position: sticky; top: 110px; padding-left: 20px; border-left: 1px solid var(--line); }
.guide-toc h2 { font-size: 14px; margin-bottom: 12px; }
.guide-toc a { display: block; font-size: 14px; line-height: 1.5; padding-block: 8px; color: var(--muted); }
.guide-toc a:hover { color: var(--coral-hover); }
.guide-related { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.guide-related h2 { font-size: 22px; margin-bottom: 12px; }
.guide-related a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 14px; min-height: 44px; border-bottom: 1px solid var(--line); }
.guide-empty { color: var(--muted); font-size: 17px; line-height: 1.6; padding-block: 24px; }
.guide-empty a { display: inline-block; margin-top: 18px; color: var(--coral-hover); text-decoration: underline; }
.guide-result-count { color: var(--muted); margin-block: 18px 26px; }
.guide-change { padding-block: 24px; border-bottom: 1px solid var(--line); }
.guide-pagination { display: flex; gap: 24px; align-items: center; margin-top: 30px; font-size: 15px; }
.guide-pagination a { min-height: 44px; display: flex; align-items: center; text-decoration: underline; }
.guide-footer { padding-block: 26px; border-top: 1px solid var(--line); }
.guide-footer .guide-shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.guide-footer .brand img { width: 140px; height: auto; }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--muted); }
.guide-footer nav a { min-height: 44px; display: flex; align-items: center; }
.guide-footer p { width: 100%; color: var(--muted); font-size: 12px; }
.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; }
@media (max-width:1100px) { .guide-layout { grid-template-columns:190px minmax(0,1fr); gap:30px; }.guide-sidebar { padding-right:20px; }.guide-reading { display:flex; flex-direction:column; }.guide-toc { position:static; order:-1; display:flex; flex-wrap:wrap; gap:8px 20px; padding:14px 0; border-left:0; border-bottom:1px solid var(--line); }.guide-toc h2 { width:100%; margin-bottom:0; }.guide-toc a { padding-block:4px; } }
@media (min-width:621px) and (max-width:920px) { .guide-page .brand img { width:145px; }.guide-page .site-nav { gap:16px; font-size:14px; }.guide-page .header-inner { gap:20px; }.guide-page .button-small { padding:10px 14px; min-height:44px; font-size:14px; } }
@media (max-width:767px) { .guide-shell { width:calc(100% - 40px); }.guide-layout { grid-template-columns:1fr; padding-block:32px 44px; gap:26px; }.guide-sidebar { order:1; padding:24px 0 0; border-right:0; border-top:1px solid var(--line); }.guide-sidebar nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.guide-intro p { font-size:18px; line-height:1.5; }.guide-search kbd { display:none; }.guide-search > button { padding-inline:16px; }.guide-search input { font-size:15px; }.guide-search-field { padding-left:12px; gap:8px; }.guide-search-field .icon { width:18px; }.guide-section-heading h2 { font-size:20px; }.guide-topic summary { padding:16px 8px; gap:12px; }.guide-topic summary h3 { font-size:19px; }.guide-topic-articles { padding-left:16px; }.guide-article-link { grid-template-columns:minmax(0,1fr) 20px; gap:8px 14px; font-size:16px; }.guide-article-link > span { grid-column:1; font-size:14px; }.guide-article-link .icon { grid-column:2; grid-row:1 / span 2; }.guide-search-status { font-size:13px; }.guide-article-body { font-size:16px; }.guide-footer nav { gap:12px 20px; }#guide-suggestions { right:0; }.guide-intro h1 { font-size:34px; } }
@media (prefers-reduced-motion:reduce) { .guide-topic summary svg, .guide-article-link { transition:none; } }
@media print { .guide-page .site-header, .guide-search, .guide-search-status, .guide-sidebar, .guide-toc, .guide-footer, .guide-article-meta button, .guide-related { display:none; }.guide-shell { width:100%; max-width:none; }.guide-layout, .guide-reading { display:block; padding:0; }.guide-article-body img { max-height:500px; object-fit:contain; }.guide-article-body h2 { break-after:avoid; }.guide-article-body figure { break-inside:avoid; } }
/* Article/search navigation aligns with the reading controls, not the index list. */
.guide-page:not(.guide-index) .guide-sidebar { padding-top: 0; }
