/* Reading layout for article and lesson pages and the Articles list (body.mu-read).
   A neutral palette for long reading; the brand cyan is kept for accents: the eyebrow, links,
   the callout rule and the buttons. Header, footer and the chart graphics keep the site look.
   Load this last in <head> (after mu-light.css and mu-dark-sections.css). Every rule starts with
   "html body.mu-read" so it outranks the generated light theme; no need to rerun light_theme.py. */

html body.mu-read{
  --r-bg:#0f1113;--r-surface:#16191c;--r-surface2:#1b1e22;--r-line:#272b30;--r-line2:#33383e;
  --r-head:#f3f4f5;--r-text:#c9cdd2;--r-muted:#8d939a;
  --r-accent:#00d8ff;--r-link:#4fe0ff;--r-link-line:rgba(79,224,255,.38);
  background:var(--r-bg);color:var(--r-text)
}
html[data-theme="light"] body.mu-read{
  --r-bg:#ffffff;--r-surface:#f6f7f8;--r-surface2:#f1f2f4;--r-line:#e4e6e9;--r-line2:#d3d6da;
  --r-head:#121417;--r-text:#34393f;--r-muted:#666c73;
  --r-accent:#00a9cc;--r-link:#00768c;--r-link-line:rgba(0,127,154,.35)
}

/* ---- top of the article ---- */
html body.mu-read .page-hero{background:var(--r-bg);border-bottom:1px solid var(--r-line);padding:60px 0 34px}
html body.mu-read .page-hero .wrap>*{max-width:860px}
html body.mu-read .page-hero .eyebrow{color:var(--r-accent);font-size:.74rem;letter-spacing:.16em}
html[data-theme="light"] body.mu-read .page-hero .eyebrow{color:var(--r-link)}
html body.mu-read .page-hero .risk-tag{display:block;margin-top:8px;background:none;border:0;padding:0;color:var(--r-muted);font-size:.78rem;font-weight:600;letter-spacing:.06em}
html body.mu-read .page-hero h1{font-size:clamp(2.1rem,4.2vw,3.4rem)!important;line-height:1.08;letter-spacing:-.03em;font-weight:800;color:var(--r-head);margin-top:14px}
html body.mu-read .page-hero p{color:var(--r-text);font-size:1.15rem;line-height:1.6;max-width:720px;margin-top:16px}
html body.mu-read .article-meta{color:var(--r-muted);font-size:.84rem;gap:6px 18px;align-items:center;margin:20px 0 0}
html body.mu-read .mu-share-btn{background:transparent;border:1px solid var(--r-line2);color:var(--r-head);border-radius:8px}
html body.mu-read .mu-share-btn:hover{border-color:var(--r-accent);color:var(--r-head)}
html body.mu-read .mu-share-note{color:var(--r-link)}

/* ---- layout: one reading column and a quiet sidebar ---- */
html body.mu-read main>.section{padding:44px 0 80px;background:var(--r-bg)}
html body.mu-read .article-grid{grid-template-columns:minmax(0,1fr) 290px;gap:72px;align-items:start}
html body.mu-read .article{background:none;border:0;border-radius:0;padding:0;max-width:720px;font-size:1.0625rem;line-height:1.75;color:var(--r-text)}

/* ---- text ---- */
html body.mu-read .article p,html body.mu-read .article li{color:var(--r-text)}
html body.mu-read .article p{margin:0 0 1.15em}
html body.mu-read .article :is(h2,h3,h4){color:var(--r-head)}
html body.mu-read .article h2{font-size:1.6rem;line-height:1.2;letter-spacing:-.02em;font-weight:800;margin:2.1em 0 .6em}
html body.mu-read .article h3{font-size:1.2rem;line-height:1.3;font-weight:750;margin:1.7em 0 .5em}
html body.mu-read .article>h2:first-child,html body.mu-read .article>h3:first-child{margin-top:0}
html body.mu-read .article :is(strong,b){color:var(--r-head)}
html body.mu-read .article :is(ul,ol){padding-left:1.25em;margin:0 0 1.2em}
html body.mu-read .article li{margin:.45em 0;padding-left:.2em}
html body.mu-read .article li::marker{color:var(--r-muted)}
html body.mu-read .article a:not(.btn):not(.mu-share-btn){color:var(--r-link);text-decoration:underline;text-decoration-color:var(--r-link-line);text-underline-offset:3px;text-decoration-thickness:1px}
html body.mu-read .article a:not(.btn):not(.mu-share-btn):hover{text-decoration-color:currentColor}
html body.mu-read .article hr{border:0;border-top:1px solid var(--r-line);margin:2em 0}

/* summary / bottom-line boxes */
html body.mu-read .article-callout{background:var(--r-surface);border-left:3px solid var(--r-accent);border-radius:0 10px 10px 0;padding:20px 24px;margin:0 0 2em;color:var(--r-text)}
html body.mu-read .article .article-callout:not(:first-child){margin-top:2em}
html body.mu-read .article-callout p:last-child{margin-bottom:0}

