/* read-fx.css: reading template for the 101 English article-*, answer-* and compare-* pages (November 2026).
   Load after fx.css. Scope: body.fx-read. Colours only from the fx tokens; the per-vertical --ac accent is not used for text.
   Solid reading surface: dot-grid ground only behind the top of the hero, 68ch measure, 18px body, contents chip in glass. */

/* ---------- column and measure ---------- */
body.fx-read .wrap.article,body.fx-read .wrap.art{max-width:calc(68ch + 64px)}
body.fx-read .wrap.art>*,body.fx-read .wrap.article>*{max-width:68ch;margin-inline:auto}
body.fx-read .wrap.article{text-align:start}

/* ---------- hero: eyebrow, headline, dot-grid ground at the top only ---------- */
body.fx-read .art-hero,body.fx-read .chero{position:relative;isolation:isolate;overflow:hidden;padding-block:clamp(48px,7vw,84px) clamp(26px,4vw,40px);
  background:linear-gradient(180deg,var(--fx-ground-2),var(--fx-ground));border-bottom:1px solid var(--fx-line)}
body.fx-read .art-hero::before,body.fx-read .chero::before,body.fx-read article.hero .wrap.article::before{content:"";position:absolute;z-index:-1;pointer-events:none;
  background:radial-gradient(var(--fx-dot) 1.1px,transparent 1.3px) 0 0/22px 22px;
  -webkit-mask:linear-gradient(180deg,#000 0%,rgba(0,0,0,.5) 55%,transparent 95%);mask:linear-gradient(180deg,#000 0%,rgba(0,0,0,.5) 55%,transparent 95%)}
body.fx-read .art-hero::before,body.fx-read .chero::before{inset:0}
body.fx-read article.hero .wrap.article{position:relative}
body.fx-read article.hero .wrap.article::before{top:-96px;height:420px;left:50%;width:100vw;margin-left:-50vw}
body.fx-read .kicker,body.fx-read .kick,body.fx-read .article .meta{display:inline-flex;align-items:center;gap:10px;margin:0 0 6px;
  font:500 var(--type-meta,.875rem)/1.4 var(--fx-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--brass-text)}
body.fx-read .kicker::before,body.fx-read .kick::before,body.fx-read .article .meta::before{content:"";width:22px;height:1px;flex:none;background:var(--fx-gold)}
body.fx-read .article h1,body.fx-read .art h1{margin:12px 0 0;font-weight:500;font-size:clamp(2rem,4.6vw,3rem);line-height:1.1;letter-spacing:-.025em;color:var(--fx-ink);text-wrap:balance}
body.fx-read article.hero .wrap.article h1{margin-bottom:22px}

/* ---------- body copy ---------- */
body.fx-read .article .body,body.fx-read .wrap.article,body.fx-read .wrap.art{font-size:1.125rem;line-height:1.7}
body.fx-read .article .body{padding-top:clamp(26px,4vw,40px)}
body.fx-read .article p,body.fx-read .art p,body.fx-read .article li{font-size:1.125rem;line-height:1.7;color:color-mix(in srgb,var(--fx-ink) 86%,transparent)}
body.fx-read .article .body>p:first-of-type,body.fx-read .article .lede,body.fx-read .art .lede{font-size:clamp(1.1875rem,1.7vw,1.3125rem);line-height:1.6;color:var(--fx-ink);padding-top:0}
body.fx-read .article .body>p:first-of-type::first-letter{float:none;margin:0;font-size:inherit;line-height:inherit;color:inherit}
body.fx-read .art .lede{padding-top:0;margin-top:0}
body.fx-read .cmp-wrap section{padding-top:clamp(22px,3vw,34px)}
body.fx-read .article .body b,body.fx-read .article .body strong,body.fx-read .article b,body.fx-read .art b{color:var(--fx-ink);font-weight:600}
body.fx-read .article a:not(.btn):not(.fx-btn),body.fx-read .art a:not(.btn):not(.fx-btn){color:var(--fx-ink);text-decoration:underline;text-decoration-color:var(--fx-line-strong);text-underline-offset:4px;overflow-wrap:anywhere}
body.fx-read .article a:not(.btn):hover,body.fx-read .art a:not(.btn):hover{text-decoration-color:var(--fx-accent)}
body.fx-read .article a:focus-visible,body.fx-read .art a:focus-visible{outline:2px solid var(--fx-accent);outline-offset:3px;border-radius:4px}

/* ---------- headings ---------- */
body.fx-read .article h2,body.fx-read .article .body h2{margin:2em 0 .55em;padding:0;border:0;font-size:clamp(1.5rem,2.5vw,1.875rem);font-weight:500;line-height:1.2;letter-spacing:-.015em;color:var(--fx-ink);text-wrap:balance;scroll-margin-top:104px}
body.fx-read .article h3{margin:1.7em 0 .45em;font-size:1.25rem;line-height:1.3;font-weight:600;color:var(--fx-ink);scroll-margin-top:104px}

/* ---------- lists ---------- */
html:root body.fx-read .hero .wrap.article :is(ul,ol),html:root body.fx-read .wrap.article :is(ul,ol){padding-inline-start:0}
body.fx-read .article ul,body.fx-read .article .body ul{list-style:none;margin:0 0 1.2em;padding:0}
body.fx-read .article li,body.fx-read .article .body li{position:relative;padding-left:26px;margin:0 0 .6em}
body.fx-read .article li::before,body.fx-read .article .body li::before{content:"";position:absolute;left:4px;top:.72em;width:7px;height:7px;border-radius:50%;background:none;border:1.5px solid var(--fx-accent);font-size:0}

/* ---------- answer box, FAQ, verdict, call to action ---------- */
body.fx-read .article .answer{margin:0 0 clamp(26px,3vw,36px);padding:20px 24px;border:1px solid var(--fx-line);border-left:3px solid var(--fx-accent);border-radius:var(--fx-radius-sm);background:var(--fx-surface)}
body.fx-read .article .answer p{font-size:1.1875rem;color:var(--fx-ink);margin:0}
body.fx-read .article .faq h3{margin:1.4em 0 .35em}
body.fx-read .verdict{margin:1.6em 0;padding:18px 22px;border:1px solid var(--fx-line);border-left:3px solid var(--fx-accent);border-radius:var(--fx-radius-sm);background:var(--fx-surface);font-size:1.125rem;line-height:1.6;color:var(--fx-ink)}
body.fx-read .article .endcta{margin-top:clamp(32px,4vw,48px);border-color:var(--fx-line-strong);background:var(--fx-surface);border-radius:var(--fx-radius)}
body.fx-read .article .related-reading{margin-top:clamp(36px,4vw,52px);padding-top:6px;border-top:1px solid var(--fx-line)}
body.fx-read .article .related-reading h2{font:500 var(--type-meta,.875rem)/1.3 var(--fx-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--brass-text);margin:22px 0 10px}
body.fx-read .article .related-reading li a{display:inline-flex;align-items:center;min-height:44px;font-size:1.0625rem}
body.fx-read .article .related-reading li{margin:0}
body.fx-read .cta-row{display:flex;flex-wrap:wrap;gap:12px}
body.fx-read .cta-row .btn{min-height:44px}

/* ---------- tables: scroll inside their own container, never the page ---------- */
body.fx-read .rd-table{overflow-x:auto;margin:1.6em 0;border:1px solid var(--fx-line);border-radius:var(--fx-radius-sm);background:var(--fx-surface);-webkit-overflow-scrolling:touch}
body.fx-read .rd-table:focus-visible{outline:2px solid var(--fx-accent);outline-offset:3px}
body.fx-read .rd-table table.cmp{margin:0;min-width:560px;font-size:1rem;line-height:1.5}
body.fx-read table.cmp th{padding:12px 16px;font:500 var(--type-meta,.875rem)/1.3 var(--fx-mono);letter-spacing:.05em;text-transform:uppercase;color:var(--fx-muted);border-bottom:1px solid var(--fx-line-strong);background:color-mix(in srgb,var(--fx-ground) 45%,var(--fx-surface))}
body.fx-read table.cmp td{padding:12px 16px;font-size:1rem;color:var(--fx-ink);border-bottom:1px solid var(--fx-line)}
body.fx-read table.cmp td:first-child{color:var(--fx-muted);font-size:.9375rem}
body.fx-read table.cmp tbody th{padding:12px 16px;font-family:inherit;font-size:.9375rem;font-weight:400;letter-spacing:normal;text-transform:none;text-align:start;color:var(--fx-muted);border-bottom:1px solid var(--fx-line)}
body.fx-read table.cmp td.them{color:var(--fx-muted)}
body.fx-read table.cmp tr:last-child>*{border-bottom:0}

/* ---------- sources and footnotes (none ship today; ready for when they do) ---------- */
body.fx-read .article :is(.sources,.footnotes,.rd-sources){margin-top:2.4em;padding-top:1em;border-top:1px solid var(--fx-line);font-size:1rem;line-height:1.55;color:var(--fx-muted)}
body.fx-read .article :is(.sources,.footnotes,.rd-sources) :is(p,li){font-size:1rem;line-height:1.55;color:var(--fx-muted)}
body.fx-read .article :is(small,cite){font-size:.9375rem;color:var(--fx-muted);font-style:normal}
body.fx-read .article sup{font-size:.75em;line-height:0}
body.fx-read .article sup a{padding:0 3px;font-family:var(--fx-mono);font-size:var(--type-meta,.875rem)}
body.fx-read .article blockquote{margin:1.6em 0;padding:4px 0 4px 20px;border-left:3px solid var(--fx-line-strong);color:var(--fx-ink)}

/* ---------- contents chip (glass, wide screens only, built by read-fx.js) ---------- */
.rd-toc{display:none}
@media (min-width:1280px){
  body.fx-read .rd-toc{display:block;position:fixed;z-index:20;top:112px;left:max(20px,calc(50% - 34ch - 32px - 244px));width:224px;max-height:calc(100vh - 140px);max-height:calc(100dvh - 140px);overflow:auto;
    padding:10px;border-radius:18px;color:var(--fx-ink);
    background:rgb(var(--g-tint) / var(--g-fill-pop));-webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);
    box-shadow:inset 0 1px 0 rgb(var(--g-hi)),inset 0 -1px 0 rgb(var(--g-lo)),0 1px 2px rgb(var(--g-shadow) / calc(var(--g-shadow-a) * .5)),0 22px 48px -20px rgb(var(--g-shadow) / var(--g-shadow-a)),0 0 0 1px var(--fx-line);
    transition:opacity .2s var(--fx-ease),visibility .2s}
  body.fx-read .rd-toc.is-away{opacity:0;visibility:hidden}
}
.rd-toc-title{margin:4px 8px 6px;font:500 var(--type-meta,.875rem)/1.2 var(--fx-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--fx-muted)}
.rd-toc ol{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.rd-toc a{display:flex;align-items:center;min-height:44px;padding:6px 10px;border-radius:11px;font-size:.9375rem;line-height:1.3;color:var(--fx-muted);text-decoration:none}
.rd-toc a:hover{color:var(--fx-ink);background:color-mix(in srgb,var(--fx-ink) 7%,transparent)}
.rd-toc a:focus-visible{outline:2px solid var(--fx-accent);outline-offset:-2px;color:var(--fx-ink)}
.rd-toc a[aria-current="true"]{color:var(--fx-ink);font-weight:600;box-shadow:inset 2px 0 0 var(--fx-accent)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){body.fx-read .rd-toc{background:rgb(var(--g-tint) / .97)}}
@media (prefers-reduced-transparency:reduce){body.fx-read .rd-toc{background:rgb(var(--g-tint));-webkit-backdrop-filter:none;backdrop-filter:none}}
@media (prefers-contrast:more){body.fx-read .rd-toc{background:rgb(var(--g-tint));-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;outline:1px solid var(--fx-ink)}}
@media (prefers-reduced-motion:reduce){.rd-toc{transition:none!important}}

@media (max-width:600px){
  body.fx-read .rd-table table.cmp{min-width:520px}
  body.fx-read .article p,body.fx-read .art p,body.fx-read .article li{font-size:1.0625rem}
  body.fx-read .article .answer{padding:16px 18px}
}
