/* CompFlow Tools - shared styling.
 *
 * System fonts only: no webfont request, no render-blocking stylesheet from a
 * third party. Page weight is a ranking factor (CLAUDE.md rule 3) and these
 * pages have to feel instant on a phone in a lecture hall.
 */

:root {
  --ground: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #eef1f4;
  --line: #d8dee4;
  --line-soft: #e8ecf0;
  --ink: #141a20;
  --ink-mid: #47535f;
  --ink-soft: #6d7a86;
  --accent: #1f5f80;
  --accent-soft: #e2eef4;
  --warn: #a8441f;
  --warn-soft: #f8e8e2;
  --good: #2c6a4c;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0e1418;
    --surface: #161d23;
    --surface-alt: #1d262d;
    --line: #2b3843;
    --line-soft: #222d35;
    --ink: #e8eef2;
    --ink-mid: #a9b7c1;
    --ink-soft: #7e8d99;
    --accent: #6fb4d6;
    --accent-soft: #16303d;
    --warn: #e08560;
    --warn-soft: #341f19;
    --good: #6fc095;
  }
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 80px; }

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

.site-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.site-head a { color: inherit; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.site-head nav { display: flex; gap: 14px; font-size: 14px; }
.site-head nav a { color: var(--ink-soft); font-weight: 400; }
.site-head nav a:hover { color: var(--accent); }

h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  text-wrap: balance;
}

.lede { color: var(--ink-mid); margin: 0 0 26px; max-width: 62ch; }

h2 {
  font-size: 1.28rem;
  letter-spacing: -.01em;
  margin: 38px 0 10px;
  text-wrap: balance;
}
h3 { font-size: 1.02rem; margin: 24px 0 6px; }

p { margin: 0 0 14px; max-width: 68ch; }

code, .num {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
code {
  font-size: .88em;
  background: var(--surface-alt);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ---------- input panel ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.modes { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.modes button {
  font: inherit;
  font-size: 14px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink-mid);
  border-radius: 100px;
  cursor: pointer;
}
.modes button[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.field input {
  font: inherit;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ground);
  color: var(--ink);
}
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; display: block; }

.gamma-presets { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.gamma-presets button {
  font: inherit;
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 3px;
  cursor: pointer;
}
.gamma-presets button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- results ---------- */

.status {
  margin: 20px 0 0;
  padding: 13px 16px;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: 15px;
}
.status.detached { border-left-color: var(--warn); background: var(--warn-soft); }
.status.error { border-left-color: var(--warn); background: var(--warn-soft); }
.status strong { font-weight: 600; }

.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 640px) { .branches { grid-template-columns: 1fr; } }

.branch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.branch.is-secondary { opacity: .82; }

.branch-head {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.branch-head h3 { margin: 0; font-size: .98rem; }
.tag {
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--ground);
  color: var(--ink-soft);
  white-space: nowrap;
}
.tag.sup { background: var(--accent-soft); color: var(--accent); }
.tag.sub { background: var(--warn-soft); color: var(--warn); }

.rows { margin: 0; padding: 6px 0; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 16px;
}
.row dt { color: var(--ink-mid); font-size: 14.5px; margin: 0; }
.row dd { margin: 0; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
.row.primary { padding-top: 10px; padding-bottom: 10px; background: var(--surface-alt); }
.row.primary dt { color: var(--ink); font-weight: 600; }
.row.primary dd { font-size: 1.25rem; font-weight: 600; }

/* ---------- limits strip ---------- */

.limits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}
.limit { background: var(--surface); padding: 12px 16px; }
.limit .k { display: block; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.limit .v { font-family: ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; font-size: 1.05rem; }

/* ---------- share ---------- */

.share { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.share button {
  font: inherit;
  font-size: 14px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-mid);
  border-radius: 4px;
  cursor: pointer;
}
.share button:hover { border-color: var(--accent); color: var(--accent); }
.share .said { font-size: 13px; color: var(--good); }

/* ---------- chart ---------- */

.chart-wrap { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-soft); padding: 8px 4px 2px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 0; border-top-width: 2px; border-top-style: solid; display: inline-block; }

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

.prose { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--line); }

