/* ==========================================================================
   Polyaxis
   Institutional and restrained. One accent, hairline rules, no ornament.
   ========================================================================== */

:root {
  --ink: #14171c;
  --ink-2: #343b45;
  --ink-3: #5a6473;
  --muted: #78818f;
  --faint: #a4acb8;
  --rule: #e2e6eb;
  --rule-2: #cbd2dc;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #eef1f5;
  --accent: #1c4a73;
  --accent-2: #2b6cb0;
  --accent-soft: #eef4fa;

  /* Answer tones.
   *
   * Two requirements, both measured rather than eyeballed:
   *
   * 1. LUMINANCE SYMMETRY. Mirrored pairs are matched in luminance — the inner two are both
   *    exactly 0.291 — so neither half of the scale looks weaker than the other. An earlier
   *    set had the agree side noticeably paler, which made the scale read as though agreement
   *    were the fainter option.
   *
   * 2. CONTRAST. Every bar clears 3:1 against white, so each is distinguishable from the
   *    background and from its neighbours. The label text was moved from --muted (3.94) to
   *    --ink (17.9) and enlarged, since those labels carry the meaning.
   *
   * The two families are also separable without colour vision: warm red-brown leans one way,
   * cool green the other, bars grow taller toward each pole, and every control carries its own
   * text label. */
  --against-3: #7a3320;
  --against-2: #a2553a;
  --against-1: #c4845f;
  --for-1: #6f9d80;
  --for-2: #43805a;
  --for-3: #2a6440;
  --false: #8f2f26;
  --true: #1f6b45;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 72px;

  --radius: 5px;
  --radius-lg: 8px;
  --maxw: 1040px;
  --maxw-narrow: 680px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0 0 var(--s4);
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
h1 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); }
h2 { font-size: 1.14rem; margin-top: var(--s7); letter-spacing: -0.012em; }
h3 { font-size: 0.98rem; }

p { margin: 0 0 var(--s4); max-width: 66ch; }

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.lede { font-size: 1.05rem; color: var(--ink-2); max-width: 54ch; }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 0.88em; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s5); }
.wrap.narrow, .narrow { max-width: var(--maxw-narrow); }

.section { padding: var(--s7) 0; border-top: 1px solid var(--rule); }

/* ---------------------------------------------------------------- header */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 54px;
  flex-wrap: wrap;
}
@media (max-width: 460px) {
  /* The four nav links plus the brand exceed a narrow viewport, and the nav was pushing the
     whole document wider than the screen — a fixed 278px row against a 320px phone. Wrapping
     the header is the fix; letting it overflow produced a horizontal scrollbar on every page. */
  .site-header .wrap { gap: var(--s2); padding-top: 6px; padding-bottom: 6px; }
  .site-nav { flex-wrap: wrap; row-gap: 0; }
  .site-nav a { padding: 4px 7px; font-size: 0.82rem; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 660;
  font-size: 0.97rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 19px; height: 19px; flex: none; }

.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 5px 10px;
  border-radius: var(--radius);
  color: var(--ink-3);
  text-decoration: none;
  font-size: 0.875rem;
}
.site-nav a:hover { background: var(--bg-3); color: var(--ink); }
.site-nav a[aria-current='page'] { color: var(--ink); font-weight: 560; }

/**
 * The footer sits at the bottom of the viewport on short pages rather than floating in the middle
 * of the screen, which is what it did before: with no minimum height on the app container, a page
 * shorter than the window left the footer directly under the content and a band of empty space
 * below it. `margin-top: auto` inside the flex column pushes it down whenever there is room.
 */
body { display: flex; flex-direction: column; min-height: 100vh; }
#app { display: flex; flex-direction: column; flex: 1 0 auto; }
#app > main { flex: 1 0 auto; }

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: var(--s7);
  padding: var(--s4) 0 var(--s5);
  background: var(--bg-2);
  font-size: 0.8rem;
  color: var(--muted);
}
/* One line, links separated from the note and from each other. Kept deliberately quiet: the
   previous version was three sentences about privacy sitting in the middle of the page. */
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s4);
  margin: 0;
  max-width: none;
}
.site-footer a { color: var(--ink-3); }
.site-footer a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: #163c5e; color: #fff; }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn-secondary { background: #fff; border-color: var(--rule-2); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-2); color: var(--ink); border-color: var(--ink-3); }

