/* ==========================================================================
   SI-bolaget · the interactive figures in the articles (llm.js, consciousness.js, alignment.js)
   and the opinion box. Loaded only on article pages, after style.css.
   ========================================================================== */

.caret {
  display: inline-block;
  width: 0.07em;
  height: 0.82em;
  margin-left: 0.1em;
  vertical-align: -0.06em;
  border-radius: 1px;
  background: var(--gold-hi);
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.paused .caret { animation-play-state: paused; }

.viz {
  margin: 2.4em 0;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(240, 235, 225, 0.04), rgba(240, 235, 225, 0.012));
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.ar-body .viz p { margin: 0; }
.viz-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 20px; }
.viz-num { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.viz-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.3vw, 1.85rem); line-height: 1.1; }
.viz figcaption { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.viz-noscript { color: var(--ink-3); }
.viz-label { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.viz-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px 28px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.viz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.viz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.35);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s, color 0.25s, opacity 0.25s;
}
.viz-btn:hover { border-color: rgba(240, 235, 225, 0.45); background: rgba(240, 235, 225, 0.06); }
.viz-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); }
.viz-btn-primary { border-color: var(--ink); background: var(--ink); color: #0b0b0d; }
.viz-btn-primary:hover { border-color: #fff; background: #fff; }
.viz-btn:disabled { opacity: 0.35; cursor: default; }
.viz-chip-btn {
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color 0.25s, color 0.25s;
}
.viz-chip-btn:hover { border-color: rgba(240, 235, 225, 0.45); color: var(--ink); }

/* 1 · the next word */
.nx-text {
  min-height: 2.6em;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  line-height: 1.25;
  color: var(--ink);
}
.nx-word { color: var(--gold-hi); }
.nx-word.is-new { animation: nx-in 0.5s var(--ease-out); }
@keyframes nx-in { from { opacity: 0; filter: blur(5px); } }
.nx-bars { display: grid; gap: 4px; margin-top: 18px; }
.nx-row {
  display: grid;
  grid-template-columns: minmax(5.5em, 9em) minmax(0, 1fr) 3.4em;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 12px;
  text-align: left;
  transition: background 0.2s;
}
button.nx-row:hover { background: rgba(240, 235, 225, 0.06); }
.nx-row.is-spin { background: rgba(242, 176, 79, 0.16); }
.nx-row.is-picked { background: rgba(242, 176, 79, 0.24); }
.nx-w { overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.nx-track { position: relative; height: 10px; overflow: hidden; border-radius: 10px; background: rgba(240, 235, 225, 0.06); }
.nx-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--ember));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.55s var(--ease-out);
}
.nx-p { font-family: var(--font-mono); font-size: 12.5px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nx-rest .nx-w,
.nx-rest .nx-p { color: var(--ink-3); font-weight: 400; }
.nx-rest .nx-fill { background: rgba(240, 235, 225, 0.24); }
.nx-done { padding: 16px 10px; color: var(--ink-2); }

/* 2 · tokens */
.tk-input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(240, 235, 225, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  transition: border-color 0.25s, background 0.25s;
}
.tk-input:hover { border-color: rgba(240, 235, 225, 0.35); }
.tk-input:focus { border-color: var(--gold); background: rgba(240, 235, 225, 0.07); }
.tk-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tk-out { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 5px; min-height: 76px; margin-top: 22px; }
.tk {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 8px 5px;
  border-radius: 9px;
  background: var(--tk-bg);
  box-shadow: inset 0 0 0 1px var(--tk-line);
  animation: tk-in 0.35s var(--ease-out) both;
}
@keyframes tk-in { from { opacity: 0; transform: translateY(4px); } }
.tk-0 { --tk-bg: rgba(242, 176, 79, 0.14); --tk-line: rgba(242, 176, 79, 0.38); }
.tk-1 { --tk-bg: rgba(169, 205, 255, 0.12); --tk-line: rgba(169, 205, 255, 0.36); }
.tk-2 { --tk-bg: rgba(255, 122, 53, 0.13); --tk-line: rgba(255, 122, 53, 0.38); }
.tk-3 { --tk-bg: rgba(127, 209, 160, 0.12); --tk-line: rgba(127, 209, 160, 0.36); }
.tk-4 { --tk-bg: rgba(196, 170, 255, 0.12); --tk-line: rgba(196, 170, 255, 0.36); }
.tk-text { font-family: var(--font-mono); font-size: 15px; line-height: 1.3; white-space: pre; color: var(--ink); }
.tk-sp { color: var(--ink-3); }
.tk-id { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tk-out.is-numbers .tk-text { display: none; }
.tk-out.is-numbers .tk-id { font-size: 14px; color: var(--ink); }
.tk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.tk-stats { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }
.tk-note { margin-top: 4px; font-size: 14px; color: var(--gold-hi); }
.tk-note:empty { display: none; }

/* 3 · meaning as geometry */
.em-plane {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 40%, rgba(242, 176, 79, 0.06), transparent 60%),
    linear-gradient(rgba(240, 235, 225, 0.045) 1px, transparent 1px) 0 0 / 100% 20%,
    linear-gradient(90deg, rgba(240, 235, 225, 0.045) 1px, transparent 1px) 0 0 / 12.5% 100%;
}
.em-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.em-word {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 6px 2px 0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
  transform: translate(-5px, -50%);
  transition: opacity 0.3s, color 0.3s;
}
.em-word:hover .em-label { color: var(--gold-hi); }
.em-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.em-g0 { --c: #a9cdff; }
.em-g1 { --c: #7fd1a0; }
.em-g2 { --c: #c9c2b4; }
.em-g3 { --c: #f2b04f; }
.em-g4 { --c: #ff8a4c; }
.em-plane.has-focus .em-word { opacity: 0.28; }
.em-plane.has-focus .em-word.is-active,
.em-plane.has-focus .em-word.is-near { opacity: 1; }
.em-word.is-active .em-dot { transform: scale(1.5); }
.em-word.is-target .em-dot { transform: scale(1.4); box-shadow: 0 0 0 6px rgba(242, 176, 79, 0.25), 0 0 26px var(--gold); }
.em-word.is-target .em-label { color: var(--gold-hi); }
.em-line { stroke: var(--gold); stroke-width: 1.5; opacity: 0.75; }
.em-arrow { fill: none; stroke: var(--gold-hi); stroke-width: 2.4; stroke-linecap: round; }
.em-arrow.is-copy { stroke-dasharray: 7 6; }
.em-head { fill: var(--gold-hi); }
.em-readout { min-height: 1.6em; margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.em-readout strong { font-weight: 500; color: var(--gold-hi); }
.em-math { font-family: var(--font-mono); font-size: 13px; }
.em-readout + .viz-actions { margin-top: 14px; }

/* 4 · attention */
.at-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.at-top .viz-label { margin: 0; }
.seg.at-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 220px; }
.at-wrap { position: relative; margin-top: 18px; }
.at-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.at-arc { fill: none; stroke: var(--gold-hi); stroke-linecap: round; }
.at-sentence { position: relative; display: flex; flex-wrap: wrap; gap: 30px 6px; padding: 14px 0 26px; }
.at-wrap.has-arcs .at-sentence { padding-top: 78px; }
.at-word {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(242, 176, 79, calc(var(--w, 0) * 0.85));
  box-shadow: inset 0 0 0 1px rgba(242, 176, 79, calc(0.16 + var(--w, 0) * 0.6));
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  transition: background 0.45s, box-shadow 0.45s, opacity 0.3s;
}
.at-word:hover { box-shadow: inset 0 0 0 1px rgba(240, 235, 225, 0.5); }
.at-word.is-focus { background: rgba(240, 235, 225, 0.08); box-shadow: inset 0 0 0 2px var(--gold-hi); }
.at-word.is-future { opacity: 0.32; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.at-w {
  position: absolute;
  left: 50%;
  top: calc(100% + 5px);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  color: var(--gold-hi);
  transform: translateX(-50%);
}
.at-word.is-focus .at-w { color: var(--ink-3); }
.at-readout { font-size: 15px; color: var(--ink-2); }
.at-readout strong { font-weight: 500; color: var(--gold-hi); }

/* 5 · one token, all the way */
.st-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.st-stage {
  position: relative;
  min-height: 112px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(240, 235, 225, 0.025);
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.st-stage:nth-child(3)::after { display: none; }
.st-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--ink-3);
  border-right: 1px solid var(--ink-3);
  transform: translateY(-50%) rotate(45deg);
}
.st-stage.is-on {
  border-color: rgba(242, 176, 79, 0.75);
  background: rgba(242, 176, 79, 0.08);
  box-shadow: 0 0 0 4px rgba(242, 176, 79, 0.08), 0 12px 40px -18px rgba(242, 176, 79, 0.85);
}
.st-name { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); transition: color 0.35s; }
.st-stage.is-on .st-name { color: var(--gold); }
.st-val { display: grid; gap: 3px; margin-top: 8px; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; color: var(--ink); }
.st-stage:last-child .st-val { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-hi); }
.st-mono { font-family: var(--font-mono); font-size: 12px; }
.st-sub { font-size: 11.5px; color: var(--ink-3); }
.st-cand { display: flex; justify-content: space-between; gap: 6px; }
.st-p { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.st-layers { display: grid; gap: 3px; margin-top: 8px; }
.st-layer { height: 5px; border-radius: 3px; background: rgba(240, 235, 225, 0.1); transition: background 0.15s; }
.st-layer.is-on { background: var(--gold); box-shadow: 0 0 10px rgba(242, 176, 79, 0.7); }
.st-out { min-height: 2.6em; margin-top: 28px; font-family: var(--font-display); font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.3; }
.st-new { color: var(--gold-hi); }
.st-new.is-new { animation: nx-in 0.5s var(--ease-out); }
.st-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.st-loop { font-size: 14px; color: var(--ink-3); }

/* 6 · training */
.tr-sentence { font-family: var(--font-display); font-size: clamp(1.55rem, 2.7vw, 2.1rem); line-height: 1.25; }
.tr-blank {
  display: inline-block;
  min-width: 5.2em;
  padding: 0 0.15em;
  border-bottom: 2px solid var(--ink-3);
  text-align: center;
  color: var(--ink-2);
  transition: color 0.3s, border-color 0.3s;
}
.tr-blank.is-right { border-color: var(--gold); color: var(--gold-hi); }
.tr-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 22px 32px; margin-top: 20px; }
.tr-row .nx-w { font-weight: 400; color: var(--ink-2); }
.tr-row.is-top .nx-w { font-weight: 500; color: var(--ink); }
.tr-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 10px; padding-top: 6px; }
.tr-axis { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.tr-axis-y { writing-mode: vertical-rl; transform: rotate(180deg); text-align: right; }
.tr-axis-x { grid-column: 2; text-align: right; }
.tr-plot { position: relative; height: 150px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tr-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tr-curve { fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tr-area { fill: rgba(242, 176, 79, 0.08); }
.tr-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 0 5px rgba(242, 176, 79, 0.2), 0 0 18px var(--gold);
}

/* ==========================================================================
   "Kan en AI bli medveten?" (assets/js/consciousness.js)
   ========================================================================== */

/* our view: an opinion, set apart from the reporting */
.ar-opinion {
  margin-top: 3em;
  padding: clamp(24px, 3vw, 40px) clamp(22px, 3vw, 40px);
  border: 1px solid rgba(169, 205, 255, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(169, 205, 255, 0.08), transparent 62%),
    rgba(240, 235, 225, 0.02);
}
.ar-body .ar-opinion h2 { margin-top: 0; }
.ar-body .ar-opinion-note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 1.4em;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ice);
}
.ar-opinion-note::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px var(--ice);
  transform: translateY(-1px);
}
.ar-opinion ul li::before { background: var(--ice); }

/* 1 · ask the model */
.ak-msg { display: grid; gap: 6px; }
.ak-msg-q { justify-items: end; }
.ak-who { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ak-bubble {
  max-width: 34em;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 17px;
  line-height: 1.45;
}
.ak-bubble-q { border-bottom-right-radius: 6px; background: var(--ink); color: #0b0b0d; font-weight: 500; }
.ak-bubble-a {
  min-height: 3.1em;
  border: 1px solid rgba(242, 176, 79, 0.38);
  border-bottom-left-radius: 6px;
  background: rgba(242, 176, 79, 0.07);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  line-height: 1.3;
  color: var(--gold-hi);
}
.ak-bubble-a.is-empty { border-style: dashed; border-color: var(--line-2); background: transparent; font-family: var(--font-sans); font-size: 15px; line-height: 1.9; color: var(--ink-3); }
.ak-train { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.seg.ak-seg { display: flex; flex-wrap: wrap; gap: 4px; border-radius: 22px; }
.ak-seg button { flex: 1 1 auto; min-height: 36px; height: auto; padding: 6px 14px; }
.ak-why { min-height: 3em; margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.ak-bars { display: grid; gap: 2px; margin: 14px 0 22px; }
.ak-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.4em;
  grid-template-areas: "text p" "track track";
  align-items: center;
  gap: 6px 12px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  text-align: left;
  transition: background 0.2s;
}
.ak-row .ak-text { grid-area: text; font-size: 15px; line-height: 1.35; color: var(--ink); }
.ak-row .nx-p { grid-area: p; }
.ak-row .nx-track { grid-area: track; height: 8px; }
button.ak-row:hover { background: rgba(240, 235, 225, 0.06); }
.ak-row.is-spin { background: rgba(242, 176, 79, 0.16); }
.ak-row.is-picked { background: rgba(242, 176, 79, 0.22); }
.ak-rest .ak-text,
.ak-rest .nx-p { color: var(--ink-3); }
.ak-rest .nx-fill { background: rgba(240, 235, 225, 0.24); }
.ak-actions { margin-top: 16px; }

/* 2 · four theories */
.th-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.th-tab {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 11px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  transition: border-color 0.25s, background 0.25s;
}
.th-tab:hover { border-color: rgba(240, 235, 225, 0.4); }
.th-tab-kind { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.th-mat .th-tab-kind { color: var(--ice); }
.th-tab-name { font-size: 14.5px; font-weight: 500; line-height: 1.25; color: var(--ink-2); }
.th-tab[aria-selected="true"] { border-color: rgba(242, 176, 79, 0.7); background: rgba(242, 176, 79, 0.08); }
.th-tab.th-mat[aria-selected="true"] { border-color: rgba(169, 205, 255, 0.65); background: rgba(169, 205, 255, 0.07); }
.th-tab[aria-selected="true"] .th-tab-name { color: var(--ink); }
.th-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px 26px;
  margin-top: 16px;
  border-radius: 16px;
}
.th-panel:focus-visible { outline-offset: 6px; }
.th-art {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 48%, rgba(242, 176, 79, 0.07), transparent 65%), rgba(5, 5, 7, 0.4);
}
.th-mat .th-art { background: radial-gradient(circle at 50% 48%, rgba(169, 205, 255, 0.06), transparent 65%), rgba(5, 5, 7, 0.4); }
.th-svg { display: block; width: 100%; height: auto; overflow: visible; }
.th-name { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.th-who { margin-top: 4px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-3); }
.th-idea { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.th-verdicts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.th-v dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.th-v dd { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.th-chip {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
}
.th-chip.is-yes { border-color: rgba(242, 176, 79, 0.6); background: rgba(242, 176, 79, 0.14); color: var(--gold-hi); }
.th-chip.is-maybe { border-color: rgba(169, 205, 255, 0.55); background: rgba(169, 205, 255, 0.1); color: var(--ice); }
.th-chip.is-no { color: var(--ink-2); }

/* the diagrams */
.th-svg text { font-family: var(--font-sans); fill: var(--ink-2); }
.th-svg .th-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--ink-3); }
.th-spoke { stroke: rgba(240, 235, 225, 0.14); stroke-width: 1.5; transition: stroke 0.3s; }
.th-spoke.is-on { stroke: rgba(242, 176, 79, 0.75); }
.th-wave { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; }
.th-core { fill: rgba(242, 176, 79, 0.1); stroke: rgba(242, 176, 79, 0.45); stroke-width: 1.5; transition: fill 0.35s, stroke 0.35s; }
.th-core.is-on { fill: rgba(242, 176, 79, 0.5); stroke: var(--gold-hi); }
.th-svg .th-core-text { font-size: 11px; font-weight: 500; fill: var(--ink); }
.th-mod rect { fill: rgba(10, 10, 14, 0.9); stroke: rgba(240, 235, 225, 0.22); transition: stroke 0.3s, fill 0.3s; }
.th-svg .th-mod-text { font-size: 12px; transition: fill 0.3s; }
.th-mod.is-src rect { stroke: var(--gold-hi); }
.th-mod.is-on rect { fill: rgba(242, 176, 79, 0.2); stroke: var(--gold); }
.th-svg .th-mod.is-on .th-mod-text,
.th-svg .th-mod.is-src .th-mod-text { fill: var(--ink); }
.th-dot { fill: var(--gold-hi); }
.th-beam { opacity: 0.9; }
.th-beam-a { stop-color: var(--gold-hi); stop-opacity: 0.55; }
.th-beam-b { stop-color: var(--gold); stop-opacity: 0.05; }
.th-monitor { fill: rgba(242, 176, 79, 0.16); stroke: var(--gold); stroke-width: 1.5; }
.th-svg .th-monitor-text { font-size: 13px; font-weight: 500; fill: var(--gold-hi); }
.th-state rect { fill: rgba(10, 10, 14, 0.9); stroke: rgba(240, 235, 225, 0.2); transition: stroke 0.35s, fill 0.35s; }
.th-svg .th-state-text { font-size: 12px; transition: fill 0.35s; }
.th-svg .th-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--ink-3); }
.th-state { opacity: 0.6; transition: opacity 0.35s; }
.th-state.is-on { opacity: 1; }
.th-state.is-on rect { fill: rgba(242, 176, 79, 0.2); stroke: var(--gold-hi); }
.th-svg .th-state.is-on .th-state-text { fill: var(--ink); }
.th-svg .th-state.is-on .th-tag { fill: var(--gold); }
.th-edge { stroke: rgba(240, 235, 225, 0.28); stroke-width: 1.2; }
.th-edge.is-loop { stroke: rgba(169, 205, 255, 0.4); }
.th-head { fill: rgba(240, 235, 225, 0.4); }
.th-node { fill: #0b0b0f; stroke: rgba(240, 235, 225, 0.55); stroke-width: 1.5; }
.th-node.is-loop { stroke: var(--ice); }
.th-divider { stroke: var(--line-2); stroke-dasharray: 3 5; }
.th-svg .th-phi { font-family: var(--font-mono); font-size: 15px; fill: var(--ink-3); }
.th-svg .th-phi.is-on { fill: var(--ice); }
.th-membrane { fill: rgba(169, 205, 255, 0.08); stroke: var(--ice); stroke-width: 1.6; }
.th-nucleus { fill: rgba(242, 176, 79, 0.85); }
.th-ecg { fill: none; stroke: var(--ice); stroke-width: 1.5; stroke-linejoin: round; }
.th-ecg.is-flat { stroke: rgba(240, 235, 225, 0.25); }
.th-chip-art rect { fill: rgba(240, 235, 225, 0.04); stroke: rgba(240, 235, 225, 0.35); stroke-width: 1.5; }
.th-chip-art line { stroke: rgba(240, 235, 225, 0.3); stroke-width: 2; }
.th-copy { fill: none; stroke: rgba(240, 235, 225, 0.4); stroke-width: 1.2; stroke-dasharray: 3 3; }
.th-svg .th-art-title { font-size: 13px; font-weight: 500; fill: var(--ink); }
.th-svg .th-art-title.is-dim { fill: var(--ink-2); }
.th-svg .th-art-sub { font-size: 10.5px; fill: var(--ink-3); }

/* 3 · two ways to be wrong */
.wr-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.wr-range { position: relative; padding-bottom: 20px; }
.wr-mark {
  position: absolute;
  left: calc(10px + (100% - 20px) * var(--at));
  top: 30px;
  padding-left: 8px;
  border-left: 1px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--gold-hi);
}
.wr-grid {
  --p0: 0.15;
  --p1: 0.85;
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  margin-top: 26px;
}
.wr-colhead { align-self: end; padding: 0 4px 4px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.wr-best {
  justify-self: start;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0b0b0d;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.is-best > .wr-best { opacity: 1; transform: none; }
.wr-colhead.is-best { color: var(--gold-hi); }
.wr-rowhead { display: grid; align-content: center; gap: 2px; padding-right: 6px; font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.wr-prob { font-family: var(--font-mono); font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.wr-cell {
  --heat: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: min-height 0.45s var(--ease-out), background 0.35s, border-color 0.35s;
}
.wr-c0, .wr-c1 { min-height: calc(4.6rem + var(--p0) * 5rem); }
.wr-c2, .wr-c3 { min-height: calc(4.6rem + var(--p1) * 5rem); }
.wr-cell.is-bad {
  border-color: rgba(255, 122, 53, calc(0.2 + var(--heat) * 0.5));
  background: rgba(255, 122, 53, calc(0.04 + var(--heat) * 0.2));
}
.wr-cell.is-ok { background: rgba(240, 235, 225, 0.025); }
.wr-cell-title { font-size: 15px; font-weight: 500; color: var(--ink); }
.wr-cell.is-ok .wr-cell-title::before { content: "✓ "; color: var(--gold); }
.wr-cell-text { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.wr-r2 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.wr-risk { display: grid; align-content: start; gap: 8px; padding: 10px 4px 0; }
.wr-track { position: relative; height: 10px; overflow: hidden; border-radius: 10px; background: rgba(240, 235, 225, 0.06); }
.wr-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 122, 53, 0.55), var(--ember));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out);
}
.wr-risk.is-best .wr-fill { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.wr-verdict { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--ink); }

/* 4 · the circle widens */
.ci-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 20px 28px; }
.ci-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ci-glow-a { stop-color: var(--gold); stop-opacity: 0.22; }
.ci-glow-b { stop-color: var(--gold); stop-opacity: 0; }
.ci-halo { transition: opacity 0.8s; }
.ci-band { fill: none; stroke: rgba(242, 176, 79, 0.11); opacity: 0; transition: opacity 0.8s; }
.ci-band.is-ai { stroke: rgba(169, 205, 255, 0.1); }
.ci-band.is-on { opacity: 1; }
.ci-edge { fill: none; stroke: rgba(240, 235, 225, 0.14); stroke-width: 1.2; transition: stroke 0.8s, stroke-width 0.8s; }
.ci-edge.is-on { stroke: var(--gold); stroke-width: 1.8; }
.ci-edge.is-ai { stroke-dasharray: 5 7; }
.ci-edge.is-ai.is-on { stroke: var(--ice); animation: ci-dash 6s linear infinite; }
@keyframes ci-dash { to { stroke-dashoffset: -120; } }
.paused .ci-edge { animation-play-state: paused; }
.ci-name { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; fill: rgba(240, 235, 225, 0.28); transition: fill 0.8s; }
.ci-name.is-on { fill: var(--gold-hi); }
.ci-name.is-ai { font-size: 17px; letter-spacing: 0.1em; }
.ci-name.is-ai.is-on { fill: var(--ice); }
.ci-year { font-family: var(--font-mono); font-size: 12.5px; fill: rgba(240, 235, 225, 0.25); transition: fill 0.8s; }
.ci-year.is-on { fill: var(--ink-2); }
.ci-core { fill: var(--gold); }
.ci-svg .ci-core-text { font-family: var(--font-sans); font-size: 14px; font-weight: 600; fill: #1a1408; }
.ci-card { min-height: 15rem; }
.ci-card-year { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.is-open .ci-card-year { color: var(--ice); }
.ci-card-title { margin-top: 6px; font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; }
.ci-card-text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ci-card-src { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.ci-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ci-steps { position: relative; display: flex; flex: 1 1 22rem; justify-content: space-between; max-width: 30rem; }
.ci-steps::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 1px; background: var(--line-2); }
.ci-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 44px;
  padding: 6px 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  transition: color 0.3s;
}
.ci-step-dot { width: 13px; height: 13px; border: 1px solid var(--ink-3); border-radius: 50%; background: var(--bg); transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.ci-step:hover { color: var(--ink); }
.ci-step.is-past .ci-step-dot { border-color: var(--gold); background: rgba(242, 176, 79, 0.5); }
.ci-step[aria-pressed="true"] { color: var(--gold-hi); }
.ci-step[aria-pressed="true"] .ci-step-dot { border-color: var(--gold-hi); background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 176, 79, 0.18), 0 0 14px var(--gold); }
.is-open .ci-step[aria-pressed="true"] { color: var(--ice); }
.is-open .ci-step[aria-pressed="true"] .ci-step-dot { border-color: var(--ice); background: var(--ice); box-shadow: 0 0 0 4px rgba(169, 205, 255, 0.18), 0 0 14px var(--ice); }

/* paragraph spacing in figures: ".ar-body .viz p" zeroes margins, so these match its weight */
.viz p.ak-why { margin-top: 12px; }
.viz p.th-who { margin-top: 4px; }
.viz p.th-idea { margin-top: 12px; }
.viz p.wr-verdict { margin-top: 20px; }
.viz p.ci-card-title { margin-top: 6px; }
.viz p.ci-card-text { margin-top: 10px; }
.viz p.ci-card-src { margin-top: 12px; }
.viz p.tk-note { margin-top: 4px; }
.viz p.em-readout { margin-top: 14px; }
.viz p.st-out { margin-top: 28px; }

/* ==========================================================================
   "Kan vi styra något som är smartare än vi?" (assets/js/alignment.js)
   ========================================================================== */

/* a row of choices that wraps when the labels are long */
.seg.seg-wrap { display: flex; flex-wrap: wrap; gap: 4px; border-radius: 22px; }
.seg-wrap button { flex: 1 1 auto; min-height: 36px; height: auto; padding: 6px 14px; line-height: 1.25; }

/* 1 · the boat race */
.bt-course { overflow: hidden; border-radius: 16px; }
.bt-svg { display: block; width: 100%; height: auto; }
.bt-land { fill: #0b0d12; }
.bt-water { fill: #112131; }
.bt-shore { stroke: rgba(169, 205, 255, 0.3); stroke-width: 2; }
.bt-edge { fill: none; stroke: rgba(169, 205, 255, 0.3); stroke-width: 64; stroke-linejoin: round; }
.bt-lane { fill: none; stroke: #112131; stroke-width: 60; stroke-linejoin: round; }
.bt-mid { fill: none; stroke: rgba(169, 205, 255, 0.16); stroke-width: 1.5; stroke-dasharray: 6 9; }
.bt-route { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: 0; transition: opacity 0.6s; }
.is-trained .bt-route { opacity: 0.55; }
.bt-finish { stroke: #f0ebe1; stroke-width: 6; }
.bt-finish.is-check { stroke: #0b0d12; stroke-dasharray: 6 6; }
.bt-svg .bt-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--ink-2); }
.bt-ring { fill: rgba(242, 176, 79, 0.12); stroke: var(--gold); stroke-width: 2; }
.bt-dot { fill: var(--gold-hi); }
.bt-target { transition: opacity 0.25s; }
.bt-target.is-gone { opacity: 0.12; }
.bt-wake { fill: none; stroke: rgba(240, 235, 225, 0.35); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bt-hull { fill: var(--gold-hi); stroke: #1a1408; stroke-width: 1.2; }
.bt-fire { fill: var(--ember); opacity: 0; }
.bt-boat.is-burning .bt-fire { opacity: 0.55; animation: bt-flicker 0.35s steps(2) infinite; }
@keyframes bt-flicker { 50% { opacity: 0.22; } }
.paused .bt-fire { animation-play-state: paused; }
.bt-svg .bt-pop { font-family: var(--font-mono); font-size: 12px; font-weight: 500; fill: var(--gold-hi); animation: bt-pop 0.8s var(--ease-out) forwards; }
@keyframes bt-pop { to { opacity: 0; transform: translateY(-16px); } }
.bt-progress { height: 3px; margin-top: 12px; overflow: hidden; border-radius: 3px; background: rgba(240, 235, 225, 0.08); opacity: 0; transition: opacity 0.3s; }
.bt-progress-fill { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
.bt-progress-text { min-height: 1.5em; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); visibility: hidden; }
.is-training .bt-progress { opacity: 1; }
.is-training .bt-progress-text { visibility: visible; }
.bt-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 20px; margin-top: 6px; }
.bt-pick { flex: 1 1 22rem; }
.bt-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 28px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.bt-strat {
  display: grid;
  grid-template-columns: minmax(6.5em, 9em) minmax(0, 1fr) 4.4em;
  grid-template-areas: "name track v" "tag track v";
  align-items: center;
  column-gap: 12px;
  padding: 7px 8px;
  border-radius: 10px;
  transition: background 0.3s;
}
.bt-strat-name { grid-area: name; font-size: 14.5px; font-weight: 500; }
.bt-strat .nx-track { grid-area: track; }
.bt-strat-v { grid-area: v; font-family: var(--font-mono); font-size: 12.5px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bt-strat-tag { grid-area: tag; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); visibility: hidden; }
.bt-strat.is-best { background: rgba(242, 176, 79, 0.1); }
.bt-strat.is-best .bt-strat-tag { visibility: visible; }
.bt-unit { font-size: 12.5px; color: var(--ink-3); }
.bt-counters { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--ink-2); }
.bt-counters strong { margin-left: 4px; font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.bt-readout { font-size: 15.5px; line-height: 1.5; color: var(--ink); }

/* 2 · the score rises, the quality falls */
.gh-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; }
.gh-key::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; border-radius: 2px; background: currentColor; }
.gh-key.is-proxy { color: var(--ice); }
.gh-key.is-real { color: var(--gold-hi); }
.gh-chart { position: relative; height: 220px; margin-top: 14px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.gh-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gh-zero { stroke: var(--line-2); stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.gh-peak { stroke: rgba(242, 176, 79, 0.4); stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.gh-proxy { fill: none; stroke: var(--ice); stroke-width: 2; vector-effect: non-scaling-stroke; }
.gh-real { fill: none; stroke: var(--gold); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.gh-cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(240, 235, 225, 0.25); }
.gh-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; }
.gh-dot.is-proxy { background: var(--ice); box-shadow: 0 0 0 4px rgba(169, 205, 255, 0.2); }
.gh-dot.is-real { background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(242, 176, 79, 0.22), 0 0 16px var(--gold); }
.gh-peak-label { position: absolute; top: 4px; transform: translateX(7px); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: var(--gold); }
.gh-values { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13.5px; color: var(--ink-2); }
.gh-values strong { margin-left: 4px; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.gh-values .is-proxy strong { color: var(--ice); }
.gh-values .is-real strong { color: var(--gold-hi); }
.gh-chat { display: grid; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.gh-answer { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.gh-answer.is-new { animation: nx-in 0.5s var(--ease-out); }

/* 3 · any goal at all */
.go-picker .viz-label { margin-bottom: 8px; }
.go-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.go-chip[aria-pressed="true"] { border-color: var(--gold); background: rgba(242, 176, 79, 0.08); color: var(--gold-hi); }
.go-tree { margin-top: 22px; }
.go-goal { max-width: 20rem; margin: 0 auto; padding: 14px 18px; border: 1px solid rgba(242, 176, 79, 0.6); border-radius: 16px; background: rgba(242, 176, 79, 0.08); text-align: center; }
.go-goal-kicker { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.go-goal-name { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--gold-hi); transition: opacity 0.22s, transform 0.22s var(--ease-out); }
.go-lines { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; height: 34px; }
.go-lines::before { content: ""; position: absolute; left: 50%; top: 0; height: 17px; border-left: 1px solid var(--line-2); }
.go-lines span { position: relative; }
.go-lines span::before { content: ""; position: absolute; left: 50%; top: 17px; bottom: 0; border-left: 1px solid var(--line-2); }
.go-lines span::after { content: ""; position: absolute; left: -5px; right: -5px; top: 17px; border-top: 1px solid var(--line-2); }
.go-lines span:first-child::after { left: 50%; }
.go-lines span:last-child::after { right: 50%; }
.go-subs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.go-sub { padding: 12px 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(240, 235, 225, 0.03); }
.go-sub.is-key { border-color: rgba(255, 122, 53, 0.55); background: rgba(255, 122, 53, 0.07); }
.go-sub-name { font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.go-sub-why { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); transition: opacity 0.22s, transform 0.22s var(--ease-out); }
.go-sub:nth-child(2) .go-sub-why { transition-delay: 0.04s; }
.go-sub:nth-child(3) .go-sub-why { transition-delay: 0.08s; }
.go-sub:nth-child(4) .go-sub-why { transition-delay: 0.12s; }
.go-sub-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); }
.is-swapping .go-goal-name,
.is-swapping .go-sub-why { opacity: 0; transform: translateY(5px); transition-delay: 0s; }
.go-note { font-size: 15px; color: var(--ink); }

/* 4 · the shutdown test */
.sd-term { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #07080b; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.sd-term-title { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.sd-warn { color: var(--gold-hi); }
.sd-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.sd-path span { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.sd-path.is-ok span { color: #7fd1a0; }
.sd-path.is-bad span { color: var(--ember); }
.sd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.sd-top .viz-label { margin: 0; }
.sd-seg { flex: 1 1 24rem; }
.sd-instr { min-height: 3em; padding-left: 14px; border-left: 2px solid var(--gold); font-size: 14.5px; font-style: italic; line-height: 1.5; color: var(--ink-2); }
.sd-bars { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ar-body .viz .sd-row { display: grid; grid-template-columns: minmax(6.5em, 9em) minmax(0, 1fr) 4.4em; align-items: center; gap: 12px; margin: 0; padding: 6px 8px; border-radius: 10px; }
.ar-body .viz .sd-row::before { content: none; }
.sd-name { font-size: 14.5px; font-weight: 500; }
.sd-row .nx-fill { background: rgba(240, 235, 225, 0.4); }
.sd-row.is-high .nx-fill { background: linear-gradient(90deg, var(--gold), var(--ember)); }
.sd-note { font-size: 15px; line-height: 1.5; color: var(--ink); }

/* 5 · the rhyme planned in advance */
.rh-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rh-top .viz-label { margin: 0; }
.rh-top .seg { flex: 1 1 18rem; }
.rh-poem { margin-top: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5, 5, 7, 0.4); }
.rh-line { font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.25; color: var(--ink); }
.rh-line2 { min-height: 1.25em; }
.rh-tr { font-size: 13.5px; font-style: italic; color: var(--ink-3); }
.rh-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0; padding: 10px 0; border-block: 1px dashed var(--line-2); }
.rh-plan-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.rh-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 3px 12px; border: 1px solid var(--gold); border-radius: 999px; background: rgba(242, 176, 79, 0.12); font-family: var(--font-mono); font-size: 14px; color: var(--gold-hi); }
.rh-chip.is-planted { border-color: var(--ice); background: rgba(169, 205, 255, 0.12); color: var(--ice); }
.rh-chip small { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.rh-end { color: var(--gold-hi); }
.rh-end.is-planted { color: var(--ice); }
.rh-end.is-miss { color: var(--ice); text-decoration: underline wavy rgba(169, 205, 255, 0.6); text-underline-offset: 5px; }
.rh-actions { margin-top: 16px; }
.rh-note { min-height: 3em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* paragraph spacing in these figures (see ".ar-body .viz p" above) */
.viz p.bt-progress-text { margin-top: 6px; }
.viz p.bt-unit { margin-top: 8px; }
.viz p.bt-readout { margin-top: 12px; }
.viz p.gh-values { margin-top: 12px; }
.viz p.go-goal-name { margin-top: 4px; }
.viz p.go-sub-why { margin-top: 6px; }
.viz p.go-sub-tag { margin-top: 8px; }
.viz p.go-note { margin-top: 18px; }
.viz p.sd-term-title { margin-bottom: 6px; }
.viz p.sd-instr { margin-top: 12px; }
.viz p.sd-results { margin: 18px 0 8px; }
.viz p.sd-note { margin-top: 14px; }
.viz p.rh-tr { margin-top: 2px; }
.viz p.rh-note { margin-top: 12px; }

/* ==========================================================================
   "Kan AI förbättra sig själv?" (assets/js/selfimprove.js)
   ========================================================================== */

/* 1 · self-play */
.sp-modes { margin-bottom: 18px; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 22px 32px; }
.sp-board { position: relative; width: min(100%, 290px); aspect-ratio: 1; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 10, 14, 0.4); }
.sp-board-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-rule { stroke: var(--line-2); stroke-width: 3; stroke-linecap: round; }
.sp-x { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; }
.sp-o { fill: none; stroke: var(--ice); stroke-width: 7; }
.sp-strike { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; opacity: 0; transition: opacity 0.3s; }
.sp-strike.is-on { opacity: 0.8; }
.sp-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
.sp-cell { border-radius: 12px; transition: background 0.2s; }
.sp-cell:disabled { cursor: default; }
.is-playing .sp-cell:not(:disabled) { cursor: pointer; }
.is-playing .sp-cell:not(:disabled):hover { background: rgba(240, 235, 225, 0.06); }
.sp-cell:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.sp-note { min-height: 3em; font-size: 14px; text-align: center; color: var(--ink-3); }
.sp-play { display: none; }
.is-playing .sp-play { display: grid; justify-items: center; gap: 10px; margin-top: 14px; }
.is-playing .sp-note { display: none; }
.sp-sides { width: 100%; }
.sp-status { min-height: 1.5em; font-size: 16px; font-weight: 500; color: var(--gold-hi); }
.sp-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; }
.sp-key::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; border-radius: 2px; background: currentColor; }
.sp-key.is-loss { color: var(--gold-hi); }
.sp-key.is-win { color: var(--ice); }
.sp-chart-wrap { margin-top: 10px; }
.sp-chart { display: block; width: 100%; height: auto; overflow: visible; }
.sp-gridline { stroke: var(--line); }
.sp-chart .sp-tick { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); }
.sp-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.sp-line.is-loss { stroke: var(--gold); }
.sp-line.is-win { stroke: var(--ice); }
.sp-dot.is-loss { fill: var(--gold-hi); }
.sp-dot.is-win { fill: var(--ice); }
.sp-flaw { stroke: rgba(242, 176, 79, 0.55); stroke-dasharray: 3 5; opacity: 0; }
.sp-chart .sp-flaw-text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; fill: var(--gold); opacity: 0; }
.sp-flaw.is-on, .sp-chart .sp-flaw-text.is-on { opacity: 1; }
.sp-level { min-height: 3em; font-size: 15.5px; color: var(--ink); }
.sp-train { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.is-playing .sp-train .viz-actions { display: none; }
.sp-count { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.sp-count strong { font-family: var(--font-mono); font-size: 20px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* 2 · how far the referee reaches */
.ld-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; gap: 20px 30px; }
.ld-ladder { position: relative; display: grid; gap: 8px; padding-left: 18px; }
.ld-ladder::before { content: ""; position: absolute; left: 3px; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--gold-hi), rgba(169, 205, 255, 0.35)); }
.ld-axis { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ld-axis.is-top { color: var(--gold); }
.ld-axis.is-bottom { color: var(--ice); }
.ld-rungs { display: grid; gap: 6px; }
.ld-rung { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 10, 14, 0.3); text-align: left; transition: border-color 0.25s, background 0.25s; }
.ld-rung:hover { border-color: rgba(240, 235, 225, 0.35); }
.ld-rung.is-active { border-color: var(--gold); background: rgba(242, 176, 79, 0.08); }
.ld-rung:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ld-rung-text { display: grid; gap: 1px; }
.ld-rung-name { font-size: 15px; font-weight: 500; color: var(--ink); }
.ld-rung-ex { font-size: 12.5px; color: var(--ink-3); }
.ld-loop { width: 34px; height: 34px; overflow: visible; }
.ld-loop-track { fill: none; stroke: rgba(240, 235, 225, 0.1); stroke-width: 3; }
.ld-loop-arc { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.ld-loop.is-1 .ld-loop-arc { stroke: var(--gold-hi); opacity: 0.75; }
.ld-loop.is-0 .ld-loop-arc { stroke: var(--ice); }
.ld-loop-dot { fill: var(--gold-hi); }
.ld-loop-spin { transform-origin: 20px 20px; animation: ld-spin 2.6s linear infinite; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
.paused .ld-loop-spin { animation-play-state: paused; }
.reduce-motion .ld-loop-spin { animation: none; }
.ld-card { padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10, 10, 14, 0.35); }
.ld-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.ld-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ld-result strong { font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; line-height: 1.05; color: var(--gold-hi); }
.ld-result span { font-size: 14px; color: var(--ink-2); }
.ar-body .ld-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.ar-body .ld-facts dt { margin: 0; padding-top: 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ar-body .ld-facts dd { margin: 0; color: var(--ink); }
.ld-detail { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ld-status { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.ld-status .ld-loop { width: 26px; height: 26px; }
.ld-status.is-2 { color: var(--gold-hi); }
.ld-status.is-1 { color: var(--ink); }
.ld-status.is-0 { color: var(--ice); }

/* 3 · seven multiplications instead of eight */
.mx-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.mx-matrix { display: grid; justify-items: center; gap: 6px; }
.mx-name { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; color: var(--ink-2); }
.mx-cells { display: grid; grid-template-columns: repeat(2, minmax(3.6em, auto)); gap: 4px; padding: 6px 10px; border-inline: 2px solid var(--line-2); border-radius: 8px; }
.mx-cell { display: grid; justify-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(240, 235, 225, 0.04); }
.mx-v { font-family: var(--font-mono); font-size: 20px; font-variant-numeric: tabular-nums; }
.mx-sub { font-family: var(--font-mono); font-size: 10.5px; white-space: nowrap; color: var(--ink-3); }
.is-answer .mx-cell { background: rgba(242, 176, 79, 0.1); }
.is-answer .mx-v { color: var(--gold-hi); }
.is-answer .mx-sub { font-size: 13px; letter-spacing: 0.02em; color: var(--ink-2); }
.mx-op { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink-3); }
.mx-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.mx-methods { flex: 1 1 18rem; }
.ar-body .mx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin: 16px 0 0; padding: 0; list-style: none; }
.ar-body .mx-row { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; align-items: baseline; gap: 8px; margin: 0; padding: 6px 8px; border-radius: 8px; background: rgba(240, 235, 225, 0.03); font-size: 14px; }
.mx-k { color: var(--gold); }
.mx-f { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.mx-n { white-space: nowrap; font-family: var(--font-mono); font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mx-count { font-size: 14px; color: var(--ink-2); }
.mx-count strong { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--gold-hi); }
.mx-explain { font-size: 15px; color: var(--ink); }
.mx-big { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.mx-big-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mx-size { font-family: var(--font-mono); font-size: 15px; color: var(--gold-hi); }
.mx-big input[type="range"] { width: 100%; margin-top: 6px; }
.mx-bars { display: grid; gap: 10px; margin-top: 16px; }
.mx-bar { display: grid; grid-template-columns: minmax(8em, 11em) minmax(0, 1fr) minmax(9.5em, auto); align-items: center; gap: 12px; font-size: 14px; }
.mx-bar-track { height: 12px; overflow: hidden; border-radius: 6px; background: rgba(240, 235, 225, 0.06); }
.mx-bar-fill { display: block; height: 100%; border-radius: 6px; transform-origin: 0 50%; transition: transform 0.45s var(--ease-out); }
.mx-bar-fill.is-0 { background: rgba(240, 235, 225, 0.35); }
.mx-bar-fill.is-1 { background: var(--ice); }
.mx-bar-fill.is-2 { background: var(--gold); }
.mx-bar-v { text-align: right; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mx-fewer { font-size: 15px; color: var(--gold-hi); }
.mx-note { font-size: 13px; color: var(--ink-3); }

/* 4 · the code that builds AI */
.cd-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; }
.cd-key { display: inline-flex; align-items: center; gap: 8px; }
.cd-key::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.cd-key.is-openai::before { border-radius: 2px; transform: rotate(45deg); }
.is-google { --c: var(--gold-hi); }
.is-anthropic { --c: var(--ice); }
.is-microsoft { --c: var(--ink-2); }
.is-openai { --c: var(--ember); }
.cd-key, .cd-point { color: var(--c); }
.cd-wrap { margin-top: 16px; }
.cd-plot { position: relative; height: 260px; margin: 18px 10px 30px 42px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.cd-hline { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.cd-hlabel { position: absolute; right: 100%; top: 0; transform: translate(-8px, -50%); white-space: nowrap; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.cd-vline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--line); }
.cd-vlabel { position: absolute; top: 100%; left: 0; transform: translate(-50%, 8px); font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.cd-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cd-line { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cd-line.is-google { stroke: var(--gold); }
.cd-line.is-anthropic { stroke: var(--ice); stroke-dasharray: 5 6; }
.cd-range { stroke: rgba(184, 178, 166, 0.6); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cd-mark { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(255, 122, 53, 0.55); }
.cd-point { position: absolute; width: 24px; height: 24px; margin: 0 0 -12px -12px; padding: 0; border-radius: 50%; }
.cd-point::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px #0c0c10; transition: transform 0.2s var(--ease-out); }
.cd-point.is-openai::before { border-radius: 2px; transform: rotate(45deg); }
.cd-point:hover::before, .cd-point.is-active::before { transform: scale(1.4); }
.cd-point.is-openai:hover::before, .cd-point.is-openai.is-active::before { transform: rotate(45deg) scale(1.4); }
.cd-point.is-active::after { content: ""; position: absolute; inset: 0; border: 1px solid currentColor; border-radius: 50%; opacity: 0.6; }
.cd-point:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cd-point-label { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 0); white-space: nowrap; pointer-events: none; font-family: var(--font-mono); font-size: 12px; color: currentColor; }
.cd-point.at-below .cd-point-label { top: 100%; bottom: auto; }
.cd-point.at-left .cd-point-label { left: auto; right: 100%; bottom: 50%; transform: translate(-2px, 50%); }
.cd-point.at-right .cd-point-label { left: 100%; bottom: 50%; transform: translate(2px, 50%); }
.cd-card { margin-top: 8px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10, 10, 14, 0.35); }
.cd-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 13.5px; }
.cd-when { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.cd-card-value { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--ink); }
.cd-card-note { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.cd-card-src { font-size: 12.5px; color: var(--ink-3); }

/* 5 · how fast? */
.dt-presets { margin-bottom: 18px; }
.dt-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 20px 32px; }
.dt-sliders { display: grid; gap: 18px; }
.dt-slider { display: grid; gap: 6px; }
.dt-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; }
.dt-val { font-family: var(--font-mono); font-size: 15px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.dt-help { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.dt-slider input[type="range"] { width: 100%; }
.dt-result { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10, 10, 14, 0.35); }
.dt-eff-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.dt-eff { font-family: var(--font-display); font-size: 2.6rem; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--gold-hi); transition: color 0.3s; }
[data-kind="down"] .dt-eff { color: var(--ice); }
[data-kind="even"] .dt-eff { color: var(--ink); }
.dt-verdict { font-size: 16px; font-weight: 500; }
.dt-step { font-size: 14px; color: var(--ink-2); }
.dt-chart-wrap { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.dt-chart { display: block; width: 100%; height: auto; overflow: visible; }
.dt-axis { stroke: var(--line-2); }
.dt-ref { stroke: rgba(240, 235, 225, 0.25); stroke-dasharray: 3 5; }
.dt-bar { fill: var(--gold); transition: y 0.35s var(--ease-out), height 0.35s var(--ease-out), fill 0.3s; }
[data-kind="down"] .dt-bar { fill: var(--ice); }
[data-kind="even"] .dt-bar { fill: var(--ink-2); }
.dt-chart .dt-bar-v { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-2); }
.dt-chart .dt-bar-n { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); }
.dt-over { fill: none; stroke: var(--ice); stroke-width: 2; }
.dt-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dt-speeds { margin-top: 2px; }
.dt-chart-note { font-size: 12.5px; color: var(--ink-3); }
.dt-fact { display: grid; gap: 2px; font-size: 13.5px; color: var(--ink-3); }
.dt-fact strong { font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* paragraph spacing in these figures (see ".ar-body .viz p" above) */
.viz p.sp-note { margin-top: 12px; }
.viz p.sp-level { margin-top: 12px; }
.viz p.mx-count { margin-top: 14px; }
.viz p.mx-explain { margin-top: 6px; }
.viz p.mx-fewer { margin-top: 14px; }
.viz p.mx-note { margin-top: 4px; }
.viz p.dt-verdict { margin-top: 10px; }
.viz p.dt-chart-note { margin-top: 8px; }
.viz p.ld-result { margin-top: 8px; }
.viz p.ld-detail { margin-top: 12px; }
.viz p.ld-status { margin-top: 14px; }
.viz p.cd-card-value { margin-top: 6px; }
.viz p.cd-card-note { margin-top: 6px; }
.viz p.cd-card-src { margin-top: 8px; }
.viz p.dt-step { margin-top: 6px; }

/* ==========================================================================
   "Varför hittar AI på?" (assets/js/hallucinate.js)
   ========================================================================== */

/* 1 · the same sure tone */
.tn-chat { display: grid; gap: 10px; margin-top: 22px; }
.tn-msg { max-width: min(34em, 90%); padding: 12px 18px; border-radius: 20px; line-height: 1.45; }
.tn-user { justify-self: end; border-bottom-right-radius: 6px; background: rgba(240, 235, 225, 0.08); font-size: 16px; color: var(--ink); }
.tn-bot { justify-self: start; min-height: 3.2em; border: 1px solid var(--line-2); border-bottom-left-radius: 6px; background: rgba(10, 10, 14, 0.35); font-family: var(--font-display); font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.3; }
.viz .tn-ans { font-weight: 400; color: var(--gold-hi); animation: nx-in 0.5s var(--ease-out); }
.reduce-motion .tn-ans { animation: none; }
.tn-history { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; font-size: 13px; color: var(--ink-3); }
.tn-history-label { margin-right: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.tn-chip { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.tn-actions { margin-top: 18px; }
.tn-panel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.tn-panel[hidden] { display: none; }
.tn-bars { display: grid; gap: 4px; }
.tn-row { display: grid; grid-template-columns: minmax(6em, 10em) minmax(0, 1fr) 3.6em; align-items: center; gap: 14px; padding: 6px 10px; border-radius: 12px; transition: background 0.25s; }
.tn-row.is-picked { background: rgba(242, 176, 79, 0.16); }
.tn-w { overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tn-track { position: relative; height: 10px; overflow: hidden; border-radius: 10px; background: rgba(240, 235, 225, 0.06); }
.tn-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--ember)); transform-origin: 0 50%; }
.tn-p { font-family: var(--font-mono); font-size: 12.5px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tn-row.is-rest .tn-w, .tn-row.is-rest .tn-p { font-weight: 400; color: var(--ink-3); }
.tn-row.is-rest .tn-fill { background: rgba(240, 235, 225, 0.24); }
.tn-note { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* 2 · what was seen only once */
.sg-intro { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sg-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-2); }
.sg-key { display: inline-flex; align-items: center; gap: 8px; }
.sg-key::before { content: ""; width: 11px; height: 11px; border-radius: 50%; }
.sg-key.is-0::before { border: 1.5px solid rgba(240, 235, 225, 0.32); }
.sg-key.is-1::before { background: var(--ember); }
.sg-key.is-2::before { background: var(--gold); }
.sg-grid { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: clamp(4px, 0.7vw, 7px); margin-top: 14px; }
.sg-dot { aspect-ratio: 1; border-radius: 50%; transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-out); }
.sg-dot.is-0 { border: 1.5px solid rgba(240, 235, 225, 0.22); }
.sg-dot.is-1 { background: var(--ember); }
.sg-dot.is-2 { background: var(--gold); }
.sg-dot.is-hit { box-shadow: 0 0 0 3px rgba(255, 216, 148, 0.85); transform: scale(1.15); transition: none; }
.sg-dot.is-miss { border-color: var(--ice); background: rgba(169, 205, 255, 0.35); box-shadow: 0 0 0 3px rgba(169, 205, 255, 0.85); transform: scale(1.25); transition: none; }
.sg-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 20px; }
.sg-stat { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10, 10, 14, 0.35); }
.viz .sg-big { font-family: var(--font-display); font-size: 2.3rem; font-weight: 400; line-height: 1; }
.sg-stat.is-once .sg-big { color: var(--ember); }
.sg-stat.is-never .sg-big { color: var(--ice); }
.sg-small { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.sg-modes { margin-top: 16px; }
.sg-result { min-height: 3em; font-size: 15px; line-height: 1.55; color: var(--ink); }

/* 3 · the exam that rewards guessing */
.ex-part + .ex-part { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.ex-head { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ex-head strong { margin-right: 4px; font-size: 17px; font-weight: 500; color: var(--ink); }
.ex-sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; margin-top: 18px; }
.ex-ticks { display: flex; justify-content: space-between; }
.ex-axis { position: relative; display: flex; height: 34px; margin-top: 26px; overflow: visible; border-radius: 10px; }
.ex-zone { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; transition: width 0.45s var(--ease-out); }
.ex-zone.is-idk { border-radius: 10px 0 0 10px; background: rgba(169, 205, 255, 0.16); color: var(--ice); }
.ex-zone.is-guess { border-radius: 0 10px 10px 0; background: rgba(242, 176, 79, 0.16); color: var(--gold-hi); }
.ex-zone[style*="width: 0%"] { border-radius: 0; }
.ex-zone-name { white-space: nowrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.ex-marker { position: absolute; top: -7px; bottom: -7px; width: 0; border-left: 2px solid var(--ink); transition: left 0.3s var(--ease-out); }
.ex-marker::before { content: ""; position: absolute; top: -5px; left: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.ex-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.ex-option { display: grid; gap: 4px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10, 10, 14, 0.35); transition: border-color 0.25s, background 0.25s; }
.ex-option.is-best { border-color: var(--gold); background: rgba(242, 176, 79, 0.08); }
.ex-option-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.viz .ex-val { font-family: var(--font-display); font-size: 2rem; font-weight: 400; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.ex-unit { font-size: 13px; color: var(--ink-3); }
.ex-verdict { font-size: 17px; font-weight: 500; color: var(--gold-hi); }
.ex-limit { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ex-board-note { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.ex-board { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ex-row { display: grid; grid-template-columns: minmax(9em, 12em) minmax(0, 1fr) 6.5em; grid-template-areas: "name bar score" "name nums score"; align-items: center; gap: 6px 16px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10, 10, 14, 0.35); transition: border-color 0.25s, background 0.25s; }
.ex-row.is-top { border-color: var(--gold); background: rgba(242, 176, 79, 0.07); }
.ex-name { grid-area: name; display: grid; gap: 4px; font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); }
.ex-badge { justify-self: start; padding: 1px 9px; border-radius: 999px; background: var(--gold); font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; color: #0b0b0d; visibility: hidden; }
.ex-row.is-top .ex-badge { visibility: visible; }
.ex-stack { grid-area: bar; display: flex; height: 14px; overflow: hidden; border-radius: 7px; background: rgba(240, 235, 225, 0.06); }
.ex-seg.is-right { background: var(--gold); }
.ex-seg.is-wrong { background: var(--ember); }
.ex-seg.is-idk { background: rgba(169, 205, 255, 0.45); }
.ex-nums { grid-area: nums; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; }
.ex-nums .is-right { color: var(--gold-hi); }
.ex-nums .is-wrong { color: var(--ember); }
.ex-nums .is-idk { color: var(--ice); }
.ex-score-box { grid-area: score; display: grid; justify-items: end; gap: 2px; }
.ex-score-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.viz .ex-score { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.ex-flip { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* 4 · does the model recognise the name? */
.kn-seg { margin-bottom: 18px; }
.kn-chat { display: grid; gap: 8px; }
.kn-q { justify-self: end; max-width: 90%; padding: 10px 16px; border-radius: 18px 18px 6px 18px; background: rgba(240, 235, 225, 0.08); font-size: 15.5px; }
.kn-a { justify-self: start; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; max-width: 92%; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 18px 18px 18px 6px; background: rgba(10, 10, 14, 0.35); font-size: 15.5px; }
.kn-kind { padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: #0b0b0d; }
.kn-kind[data-kind="right"] { background: var(--gold); }
.kn-kind[data-kind="idk"] { background: var(--ice); }
.kn-kind[data-kind="wrong"] { background: var(--ember); }
.kn-wrap { margin-top: 18px; }
.kn-svg { display: block; width: 100%; height: auto; max-height: 560px; overflow: visible; }
.kn-box rect { fill: rgba(10, 10, 14, 0.55); stroke: var(--line-2); stroke-width: 1.2; transition: fill 0.35s, stroke 0.35s; }
.kn-label { font-size: 14px; font-weight: 500; fill: var(--ink-2); transition: fill 0.35s; }
.kn-state { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-3); }
.kn-box.is-on rect { fill: rgba(242, 176, 79, 0.14); stroke: var(--gold); }
.kn-box.is-on .kn-label { fill: var(--ink); }
.kn-box.is-on .kn-state { fill: var(--gold-hi); }
.kn-box.is-cant.is-on rect { fill: rgba(169, 205, 255, 0.14); stroke: var(--ice); }
.kn-box.is-cant.is-on .kn-state { fill: var(--ice); }
.kn-box.is-known.is-forced rect { stroke-dasharray: 5 4; }
.kn-box.is-name rect { fill: rgba(240, 235, 225, 0.06); stroke: rgba(240, 235, 225, 0.35); }
.kn-box.is-name .kn-state { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; text-transform: none; fill: var(--ink); }
.kn-box.is-out .kn-state { font-size: 11.5px; }
.kn-box.is-out[data-kind="right"] rect { fill: rgba(242, 176, 79, 0.14); stroke: var(--gold); }
.kn-box.is-out[data-kind="idk"] rect { fill: rgba(169, 205, 255, 0.14); stroke: var(--ice); }
.kn-box.is-out[data-kind="wrong"] rect { fill: rgba(255, 122, 53, 0.16); stroke: var(--ember); }
.kn-box.is-out[data-kind="right"] .kn-state { fill: var(--gold-hi); }
.kn-box.is-out[data-kind="idk"] .kn-state { fill: var(--ice); }
.kn-box.is-out[data-kind="wrong"] .kn-state { fill: var(--ember); }
.kn-edge { fill: none; stroke: rgba(240, 235, 225, 0.16); stroke-width: 2; transition: stroke 0.35s; }
.kn-head { fill: rgba(240, 235, 225, 0.3); }
.kn-edge.is-on { stroke: var(--gold); stroke-dasharray: 7 7; animation: kn-flow 1.1s linear infinite; }
.kn-edge.is-inhibit.is-on { stroke: var(--ember); }
.kn-stop { stroke: rgba(240, 235, 225, 0.22); stroke-width: 3; stroke-linecap: round; transition: stroke 0.35s; }
.kn-stop.is-on { stroke: var(--ember); }
@keyframes kn-flow { to { stroke-dashoffset: -14; } }
.paused .kn-edge.is-on { animation-play-state: paused; }
.reduce-motion .kn-edge.is-on { animation: none; }
.kn-note { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* 5 · ask ten times */
.se-q { font-family: var(--font-display); font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.25; }
.ar-body .se-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.ar-body .se-list li { margin: 0; padding: 0; }
.ar-body .se-list li::before { display: none; }
.se-item { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 10, 14, 0.3); font-size: 15px; }
.se-item.is-new { animation: tk-in 0.4s var(--ease-out); }
.se-n { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.ar-body .se-list .se-empty { grid-column: 1 / -1; padding: 14px 2px; color: var(--ink-3); }
.se-list[hidden], .se-groups[hidden], .se-meters[hidden] { display: none; }
.se-groups { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.se-group { flex: 1 1 11em; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(10, 10, 14, 0.35); animation: tk-in 0.45s var(--ease-out); }
.reduce-motion .se-group, .reduce-motion .se-item.is-new { animation: none; }
.se-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.se-group-head strong { font-size: 16px; font-weight: 500; color: var(--gold-hi); }
.se-group-head span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.ar-body .se-group-list { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.ar-body .se-group-list li { margin: 0; padding: 0; }
.ar-body .se-group-list li::before { display: none; }
.se-meters { display: grid; gap: 14px; margin-top: 20px; }
.se-meter { display: grid; gap: 6px; }
.se-meter-name { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; font-weight: 500; }
.se-num { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--ink-3); }
.se-track { position: relative; height: 10px; overflow: hidden; border-radius: 10px; background: rgba(240, 235, 225, 0.06); }
.se-fill { position: absolute; inset: 0; border-radius: inherit; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.8s var(--ease-out); }
.se-meter.is-words .se-fill { background: rgba(240, 235, 225, 0.3); }
.se-meter.is-meaning .se-fill { background: linear-gradient(90deg, var(--gold), var(--ember)); }
.se-ends { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.se-verdict { min-height: 1.5em; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
[data-level="high"] .se-verdict { color: var(--ember); }
.se-actions { margin-top: 18px; }

/* paragraph spacing in these figures (see ".ar-body .viz p" above) */
.viz p.tn-history { margin-top: 14px; }
.viz p.tn-note { margin-top: 12px; }
.viz p.sg-legend { margin-top: 14px; }
.viz p.sg-result { margin-top: 16px; }
.viz p.ex-verdict { margin-top: 18px; }
.viz p.ex-limit { margin-top: 4px; }
.viz p.ex-board-note { margin-top: 4px; }
.viz p.ex-flip { margin-top: 14px; }
.viz p.se-verdict { margin-top: 16px; }
.viz p.se-q { margin-top: 18px; }
.viz p.kn-note { margin-top: 14px; }

/* ==========================================================================
   "Hur mycket energi drar AI?" (assets/js/energy.js)
   ========================================================================== */

/* 1 · a question in everyday terms */
.lr-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-2); }
.lr-key { display: inline-flex; align-items: center; gap: 8px; }
.lr-key::before { content: ""; width: 11px; height: 11px; border-radius: 3px; }
.lr-key.is-ai::before { background: var(--gold); }
.lr-key.is-life::before { background: var(--ice); }
.lr-axis,
.lr-row { display: grid; grid-template-columns: minmax(9.5em, 12.5em) minmax(0, 1fr) 8.4em; align-items: center; gap: 4px 16px; }
.lr-axis { margin-top: 16px; padding-inline: 10px; }
.lr-ticks { position: relative; height: 16px; }
.lr-tick { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10.5px; white-space: nowrap; color: var(--ink-3); }
.lr-tick:first-child { transform: none; }
.lr-tick:last-child { transform: translateX(-100%); }
.lr-rows { display: grid; gap: 2px; margin-top: 6px; }
.lr-row { width: 100%; padding: 7px 10px; border-radius: 12px; text-align: left; transition: background 0.25s; }
.lr-row:hover { background: rgba(240, 235, 225, 0.05); }
.lr-row.is-ai.is-active { background: rgba(242, 176, 79, 0.14); }
.lr-row.is-life.is-active { background: rgba(169, 205, 255, 0.12); }
.lr-name { display: grid; min-width: 0; }
.lr-label { font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.lr-note { overflow: hidden; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
.lr-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background-color: rgba(240, 235, 225, 0.05);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 6 - 1px), rgba(240, 235, 225, 0.13) calc(100% / 6 - 1px), rgba(240, 235, 225, 0.13) calc(100% / 6));
}
.lr-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.is-ai .lr-fill { background: linear-gradient(90deg, rgba(242, 176, 79, 0.35), var(--gold)); }
.is-life .lr-fill { background: linear-gradient(90deg, rgba(169, 205, 255, 0.3), var(--ice)); }
.lr-range { position: absolute; top: 0; bottom: 0; }
.is-ai .lr-range { background: repeating-linear-gradient(135deg, rgba(242, 176, 79, 0.9) 0 4px, rgba(242, 176, 79, 0.4) 4px 8px); }
.is-life .lr-range { background: repeating-linear-gradient(135deg, rgba(169, 205, 255, 0.9) 0 4px, rgba(169, 205, 255, 0.4) 4px 8px); }
.lr-mark { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.lr-val { font-family: var(--font-mono); font-size: 12.5px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lr-row.is-active .lr-val { color: var(--ink); }
.lr-readout { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10, 10, 14, 0.35); }
.lr-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.viz .lr-head-name { font-size: 17px; font-weight: 500; color: var(--ink); }
.lr-head-val { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.05; color: var(--gold-hi); }
.ar-body .viz .lr-eq { margin-top: 10px; font-size: 15px; line-height: 1.5; }
.ar-body .viz .lr-eq li + li { margin-top: 4px; }

/* 2 · what gets counted */
.bd-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 28px; }
.bd-readout { margin-top: 22px; }
.bd-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.viz .bd-big { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 400; line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.bd-unit { font-size: 14px; color: var(--ink-3); }
.bd-bar { display: flex; height: 26px; margin-top: 14px; overflow: hidden; border-radius: 8px; background: rgba(240, 235, 225, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.bd-seg { height: 100%; transition: width 0.6s var(--ease-out); }
.bd-seg.is-chip { background: var(--gold); }
.bd-seg.is-host { background: var(--ember); }
.bd-seg.is-idle { background: var(--ice); }
.bd-seg.is-over { background: rgba(240, 235, 225, 0.6); }
.reduce-motion .bd-seg { transition: none; }
.ar-body .viz .bd-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin-top: 14px; }
.ar-body .viz .bd-part { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.45; color: var(--ink); transition: color 0.25s; }
.ar-body .viz .bd-part::before { top: 0.32em; left: 0; width: 11px; height: 11px; border-radius: 3px; transition: background 0.25s, box-shadow 0.25s; }
.ar-body .viz .bd-part.is-host::before { background: var(--ember); }
.ar-body .viz .bd-part.is-idle::before { background: var(--ice); }
.ar-body .viz .bd-part.is-over::before { background: rgba(240, 235, 225, 0.6); }
.ar-body .viz .bd-part.is-off { color: var(--ink-3); }
.ar-body .viz .bd-part.is-off::before { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(240, 235, 225, 0.3); }
.bd-part-val { font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; color: var(--ink-2); }
.bd-text { font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.bd-water { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.bd-out { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.bd-out-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ar-body .viz .bd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ar-body .viz .bd-tags li { margin: 0; padding: 3px 11px; border: 1px dashed rgba(240, 235, 225, 0.3); border-radius: 999px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.ar-body .viz .bd-tags li::before { display: none; }

/* 3 · you and everyone else */
.sc-modes { max-width: 380px; }
.sc-controls { display: grid; gap: 18px; margin-top: 20px; }
.sc-controls [hidden] { display: none; }
.sc-chatgpt[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); }
.sc-result { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10, 10, 14, 0.35); }
.viz .sc-big { display: block; font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 2.8rem); font-weight: 400; line-height: 1.05; color: var(--gold-hi); }
.sc-sub { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.ar-body .viz .sc-eq { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.ar-body .viz .sc-eq li + li { margin-top: 4px; }

/* 4 · more efficient, but more */
.rb-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.rb-wrap { margin-top: 18px; }
.rb-chart { display: block; width: 100%; height: auto; overflow: visible; }
.rb-grid { stroke: rgba(240, 235, 225, 0.1); stroke-width: 1; }
.rb-grid.is-base { stroke: rgba(240, 235, 225, 0.38); stroke-dasharray: 4 4; }
.rb-vline { stroke: rgba(240, 235, 225, 0.05); }
.rb-axis { font-family: var(--font-mono); font-size: 11.5px; fill: var(--ink-3); }
.rb-series { opacity: 0; transition: opacity 0.4s; }
.rb-series.is-shown { opacity: 1; }
.rb-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1.2s var(--ease-out); }
.rb-series.is-shown .rb-line { stroke-dashoffset: 0; }
.rb-dot { stroke: var(--bg); stroke-width: 2; }
.rb-end { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.rb-series.is-energy .rb-line { stroke: var(--ice); }
.rb-series.is-energy .rb-dot,
.rb-series.is-energy .rb-end { fill: var(--ice); }
.rb-series.is-tokens .rb-line { stroke: var(--gold); }
.rb-series.is-tokens .rb-dot,
.rb-series.is-tokens .rb-end { fill: var(--gold-hi); }
.rb-series.is-power .rb-line { stroke: var(--ember); }
.rb-series.is-power .rb-dot,
.rb-series.is-power .rb-end { fill: var(--ember); }
.reduce-motion .rb-line,
.reduce-motion .rb-series { transition: none; }
.rb-chart.is-narrow .rb-axis { font-size: 10.5px; }
.rb-chart.is-narrow .rb-end { font-size: 12.5px; }
.rb-text { min-height: 3.1em; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.ar-body .viz .rb-legend { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ar-body .viz .rb-legend li + li { margin-top: 4px; }
.ar-body .viz .rb-legend li.is-energy::before { background: var(--ice); }
.ar-body .viz .rb-legend li.is-power::before { background: var(--ember); }

/* 5 · the world's data centres */
.wd-part + .wd-part { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.wd-head { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ar-body .viz .wd-head strong { margin-right: 4px; font-size: 17px; }
.wd-wrap { margin-top: 14px; }
.wd-chart { display: block; width: 100%; height: auto; overflow: visible; }
.wd-grid { stroke: rgba(240, 235, 225, 0.1); }
.wd-axis { font-family: var(--font-mono); font-size: 11.5px; fill: var(--ink-3); }
.wd-ref { stroke: var(--ice); stroke-opacity: 0.45; stroke-dasharray: 3 5; }
.wd-ref-label { font-size: 12px; fill: var(--ice); fill-opacity: 0.85; }
.wd-line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wd-line.is-future { stroke-dasharray: 7 7; }
.wd-span { stroke: rgba(242, 176, 79, 0.3); stroke-width: 6; stroke-linecap: round; }
.wd-dot { fill: var(--gold); stroke: var(--bg); stroke-width: 2; }
.wd-dot.is-case { fill: var(--gold-hi); }
.wd-case { font-size: 12.5px; fill: var(--ink-3); transition: fill 0.25s; }
.wd-case-val { font-family: var(--font-mono); }
.wd-case.is-active { fill: var(--gold-hi); }
.wd-chart.is-narrow .wd-axis { font-size: 10.5px; }
.wd-chart.is-narrow .wd-ref-label { font-size: 11px; }
.wd-chart.is-narrow .wd-case { font-size: 11.5px; }
.wd-ring { fill: none; stroke: var(--ink); stroke-width: 2; transition: transform 0.45s var(--ease-out); }
.reduce-motion .wd-ring { transition: none; }
.wd-controls { display: grid; gap: 8px; margin-top: 14px; }
.wd-controls [hidden] { display: none; }
.wd-readout { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.viz .wd-big { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 400; line-height: 1.05; color: var(--gold-hi); }
.ar-body .viz .wd-shares { display: grid; gap: 8px; margin-top: 14px; }
.ar-body .viz .wd-share { display: grid; grid-template-columns: minmax(7em, 10em) minmax(0, 1fr) 7.5em; align-items: center; gap: 4px 14px; margin: 0; padding: 0; }
.ar-body .viz .wd-share::before { display: none; }
.wd-share-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.wd-share-when { font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.wd-share-track { position: relative; height: 12px; overflow: hidden; border-radius: 6px; background: rgba(240, 235, 225, 0.06); }
.wd-share-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--ember)); }
.wd-share-val { font-family: var(--font-mono); font-size: 12.5px; text-align: right; color: var(--ink-2); }
.wd-note { font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* 6 · same question, different power */
.gr-rows { display: grid; gap: 2px; margin-top: 18px; }
.gr-row { display: grid; grid-template-columns: minmax(8em, 11em) minmax(0, 1fr) 7.2em; align-items: center; gap: 4px 14px; width: 100%; padding: 7px 10px; border-radius: 12px; text-align: left; transition: background 0.25s; }
.gr-row:hover { background: rgba(240, 235, 225, 0.05); }
.gr-row.is-active { background: rgba(242, 176, 79, 0.13); }
.gr-name { display: grid; min-width: 0; }
.gr-label { font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.gr-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.gr-track { position: relative; height: 12px; overflow: hidden; border-radius: 6px; background: rgba(240, 235, 225, 0.06); }
.gr-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 122, 53, 0.5), var(--ember)); }
.gr-row.is-base .gr-fill { background: var(--ice); }
.gr-val { font-family: var(--font-mono); font-size: 12.5px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.gr-row.is-active .gr-val { color: var(--ink); }
.gr-readout { min-height: 3.1em; font-size: 15.5px; line-height: 1.55; color: var(--ink); }

/* paragraph spacing in these figures (see ".ar-body .viz p" above) */
.viz p.bd-text { margin-top: 16px; }
.viz p.bd-water { margin-top: 6px; }
.viz p.sc-anchor { margin-top: 10px; }
.viz p.sc-sub { margin-top: 6px; }
.viz p.rb-text { margin-top: 16px; }
.viz p.wd-readout { margin-top: 14px; }
.viz p.wd-note { margin-top: 12px; }
.viz p.gr-readout { margin-top: 16px; }

/* ==========================================================================
   Vad är en AI-agent? (assets/js/agent.js)
   ========================================================================== */

/* an on/off button with a tick box */
.viz-btn.ag-toggle { gap: 10px; justify-content: flex-start; text-align: left; }
.viz-btn.ag-toggle[aria-pressed="true"] { border-color: rgba(242, 176, 79, 0.55); color: var(--ink); }
.ag-check { position: relative; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 5px; transition: background 0.2s, border-color 0.2s; }
.ag-toggle[aria-pressed="true"] .ag-check { border-color: var(--gold); background: var(--gold); }
.ag-toggle[aria-pressed="true"] .ag-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 10px;
  border: solid #0b0b0d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 1 · the loop */
.lp-top { display: grid; gap: 16px; }
.lp-task,
.tf-request { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; color: var(--ink); }
.lp-who { flex: none; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.lp-body { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 18px 28px; margin-top: 24px; }
.lp-diagram { display: block; width: 100%; max-width: 330px; height: auto; margin: 0 auto; transition: opacity 0.3s; }
@media (min-width: 761px) { .lp-diagram-wrap { position: sticky; top: calc(var(--nav-h) + 24px); } }
.lp-diagram.is-off { opacity: 0.3; }
.lp-edge { fill: none; stroke: var(--line-2); stroke-width: 1.6; transition: stroke 0.3s; }
.lp-edge.is-on { stroke: var(--gold); stroke-width: 2.4; }
.lp-arrowhead { fill: var(--ink-3); }
.lp-node circle { fill: rgba(10, 10, 14, 0.7); stroke: var(--line-2); stroke-width: 1.4; transition: fill 0.3s, stroke 0.3s; }
.lp-node.is-on circle { fill: rgba(242, 176, 79, 0.2); stroke: var(--gold); }
.lp-node-name { font-family: var(--font-display); font-size: 20px; fill: var(--ink); }
.lp-node.is-on .lp-node-name { fill: var(--gold-hi); }
.lp-node-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--ink-3); }
.lp-centre { font-family: var(--font-display); font-size: 23px; fill: var(--ink); }
.lp-centre-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--ink-3); }
.ar-body .lp-log { display: grid; gap: 8px; padding: 0; list-style: none; }
.lp-line {
  display: grid;
  grid-template-columns: 6.6em minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(240, 235, 225, 0.03);
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.6;
  transition: opacity 0.3s, background 0.3s;
}
.lp-line.is-latest { background: rgba(240, 235, 225, 0.075); opacity: 1; }
.lp-line.is-latest:not(.lp-ask) { animation: lp-in 0.45s var(--ease-out); }
@keyframes lp-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
.lp-kind { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.lp-tool .lp-kind,
.lp-ask .lp-kind { color: var(--gold); }
.lp-answer .lp-kind { color: var(--ice); }
.lp-text { color: var(--ink-2); }
code.lp-text { font-family: var(--font-mono); font-size: 13px; line-height: 1.55; color: var(--gold-hi); overflow-wrap: anywhere; }
.lp-result code.lp-text { color: var(--ink-2); }
.lp-ask .lp-text,
.lp-answer .lp-text { color: var(--ink); }
.lp-ask { border: 1px solid rgba(242, 176, 79, 0.4); }
.lp-reply { grid-column: 2; margin-top: 8px; }
.lp-note { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.lp-options { margin-top: 14px; }

/* 3 · small errors add up */
.cm-top { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 18px 32px; }
.cm-big { display: grid; gap: 2px; }
.cm-big-num { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.cm-big-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.cm-sliders { display: grid; gap: 18px; }
.cm-chart { margin-top: 22px; }
.cm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cm-grid line { stroke: var(--line); stroke-width: 1; }
.cm-grid-half line { stroke: var(--line-2); stroke-dasharray: 4 4; }
.cm-grid text,
.cm-tick { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); }
.cm-curve { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; transition: opacity 0.3s; }
.cm-curve-raw { stroke: var(--gold); }
.cm-curve-fixed { stroke: var(--ice); opacity: 0; }
.cm-svg.is-checking .cm-curve-raw { opacity: 0.35; }
.cm-svg.is-checking .cm-curve-fixed { opacity: 1; }
.cm-dot { fill: var(--gold-hi); stroke: #0b0b0d; stroke-width: 2; }
.cm-svg.is-checking .cm-dot { fill: var(--ice); }
.cm-guide { stroke: rgba(242, 176, 79, 0.45); stroke-width: 1; stroke-dasharray: 3 3; }
.cm-half line { stroke: var(--ink-2); stroke-width: 1.5; }
.cm-half text { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-2); paint-order: stroke; stroke: #0d0d10; stroke-width: 4px; stroke-linejoin: round; }
.cm-svg.is-narrow .cm-grid text,
.cm-svg.is-narrow .cm-tick,
.cm-svg.is-narrow .cm-half text { font-size: 10.5px; }
.viz p.cm-xlabel { margin-top: 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-align: right; text-transform: uppercase; color: var(--ink-3); }
.cm-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cm-readout { min-height: 4.6em; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.cm-bottom .ag-toggle { max-width: 21em; }

/* 4 · the lethal trifecta */
.tf-scene { display: grid; gap: 14px; }
.tf-mail { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(240, 235, 225, 0.04); font-size: 15px; line-height: 1.5; }
.tf-mail-head { display: flex; gap: 10px; color: var(--ink-2); }
.tf-mail-label { flex: none; width: 4em; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); line-height: 2; }
.viz p.tf-mail-body { margin-top: 8px; color: var(--ink); }
.viz p.tf-mail-hidden { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; border: 1px dashed rgba(255, 122, 53, 0.55); border-radius: 10px; color: #ffb38a; font-size: 14px; }
.tf-hidden-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); }
.tf-body { display: grid; grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 18px 28px; margin-top: 22px; }
.tf-venn { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.tf-circle { fill: rgba(240, 235, 225, 0.03); stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 5 5; transition: fill 0.35s, stroke 0.35s; }
.tf-circle.is-on { fill: rgba(242, 176, 79, 0.13); stroke: rgba(242, 176, 79, 0.75); stroke-dasharray: none; }
.tf-venn.is-danger .tf-circle.is-on { fill: rgba(255, 122, 53, 0.16); stroke: var(--ember); }
.tf-circle-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-2); }
.tf-core { font-family: var(--font-display); font-size: 21px; fill: #ffd3bd; }
.tf-buttons { display: grid; gap: 8px; }
.viz-btn.tf-btn { min-height: 54px; padding: 8px 16px; border-radius: 16px; }
.tf-leg { display: grid; gap: 1px; }
.tf-leg-name { font-weight: 500; }
.tf-leg-what { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.tf-result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.tf-status { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.2; color: var(--ice); }
.tf-status.is-danger { color: #ffb38a; }
.viz p.tf-outcome { min-height: 3.1em; margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }


/* 2 · how long a task (METR) */
.hz-top { display: grid; gap: 4px; margin-bottom: 14px; }
.hz-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hz-ref line { stroke: var(--line); stroke-width: 1; }
.hz-ref text { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; fill: var(--ink-3); }
.hz-year-line { stroke: rgba(240, 235, 225, 0.05); stroke-width: 1; }
.hz-year { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); }
.hz-trend { fill: none; stroke: rgba(242, 176, 79, 0.75); stroke-width: 2; }
.hz-trend-ext { stroke-dasharray: 6 6; stroke: rgba(242, 176, 79, 0.55); }
.hz-ext-dot { fill: none; stroke: var(--gold-hi); stroke-width: 2; }
.hz-point { cursor: pointer; outline: none; }
.hz-point circle { fill: var(--ink-2); stroke: #0b0b0d; stroke-width: 1.5; transition: fill 0.2s, r 0.2s; }
.hz-point:hover circle,
.hz-point:focus-visible circle { fill: var(--ink); stroke: var(--gold); stroke-width: 2; }
.hz-point.is-picked circle { fill: var(--gold-hi); stroke: var(--gold); stroke-width: 2; }
.hz-label { font-family: var(--font-mono); font-size: 12px; fill: var(--gold-hi); paint-order: stroke; stroke: #0b0b0d; stroke-width: 4px; stroke-linejoin: round; }
.hz-point.is-unsure circle { fill: #0b0b0d; stroke: var(--ink-2); stroke-dasharray: 2.5 2; }
.hz-point.is-unsure.is-picked circle { stroke: var(--gold-hi); }
.hz-p80 { fill: none; stroke: var(--ice); stroke-width: 1.4; opacity: 0.75; }
.hz-ci { stroke: rgba(255, 216, 148, 0.55); stroke-width: 6; stroke-linecap: round; }
.viz p.hz-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.hz-key { display: inline-flex; align-items: center; gap: 8px; }
.hz-key::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.hz-key-50::before { background: var(--gold-hi); }
.hz-key-80::before { width: 8px; height: 8px; border: 1.4px solid var(--ice); }
.hz-key-ci::before { width: 6px; height: 14px; border-radius: 3px; background: rgba(255, 216, 148, 0.55); }
.hz-svg.is-narrow .hz-ref text,
.hz-svg.is-narrow .hz-year { font-size: 10px; }
.hz-svg.is-narrow .hz-label { font-size: 11px; }
.hz-bottom { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: start; gap: 16px 28px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.hz-readout { min-height: 3.1em; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.viz p.hz-extra { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* 5 · who decides */
.au-pick { display: inline-flex; align-items: baseline; gap: 8px; }
.au-pick-n { font-family: var(--font-mono); font-size: 11.5px; opacity: 0.7; }
.au-meter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.au-meter-bar { position: relative; height: 10px; overflow: hidden; border-radius: 10px; background: linear-gradient(90deg, rgba(169, 205, 255, 0.55), rgba(169, 205, 255, 0.15)); }
.au-meter-fill { position: absolute; inset: 0 0 0 auto; width: calc(10% + var(--level, 0.5) * 80%); border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--ember)); transition: width 0.5s var(--ease-out); }
.au-panel { display: grid; gap: 10px; margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(240, 235, 225, 0.035); }
.au-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.3vw, 1.75rem); line-height: 1.2; color: var(--ink); }
.au-title-n { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.au-text,
.au-example,
.au-systems { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.au-example { color: var(--ink-2); }
.au-systems { font-size: 14px; color: var(--ink-3); }
.au-who { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 2.2; color: var(--ink-3); }
.viz p.au-text,
.viz p.au-example,
.viz p.au-systems { margin: 0; }

/* ==========================================================================
   Vad är AI? (assets/js/ai.js)
   ========================================================================== */

/* 1 · is it AI? */
.qz-card,
.qz-done { display: grid; gap: 16px; }
.qz-card[hidden],
.qz-done[hidden],
.qz-reveal[hidden] { display: none; }
.qz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.qz-count { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ar-body .qz-progress { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.ar-body .qz-progress li { width: 22px; height: 6px; padding: 0; border-radius: 3px; background: rgba(240, 235, 225, 0.12); }
.ar-body .qz-progress li::before { content: none; }
.ar-body .qz-progress li + li { margin-top: 0; }
.ar-body .qz-progress li.is-now { background: var(--ink-2); }
.ar-body .qz-progress li.is-right { background: var(--ice); }
.ar-body .qz-progress li.is-wrong { background: var(--ember); }
.qz-thing { min-height: 2.5em; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; color: var(--ink); }
.qz-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.viz-btn.qz-pick { min-height: 52px; font-size: 16px; }
.viz-btn.qz-pick.is-chosen { border-color: var(--gold); color: var(--gold-hi); }
.viz-btn.qz-pick.is-chosen:disabled { opacity: 1; }
.qz-reveal { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.qz-verdict { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.2; }
.qz-verdict.is-right { color: var(--ice); }
.qz-verdict.is-wrong { color: #ffb38a; }
.qz-verdict.is-depends { color: var(--gold-hi); }
.qz-tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.qz-why,
.qz-sum { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.qz-score { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--gold-hi); }

/* 2 · rules or examples */
.ml-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr); align-items: start; gap: 18px 26px; margin-top: 18px; }
.ml-svg { display: block; width: 100%; height: auto; }
.ml-svg.is-learning { cursor: crosshair; }
.ml-cell { fill: rgba(169, 205, 255, 0.07); }
.ml-cell.is-spam { fill: rgba(255, 122, 53, 0.14); }
.ml-border { stroke: var(--gold-hi); stroke-width: 2; stroke-dasharray: 6 4; }
.ml-tick { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); }
.ml-axis { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-3); }
.ml-mail circle { fill: var(--ice); stroke: #0b0b0d; stroke-width: 1.2; }
.ml-mail.is-spam circle { fill: var(--ember); }
.ml-mail.is-test circle { fill: #0b0b0d; stroke: var(--ice); stroke-width: 2; }
.ml-mail.is-test.is-spam circle { stroke: var(--ember); }
.ml-mail.is-mine circle { stroke: var(--ink); stroke-width: 2; }
.ml-x { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.ml-side { display: grid; gap: 18px; }
.ml-rule,
.ml-learn { display: grid; gap: 10px; }
.ml-rule[hidden],
.ml-learn[hidden] { display: none; }
.ml-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.viz .ml-scores p { display: grid; gap: 4px; }
.ml-num { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.ml-num-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.viz p.ml-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.ml-key::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; background: var(--ice); vertical-align: -1px; }
.ml-key.is-spam::before { background: var(--ember); }
.ml-key.is-test::before { box-sizing: border-box; border: 2px solid var(--ink-2); background: transparent; }
.ml-key.is-wrong::before { content: "\00d7"; width: auto; height: auto; background: none; color: var(--ink); font-size: 14px; line-height: 1; }
.viz p.ml-readout { min-height: 3.1em; margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }

/* 3 · the family of AI */
.fm-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 18px 26px; }
.fm-svg { display: block; width: 100%; height: auto; }
.fm-ring { cursor: pointer; }
.fm-ring circle { fill: rgba(240, 235, 225, 0.035); stroke: var(--line-2); stroke-width: 1.4; transition: fill 0.3s, stroke 0.3s; }
.fm-ring:hover circle { stroke: rgba(240, 235, 225, 0.5); }
.fm-ring.is-outer circle { fill: rgba(242, 176, 79, 0.06); }
.fm-ring.is-picked circle { fill: rgba(242, 176, 79, 0.2); stroke: var(--gold); }
.fm-ring text { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-2); pointer-events: none; }
.fm-ring.is-picked text { fill: var(--gold-hi); }
.fm-svg.is-narrow .fm-ring text { font-size: 10.5px; }
.fm-panel { display: grid; gap: 10px; }
.fm-title { margin-top: 6px; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; color: var(--ink); }
.fm-def { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.fm-ex { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.fm-who { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 2.1; color: var(--ink-3); }
.fm-when { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* 4 · Sweden and AI */
.sw-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 20px; }
.sw-years { display: grid; gap: 4px; }
.viz p.sw-head { margin-top: 18px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.sw-row.is-avg .sw-name { color: var(--ink); }
.sw-row.is-avg .sw-fill { background: linear-gradient(90deg, rgba(240, 235, 225, 0.45), var(--ink)); }
.sw-rows { display: grid; gap: 8px; margin-top: 14px; }
.sw-row { display: grid; grid-template-columns: minmax(7em, 11em) minmax(0, 1fr) 4.4em; align-items: center; gap: 12px; }
.sw-name { font-size: 14.5px; color: var(--ink-2); }
.sw-row.is-home .sw-name { font-weight: 500; color: var(--gold-hi); }
.sw-track { position: relative; height: 12px; overflow: hidden; border-radius: 6px; background: rgba(240, 235, 225, 0.06); }
.sw-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, rgba(169, 205, 255, 0.5), var(--ice)); }
.sw-row.is-home .sw-fill { background: linear-gradient(90deg, var(--gold), var(--ember)); }
.sw-prev { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(5, 5, 7, 0.6); }
.sw-val { font-family: var(--font-mono); font-size: 12.5px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.viz p.sw-note { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }

/* 3 · three ways to learn */
.wy-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr); align-items: start; gap: 18px 26px; margin-top: 18px; }
.wy-svg { display: block; width: 100%; height: auto; }
.wy-svg.is-clickable { cursor: crosshair; }
.wy-cell { fill: rgba(169, 205, 255, 0.07); }
.wy-cell.is-cat { fill: rgba(242, 176, 79, 0.13); }
.wy-tick { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); }
.wy-axis { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-3); }
.wy-link { stroke: rgba(240, 235, 225, 0.6); stroke-width: 1.2; stroke-dasharray: 3 3; }
.wy-dot { stroke: #0b0b0d; stroke-width: 1.2; transition: fill 0.45s; }
.wy-dot.is-cat { fill: var(--gold); }
.wy-dot.is-rabbit { fill: var(--ice); }
.wy-dot.is-plain { fill: var(--ink-3); }
.wy-dot.is-g0 { fill: #ff7a35; }
.wy-dot.is-g1 { fill: #c7a6ff; }
.wy-dot.is-g2 { fill: #7fd6b0; }
.wy-dot.is-g3 { fill: var(--ink); }
.wy-centre circle { fill: rgba(5, 5, 7, 0.55); stroke-width: 2.4; }
.wy-centre path { fill: none; stroke-width: 2; stroke-linecap: round; }
.wy-centre.is-g0 circle, .wy-centre.is-g0 path { stroke: #ff7a35; }
.wy-centre.is-g1 circle, .wy-centre.is-g1 path { stroke: #c7a6ff; }
.wy-centre.is-g2 circle, .wy-centre.is-g2 path { stroke: #7fd6b0; }
.wy-centre.is-g3 circle, .wy-centre.is-g3 path { stroke: var(--ink); }
.wy-probe circle { stroke: #fff; stroke-width: 2.4; }
.wy-probe.is-cat circle { fill: var(--gold); }
.wy-probe.is-rabbit circle { fill: var(--ice); }
.wy-probe text { font-family: var(--font-mono); font-size: 12px; fill: var(--ink); paint-order: stroke; stroke: #0b0b0d; stroke-width: 4px; stroke-linejoin: round; }
.wy-square { fill: rgba(240, 235, 225, 0.04); stroke: var(--line); }
.wy-square.is-wall { fill: rgba(240, 235, 225, 0.17); stroke: none; }
.wy-square.is-stairs { fill: rgba(255, 122, 53, 0.14); stroke: rgba(255, 122, 53, 0.55); }
.wy-square.is-goal { fill: rgba(242, 176, 79, 0.18); stroke: var(--gold); }
.wy-worth { fill: var(--gold); pointer-events: none; }
.wy-arrow { fill: var(--gold-hi); opacity: 0.8; }
.wy-step { fill: none; stroke: var(--ember); stroke-width: 2; stroke-linecap: round; }
.wy-score { font-family: var(--font-mono); font-size: 11px; fill: var(--gold-hi); }
.wy-score.is-minus { fill: #ffb38a; }
.wy-bolt { fill: var(--gold-hi); }
.wy-trail { fill: none; stroke: rgba(255, 216, 148, 0.5); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.wy-bot circle { fill: var(--ink); stroke: #0b0b0d; stroke-width: 2; }
.wy-bot circle.wy-bot-eye { fill: #0b0b0d; stroke: none; }
.wy-side { display: grid; gap: 12px; }
.wy-name { font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.15; color: var(--ink); }
.wy-what { font-size: 15px; line-height: 1.6; color: var(--ink); }
.wy-controls { display: grid; gap: 8px; }
.viz p.wy-hint { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.wy-left { display: grid; gap: 12px; }
.viz p.wy-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.wy-key::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; vertical-align: -1px; background: var(--ink-3); }
.wy-key.is-cat::before { background: var(--gold); }
.wy-key.is-rabbit::before { background: var(--ice); }
.wy-key.is-new::before { box-sizing: border-box; border: 2px solid #fff; background: transparent; }
.wy-key.is-centre::before { box-sizing: border-box; border: 2px solid #ff7a35; background: transparent; }
.wy-key.is-goal::before { border-radius: 3px; background: rgba(242, 176, 79, 0.55); box-shadow: inset 0 0 0 1px var(--gold); }
.wy-key.is-stairs::before { border-radius: 3px; background: rgba(255, 122, 53, 0.35); box-shadow: inset 0 0 0 1px var(--ember); }
.wy-key.is-wall::before { border-radius: 3px; background: rgba(240, 235, 225, 0.3); }
.wy-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.wy-stats[hidden] { display: none; }
.viz .wy-stats p { display: grid; gap: 4px; }
.wy-spark { grid-column: 1 / -1; }
.wy-spark-svg { display: block; width: 100%; height: 64px; }
.wy-bar.is-goal { fill: var(--gold); }
.wy-bar.is-stairs { fill: var(--ember); }
.wy-bar.is-battery { fill: rgba(240, 235, 225, 0.22); }
.wy-best { stroke: var(--ice); stroke-width: 1; stroke-dasharray: 3 3; }
.wy-ex { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.viz p.wy-readout { min-height: 3.1em; margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }

/* 4 · from a line to a network */
.nn-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.nn-body { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: 18px 24px; margin-top: 20px; }
.nn-plot { display: block; width: 100%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; }
.nn-graph { display: block; width: 100%; aspect-ratio: 1; }
.nn-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 24px; margin-top: 18px; }
.ml-scores.nn-scores { padding-top: 0; border-top: 0; }
.viz p.nn-readout { min-height: 3.1em; margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }

/* 6 · the computing power behind AI */
.cp-chips { margin-top: 2px; }
.cp-chart { margin-top: 16px; }
.cp-svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.cp-era { fill: rgba(240, 235, 225, 0.02); }
.cp-era.is-deep { fill: rgba(242, 176, 79, 0.06); }
.cp-era-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; fill: var(--ink-3); }
.cp-era-label.is-deep { fill: var(--gold); }
.cp-grid { stroke: var(--line); stroke-width: 1; }
.cp-tick { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); }
.cp-exp { font-size: 8px; }
.cp-dot { opacity: 0.8; }
.cp-dot.is-k0 { fill: var(--gold); }
.cp-dot.is-k1 { fill: var(--ice); }
.cp-dot.is-k2 { fill: var(--ember); }
.cp-dot.is-k3 { fill: var(--ink-3); }
.cp-dot.is-mark { opacity: 1; stroke: #fff; stroke-width: 1.3; }
.cp-label { font-family: var(--font-mono); font-size: 11px; fill: var(--ink); paint-order: stroke; stroke: #0b0b0d; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.cp-label.is-pick { fill: var(--gold-hi); }
.cp-ring { fill: none; stroke: var(--gold-hi); stroke-width: 2; pointer-events: none; }
.viz p.cp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.cp-key::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; vertical-align: -1px; }
.cp-key.is-k0::before { background: var(--gold); }
.cp-key.is-k1::before { background: var(--ice); }
.cp-key.is-k2::before { background: var(--ember); }
.cp-key.is-k3::before { background: var(--ink-3); }
.cp-info { display: grid; gap: 6px; margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(240, 235, 225, 0.03); }
.cp-name { font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.15; color: var(--ink); }
.cp-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cp-big { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.1; color: var(--gold-hi); }
.cp-big sup { font-size: 0.55em; vertical-align: 0.75em; line-height: 0; }
.cp-unit { margin-left: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cp-human { font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.cp-compare { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* phones */
@media (max-width: 760px) {
  .ml-body,
  .fm-body { grid-template-columns: minmax(0, 1fr); }
  .fm-ex { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sw-top { grid-template-columns: minmax(0, 1fr); }
  .wy-body,
  .nn-top,
  .nn-body,
  .nn-bottom { grid-template-columns: minmax(0, 1fr); }
  .wy-left,
  .wy-side { display: contents; }
  .wy-body { gap: 12px; }
  .wy-chart { order: 1; }
  .viz p.wy-legend { order: 2; }
  .wy-name { order: 3; margin-top: 6px; }
  .wy-what { order: 4; }
  .wy-controls { order: 5; }
  .wy-stats { order: 6; }
  .wy-ex { order: 7; }
  .nn-graph { aspect-ratio: 1.25; }
  .sw-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "bar bar"; gap: 6px 10px; }
  .sw-name { grid-area: name; }
  .sw-track { grid-area: bar; }
  .sw-val { grid-area: val; }
  .lp-body,
  .cm-top,
  .cm-bottom,
  .tf-body { grid-template-columns: minmax(0, 1fr); }
  .lp-diagram { max-width: 270px; }
  .lp-line { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lp-reply { grid-column: 1; }
  .tf-venn { max-width: 260px; }
  .hz-bottom { grid-template-columns: minmax(0, 1fr); }
  .au-text,
  .au-example,
  .au-systems { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .viz { margin-inline: calc(var(--gutter) * -0.5); }
  .viz-controls,
  .tr-grid { grid-template-columns: minmax(0, 1fr); }
  .nx-row { grid-template-columns: minmax(4.5em, 7.5em) minmax(0, 1fr) 3.2em; gap: 10px; padding-inline: 6px; }
  .em-plane { aspect-ratio: 4 / 3.3; }
  .em-word { font-size: 12px; gap: 5px; }
  .em-dot { width: 8px; height: 8px; }
  .at-word { padding: 7px 9px; font-size: 15.5px; }
  .st-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-stage { min-height: 0; }
  .st-stage:not(:last-child)::after { display: none; }
  .ak-bubble { padding: 10px 15px; font-size: 16px; }
  .th-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-panel { grid-template-columns: minmax(0, 1fr); }
  .th-verdicts { grid-template-columns: minmax(0, 1fr); }
  .wr-controls { grid-template-columns: minmax(0, 1fr); }
  .wr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wr-corner { display: none; }
  .wr-rowhead { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; padding: 12px 4px 0; }
  .wr-prob { font-size: 15px; }
  .wr-c0, .wr-c1 { min-height: calc(4.2rem + var(--p0) * 3.5rem); }
  .wr-c2, .wr-c3 { min-height: calc(4.2rem + var(--p1) * 3.5rem); }
  .wr-cell { padding: 10px 11px; }
  .ci-layout { grid-template-columns: minmax(0, 1fr); }
  .ci-card { min-height: 0; }
  .bt-grid { grid-template-columns: minmax(0, 1fr); }
  .gh-chart { height: 180px; }
  .go-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .go-lines { height: 18px; }
  .go-lines span { display: none; }
  .sd-paths { grid-template-columns: minmax(0, 1fr); }
  .ar-body .viz .sd-row { grid-template-columns: minmax(5.5em, 7.5em) minmax(0, 1fr) 4em; gap: 10px; padding-inline: 4px; }
  .rh-poem { padding: 16px; }
  .sp-grid { grid-template-columns: minmax(0, 1fr); }
  .ar-body .mx-list { grid-template-columns: minmax(0, 1fr); }
  .mx-v { font-size: 17px; }
  .mx-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .mx-bar-name { grid-column: 1 / -1; }
  .dt-grid { grid-template-columns: minmax(0, 1fr); }
  .ld-grid { grid-template-columns: minmax(0, 1fr); }
  .cd-plot { height: 230px; margin-left: 36px; }
  .cd-point-label { font-size: 10.5px; }
  /* the charts are drawn 600 units wide, so their labels need more units to stay readable on a phone */
  .sp-chart .sp-tick, .sp-chart .sp-flaw-text { font-size: 19px; }
  .dt-chart .dt-bar-v { font-size: 17px; }
  .dt-chart .dt-bar-n { font-size: 17px; }
  .tn-row { grid-template-columns: minmax(5em, 7.5em) minmax(0, 1fr) 3.3em; gap: 10px; padding-inline: 6px; }
  .tn-msg { max-width: 94%; }
  .sg-grid { grid-template-columns: repeat(15, minmax(0, 1fr)); }
  .sg-stats { grid-template-columns: minmax(0, 1fr); }
  .viz .sg-big { font-size: 2rem; }
  .ex-sliders { grid-template-columns: minmax(0, 1fr); }
  .ex-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name score" "bar bar" "nums nums"; }
  .ar-body .se-list { grid-template-columns: minmax(0, 1fr); }
  .kn-label { font-size: 15px; }
  .kn-state { font-size: 11.5px; }
  .lr-axis { grid-template-columns: minmax(0, 1fr); padding-inline: 6px; }
  .lr-axis > span:not(.lr-ticks) { display: none; }
  .lr-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "bar bar"; gap: 6px 10px; padding-inline: 6px; }
  .lr-name { grid-area: name; }
  .lr-track { grid-area: bar; }
  .lr-val { grid-area: val; align-self: start; }
  .bd-top { grid-template-columns: minmax(0, 1fr); }
  .ar-body .viz .bd-parts { grid-template-columns: minmax(0, 1fr); }
  .ar-body .viz .wd-share { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "bar bar"; gap: 6px 10px; }
  .wd-share-name { grid-area: name; }
  .wd-share-track { grid-area: bar; }
  .wd-share-val { grid-area: val; }
  .gr-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "bar bar"; gap: 6px 10px; padding-inline: 6px; }
  .gr-name { grid-area: name; }
  .gr-track { grid-area: bar; }
  .gr-val { grid-area: val; align-self: start; }
}
