/* ============================================================
   article.css - "Sentiment doesn't compound. Runway does."
   Windows 95 / 98 treatment for the interactive essay.
   Loaded AFTER /assets/css/style.css, which it deliberately
   overrides: the desktop is fixed-height, this page scrolls.
   ============================================================ */

:root {
  /* Windows 95 system palette */
  --w-face:      #c0c0c0;
  --w-light:     #dfdfdf;
  --w-white:     #ffffff;
  --w-shadow:    #808080;
  --w-dark:      #000000;
  --w-navy:      #000080;
  --w-blue:      #0000ff;
  --w-teal:      #008080;
  --w-maroon:    #800000;
  --w-red:       #ff0000;
  --w-green:     #008000;
  --w-purple:    #800080;
  --w-olive:     #808000;
  --w-select:    #000080;

  /* names the shared chart JS expects */
  --ink:         #000000;
  --ink-2:       #202020;
  --ink-3:       #4a4a4a;
  --hairline:    #808080;
  --surface:     #ffffff;
  --surface-2:   #c0c0c0;
  --accent:      #000080;
  --accent-ink:  #000080;
  --accent-wash: #b6c4de;
  --neg:         #800000;
  --neg-text:    #800000;
  --good:        #008000;
  --good-text:   #006000;
  --seq-1: #b6c4de; --seq-2: #6f8fc4; --seq-3: #0000ff;
  --seq-4: #000080; --seq-5: #800080;

  --ui:   "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Geneva, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

/* ---------- undo the fixed-height desktop shell ---------- */
html {
  height: auto;
  overflow-y: scroll;
  scroll-behavior: smooth;
}
body {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  user-select: text;
  -webkit-user-select: text;
  background: var(--w-teal);
  color: #000;
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.62;
  padding: 22px 16px 70px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hidden { display: none !important; }

/* ---------- Win95 bevels ---------- */
.raised,
.win-doc,
.tile,
.chap-head,
.callout {
  border: 2px solid;
  border-color: var(--w-light) var(--w-dark) var(--w-dark) var(--w-light);
  box-shadow: inset 1px 1px 0 var(--w-white), inset -1px -1px 0 var(--w-shadow);
  background: var(--w-face);
}
.sunken,
.doc-area,
.trackx, .htrack, .ctrack, .ptrack, .meter-track, .read-track,
.stackbar, .flowchart, .mapwrap, #share-card {
  border: 2px solid;
  border-color: var(--w-shadow) var(--w-white) var(--w-white) var(--w-shadow);
  box-shadow: inset 1px 1px 0 var(--w-dark), inset -1px -1px 0 var(--w-light);
  background: var(--w-white);
}

/* ============================================================
   THE DOCUMENT WINDOW
   ============================================================ */
.win-doc {
  max-width: 880px;
  margin: 0 auto;
  padding: 2px;
  position: relative;
}

.win-chrome {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--w-face);
  padding-bottom: 2px;
}

.win-doc-header {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  height: 20px;
  padding: 2px 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  font-size: 11px;
  user-select: none;
}
.win-doc-header > span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.titlebar-icon { flex: 0 0 auto; }
.win-doc-header .window-controls { gap: 2px; }
.win-doc-header .window-btn {
  width: 16px; height: 14px;
  background: var(--w-face);
  border: 1px solid;
  border-color: var(--w-white) var(--w-dark) var(--w-dark) var(--w-white);
  display: flex; align-items: center; justify-content: center;
  font: bold 10px var(--ui);
  color: #000;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.win-doc-header .window-btn:active {
  border-color: var(--w-dark) var(--w-white) var(--w-white) var(--w-dark);
}

/* ---------- menu bar ---------- */
.menubar {
  display: flex;
  gap: 0;
  background: var(--w-face);
  border-bottom: 1px solid var(--w-shadow);
  box-shadow: 0 1px 0 var(--w-white);
  padding: 1px 2px;
}
.menu { position: relative; }
.menu-title {
  background: none;
  border: none;
  font: 11px var(--ui);
  padding: 3px 9px;
  cursor: pointer;
  color: #000;
}
.menu.open .menu-title { background: var(--w-select); color: #fff; }
.menu-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background: var(--w-face);
  border: 2px solid;
  border-color: var(--w-white) var(--w-dark) var(--w-dark) var(--w-white);
  box-shadow: 2px 2px 0 rgba(0,0,0,.35);
  padding: 2px;
  z-index: 70;
}
.menu-drop.wide { min-width: 250px; }
.menu.open .menu-drop { display: block; }
.menu-drop a,
.menu-drop button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: 11px var(--ui);
  color: #000;
  text-decoration: none;
  padding: 4px 18px 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.menu-drop a:hover,
