/* TruthBased.org — shared stylesheet
   Plain reference-site look: white page, one serif for prose, one system
   sans for tables and labels, blue links, no cards, no badges, no animation.
   Every article links this file instead of carrying its own inline CSS. */

:root {
  --bg:           #ffffff;
  --surface:      #f5f5f2;
  --card-face:    #ffffff;
  --card-tinted:  #fafaf8;
  --border:       #d4d4d0;
  --rule:         #d4d4d0;
  --text-head:    #111111;
  --text-body:    #1e1e1e;
  --text-dim:     #555555;
  --text-quiet:   #6b6b6b;
  --link:         #1a4b8c;
  /* Legacy accent variables. Inline styles in older markup still reference
     these, so they are kept but mapped to neutral values. */
  --brick:        #111111;
  --warn-text:    #8a2b12;
  --brick-light:  #f5f5f2;
  --green:        #1e1e1e;
  --green-light:  #f5f5f2;
  --amber:        #1e1e1e;
  --amber-light:  #f5f5f2;
  --font-serif:   Georgia, "Times New Roman", Times, serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg:           #121212;
  --surface:      #1c1c1c;
  --card-face:    #1c1c1c;
  --card-tinted:  #202020;
  --border:       #3a3a3a;
  --rule:         #3a3a3a;
  --text-head:    #ebebeb;
  --text-body:    #d8d8d8;
  --text-dim:     #a3a3a3;
  --text-quiet:   #8c8c8c;
  --link:         #8ab4f8;
  --brick:        #ebebeb;
  --warn-text:    #f0a58a;
  --brick-light:  #1c1c1c;
  --green:        #d8d8d8;
  --green-light:  #1c1c1c;
  --amber:        #d8d8d8;
  --amber-light:  #1c1c1c;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: auto; }
body { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
}
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em 1.4em; }
blockquote { margin: 1em 0; padding-left: 14px; border-left: 2px solid var(--rule); color: var(--text-dim); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--text-head); line-height: 1.25; }
h3 { font-size: 1.15rem; margin: 1.4em 0 0.5em; }
h4 { font-size: 1rem; margin: 1.2em 0 0.4em; }
img, canvas { max-width: 100%; }
[id^="part"] { scroll-margin-top: 12px; }

/* ---------- Site header ---------- */
.site-nav {
  position: static;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  box-shadow: none !important;
}
.nav-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-wordmark { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--text-head); text-decoration: none; }
.nav-wordmark strong { color: inherit; font-weight: 700; }
.nav-back { font-family: var(--font-sans); font-size: 0.85rem; color: var(--link); text-decoration: none; border: 0; padding: 0; }
.nav-back:hover { text-decoration: underline; }
.nav-category { font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-dim); padding-left: 16px; border-left: 1px solid var(--rule); }
.theme-toggle {
  margin-left: auto;
  border: 1px solid var(--rule); background: transparent; color: var(--text-dim);
  font: inherit; font-size: 0.9rem; line-height: 1; padding: 4px 8px; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--text-dim); }
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--text-head); color: var(--bg);
  padding: 8px 16px; font-family: var(--font-sans); font-size: 0.85rem;
  z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.reading-progress, .back-to-top { display: none !important; }

/* ---------- Contents (jump links) ---------- */
.jump-nav, .jump-nav-wrap {
  position: static; max-width: 780px; margin: 20px auto 0; padding: 0 24px;
  display: block; background: none; border: 0;
}
.jump-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--font-sans); font-size: 0.85rem; }
.jump-links::before { content: "Contents:"; color: var(--text-dim); }
.jump-btn { color: var(--link); text-decoration: none; border: 0; padding: 0; background: none; font-weight: 400; }
.jump-btn:hover { text-decoration: underline; background: none; color: var(--link); }
.jump-btn.is-active { font-weight: 700; background: none; color: var(--text-head); }
.jump-toggle { display: none !important; }

