/* Graph A · makefield.io /pr/ · relies on the site's Space Grotesk / Space Mono @font-face */
.mfg {
  --mfg-paper: #f9f8f5;
  --mfg-ink: #161616;
  --mfg-red: #c8231b;
  --mfg-mute: #5c5a55;
  --mfg-rule: #d9d6cf;
  --mfg-band: rgba(22, 22, 22, 0.09);
  margin: 2.5rem 0;
  padding: 0;
  color: var(--mfg-ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.mfg-eyebrow {
  margin: 0 0 0.4rem;
  font: 400 0.75rem/1.4 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mfg-red);
}
.mfg-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 500;
}
.mfg-readout {
  margin: 0;
  min-height: 2.6em;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
}
@media (min-width: 700px) { .mfg-readout { min-height: 1.3em; } }
.mfg-sub {
  margin: 0.35rem 0 0.75rem;
  font: 400 0.8rem/1.5 "Space Mono", ui-monospace, monospace;
  color: var(--mfg-mute);
}
.mfg-chart { width: 100%; }
.mfg-ylab { margin: 0 0 0.25rem; font: 400 0.8rem/1.4 "Space Mono", ui-monospace, monospace; color: var(--mfg-mute); }
.mfg-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mfg-static .mfg-svg { max-width: 560px; }

.mfg-svg text { font-family: "Space Mono", ui-monospace, monospace; fill: var(--mfg-ink); }
.mfg-svg .mfg-ax-title { fill: var(--mfg-mute); }
.mfg-svg .mfg-tick { fill: var(--mfg-mute); }
.mfg-svg .mfg-grid { stroke: var(--mfg-rule); stroke-width: 1; }
.mfg-svg .mfg-minor { stroke: var(--mfg-mute); stroke-width: 1; }
.mfg-svg .mfg-axis { stroke: var(--mfg-ink); stroke-width: 1; }
.mfg-svg .mfg-band { fill: var(--mfg-band); stroke: none; }
.mfg-svg .mfg-edge { fill: none; stroke: var(--mfg-ink); stroke-width: 1; }
.mfg-svg .mfg-p { stroke: var(--mfg-ink); stroke-width: 1; stroke-dasharray: 4 4; }
.mfg-svg .mfg-plab { fill: var(--mfg-mute); paint-order: stroke; stroke: var(--mfg-paper); stroke-width: 4px; stroke-linejoin: round; }
.mfg-svg .mfg-mark { stroke: var(--mfg-ink); stroke-width: 2; }
.mfg-svg .mfg-mark-out { fill: var(--mfg-paper); stroke: var(--mfg-ink); stroke-width: 2; }
.mfg-svg .mfg-cur { stroke: var(--mfg-red); stroke-width: 3; stroke-linecap: square; }
.mfg-svg .mfg-out { fill: var(--mfg-paper); stroke: var(--mfg-red); stroke-width: 3; }
.mfg-svg .mfg-mlab { fill: var(--mfg-red); font-weight: 700; paint-order: stroke; stroke: var(--mfg-paper); stroke-width: 4px; stroke-linejoin: round; }

/* controls */
.mfg-controls { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 700px) { .mfg-controls { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.mfg-control label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem;
  font-size: 0.95rem; line-height: 1.35;
}
.mfg-control output { font: 700 1rem/1 "Space Mono", ui-monospace, monospace; white-space: nowrap; }
.mfg-ticks {
  display: flex; justify-content: space-between;
  margin: 0 22px; padding: 0; list-style: none;
  font: 400 0.75rem/1.2 "Space Mono", ui-monospace, monospace; color: var(--mfg-mute);
}
.mfg-ticks li { width: 0; display: flex; justify-content: center; white-space: nowrap; }

/* range input: 44px thumb hit area, 20px visible dot */
.mfg input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 44px; margin: 0.25rem 0 0;
  background: transparent; cursor: pointer;
}
.mfg input[type="range"]:focus { outline: none; }
.mfg input[type="range"]:focus-visible { outline: 2px solid var(--mfg-red); outline-offset: 2px; }
.mfg input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--mfg-ink); border-radius: 2px; }
.mfg input[type="range"]::-moz-range-track { height: 4px; background: var(--mfg-ink); border-radius: 2px; }
.mfg input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 44px; height: 44px; margin-top: -20px;
  border: 11px solid transparent; border-radius: 50%;
  background: var(--mfg-red); background-clip: padding-box;
  box-shadow: inset 0 0 0 3px var(--mfg-paper);
}
.mfg input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; box-sizing: border-box;
  border: 11px solid transparent; border-radius: 50%;
  background: var(--mfg-red); background-clip: padding-box;
}
.mfg input[data-mfg="p"]::-webkit-slider-thumb { background-color: var(--mfg-ink); }
.mfg input[data-mfg="p"]::-moz-range-thumb { background-color: var(--mfg-ink); }