.btn-quiet {
  padding: 4px 9px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.btn-quiet:hover { border-color: var(--rule-2); color: var(--ink); }
.btn-quiet[aria-pressed='true'] { background: var(--bg-3); color: var(--ink); border-color: var(--rule-2); }

.linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink-3);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
  text-underline-offset: 2px;
}
.linkish:hover { color: var(--ink); }

.btn-row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin-top: var(--s4); }

/* ---------------------------------------------------------------- layout bits */

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.axis-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 7px;
  vertical-align: baseline;
}

.scale-ends {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  font-size: 0.78rem;
  color: var(--muted);
}

.pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 560;
  background: var(--bg-3);
  color: var(--ink-3);
}
.pill-low { background: #fdf3e7; color: #8a5a12; }
.pill-high { background: #eef6f1; color: var(--true); }

/* ---------------------------------------------------------------- hero */

/**
 * Hero.
 *
 * The cube column is the wider of the two, because the cube is the explanation and the text beside
 * it is three lines. The previous weighting gave the text more room than the figure, which left a
 * large empty area to the right of a short paragraph and pushed the cube smaller than it needed to
 * be on a page with space to spare.
 */
.hero { padding: var(--s7) 0 var(--s6); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s6);
  align-items: center;
}
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 42ch; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero { padding: var(--s5) 0 var(--s5); }
}

/* ---------------------------------------------------------------- cube */

.cube-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 430px;
  margin: 0 auto;
  touch-action: none;
  cursor: grab;
}
.cube-figure.dragging { cursor: grabbing; }
.cube-figure canvas { display: block; width: 100%; height: 100%; }

/* Larger variants. The landing page has room to spare and the cube is the whole explanation, and
   the figures page needs the room because forty-two labelled points on a small cube is the
   complaint that prompted this. */
.cube-figure-lg { max-width: 560px; }
.cube-figure-xl { max-width: 620px; }

/* The landing page's control row: two quiet words, no sliders. */
.cube-controls-minimal { gap: var(--s4); color: var(--muted); }
.cube-controls-minimal .linkish { font-size: 0.8rem; }
.cube-controls-minimal .cube-hint { margin: 0; }

.cube-controls {
  display: flex;
  gap: var(--s2);
  justify-content: center;
  align-items: center;
  /* Four controls plus two sliders do not fit a phone, so the row wraps rather than forcing the
     page wider than the viewport. */
  flex-wrap: wrap;
  margin-top: var(--s3);
  font-size: 0.8rem;
  color: var(--ink-3);
}
.cube-controls .roll { display: flex; align-items: center; gap: var(--s2); }
.cube-controls input[type='range'] { width: 76px; accent-color: var(--accent); }
@media (max-width: 460px) {
  .cube-controls { gap: var(--s1) var(--s3); }
  .cube-controls input[type='range'] { width: 58px; }
}

/* Keyboard support existed before this hint did, which made it undiscoverable. */
.cube-hint { text-align: center; margin: var(--s2) 0 0; }

.check { display: flex; align-items: center; gap: var(--s2); cursor: pointer; }
.check input { accent-color: var(--accent); }

/* ---------------------------------------------------------------- test */

.test-shell {
  max-width: 740px;
  margin: 0 auto;
  padding: var(--s5) var(--s5) var(--s8);
}

.progress-track { height: 2px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.25s ease; }

.test-topline {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  padding: var(--s3) 0 var(--s6);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.test-axis { margin-left: auto; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; }

.question-text {
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  font-weight: 560;
  line-height: 1.36;
  letter-spacing: -0.014em;
  margin: 0 0 var(--s2);
  max-width: 34ch;
}
.question-hint { font-size: 0.8rem; color: var(--muted); margin: 0 0 var(--s6); }

/* ---- Likert: a continuum, so it reads left to right ---- */

.answers-scale { margin-top: var(--s2); }
.answers-scale .scale-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s3);
}
/* The arrows make the direction explicit rather than implied by position alone. */
.answers-scale .scale-legend span:first-child::before { content: '← '; color: var(--against-2); }
.answers-scale .scale-legend span:last-child::after { content: ' →'; color: var(--for-2); }

/**
 * A single continuous track behind the six bars.
 *
 * Without it the six bars read as six separate buttons. The track is what makes them read as
 * divisions of one scale, which is the point of the control.
 */
