/* ============================================================
   EatWell Baking Guide — Editorial Atelier
   Bone paper, espresso ink, single deep-berry accent.
   Sharp corners, hairline rules, no card-soup.
   ============================================================ */

:root {
  --paper: #f3ede1;
  --paper-2: #ece4d5;
  --ink: #211712;
  --ink-2: #6c5d50;
  --ink-3: #9a8a7a;
  --berry: #9e2b46;
  --berry-soft: rgba(158, 43, 70, 0.12);
  --line: rgba(33, 23, 18, 0.16);
  --line-2: rgba(33, 23, 18, 0.32);
  --line-faint: rgba(33, 23, 18, 0.08);

  --font-display: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;

  --gutter: clamp(18px, 4vw, 56px);
  --measure: 1500px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(circle at 84% 4%, rgba(158, 43, 70, 0.05), transparent 30rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.paper {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Shared editorial micro-label */
.index-label,
.col-num,
.kicker,
.scene-toolbar,
.field span,
.tile-tag,
.fill-note,
.masthead-nav a,
.masthead-meta,
.colophon,
.shape-button,
.preset-select span,
.preset-select select,
.mode-toggle button,
.fill-segments button,
.unit-switch button,
.model-state-board button,
.swap-button,
.scene-readouts span,
.stage-legend,
.footprint-scene figcaption,
.section-link {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.index-label {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 18px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-2);
}

.index-label span {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--berry);
}

/* ---------- Masthead ---------- */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.wordmark-mark::before {
  position: absolute;
  inset: 5px;
  content: "";
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.wordmark-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.masthead-nav a {
  position: relative;
  padding: 4px 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 160ms ease;
}

.masthead-nav a::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1.5px;
  content: "";
  background: var(--berry);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.masthead-nav a:hover,
.masthead-nav a.is-active {
  color: var(--ink);
}

.masthead-nav a:hover::after,
.masthead-nav a.is-active::after {
  transform: scaleX(1);
}

.masthead-meta {
  margin: 0;
  justify-self: end;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-3);
}

/* ---------- Lede ---------- */
.lede-block {
  padding: clamp(40px, 7vw, 84px) 0 clamp(30px, 4vw, 46px);
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.9rem, 8vw, 5.4rem);
  line-height: 0.96;
}

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--berry);
}

.lede {
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- The Plate (ruled worksheet) ---------- */
.plate {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.16fr);
  border: 1px solid var(--ink);
  background: var(--paper);
}

.plate-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: clamp(16px, 1.7vw, 24px);
}

.plate-col + .plate-col {
  border-left: 1px solid var(--line);
}

.col-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.col-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--berry);
}

.col-head h2 {
  flex: 1;
  font-size: 1.5rem;
  line-height: 1;
}

/* ---------- Controls ---------- */
.pan-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.pan-block + .pan-block {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pan-block h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.swap-button {
  border: 0;
  background: transparent;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--berry);
}

.swap-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Segmented controls — sharp, hairline-divided, ink-filled active */
.shape-segments,
.unit-switch,
.mode-toggle,
.fill-segments {
  display: grid;
  border: 1px solid var(--line);
}

.shape-segments {
  grid-template-columns: repeat(3, 1fr);
}

.mode-toggle {
  grid-template-columns: 1fr 1fr;
}

.fill-segments {
  grid-template-columns: repeat(3, 1fr);
}

.preset-select {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.preset-select span {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-3);
}

.preset-select select {
  width: 100%;
  min-height: 38px;
  padding: 0 32px 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 15px center / 6px 6px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    rgba(255, 252, 244, 0.35);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 600;
  appearance: none;
}

.shape-button,
.mode-toggle button,
.fill-segments button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 140ms ease, color 140ms ease;
}

.shape-button {
  min-height: 46px;
  border-right: 1px solid var(--line);
}

.mode-toggle button,
.fill-segments button {
  min-height: 36px;
  padding: 0 6px;
  border-right: 1px solid var(--line);
}

.shape-button:last-child,
.mode-toggle button:last-child,
.fill-segments button:last-child {
  border-right: 0;
}

.shape-button.is-active,
.mode-toggle button.is-active,
.fill-segments button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.shape-icon {
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
}

.shape-icon.round {
  border-radius: 50%;
}

.shape-icon.rectangle {
  width: 21px;
  height: 12px;
}

/* Underline number fields */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, minmax(54px, auto));
  gap: 14px 16px;
}

.field-diameter,
.field-side,
.field-length {
  grid-column: 1;
  grid-row: 1;
}

