/* A quiet reading surface using the site's existing palette and typography. */
.guide-layout{display:grid;grid-template-columns:minmax(0,42rem) minmax(12rem,1fr);gap:4rem;align-items:start}
.guide-article{min-width:0;font-size:1.0625rem;line-height:1.8;letter-spacing:0}
.guide-article section{margin:0 0 2.75rem;scroll-margin-top:10rem}
.guide-article h2{font-size:1.65rem;line-height:1.25;margin-bottom:1rem}
.guide-article p{margin-bottom:1.25rem}
.guide-takeaway{padding:1.5rem;border-left:3px solid var(--line);background:var(--soft);border-radius:0 1rem 1rem 0;margin-bottom:2.5rem}
/* "If You’re A Single Parent" / "For Families" notes inside existing guides (release 8). */
.guide-family-note{margin:1.25rem 0 0;padding:1rem 1.25rem;border-left:3px solid var(--brand);background:var(--soft);border-radius:0 1rem 1rem 0}.guide-family-note p{margin:0}
.guide-takeaway p:last-child{margin-bottom:0;font-size:1.2rem;line-height:1.5}
.guide-toc{padding:1.4rem;background:var(--card);border:1px solid var(--hair);border-radius:1rem}
.guide-toc a{display:block;padding:.55rem 0;font-size:.9375rem;line-height:1.5}
.guide-numbers{margin:1.5rem 0;padding:0 1.25rem;background:var(--soft);border-radius:1rem}
.guide-numbers div{display:flex;justify-content:space-between;gap:1.25rem;padding:1rem 0;border-bottom:1px solid var(--hair)}
.guide-numbers div:last-child{border:0}.guide-numbers dt{font-size:1rem}.guide-numbers dd{margin:0;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.guide-cta{background:var(--card);border:1px solid var(--hair);border-top:3px solid var(--line);border-radius:1rem;padding:1.5rem;margin:2rem 0}
.guide-article .note,.guide-sources{font-size:.9375rem;line-height:1.7}.guide-sources a{overflow-wrap:anywhere}
.guide-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}.guide-list li{min-width:0;overflow:hidden;border:1px solid var(--hair);border-radius:1rem;background:var(--card)}.guide-list h2,.guide-list h3{font-size:1.45rem;line-height:1.25}.guide-card-copy{padding:1.25rem}.guide-list p{max-width:42rem}.guide-list img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.guide-hero{display:block;width:min(100%,42rem);height:auto;max-height:22rem;aspect-ratio:2/1;object-fit:cover;border-radius:1rem;margin:0 0 2rem}
.guide-meta{font-size:.875rem;color:var(--muted)}.guide-meta p{margin:.25rem 0}.guide-meta a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.guide-article .guide-answer h2.eyebrow{font-size:.875rem;line-height:1.4;margin:0 0 .75rem}.guide-answer>p:not(.guide-stat){font-size:1.125rem;line-height:1.65;margin-bottom:1rem}.guide-takeaway .guide-stat{font-family:'Bricolage Grotesque',sans-serif;font-weight:600}
.guide-faq h3{font-size:1.2rem;line-height:1.35;margin:1.75rem 0 .5rem}.guide-faq h3+p{margin-bottom:0}
.guide-jump{display:none}@media(max-width:800px){.guide-layout{display:flex;flex-direction:column;gap:2rem}.guide-toc{display:none}.guide-jump{display:block;margin:0 0 1.5rem;background:var(--card);border:1px solid var(--hair);border-radius:1rem}.guide-jump summary{cursor:pointer;font-weight:600;padding:.9rem 1.2rem;min-height:44px}.guide-jump a{display:block;padding:.55rem 1.2rem;font-size:.9375rem;line-height:1.5}.guide-jump details[open]{padding-bottom:.8rem}.guide-article{width:100%}.guide-list{grid-template-columns:1fr}}
@media(max-width:420px){.guide-numbers div{display:block}.guide-numbers dd{margin-top:.3rem}.guide-takeaway,.guide-cta{padding:1.25rem}}
/* Play promo: a butter tile (release 4 removed the old brown left bar). */
.play-promo{margin:0 0 1.5rem;padding:1.25rem;border-radius:var(--radius);background:var(--tile-butter)}
.play-promo h2{margin:.25rem 0 .5rem}
.play-promo p{margin:0 0 .75rem;max-width:44rem}
.play-promo .btn{min-height:44px}
@media(max-width:560px){.play-promo .btn{display:block;width:100%}}
/* In-article graphics (scripts/guide-graphics.js): explainer diagrams, charts, key numbers and steps.
   Inline SVG takes its colours from tokens, so it follows light and dark themes. */
