/* Long-form practice guides (scripts/build-guides.mjs): a white reading page with a centred title,
   a sticky table of contents on the left, a single reading column, stat cards, callouts, sources
   and a "Keep reading" row of square art cards. */
html:has(body.ma-article-page){background:#fff}
body.ma-article-page{height:auto;min-height:100%;--ga-ink:#0d0d0d;--ga-muted:#5d5d5d;--ga-line:#e5e5e5;--ga-soft:#f4f4f4;--ga-tip:#e8f4fd;--ga-col:680px;margin:0;background:#fff;color:var(--ga-ink);font-family:Geist,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
/* Black lettering on the white page, as on the homepage; the open menu and hover panel stay dark. */
.ma-article-page .topbar:not(.nav-open):not(:has(.nav-item:hover)):not(:has(.nav-item:focus-within)) .brand,
.ma-article-page .topbar:not(.nav-open) .menu-toggle{color:var(--ga-ink)}
@media(min-width:1181px){
  .ma-article-page .topbar:not(:has(.nav-item:hover)):not(:has(.nav-item:focus-within)) nav > a:not(.nav-login):not(.nav-app),
  .ma-article-page .topbar:not(:has(.nav-item:hover)):not(:has(.nav-item:focus-within)) .nav-item > a{color:var(--ga-ink)}
  .ma-article-page .topbar .nav-app{border-color:var(--ga-ink)}
}
.ga{padding:0 24px;overflow-x:clip}
.ga a{color:inherit}
.ga-hero{max-width:880px;margin:0 auto;padding:clamp(56px,9vw,112px) 0 40px;text-align:center}
.ga-meta{display:flex;justify-content:center;gap:12px;margin:0 0 20px;font-size:14px;font-weight:500}
.ga-meta a{color:var(--ga-muted);text-decoration:none}.ga-meta a:hover{color:var(--ga-ink)}
.ga-hero h1{margin:0 auto;max-width:880px;font-size:clamp(38px,5.4vw,64px);line-height:1.06;font-weight:500;letter-spacing:-.035em;text-wrap:balance}
.ga-sub{margin:22px auto 0;max-width:620px;font-size:18px;line-height:1.45;text-wrap:balance}
.ga-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:32px 0 0}
.ga-btn{display:inline-flex;align-items:center;gap:.35em;height:40px;padding:0 20px;border-radius:999px;background:var(--ga-soft);color:var(--ga-ink);font-size:14px;font-weight:500;text-decoration:none;transition:background .15s}
.ga-btn:hover{background:#e7e7e7}
.ga .ga-btn--dark{background:var(--ga-ink);color:#fff}.ga .ga-btn--dark:hover{background:#333}
.ga-btn:focus-visible,.ga-share:focus-visible,.ga-toc a:focus-visible,.ga-card:focus-visible{outline:2px solid var(--ga-ink);outline-offset:3px}
.ga-share-row{max-width:var(--ga-col);margin:24px auto 0;padding:16px 0 0;border-top:1px solid var(--ga-line);display:flex;justify-content:flex-end}
.ga-share{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--ga-ink);font:500 14px/1 inherit;cursor:pointer;padding:6px 0}
.ga-share svg{width:16px;height:16px}
.ga-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,var(--ga-col)) minmax(0,1fr);column-gap:40px;margin-top:32px}
.ga-toc{grid-column:1;justify-self:start;position:sticky;top:96px;align-self:start;max-width:220px;max-height:calc(100vh - 120px);overflow:auto;padding-bottom:24px}
.ga-toc ol{list-style:none;margin:0;padding:0}
.ga-toc li{margin:0 0 12px;padding-left:14px;font-size:12px;line-height:1.35}
.ga-toc li.is-major{padding-left:0}
.ga-toc a{color:var(--ga-muted);text-decoration:none}
.ga-toc a:hover,.ga-toc a.is-current{color:var(--ga-ink)}
.ga-body{grid-column:2;min-width:0;font-size:17px;line-height:1.65}
.ga-body h2{margin:0 0 28px;font-size:32px;line-height:1.15;font-weight:500;letter-spacing:-.02em;scroll-margin-top:96px}
.ga-body h3{margin:56px 0 20px;font-size:22px;line-height:1.25;font-weight:500;letter-spacing:-.01em;scroll-margin-top:96px}
.ga-body h2+h3{margin-top:40px}
.ga-body h4{margin:44px 0 12px;font-size:17px;font-weight:600}
.ga-body p{margin:0 0 18px}
.ga-answer{margin:0 0 64px;padding:24px 24px 6px;border-left:3px solid var(--ga-ink);background:var(--ga-soft)}
.ga-body .ga-answer__label{margin:0 0 10px;font-size:13px;font-weight:500;color:var(--ga-muted)}
.ga-body .ga-answer h2{margin:0 0 12px;font-size:24px;line-height:1.25}
.ga-answer p:last-child{font-size:18px;line-height:1.55}
.ga-body sup{font-size:.62em;line-height:0;margin-left:1px}.ga-body sup a{text-decoration:none;color:var(--ga-muted)}
.ga-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:48px -120px}
.ga-stat{background:var(--ga-soft);border-radius:4px;padding:24px 22px 26px;min-height:180px}
.ga-stat__label{margin:0 0 28px!important;font-size:14px;font-weight:600}
.ga-stat__value{margin:0 0 12px!important;font-size:clamp(40px,4vw,52px);line-height:1;letter-spacing:-.04em}
.ga-stat__body{margin:0!important;font-size:13px;line-height:1.45}
.ga-arrows{list-style:none;margin:0 0 18px;padding:0}
.ga-arrows li{display:grid;grid-template-columns:18px 1fr;gap:12px;margin:0 0 12px}
.ga-arrow{width:16px;height:16px;margin-top:.3em}
.ga-steps{margin:0;padding-left:22px}.ga-steps li{margin:0 0 10px;padding-left:4px}
.ga-callout{margin:24px 0 8px;padding:18px 20px;border-radius:8px;background:var(--ga-soft);font-size:14px;line-height:1.55}
.ga-callout--tip{background:var(--ga-tip)}
.ga-callout p{margin:0!important}
.ga-callout .ga-callout__label{display:flex;align-items:center;gap:8px;margin:0 0 10px!important;color:var(--ga-muted);font-size:13px}
.ga-callout__label svg{width:16px;height:16px;color:var(--ga-ink)}
.ga-rule{border:0;border-top:1px solid var(--ga-line);margin:64px calc(50% - 50vw);width:auto}
.ga-cta{max-width:920px;margin:96px auto 0;padding:clamp(56px,8vw,88px) 24px;background:var(--ga-soft);border-radius:4px;text-align:center}
.ga-cta h2{margin:0;font-size:clamp(30px,3.6vw,44px);line-height:1.1;font-weight:500;letter-spacing:-.03em}
.ga-cta p{margin:14px 0 0;font-size:16px}
.ga-cta .ga-actions{margin-top:28px}
.ga-cta .ga-btn:not(.ga-btn--dark){background:#e6e6e6}
.ga-sources{margin:32px 0 0;padding:44px 24px 56px;background:var(--ga-soft);border-radius:4px}
.ga-sources>div{max-width:var(--ga-col);margin:0 auto}
.ga-sources h2{margin:0 0 16px;font-size:13px;font-weight:500;color:var(--ga-muted)}
.ga-sources ol{margin:0;padding:0;list-style:none;counter-reset:src}
.ga-sources li{counter-increment:src;margin:0 0 14px;font-size:13px;line-height:1.5}
.ga-sources li:before{content:counter(src) ". ";color:var(--ga-muted)}
.ga-sources a{text-decoration:underline;text-decoration-color:#9a9a9a;text-underline-offset:3px}
.ga-note{margin:24px 0 0;font-size:12px;color:var(--ga-muted)}
.ga-more{max-width:1400px;margin:72px auto 0;padding-bottom:96px}
.ga-more__head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:28px}
.ga-more__head h2{margin:0;font-size:26px;font-weight:500;letter-spacing:-.02em}
.ga-more__head a{font-size:14px;text-decoration:none}
.ga-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.ga-card{display:flex;flex-direction:column;text-decoration:none}
.ga-card img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:4px;background:var(--ga-soft);transition:opacity .2s}
.ga-card:hover img{opacity:.9}
.ga-card__title{margin-top:16px;font-size:17px;font-weight:500;line-height:1.3}
.ga-card__meta{display:flex;gap:10px;margin-top:10px;font-size:13px}.ga-card__meta time{color:var(--ga-muted)}
@media (max-width:1180px){.ga-layout{grid-template-columns:minmax(0,1fr) minmax(0,var(--ga-col)) minmax(0,1fr)}.ga-toc{display:none}.ga-stats{margin:48px 0}}
@media (max-width:760px){.ga{padding:0 16px}.ga-stats{grid-template-columns:1fr}.ga-stat{min-height:0}.ga-cards{grid-template-columns:1fr}.ga-body{font-size:16px}.ga-body h2{font-size:28px}.ga-layout{display:block}.ga-rule{margin:48px 0}}
@media (prefers-reduced-motion:reduce){.ga-btn,.ga-card img{transition:none}}