.field-width,
.field-depth {
  grid-column: 2;
  grid-row: 1;
}

.field-count {
  grid-column: 1;
  grid-row: 2;
}

.pan-block[data-shape="rectangle"] .field-depth {
  grid-column: 1;
  grid-row: 2;
}

.pan-block[data-shape="rectangle"] .field-count {
  grid-column: 2;
  grid-row: 2;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field span {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-3);
}

.field input {
  width: 100%;
  padding: 5px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: var(--ink);
  transition: border-color 160ms ease;
}

.field input:focus {
  outline: 0;
  border-bottom-color: var(--berry);
}

.unit-switch {
  align-self: center;
  grid-template-columns: 1fr 1fr;
}

.unit-switch button {
  min-width: 40px;
  padding: 5px 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-2);
}

.unit-switch button:last-child {
  border-right: 0;
}

.unit-switch button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.fill-note {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2px 0 0;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-3);
}

.fill-note strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--berry);
}

.is-hidden {
  display: none;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}

/* ---------- Visual column ---------- */
.scene-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px 16px;
  margin: 0;
  height: 2.75rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ink-3);
  overflow: hidden;
}

.scene-toolbar span {
  position: relative;
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  padding-left: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-toolbar span::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  background: var(--line-2);
}

body[data-result-state="larger"] #ratioDirection {
  color: var(--berry);
}

body[data-result-state="larger"] #ratioDirection::before {
  background: var(--berry);
}

body[data-result-state="smaller"] #ratioDirection {
  color: var(--ink);
}

.visual-summary {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.visual-summary em {
  margin: 0 0.4em;
  font-style: normal;
  color: var(--berry);
}

.three-bench {
  display: grid;
  place-items: stretch;
}

/* Scene built by app.js — no cards, just structure */
.pan-stage {
  display: grid;
  gap: 16px;
  color: var(--ink);
}

.footprint-scene {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.fp-svg {
  display: block;
  width: 100%;
  max-width: 296px;
  height: auto;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.footprint-scene figcaption {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--ink-3);
  text-align: center;
}

.fp-shape {
  transition:
    x 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    y 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    rx 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    ry 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    fill 0.4s ease,
    stroke 0.4s ease;
}

.fp-target {
  fill: var(--berry-soft);
  stroke: var(--berry);
  stroke-width: 1.5;
}

.fp-original {
  fill: rgba(33, 23, 18, 0.04);
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.pan-stage[data-state="smaller"] .fp-target {
  fill: rgba(33, 23, 18, 0.06);
  stroke: var(--ink-2);
}

/* ratio + gauge sit in a row beneath the footprint */
.stage-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.ratio-readout {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid var(--ink);
  background: rgba(236, 228, 213, 0.34);
}

.ratio-readout > span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.ratio-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.3rem);
  font-weight: 500;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  transition: color 0.4s ease;
}

.ratio-note {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-2);
}

.ratio-helper {
  margin: 4px 0 0;
  max-width: 22ch;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.pan-stage[data-state="larger"] .ratio-value,
.pan-stage[data-state="larger"] .ratio-note {
  color: var(--berry);
}

/* Batter fill gauge */
.fill-gauge {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 13px 14px;
  min-width: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.fill-gauge-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.fill-gauge-head span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.fill-gauge-head strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--berry);
}

.gauge-track {
  position: relative;
  height: 40px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(33, 23, 18, 0.08) 0 50%, rgba(93, 126, 112, 0.14) 50% 67%, rgba(158, 43, 70, 0.12) 67% 100%),
    var(--paper);
  overflow: hidden;
}

.gauge-safe-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 17%;
  pointer-events: none;
  border-right: 1px dashed rgba(93, 126, 112, 0.55);
  border-left: 1px dashed rgba(93, 126, 112, 0.55);
}

.gauge-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 67%;
  background: var(--ink);
  opacity: 0.92;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gauge-overflow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 75%;
  pointer-events: none;
  background: rgba(158, 43, 70, 0.16);
  border-left: 1px solid var(--berry);
  transition: background 0.4s ease;
}

.fill-gauge[data-state="danger"] .gauge-overflow {
  background: rgba(158, 43, 70, 0.3);
}

.fill-gauge[data-state="low"] .gauge-fill {
  background: var(--ink-2);
}

.gauge-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed var(--line-2);
}

.gauge-scale {
  position: relative;
  height: 18px;
  margin-top: -5px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-2);
}

