/* Do Models Know AI's History? — Plain Swiss, on shared/theme.css. */
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: var(--blue); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; margin: 0; }

/* ---- the full-height chart with its sidebar ---- */
.layout { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - 52px); border-bottom: 1px solid var(--rule); }
.side { border-right: 1px solid var(--rule-soft); }
.side-inner { position: sticky; top: 0; padding: 28px 24px 24px; }
h1 { font-size: 30px; line-height: 1.08; margin-bottom: 14px; }
.lede { color: var(--ink-2); margin: 0 0 18px; font-size: 15px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.seg button { font: inherit; font-size: 12.5px; line-height: 1.25; padding: 7px 6px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.legend { list-style: none; margin: 0 0 12px; padding: 0; }
.legend li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 6px 4px; border-top: 1px solid var(--rule-soft); font-size: 14px; cursor: pointer; border-radius: 3px; }
.legend li:hover, .legend li.on { background: var(--wash); }
.legend li.off { opacity: 0.35; }
.legend .sw { width: 22px; height: 3px; border-radius: 2px; }
.legend .sw.dash { background: none !important; border-top: 3px dashed currentColor; height: 0; }
.legend .nm small { display: block; color: var(--ink-3); font-size: 12px; }
.legend .v { font-weight: 700; }
.hint { color: var(--ink-3); font-size: 13px; margin: 0 0 14px; }
.side-foot { font-size: 13px; color: var(--ink-3); margin: 0; }

.chart-main { min-width: 0; padding: 16px 20px 12px 8px; display: flex; }
.chart { margin: 0; flex: 1; min-height: 520px; position: relative; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart text { font-family: var(--sans); fill: var(--ink-2); font-size: 12px; }
.chart .axis line, .chart .grid line { stroke: var(--rule-soft); }
.chart .axis .base { stroke: var(--ink); }
.chart .cut line { stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .cut text { font-size: 11.5px; }
.chart .series path { fill: none; stroke-width: 2.25; stroke-linejoin: round; }
.chart .series.dim { opacity: 0.12; }
.chart .series.hl path { stroke-width: 3.5; }
.chart .series circle { stroke: var(--paper); stroke-width: 1.5; }
.chart .lbl { font-weight: 700; font-size: 12.5px; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .guide { stroke: var(--ink); stroke-width: 1; }

.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--paper); border: 1px solid var(--ink); padding: 8px 10px; font-size: 13px; max-width: 280px; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.tip b { display: block; margin-bottom: 4px; }
.tip table { border-collapse: collapse; }
.tip td { padding: 1px 6px 1px 0; }
.tip td:last-child { text-align: right; font-weight: 700; }

/* ---- sections below ---- */
.sec { max-width: 1080px; margin: 0 auto; padding: 44px 24px 8px; }
.sec h2 { font-size: 24px; margin-bottom: 8px; }
.sec h3 { font-size: 16px; margin: 18px 0 6px; }
.note { color: var(--ink-2); max-width: 46rem; margin: 0 0 18px; }
#reading-body p { max-width: 46rem; }

table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
table.t th { font-weight: 700; border-bottom: 1px solid var(--ink); }
table.t td.n, table.t th.n { text-align: right; }
.scroll { overflow-x: auto; }

.stack { display: flex; height: 14px; min-width: 160px; border-radius: 2px; overflow: hidden; background: var(--wash); }
.stack span { display: block; height: 100%; }
.k-right { background: #1f3fd9; }
.k-near { background: #8fa0ec; }
.k-wrong { background: #c2410c; }
.k-idk { background: #d4d4d4; }
.keyline { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.keyline i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; border-radius: 2px; }

.hists { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px 28px; }
.hist h3 { margin: 0 0 4px; font-size: 14px; }
.hist p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.hist svg { width: 100%; height: auto; display: block; }
.hist text { font-family: var(--sans); font-size: 10.5px; fill: var(--ink-3); }

.missed { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 28px; }
.missed li { border-top: 1px solid var(--rule-soft); padding: 12px 0; }
.missed .t { font-weight: 700; }
.missed .g { font-size: 14px; margin: 2px 0; }
.missed .src { font-size: 13px; color: var(--ink-3); }
.missed .said { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 10px; }
.filters label { font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }
.filters input, .filters select { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--ink-3); border-radius: 3px; background: var(--paper); color: var(--ink); min-width: 150px; }
.count { font-size: 13px; color: var(--ink-3); margin: 0 0 6px; }
.items { list-style: none; margin: 0; padding: 0; }
.items > li { border-top: 1px solid var(--rule-soft); padding: 12px 0; }
.items .q { white-space: pre-wrap; font-size: 14px; margin: 0 0 6px; }
.items .meta { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.items .ans { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.items .ans li { font-size: 12.5px; border: 1px solid var(--rule-soft); border-radius: 3px; padding: 2px 6px; }
.items .ans li.right { border-color: #1f3fd9; color: #1f3fd9; }
.items .ans li.near { border-color: #8fa0ec; }
.items .ans li.wrong { border-color: #c2410c; color: #9a3412; }
.items .ans li.idk { color: var(--ink-3); }
.more { font: inherit; font-size: 14px; margin: 12px 0; padding: 8px 14px; border: 1px solid var(--ink); background: var(--paper); border-radius: 3px; cursor: pointer; }

.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; list-style: none; padding: 0; margin: 0 0 16px; }
.dl li { border-top: 1px solid var(--rule-soft); padding: 10px 0; font-size: 14px; }
.dl li small { display: block; color: var(--ink-3); }
#sources-body p, #sources-body li, #data-body p { max-width: 50rem; }
#sources-body ul { padding-left: 18px; }
#sources-body li { margin: 4px 0; font-size: 14.5px; }
.colophon { max-width: 1080px; margin: 40px auto 0; padding: 18px 24px 40px; border-top: 1px solid var(--rule-soft); font-size: 13px; color: var(--ink-3); }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; min-height: 0; }
  .side { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .side-inner { position: static; padding: 20px 16px 14px; }
  h1 { font-size: 26px; }
  .chart-main { padding: 8px 8px 8px 0; }
  .chart { min-height: 420px; height: 70vh; }
  .sec { padding: 32px 16px 4px; }
  .colophon { padding: 18px 16px 32px; }
}