/* ---------- Article header ---------- */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 28px 24px 56px; }
.hero { max-width: 780px; margin: 0 auto; padding: 0 0 8px; }
.article-category { font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-dim); display: block; margin-bottom: 8px; }
.article-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.article-deck { font-size: 1.1rem; font-style: normal; color: var(--text-dim); line-height: 1.5; margin-bottom: 10px; }
.article-meta { display: block; font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-dim); }
.meta-pill { display: inline; background: none; border: 0; padding: 0; color: var(--text-dim); font: inherit; }
.meta-pill + .meta-pill::before { content: "\00b7"; margin: 0 0.5em; }
.meta-pill.live { display: none; }
.meta-pill.live + .meta-pill::before { content: ""; }
a.meta-pill { color: var(--link); }

/* ---------- Sources bar ---------- */
.sources-bar { margin: 26px 0 30px; padding: 14px 0 15px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--font-sans); font-size: 0.85rem; }
.sources-bar-label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-dim); margin-bottom: 9px; }
.source-pills { display: block; line-height: 1.95; }
.source-pill { display: inline; background: none; border: 0; padding: 0; font: inherit; color: var(--text-dim); }
.source-pill::after { content: "\00b7"; margin: 0 9px; color: var(--text-quiet); }
.source-pill:last-child::after { content: ""; margin: 0; }

/* ---------- Summary / callout boxes ---------- */
.tldr-box { background: none; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; margin: 24px 0; }
.tldr-box .tldr-label { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; color: var(--text-head); display: block; margin-bottom: 6px; }
.tldr-box p { margin: 0 0 0.6em; font-size: 0.95rem; line-height: 1.55; }
.tldr-box p:last-child { margin-bottom: 0; }

.box, .steelman-block, .math-box, .falsify-box, .scope-box {
  background: var(--surface); border: 1px solid var(--rule); border-left: 1px solid var(--rule);
  border-radius: 0; box-shadow: none; padding: 14px 18px; margin: 20px 0;
}
.box-amber, .box-green, .box-red, .box-neutral, .box-brick { background: var(--surface); border-color: var(--rule); }
.box-label, .falsify-box .falsify-label, .math-label {
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700;
  color: var(--text-head); display: block; margin-bottom: 6px;
}
.box-amber .box-label, .box-green .box-label, .box-red .box-label { color: var(--text-head); }
.box p, .falsify-box p, .steelman-block p, .math-box p { font-size: 0.95rem; line-height: 1.55; margin: 0 0 0.5em; }
.box p:last-child, .falsify-box p:last-child, .steelman-block p:last-child, .math-box p:last-child { margin-bottom: 0; }
.math-result { font-weight: 700; }
.math-dim { color: var(--text-dim); }
.scope-box { font-style: italic; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Part headers ---------- */
.part-header { margin: 44px 0 16px; padding-top: 20px; border-top: 1px solid var(--rule); }
.part-title { font-size: 1.45rem; font-weight: 700; }
.section-label { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; color: var(--text-head); display: block; margin: 24px 0 8px; }

/* ---------- Stat blocks ---------- */
.stat-block { background: none; border: 1px solid var(--rule); margin: 16px 0; font-family: var(--font-sans); }
.stat-block-header {
  background: var(--surface); padding: 8px 12px;
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}
.stat-block-name { font-size: 0.85rem; font-weight: 700; color: var(--text-head); }
.stat-block-period { font-size: 0.8rem; color: var(--text-dim); }
.stat-block-body { padding: 0; }
.stat-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 7px 12px; border-bottom: 1px solid var(--rule); font-size: 0.88rem; background: none;
}
.stat-row:last-child { border-bottom: 0; }
.stat-key { color: var(--text-body); font-size: 0.88rem; flex: 1 1 auto; min-width: 0; }
.stat-val { font-weight: 700; font-size: 0.88rem; color: var(--text-head); text-align: right; font-variant-numeric: tabular-nums; flex: 0 1 auto; max-width: 60%; }
.stat-val.positive, .stat-val.negative, .stat-val.neutral, .stat-val.warn, .stat-val.brick, .stat-val.green, .brick, .green { color: var(--text-head); }
.stat-val::before { content: none !important; }
.stat-row:has(.stat-val.positive), .stat-row:has(.stat-val.negative), .stat-row:has(.stat-val.warn) { background: none; }