.graphic,.key-number{margin:2rem 0;max-width:42rem}
.graphic{padding:1.25rem;background:var(--card);border:1px solid var(--hair);border-radius:1rem}
.graphic-caption{display:block;margin:0 0 1rem}
.graphic-title{display:block;font:700 1.2rem/1.3 'Bricolage Grotesque',sans-serif;letter-spacing:-.02em;color:var(--ink)}
.graphic-text{display:block;margin-top:.4rem;font-size:.9375rem;line-height:1.6;color:var(--muted)}
.graphic-svg{display:block;width:100%;max-width:28rem;height:auto;overflow:visible}.graphic--flow .graphic-svg,.graphic--levels .graphic-svg{margin:0 auto}
.graphic-source{margin:1rem 0 0!important;font-size:.875rem;line-height:1.6;color:var(--muted)}.graphic-source a{overflow-wrap:anywhere}
.graphic svg text{font-family:'Figtree',sans-serif;fill:var(--ink)}
.graphic .g-value{font:700 1.375rem 'Bricolage Grotesque',sans-serif;letter-spacing:-.02em}
.graphic .g-value--sm{font-size:1.1875rem}.graphic .g-label{font-size:.875rem;fill:var(--muted)}.graphic .g-label--strong{fill:var(--ink);font-weight:600}
.graphic .g-stop-label{font:700 1rem 'Bricolage Grotesque',sans-serif}
.graphic .g-duration{font:600 .875rem 'Figtree',sans-serif;fill:var(--muted)}.graphic .g-verify{fill:var(--danger)}
.graphic .g-axis{font:11px 'Figtree',sans-serif;fill:var(--muted)}.graphic .g-bar-value{font:600 .875rem 'Figtree',sans-serif}
.g-node rect,.g-step{fill:var(--soft);stroke:var(--hair)}
.g-edge,.g-line{fill:none;stroke:var(--muted);stroke-width:2.5;stroke-linejoin:round}.g-line{stroke-width:5;stroke-linecap:round}
.g-dot,.g-station{fill:var(--card);stroke:var(--ink);stroke-width:2.5}.g-station--end{stroke-width:3.5}
.g-grid{stroke:var(--hair);stroke-width:1}.g-base{stroke:var(--hair);stroke-width:2}
.g-tone-brand{--g:var(--line)}.g-tone-ns{--g:var(--line-ns)}.g-tone-ew{--g:var(--line-ew)}.g-tone-ne{--g:var(--line-ne)}.g-tone-cc{--g:var(--line-cc)}.g-tone-dt{--g:var(--line-dt)}.g-tone-te{--g:var(--line-te)}.g-tone-jr{--g:var(--line-jr)}
.g-node .g-node-bar,.g-level .g-node-bar,.g-bar-fill{fill:var(--g);stroke:none}
.g-line{stroke:var(--g)}.g-stop .g-station,.g-level .g-dot,.g-legend .g-station{stroke:var(--g)}
.g-stack-seg{fill:var(--g);stroke:var(--card);stroke-width:2}.g-marker{fill:none;stroke:var(--ink);stroke-width:2.5;stroke-dasharray:4 3}
.graphic-table{margin-top:1rem}.graphic-table caption{text-align:left;font-weight:600;font-size:.875rem;padding:0 0 .5rem}.graphic-table th[scope=row]{font-size:.875rem;color:var(--ink);font-weight:500}.graphic-table td,.graphic-table th{vertical-align:top}
.key-number{padding:1.5rem;border:1px solid var(--hair);border-left:6px solid var(--g);border-radius:0 1rem 1rem 0;background:var(--soft)}
.guide-article .key-number p{margin:0}
.key-number-label{font:600 .8125rem 'Figtree',sans-serif;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}
.key-number-value{font:700 clamp(2.75rem,12vw,4rem)/1.05 'Bricolage Grotesque',sans-serif;letter-spacing:-.04em;color:var(--ink);font-variant-numeric:tabular-nums;margin:.35rem 0 .75rem!important;overflow-wrap:anywhere}
.key-number-assumption{font-size:1rem;line-height:1.6}
.key-number-share{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem!important}
.key-number-share a{display:inline-flex;flex-direction:column;justify-content:center;min-height:44px;padding:.5rem .9rem;border:1px solid var(--hair);border-radius:.5rem;background:var(--card);font-size:.875rem;font-weight:600;line-height:1.3;text-decoration:none}
.key-number-size{font:400 .875rem 'Figtree',sans-serif;color:var(--muted)}
.steps{list-style:none;counter-reset:step;margin:0;padding:0}
.steps li{counter-increment:step;position:relative;padding:0 0 1.35rem 3.25rem;min-height:2.5rem}
.steps li::before{content:counter(step);position:absolute;left:0;top:0;width:2.25rem;height:2.25rem;display:grid;place-items:center;border:3px solid var(--g);border-radius:10px;background:var(--card);font:700 1rem 'Bricolage Grotesque',sans-serif;z-index:1}
.steps li::after{content:none}
.steps li:last-child{padding-bottom:0}.steps li:last-child::after{display:none}
.step-title{display:block;font:700 1.05rem/1.35 'Bricolage Grotesque',sans-serif;padding-top:.3rem}
.step-text{display:block;font-size:.9688rem;line-height:1.65;color:var(--muted);margin-top:.25rem}
@media(max-width:420px){.graphic{padding:.9rem .75rem}.key-number{padding:1.25rem}.key-number-share a{flex:1 1 100%}}
.graphic .g-bar text{paint-order:stroke;stroke:var(--card);stroke-width:4px;stroke-linejoin:round}.graphic-table td:nth-child(3){white-space:nowrap}