/* figures and captions (several captions carry an inline blue colour) */
html body.mu-read .article figure{margin:2em 0!important}
html body.mu-read .article img{border-color:var(--r-line)!important;border-radius:10px!important;display:block;max-width:100%;height:auto}
html body.mu-read .article figcaption,
html body.mu-read .article [style*="color:#7fa4b7"]{color:var(--r-muted)!important;font-size:.84rem!important;line-height:1.5;margin-top:10px!important}

/* tables: text tables read left to right; add class "num" to a table of figures to right-align its number columns */
html body.mu-read .article table{width:100%;border-collapse:collapse;margin:.6em 0 1.4em;font-size:.95rem;line-height:1.45;font-variant-numeric:tabular-nums}
html body.mu-read .article :is(th,td){padding:10px 12px;border:0;border-bottom:1px solid var(--r-line);text-align:left;vertical-align:top;color:var(--r-text);background:none}
html body.mu-read .article table.num :is(th,td){text-align:right}
html body.mu-read .article table :is(th,td):first-child{text-align:left;padding-left:0}
html body.mu-read .article :is(th,td):last-child{padding-right:0}
html body.mu-read .article thead th,html body.mu-read .article tr:first-child th{color:var(--r-muted);font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;border-bottom:1px solid var(--r-line2)}
html body.mu-read .article tbody th{color:var(--r-head);font-weight:600;font-size:inherit;letter-spacing:0;text-transform:none}
html body.mu-read .article table+p,html body.mu-read .article table+div{font-size:.84rem}

/* sources and the closing note */
html body.mu-read .article .source-list,html body.mu-read .article .source-list li{font-size:.92rem;color:var(--r-muted)}
html body.mu-read .sources{color:var(--r-muted);border-top:1px solid var(--r-line);font-size:.82rem;line-height:1.6}
html body.mu-read .sources a{color:var(--r-link)}

/* small widgets from site.js and the lesson pages */
html body.mu-read .article :is(.mu-next,.mu-signup,.mu-live,.mu-share-end){background:var(--r-surface);border:1px solid var(--r-line);border-radius:12px;color:var(--r-text)}
html body.mu-read .article .mu-next{border-left:3px solid var(--r-accent)}
html body.mu-read .article :is(.mu-next,.mu-signup,.mu-live,.mu-share-end) :is(strong,b,h2,h3){color:var(--r-head)}
html body.mu-read .article :is(.mu-next,.mu-signup,.mu-share-end) p{color:var(--r-text)}
html body.mu-read .article .mu-signup :is(small,.mu-live-head small){color:var(--r-muted)}
html body.mu-read .article .mu-signup small a{color:var(--r-link)}
html body.mu-read .article .mu-signup input[type=email]{background:var(--r-bg);border-color:var(--r-line2);color:var(--r-head)}
html body.mu-read .article .mu-signup input[type=email]::placeholder{color:var(--r-muted)}
html body.mu-read .article .mu-next .btn-outline{background:transparent!important;border:1px solid var(--r-line2)!important;color:var(--r-head)!important}
html body.mu-read .article .mu-next .btn-outline:hover{border-color:var(--r-accent)!important}
html body.mu-read .article .mu-live :is(td,th){border-top-color:var(--r-line);color:var(--r-text)}
html body.mu-read .article .mu-live :is(th,.mu-live-head small,td span,.mu-live-foot){color:var(--r-muted)}
html body.mu-read .article .mu-live-foot a{color:var(--r-link)}
html body.mu-read .article .eyebrow{color:var(--r-accent)}
html[data-theme="light"] body.mu-read .article .eyebrow{color:var(--r-link)}
html body.mu-read .learn-faq details{border-color:var(--r-line);background:var(--r-surface)}
html body.mu-read .article :is(.ticker-card){background:var(--r-surface);border-color:var(--r-line)}

/* signup strip and the lesson hub cards */
html body.mu-read .mu-signup-strip{background:var(--r-surface);border-top:1px solid var(--r-line)}
html body.mu-read .mu-signup-strip .mu-signup{background:var(--r-bg);border-color:var(--r-line)}
html body.mu-read .mu-signup-strip .mu-signup :is(h2,h3){color:var(--r-head)}
html body.mu-read .mu-signup-strip .mu-signup p{color:var(--r-text)}
html body.mu-read .mu-signup-strip .mu-signup :is(small,.mu-signup-x){color:var(--r-muted)}
html body.mu-read .mu-signup-strip .mu-signup input[type=email]{background:var(--r-surface);border-color:var(--r-line2);color:var(--r-head)}
html body.mu-read .learn-cards a{border-color:var(--r-line);background:var(--r-surface)}
html body.mu-read .learn-cards a:hover{border-color:var(--r-accent)}
html body.mu-read .learn-cards b{color:var(--r-head)}