.gauge-scale span {
  position: absolute;
  top: 0;
  padding: 0 3px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  font-weight: 500;
  line-height: 1.2;
  transform: translateX(-50%);
}

.gauge-scale span:nth-child(2) {
  transform: translateX(-18%);
}

.gauge-scale span:nth-child(3) {
  transform: translateX(18%);
}

.fill-gauge figcaption {
  display: grid;
  gap: 2px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
  text-align: left;
}

.fill-gauge figcaption strong {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--berry);
}

/* Legend */
.stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--ink-2);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.legend-item i {
  flex: none;
  width: 14px;
  height: 14px;
}

.legend-original i {
  border: 1.5px dashed var(--ink);
}

.legend-target i {
  border: 1.5px solid var(--berry);
  border-radius: 50%;
  background: var(--berry-soft);
}

.legend-item b {
  color: var(--ink);
  font-weight: 700;
}

.legend-o,
.legend-t {
  font-family: var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
}

/* Readouts — ruled rows */
.scene-readouts {
  display: grid;
  border-top: 1px solid var(--line);
}

.scene-readouts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.scene-readouts span {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ink-2);
}

.scene-readouts strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.scene-readouts .is-safe strong {
  color: var(--ink);
}

.scene-readouts .is-caution strong {
  color: var(--ink-2);
}

.scene-readouts .is-danger strong {
  color: var(--berry);
}

/* Demo state chips */
.model-state-board {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-state-board button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.model-state-board button.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- Result strip (verdict footer) ---------- */
.result-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, auto);
  border-top: 1px solid var(--ink);
}

.result-strip > * {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: clamp(16px, 1.7vw, 24px);
}

.result-strip > * + * {
  border-left: 1px solid var(--line);
}

.strip-marker {
  align-items: flex-start;
  gap: 6px;
}

.strip-marker .col-num {
  font-size: 1rem;
}

.strip-marker > span:last-child {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.result-main > span,
.result-item > span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.result-main strong {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 3.4rem);
  font-weight: 500;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  transition: color 0.4s ease;
}

body[data-result-state="larger"] .result-main strong {
  color: var(--berry);
}

.result-item strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}

.result-main small,
.result-item small {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.result-cta {
  justify-content: center;
  gap: 10px;
}

.details-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.details-button:hover {
  color: var(--paper);
  background: var(--ink);
}

.result-foot {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Ruled content sections ---------- */
.ruled-section {
  padding-block: clamp(40px, 6vw, 76px);
  border-top: 1px solid var(--ink);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 20px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.section-head .index-label {
  grid-column: 1 / -1;
  margin: 0;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.04;
}

.section-link {
  justify-self: end;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--berry);
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Common conversions — ruled columns */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.guide-tile {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 4px clamp(16px, 2vw, 30px);
  border-left: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.guide-tile:first-child {
  padding-left: 0;
  border-left: 0;
}

.guide-tile strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
}

.guide-tile small {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.tile-tag {
  justify-self: start;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--berry);
}

.guide-tile:hover strong {
  color: var(--berry);
}

/* Mini diagrams (flat editorial) */
.tile-visual {
  display: block;
  min-height: 104px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.mini-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(30px, 1fr) minmax(40px, auto) minmax(30px, 1fr);
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
}

.mini-diagram b {
  z-index: 2;
  display: inline-grid;
  min-width: 42px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--berry);
  background: var(--paper);
  place-items: center;
  text-align: center;
}

.mini-pan {
  position: relative;
  justify-self: center;
  width: 50px;
  height: 50px;
}

.mini-pan::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 1.5px solid var(--ink);
  background: linear-gradient(0deg, var(--berry-soft) 0 var(--mini-fill, 66%), transparent var(--mini-fill, 66%));
}

.mini-round,
.mini-round::before {
  border-radius: 50%;
}

.mini-rect {
  width: 66px;
  height: 40px;
}

.round-pair .original-pan {
  --mini-fill: 66%;
  width: 44px;
  height: 44px;
}

.round-pair .target-pan {
  --mini-fill: 66%;
  width: 56px;
  height: 56px;
}

.mixed-pans .target-pan {
  --mini-fill: 66%;
  width: 42px;
  height: 42px;
}

.fill-risk {
  grid-template-columns: 1fr 14px 1fr;
}

.fill-risk .fill-meter {
  z-index: 2;
  display: block;
  width: 8px;
  height: 64px;
  justify-self: center;
  border: 1px solid var(--ink);
  background: linear-gradient(0deg, transparent 0 50%, var(--berry-soft) 50% 100%);
}

.fill-risk .fill-half {
  --mini-fill: 50%;
}

.fill-risk .fill-high {
  --mini-fill: 78%;
}

/* Methodology + chart */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 4vw, 60px);
}

