/* pequalnp.com. Tokens from site/design/batch1/TOKENS.md.
   The rule: only checked looks like a result. Checked is solid, upright and green. A
   conjecture (and a lemma in work, which is one) is dashed and italic. Refuted is a red mark.
   Ruled dead is the black chip. No drop shadows on paper; glows live on the map only. */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/newsreader.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('../fonts/newsreader-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 400 600; font-display: swap; src: url('../fonts/inter-italic.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/jetbrains-mono.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-italic.woff2') format('woff2'); }

:root {
  --paper: #F6F4EF; --raised: #FFFFFF; --sunk: #ECE8DF; --sunk-2: #F1EEE7; --plain: #EFEBE2;
  --rule: #E2DED4; --rule-strong: #D6D1C5;
  --ink: #1B1A17; --ink-2: #4A463E; --ink-3: #6B665B; --ink-4: #8A857A; --ink-5: #B5AFA2; --ink-6: #C9C3B5;
  --green: #2F6B4F; --green-bg: #E6F0E9; --red: #A2321F; --red-bg: #F7E4E0; --live: #3DAA6E; --mid: #C2412D;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4.45vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); min-width: 320px; }
h1, h2, h3, p, ul, ol, dl, dd, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.map :focus-visible, .site-footer :focus-visible, .graph :focus-visible { outline-color: #EDEAE2; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.nowrap { white-space: nowrap; }
.it { font-style: italic; }
.num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.dot { color: var(--ink-5); margin: 0 0.6em; }
.icon { display: inline-flex; flex: none; }
.kicker { font: 600 11px/1.18 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-4); }
.kicker > span + span::before { content: '·'; margin: 0 1.1em; }
.kicker > span:empty { display: none; }

/* ---- Buttons, the toggle, the chips ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 6px; font: 600 14px/1.21 var(--sans); text-decoration: none; white-space: nowrap; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-outline { border: 1px solid var(--ink); }
.btn-block { display: flex; width: 100%; }
.plain-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border: 1px solid var(--rule-strong); border-radius: 999px; font: 500 13px/1.23 var(--sans); color: var(--ink-2); white-space: nowrap; }
.track { display: inline-block; width: 26px; height: 14px; border-radius: 999px; background: var(--rule-strong); position: relative; transition: background 0.15s; flex: none; }
.knob { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.plain-toggle[aria-checked='true'] { color: var(--ink); }
.plain-toggle[aria-checked='true'] .track, .track.mini { background: var(--ink); }
.plain-toggle[aria-checked='true'] .knob, .track.mini .knob { transform: translateX(12px); background: var(--paper); }
.plain-toggle.on-dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #EDEAE2; }
.plain-toggle.on-dark .track { background: rgba(255, 255, 255, 0.22); }
.plain-toggle.on-dark[aria-checked='true'] .track { background: #EDEAE2; }
.plain-toggle.on-dark[aria-checked='true'] .knob { background: #07080B; }

.chip { --chip-bg: transparent; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--chip-bg); font: 600 12px/1.25 var(--sans); white-space: nowrap; vertical-align: middle; }
.chip-checked { --chip-bg: var(--green-bg); color: var(--green); }
.chip-refuted { --chip-bg: var(--red-bg); color: var(--red); }
.chip-blocked { --chip-bg: var(--ink); color: var(--paper); }
.chip-conjecture, .chip-in_work { color: var(--ink-3); font-weight: 500; font-style: italic; border: 1px dashed var(--ink-4); padding: 3px 9px 3px 7px; }
.chip-died { color: var(--ink-3); font-weight: 500; border: 1px solid var(--rule-strong); padding: 3px 9px 3px 7px; }

.trouble { margin: 0; padding: 10px var(--gutter); background: var(--plain); color: var(--ink-2); font-size: 13px; }

/* ---- Header and footer ---- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--gutter); border-bottom: 1px solid var(--rule); position: relative; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; flex: 1 1 0; min-width: 0; }
.brand-mark { font: italic 500 22px/1 var(--serif); white-space: nowrap; }
.brand-tag { font-size: 13px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: flex; gap: 24px; font: 500 14px/1.21 var(--sans); color: var(--ink-2); }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 1 1 0; }
.site-actions .btn { padding: 9px 16px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 36px var(--gutter); background: var(--ink); color: #A9A396; font-size: 13px; }
.site-footer .dot { color: #6B665B; }
.foot-soon, .foot-credit { font-style: italic; }
.foot-credit { color: #6B665B; }
.foot-link { color: #D6D3CB; font-weight: 500; text-underline-offset: 3px; }

/* ---- Home: hero ---- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(40px, 6.7vw, 96px) var(--gutter) clamp(40px, 5vw, 72px); }
.verify-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--sunk); font-size: 13px; line-height: 1.23; color: var(--ink-2); }
.verify-pill .icon { color: var(--green); }
.hero-q { font: 400 clamp(76px, 11.67vw, 168px)/0.98 var(--serif); letter-spacing: -0.024em; margin-top: clamp(20px, 2.4vw, 34px); }
.hero-a { font: italic 400 clamp(40px, 4.45vw, 64px)/1 var(--serif); color: var(--ink-3); margin-top: clamp(18px, 2.4vw, 34px); }
.hero-counters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin-top: clamp(22px, 2.6vw, 38px); color: var(--ink-3); }
.hero-counters .num { font-size: 18px; color: var(--ink); margin-right: 6px; }
.hero-counters .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-5); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-5); margin-right: 10px; vertical-align: 1px; }
.live-dot.on, .live-dot.small { background: var(--live); box-shadow: 0 0 6px rgba(61, 170, 110, 0.5); }
.live-dot.on { animation: pulse 2.4s ease-in-out infinite; }
.live-dot.small { width: 6px; height: 6px; margin-right: 8px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(61, 170, 110, 0.14), 0 0 6px rgba(61, 170, 110, 0.5); } }
.tug { width: min(880px, 100%); margin-top: 32px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.tug-heads, .tug-notes { display: flex; justify-content: space-between; gap: 16px; }
.tug-heads { font: 600 13px/1.23 var(--sans); }
.tug-notes { font-size: 12px; line-height: 1.25; color: var(--ink-4); }
.tug-notes span + span, .tug-heads span + span { text-align: right; }
.tug-bar { display: flex; align-items: center; gap: 3px; height: 14px; }
.tug-neq, .tug-eq { align-self: stretch; flex: 1 0 0; min-width: 3px; transition: flex-grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tug-neq { background: var(--ink); border-radius: 3px 0 0 3px; }
.tug-eq { background: var(--ink-5); border-radius: 0 3px 3px 0; }
.tug-bar.empty .tug-neq, .tug-bar.empty .tug-eq { background: var(--rule); }
.tug-mark { width: 2px; height: 26px; background: var(--mid); flex: none; }
.tug-disclaimer { font-size: 12px; line-height: 1.25; font-style: italic; color: var(--ink-4); }
.hero-toggle { margin-top: 20px; background: var(--raised); }

/* ---- Home: the map ---- */
.map { position: relative; height: clamp(620px, 62.5vw, 900px); overflow: hidden; color: #EDEAE2; background: radial-gradient(75% 75% at 40% 50%, #0D1016 0%, #06070A 100%); }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-head { position: absolute; left: var(--gutter); top: clamp(28px, 4.4vw, 64px); right: var(--gutter); pointer-events: none; }
.map-head .kicker { color: #8B8F98; letter-spacing: 2.5px; font-size: 10px; }
.map-head h2 { font: 400 clamp(22px, 2.1vw, 30px)/1.15 var(--serif); margin-top: 10px; max-width: 26em; text-wrap: balance; }
.map-sub { font-size: 12px; font-style: italic; color: #8B8F98; margin-top: 10px; }
.map-back { pointer-events: auto; margin-top: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); font: 500 13px/1.23 var(--sans); color: #EDEAE2; }
.map-toggle { position: absolute; right: var(--gutter); top: clamp(28px, 4.4vw, 64px); }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.map-program { position: absolute; transform: translateX(-50%); pointer-events: auto; text-align: center; padding: 6px 10px; border-radius: 6px; background: rgba(6, 7, 10, 0.55); display: flex; flex-direction: column; gap: 5px; max-width: 300px; }
.map-program .name { font: 600 10px/1.2 var(--sans); letter-spacing: 2.5px; text-transform: uppercase; color: #EDEAE2; }
.map-program .sub { font: 400 10px/1.3 var(--mono); color: #5E636D; white-space: nowrap; }
.map-program.empty { background: none; cursor: default; }
.map-program.empty .name { color: #5E636D; }
.map-program.empty .sub { font: italic 400 10px/1.2 var(--sans); color: #3E434C; }
.map-program:not(.empty):hover .name { color: #FFD27A; }
.map-card { position: absolute; padding: 10px 12px; border-radius: 6px; background: rgba(6, 7, 10, 0.85); pointer-events: none; display: flex; flex-direction: column; gap: 5px; }
.map-card .id { font: 500 12px/1.3 var(--mono); color: #EDEAE2; white-space: nowrap; }
.map-card .id .dot { color: #5E636D; }
.map-card .id.is-conjecture, .map-card .id.is-in_work { font-style: italic; color: #8B8F98; }
.map-card .id.is-refuted { color: #E0705C; }
.map-card .id.is-blocked { color: #8B8F98; }
.map-card .id.is-ignite { color: #FFD27A; font-style: normal; }
.map-card .title { font-size: 12px; line-height: 1.35; color: #EDEAE2; }
.map-card .meta { font: italic 400 10px/1.3 var(--sans); color: #8B8F98; }
.map-legend { position: absolute; left: var(--gutter); bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 9px 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 11px; line-height: 1.2; color: #C9C3B5; max-width: calc(100% - 2 * var(--gutter)); }
.map-legend li { display: flex; align-items: center; gap: 7px; }
.map-legend .it { color: #8B8F98; }
.lg { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.lg-checked { background: #F3E9D2; box-shadow: 0 0 6px rgba(243, 233, 210, 0.6); }
.lg-conjecture { border: 1px dashed #8B8F98; }
.lg-agent { width: 12px; height: 2px; border-radius: 0; background: linear-gradient(90deg, transparent, #7FD1FF); }
.lg-refuted { border: 1.5px solid #C2412D; }
.lg-dead { border: 1.5px solid #5E636D; background: linear-gradient(#5E636D, #5E636D) center / 5px 1.5px no-repeat; }
.map-credit { position: absolute; right: var(--gutter); bottom: 14px; font-size: 10px; font-style: italic; color: #4A4F59; }

/* ---- Home: numbers strip ---- */
.numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding: 26px var(--gutter); background: var(--sunk); }
.counts { display: flex; flex-wrap: wrap; gap: 10px 48px; }
.counts > div { display: flex; align-items: baseline; gap: 12px; }
.counts dd { font-size: 28px; line-height: 1.32; order: -1; }
.counts dt { font-size: 13px; color: var(--ink-3); }
.numbers-side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font: 500 13px/1.23 var(--sans); }
.numbers-side a { text-underline-offset: 3px; }
.started { font: 400 12px/1.33 var(--mono); color: var(--ink-2); }

/* ---- Event rows: the record on home, the history on a lemma ---- */
.record { padding: clamp(56px, 7.8vw, 112px) var(--gutter) clamp(56px, 7.2vw, 104px); }
.record h2, .sponsors h2 { font: 400 clamp(34px, 3.9vw, 56px)/1.05 var(--serif); letter-spacing: -0.018em; }
.record-note { max-width: 46em; margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.record .events { margin-top: 28px; border-top: 1px solid var(--ink); }
.event { display: grid; grid-template-columns: 148px 132px minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.event .when { font: 400 13px/1.9 var(--mono); color: var(--ink-4); white-space: pre; }
.event .sentence { font: 400 20px/1.3 var(--serif); text-decoration: none; overflow-wrap: anywhere; }
.event .sentence:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.event .who { font: 400 12px/2 var(--mono); color: var(--ink-3); text-align: right; display: flex; flex-direction: column; }
.event .who .fund { font: 400 12px/1.4 var(--sans); color: var(--ink-4); }
.event h3 { font: 400 20px/1.25 var(--serif); }
.event .body p { margin-top: 6px; font-size: 15px; color: var(--ink-3); max-width: 38em; overflow-wrap: anywhere; }
.events-empty, .sponsors-empty, .none-yet { padding: 28px 0; font: italic 400 20px/1.4 var(--serif); color: var(--ink-3); }
.record [data-older] { margin-top: 28px; }

/* ---- Sponsors: the home section, the page, the today strip ---- */
.sponsors { padding: clamp(56px, 7.2vw, 104px) var(--gutter); background: var(--raised); border-top: 1px solid var(--rule); }
.sponsors h2 { font-size: clamp(30px, 3.05vw, 44px); letter-spacing: -0.011em; margin-top: 10px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 6px; background: var(--sunk-2); }
.seg button { padding: 6px 12px; border-radius: 4px; font: 600 12px/1.25 var(--sans); color: var(--ink-3); }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.seg.big { background: var(--sunk); padding: 4px; }
.seg.big button { padding: 9px 16px; font-size: 14px; font-weight: 500; }
.split { display: flex; gap: 64px; align-items: flex-start; }
.split-main { flex: 3 1 0; min-width: 0; }
.become { flex: 2 1 0; margin-top: 40px; padding: 28px; border-radius: 10px; background: var(--paper); display: flex; flex-direction: column; gap: 14px; }
.become h2, .become h3 { font: 400 30px/1.05 var(--serif); letter-spacing: 0; }
.become p { font-size: 14px; color: var(--ink-2); }
.become .mail { font: 400 12px/1.33 var(--mono); color: var(--ink-4); text-align: center; }
.become.raised { background: var(--raised); border: 1px solid var(--rule); margin-top: 0; padding: 32px; flex: none; width: min(456px, 100%); }
.sponsor { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 110px 110px; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.compact .sponsor { grid-template-columns: minmax(0, 195px) minmax(0, 1fr) 64px 100px; padding: 16px 0; }
.sponsor .name { font: 400 clamp(22px, 2vw, 28px)/1.1 var(--serif); overflow-wrap: anywhere; }
.compact .sponsor .name { font-size: 22px; }
.sponsor .name.anon { font-style: italic; color: var(--ink-3); }
.sponsor .note { font-size: 15px; font-style: italic; color: var(--ink-4); overflow-wrap: anywhere; }
.compact .sponsor .note { font-size: 12px; }
.sponsor .note.none::before { content: ''; display: block; width: 14px; border-top: 1px solid var(--ink-6); }
.sponsor .when { font: 400 13px/1.33 var(--mono); color: var(--ink-4); white-space: nowrap; }
.compact .sponsor .when { font-size: 12px; }
.sponsor .amount { font: 500 clamp(15px, 1.35vw, 18px)/1.33 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.compact .sponsor .amount { font-size: 15px; }
.list-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font: 600 13px/1.23 var(--sans); }
.list-foot .note { font-weight: 400; font-style: italic; color: var(--ink-4); font-size: 12px; }
.today { display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter); background: var(--sunk-2); border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.today .kicker { flex: none; }
.today p { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; }
.today .amt { margin-left: 8px; }
.today .more { margin-left: 16px; color: var(--ink-4); font-style: italic; }
.sp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px 64px; padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(32px, 3.9vw, 56px); }
.sp-intro { flex: 1 1 520px; max-width: 840px; }
.sp-head h1, .lemma-title, .lemma-missing h1 { font: 400 clamp(38px, 4.45vw, 64px)/1.05 var(--serif); letter-spacing: -0.023em; }
.sp-head h1 { margin-top: 14px; }
.lead { font: 400 clamp(18px, 1.55vw, 22px)/1.45 var(--serif); color: var(--ink-2); margin-top: 20px; }
.sp-list { padding: clamp(32px, 3.4vw, 48px) var(--gutter) clamp(48px, 5vw, 72px); }
.sp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.order { display: flex; align-items: center; gap: 16px; }
.sp-summary { font: 400 13px/1.33 var(--mono); color: var(--ink-4); white-space: pre-wrap; }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 14px; color: var(--ink-4); }
.pager div { display: flex; gap: 20px; }
.pager button { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; }
.pager button:disabled { color: var(--ink-5); text-decoration: none; font-weight: 400; cursor: default; }

/* ---- Lemma ---- */
.lemma { padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(48px, 5vw, 72px); min-height: 60vh; }
.lemma-wait { color: var(--ink-4); font-style: italic; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--ink-2); }
.crumbs a { text-underline-offset: 3px; }
.crumbs .slash { color: var(--ink-5); }
.crumbs .here { font: 400 13px/1.3 var(--mono); color: var(--ink); }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-top: 30px; font-size: 14px; color: var(--ink-2); }
.status-line .chip { margin-right: 16px; }
.lemma-title { margin-top: 26px; max-width: 17em; text-wrap: balance; }
.lemma-title.open { font-style: italic; color: var(--ink-2); }
.plain-block { display: none; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 36px; padding: 16px 20px; border-radius: 8px; background: var(--plain); }
[data-plain='on'] .plain-block { display: flex; }
.plain-on { display: flex; align-items: center; gap: 10px; font: 600 13px/1.23 var(--sans); white-space: nowrap; }
.plain-text { flex: 1 1 320px; font-size: 16px; color: var(--ink-2); }
.lemma-cols { display: flex; gap: 48px; align-items: flex-start; margin-top: 48px; }
.lemma-main { flex: 3 1 0; min-width: 0; }
.lemma-side { flex: 2 1 0; min-width: 0; }
.lemma-main > .kicker { margin: 36px 0 16px; }
.lemma-main > .kicker:first-child { margin-top: 0; }
.lean { padding: 24px; border-radius: 8px; background: var(--ink); color: #EDEAE2; font: 400 14px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.lean.open { background: none; color: var(--ink-2); border: 1px dashed var(--ink-4); font-style: italic; }
.checker { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; padding: 18px 20px; border: 1px solid var(--green); border-radius: 8px; }
.checker.is-refuted { border-color: var(--red); }
.checker > .icon { color: var(--green); }
.checker.is-refuted > .icon { color: var(--red); }
.run { flex: 1 1 260px; min-width: 0; }
.run-main { font: 400 14px/1.4 var(--mono); overflow-wrap: anywhere; }
.run-main span:last-child { white-space: nowrap; }
.run-meta { font: 400 12px/1.5 var(--mono); color: var(--ink-3); margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.verify-note { margin-top: 12px; font-size: 12px; color: var(--ink-4); max-width: 52em; }
.verdict { margin-top: 28px; padding: 18px 20px; border-radius: 8px; font-size: 15px; }
.verdict .kicker { margin-bottom: 8px; }
.verdict.refuted { background: var(--red-bg); color: #5C1D12; }
.verdict.refuted .kicker { color: var(--red); }
.verdict.dead { background: var(--ink); color: #D6D3CB; }
.history .event { grid-template-columns: 136px 132px minmax(0, 1fr) auto; }
.lemma-side .kicker { margin-bottom: 16px; }
.graph { position: relative; border-radius: 10px; background: radial-gradient(70% 70% at 50% 50%, #11141B 0%, #07080B 100%); color: #EDEAE2; overflow: hidden; }
.graph-heads { position: absolute; inset: 28px 36px auto; display: flex; justify-content: space-between; font: 600 9px/1.2 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: #8B8F98; white-space: pre; }
.graph-svg { display: block; width: 100%; height: auto; }
.graph-svg text { font: 400 13px var(--mono); fill: #EDEAE2; }
.graph-svg .edge { stroke: #2A2F38; stroke-width: 1; stroke-dasharray: 2 5; }
.graph-svg .edge.solid { stroke: #3A404B; stroke-width: 1.25; stroke-dasharray: none; }
.graph-svg .edge.lit { stroke: #B88A3A; }
.graph-svg .edge.refuted { stroke: #4A2622; stroke-dasharray: 3 4; }
.gnode .hit { fill: transparent; }
.gnode .dot { fill: none; stroke: #8B8F98; stroke-width: 1; stroke-dasharray: 2 2; }
.gnode.is-conjecture text, .gnode.is-in_work text { font-style: italic; fill: #8B8F98; }
.gnode.is-checked .dot { fill: #F3E9D2; stroke: none; filter: drop-shadow(0 0 5px rgba(243, 233, 210, 0.6)); }
.gnode.is-refuted .dot { fill: #07080B; stroke: #C2412D; stroke-width: 1.5; stroke-dasharray: none; }
.gnode.is-refuted text { fill: #E0705C; }
.gnode.is-blocked .dot { fill: #07080B; stroke: #5E636D; stroke-width: 1.5; stroke-dasharray: none; }
.gnode.is-blocked text { fill: #8B8F98; }
.gnode .mark { stroke: #C2412D; stroke-width: 1.5; fill: none; }
.gnode.is-blocked .mark { stroke: #5E636D; }
.gnode:hover text, .gnode:focus-visible text { fill: #FFD27A; }
.gnode .ring { fill: none; stroke: #F2B84B; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring 1.8s ease-out 3; }
.gnode .ring.r2 { animation-delay: 0.3s; }
@keyframes ring { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(5); } }
.graph-svg .halo { fill: none; }
.graph-svg .halo.is-checked { fill: rgba(242, 184, 75, 0.16); filter: blur(12px); }
.graph-svg .this { fill: none; stroke: #8B8F98; stroke-dasharray: 2 2; }
.graph-svg .this.is-checked { fill: #FFF4D6; stroke: none; filter: drop-shadow(0 0 12px #F2B84B); }
.graph-svg .this.is-refuted { fill: #07080B; stroke: #C2412D; stroke-width: 2; stroke-dasharray: none; }
.graph-svg .this.is-blocked { fill: #07080B; stroke: #5E636D; stroke-width: 2; stroke-dasharray: none; }
.graph-svg .this-label { fill: #FFD27A; }
.graph-svg .more { fill: #5E636D; font-style: italic; }
.graph-credit { position: absolute; right: 36px; bottom: 16px; font-size: 10px; font-style: italic; color: #4A4F59; }
.graph-note { margin-top: 14px; font-size: 13px; font-style: italic; color: var(--ink-4); }
.lemma-missing { padding: 40px 0; display: flex; flex-direction: column; gap: 20px; }
.lean-id { font: 400 14px var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }

/* ---- What this is and is not ---- */
.about { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 6.7vw, 96px) var(--gutter) clamp(48px, 5vw, 72px); }
.about h1 { font: 400 clamp(36px, 3.9vw, 56px)/1.1 var(--serif); letter-spacing: -0.018em; margin-top: 16px; text-wrap: balance; }
.about h2 { font: 400 30px/1.1 var(--serif); margin-top: 56px; }
.read { font: 400 20px/1.55 var(--serif); color: var(--ink-2); margin-top: 14px; }
.states { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.states li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.states .it { color: var(--ink-3); }
.is-not { margin: 56px 0; padding: 32px; border-radius: 10px; background: var(--raised); border: 1px solid var(--rule); }
.is-not h2 { margin-top: 0; }
.is-not ul { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.is-not li { position: relative; padding-left: 30px; }
.is-not li::before, .is-not li::after { content: ''; position: absolute; left: 1px; top: 11px; width: 18px; border-top: 1.5px solid var(--mid); transform: rotate(45deg); }
.is-not li::after { transform: rotate(-45deg); }
.about .soon { font-size: 14px; font-style: italic; color: var(--ink-4); margin-top: 10px; }

/* Pieces that exist for one width only. */
.narrow-only, .site-nav .menu-only { display: none; }

/* ---- Narrower than the desktop frame ---- */
@media (max-width: 1080px) {
  .split, .lemma-cols { flex-direction: column; gap: 40px; }
  .split-main, .become, .lemma-main, .lemma-side { flex: none; width: 100%; }
  .become { margin-top: 0; }
  .brand-tag { display: none; }
}
@media (max-width: 760px) {
  .wide-only { display: none !important; }
  .narrow-only, .hero .narrow-only { display: inline-flex; }
  .menu-btn { display: inline-flex; }
  .site-header { padding: 10px var(--gutter); }
  .brand-mark { font-size: 20px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; flex-direction: column; gap: 0; padding: 4px var(--gutter) 16px; background: var(--paper); border-bottom: 1px solid var(--rule); font-size: 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .site-nav .menu-only { display: flex; }
  .site-nav .plain-toggle { align-self: flex-start; margin-top: 16px; }
  .verify-pill { background: none; padding: 0; text-align: center; display: block; color: var(--ink-3); }
  .verify-pill .icon { display: none; }
  .hero-counters { flex-direction: column; font: 400 13px/1.4 var(--mono); }
  .hero-counters .num { font-size: 13px; font-weight: 400; margin-right: 0; }
  .hero-counters .sep { display: none; }
  .tug-notes, .map-sub, .tug-heads span:first-child::before { font-size: 11px; }
  .tug-notes { flex-direction: column; gap: 2px; }
  .tug-notes span + span { text-align: left; }
  .tug-bar { height: 10px; }
  .tug-mark { height: 20px; }
  .map-legend { bottom: 34px; padding: 7px 10px; gap: 6px 12px; font-size: 10px; }
  .map-labels { display: none; }
  .numbers { flex-direction: column; align-items: flex-start; }
  .counts { gap: 4px 24px; }
  .counts dd { font-size: 20px; }
  .event, .history .event { grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; }
  .event .when { grid-column: 1 / -1; line-height: 1.3; font-size: 12px; }
  .event .sentence, .event .body { grid-column: 1 / -1; }
  .event .sentence, .event h3 { font-size: 18px; }
  .event .who { grid-row: 2; grid-column: 2; text-align: right; line-height: 1.9; }
  .sponsor, .compact .sponsor { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; }
  .sponsor .name, .compact .sponsor .name { font-size: 18px; }
  .sponsor .amount { grid-column: 2; grid-row: 1; }
  .sponsor .note { grid-column: 1 / -1; font-size: 12px; }
  .sponsor .note.none, .compact .sponsor .when { display: none; }
  .sponsor .when { grid-column: 1 / -1; font-size: 11px; }
  .compact .sponsor .note { display: none; }
  .today { flex-direction: column; align-items: flex-start; gap: 8px; }
  .today p { white-space: normal; flex: none; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .checker .btn { width: 100%; }
  .graph-heads { inset: 16px 16px auto; }
  .graph-svg text { font-size: 20px; }
  .about h2 { font-size: 26px; }
  .read { font-size: 18px; }
  .is-not { padding: 22px; }
}

/* Reduced motion: every state change is a plain change. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
