/* A quiet reading surface using the site's existing palette and typography. */
/* Article beside "On this page" only when the article gets at least 30rem (46rem in all, with the
   12rem column and the 4rem gap); the article takes the free space first, up to 42rem. A container
   query in rem, not a viewport breakpoint: the A+ text size zooms <main>, which a media query never
   sees, so at 820px and 150% the article used to shrink to 364px (P0-11). */
.guide-layout{container:guide-layout/inline-size;display:flex;flex-wrap:wrap;align-items:flex-start;gap:2rem 4rem}
.guide-layout>.guide-article{flex:99999 1 0;max-width:42rem}.guide-layout>.guide-toc{flex:1 1 12rem;min-width:0}
@container guide-layout (max-width:45.99rem){.guide-layout>.guide-article,.guide-layout>.guide-toc{flex:1 1 100%;max-width:none}.guide-layout>.guide-toc{order:-1}}
@supports not (container-type:inline-size){@media(max-width:800px){.guide-layout>.guide-article,.guide-layout>.guide-toc{flex:1 1 100%;max-width:none}.guide-layout>.guide-toc{order:-1}}}
.guide-article{min-width:0;font-size:1.0625rem;line-height:1.8;letter-spacing:0}
.guide-article section{margin:0 0 var(--space-12);scroll-margin-top:10rem}
.guide-article h2{font-size:1.65rem;line-height:1.25;margin-bottom:var(--space-heading-after)}
.guide-article p{margin-bottom:var(--space-paragraph)}
.guide-takeaway{padding:1.5rem;border:3px solid var(--outline);background:var(--card);border-radius:var(--radius);margin-bottom:var(--space-group)}
.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}
/* Beside the article, "On this page" stays in view under the sticky header as the reader scrolls, so
   the right column is never thousands of pixels of empty ground (P1-034). A list taller than the
   window scrolls inside itself. Lengths inside the zoomed main (A+ text) are divided by --text-zoom so
   they stay true window pixels, as on Compare. */
@container guide-layout (min-width:46rem){.guide-layout>.guide-toc{--guide-toc-top:92px;position:sticky;top:calc(var(--guide-toc-top) / var(--text-zoom,1));max-height:calc((100vh - var(--guide-toc-top) - 16px) / var(--text-zoom,1));overflow-y:auto;overscroll-behavior:contain}}
.guide-toc a{display:block;padding:.55rem 0;font-size:.9375rem;line-height:1.5}
.guide-numbers{margin:var(--space-block) 0;padding:0 1.25rem;background:var(--soft);border-radius:1rem}
/* Key-value blocks: one label column, so every value in a block starts at the same place (P1-036). */
.guide-numbers div{display:grid;grid-template-columns:minmax(9rem,32%) minmax(0,1fr);gap:.3rem 1.25rem;align-items:baseline;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:var(--space-8) 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:2/1;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 var(--space-8)}
.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:.75rem;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:var(--font-head);font-weight:600}
.guide-faq h3{font-size:1.2rem;line-height:1.35;margin:var(--space-8) 0 var(--space-2)}.guide-faq h3+p{margin-bottom:0}
@media(max-width:800px){.guide-list{grid-template-columns:1fr}}
@media(max-width:420px){.guide-takeaway,.guide-cta{padding:1.25rem}}
/* A narrow article (a phone, or large text) puts each value under its label. */
@container guide-layout (max-width:28rem){.guide-numbers div{display:block}.guide-numbers dd{margin-top:.3rem}}
@supports not (container-type:inline-size){@media(max-width:420px){.guide-numbers div{display:block}.guide-numbers dd{margin-top:.3rem}}}
/* Guides hub search: the text sits clear of the border (P2-021). */
.guide-filters input{padding:0 14px;font-weight:600}
.play-promo{margin:0 0 1.5rem;padding:1.25rem;position:relative;border:3px solid var(--outline);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow-sm)}
.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:3px solid var(--outline);border-radius:var(--radius)}
.graphic-caption{display:block;margin:0 0 1rem}
.graphic-title{display:block;font:700 1.2rem/1.3 var(--font-head);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:.8125rem;line-height:1.6;color:var(--muted)}.graphic-source a{overflow-wrap:anywhere}
.graphic svg text{font-family:var(--font-body);fill:var(--ink)}
.graphic .g-value{font:700 1.375rem var(--font-head);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 var(--font-head)}
.graphic .g-duration{font:600 .75rem var(--font-body);fill:var(--muted)}.graphic .g-verify{fill:var(--danger)}
.graphic .g-axis{font:.6875rem var(--font-body);fill:var(--muted)}.graphic .g-bar-value{font:600 .8125rem var(--font-body)}
.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{stroke:var(--g)}
.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:.8125rem;color:var(--ink);font-weight:500}.graphic-table td,.graphic-table th{vertical-align:top}
.key-number{padding:1.5rem;border:3px solid var(--outline);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow-sm)}
.guide-article .key-number p{margin:0}
.key-number-label{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--ink-base);color:var(--tabbar-on);font:800 .8125rem/1.3 var(--font-head)}
.key-number-value{font:700 clamp(2.75rem,12vw,4rem)/1.05 var(--font-head);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 1rem;border:3px solid var(--outline);border-radius:999px;background:var(--card);font-size:.875rem;font-weight:800;line-height:1.3;text-decoration:none}
.key-number-size{font:400 .75rem var(--font-body);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:50%;background:var(--card);font:700 1rem var(--font-head);z-index:1}
.steps li::after{content:"";position:absolute;left:calc(1.125rem - 2px);top:2.25rem;bottom:0;width:4px;background:var(--g)}
.steps li:last-child{padding-bottom:0}.steps li:last-child::after{display:none}
.step-title{display:block;font:700 1.05rem/1.35 var(--font-head);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{display:none}.graphic-list{display:block}}

