/* /openai-math-explorer: an explorer for OpenAI's mathematics release.
   Set like a journal index: STIX Two Text for reading (it sits naturally beside
   KaTeX's Computer Modern), IBM Plex Sans for interface text and figures, blue-
   black ink on white, and the teal link ink of OpenAI's own catalog PDF. The
   five area hues were validated as a set (all pairs, light surface); the map
   also gives every area its own marker shape so color is never the only cue. */

.om {
  --om-paper: #ffffff;
  --om-wash: #f4f5f7;
  --om-ink: #1d2433;
  --om-ink-2: #454d5e;
  --om-muted: #677083;
  --om-rule: #dde1e7;
  --om-rule-strong: #c3c9d2;
  --om-link: #275b59;
  --om-link-hover: #163c3a;
  --om-focus: #2563c7;
  --om-highlight: #fff3c4;
  --om-algebra: #2563c7;
  --om-analysis: #e04f39;
  --om-geometry: #14a37f;
  --om-discrete: #b0428f;
  --om-probability: #b8960a;
  --om-serif: "STIX Two Text", "STIX Two", Cambria, "Times New Roman", serif;
  --om-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --om-measure: 68ch;

  background: var(--om-paper);
  color: var(--om-ink);
  font-family: var(--om-serif);
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

.om *:focus-visible {
  outline: 2px solid var(--om-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.om :where(a) {
  color: var(--om-link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--om-link) 35%, transparent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
/* Links that open a new tab (every link off the site) end in an arrow. The
   empty alt text keeps screen readers from announcing it. */
.om a[target="_blank"]::after {
  content: "\2197";
  content: "\2197" / "";
  display: inline-block;
  margin-left: 0.12em;
  font-size: 0.82em;
  font-family: var(--om-sans);
  text-decoration: none;
}
.om :where(a):hover {
  color: var(--om-link-hover);
  text-decoration-color: currentColor;
}

.om :where(p, blockquote, figure, ol, ul, dl, dd) { margin: 0; }
.om :where(h1, h2, h3) { margin: 0; font-weight: 600; letter-spacing: -0.005em; }

.om .katex { font-size: 1.05em; }
.om .math-display { display: block; overflow-x: auto; padding: 0.25em 0; }
.om .math-fallback { font-size: 0.85em; }

.om-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Form controls ---------- */

.om-search { position: relative; }
.om-search input {
  width: 100%;
  font-family: var(--om-sans);
  font-size: 16px;
  color: var(--om-ink);
  background: var(--om-paper);
  border: 1px solid var(--om-rule-strong);
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  box-shadow: none;
}
.om-search input::placeholder { color: var(--om-muted); }
.om-search-with-button { display: flex; gap: 8px; }
.om-search-with-button input { flex: 1; min-width: 0; }
.om-search-button {
  flex: none;
  font-family: var(--om-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--om-paper);
  background: var(--om-ink);
  border: 1px solid var(--om-ink);
  border-radius: 6px;
  padding: 0 18px;
  cursor: pointer;
}
.om-search-button:hover { background: #2f394d; }
.om-search input:focus { border-color: var(--om-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--om-focus) 18%, transparent); }

.om-button {
  font-family: var(--om-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--om-ink);
  background: var(--om-paper);
  border: 1px solid var(--om-rule-strong);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.om-button:hover { border-color: var(--om-ink-2); }
.om-button[aria-pressed="false"] { color: var(--om-muted); border-style: dashed; background: var(--om-wash); }
.om-button[aria-pressed="false"] .om-shape { opacity: 0.3; }

/* ---------- Hero ---------- */

.om-hero {
  border-bottom: 1px solid var(--om-rule);
}
.om-hero .om-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 36px;
  align-items: start;
}
.om-hero h1 {
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 600;
  max-width: 17ch;
}
.om-lede {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--om-ink-2);
  max-width: 46ch;
}
.om-hero .om-search { margin-top: 26px; max-width: 460px; }
.om-hero-hint {
  margin-top: 10px;
  font-family: var(--om-sans);
  font-size: 13.5px;
  color: var(--om-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: baseline;
}
.om-hero-hint a { font-size: 13.5px; }

.om-ledger {
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--om-rule);
  max-width: 480px;
}
.om-ledger div {
  padding: 12px 0;
  border-bottom: 1px solid var(--om-rule);
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}
.om-ledger div:nth-child(odd) { padding-right: 16px; }
.om-ledger dt {
  font-family: var(--om-sans);
  font-size: 13px;
  color: var(--om-muted);
  line-height: 1.35;
}
.om-ledger dd {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-feature-settings: "tnum";
}

/* ---------- Map ---------- */

.om-map-figure { margin: 0; }
.om-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.86;
  touch-action: manipulation;
}
.om-map svg { width: 100%; height: 100%; display: block; overflow: visible; }
.om-map .om-mark { cursor: pointer; transition: opacity 120ms ease; }
.om-map .om-mark path { stroke: var(--om-paper); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.om-map[data-filtered] .om-mark:not([data-on]) { opacity: 0.12; }
.om-map .om-mark[data-current] path { stroke: var(--om-ink); stroke-width: 2.5; }
.om-mini-map .om-mark path { transform-box: fill-box; transform-origin: center; }
.om-mini-map .om-mark[data-on] path { transform: scale(1.9); }
.om-mini-map .om-mark[data-current] path { transform: scale(2.4); stroke-width: 2; }
.om-mini-map .om-map[data-filtered] .om-mark:not([data-on]) { opacity: 0.18; }
.om-map-label {
  font-family: var(--om-sans);
  font-size: 13px;
  font-weight: 500;
  fill: var(--om-ink-2);
  paint-order: stroke;
  stroke: var(--om-paper);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
}
.om-map-caption {
  margin-top: 12px;
  font-family: var(--om-sans);
  font-size: 13px;
  color: var(--om-muted);
  line-height: 1.5;
}
.om-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.om-shape { width: 12px; height: 12px; flex: none; display: inline-block; }
.om-shape svg { width: 12px; height: 12px; display: block; }

.om-tooltip {
  position: absolute;
  z-index: 40;
  pointer-events: none;
  background: var(--om-ink);
  color: #fff;
  font-family: var(--om-sans);
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 6px;
  max-width: 280px;
  box-shadow: 0 4px 14px rgba(29, 36, 51, 0.18);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 90ms ease, transform 90ms ease;
}
.om-tooltip[data-visible] { opacity: 1; transform: none; }
.om-tooltip strong { display: block; font-weight: 600; font-size: 13.5px; }
.om-tooltip .katex { font-size: 1em; }
.om-tooltip span { color: #c7ccd6; }

/* ---------- Sections (margin-heading layout) ---------- */

.om-section {
  border-bottom: 1px solid var(--om-rule);
  padding: 48px 0;
}
.om-section .om-wrap {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
}
.om-section-head h2 {
  font-size: 23px;
  line-height: 1.2;
}
.om-section-head p {
  margin-top: 10px;
  font-family: var(--om-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--om-muted);
}
.om-section-head p + p { margin-top: 8px; }
.om-prose { max-width: var(--om-measure); }
.om-prose p + p { margin-top: 0.8em; }
.om-note {
  font-family: var(--om-sans);
  font-size: 13.5px;
  color: var(--om-muted);
  line-height: 1.5;
}

/* ---------- Charts ---------- */

.om-chart { font-family: var(--om-sans); font-size: 13px; color: var(--om-ink-2); position: relative; }
.om-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.om-chart text { fill: var(--om-ink-2); font-family: var(--om-sans); }
.om-chart .om-axis text { fill: var(--om-muted); font-size: 12px; }
.om-chart .om-grid line { stroke: var(--om-rule); stroke-width: 1; }
.om-chart .om-baseline { stroke: var(--om-rule-strong); stroke-width: 1; }
.om-chart [data-tip] { cursor: default; }
.om-chart [data-tip]:hover { filter: brightness(0.92); }
.om-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--om-sans);
  font-size: 13px;
  color: var(--om-ink-2);
  margin-bottom: 14px;
}
.om-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.om-swatch { width: 11px; height: 11px; border-radius: 2px; display: inline-block; flex: none; }
.om-swatch-light { opacity: 1; }

.fill-algebra { fill: var(--om-algebra); background: var(--om-algebra); }
.fill-analysis { fill: var(--om-analysis); background: var(--om-analysis); }
.fill-geometry { fill: var(--om-geometry); background: var(--om-geometry); }
.fill-discrete { fill: var(--om-discrete); background: var(--om-discrete); }
.fill-probability { fill: var(--om-probability); background: var(--om-probability); }
.fill-algebra-light { fill: color-mix(in srgb, var(--om-algebra) 26%, white); background: color-mix(in srgb, var(--om-algebra) 26%, white); }
.fill-analysis-light { fill: color-mix(in srgb, var(--om-analysis) 26%, white); background: color-mix(in srgb, var(--om-analysis) 26%, white); }
.fill-geometry-light { fill: color-mix(in srgb, var(--om-geometry) 26%, white); background: color-mix(in srgb, var(--om-geometry) 26%, white); }
.fill-discrete-light { fill: color-mix(in srgb, var(--om-discrete) 26%, white); background: color-mix(in srgb, var(--om-discrete) 26%, white); }
.fill-probability-light { fill: color-mix(in srgb, var(--om-probability) 26%, white); background: color-mix(in srgb, var(--om-probability) 26%, white); }
.fill-ink { fill: var(--om-ink-2); background: var(--om-ink-2); }

.om-subject-table { width: 100%; border-collapse: collapse; font-family: var(--om-sans); font-size: 14px; }
.om-subject-table th { text-align: left; font-weight: 500; color: var(--om-muted); font-size: 12.5px; padding: 0 10px 8px 0; border-bottom: 1px solid var(--om-rule); }
.om-subject-table td { padding: 5px 10px 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--om-rule) 60%, transparent); vertical-align: middle; }
.om-subject-table td.om-num { text-align: right; font-feature-settings: "tnum"; color: var(--om-ink-2); width: 1%; white-space: nowrap; }
.om-subject-table th.om-num { text-align: right; }
.om-subject-table td.om-bar-cell { width: 46%; }
.om-subject-table a { color: var(--om-ink); text-decoration: none; }
.om-subject-table a:hover { text-decoration: underline; }
.om-bar { display: flex; gap: 2px; height: 14px; align-items: stretch; }
.om-bar i { display: block; height: 100%; }
.om-bar i:first-child { border-radius: 0; }
.om-bar i:last-child { border-radius: 0 3px 3px 0; }