/* static fallback table */
.mfg-table { width: 100%; max-width: 560px; margin-top: 1rem; border-collapse: collapse; font-size: 0.95rem; }
.mfg-table caption { text-align: left; font-size: 0.85rem; color: var(--mfg-mute); padding-bottom: 0.4rem; }
.mfg-table th, .mfg-table td { text-align: left; padding: 0.45rem 0.5rem 0.45rem 0; border-bottom: 1px solid var(--mfg-rule); vertical-align: top; }
.mfg-table td:first-child, .mfg-table th:first-child { font-family: "Space Mono", ui-monospace, monospace; white-space: nowrap; }

.mfg figcaption { margin-top: 1rem; font-size: 0.9rem; line-height: 1.5; color: var(--mfg-ink); }
.mfg figcaption p { margin: 0 0 0.5rem; }
.mfg figcaption .mfg-vendor { color: var(--mfg-mute); }

.mfg [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .mfg *, .mfg *::before, .mfg *::after { transition: none !important; animation: none !important; }
}

/* /pr/ page boxes (checklist, email) and static bars */
.box { border: 2px solid #161616; background: #fff; padding: 1.1rem 1.25rem; margin: 1.25rem 0 1.75rem; border-radius: 6px; overflow-wrap: anywhere; }
.box ol, .box ul { margin: 0.5rem 0 0.5rem 1.25rem; padding: 0; }
.box li { margin: 0.35rem 0; }
.box p { margin: 0.4rem 0; }
.box .box-meta { font-family: "Space Mono", ui-monospace, monospace; font-size: 0.8rem; color: #5c5a55; }
article h3[id^="q"] { margin-top: 2rem; }
.bars { margin: 1.5rem 0 1.75rem; padding: 0; }
.bars figcaption { margin-bottom: 0.75rem; }
.bar { display: grid; grid-template-columns: 6.5rem 1fr 3rem; align-items: center; gap: 0.6rem; margin: 0.35rem 0; }
.bar-label { font-size: 0.95rem; }
.bar-track { height: 1.1rem; background: #ebe8e1; border-radius: 3px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: #161616; }
.bar-ref .bar-fill { background: #8a8780; }
.bar-value { font-family: "Space Mono", ui-monospace, monospace; font-size: 0.9rem; text-align: right; }
.bar-source { font-family: "Space Mono", ui-monospace, monospace; font-size: 0.78rem; color: #5c5a55; margin-top: 0.6rem; }
@media (max-width: 420px) { .bar { grid-template-columns: 5.5rem 1fr 2.6rem; } }
/* keep the site's list styling out of the graph's slider ticks */
.mfg .mfg-ticks { list-style: none; padding: 0; margin: 0 22px; }
.mfg .mfg-ticks li { padding: 0; margin: 0; border: 0; text-decoration: none; font: 400 0.75rem/1.2 "Space Mono", ui-monospace, monospace; color: #5c5a55; }
.mfg .mfg-ticks li::before, .mfg .mfg-ticks li::after { content: none !important; display: none !important; }
/* Graph B · "How far to trust your own log" · append to /assets/pr.css
   Relies on the site's Space Grotesk / Space Mono @font-face. No transitions, no animation. */
.mft {
  --mft-paper: #f9f8f5;
  --mft-ink: #161616;
  --mft-red: #c8231b;
  --mft-mute: #5c5a55;
  --mft-rule: #d9d6cf;
  --mft-band: rgba(22, 22, 22, 0.16);
  margin: 2.5rem 0;
  padding: 0;
  color: var(--mft-ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.mft-eyebrow {
  margin: 0 0 0.4rem;
  font: 400 0.75rem/1.4 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mft-red);
}
.mft-title { margin: 0 0 0.6rem; font-size: 1.35rem; line-height: 1.25; font-weight: 500; }
.mft-intro { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.5; }

/* controls */
.mft-controls { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .mft-controls { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.mft-lab { display: block; font-size: 0.95rem; line-height: 1.35; margin-bottom: 0.2rem; }
.mft-pair { display: flex; align-items: center; gap: 0.75rem; }
.mft-pair input[type="range"] { flex: 1 1 auto; min-width: 0; }
.mft input[type="number"] {
  flex: 0 0 auto; width: 4.6rem; height: 44px; box-sizing: border-box;
  padding: 0 0.5rem; margin: 0;
  font: 700 1.1rem/1 "Space Mono", ui-monospace, monospace; color: var(--mft-ink);
  background: #fff; border: 2px solid var(--mft-ink); border-radius: 0;
}
.mft input[type="number"]:focus { outline: none; }
.mft input[type="number"]:focus-visible { outline: 2px solid var(--mft-red); outline-offset: 2px; }

/* range input: 44px hit area, 22px visible dot */
.mft input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; height: 44px; margin: 0;
  background: transparent; cursor: pointer;
}
.mft input[type="range"]:focus { outline: none; }
.mft input[type="range"]:focus-visible { outline: 2px solid var(--mft-red); outline-offset: 2px; }
.mft input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--mft-ink); border-radius: 2px; }
.mft input[type="range"]::-moz-range-track { height: 4px; background: var(--mft-ink); border-radius: 2px; }
.mft input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 44px; height: 44px; margin-top: -20px;
  border: 11px solid transparent; border-radius: 50%;
  background: var(--mft-ink); background-clip: padding-box;
  box-shadow: inset 0 0 0 3px var(--mft-paper);
}
.mft input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; box-sizing: border-box;
  border: 11px solid transparent; border-radius: 50%;
  background: var(--mft-ink); background-clip: padding-box;
}
.mft input[data-mft="k-range"]::-webkit-slider-thumb { background-color: var(--mft-red); }
.mft input[data-mft="k-range"]::-moz-range-thumb { background-color: var(--mft-red); }

/* readout */
.mft-readout { margin: 1.5rem 0 0; font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
.mft-sub { margin: 0.35rem 0 1rem; font: 400 0.8rem/1.5 "Space Mono", ui-monospace, monospace; color: var(--mft-mute); }

/* the bar */
.mft-scale { position: relative; padding: 0; }
.mft-row { position: relative; height: 1.6rem; }
.mft-row > span { position: absolute; top: 0; white-space: nowrap; }
.mft-row-range > span { font: 700 1rem/1.6rem "Space Mono", ui-monospace, monospace; color: var(--mft-ink); }
.mft-row-obs > span { font: 700 0.9rem/1.6rem "Space Mono", ui-monospace, monospace; color: var(--mft-red); }
.mft-axis { height: 1.4rem; }
.mft-axis > span { font: 400 0.75rem/1.4rem "Space Mono", ui-monospace, monospace; color: var(--mft-mute); }
.mft-track {
  position: relative; height: 32px; margin: 0.2rem 0;
  background: #fff; border: 1px solid var(--mft-ink); box-sizing: border-box;
}
.mft-grid { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--mft-rule); }
.mft-range {
  position: absolute; top: 0; bottom: 0;
  background: var(--mft-band);
  box-shadow: inset 2px 0 0 var(--mft-ink), inset -2px 0 0 var(--mft-ink);
}
.mft-point {
  position: absolute; top: -8px; bottom: -8px; width: 4px; margin-left: -2px;
  background: var(--mft-red);
}

/* static fallback table */
.mft-table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
.mft-table caption { text-align: left; font-size: 0.85rem; color: var(--mft-mute); padding-bottom: 0.4rem; }
.mft-table th, .mft-table td { text-align: left; padding: 0.45rem 0.5rem 0.45rem 0; border-bottom: 1px solid var(--mft-rule); vertical-align: top; }
.mft-table td:first-child { font-family: "Space Mono", ui-monospace, monospace; white-space: nowrap; }

.mft figcaption { margin-top: 1rem; font-size: 0.9rem; line-height: 1.5; }
.mft figcaption > p { margin: 0 0 0.5rem; }
.mft-formula { border-top: 1px solid var(--mft-rule); }
.mft-formula summary {
  min-height: 44px; display: flex; align-items: center; cursor: pointer;
  font-weight: 500; list-style-position: inside;
}
.mft-formula summary:focus { outline: none; }
.mft-formula summary:focus-visible { outline: 2px solid var(--mft-red); outline-offset: 2px; }
.mft-formula p { margin: 0 0 0.6rem; }
.mft-math { font-family: "Space Mono", ui-monospace, monospace; font-size: 0.85rem; overflow-wrap: anywhere; }
.mft var { font-style: italic; }

.mft [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .mft *, .mft *::before, .mft *::after { transition: none !important; animation: none !important; }
}
@media print {
  .mft-live { display: none !important; }
  .mft .mft-static, .mft .mft-static[hidden] { display: block !important; }
}

/* v2 toolkit page: question sets, notes, log line */
.qset { border: 2px solid #161616; background: #fff; border-radius: 6px; padding: 0.75rem 1.1rem; margin: 0.75rem 0 1.5rem; }
.qset ol { margin: 0.25rem 0 0.25rem 1.1rem; padding: 0; }
.qset li { margin: 0.6rem 0; }
.shows { display: block; color: #5c5a55; font-size: 0.88rem; line-height: 1.4; margin-top: 0.15rem; }
pre.logline { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; font-size: 0.8rem; background: #fff; border: 1px solid #d9d6cf; padding: 0.6rem 0.8rem; border-radius: 4px; }

/* /pr/ hub doors: three equal buttons, stacked, full width */
.pr-doors { display: grid; gap: 0.75rem; margin: 1.5rem 0 2.25rem; }
.pr-door { display: block; border: 2px solid #161616; border-left: 6px solid var(--red, #E4322B); background: #fff; border-radius: 6px; padding: 0.9rem 1.1rem; min-height: 44px; text-decoration: none; color: var(--ink, #17191B); }
.pr-door strong { display: block; font-size: 1.08rem; line-height: 1.35; font-weight: 600; }
.pr-door strong::after { content: " \2192"; color: var(--red-t, #C1271D); }
.pr-door span { display: block; margin-top: 0.25rem; font-size: 0.95rem; line-height: 1.45; color: var(--ink-2, #3E4043); }
.pr-door:hover strong, .pr-door:focus-visible strong { color: var(--red-t, #C1271D); }
.pr-door:focus-visible { outline: 2px solid var(--red-t, #C1271D); outline-offset: 2px; }
