.guide-page .doc-section { max-width: 1320px; }
.guide-hero { max-width: 1320px; margin: 0 auto; padding: 140px clamp(32px, 6vw, 90px) 80px; border-bottom: 1px solid var(--line); }
.guide-hero h1 { margin: 24px 0; font: 500 clamp(46px, 6vw, 88px)/1.15 var(--serif); letter-spacing: -.04em; color: var(--gold-soft); }
.guide-deck { max-width: 850px; color: var(--muted); font: clamp(20px, 2.2vw, 27px)/1.9 var(--serif); }
.guide-meta { font-size: .875rem; color: var(--muted); margin: 24px 0 40px; }
.guide-page .eyebrow { font-size: .8rem; }
.guide-page .prose, .guide-page p { overflow-wrap: anywhere; }
.guide-page .prose { font-size: 1.0625rem; }
.guide-page .prose code { font-size: .95em; overflow-wrap: anywhere; }
.guide-page .toc a { font-size: .875rem; }
.guide-page .toc a span { font-size: .75rem; }
.guide-callout { padding: clamp(22px, 3vw, 32px); margin: 30px 0; border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); border-left: 3px solid var(--green); background: color-mix(in srgb, var(--green) 6%, var(--surface)); }
.guide-callout > strong { font: 500 1.3rem/1.65 var(--serif); color: var(--gold-soft); }
.guide-callout p { margin: 14px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.guide-callout.caution { border-color: color-mix(in srgb, var(--gold) 50%, transparent); border-left-color: var(--gold); }
.guide-figure { margin: 42px 0; }
.guide-figure .gallery-card { display: block; width: 100%; border-color: var(--line); }
.guide-figure .gallery-card:hover { transform: none; }
.guide-figure .gallery-card img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; }
.guide-figure .gallery-card:hover img { transform: none; }
.guide-figure figcaption { color: var(--muted); font-size: .875rem; margin-top: 13px; line-height: 1.8; }
.guide-table { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); background: var(--surface); }
.guide-table table { width: 100%; min-width: 640px; border-collapse: collapse; }
.guide-table caption { padding: 16px 20px; text-align: left; color: var(--muted); font-size: .875rem; }
.guide-table th, .guide-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .9375rem; line-height: 1.75; }
.guide-table th { color: var(--gold-soft); font-weight: 600; background: var(--surface-2); }
.guide-table td { color: var(--muted); }
.guide-table td:first-child { color: var(--text); font-weight: 500; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table [data-zero-stage], .guide-table [data-transfer-gbs] { color: var(--gold-soft); font: 1.125rem/1.7 Georgia, serif; white-space: nowrap; }
.guide-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 30px 0; list-style: none; counter-reset: gstep; }
.guide-steps li { padding: 25px; background: var(--surface); border: 1px solid var(--line); counter-increment: gstep; }
.guide-steps b { color: var(--text); font-weight: 500; font-size: 1.125rem; }
.guide-steps b::before { content: "0" counter(gstep) " / "; color: var(--gold); font: .875rem Georgia, serif; }
.guide-steps p { color: var(--muted); font-size: 1rem; margin: 12px 0 0; }
.guide-formula { padding: 20px 22px; margin: 24px 0 16px; border-left: 2px solid var(--gold); background: var(--surface-2); color: var(--gold-soft); font: 1.125rem/1.8 Georgia, var(--serif); overflow-wrap: anywhere; }
.guide-note { font-size: .875rem; color: var(--muted); line-height: 1.9; margin: 16px 0 28px; }
.guide-page a:not(.brand):not(.toc a):not(.source-list a) { text-underline-offset: 4px; text-decoration-color: var(--green); }
.guide-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0; }
.guide-pair article { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.guide-pair h3, .guide-verdicts h3 { margin: 0 0 16px; font: 500 1.5rem/1.5 var(--serif); }
.guide-pair p, .guide-verdicts p { color: var(--muted); font-size: 1rem; line-height: 1.85; margin-bottom: 0; }
.guide-calculator { margin: 36px 0; padding: clamp(20px, 3vw, 32px); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: linear-gradient(140deg, color-mix(in srgb, var(--gold) 6%, var(--surface)), var(--surface)); }
.guide-calculator h3, .guide-subtitle { margin: 24px 0; font: 500 clamp(23px, 2.5vw, 32px)/1.5 var(--serif); }
.guide-calculator > h3 { margin-top: 0; }
.guide-calculator > p { color: var(--muted); }
.guide-controls { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0; }
.guide-controls label { display: grid; flex: 1 1 220px; gap: 10px; font-size: .9375rem; color: var(--text); }
.guide-controls input[type="number"], .guide-controls select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--text); font-size: 1rem; }
.guide-controls input[type="range"] { width: 100%; accent-color: var(--gold); }
.guide-controls output { color: var(--gold-soft); }
.guide-verdicts { display: grid; gap: 14px; margin: 38px 0; }
.guide-verdicts article { padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.guide-verdicts b { display: block; color: var(--green); font: .9rem Georgia, serif; margin-bottom: 12px; }
.guide-checklist { padding-left: 25px; }
.guide-checklist li { padding: 10px 0 22px 10px; border-bottom: 1px solid var(--line); }
.guide-checklist li::marker { color: var(--gold); }
.guide-checklist h3 { font: 500 1.4rem var(--serif); margin-bottom: 12px; }
.guide-checklist p { color: var(--muted); font-size: 1rem; line-height: 1.85; }
.guide-page .modal-content img { width: min(1300px, 90vw); }
.guide-page .image-dialog { width: min(1380px, 96vw); }
.guide-page button:focus-visible, .guide-page a:focus-visible, .guide-page input:focus-visible, .guide-page select:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.guide-home-link { display: block; margin: 24px 0 0; padding: 16px; border: 1px solid var(--line); color: var(--gold-soft); text-decoration: none; font-size: .875rem; background: var(--surface); }
.guide-home-link small { display: block; margin-top: 5px; color: var(--muted); font-size: .8rem; }
.pipeline-timeline table { min-width: 740px; }
.pipeline-timeline td { text-align: center; }
.pipeline-timeline .mb-a { color: var(--text); background: color-mix(in srgb, var(--gold) 22%, var(--surface)); font-weight: 700; }
.pipeline-timeline .mb-b { color: var(--text); background: color-mix(in srgb, var(--green) 22%, var(--surface)); font-weight: 700; }
.pipeline-timeline .mb-c { color: var(--text); background: color-mix(in srgb, #669cdb 24%, var(--surface)); font-weight: 700; }
.pipeline-timeline .mb-d { color: var(--text); background: color-mix(in srgb, #bd83c6 24%, var(--surface)); font-weight: 700; }
.hybrid-map { margin: 32px 0; }
.hybrid-map-scroll { overflow-x: auto; border: 1px solid var(--line); padding: 24px; background: var(--surface); }
.hybrid-map-grid { display: grid; grid-template-columns: 100px repeat(4, minmax(142px, 1fr)); gap: 16px; min-width: 770px; align-items: center; }
.hybrid-row-label { color: var(--gold-soft); font-size: 1rem; }
.hybrid-row-label small { display: block; color: var(--muted); font-size: .875rem; margin-top: 7px; }
.hybrid-node { position: relative; padding: 20px 12px; border: 1px solid var(--green); background: color-mix(in srgb, var(--green) 7%, var(--surface)); text-align: center; }
.hybrid-node:not(:nth-child(5n))::after { content: "→"; position: absolute; right: -17px; top: calc(50% - .7em); width: 16px; color: var(--green); }
.hybrid-node b, .hybrid-node span, .hybrid-node small { display: block; }
.hybrid-node b { color: var(--text); font-size: 1rem; margin-bottom: 10px; }
.hybrid-node span { color: var(--green); font-size: .875rem; }
.hybrid-node small { color: var(--muted); font-size: .875rem; margin-top: 8px; }
.hybrid-sync { text-align: center; color: var(--gold-soft); font-size: .875rem; }
.hybrid-map figcaption { margin-top: 14px; font-size: .875rem; color: var(--muted); line-height: 1.85; }
@media (max-width: 820px) { .guide-hero { padding: 112px 24px 60px; } .guide-pair { grid-template-columns: 1fr; } .guide-page .doc-section { padding: 80px 24px; } }
@media (max-width: 520px) { .guide-steps { grid-template-columns: 1fr; } .guide-table th, .guide-table td { padding: 13px; } .guide-figure { margin-left: -12px; margin-right: -12px; } .guide-figure figcaption { padding: 0 12px; } .guide-hero h1 { font-size: 44px; } .guide-pair article, .guide-verdicts article { padding: 22px; } }