/* Visible, deliberately ugly: unwritten prose must never ship by accident.
 * CLAUDE.md - Iliya writes this section, not a generator. */
.needs-prose {
  border: 2px dashed var(--warn);
  background: var(--warn-soft);
  color: var(--ink);
  padding: 16px 18px;
  border-radius: var(--radius);
}
.needs-prose ul { margin: 8px 0 0; padding-left: 20px; }
.needs-prose li { margin-bottom: 4px; }

/* Ad slot: not before month 3, never above the result, height reserved so it
 * cannot shift layout when it does arrive (CLAUDE.md rule 7). Unused for now. */
.ad-slot { min-height: 280px; margin-top: 40px; display: none; }

footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}
footer a { color: var(--accent); }

.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;
}

/* ---------- home page ---------- */

.card-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.card a { color: var(--accent); text-decoration: none; font-size: 1.06rem; }
.card a:hover { text-decoration: underline; }
.card p { margin: 6px 0 0; color: var(--ink-mid); font-size: 15px; }

.soon { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 1px;
        background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.soon li { background: var(--surface); padding: 9px 16px; color: var(--ink-soft); font-size: 14.5px; }

.points { margin: 16px 0 0; }
.points dt { font-weight: 600; margin-top: 16px; }
.points dd { margin: 3px 0 0; color: var(--ink-mid); max-width: 68ch; }

/* ---------- 404 ---------- */

.notfound { padding: 40px 0 20px; }
.notfound h1 { margin-bottom: 12px; }

/* ---------- answer block: the result and the picture of it, together ---------- */

.answer {
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  gap: 16px;
  margin-top: 18px;
}
@media (max-width: 760px) { .answer { grid-template-columns: 1fr; } }

.answer-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.answer-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.answer-big {
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.1rem, 6.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 5px 0 3px;
}
.detached-big { color: var(--warn); font-size: clamp(1.7rem, 5vw, 2.2rem); }
.answer-sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; max-width: none; }

.answer-stats { display: grid; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.answer-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.answer-stats .k { font-size: 13.5px; color: var(--ink-mid); }
.answer-stats .v {
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.answer-fig {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px 2px;
}
.answer-fig svg { display: block; width: 100%; height: auto; }
.answer-fig figcaption { font-size: 12px; color: var(--ink-soft); padding: 2px 2px 6px; }

/* Secondary quantities inside a branch card - present, not competing. */
.row.aux dt, .row.aux dd { color: var(--ink-soft); font-size: 13.5px; }

.branches .empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 15px;
  max-width: none;
}

/* ---------- results: everything visible at once ----------
 * The Virginia Tech calculator's virtue is that you type and the whole answer
 * is simply there - no scrolling, nothing behind a disclosure. This block is
 * built for that: one table with both roots as columns, limits beneath it,
 * schematic alongside.
 */

.results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 42%);
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}
@media (max-width: 860px) { .results { grid-template-columns: 1fr; } }

.results-state { min-width: 0; }

.results-fig {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px 2px;
}
.results-fig svg { display: block; width: 100%; height: auto; }
.results-fig figcaption { font-size: 11.5px; color: var(--ink-soft); padding: 2px 2px 6px; }

table.state {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

table.state thead th {
  text-align: right;
  padding: 10px 14px 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}
table.state thead th:first-child { width: 44%; }
table.state .col-note {
  display: block;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-soft);
  margin-top: 2px;
}
table.state thead tr.tags td {
  padding: 0 14px 8px;
  text-align: right;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

table.state tbody th {
  text-align: left;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-mid);
  padding: 7px 14px;
  border-bottom: 1px solid var(--line-soft);
}
table.state tbody td {
  text-align: right;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 14.5px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line-soft);
}
/* The strong root is real and reported in full, just not competing. */
table.state tbody td:last-child { color: var(--ink-mid); }
table.state tbody tr:last-child th,
table.state tbody tr:last-child td { border-bottom: none; }

table.state tr.key th { color: var(--ink); font-weight: 600; font-size: 14.5px; }
table.state tr.key td { font-size: 1.05rem; font-weight: 600; }
table.state tr.key:first-child td { font-size: 1.2rem; }