.graphic-list{display:none;margin:.75rem 0 0;padding-left:1.25rem;font-size:1rem;line-height:1.5}
.graphic-list li{margin:.25rem 0}
@media(max-width:22.5em){.graphic--flow .graphic-svg,.graphic--timeline .graphic-svg,.graphic--levels .graphic-svg,.graphic--stack .graphic-svg{display:none}.graphic-list{display:block}}

/* Try Your Numbers (scripts/guide-interactive.js + assets/guide-try.js): a small calculator inside a guide.
   A Friendly Coach card: soft shadow, no route line or station dot (review 7 Oct 2026). */
.guide-try{position:relative;margin:2rem 0;max-width:42rem;padding:1.25rem;background:var(--card);border:1px solid var(--hair);border-radius:1rem;box-shadow:var(--shadow-sm)}

.guide-article .guide-try h3{font-size:1.3rem;line-height:1.3;margin:.25rem 0 1rem}
.guide-article .guide-try .eyebrow{margin:0}
.guide-try-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.75rem}
.guide-try-field{display:flex;flex-direction:column;justify-content:space-between;gap:.35rem;min-width:0}
.guide-try-field label{font-size:.9375rem;line-height:1.35;font-weight:600}
.guide-try-field input{min-height:44px;font-size:1rem;font-variant-numeric:tabular-nums}
.guide-try-field input[aria-invalid=true]{border-color:var(--danger);border-width:2px}
.guide-article .guide-try-assumes{margin:.75rem 0 0;font-size:.875rem;line-height:1.5;color:var(--muted)}
.guide-article .guide-try-error{margin:.75rem 0 0;font-size:.9375rem;font-weight:600;color:var(--danger)}
.guide-try-result{position:relative;margin:1rem 0;padding:1rem 1.1rem;border-radius:.75rem;background:var(--soft)}