.menu-drop button:hover { background: var(--w-select); color: #fff; }
.menu-sep {
  height: 2px;
  margin: 3px 2px;
  border-top: 1px solid var(--w-shadow);
  border-bottom: 1px solid var(--w-white);
}

/* ---------- the white "page" ---------- */
.doc-area {
  padding: 0 30px 34px;
  background: var(--w-white);
}
@media (max-width: 640px) { .doc-area { padding: 0 14px 24px; } }

/* ============================================================
   TYPE
   ============================================================ */
.doc-area p { margin: 0 0 16px; }
.doc-area p.big { font-size: 15px; }
.doc-area a { color: #0000cc; text-decoration: underline; }
.doc-area a:visited { color: var(--w-purple); }
.doc-area a:hover { background: #ffffcc; }
strong { font-weight: bold; }
em { font-style: italic; }

h1 {
  font-family: var(--ui);
  font-weight: bold;
  font-size: clamp(21px, 4.4vw, 31px);
  line-height: 1.14;
  margin: 0 0 12px;
}
h2 {
  font-family: var(--ui);
  font-weight: bold;
  font-size: clamp(16px, 3vw, 21px);
  line-height: 1.2;
  margin: 0;
}
.kicker, .chap-num, .byline, .scroll-hint, .q-axis {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--w-navy);
}

/* ---------- hero ---------- */
.hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--w-shadow);
}
.hero-icon { flex: 0 0 auto; margin-top: 4px; }
.hero-text { min-width: 0; }
.hero .kicker { display: block; margin: 0 0 12px; }
.hero .lead {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 14px;
}
.hero .dek { font-size: 13.5px; color: #1a1a1a; max-width: 62ch; }
.hero .byline {
  color: var(--w-shadow);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 16px;
}
.scroll-hint { color: var(--w-shadow); margin-top: 18px; }
.scroll-hint::after { content: " \2193"; }
@media (max-width: 560px) { .hero { flex-direction: column; gap: 10px; } }

/* ---------- chapters ---------- */
section.chapter { padding: 34px 0 6px; }
.chap-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin: 0 0 20px;
}
.chap-icon { flex: 0 0 auto; }
.chap-num { display: block; margin-bottom: 2px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fillx, .flow-bar, .seg, .hfill, .meter-fill, .cfill, .pfill { transition: none !important; }
}

/* ============================================================
   FIGURE = a little window
   ============================================================ */