.om-two-col { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.om-list-plain { list-style: none; padding: 0; margin: 0; }
.om-ranked li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid var(--om-rule); }
.om-ranked li:first-child { border-top: 1px solid var(--om-rule); }
.om-ranked .om-figure { font-family: var(--om-sans); font-feature-settings: "tnum"; font-size: 15px; color: var(--om-ink); text-align: right; }
.om-ranked .om-figure small { display: block; font-size: 11.5px; color: var(--om-muted); }
.om-ranked a { line-height: 1.35; }
.om-ranked .om-meta { grid-column: 2; }

.om-proportion { display: flex; gap: 2px; height: 30px; margin: 4px 0 14px; }
.om-proportion i { display: block; height: 100%; }
.om-proportion i:first-child { border-radius: 4px 0 0 4px; }
.om-proportion i:last-child { border-radius: 0 4px 4px 0; }
.om-outcome-0 { background: #1d2433; fill: #1d2433; }
.om-outcome-1 { background: #4c5568; fill: #4c5568; }
.om-outcome-2 { background: #7b8496; fill: #7b8496; }
.om-outcome-3 { background: #a6adbb; fill: #a6adbb; }
.om-outcome-4 { background: #c8cdd6; fill: #c8cdd6; }
.om-outcome-5 { background: #e2e5ea; fill: #e2e5ea; }

/* ---------- Catalog entries ---------- */

.om-number {
  font-family: var(--om-sans);
  font-feature-settings: "tnum";
  font-weight: 500;
  color: var(--om-muted);
  letter-spacing: 0.01em;
}
.om-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.om-badge {
  font-family: var(--om-sans);
  font-size: 12px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid var(--om-rule-strong);
  color: var(--om-ink-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none !important;
}
.om-badge-lean { border-color: color-mix(in srgb, var(--om-link) 45%, white); color: var(--om-link); }
a.om-badge:hover { border-color: currentColor; }

.om-entries { list-style: none; padding: 0; margin: 0; }
.om-entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--om-rule);
}
.om-entry .om-number { font-size: 14px; padding-top: 3px; }
.om-entry-title { font-size: 18.5px; line-height: 1.35; }
.om-entry-title a { color: var(--om-ink); text-decoration: none; }
.om-entry-title a:hover { color: var(--om-link); text-decoration: underline; }
.om-entry-meta {
  margin-top: 5px;
  font-family: var(--om-sans);
  font-size: 13px;
  color: var(--om-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}
.om-entry-summary { margin-top: 6px; font-size: 16.5px; line-height: 1.5; color: var(--om-ink-2); max-width: var(--om-measure); }
.om-entry-match { margin-top: 8px; font-family: var(--om-sans); font-size: 13.5px; color: var(--om-ink-2); }
.om-entry-match a { font-family: var(--om-serif); font-size: 15.5px; }

/* ---------- Stars (favorites saved in this browser) ---------- */

.om-star {
  width: 36px;
  height: 36px;
  margin: -4px -6px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--om-rule-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.om-star svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.om-star:hover { color: var(--om-muted); background: var(--om-wash); }
.om-star[aria-pressed="true"] { color: #c58a00; }
.om-star[aria-pressed="true"] svg { fill: currentColor; }
.om-star-labeled {
  width: auto;
  height: auto;
  margin: 0;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  border: 1px solid var(--om-rule-strong);
  border-radius: 4px;
  font-family: var(--om-sans);
  font-size: 12px;
  line-height: 1;
  color: var(--om-ink-2);
}
.om-star-labeled svg { width: 15px; height: 15px; color: var(--om-muted); }
.om-star-labeled[aria-pressed="true"] { color: var(--om-ink); border-color: #c58a00; }
.om-star-labeled[aria-pressed="true"] svg { color: #c58a00; }

/* ---------- Results catalog page ---------- */

.om-page-head { padding: 38px 0 26px; border-bottom: 1px solid var(--om-rule); }
.om-page-head h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; }
.om-page-head .om-lede { max-width: 60ch; }
.om-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--om-rule);
  font-family: var(--om-sans);
  font-size: 14px;
  position: sticky;
  top: 0;
  background: var(--om-paper);
  z-index: 20;
}
.om-filters select, .om-filters input[type="search"] {
  font-family: var(--om-sans);
  font-size: 14px;
  color: var(--om-ink);
  border: 1px solid var(--om-rule-strong);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--om-paper);
}
.om-filters input[type="search"] { width: 240px; }
.om-filters label { display: inline-flex; align-items: center; gap: 6px; color: var(--om-ink-2); }
.om-filter-count { margin-left: auto; color: var(--om-muted); font-feature-settings: "tnum"; }
.om-subject-group { padding-top: 26px; }
.om-subject-group h2 {
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--om-ink);
}
.om-subject-group h2 small { font-family: var(--om-sans); font-size: 13px; font-weight: 400; color: var(--om-muted); margin-left: auto; }
.om-empty { padding: 40px 0; font-family: var(--om-sans); color: var(--om-ink-2); }

/* ---------- Result page ---------- */

.om-result-head { padding: 34px 0 30px; border-bottom: 1px solid var(--om-rule); }
.om-crumbs { font-family: var(--om-sans); font-size: 13.5px; color: var(--om-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.om-crumbs a { color: var(--om-ink-2); }
.om-result-number {
  margin-top: 22px;
  font-family: var(--om-sans);
  font-size: 15px;
  color: var(--om-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.om-result-head h1 {
  margin-top: 8px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  max-width: 26ch;
}
.om-result-summary { margin-top: 18px; font-size: 20px; line-height: 1.55; color: var(--om-ink); max-width: 64ch; }
.om-result-badges { margin-top: 18px; }

.om-result-body .om-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  padding-top: 36px;
  padding-bottom: 56px;
}
.om-block + .om-block { margin-top: 44px; }
.om-block > h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--om-ink); margin-bottom: 4px; }
.om-manuscript { padding: 22px 0; border-bottom: 1px solid var(--om-rule); }
.om-manuscript h3 { font-size: 20px; line-height: 1.32; }
.om-manuscript h3 a { color: var(--om-ink); text-decoration: none; }
.om-manuscript h3 a:hover { color: var(--om-link); text-decoration: underline; }
.om-manuscript-meta {
  margin-top: 6px;
  font-family: var(--om-sans);
  font-size: 13.5px;
  color: var(--om-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.om-manuscript-abstract { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--om-ink-2); max-width: var(--om-measure); }
.om-manuscript-abstract p + p { margin-top: 0.7em; }
.om-manuscript-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Each manuscript's PDF, shown under its abstract on desktop. Hidden on
   phones and touch devices, which show one page of a framed PDF or download
   it instead; hidden lazy frames are never fetched. The message shows until
   the PDF viewer paints over it. */
.om-reader {
  position: relative;
  height: 86vh;
  min-height: 560px;
  margin-top: 14px;
  border: 1px solid var(--om-rule-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--om-wash);
}
.om-reader::before {
  content: "Loading the PDF\2026";
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--om-sans);
  font-size: 14px;
  color: var(--om-muted);
}
.om-reader iframe { position: relative; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 720px), (pointer: coarse) {
  .om-reader { display: none; }
}
.om-bibtex { margin-top: 12px; }
.om-bibtex summary { font-family: var(--om-sans); font-size: 13.5px; color: var(--om-link); cursor: pointer; width: max-content; }
.om-bibtex pre {
  margin-top: 8px;
  background: var(--om-wash);
  border: 1px solid var(--om-rule);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
  color: var(--om-ink);
}

.om-lean-doc { font-size: 17px; line-height: 1.6; color: var(--om-ink-2); max-width: var(--om-measure); }
.om-lean-doc > * + * { margin-top: 0.8em; }
.om-lean-doc h1 { display: none; }
.om-lean-doc h2, .om-lean-doc h3 { font-size: 17px; color: var(--om-ink); margin-top: 1.4em; font-family: var(--om-sans); font-weight: 600; }
.om-lean-doc ul { padding-left: 1.2em; list-style: disc; }
.om-lean-doc table { border-collapse: collapse; font-family: var(--om-sans); font-size: 13.5px; width: 100%; display: block; overflow-x: auto; }
.om-lean-doc th, .om-lean-doc td { border-bottom: 1px solid var(--om-rule); padding: 7px 12px 7px 0; text-align: left; vertical-align: top; }
.om-lean-doc th { color: var(--om-muted); font-weight: 500; }

.om-aside > * + * { margin-top: 34px; }
.om-aside h2 { font-family: var(--om-sans); font-size: 13.5px; font-weight: 600; color: var(--om-ink); margin-bottom: 10px; }
.om-facts { margin: 0; font-family: var(--om-sans); font-size: 14px; }
.om-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--om-rule); }
.om-facts dt { color: var(--om-muted); }
.om-facts dd { margin: 0; text-align: right; color: var(--om-ink); font-feature-settings: "tnum"; }
.om-neighbors li { padding: 9px 0; border-bottom: 1px solid var(--om-rule); line-height: 1.35; font-size: 16px; }
.om-neighbors li:first-child { border-top: 1px solid var(--om-rule); }
.om-neighbors .om-number { font-size: 12.5px; display: block; margin-bottom: 2px; }
.om-neighbors a { color: var(--om-ink); text-decoration: none; }
.om-neighbors a:hover { color: var(--om-link); text-decoration: underline; }
.om-mini-map { aspect-ratio: 1 / 0.86; border: 1px solid var(--om-rule); border-radius: 6px; padding: 6px; }
.om-pager { display: flex; justify-content: space-between; gap: 16px; font-family: var(--om-sans); font-size: 14px; padding-top: 24px; }
.om-pager a { max-width: 45%; }
.om-label-note { font-family: var(--om-sans); font-size: 12.5px; color: var(--om-muted); margin-top: 8px; line-height: 1.45; }

/* ---------- Editorial context for individual results ---------- */

.om-significance { border-left: 3px solid var(--om-link); padding-left: 24px; scroll-margin-top: 24px; }
.om-significance-kicker { font-family: var(--om-sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--om-link); margin: 0 0 6px; }
.om-significance-lede { font-size: 21px; line-height: 1.45; margin: 14px 0 22px; max-width: 60ch; }
.om-significance-detail + .om-significance-detail { margin-top: 18px; }
.om-significance-detail h3 { font-family: var(--om-sans); font-size: 15px; font-weight: 600; margin: 0 0 5px; }
.om-significance-detail p { color: var(--om-ink-2); margin: 0; }
.om-significance-source { font-family: var(--om-sans); font-size: 12.5px; line-height: 1.5; color: var(--om-muted); border-top: 1px solid var(--om-rule); padding-top: 14px; margin-top: 22px; }

/* ---------- Posts ---------- */

.om-posts { columns: 2 320px; column-gap: 28px; }
.om-post {
  break-inside: avoid;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--om-rule);
  border-radius: 8px;
  background: var(--om-paper);
}
.om-post-author { display: flex; gap: 10px; align-items: center; font-family: var(--om-sans); }
.om-post-author img { width: 38px; height: 38px; border-radius: 50%; background: var(--om-wash); flex: none; }
.om-post-author a { color: var(--om-ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.om-post-author a:hover { text-decoration: underline; }
.om-post-author div { line-height: 1.3; min-width: 0; }
.om-post-author small { display: block; color: var(--om-muted); font-size: 12.5px; }
.om-post-text { margin-top: 10px; font-size: 16px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.om-post-quote { margin-top: 10px; padding: 8px 12px; border-left: 2px solid var(--om-rule-strong); font-size: 14.5px; color: var(--om-muted); white-space: pre-line; overflow-wrap: anywhere; }
/* Tall screenshots are cropped from the top so one post can't fill the column. */
.om-post-media { margin-top: 12px; border-radius: 6px; border: 1px solid var(--om-rule); width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: top; display: block; }
.om-post-foot { margin-top: 10px; font-family: var(--om-sans); font-size: 12.5px; color: var(--om-muted); display: flex; gap: 14px; flex-wrap: wrap; }
.om-post-group + .om-post-group { margin-top: 34px; }
.om-post-group h3 { font-family: var(--om-sans); font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--om-ink); }

/* ---------- Release-practice table ---------- */

.om-practice { width: 100%; border-collapse: collapse; font-size: 16px; }
.om-practice th { text-align: left; font-family: var(--om-sans); font-size: 12.5px; font-weight: 500; color: var(--om-muted); padding: 0 16px 8px 0; border-bottom: 1px solid var(--om-ink); }
.om-practice td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--om-rule); vertical-align: top; line-height: 1.45; }
.om-practice td:first-child { width: 42%; color: var(--om-ink-2); }
.om-status { font-family: var(--om-sans); font-size: 12.5px; font-weight: 500; white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; margin-bottom: 3px; }
.om-status svg { width: 13px; height: 13px; flex: none; }
.om-status-yes { color: #1b7f4b; }
.om-status-partial { color: #8a6a00; }
.om-status-no { color: #b03a2e; }

/* ---------- Quotes from the announcement ---------- */

.om-pull { margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--om-ink); font-size: 19px; line-height: 1.5; color: var(--om-ink); max-width: 56ch; }
.om-pull + .om-pull { margin-top: 18px; }
.om-pull cite { display: block; margin-top: 6px; font-family: var(--om-sans); font-style: normal; font-size: 13px; color: var(--om-muted); }

/* ---------- Named problems ---------- */

.om-letters { display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--om-rule); font-family: var(--om-sans); font-size: 14px; position: sticky; top: 0; background: var(--om-paper); z-index: 20; }
.om-letters a { min-width: 28px; text-align: center; padding: 3px 4px; border-radius: 4px; text-decoration: none; }
.om-letters a:hover { background: var(--om-wash); }
.om-letter { padding-top: 26px; scroll-margin-top: 64px; }
.om-letter h2 { font-size: 26px; border-bottom: 1px solid var(--om-ink); padding-bottom: 6px; }
.om-problem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 11px 0; border-bottom: 1px solid var(--om-rule); align-items: baseline; }
.om-problem-name { font-size: 18px; line-height: 1.35; }
.om-problem-refs { font-family: var(--om-sans); font-size: 13.5px; color: var(--om-muted); text-align: right; display: flex; flex-direction: column; gap: 2px; }
.om-problem-refs a { white-space: nowrap; }

/* ---------- Footer / provenance ---------- */

.om-provenance { padding: 34px 0 46px; font-family: var(--om-sans); font-size: 13.5px; color: var(--om-muted); line-height: 1.6; }
.om-provenance p { max-width: 90ch; }
.om-provenance p + p { margin-top: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .om-hero .om-wrap { grid-template-columns: 1fr; gap: 28px; }
  .om-hero h1 { max-width: 20ch; }
  .om-section .om-wrap { grid-template-columns: 1fr; gap: 18px; }
  .om-result-body .om-wrap { grid-template-columns: 1fr; gap: 40px; }
  .om-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .om { font-size: 17px; }
  .om-wrap { padding: 0 16px; }
  .om-hero .om-wrap { padding-top: 28px; }
  .om-lede { font-size: 17.5px; }
  .om-ledger dd { font-size: 25px; }
  .om-section { padding: 34px 0; }
  .om-filters input[type="search"] { width: 100%; }
  .om-filter-count { margin-left: 0; }
  .om-subject-table td.om-bar-cell { width: 36%; }
  .om-subject-table .om-hide-sm { display: none; }
  .om-practice td:first-child { width: 40%; }
  .om-problem { grid-template-columns: 1fr; }
  .om-problem-refs { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .om-posts { columns: 1; }
  .om-result-summary { font-size: 18px; }
  .om-map-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .om * { transition: none !important; }
}