.guide-article .guide-try-label{margin:0;font-size:.875rem;font-weight:600;color:var(--muted)}
.guide-article .guide-try-value{margin:.15rem 0 0;font:700 clamp(2rem,9vw,2.6rem)/1.1 'Bricolage Grotesque',sans-serif;letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.guide-try-details{margin:.75rem 0 0;font-size:.9375rem;line-height:1.45}
.guide-try-details div{display:flex;justify-content:space-between;gap:1rem;padding:.4rem 0;border-top:1px solid var(--hair)}
.guide-try-details dt{color:var(--muted)}.guide-try-details dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
.guide-try .btn{min-height:44px}
.guide-article .guide-try .note{margin:.75rem 0 0;font-size:.875rem}
@media(max-width:420px){.guide-try{padding:1rem}.guide-try .btn{display:block;width:100%}}

/* Quick Check at the end of a guide: the Sharing Check card (assets/check-card.css). */
.quick-check{margin:0 0 2.75rem;max-width:42rem}
.guide-article .quick-check .check-bubble{font-size:1.0625rem;margin-bottom:1rem}
.guide-article .quick-check .check-count,.guide-article .quick-check .check-verdict,.guide-article .quick-check .check-why p{margin-top:0}
.guide-article .quick-check .check-score{margin:0 0 .5rem}
.quick-check-answers{padding-left:1.25rem}

/* Friendly Coach markers (review 3 Oct 2026): rounded squares and arrows, no station dots or route lines. */
.g-mark{fill:var(--card);stroke:var(--g);stroke-width:2.5}.g-mark--end{fill:var(--g)}.g-swatch{fill:var(--g)}.g-arrow{fill:none;stroke:var(--muted);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
/* FAQ cards (release 4): native <details>, the first open, a ＋/− icon, a bold short answer first, the key number in big green. */
.faq-cards{display:grid;gap:10px;margin-top:1rem}
.faq-card{background:var(--card);border:1px solid var(--hair);border-radius:16px;box-shadow:var(--shadow-sm)}
.faq-card summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:14px 16px;cursor:pointer;list-style:none}
.faq-card summary::-webkit-details-marker{display:none}
.faq-card summary:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:16px}
.guide-faq .faq-card h3{margin:0;font-size:1.0625rem;line-height:1.35}
.faq-icon{position:relative;flex:none;width:32px;height:32px;border-radius:50%;background:var(--sun)}
.faq-icon::before,.faq-icon::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2.5px;border-radius:2px;background:var(--sun-ink);transform:translate(-50%,-50%)}
.faq-icon::after{transform:translate(-50%,-50%) rotate(90deg);transition:transform .15s}
.faq-card[open] .faq-icon::after{transform:translate(-50%,-50%) rotate(0deg)}
@media(prefers-reduced-motion:reduce){.faq-icon::after{transition:none}}
.faq-body{padding:0 16px 16px}
.faq-short{margin:0 0 .5rem;font-weight:700;font-size:1rem;line-height:1.45}
.faq-more{margin:0;font-size:1rem;line-height:1.55}
.faq-number{font:800 1.5rem/1.1 'Bricolage Grotesque',sans-serif;color:var(--brand);letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.faq-try{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;font-weight:700}
/* Large text (200% root text on a phone): SVG labels are sized in rem and outgrow the fixed viewBox, so the
   step graphics switch to their HTML list whenever the box is narrower than 18 root-text widths (review 5 Oct 2026). */
.graphic{container-type:inline-size}
@container (max-width:18rem){.graphic--flow .graphic-svg,.graphic--timeline .graphic-svg,.graphic--levels .graphic-svg,.graphic--stack .graphic-svg{display:none}.graphic-list{display:block}}
/* "Try it" detail rows: at large text the value drops below its label instead of pushing the page sideways. */
.guide-try-details div{flex-wrap:wrap}.guide-try-details dt{min-width:0}.guide-try-details dd{margin-left:auto}
.guide-group{scroll-margin-top:6rem}
.guide-go-tool{margin:0 0 1rem;font-weight:600}.guide-go-tool a{display:inline-block;min-height:44px;padding:.6rem 0}

/* /guides/ jump links (review 6 Oct 2026). */
.guide-jump{margin:0 0 1.5rem}.guide-jump ul{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 0;padding:0}.guide-jump a{display:inline-flex;align-items:center;min-height:44px;padding:0 1rem;border:1px solid var(--hair);border-radius:999px;background:var(--card);color:var(--ink);font-weight:600;font-size:.9375rem;text-decoration:none}.guide-jump a:hover{border-color:var(--brand);color:var(--brand)}
/* Review 13 Oct 2026 (guides-04): the hub search matches the /tools/ directory search field. */
.guide-filters input[type=search],.guide-filters select{min-height:48px;margin:0;padding:11px 14px;border:1px solid var(--field-border);border-radius:10px;background:var(--paper);color:var(--ink);font:inherit;line-height:1.5}
.guide-filters input[type=search]{appearance:none;-webkit-appearance:none}
.guide-filters input[type=search]::placeholder{color:var(--muted);opacity:1}
.guide-filters .btn{min-height:48px}
/* guides-05: stacked CTA buttons keep a 12px gap when they wrap. */
.guide-cta .btn{margin:12px 12px 0 0}
/* Past monthly-review editions: a sun-yellow note that the page is dated history. */
.guide-edition-note{margin:1rem 0 0;padding:1rem 1.25rem;border-left:4px solid var(--sun);background:var(--soft);border-radius:0 1rem 1rem 0}
.guide-edition-note p{margin:0}.guide-edition-note p+p{margin-top:.5rem}
.guide-edition-note a{display:inline-block;min-height:44px;padding-block:10px;font-weight:700}
/* guides-11: long data tables open on request and become row cards on phones. */
.graphic-table-details{margin-top:1rem}.graphic-table-details>summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;color:var(--ink)}
.graphic-table:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
@media(max-width:600px){.graphic-table{overflow:visible}.graphic-table table,.graphic-table tbody,.graphic-table tr,.graphic-table th,.graphic-table td{display:block;width:auto}.graphic-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.graphic-table tr{display:grid;grid-template-columns:auto 1fr;column-gap:1rem;border:1px solid var(--hair);border-radius:12px;padding:.6rem .75rem;margin:0 0 .5rem;background:var(--card)}.graphic-table th[scope=row],.graphic-table td[data-label=Note]{grid-column:1/-1}.graphic-table td[data-label=Note]{font-size:.875rem}.graphic-table td.graphic-table-empty{display:none}.graphic-table th[scope=row],.graphic-table td{border:0;padding:.15rem 0}.graphic-table td[data-label]::before{content:attr(data-label) ": ";font-weight:600}.graphic-table td[data-label=Checked]::before{content:"Checked "}.graphic-table td:nth-child(3){white-space:normal}}