.method-panel h2,
.chart-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.method-panel p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.method-panel p + p {
  margin-top: 16px;
}

.formula-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.formula-row span {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.formula-row strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--berry);
  font-variant-numeric: lining-nums tabular-nums;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: left;
}

td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-2);
  vertical-align: baseline;
}

td:first-child {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
}

th:nth-child(2),
th:nth-child(3) {
  padding-left: 18px;
}

td:nth-child(2),
td:nth-child(3) {
  padding-left: 18px;
}

/* Field notes — ruled columns */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.article-band article {
  padding: 4px clamp(16px, 2vw, 30px);
  border-left: 1px solid var(--line);
}

.article-band article:first-child {
  padding-left: 0;
  border-left: 0;
}

.article-band h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.article-band p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--ink-2);
}

/* FAQ — ruled list */
.faq-list details {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--berry);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list p {
  margin: 12px 0 0;
  max-width: 66ch;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--ink-2);
}

/* ---------- Colophon ---------- */
.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--ink);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- Page-load reveal ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lede-block,
.plate {
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lede-block {
  animation-delay: 0.04s;
}

.plate {
  animation-delay: 0.16s;
}

/* ---------- Tool-first homepage ---------- */
.tool-hero {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 2vh, 24px);
  min-height: calc(100vh - 86px);
  padding: clamp(16px, 2.4vh, 30px) 0 clamp(24px, 3vh, 42px);
}

.tool-hero-copy {
  display: grid;
  grid-template-columns: minmax(460px, 0.9fr) minmax(330px, 0.64fr) auto;
  align-items: end;
  gap: 12px clamp(28px, 4vw, 64px);
}

.tool-hero-copy .index-label {
  margin-bottom: 8px;
}

.tool-hero h1 {
  max-width: none;
  font-size: clamp(2.15rem, 3.4vw, 3.25rem);
  line-height: 0.94;
}