/* guides-int: printables, recheck notice and the stage path on guide pages. */
.guide-download-list{container-type:inline-size;list-style:none;margin:0;padding:0;display:grid;gap:var(--space-4)}
.guide-download-list li{display:grid;grid-template-columns:minmax(0,10rem) minmax(0,1fr);gap:1rem;align-items:start;padding:1rem;border:3px solid var(--outline);border-radius:var(--radius,18px);background:var(--card)}
/* The picture goes above the text when a card is under 30rem (in rem, so large text stacks it too). */
@container (max-width:29.99rem){.guide-download-list li{grid-template-columns:minmax(0,1fr)}.guide-download-list li>a:first-child{max-width:20rem}}
.guide-download-list img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;border-radius:10px}
.guide-download-list h3{font-size:1.15rem;line-height:1.3;margin:.2rem 0 .4rem}
.guide-download-list p{margin:0 0 .5rem;font-size:.9688rem;line-height:1.6}.guide-download-list .guide-meta{margin:0;font-weight:700}
.guide-recheck{margin:0 0 2rem;padding:1rem 1.25rem}.guide-recheck p{margin:0;font-size:.9688rem;line-height:1.6}
.guide-sources li .guide-meta{display:inline-block;max-width:100%}
.guide-stage-path{margin:var(--space-group) 0}.related a .eyebrow{display:block;margin:0 0 .15rem}
@supports not (container-type:inline-size){@media(max-width:560px){.guide-download-list li{grid-template-columns:1fr}}}
.guide-stage-path a{flex-direction:column;align-items:flex-start;justify-content:center}
.guide-answer-cta{margin:14px 0 16px}.guide-answer-cta .btn{display:inline-flex;align-items:center;min-height:44px}
/* "On this page" folds away when the guide is one column (phones, or large text on a tablet; common.js
   closes it when its summary can be clicked) so the short answer and its button come first. */
.guide-toc-fold>summary{display:block;cursor:default;list-style:none;min-height:0;padding:0;pointer-events:none}
.guide-toc-fold>summary::-webkit-details-marker{display:none}
@container guide-layout (max-width:45.99rem){.guide-toc-fold>summary{pointer-events:auto;display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer}.guide-toc-fold>summary::after{content:"";width:.55em;height:.55em;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px)}.guide-toc-fold[open]>summary::after{transform:rotate(-135deg)}.guide-toc{padding:.6rem 1rem}}
@supports not (container-type:inline-size){@media(max-width:800px){.guide-toc-fold>summary{pointer-events:auto;display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer}.guide-toc-fold>summary::after{content:"";width:.55em;height:.55em;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px)}.guide-toc-fold[open]>summary::after{transform:rotate(-135deg)}.guide-toc{padding:.6rem 1rem}}}