.scale-row {
  position: relative;
  display: flex;
  gap: 5px;
  padding-top: 6px;
}
.scale-row::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--against-3), var(--against-1) 45%, var(--for-1) 55%, var(--for-3));
}

.answer-scale {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 0 var(--s3);
  border: 0;
  border-radius: var(--radius);
  background: none;
  font: inherit;
  cursor: pointer;
  transition: transform 0.08s ease;
}
.answer-scale:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* Bars grow taller toward the poles, so intensity is visible and not only implied by shade. */
.answer-scale .scale-bar {
  width: 100%;
  height: 54px;
  border-radius: 3px;
  border: 1px solid rgba(20, 23, 28, 0.16);
}
.tone-against-3 .scale-bar { height: 62px; background: var(--against-3); }
.tone-against-2 .scale-bar { height: 58px; background: var(--against-2); }
.tone-against-1 .scale-bar { background: var(--against-1); }
.tone-for-1 .scale-bar { background: var(--for-1); }
.tone-for-2 .scale-bar { height: 58px; background: var(--for-2); }
.tone-for-3 .scale-bar { height: 62px; background: var(--for-3); }
.answer-scale:hover .scale-bar { border-color: var(--ink-2); }
.answer-scale:active { transform: translateY(1px); }

.answer-scale .scale-label {
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
  /* Deliberately not bold, and the same weight for every option. Two-word labels wrap to two
     lines and one-word labels do not, which at a heavier weight made the poles look like the
     recommended answers. */
  font-weight: 400;
  text-wrap: balance;
}
.answer-scale .scale-key {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---- Binary: two opposed poles ---- */

.answers-binary { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

.answer-binary {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--s6) var(--s4);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font: inherit;
  color: #fff;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.08s ease;
}
.answer-binary:hover { filter: brightness(1.08); }
.answer-binary:active { transform: translateY(1px); }
.answer-binary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.answer-binary.tone-false { background: var(--false); }
.answer-binary.tone-true { background: var(--true); }

.bin-glyph { font-size: 1.35rem; line-height: 1; opacity: 0.95; }
.bin-label { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; }
.bin-key { position: absolute; top: 8px; right: 10px; font-family: var(--mono); font-size: 0.7rem; opacity: 0.65; }

/* ---- Multiple choice: distinct positions, listed ---- */

.answers-choice { display: flex; flex-direction: column; gap: 7px; }

.answer-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 92px;
  align-items: center;
  gap: var(--s4);
  width: 100%;
  padding: 13px var(--s4);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.answer-option:hover { border-color: var(--accent-2); background: var(--accent-soft); }
.answer-option:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.opt-key { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }
.opt-text { min-width: 0; }

/* A small ruler showing where this option sits on the axis, so relative positions are
   visible rather than only implied by the wording. */
.opt-meter { position: relative; height: 14px; }
.opt-meter-mid {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}
.opt-meter-mid::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--rule-2);
}
.opt-meter-pin {
  position: absolute;
  top: 2px;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.15s ease;
}

.test-footer {
  display: flex;
  gap: var(--s5);
  align-items: center;
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}

/* ---------------------------------------------------------------- test start */

.choice-card {
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.choice-card h3 { margin-bottom: var(--s1); }
.choice-card .btn { margin-top: auto; }
.choice-card p { margin-bottom: var(--s3); }

.resume {
  border-left: 3px solid var(--accent-2);
  background: var(--accent-soft);
  padding: var(--s3) var(--s4);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
  margin-bottom: var(--s5);
}
.note { margin-top: var(--s6); max-width: 60ch; }

/* ---------------------------------------------------------------- result */

.result-head { padding: var(--s7) 0 var(--s6); }
.result-head .lede { max-width: 62ch; }

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: var(--s7);
  align-items: start;
  padding-bottom: var(--s6);
}
@media (max-width: 860px) { .result-grid { grid-template-columns: 1fr; gap: var(--s6); } }