.tool-hero .lede {
  max-width: 41ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.tool-page-links {
  display: grid;
  gap: 9px;
  min-width: 150px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.tool-page-links a {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}

.tool-page-links a:hover {
  color: var(--berry);
}

@media (min-width: 1081px) {
  .tool-hero h1 {
    max-width: 18ch;
  }

  .tool-hero .plate {
    grid-template-columns: minmax(700px, 1.08fr) minmax(440px, 0.72fr);
    align-self: start;
    align-items: start;
    gap: 18px;
    border: 0;
    background: transparent;
  }

  .tool-hero .col-controls,
  .tool-hero .col-visual {
    align-self: start;
  }

  .tool-hero .plate-col,
  .tool-hero .result-strip {
    border: 1px solid var(--ink);
    background: var(--paper);
  }

  .tool-hero .plate-col + .plate-col {
    border-left: 1px solid var(--ink);
  }

  .tool-hero .col-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 16px 18px;
  }

  .tool-hero .col-controls .col-head {
    grid-column: 1 / -1;
  }

  .tool-hero .plate-col {
    gap: 15px;
    padding: clamp(18px, 1.7vw, 25px);
  }

  .tool-hero .pan-block {
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    background: rgba(236, 228, 213, 0.34);
  }

  .tool-hero .pan-block + .pan-block {
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .tool-hero .pan-block[data-section="target"] {
    padding: 16px;
    border: 1px solid var(--line);
  }

  .tool-hero .batter-block {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(210px, 0.9fr) minmax(260px, 1fr) auto;
    align-items: center;
    gap: 10px 18px;
    padding: 16px;
    border-color: var(--ink);
    background: transparent;
  }

  .tool-hero .batter-block .block-head,
  .tool-hero .batter-block .fill-note {
    margin: 0;
  }

  .tool-hero .shape-button {
    min-height: 40px;
  }

  .tool-hero .mode-toggle button,
  .tool-hero .fill-segments button {
    min-height: 32px;
  }

  .tool-hero .preset-select select {
    min-height: 34px;
  }

  .tool-hero .field-grid {
    gap: 10px 18px;
    grid-template-rows: repeat(2, minmax(50px, auto));
  }

  .tool-hero .field input {
    padding: 4px 2px;
    font-size: 0.98rem;
  }

  .tool-hero .col-head {
    padding-bottom: 12px;
  }

  .tool-hero .col-head h2 {
    font-size: 1.55rem;
  }

  .tool-hero .fp-svg {
    max-width: 250px;
  }

  .tool-hero .pan-stage {
    gap: 14px;
  }

  .tool-hero .stage-side {
    gap: 16px;
  }

  .tool-hero .gauge-track {
    height: 48px;
  }

  .tool-hero .ratio-value {
    font-size: clamp(2.2rem, 3.6vw, 2.8rem);
  }

  .tool-hero .model-state-board button {
    padding: 7px 10px;
  }

  .tool-hero .scene-readouts,
  .tool-hero .model-state-board,
  .tool-hero .stage-legend {
    display: none;
  }

  .tool-hero .result-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(220px, auto);
  }

  .tool-hero .result-strip > * {
    flex: none;
    padding: clamp(14px, 1.35vw, 20px);
  }

  .tool-hero .result-strip > * + * {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .tool-hero .strip-marker {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .tool-hero .result-main strong {
    font-size: clamp(2.35rem, 3.6vw, 3rem);
  }

  .tool-hero .result-item strong {
    font-size: 1.34rem;
  }

  .tool-hero .details-button {
    padding: 13px 14px;
    white-space: normal;
  }
}

@media (min-width: 1081px) and (max-width: 1499px), (min-width: 1081px) and (max-height: 820px) {
  .tool-hero {
    gap: clamp(10px, 1.6vh, 16px);
    padding: clamp(10px, 1.6vh, 18px) 0 clamp(16px, 2.4vh, 26px);
  }

  .tool-hero-copy {
    grid-template-columns: minmax(620px, 1fr) minmax(250px, 0.48fr) auto;
    align-items: center;
    gap: 10px clamp(18px, 2.5vw, 36px);
  }

  .tool-hero-copy .index-label {
    margin-bottom: 3px;
  }

  .tool-hero h1 {
    max-width: none;
    font-size: clamp(1.85rem, 3vw, 2.65rem);
    white-space: nowrap;
  }

  .tool-hero .lede {
    max-width: 36ch;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .tool-page-links {
    gap: 6px;
    padding-left: 18px;
  }

  .tool-hero .plate {
    grid-template-columns: minmax(580px, 1.18fr) minmax(330px, 0.72fr);
    gap: 6px;
  }

  .tool-hero .col-controls {
    gap: 12px 16px;
  }

  .tool-hero .plate-col {
    gap: 12px;
    padding: clamp(14px, 1.35vw, 19px);
  }

  .tool-hero .pan-block {
    gap: 10px;
    padding: 12px;
  }

  .tool-hero .pan-block[data-section="target"] {
    padding: 12px;
  }

  .tool-hero .batter-block {
    grid-template-columns: auto minmax(180px, 0.9fr) minmax(220px, 1fr) auto;
    gap: 8px 14px;
    padding: 12px;
  }

  .tool-hero .shape-button {
    min-height: 37px;
  }

  .tool-hero .mode-toggle button,
  .tool-hero .fill-segments button {
    min-height: 31px;
  }

  .tool-hero .preset-select select {
    min-height: 32px;
  }

  .tool-hero .field-grid {
    gap: 8px 14px;
    grid-template-rows: repeat(2, minmax(48px, auto));
  }

  .tool-hero .field input {
    padding: 3px 2px;
    font-size: 0.95rem;
  }

  .tool-hero .col-head {
    padding-bottom: 10px;
  }

  .tool-hero .col-head h2 {
    font-size: 1.34rem;
  }

  .tool-hero .fp-svg {
    max-width: 172px;
  }

  .tool-hero .pan-stage {
    gap: 8px;
  }

  .tool-hero .gauge-track {
    height: 38px;
  }

  .tool-hero .ratio-value {
    font-size: clamp(1.85rem, 2.8vw, 2.25rem);
  }

  .tool-hero .scene-readouts,
  .tool-hero .model-state-board,
  .tool-hero .stage-legend {
    display: none;
  }

  .tool-hero .result-strip > * {
    padding: clamp(6px, 0.7vw, 9px);
  }

  .tool-hero .result-main strong {
    font-size: clamp(1.85rem, 3vw, 2.35rem);
  }

  .tool-hero .result-item strong {
    font-size: 1.04rem;
  }

  .tool-hero .details-button {
    padding: 10px 12px;
  }
}

.home-library {
  padding-block: clamp(34px, 5vw, 62px);
}

/* ---------- Shared static content pages ---------- */
.page-shell {
  padding: clamp(36px, 6vw, 82px) 0 clamp(42px, 7vw, 90px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: 18px clamp(28px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--ink);
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.page-hero .lede {
  margin: 0;
}

.page-section {
  padding-block: clamp(30px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.page-section:last-child {
  border-bottom: 0;
}

.copy-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 36px);
}

.copy-block h2,
.blog-card h2,
.article-body h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
}

.copy-block p,
.blog-card p,
.article-body p,
.article-body li {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.65;
}

.copy-block p + p,
.article-body p + p {
  margin-top: 14px;
}

.callout-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.callout-rule span {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.callout-rule strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--berry);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.blog-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.blog-card:hover h2 {
  color: var(--berry);
}

.blog-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  font-weight: 500;
  line-height: 1.08;
}

.blog-card:hover h3 {
  color: var(--berry);
}

.article-card {
  grid-template-rows: auto auto auto 1fr;
}

.article-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--paper-2);
  filter: saturate(0.88) contrast(0.98);
}

.blog-meta {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--berry);
}

.blog-landing-hero h1 {
  max-width: 12ch;
}

.topic-jump {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-block: clamp(18px, 3vw, 30px);
  background: var(--line);
  border-bottom: 0;
}

.topic-jump a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 16px clamp(16px, 2.2vw, 26px);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.topic-jump span,
.article-tools span,
.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.topic-jump strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--berry);
}