/* Design wave: callouts and small labels in the outlined card language (3px ink, 22px corners), not
   coloured side bars or tracked capitals. Selectors carry one more class than coach.css, which loads later. */
.guide-article .guide-takeaway{padding:var(--space-card) var(--space-6);border:3px solid var(--outline);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow-sm)}
.guide-article .guide-answer h2.eyebrow{display:inline-block;margin:0 0 var(--space-3);padding:3px 12px;border-radius:999px;background:var(--ink-base);color:var(--tabbar-on);font:800 .8125rem/1.3 var(--font-head);letter-spacing:0;text-transform:none}
nav.guide-toc{border:3px solid var(--outline);border-radius:var(--radius)}
nav.guide-toc .eyebrow{font:800 1rem/1.3 var(--font-head);letter-spacing:0;text-transform:none;color:var(--ink)}
.guide-article .eyebrow,.related .eyebrow,.guide-stage-path .eyebrow{letter-spacing:0;text-transform:none;font-family:var(--font-head);font-weight:800}
@media(max-width:420px){.guide-article .guide-takeaway{padding:var(--space-5)}}
/* Round 8 (r8-polish): guide tables never scroll sideways. A programme name keeps its subject on
   its own line, and at narrow widths or large text (the text-size zoom shrinks the box) each row
   becomes one card: the row's heading, then each cell under its column name (data-label, written
   by scripts/render-guides.js), in column order. */
.bill-table th small{display:block;margin-top:2px;font-weight:700;color:var(--muted);font-size:.8125rem;line-height:1.3}
.bill-table-wrap.stack-table{container-type:inline-size;overflow-x:visible}
@container (max-width: 34em){
  .stack-table .bill-table,.stack-table .bill-table tbody,.stack-table .bill-table tr,.stack-table .bill-table th,.stack-table .bill-table td{display:block;width:auto}
  .stack-table .bill-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .stack-table .bill-table tbody tr{padding:12px 14px;border-bottom:2px solid var(--hair)}
  .stack-table .bill-table tbody tr:last-child{border-bottom:0}
  .stack-table .bill-table tbody th,.stack-table .bill-table td{padding:0;border:0;width:auto}
  .stack-table .bill-table tbody th{font:800 1rem/1.3 var(--font-head);margin-bottom:6px}
  .stack-table .bill-table td{margin-top:8px;overflow-wrap:anywhere}
  .stack-table .bill-table td::before{content:attr(data-label);display:block;font:800 .8125rem/1.3 var(--font-body);color:var(--muted)}
  .stack-table .bill-table td[data-label=""]::before{content:none}
  .stack-table .bill-table caption{display:block;padding:12px 14px;text-align:left}
}
/* Lane legacy-guides (16 Oct 2026): tick lists and the Chinese names filter, with no script. Ticks are not saved. */
.guide-ticks,.name-filter-pick{margin:var(--space-block) 0;padding:var(--space-4);border:3px solid var(--outline);border-radius:var(--radius-field);background:var(--card)}
.guide-ticks legend,.name-filter-pick legend{font-weight:800;padding:0 var(--space-2)}
.guide-ticks label{display:flex;gap:var(--space-3);align-items:flex-start;padding:var(--space-2) 0;min-height:44px}
.guide-ticks input,.name-filter-pick input{width:1.25rem;height:1.25rem;margin:.15rem 0 0;flex:none;accent-color:var(--brand)}
.name-filter-pick{display:flex;flex-wrap:wrap;gap:var(--space-inline) var(--space-5)}
.name-filter-pick label{display:inline-flex;gap:var(--space-2);align-items:center;min-height:44px;font-weight:700}
.name-filter:has(#name-for-girl:checked) .name-list div:has([data-name-for="boy"]),.name-filter:has(#name-for-boy:checked) .name-list div:has([data-name-for="girl"]){display:none}