table.state tr.aux th, table.state tr.aux td { color: var(--ink-soft); font-size: 13px; }

/* limits strip, tightened to sit directly under the table */
.limits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
}
.limit { background: var(--surface); padding: 9px 12px; }
.limit .k { display: block; font-size: 12px; color: var(--ink-soft); }
.limit .v {
  display: block;
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  color: var(--ink);
}
.limit .n { display: block; font-size: 10.5px; color: var(--ink-soft); letter-spacing: .02em; }

.results-state .empty {
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 15px;
  max-width: none;
}

.status { font-size: 14px; }

/* ---------- density pass ----------
 * Target: inputs and the complete result on one 900px-tall screen, so a
 * student types and reads without scrolling. Every value below was measured
 * against that budget, not chosen by eye.
 */

.lede { margin-bottom: 16px; }

.results-side { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.results-side .limits { margin-top: 0; }

table.state { line-height: 1.34; }
table.state tbody th, table.state tbody td { padding: 5px 14px; }
table.state thead th { padding: 8px 14px 3px; }
table.state thead tr.tags td { padding: 0 14px 6px; }

.limit { padding: 7px 11px; }
.limit .k { font-size: 11.5px; }
.limit .v { font-size: .95rem; line-height: 1.3; }
.limit .n { font-size: 10px; line-height: 1.25; }

.panel { padding: 15px 18px; }
.modes { margin-bottom: 12px; }
.fields { gap: 12px; }
.field .hint { margin-top: 3px; font-size: 11.5px; }
.gamma-presets { margin-top: 5px; }

@media (max-width: 520px) {
  /* The label column plus two value columns does not fit at 375px with
     desktop padding; shrink the gutters rather than let the table overrun. */
  table.state { font-size: 13px; }
  table.state thead th { padding: 8px 8px 3px; font-size: 12.5px; }
  table.state thead th:first-child { width: 36%; }
  table.state thead tr.tags td { padding: 0 8px 6px; }
  table.state tbody th, table.state tbody td { padding: 5px 8px; font-size: 13px; }
  table.state tr.key td { font-size: .98rem; }
  table.state tr.key:first-child td { font-size: 1.05rem; }
  table.state .col-note { font-size: 10px; }
  .limits { grid-template-columns: 1fr 1fr; }
}

/* ---------- wide calculator layout ----------
 * The page was an 860 px column inside a 1280 px viewport - 420 px of the
 * screen doing nothing. The calculator takes the full width; prose keeps a
 * readable measure via .narrow, so widening costs nothing where it would hurt.
 */

.wrap--wide { max-width: 1200px; }
.narrow { max-width: 780px; }

/* Title and inputs are chrome. They should be legible and then get out of the
 * way - the result is what the page is for. */
.wrap--wide .site-head { padding: 11px 0; margin-bottom: 16px; }
.wrap--wide h1 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 4px; }
.wrap--wide .lede { font-size: .95rem; margin-bottom: 12px; }

.wrap--wide .panel { padding: 12px 16px; }
.wrap--wide .modes { margin-bottom: 10px; }
.wrap--wide .modes button { font-size: 13px; padding: 5px 11px; }
/* Fields sit in a compact row rather than stretching across the full width. */
.wrap--wide .fields {
  grid-template-columns: repeat(auto-fit, minmax(140px, 200px));
  justify-content: start;
  gap: 10px 14px;
}
.wrap--wide .field label { font-size: 11.5px; margin-bottom: 3px; }
.wrap--wide .field input { padding: 7px 10px; font-size: 15px; }
.wrap--wide .field .hint { font-size: 11px; }
.wrap--wide .gamma-presets button { font-size: 11.5px; padding: 2px 7px; }

/* The schematic is the second most important thing on the page, so it gets a
 * real share of the extra width rather than staying a thumbnail. */
.wrap--wide .results { grid-template-columns: minmax(0, 1fr) minmax(400px, 46%); }
@media (max-width: 900px) { .wrap--wide .results { grid-template-columns: 1fr; } }

.wrap--wide .limits { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .wrap--wide .limits { grid-template-columns: 1fr 1fr; } }

/* The theta-beta-M chart does not want the full 1160 px - at that width it
 * renders 741 px tall and swallows the page. Cap it at close to its native
 * size and put the legend in the space that frees up beside it. */