.fig {
  margin: 24px 0;
  background: var(--w-face);
  border: 2px solid;
  border-color: var(--w-light) var(--w-dark) var(--w-dark) var(--w-light);
  box-shadow: inset 1px 1px 0 var(--w-white), inset -1px -1px 0 var(--w-shadow),
              2px 2px 0 rgba(0,0,0,.25);
  padding: 2px;
}
.fig-bar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  min-height: 20px;
}
.fig-body { padding: 14px; }
.fig-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.fig-icon { flex: 0 0 auto; }
.fig-head > div, .fig-head > p { min-width: 0; margin: 0; }
.fig-sub { font-size: 12px; color: #1a1a1a; margin: 0; }
.fig-note {
  font-size: 11px;
  color: #333;
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--w-shadow);
  line-height: 1.5;
}
.fig-note a { color: #333; }
.sw-in, .sw-out {
  display: inline-block; width: 9px; height: 9px;
  border: 1px solid #000; vertical-align: -1px;
}
.sw-in  { background: var(--w-navy); }
.sw-out { background: var(--w-maroon); }

/* ---------- stat tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.tile { padding: 12px; }
.tile .v {
  font-family: var(--mono);
  font-weight: bold;
  font-size: 26px;
  line-height: 1.1;
  display: block;
}
.tile .v.neg { color: var(--w-maroon); }
.tile .v.pos { color: var(--w-green); }
.tile .l { font-size: 12px; margin-top: 6px; line-height: 1.4; }
.tile .s { font-size: 11px; margin-top: 6px; }
.tile .s a { color: #333; }

/* ============================================================
   CHARTS - all built out of Win95 progress bars
   ============================================================ */
/* the classic segmented progress fill */
.fillx, .hfill, .cfill, .pfill, .meter-fill, .read-fill {
  background-color: var(--w-navy);
  background-image: repeating-linear-gradient(
    90deg, transparent 0 9px, var(--w-face) 9px 11px);
  background-repeat: repeat-x;
}

/* drawdown */
.ddrow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ddrow .name { flex: 0 0 88px; font-weight: bold; font-size: 12px; }
.ddrow .trackx { flex: 1; height: 20px; overflow: hidden; padding: 1px; }
.ddrow .fillx {
  height: 100%; width: 0%;
  background-color: var(--w-maroon);
  transition: width 1.1s cubic-bezier(.2,.7,.3,1);
}
.ddrow .val {
  flex: 0 0 62px; text-align: right;
  font-family: var(--mono); font-size: 12px; color: var(--w-maroon);
}

/* diverging ETF flows */
.flowchart {
  display: flex; gap: 14px; align-items: stretch;
  height: 250px; margin-top: 6px; padding: 10px;
}
.flowcol { flex: 1; display: flex; flex-direction: column; align-items: center; }
.flow-plot { position: relative; width: 100%; flex: 1; }
.flow-zero { position: absolute; left: 0; right: 0; top: 34%; border-top: 1px dashed var(--w-shadow); }
.flow-bar {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 54%; max-width: 60px;
  border: 1px solid #000;
  transition: height 1s cubic-bezier(.2,.7,.3,1);
}
.flow-bar.pos {
  background: var(--w-navy); bottom: 66%; height: 0;
  box-shadow: inset 1px 1px 0 #4a4aff;
}
.flow-bar.neg {
  background: var(--w-maroon); top: 34%; height: 0;
  box-shadow: inset 1px 1px 0 #d05050;
}
.flow-val {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; font-weight: bold; white-space: nowrap;
}
.flow-lab { margin-top: 8px; font-size: 12px; }

/* stacked share bar */
.stackbar { display: flex; height: 40px; overflow: hidden; padding: 2px; margin-top: 6px; }
.stackbar .seg {
  height: 100%; min-width: 3px; flex-grow: .001;
  border-right: 1px solid #000;
  transition: flex-grow 1.1s cubic-bezier(.2,.7,.3,1);
}
.stackbar .seg:last-child { border-right: none; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.stack-legend .li { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.stack-legend .sw { width: 11px; height: 11px; border: 1px solid #000; flex: 0 0 auto; }
.stack-legend .n { font-family: var(--mono); font-size: 11px; color: #333; }

/* horizontal bars */
.hbars { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hbar { display: flex; align-items: center; gap: 10px; }
.hbar .hname { flex: 0 0 148px; font-size: 12px; text-align: right; }
.hbar .htrack { flex: 1; height: 18px; overflow: hidden; padding: 1px; }
.hbar .hfill { height: 100%; width: 0%; transition: width .9s cubic-bezier(.2,.7,.3,1); }
.hbar .hval { flex: 0 0 34px; font-family: var(--mono); font-size: 12px; }
@media (max-width: 560px) { .hbar .hname { flex-basis: 100px; font-size: 11px; } }

/* ============================================================
   BUTTONS - Win95 push buttons
   ============================================================ */
.doc-area button {
  font-family: var(--ui);
  font-size: 12px;
  color: #000;
  background: var(--w-face);
  border: 2px solid;
  border-color: var(--w-white) var(--w-dark) var(--w-dark) var(--w-white);
  box-shadow: inset 1px 1px 0 var(--w-light), inset -1px -1px 0 var(--w-shadow);
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 0;
}
.doc-area button:active {
  border-color: var(--w-dark) var(--w-white) var(--w-white) var(--w-dark);
  box-shadow: inset 1px 1px 0 var(--w-shadow);
  padding: 6px 11px 4px 13px;
}
.doc-area button:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }

.btn-primary { font-weight: bold; }
a.btn {
  display: inline-block;
  text-decoration: none;
  color: #000;
  background: var(--w-face);
  border: 2px solid;
  border-color: var(--w-white) var(--w-dark) var(--w-dark) var(--w-white);
  box-shadow: inset 1px 1px 0 var(--w-light), inset -1px -1px 0 var(--w-shadow);
  padding: 6px 13px;
  font-size: 12px;
  border-radius: 0;
  min-width: 0;
}
a.btn:hover { background: #cdcdcd; }
a.btn:active { border-color: var(--w-dark) var(--w-white) var(--w-white) var(--w-dark); }

/* selected / pressed toggle state used by the pickers */
.lab-opt.picked, .pq-opt.picked, .preset.picked {
  border-color: var(--w-dark) var(--w-white) var(--w-white) var(--w-dark) !important;
  box-shadow: inset 1px 1px 0 var(--w-shadow) !important;
  background: #d8d8d8 !important;
  background-image:
    repeating-conic-gradient(#d8d8d8 0 25%, #c8c8c8 0 50%) !important;
  background-size: 2px 2px !important;
  font-weight: bold;
}

/* ---------- bias lab ---------- */
.lab-q { font-weight: bold; font-size: 14px; margin: 0; }
.lab-opts { display: flex; flex-direction: column; gap: 6px; }
.doc-area .lab-opt { text-align: left; font-size: 12px; padding: 7px 11px; }
.lab-reveal {
  margin-top: 14px;
  padding: 12px;
  background: var(--w-white);
  border: 2px solid;
  border-color: var(--w-shadow) var(--w-white) var(--w-white) var(--w-shadow);
  font-size: 12.5px;
}
.lab-reveal .bignum {
  font-family: var(--mono); font-weight: bold; font-size: 34px;
  color: var(--w-navy); line-height: 1; display: block; margin: 0 0 8px;
}

/* ---------- callout (Carillion) ---------- */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; margin: 22px 0;
}
.callout img { flex: 0 0 auto; }
.callout p { margin: 0; font-size: 12.5px; }

/* ---------- perception mini-quiz ---------- */
#percep {
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--w-shadow);
  box-shadow: 0 1px 0 var(--w-white);
}
.pq { margin-bottom: 12px; }
.pq-t { font-weight: bold; font-size: 12.5px; margin: 0 0 6px; }
.pq-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.doc-area .pq-opt { font-size: 11px; padding: 4px 9px; }

/* ---------- quadrant map ---------- */
.mapwrap { position: relative; user-select: none; -webkit-user-select: none; padding: 4px; }
.mapwrap svg { width: 100%; height: auto; display: block; touch-action: none; }
.map-caption { font-size: 11.5px; color: #333; margin-top: 10px; }

/* ---------- trackbars (Win95 sliders) ---------- */
.ctrl { margin-bottom: 18px; }
.ctrl-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ctrl-name { font-weight: bold; font-size: 12.5px; }
.ctrl-val { font-family: var(--mono); font-size: 12px; color: var(--w-navy); }
.doc-area input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: transparent;
  outline: none; margin: 4px 0; cursor: pointer;
}
.doc-area input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--w-shadow);
  border: 1px solid var(--w-shadow);
  border-top-color: #000; border-left-color: #000;
  box-shadow: 1px 1px 0 var(--w-white);
}
.doc-area input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--w-shadow);
  border: 1px solid #000;
  box-shadow: 1px 1px 0 var(--w-white);
}
.doc-area input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 22px; margin-top: -10px;
  background: var(--w-face);
  border: 2px solid;
  border-color: var(--w-white) var(--w-dark) var(--w-dark) var(--w-white);
  box-shadow: inset 1px 1px 0 var(--w-light), inset -1px -1px 0 var(--w-shadow);
  border-radius: 0;
  cursor: pointer;
}
.doc-area input[type="range"]::-moz-range-thumb {
  width: 12px; height: 20px;
  background: var(--w-face);
  border: 2px solid;
  border-color: var(--w-white) var(--w-dark) var(--w-dark) var(--w-white);
  box-shadow: inset 1px 1px 0 var(--w-light), inset -1px -1px 0 var(--w-shadow);
  border-radius: 0;
  cursor: pointer;
}
.doc-area input[type="range"]:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }

