/* Pages generated from content/: records, menus, and the ask-the-page control. Uses the tokens in atlas.css. */
:root { --his: #6b3fa0; --his-soft: #efe7f7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --his: #c3a2ec; --his-soft: #2a2138; } }
:root[data-theme="dark"] { --his: #c3a2ec; --his-soft: #2a2138; }
.tags li, .tag { white-space: normal; }
.sec { margin-top: 8px; scroll-margin-top: 12px; }
.sec > h2 { margin-top: 34px; }
.sec h4, .sub h4 { font: 700 .8rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 16px 0 4px; }
details.sec > summary .sum-h { font-family: var(--serif); font-size: 1.15rem; }
.unit { border-left: 3px solid var(--rule); padding: 2px 0 2px 14px; margin: 14px 0; max-width: 72ch; }
.unit-name { font-weight: 700; margin-bottom: 2px; }
.fact { font-size: .95rem; margin: .35em 0; }
.fact code, .unit code { font-family: var(--mono); font-size: .9em; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 5px; overflow-wrap: anywhere; }
/* His own hypotheses and the atlas's thought experiments must never be mistaken for each other, or for fact. */
.box--his { border: 1px solid var(--his); border-left: 5px solid var(--his); background: var(--his-soft); border-radius: 4px; padding: 10px 14px; }
.box--hypo { border: 2px dashed var(--ink-2); border-radius: 4px; padding: 10px 14px; }
.box--his > h2, .box--hypo > h2 { margin-top: 4px; }
.conf { font: 600 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--rule); border-radius: 3px; padding: 3px 6px; color: var(--ink-2); display: inline-block; }
.conf--established { border-color: var(--sea); color: var(--sea); }
.conf--unverified { border-color: var(--warn); color: var(--warn); }
.conf--contested, .conf--reported, .conf--inferred { border-color: var(--gap); color: var(--gap); }
.conf--amits-hypothesis { border-color: var(--his); color: var(--paper); background: var(--his); }
.conf--hypothetical { border: 1px dashed var(--ink); color: var(--ink); }
.cites { font-size: .72em; }
.cite { text-decoration: none; border: 1px solid var(--rule); border-radius: 3px; padding: 0 4px; margin-left: 2px; font-variant-numeric: tabular-nums; }
.q { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--sea); font-family: var(--serif); max-width: 64ch; }
.srcs { padding-left: 1.6rem; } .srcs li { margin: 8px 0; max-width: 78ch; overflow-wrap: anywhere; }
.srcs li:target { background: var(--sea-soft); }
.srcs--all { list-style: none; padding: 0; } .srcs--all li { border-top: 1px solid var(--rule); padding: 8px 0; margin: 0; }
.reflist { padding-left: 1.2rem; } .reflist li { margin: 4px 0; }
.none { color: var(--gap); font-size: .85rem; }
.reveal { border: 1px solid var(--rule); border-radius: 4px; padding: 6px 12px; margin: 10px 0; background: var(--sheet); }
.reveal--big > summary { font-size: 1.05rem; color: var(--sea); }
.turn label, .ask-dlg label { display: block; font-weight: 600; font-size: .93rem; margin: 12px 0 4px; }
textarea, .ask-dlg input[type=text] { width: 100%; max-width: 640px; font: inherit; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 6px; background: var(--sheet); color: var(--ink); }
textarea:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }

/* Menus: a sortable list that is a table on a wide screen and labelled cards on a phone */
.mtools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 8px 0 10px; }
.mtools .tools-search { margin: 0; }
.mtools label { font-size: .85rem; color: var(--ink-2); }
.mtools select { font: inherit; font-size: .9rem; padding: 7px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--sheet); color: var(--ink); min-height: 40px; max-width: 100%; }
.mtools [data-count] { margin: 0; }
.mhead, .mrow summary { display: grid; grid-template-columns: minmax(180px, 2.2fr) repeat(var(--cols), minmax(0, 1fr)) 7.5rem; gap: 6px 14px; align-items: start; }
.mhead { border-bottom: 2px solid var(--ink); padding: 6px 0; position: sticky; top: 0; background: var(--paper); z-index: 2; }
.mhead button, .mhead span { all: unset; font: 600 .72rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.mhead button { cursor: pointer; padding: 6px 0; } .mhead button:hover { color: var(--sea); }
.mhead button:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.mhead button[data-dir="up"]::after { content: " \25B2"; } .mhead button[data-dir="down"]::after { content: " \25BC"; }
.mhead button[aria-pressed="true"] { color: var(--ink); }
.mrows { list-style: none; padding: 0; margin: 0; }
.mrow details { border-top: 0; border-bottom: 1px solid var(--rule); padding: 0; }
.mrow summary { list-style: none; padding: 12px 0; font-weight: 400; cursor: pointer; }
.mrow summary::-webkit-details-marker { display: none; }
.mrow summary:hover .mname b { color: var(--sea); }
.mcell { font-size: .9rem; overflow-wrap: anywhere; min-width: 0; }
.mname b { display: block; font: 600 1.02rem/1.25 var(--serif); }
.mname .small { display: block; margin-top: 2px; }
.mrow--stub .mname b { color: var(--ink-2); }
.mstub { grid-column: 2 / -2; color: var(--ink-2); font-size: .88rem; }
.mhead button { overflow-wrap: anywhere; min-width: 0; }
.mrow .tag { white-space: normal; display: inline-block; margin: 0 2px 3px 0; font-size: .76rem; }
.mopen { padding: 2px 0 14px 14px; border-left: 3px solid var(--sea); margin-bottom: 12px; }
.mopen p, .mopen li { font-size: .95rem; }
@media (max-width: 1000px) {
  .mhead { display: flex; flex-wrap: wrap; gap: 2px 14px; position: static; }
  .mhead span { display: none; }
  .mhead::before { content: "Sort by"; font: 600 .72rem/2.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
  .mrow summary { display: block; }
  .mcell[data-label], .mstub { display: block; margin-top: 6px; }
  .mcell[data-label]::before { content: attr(data-label) ": "; font: 600 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
}

/* Ask the page */
.ask-btn { position: fixed; right: 14px; bottom: 14px; z-index: 6; font: 600 .9rem/1 var(--sans); padding: 12px 16px; min-height: 44px; border-radius: 99px; border: 1px solid var(--sea); background: var(--sheet); color: var(--sea); cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / .18); }
.ask-btn--on { background: var(--sea); color: var(--paper); }
.ask-btn:focus-visible, .ask-dlg button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ask-dlg { width: min(560px, calc(100vw - 24px)); border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); padding: 18px 20px; }
.ask-dlg::backdrop { background: rgb(0 0 0 / .45); }
.ask-dlg h2 { margin-top: 0; }
.ask-canned { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.ask-canned .cell { min-height: 40px; }
.ask-canned .cell[aria-pressed="true"] { background: var(--sea-soft); border: 1px solid var(--sea); color: var(--ink); }
.ask-row { display: flex; gap: 10px; margin-top: 12px; }
.ask-row button { font: 600 .95rem/1 var(--sans); min-height: 44px; padding: 0 20px; border-radius: 6px; border: 1px solid var(--sea); background: var(--sheet); color: var(--sea); cursor: pointer; }
.ask-row .ask-send { background: var(--sea); color: var(--paper); }
.ask-status { min-height: 1.4em; font-size: .93rem; }
.foot { padding-bottom: 84px; }

/* A path step with records but no tool: between a tool step and a gap */
.step--read { border-left: 4px solid var(--sea); }
.step--read .step-what { font-weight: 600; }