/* ---------- Tables ---------- */
.table-scroll, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; position: static; }
.table-scroll .data-table { margin: 0; min-width: 520px; }
.table-scroll::after { content: none; }
.data-table, .evidence-table, .method-table, .compare-table, .sens-table {
  width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.85rem;
  margin: 16px 0; border: 0; border-radius: 0; font-variant-numeric: tabular-nums;
}
.data-table th, .evidence-table th, .method-table th, .compare-table th, .sens-table th {
  background: none; padding: 8px 10px; font-weight: 700; text-align: left;
  color: var(--text-head); border-bottom: 2px solid var(--text-head); font-size: 0.8rem;
}
.data-table td, .evidence-table td, .method-table td, .compare-table td, .sens-table td {
  padding: 7px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.45;
}
.data-table tr:nth-child(even) td, .evidence-table tr:nth-child(even) td { background: none; }
.td-rate, .td-num, .td-warn, .td-alert, .td-dismissed, .td-merits, .td-both, .td-neutral, .td-positive, .td-verdict, .verdict {
  color: var(--text-head); font-weight: 700;
}
.td-note { color: var(--text-dim); font-size: 0.8rem; font-weight: 400; }
caption { font-family: var(--font-sans); font-size: 0.78rem; color: var(--text-dim); text-align: left; caption-side: top; padding: 0 0 6px; }

/* ---------- Charts ---------- */
.chart-wrap, .chart-container {
  background: none; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 12px 0; margin: 20px 0;
}
.chart-title { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; color: var(--text-head); margin-bottom: 10px; }
.chart-sub, .chart-source { font-family: var(--font-sans); font-size: 0.78rem; color: var(--text-dim); display: block; margin-top: 8px; }
.chart-canvas-wrap { position: relative; height: 260px; }
[data-theme="dark"] .chart-wrap canvas, [data-theme="dark"] .chart-container canvas { filter: none; }

/* ---------- Steelman rows ---------- */
.steelman-wrap { border: 0; border-top: 1px solid var(--rule); margin: 16px 0; }
.steelman-row { display: flex; border-bottom: 1px solid var(--rule); font-size: 0.92rem; }
.steelman-key { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; background: none; padding: 10px 12px 10px 0; min-width: 150px; color: var(--text-head); border-right: 0; }
.steelman-val { padding: 10px 0; line-height: 1.5; color: var(--text-body); }
.steelman-val.rebuttal { color: var(--text-body); }

/* ---------- Claims vs evidence ---------- */
.claims-box { background: none; border: 0; border-top: 1px solid var(--rule); padding: 14px 0; margin: 24px 0; }
.claims-box-label { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; color: var(--text-head); display: block; margin-bottom: 10px; }
.claim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; line-height: 1.5; }
.claim-row:last-child { border-bottom: 0; }
.claim-cell { padding: 10px 12px 10px 0; }
.claim-cell:first-child { border-right: 0; padding-right: 16px; }
.claim-cell-label { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; display: block; margin-bottom: 3px; color: var(--text-dim); }
.claim-said, .claim-data { color: var(--text-dim); }

/* ---------- Conclusion ---------- */
.conclusion-stats { display: block; margin: 20px 0; }
.cs-row { background: none; border: 0; border-top: 1px solid var(--rule); padding: 12px 0; }
.cs-num { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; line-height: 1.2; margin-bottom: 4px; color: var(--text-head); }
.cs-num.positive, .cs-num.negative, .cs-num.neutral, .cs-num.warn { color: var(--text-head); }
.cs-text { font-size: 0.95rem; line-height: 1.5; color: var(--text-body); }

/* ---------- Prose extras ---------- */
.inline-link { color: var(--link); }
.source-note { font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-dim); margin: -6px 0 16px; line-height: 1.5; }
.info-note { font-size: 0.85rem; color: var(--text-dim); font-style: italic; margin: -4px 0 12px; padding-left: 12px; border-left: 2px solid var(--rule); line-height: 1.5; }