.topic-jump a:hover span {
  color: var(--berry);
}

.blog-topic .section-head {
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.46fr);
}

.blog-topic .section-head p:not(.index-label) {
  margin: 0;
  max-width: 44ch;
  color: var(--ink-2);
}

.theme-blog-grid {
  grid-template-columns: repeat(4, 1fr);
}

.article-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 76px);
}

.article-aside {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.article-body ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.article-page {
  padding-top: clamp(28px, 4vw, 58px);
}

.article-hero {
  align-items: end;
}

.article-hero h1 {
  max-width: 13ch;
}

.article-hero-media {
  margin: clamp(18px, 3vw, 34px) 0 0;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

.article-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 780px);
  gap: clamp(28px, 5vw, 80px);
  padding-top: clamp(28px, 5vw, 58px);
}

.article-tools {
  position: sticky;
  top: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  align-self: start;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.article-tools .details-button {
  justify-content: space-between;
}

.muted-button {
  border-color: var(--line-2);
  color: var(--ink-2);
}

.article-main {
  min-width: 0;
}

.article-section {
  padding: 0 0 clamp(28px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.article-section + .article-section {
  padding-top: clamp(24px, 4vw, 38px);
}

.article-section:last-child {
  border-bottom: 0;
}

.article-section h2,
.related-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.article-section p,
.article-section li {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.article-section p + p,
.article-section .callout-rule {
  margin-top: 16px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--berry);
}

.article-section ul {
  margin: 0;
  padding-left: 20px;
}

.article-section li + li {
  margin-top: 8px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.related-links a:hover {
  color: var(--paper);
  background: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plate {
    grid-template-columns: 1fr;
  }

  .plate-col + .plate-col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .col-visual .fp-svg {
    max-width: 360px;
  }

  .theme-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-strip {
    grid-template-columns: 1fr;
  }

  .result-strip > * + * {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .tool-hero {
    min-height: 0;
    padding-top: 22px;
  }

  .tool-hero-copy,
  .page-hero,
  .copy-columns,
  .blog-grid,
  .topic-jump,
  .blog-topic .section-head,
  .article-layout,
  .article-body {
    grid-template-columns: 1fr;
  }

  .article-tools {
    position: static;
  }

  .tool-page-links {
    grid-template-columns: repeat(3, max-content);
    padding-left: 0;
    border-left: 0;
    gap: 12px;
  }

  .tool-hero h1,
  .page-hero h1 {
    font-size: clamp(2.3rem, 15vw, 3.7rem);
  }

  .masthead {
    grid-template-columns: 1fr auto;
  }

  .masthead-nav {
    display: none;
  }

  .masthead-meta {
    display: none;
  }

  .guide-grid,
  .content-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .guide-tile,
  .article-band article {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .guide-tile:first-child,
  .article-band article:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .chart-panel {
    margin-top: 8px;
  }
}

@media (max-width: 460px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stage-side {
    grid-template-columns: 1fr;
  }

  .gauge-track {
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  .fp-shape,
  .gauge-fill,
  .gauge-overflow {
    animation: none !important;
    transition: none !important;
  }
}