/* ---- Articles list page (articles.html): same palette for the hero and preview cards ---- */
html body.mu-read .mu-articles-hero{background:var(--r-bg);border-bottom:1px solid var(--r-line)}
html body.mu-read .mu-articles-hero h1{color:var(--r-head)}
html body.mu-read .mu-articles-hero p{color:var(--r-text)}
html body.mu-read .mu-articles-hero .btn-outline{background:transparent;border-color:var(--r-line2);color:var(--r-head)}
html body.mu-read .mu-articles-hero .btn-outline:hover{border-color:var(--r-accent)}
html body.mu-read .mu-section-eyebrow{color:var(--r-accent)}
html[data-theme="light"] body.mu-read :is(.mu-section-eyebrow,.mu-articles-hero .eyebrow){color:var(--r-link)}
html body.mu-read .mu-article-heading h2{color:var(--r-head)}
html body.mu-read .mu-article-heading p{color:var(--r-muted)}
html body.mu-read .mu-article-filters a{border-color:var(--r-line2);color:var(--r-text);background:transparent}
html body.mu-read .mu-article-filters a:hover{border-color:var(--r-accent);color:var(--r-head)}
html body.mu-read .mu-article-card,
html body.mu-read .mu-article-lead{background:var(--r-surface);border:1px solid var(--r-line);border-radius:14px;transition:border-color .15s}
html body.mu-read .mu-article-card:hover{border-color:var(--r-line2)}
html body.mu-read .mu-article-topic{color:var(--r-accent)}
html[data-theme="light"] body.mu-read .mu-article-topic{color:var(--r-link)}
html body.mu-read .mu-article-card h2 a{color:var(--r-head)}
html body.mu-read .mu-article-card h2 a:hover{color:var(--r-link)}
html body.mu-read .mu-article-card p{color:var(--r-text)}
html body.mu-read .mu-article-card-bottom{color:var(--r-muted)}
html body.mu-read .mu-article-card-bottom a{color:var(--r-link)}
html body.mu-read .mu-article-disclosure{color:var(--r-muted);border-top-color:var(--r-line)}
/* thumbnails stay a dark picture in both themes, graphite instead of navy */
html body.mu-read .mu-art-media{background:radial-gradient(circle at 75% 15%,rgba(0,216,255,.07),transparent 50%),#111315;border-color:var(--r-line)}
html[data-theme="light"] body.mu-read .mu-art-media{background:radial-gradient(circle at 75% 15%,rgba(0,216,255,.08),transparent 50%),#1b1e22;border-color:var(--r-line)}
html body.mu-read .mu-art-media:before{background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px)}
html body.mu-read .mu-art-media svg.motif [fill="#2a5a86"],html body.mu-read .mu-art-media svg.motif [fill="#3d6f8f"]{fill:#4a5058}
html body.mu-read .mu-art-media svg.motif [stroke="#3d6f8f"],html body.mu-read .mu-art-media svg.motif [stroke="#1d4b6b"],html body.mu-read .mu-art-media svg.motif [stroke="#2a6480"]{stroke:#4a5058}

/* ---- sidebar: plain sections instead of blue cards ---- */
html body.mu-read .article-grid>aside{position:sticky;top:96px}
html body.mu-read .sidebar-card{background:none;border:0;border-top:1px solid var(--r-line);border-radius:0;padding:18px 0 4px;margin:0 0 14px}
html body.mu-read .sidebar-card:first-child{border-top:2px solid var(--r-accent)}
html body.mu-read .sidebar-card h3{color:var(--r-muted);font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin:0 0 10px}
html body.mu-read .sidebar-card p,html body.mu-read .sidebar-card li{color:var(--r-text);font-size:.92rem;line-height:1.65}
html body.mu-read .sidebar-card .readmore{color:var(--r-link);font-weight:700;font-size:.86rem}

/* ---- tablets and phones ---- */
@media(max-width:980px){
  html body.mu-read .article-grid{grid-template-columns:1fr;gap:36px}
  html body.mu-read .article{max-width:none}
  html body.mu-read .article-grid>aside{position:static;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 28px}
}
@media(max-width:640px){
  html body.mu-read .page-hero{padding:34px 0 24px}
  html body.mu-read .page-hero h1{font-size:clamp(1.85rem,8.4vw,2.3rem)!important;letter-spacing:-.025em}
  html body.mu-read .page-hero p{font-size:1.03rem}
  html body.mu-read main>.section{padding:28px 0 56px}
  html body.mu-read .article{font-size:1.02rem;line-height:1.7;padding:0}
  html body.mu-read .article h2{font-size:1.38rem;margin-top:1.8em}
  html body.mu-read .article-callout{padding:16px 18px}
  html body.mu-read .article table{font-size:.84rem}
  html body.mu-read .article :is(th,td){padding:9px 6px}
  html body.mu-read .article thead th,html body.mu-read .article tr:first-child th{font-size:.66rem;letter-spacing:.05em}
}
