/* TALARIA site sheet. Reads STOA theme tokens; palette tokens come from palette.css. */
:root {
  --accent: var(--L4-text, #77abec);
  --accent-ink: #06121f;
  --maxw: 1080px;
}
body { padding: 0 20px 40px; }
nav.top { max-width: var(--maxw); margin: 0 auto; padding: 18px 0 6px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
nav.top a { color: var(--muted); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
nav.top a:first-child { color: var(--ink); font-weight: 700; letter-spacing: .18em; }
nav.top a:hover { color: var(--accent); }
nav.top .kind { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }

header.hero { max-width: var(--maxw); margin: 30px auto 10px; }
header.hero h1 { font-size: clamp(34px, 6vw, 58px); letter-spacing: .2em; margin: 0 0 6px; font-weight: 800; }
header.hero p.tag { font-size: 18px; color: var(--ink); max-width: 66ch; margin: 0 0 10px; line-height: 1.5; }
header.hero p.sub { color: var(--muted); max-width: 70ch; margin: 0; }

main { max-width: var(--maxw); margin: 0 auto; }
main.doc { max-width: 78ch; font-size: 15.5px; }
main.doc h1 { font-size: 30px; line-height: 1.2; margin: 22px 0 6px; }
main.doc h1 + p em, main.doc > p:first-of-type em { color: var(--muted); font-size: 16px; }
main.doc h2 { font-size: 20px; margin: 34px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
main.doc h3 { font-size: 16px; margin: 22px 0 6px; }
main.doc p, main.doc li { line-height: 1.65; }
main.doc strong { color: var(--ink); }
main.doc code { font-family: var(--mono); font-size: .88em; background: var(--panel); padding: 1px 5px; border-radius: 4px; }
main.doc pre { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 13px; }
main.doc blockquote { border-left: 3px solid var(--line); margin: 14px 0; padding: 2px 14px; color: var(--muted); }
main.doc hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
main.doc .math { overflow-x: auto; padding: 6px 0; }
.tablewrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; vertical-align: top; padding: 7px 9px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tr:hover td { background: #101018; }

/* verdict and grade chips */
.chip { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--panel); white-space: nowrap; }
.chip.v-VIOLATES, .chip.v-ENGAGES { border-color: var(--bad); color: var(--bad); }
.chip.v-SATISFIES, .chip.v-RULE { border-color: var(--good); color: var(--good); }
.chip.v-DODGES { border-color: var(--L2-text); color: var(--L2-text); }
.chip.v-SILENT { color: var(--muted); }
.chip.v-N\/A { color: var(--muted); opacity: .5; }
.chip.L1 { border-color: var(--L1-text); color: var(--L1-text); }
.chip.L2 { border-color: var(--L2-text); color: var(--L2-text); }
.chip.L3 { border-color: var(--L3-text); color: var(--L3-text); }
.chip.L4 { border-color: var(--L4-text); color: var(--L4-text); }
.chip.L5 { border-color: var(--L5-text); color: var(--L5-text); }
.chip.L6 { border-color: var(--L6-text); color: var(--L6-text); }

/* atlas */
.atlas-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 14px 0; }
.atlas-controls select, .atlas-controls input[type=search] { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; }
.atlas-controls .hint { color: var(--muted); font-size: 12.5px; }
#grid-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 70vh; }
table.grid { font-size: 12px; }
table.grid th { position: sticky; top: 0; background: var(--panel); z-index: 2; }
table.grid th.rot { writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 4px; height: 66px; text-align: left; }
table.grid th.rot a { color: var(--muted); text-decoration: none; }
table.grid th.rot a:hover { color: var(--accent); text-decoration: underline; }
table.grid td.name { position: sticky; left: 0; background: var(--bg); z-index: 1; min-width: 220px; cursor: pointer; }
table.grid td.name:hover { color: var(--accent); }
table.grid td.cell { text-align: center; padding: 3px; cursor: pointer; }
table.grid td.cell span { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
.v-VIOLATES-bg, .v-ENGAGES-bg { background: var(--bad); }
.v-DODGES-bg, .v-RULE-bg { background: var(--L2-mark); }
.v-SATISFIES-bg { background: var(--good); }
.v-SILENT-bg { background: #2a2a38; }
.v-NA-bg { background: transparent; border: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.legend span i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

aside#panel { position: fixed; top: 0; right: 0; width: min(520px, 100%); height: 100vh; overflow: auto; background: var(--panel); border-left: 1px solid var(--line); padding: 22px 24px 40px; z-index: 20; box-shadow: -20px 0 40px #0008; }
aside#panel.hidden { display: none; }
aside#panel h2 { margin: 8px 0 4px; font-size: 20px; }
aside#panel .meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
aside#panel ul { padding-left: 18px; font-size: 13px; }
aside#panel li { margin: 5px 0; }
aside#panel .note { color: var(--muted); }
#panel-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }

/* join view */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
@media (max-width: 800px) { .join { grid-template-columns: 1fr; } }
.join .col { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.join h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.join li { margin: 5px 0; font-size: 13.5px; }
.join .bill { color: var(--muted); font-size: 12.5px; margin: 6px 0 10px; }

/* demo pages */
.demo-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .demo-wrap { grid-template-columns: 1fr; } }
.demo-wrap canvas { width: 100%; height: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: block; }
.readout-box { margin-top: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.readout-box b { font-family: var(--mono); }
.readout-box.hot { border-color: var(--bad); }
.prose { max-width: 78ch; }
.prose p { line-height: 1.65; }
.reg-link { font-family: var(--mono); font-size: 12.5px; }

/* register list */
.reg { display: grid; gap: 10px; }
.reg .entry { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.reg .entry h3 { margin: 0 0 4px; font-size: 15px; }
.reg .entry p { margin: 4px 0; font-size: 13.5px; color: var(--muted); }
.reg .entry .id { font-family: var(--mono); color: var(--accent); margin-right: 8px; }

/* hover card for matrix column heads */
#hovercard { position: fixed; z-index: 30; width: 300px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: 0 10px 30px #000a; font-size: 12.5px; line-height: 1.45; pointer-events: none; }
#hovercard b { font-family: var(--mono); color: var(--accent); }
#hovercard .fam { color: var(--muted); font-size: 11.5px; margin-left: 6px; }
#hovercard h4 { margin: 4px 0 4px; font-size: 13.5px; }
#hovercard p { margin: 0 0 6px; color: var(--ink); }
#hovercard small { color: var(--muted); }

/* live teasers on the hub's demo cards, drawn by teasers.js */
.card .teaser { display: block; width: 100%; height: 110px; border-radius: 8px; margin-bottom: 10px; border: 1px solid var(--line); background: var(--bg); }

/* the six moves on the hub */
ol.moves { padding-left: 22px; margin: 6px 0 18px; }
ol.moves li { margin: 8px 0; line-height: 1.55; }
ol.moves li b { font-weight: 700; }

/* per-page action bar on rendered pages */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.actions a { font-size: 12.5px; text-decoration: none; color: var(--accent); border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px; }
.actions a:hover { border-color: var(--accent); }

/* site search */
.search { position: relative; max-width: 560px; margin: 16px 0 4px; }
.search input[type=search] { width: 100%; box-sizing: border-box; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 14px; }
.search input[type=search]:focus { outline: none; border-color: var(--accent); }
.search-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 15; list-style: none; margin: 6px 0 0; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px #000a; max-height: 60vh; overflow: auto; }
.search-results li a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-results li a .t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.search-results li a .hook { grid-column: 2; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.search-results li.active a, .search-results li a:hover { background: var(--bg); }
.search-results .search-empty { padding: 10px; color: var(--muted); font-size: 13px; }

/* one Play/Pause button for all the hub teasers (TAXIS R12, WCAG 2.2.2) */
.teaser-bar { display: flex; justify-content: flex-end; margin: 4px 0 10px; }
.teaser-bar button { font-size: 12.5px; padding: 6px 12px; min-height: 32px; }

/* hub footer: link back to https://mikebertin.github.io/ (TAXIS G3) */
footer .hub { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; color: var(--muted); }
footer .hub img { width: 13px; height: auto; }
footer .hub a { color: var(--muted); }
footer .hub a:hover { color: var(--accent); }