/* ---------- Sources and citation ---------- */
.sources-section { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.sources-section-label { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; color: var(--text-head); display: block; margin-bottom: 8px; }
.source-item { margin-bottom: 6px; font-size: 0.85rem; color: var(--text-body); line-height: 1.5; }
.source-item strong { color: var(--text-head); font-weight: 700; }
.source-item a { color: var(--link); word-break: break-word; }
.cite-this { margin-top: 24px; padding: 12px 0 0; background: none; border: 0; border-top: 1px solid var(--rule); }
.cite-this-label { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; color: var(--text-head); display: block; margin-bottom: 4px; }
.cite-this-text { font-size: 0.9rem; font-style: italic; color: var(--text-dim); line-height: 1.5; user-select: all; cursor: text; }

/* ---------- Related articles ---------- */
.ymal-section { margin-top: 8px; }
.ymal-heading { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; color: var(--text-head); display: block; margin-bottom: 4px; }
.ymal-grid { display: block; }
.ymal-card { display: block; padding: 8px 0; background: none; border: 0; border-top: 1px solid var(--rule); text-decoration: none; box-shadow: none; }
.ymal-card:hover { box-shadow: none; }
.ymal-cat { font-family: var(--font-sans); font-size: 0.75rem; color: var(--text-dim); display: block; }
.ymal-title { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--link); line-height: 1.3; display: block; }
.ymal-card:hover .ymal-title { text-decoration: underline; }
.ymal-desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.45; display: block; }

/* ---------- Support note and footer ---------- */
.support-note { max-width: 780px; margin: 24px auto 0; padding: 16px 24px 16px; border-top: 1px solid var(--rule); font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-dim); }
.support-note p { margin: 0; }
footer, .site-footer, .page-footer { font-family: var(--font-sans); line-height: 1.8; }
.site-footer { border-top: 1px solid var(--border); max-width: 780px; margin: 0 auto; padding: 18px 24px 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer span, footer a, .footer-note, .footer-link { font-size: 0.78rem; }
.footer-note { font-family: var(--font-sans); color: var(--text-quiet); }
.footer-link { font-family: var(--font-sans); color: var(--text-quiet); text-decoration: none; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-nav { padding: 10px 16px; }
  .nav-category { display: none; }
  .jump-nav, .jump-nav-wrap { padding: 0 16px; }
  .article-wrap { padding: 20px 16px 40px; }
  .article-title { font-size: 1.6rem; }
  .part-title { font-size: 1.3rem; }
  .steelman-row { flex-direction: column; }
  .steelman-key { min-width: 0; padding: 8px 0 2px; }
  .claim-row { grid-template-columns: 1fr; }
  .claim-cell:first-child { border-bottom: 1px solid var(--rule); padding-right: 0; }
  .stat-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .stat-val { text-align: left; max-width: none; }
  .support-note { padding: 12px 16px 0; }
}

/* ---------- Print ---------- */
@media print {
  .site-nav, .jump-nav, .jump-nav-wrap, .theme-toggle, .support-note, .ymal-section, footer { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .article-wrap { max-width: 100%; padding: 0; }
  .hero { padding-left: 0; padding-right: 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  a.jump-btn[href]::after { content: none; }
}

/* ---------- Components used by a few older articles ---------- */
.article-header { margin-bottom: 28px; }
.confidence-tag {
  display: inline-block; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700;
  padding: 1px 6px; border: 1px solid var(--rule); color: var(--text-head); background: none; border-radius: 0;
}
.conf-high, .conf-low { background: none; color: var(--text-head); border-color: var(--rule); }

/* ---------- Homepage ---------- */
.home-wrap { max-width: 780px; margin: 0 auto; padding: 52px 24px 24px; }
.home-intro { margin-bottom: 34px; }
.home-intro h1 { font-size: 2.05rem; line-height: 1.18; letter-spacing: -0.012em; margin: 0 0 14px; }
.home-intro .home-deck { font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.62; color: var(--text-dim); max-width: 58ch; margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-box { position: relative; margin: 0; }
.search-input {
  width: 100%; padding: 11px 13px; font-family: var(--font-sans); font-size: 0.95rem;
  color: var(--text-body); background: var(--bg); border: 1px solid var(--border); border-radius: 0;
}
.search-input::placeholder { color: var(--text-quiet); }
.search-input:focus { outline: 2px solid var(--link); outline-offset: -1px; border-color: var(--link); }
.search-input[aria-expanded="true"] { border-bottom-color: var(--rule); }
.search-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 200; display: none; background: var(--bg); border: 1px solid var(--rule); border-top: 0; max-height: 360px; overflow-y: auto; }
.search-results.is-visible { display: block; }
.sr-item { display: block; padding: 8px 10px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: var(--surface); }
.sr-cat { display: block; font-family: var(--font-sans); font-size: 0.72rem; color: var(--text-dim); }
.sr-title { display: block; font-family: var(--font-serif); font-size: 0.95rem; font-weight: 700; color: var(--link); }
.sr-snippet { display: block; font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; line-height: 1.4; }
.sr-snippet mark { background: var(--surface); color: inherit; font-weight: 700; }
.sr-count { margin: 0; padding: 6px 10px; border-bottom: 1px solid var(--rule); font-family: var(--font-sans); font-size: 0.75rem; color: var(--text-dim); }
.sr-item.is-active, .sr-item:hover { background: var(--surface); }
.sr-item.is-active .sr-title { text-decoration: underline; }
.sr-title mark, .sr-snippet mark { background: var(--surface); color: inherit; font-weight: 700; }
.sr-empty { padding: 12px; font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-dim); }

.home-section:first-of-type { margin-top: 44px; }
.home-section { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); }
.home-section h2 { font-size: 1.28rem; line-height: 1.25; margin: 0 0 5px; padding: 0; border: 0; }
.home-section-desc { font-family: var(--font-sans); font-size: 0.84rem; color: var(--text-quiet); margin: 0 0 16px; }
.home-list { list-style: none; margin: 0; padding: 0; }
.home-list li { padding: 0 0 13px; border: 0; }
.home-list li:last-child { padding-bottom: 0; }
.home-list a { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--link); text-decoration: none; }
.home-list a:hover, .home-list a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.home-list .desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1;
  overflow: hidden; margin-top: 2px; max-width: 68ch;
  font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.5; color: var(--text-dim);
}
.home-method { font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.6; color: var(--text-dim); margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); }
.page-footer {
  max-width: 780px; margin: 0 auto; padding: 16px 24px 36px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  font-family: var(--font-sans); font-size: 0.78rem; color: var(--text-dim);
}
.page-footer .footer-note { font-size: 0.78rem !important; color: var(--text-dim); }
@media (max-width: 640px) {
  .home-wrap { padding: 32px 18px 20px; }
  .home-intro h1 { font-size: 1.68rem; }
  .home-section { margin-top: 34px; padding-top: 20px; }
  .home-list .desc { -webkit-line-clamp: 2; line-clamp: 2; }
  .page-footer { padding: 18px 18px 32px; }
}

