/* PROTOTYPE — overpass/panel.css: the panel's readout and bodies (the direction's §8.4), the logbook and "From the log"
   (§8.2, overpass/logbook.js), the card's name and never line, and the key column's foot. Owned with overpass/panel.js
   (B1, then task B2a). Stylesheets are linked in name order, so this file comes after card.css and key.css: its rules
   for the panel's own children (.pbody > *) do not reach inside the card. */

.ro { font-size: var(--fs-readout); font-weight: 700; font-stretch: var(--wdth-readout); line-height: 1.05; color: #fff; letter-spacing: -.01em; text-wrap: balance; }
.ro-sub { margin-top: 4px; font-size: var(--fs-ui); color: var(--pale-2); min-height: 1.3em; }
/* the place card starts with its own name: the readout steps aside, except on a phone, where it sits under the map with
   the keys and the timeline, far from the card */
@media (min-width: 761px) { .readout.ro-card { display: none; } }
.pbody { color: var(--pale); }
.pbody > * + * { margin-top: 10px; }
.pbody > :first-child { margin-top: 12px; }
.pbody .log { font-size: var(--fs-log); color: #EAF1F9; }
.msent { font-size: .95rem; line-height: 1.45; color: var(--pale); }
.fact { font-size: var(--fs-ui); line-height: 1.42; color: var(--pale-2); }
.fact b { color: var(--pale); font-weight: 600; }
.fact-small { font-size: var(--fs-small); }
/* a care line: --doubt-ink with a hatched amber square for a bullet */
.warn { position: relative; padding-left: 1.25em; font-size: var(--fs-key); line-height: 1.4; color: var(--doubt-ink); }
.warn::before { content: ''; position: absolute; left: 0; top: .3em; width: .72em; height: .72em; background: repeating-linear-gradient(-45deg, var(--doubt) 0 2px, transparent 2px 4px); outline: 1px solid var(--doubt); }
.care { display: grid; gap: 6px; }
.care:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: .3em; min-height: 32px; font-size: var(--fs-ui); font-weight: 600; color: var(--pale); background: var(--under-2); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-pill); padding: 5px 12px; cursor: pointer; }
.chip:hover { border-color: var(--track-lit); }
.chip[aria-disabled="true"] { opacity: .55; }
.chip[aria-disabled="true"]:hover { border-color: rgba(255, 255, 255, .2); }
.chip .ico { width: 1.05em; height: 1.05em; color: var(--track-lit); }
.pbtns { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.plain { font-size: var(--fs-ui); font-weight: 600; color: var(--pale); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--track-lit); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ghost { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--fs-ui); font-weight: 600; color: #fff; background: none; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: var(--r-pill); padding: 6px 14px; cursor: pointer; text-decoration: none; }
.ghost:hover { border-color: var(--track-lit); }
.tl-msg .plain, .warn .plain { color: inherit; }
#ovSeriesFailed .plain:disabled { opacity: .55; cursor: progress; }

/* ---- the logbook (§8.2): a definition list in two columns, the labels and then their figures, one fact a line
   (figures after their words, tabular, never right-aligned). Compact, so "From the log" keeps four entries or more at
   rest at 1440 x 900 (F1, 16 Nov 2026: with each fact's label over its figure only one survived). Each fact is a row:
   the labels take at least 11em, so the figures line up, and the one long label ("500 m squares seen wet at least once")
   simply pushes its short figure along; a row too narrow for both (a phone) puts the figure under its label ---- */
.lbwrap { display: grid; gap: 3px; }
.logbook { display: grid; gap: 2px; margin: 0; }
.logbook:empty { display: none; }
.logbook > div { display: grid; grid-template-columns: 13em minmax(0, 1fr); align-items: baseline; column-gap: 14px; min-width: 0; }
.logbook dt { min-width: 0; font-size: var(--fs-key); line-height: 1.3; color: var(--pale-2); text-wrap: pretty; }
.logbook dd { min-width: 0; margin: 0; font-size: 15px; line-height: 1.3; font-weight: 650; color: var(--pale); font-variant-numeric: tabular-nums; text-wrap: pretty; }
/* on a phone each figure simply follows its label, and goes under it when the line is full */
@media (max-width: 760px) { .logbook > div { grid-template-columns: minmax(0, 1fr) auto; } }
.lbfoot { font-size: var(--fs-small); line-height: 1.4; color: var(--pale-2); font-variant-numeric: tabular-nums; }
/* the log paragraph at rest, its lines a little closer than the month's line (it is the longest thing the column holds) */
.pbody #ovRestLog { line-height: 1.3; }
/* In the two-column panel (1380 px and up) the text column has a fixed height and the log's entries take what is left:
   the column's own spacing is tightened, the log paragraph at rest takes the phone's 16 px (the direction's §5 range for
   it), and "Press play…" is set at the key's size so it keeps to one line. */
@media (min-width: 1380px) {
  .readout { padding-top: 14px; }
  .pbody { padding-bottom: 8px; }
  .pbody > * + * { margin-top: 7px; }
  .pbody > :first-child { margin-top: 9px; }
  .pbody > .fromlog { margin-top: 10px; }
  .pbody #ovRestLog { font-size: 1rem; }
  .pbody #ovPrompt { font-size: var(--fs-key); }
  .tour-b { padding: 1px 0; }
}

/* ---- "From the log" (§8.4): dated entries in the satellite's voice, each a button that sets its month ---- */
.pbody > .fromlog { margin-top: 14px; }
.tourh { font-size: var(--fs-key); font-weight: 600; color: var(--pale-2); }
.tour-l { list-style: none; margin: 2px 0 0; padding: 0; }
.tour { margin: 0; }
.tour-b { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 2px 0; color: #EAF1F9; cursor: pointer;
  font-family: var(--font-log); font-style: italic; font-size: .98rem; line-height: 1.28; text-wrap: pretty; transition: opacity var(--t-quick); }
/* every log entry starts with a mark leaning as the satellite flies */
.tour-b::before { content: ''; display: inline-block; width: 3px; height: .9em; margin: 0 .55em 0 .14em; vertical-align: -.1em; background: var(--track-lit); transform: skewX(var(--lean)); }
.tour-d { display: inline-block; min-width: 5.4em; font: 600 .78rem var(--font-sans); font-style: normal; color: var(--pale-2); font-variant-numeric: tabular-nums; }
.tour-b:hover .tour-e, .tour-b:focus-visible .tour-e { text-decoration: underline; text-decoration-color: var(--track-lit); text-underline-offset: 4px; }
.tour-b:focus-visible { outline-offset: 1px; }
/* the month on show, or the last entry passed: dated in --track-lit */
.tour.cur .tour-d { color: var(--track-lit); }
/* while playing, the entries the play head has not reached yet wait faintly; each lights as the head passes it */
.tour.ahead .tour-b { opacity: .5; }
.tour.ahead .tour-b::before { background: var(--pale-2); }
@media (prefers-reduced-motion: reduce) { .tour-b { transition: none; } }

/* the key column's foot */
.keycol .never { font-size: var(--fs-key); line-height: 1.42; color: var(--pale-2); }
.keycol .never strong { display: block; margin-bottom: 4px; font-size: .95rem; font-weight: 600; color: #fff; }
/* in the key column of a wide screen the title keeps to one line, so the key above it has the room */
@media (min-width: 1180px) { .keycol .never strong { font-size: var(--fs-ui); } }
@media (min-width: 1380px) { .keycol .never { line-height: 1.36; } }
.proto-dark { align-self: flex-start; }
/* from 1180 px the prototype line is set a little smaller: in the key column (1380 px and up) it keeps to one line where
   the column allows (1440 px) and wraps, never clipped, where it does not; from 1180 to 1379 px it sits at the
   instrument's top right (overpass.css) */
@media (min-width: 1180px) { .keycol .proto-dark { font-size: .76rem; padding: 3px 7px; max-width: 100%; } }