.wrap--wide .chart-wrap {
  max-width: 990px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 175px;
  gap: 14px;
  align-items: start;
}
.wrap--wide .chart-wrap .legend {
  flex-direction: column;
  gap: 9px;
  padding: 6px 0 0;
  font-size: 12px;
}
@media (max-width: 760px) {
  .wrap--wide .chart-wrap { grid-template-columns: 1fr; }
  .wrap--wide .chart-wrap .legend { flex-direction: row; flex-wrap: wrap; }
}

/* A field the calculator filled in rather than one you type into. */
.field input.is-computed {
  background: var(--surface-alt);
  color: var(--ink-mid);
  border-style: dashed;
  cursor: default;
}

/* ---------- input bar: direction left, gas right ---------- */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.bar .modes { margin-bottom: 0; }

.gamma { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gamma > label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-mid);
}
.gamma input {
  font: inherit;
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  width: 76px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ground);
  color: var(--ink);
  text-align: right;
}
.gamma input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.gamma .gamma-presets { margin-top: 0; }

/* Three per-problem values, evenly sized, in a row. */
.wrap--wide .fields {
  grid-template-columns: repeat(3, minmax(140px, 210px));
  justify-content: start;
}
@media (max-width: 620px) {
  .wrap--wide .fields { grid-template-columns: 1fr 1fr; }
  .bar { justify-content: flex-start; }
}

/* ---------- isentropic page: every table cell is an input ---------- */

.panel-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 70ch;
}

table.solve-table thead th:first-child { width: 52%; }
table.solve-table tbody th { font-size: 14.5px; color: var(--ink); padding: 4px 14px; }
table.solve-table tbody th label { cursor: pointer; }
table.solve-table tbody td { padding: 4px 10px 4px 14px; }

input.cell {
  font: inherit;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  width: 100%;
  padding: 6px 9px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ground);
  color: var(--ink);
}
input.cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input.cell:hover:not(:disabled) { border-color: var(--accent); }
input.cell.is-na {
  background: var(--surface-alt);
  color: var(--ink-soft);
  border-style: dashed;
  cursor: not-allowed;
}
table.solve-table tr.key input.cell { font-size: 1.08rem; font-weight: 600; }

.sub-h {
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 16px 0 0;
}
.sub-h + .limits { margin-top: 8px; }

/* A cell the reader typed into, as opposed to one the page worked out. */
input.cell.is-typed {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--accent);
}

table.solve-table thead th:first-child { width: 34%; }
table.solve-table tr.shared th { color: var(--ink); }
table.solve-table tr.shared .shared-note {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: .03em;
}
table.solve-table tr.shared td { padding-right: 14px; }

table.solve-table tr.section-row th {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 12px 14px 4px;
  background: var(--surface-alt);
}
table.solve-table tr.aux td {
  text-align: right;
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  color: var(--ink-mid);
  padding-right: 24px;
}

.bar--gamma-only .panel-note { margin: 0; flex: 1 1 340px; }

/* ---------- normal shock page ---------- */

table.side-table { margin-top: 8px; font-size: 13.5px; }
table.side-table thead th { padding: 7px 12px 4px; font-size: 12px; }
table.side-table thead th:first-child { width: 34%; }
table.side-table tbody th { font-size: 13px; padding: 4px 12px; color: var(--ink-mid); font-weight: 400; }
table.side-table tbody td {
  text-align: right;
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  padding: 4px 12px;
}

table.solve-table tr.aux td {
  text-align: right;
  padding-right: 24px;
}

table.solve-table .shared-note {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: .03em;
  margin-top: 1px;
}

/* A value the page shows but will not accept as an input. */
td.ro-cell {
  text-align: right;
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-right: 24px;
}

/* Same nav on every page, so the page you are on has to be marked rather than
   omitted - omitting it is what makes a nav look different page to page. */
.site-head nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.site-head nav a[aria-current="page"]:hover { color: var(--ink); }

@media (max-width: 700px) {
  .site-head { gap: 6px 14px; }
  .site-head nav { gap: 10px; font-size: 13px; flex-wrap: wrap; }
}
