/* pages.css — text pages, conflicts grid, live wall, design sheet, theatre page below-the-map. */
.page-head { margin-bottom: 24px; }
.page-head .lede { font-size: 17px; color: var(--ink-muted); max-width: 70ch; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumb { color: var(--ink-muted); margin-bottom: 8px; }
.prose { font-family: var(--font-serif); font-size: 18px; line-height: 1.6; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

/* conflicts grid */
.theatre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.theatre-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.theatre-card:hover { border-color: var(--amber); color: var(--ink); }
.theatre-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.theatre-card h2 { font-size: 20px; margin: 0; }
.theatre-card-region { color: var(--ink-muted); margin: 0; }
.theatre-card p { color: var(--ink-muted); font-size: 14px; margin: 0; }
.theatre-card-foot { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; margin-top: auto; color: var(--ink-muted); }

/* theatre page */
.theatre-app { position: relative; height: calc(100dvh - var(--header-h) - 22px); min-height: 520px; display: grid; grid-template-columns: 1fr; background: var(--paper); }
.theatre-app.overview { grid-template-columns: 1fr 340px; }
.theatre-host { position: relative; min-height: 0; }
.theatre-side { overflow: auto; padding: 16px; border-left: 1px solid var(--line); background: var(--surface); }
.theatre-side h2 { font-size: 16px; }
.theatre-below .tracks { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tracks a { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; color: var(--ink-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tracks a.active, .tracks a:hover { color: var(--ink); border-bottom-color: var(--amber); }
.track { margin-bottom: 28px; }
.placeholder-map { height: 320px; display: grid; place-items: center; margin: 0 0 32px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-line); font-family: var(--font-mono); font-size: 12px; background-image: linear-gradient(var(--paper-line) 1px, transparent 1px), linear-gradient(90deg, var(--paper-line) 1px, transparent 1px); background-size: 48px 48px; }
@media (max-width: 900px) { .theatre-app.overview { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .theatre-side { border-left: 0; border-top: 1px solid var(--line); max-height: 36vh; } .theatre-app { height: calc(100dvh - var(--header-h) - 22px); } }

/* live wall */
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.live-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.live-grid h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; position: sticky; top: calc(var(--header-h) + 22px); background: var(--bg); padding: 8px 0; margin: 0; z-index: 2; }
.count { color: var(--ink-muted); font-weight: 400; }
@media (max-width: 1000px) { .live-grid { grid-template-columns: 1fr; gap: 20px; } }

/* design sheet */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.swatch { display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.swatch i { display: block; height: 56px; border: 1px solid var(--line); border-radius: 2px; }
.type-specimen p { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.spec-display { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: .06em; }
.spec-ui { font-size: 16px; }
.spec-mono { font-family: var(--font-mono); font-size: 13px; color: var(--amber); }
.spec-serif { font-family: var(--font-serif); font-size: 18px; line-height: 1.6; }
.symbol-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; padding: 16px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 4px; color: var(--paper-ink); }
.symbol-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; text-align: center; }
.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.variants figure { margin: 0; padding: 12px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 4px; color: var(--paper-ink); }
.variants figcaption { font-family: var(--font-mono); font-size: 11px; margin-top: 8px; }
.hud-demo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.hud-bar.demo { width: 160px; }

/* content elements (tracks, facts, timeline, parties, glossary, live strip) */
.live-strip { padding: 4px 16px; font-size: 11px; color: var(--amber); background: var(--surface); border-bottom: 1px solid var(--line); letter-spacing: .04em; }
.watch-list { padding-left: 18px; }
.watch-list li { margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 0 20px; }
.facts div { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; }
.facts dt { font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.facts dd { margin: 4px 0 0; font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 6px 0 6px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 8px; height: 8px; background: var(--amber); border-radius: 1px; }
.timeline .mono { color: var(--ink-muted); padding-top: 2px; }
.parties { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chip-side-hostile { color: var(--red); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.chip-side-friendly { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 55%, transparent); }
.chip-side-neutral { color: var(--green); border-color: color-mix(in srgb, var(--green) 55%, transparent); }
.glossary div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-family: var(--font-display); font-size: 18px; letter-spacing: .03em; }
.glossary dd { margin: 4px 0 0; font-family: var(--font-ui); font-size: 15px; }
.prose h2 { font-size: 20px; margin-top: 1.4em; }
.prose h3 { font-size: 17px; }
.prose ul { padding-left: 20px; }
.prose code { font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); padding: 1px 4px; border-radius: 2px; }
.event-item .conf { color: var(--ink-muted); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* Reports (editorial articles) */
.byline { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 12px 0 0; color: var(--ink-muted); font-size: 14px; }
.article-geo { margin: 0 0 24px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; }
.article-list .feed-item p { margin: 2px 0 0; color: var(--ink-muted); font-size: 15px; line-height: 1.45; }