.axis-result { padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.axis-result:first-child { border-top: 0; padding-top: 0; }

.axis-head { display: flex; align-items: baseline; gap: var(--s3); }
.axis-name { font-weight: 580; font-size: 0.95rem; }
.axis-score {
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.axis-verdict { font-size: 0.86rem; color: var(--ink-3); margin: var(--s1) 0 var(--s3); }

.scale { position: relative; height: 26px; }
.scale-track { position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--bg-3); }
.scale-mid { position: absolute; top: 7px; left: 50%; width: 1px; height: 10px; background: var(--rule-2); }
.scale-band { position: absolute; top: 9px; height: 8px; border-radius: 999px; opacity: 0.28; }
.scale-pin { position: absolute; top: 6px; width: 3px; height: 15px; border-radius: 2px; transform: translateX(-50%); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s4);
  margin: var(--s5) 0;
  padding: var(--s4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.facts div { margin: 0; }
.facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 1.02rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.notes { margin: 0 0 var(--s4); padding-left: 18px; font-size: 0.85rem; color: var(--ink-3); }
.notes li { margin-bottom: var(--s1); }

/**
 * The analytical-lens readout. Set apart from the three axes because it is not a position: no
 * scale, no pole labels, just a description of how the respondent reasoned.
 */
.lens-result { margin-top: var(--s2); border-top: 1px solid var(--rule); }
.lens-value {
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- prose */

.prose h1 { margin-bottom: var(--s5); }
.prose p, .prose dd { color: var(--ink-2); }
.prose h2 { padding-top: var(--s2); border-top: 1px solid var(--rule); }

.axis-defs { margin: 0; }
.axis-defs dt { font-weight: 600; margin-top: var(--s5); font-size: 0.95rem; }
.axis-defs dd { margin: var(--s2) 0 0; font-size: 0.92rem; }
.axis-defs .scale-ends { margin-top: 5px; display: block; }

/* ---------------------------------------------------------------- figures */

/**
 * The cube column is given more room than the list. The cube's width is bounded by its grid track,
 * so `max-width` on the figure alone did nothing here — it stayed at the narrow column's width
 * whatever the figure was allowed. That is why the first attempt at a larger cube had no visible
 * effect on this page.
 */
.figures-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s6);
  align-items: start;
  margin-top: var(--s6);
}
@media (max-width: 900px) { .figures-grid { grid-template-columns: 1fr; gap: var(--s6); } }

.you-dot, .them-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  vertical-align: middle;
}
.you-dot { background: #c0392b; }
.them-dot { background: var(--ink); }

.figure-list { list-style: none; margin: 0; padding: 0; max-height: 720px; overflow-y: auto; }
.figure-list li {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
  /* Each row is a target for hovering and clicking, so it should look interactive. */
  cursor: pointer;
  border-left: 3px solid transparent;
  padding-left: var(--s3);
  margin-left: calc(var(--s1) * -1);
  transition: background-color 0.1s ease, border-color 0.1s ease;
}
.figure-list li:hover { background: var(--bg-2); }
/* Highlights the row whose dot is highlighted in the cube. */
.figure-list li.is-highlighted { background: var(--accent-soft); border-left-color: #c0392b; }
.figure-list li:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.figure-name { font-weight: 600; font-size: 0.95rem; }
.figure-kind {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 8px;
}
/* Distance across all three axes. Lower is closer; it is a rough ordering, not a measurement. */
.figure-distance {
  float: right;
  font-size: 0.8rem;
  color: var(--muted);
}
.figure-why { font-size: 0.85rem; color: var(--ink-2); margin: 6px 0 4px; }

/* Narrows how many figures the cube plots. The list keeps every figure either way. */
.figure-filter {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-bottom: var(--s4);
}
.figure-filter select {
  font: inherit;
  font-size: 0.85rem;
  padding: 4px 8px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.figure-pos { color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- a11y */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 9px 14px;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

@media (max-width: 560px) {
  .scale-row { gap: 4px; }
  /* Keep the tall-wins-toward-the-poles progression, just compressed. */
  .answer-scale .scale-bar { height: 46px; }
  .tone-against-3 .scale-bar, .tone-for-3 .scale-bar { height: 52px; }
  .tone-against-2 .scale-bar, .tone-for-2 .scale-bar { height: 49px; }
  .answer-scale .scale-label { font-size: 0.7rem; }
  .answer-option { grid-template-columns: 20px minmax(0, 1fr); }
  .opt-meter { display: none; }
}

@media print {
  .site-header, .site-footer, .cube-controls, .btn-row, .test-shell { display: none !important; }
  .section { padding: 12pt 0; }
}