/* ---------- First-visit display-mode prompt ---------- */
.theme-ask {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--rule);
  font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-body);
}
.theme-ask button {
  font: inherit; padding: 4px 14px; cursor: pointer;
  background: var(--bg); color: var(--text-head); border: 1px solid var(--text-dim); border-radius: 0;
}
.theme-ask button:hover { border-color: var(--text-head); }
.theme-ask .theme-ask-close { border: 0; background: none; color: var(--text-dim); padding: 4px 8px; font-size: 1.1rem; }
@media print { .theme-ask { display: none !important; } }

/* ---------- Former inline styles (moved here from the pages) ---------- */
.article-body { max-width: 780px; margin: 0 auto; padding: 0 24px 24px; }
.cell { padding: 8px; border-bottom: 1px solid var(--border); }
.cell-head { text-align: left; padding: 8px; border-bottom: 2px solid var(--border); }
.plain-link { text-decoration: none; }
.note-small { font-size: 0.75rem; color: var(--text-quiet); margin-top: 8px; }
.fine-print { font-size: 0.58rem; font-weight: 400; }
.space-top { margin-top: 20px; }

/* ---------- Support page ---------- */
.qr-button { display: inline-block; padding: 0; border: 1px solid var(--rule); background: none; cursor: pointer; line-height: 0; }
.qr-button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.critical, .memo-warning { color: var(--warn-text); font-weight: 700; }
.memo-warning code { font-weight: 700; }