.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.doc-area .preset { font-size: 11px; padding: 5px 10px; }

.costrows { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.costrow { display: flex; align-items: center; gap: 10px; }
.costrow .cname { flex: 0 0 164px; font-size: 12px; text-align: right; line-height: 1.25; }
.costrow .csub { font-size: 10.5px; color: #444; }
.costrow .ctrack { flex: 1; height: 20px; overflow: hidden; padding: 1px; }
.costrow .cfill {
  height: 100%; width: 0%;
  background-color: var(--w-shadow);
  transition: width .45s ease;
}
.costrow.flat .cfill { background-color: var(--w-navy); }
.costrow .cval { flex: 0 0 92px; font-family: var(--mono); font-size: 12px; }
@media (max-width: 560px) { .costrow .cname { flex-basis: 106px; font-size: 11px; } }

.verdict-line {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 12px;
  background: var(--w-white);
  border: 2px solid;
  border-color: var(--w-shadow) var(--w-white) var(--w-white) var(--w-shadow);
  font-size: 12.5px;
}
.verdict-line img { flex: 0 0 auto; }
.verdict-line p { margin: 0; }
.verdict-line strong { color: var(--w-navy); }

/* ---------- the quiz ---------- */
.start-body { text-align: center; }
.start-body img { display: block; margin: 4px auto 10px; }
.start-body p { font-size: 12.5px; margin-bottom: 14px; }

.progress { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.progress .cnt { font-family: var(--mono); font-size: 11px; color: #333; }
.ptrack { flex: 1; height: 16px; overflow: hidden; padding: 1px; }
.pfill { height: 100%; width: 0%; transition: width .35s ease; }

.q-axis { margin: 0 0 6px; display: block; }
.q-text { font-weight: bold; font-size: 15px; line-height: 1.28; margin: 0 0 14px; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.doc-area .opt {
  text-align: left; font-size: 12px; line-height: 1.45;
  display: flex; gap: 10px; align-items: baseline; padding: 8px 11px;
}
.opt .key {
  font-family: var(--mono); font-size: 11px; font-weight: bold;
  color: var(--w-navy); flex: 0 0 auto;
}
.q-nav { margin-top: 14px; }

/* ---------- results ---------- */
.r-quad-title { font-weight: bold; font-size: 16px; margin: 0 0 6px; }
.r-quad-blurb { font-size: 12.5px; margin: 0; }
.meter { margin-bottom: 12px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.meter-name { font-weight: bold; font-size: 12.5px; }
.meter-val { font-family: var(--mono); font-size: 11.5px; }
.meter-track { height: 16px; overflow: hidden; padding: 1px; }
.meter-fill { height: 100%; width: 0%; transition: width .8s cubic-bezier(.2,.7,.3,1); }
.meter p { font-size: 11.5px; color: #333; margin: 5px 0 0; }

.rec {
  border-top: 1px solid var(--w-shadow);
  box-shadow: 0 -1px 0 var(--w-white) inset;
  padding: 12px 0;
}
.rec:first-of-type { border-top: none; padding-top: 0; }
.rec h4 { margin: 0 0 5px; font-size: 13px; }
.rec p { margin: 0; font-size: 12px; }
.rec .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--w-maroon);
  display: block; margin-bottom: 4px;
}
.rec .tag.ok { color: var(--w-green); }
.gapline { font-size: 12.5px; margin-top: 12px; }
.gapline strong { color: var(--w-navy); }

#share-card { width: 100%; height: auto; display: block; padding: 2px; background: var(--w-face); }
.card-actions { margin-top: 12px; }
.share-hint { font-size: 11.5px; color: #333; margin: 10px 0 0; line-height: 1.5; }

/* ---------- CTA ---------- */
.cta-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* The Chainstack calls to action: chunky Win95 toolbar-style buttons,
   loud enough to read as the point of the page. */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 6px;
}
.cta-row.big { margin-top: 8px; }

/* beat `.doc-area a`, which would otherwise make these blue and underlined */
.doc-area .btn-cta,
.doc-area .btn-cta:visited { color: #000; text-decoration: none; }
.doc-area .btn-cta:hover { background: #cdcdcd; }

.btn-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
  min-width: 0;
  padding: 12px 16px;
  text-decoration: none;
  color: #000;
  background: var(--w-face);
  border: 2px solid;
  border-color: var(--w-white) var(--w-dark) var(--w-dark) var(--w-white);
  box-shadow: inset 1px 1px 0 var(--w-light), inset -1px -1px 0 var(--w-shadow);
  outline: 2px solid var(--w-dark);   /* the Win95 "default button" ring */
  outline-offset: 1px;
}
.btn-cta.secondary { outline: none; flex: 1 1 220px; }
.btn-cta:hover { background: #cdcdcd; }
.btn-cta:active {
  border-color: var(--w-dark) var(--w-white) var(--w-white) var(--w-dark);
  box-shadow: inset 1px 1px 0 var(--w-shadow);
}
.btn-cta:focus-visible { outline: 2px dotted var(--w-navy); outline-offset: 2px; }
.btn-cta img { flex: 0 0 auto; }
.cta-t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.2;
  min-width: 0;
}
.cta-t small { font-weight: normal; font-size: 11px; color: #333; }
.btn-cta:hover .cta-t small { color: #222; }

.cta-lead { font-weight: bold; font-size: 13.5px; margin: 0 0 4px; }
.cta-aside { font-size: 11.5px; color: #333; margin: 12px 0 0; }
.cta-aside a { color: #333; }

/* the hero CTA sits between the byline and the scroll hint */
.hero .cta-row { margin: 22px 0 18px; max-width: 560px; }

@media (max-width: 560px) {
  .btn-cta, .btn-cta.secondary { flex: 1 1 100%; }
}

/* ---------- sources ---------- */
.sources { margin-top: 30px; }
.sources p { font-size: 11.5px; line-height: 1.7; margin-bottom: 9px; }

/* ============================================================
   STATUS BAR
   ============================================================ */
.statusbar {
  position: sticky;
  bottom: 40px;          /* clear the fixed taskbar */
  z-index: 55;
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--w-face);
}
.status-cell {
  border: 1px solid;
  border-color: var(--w-shadow) var(--w-white) var(--w-white) var(--w-shadow);
  padding: 2px 6px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-cell.grow { flex: 1; min-width: 0; }
.status-cell:nth-child(2) { width: 130px; display: flex; align-items: center; }
.read-track { width: 100%; height: 12px; overflow: hidden; padding: 1px; }
.read-fill { height: 100%; width: 0%; transition: width .15s linear; }
@media (max-width: 560px) { .status-cell:nth-child(2) { display: none; } }

/* ============================================================
   TASKBAR
   ============================================================ */
.taskbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 38px;                     /* same as the main danimim.xyz taskbar */
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  background: var(--w-face);
  border-top: 2px solid var(--w-white);
}
/* .start-button and .start-icon come from /assets/css/style.css, so the
   button, the flag and its sizing match the main page exactly. */
.taskbar .start-button { border-radius: 0; min-width: 0; }

.task-buttons { flex: 1; display: flex; gap: 3px; min-width: 0; padding-left: 4px; }
.task-btn {
  display: flex; align-items: center; gap: 6px;
  max-width: 280px; height: 26px; padding: 0 8px;
  font: 11px var(--ui);
  background: var(--w-face);
  border: 2px solid;
  border-color: var(--w-dark) var(--w-white) var(--w-white) var(--w-dark);
  box-shadow: inset 1px 1px 0 var(--w-shadow);
  cursor: default;
  border-radius: 0;
  min-width: 0;
}
.task-btn span {
  font-weight: bold;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.taskbar .taskbar-clock {
  margin-left: auto;
  height: 26px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px;
  min-width: 100px;
  font-size: 11px;
  background: #e0e0e0;
  border: 1px inset var(--w-face);
  position: static;
}

/* ---------- start menu ---------- */
/* Same shape and icon sizing as the main page's Start menu, plus the
   classic vertical banner down the left edge. */
.start-menu {
  display: none;
  position: fixed;
  bottom: 38px; left: 4px;
  z-index: 160;
  width: 264px;
  background: var(--w-face);
  border: 2px solid;
  border-color: var(--w-white) var(--w-dark) var(--w-dark) var(--w-white);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
  padding: 2px;
}
.start-menu.open { display: flex; }
.start-menu-banner {
  width: 24px;
  background: linear-gradient(180deg, #000080, #1084d0);
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: .06em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: left;
  padding: 8px 4px;
  flex: 0 0 auto;
}
.start-menu-items { flex: 1; min-width: 0; }
.start-menu .start-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  font: 12px var(--ui);
  color: #000;
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid var(--w-shadow);
  cursor: pointer;
  text-align: left;
  border-radius: 0;
}
.start-menu .start-menu-item:last-child { border-bottom: none; }
.start-menu .start-menu-item:hover { background: var(--w-blue); color: #fff; }

/* ---------- print ---------- */
@media print {
  body { background: #fff; padding: 0; }
  .win-chrome, .taskbar, .statusbar, .start-menu { display: none !important; }
  .win-doc { border: none; box-shadow: none; max-width: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
