/* Passes: the sighting card (pass-list.js, on the Sky page and every profile) with its sky-path
   sketch (sky-path.js), the night strip (night-strip.js), the Sky page's "Tonight" and "Saw a
   bright light?" (sky-tonight.js) with its share panel, recent launches and printed sheet
   (tonight-sheet.js), the guide links (guide-links.js), and the Tonight card (tonight-card.js) on
   the Live map.
   Gold is only for what can be seen: the stretch of a pass in view, its stars, how soon it comes. */

/* ---- The sighting card ---------------------------------------------------------------------- */
/* Cards lay themselves out by the width of their list (a container), not the window's: a profile's
   narrow column gets the same card as the Sky page, rearranged. */
.pass-sentences { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); container: passes / inline-size; }
.pass-item {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 260px;
  grid-template-areas: "time main sketch" "time more sketch";
  grid-template-rows: auto 1fr; column-gap: var(--space-5); align-items: start;
  padding: var(--space-4) var(--space-5); background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-1);
}
/* A card the strip sent the focus to (tabindex -1): ringed, as it was moved there for the reader. */
.pass-item:focus { outline: 2px solid var(--focus); outline-offset: 2px; }

.pass-time { grid-area: time; display: grid; align-content: start; gap: 2px; padding-top: 2px; }
.pass-clock { font: 600 var(--step-4)/1 var(--font-display); color: var(--ink); }
.pass-day { font-size: var(--step--1); font-weight: 650; color: var(--ink-2); }
.pass-time .pass-until { font-size: var(--step--1); font-weight: 650; line-height: 1.3; color: var(--gold-ink); }
.pass-time .pass-until:empty { display: none; }
.pass-time .pass-until[data-over="true"] { color: var(--ink-2); font-weight: 600; }

.pass-main { grid-area: main; min-width: 0; }
.pass-title { margin: 0 0 var(--space-1); font-size: var(--step-1); font-weight: 650; line-height: var(--leading-snug); overflow-wrap: anywhere; }
.pass-title a { color: var(--ink); text-decoration-color: var(--border); }
.pass-title a:hover { text-decoration-color: currentColor; }
.pass-glance { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); margin: 0 0 var(--space-2); max-width: none; font-size: var(--step--1); line-height: 1.4; }
.pass-where { font-weight: 650; color: var(--ink); }
.pass-bright { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.pass-lasting { color: var(--ink-2); }
.pass-sentence { margin: 0; max-width: 72ch; font-size: var(--step--1); line-height: var(--leading-body); color: var(--ink-2); }
.pass-when { font-weight: 650; }
.pass-when time { font-variant-numeric: tabular-nums; }

.pass-sketch { grid-area: sketch; display: block; width: 100%; max-width: 260px; height: auto; justify-self: end; align-self: center; }
.pass-more { grid-area: more; min-width: 0; }
.pass-cloud, .pass-together, .pass-item .pass-age { margin: var(--space-2) 0 0; font-size: var(--step--1); color: var(--ink-2); max-width: 72ch; }
.pass-age { display: block; font-size: var(--step--1); color: var(--ink-2); }
.pass-item .pass-age.stale { color: var(--ink); padding-left: var(--space-2); border-left: 3px solid var(--critical); }

/* The exact figures: a quiet fold at the foot of the card. */
.pass-figures { margin-top: var(--space-2); font-size: var(--step--1); }
.pass-figures > summary { display: list-item; width: fit-content; min-height: 24px; padding: 2px 0; color: var(--accent-ink); font-weight: 600; }
.pass-figures dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; margin: var(--space-2) 0 var(--space-1); padding: var(--space-3); border-radius: var(--radius-sm); background: var(--surface-2); }
.pass-figures dt { color: var(--ink-2); font-weight: 600; }
.pass-figures dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* A column of middling width (a profile's): a smaller sketch, still beside the words. */
@container passes (max-width: 759px) {
  .pass-item { grid-template-columns: 5.25rem minmax(0, 1fr) 200px; column-gap: var(--space-4); padding: var(--space-4); }
  .pass-clock { font-size: var(--step-3); }
}
/* Narrower (a tablet's column): the sketch joins the words, under them. */
@container passes (max-width: 559px) {
  .pass-item { grid-template-columns: 5.25rem minmax(0, 1fr); grid-template-areas: "time main" "time sketch" "time more"; grid-template-rows: auto; }
  .pass-sketch { justify-self: start; max-width: 280px; margin-top: var(--space-3); }
}
/* Narrow (a phone, a profile's column, the Live map's panel): the time beside the sketch, the
   words beneath both, all the width. */
@container passes (max-width: 420px) {
  .pass-item { grid-template-columns: 5.25rem minmax(0, 1fr); grid-template-areas: "time sketch" "main main" "more more"; column-gap: var(--space-3); padding: var(--space-3) var(--space-4); }
  .pass-clock { font-size: var(--step-3); }
  .pass-sketch { margin: 0; justify-self: end; max-width: 240px; }
  .pass-main { margin-top: var(--space-2); }
  .pass-title { font-size: var(--step-0); }
  .pass-figures dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pass-figures dd { margin-bottom: var(--space-2); }
}

/* Very narrow (a 300 px column): the time on one line, the sketch the full width under it. */
@container passes (max-width: 340px) {
  .pass-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "time" "sketch" "main" "more"; }
  .pass-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); padding: 0; }
  .pass-time .pass-until { flex-basis: 100%; }
  .pass-sketch { justify-self: stretch; max-width: none; margin-top: var(--space-2); }
  .pass-item.unseen .pass-sketch { max-width: none; }
}

/* Rows rather than boxes, for a narrow column inside a card of its own (a profile's "Can I see it?"). */
.pass-sentences.compact { gap: 0; }
.pass-sentences.compact > .pass-item { padding: var(--space-4) 0; background: none; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--hairline); }
.pass-sentences.compact > .pass-item:first-child { border-top: 0; padding-top: var(--space-1); }

/* Passes that cannot be seen: quieter in every part, no gold. */
.pass-item.unseen { background: var(--page); box-shadow: none; }
.pass-sentences.compact > .pass-item.unseen { background: none; }
.pass-item.unseen .pass-clock { font-size: var(--step-2); color: var(--ink-2); }
.pass-item.unseen .pass-time .pass-until { color: var(--ink-2); }
.pass-item.unseen .pass-where, .pass-item.unseen .pass-bright { color: var(--ink-2); font-weight: 600; }
.pass-item.unseen .pass-sketch { max-width: 200px; }
/* Orbit data too old to trust: never drawn as something to go out and see. */
.pass-item.stale .pass-time .pass-until { color: var(--ink-2); }
.pass-item.stale .stars.gold { color: var(--ink-2); }

/* ---- The sky-path sketch (sky-path.js): drawn in the theme's colours ------------------------ */
.sky-path { overflow: visible; }
.sky-path .sp-sky { fill: var(--surface-2); }
.sky-path .sp-low { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.sky-path .sp-guide { stroke: var(--muted); stroke-width: 0.8; stroke-dasharray: 1.5 3; }
.sky-path .sp-guide-label { fill: var(--muted); font: 650 10px var(--font-text); }
.sky-path .sp-horizon { stroke: var(--ink-2); stroke-width: 1.4; }
.sky-path .sp-tick { stroke: var(--ink-2); stroke-width: 1; }
.sky-path .sp-compass { fill: var(--ink-2); font: 650 11.5px var(--font-text); letter-spacing: 0.02em; }
.sky-path .sp-compass.major { fill: var(--ink); font-weight: 800; font-size: 13px; }
.sky-path .sp-unseen { fill: none; stroke: var(--ink-2); stroke-width: 1.3; stroke-dasharray: 2.5 3.5; stroke-linecap: round; }
.sky-path .sp-seen { fill: none; stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.sky-path .sp-start { fill: var(--gold); }
.sky-path .sp-arrow { fill: var(--gold); }
.sky-path .sp-start.unseen { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.3; }
.sky-path .sp-arrow.unseen { fill: var(--ink-2); }
.pass-item.stale .sky-path .sp-seen { stroke: var(--ink-2); stroke-dasharray: 6 3; }
.pass-item.stale .sky-path :is(.sp-start, .sp-arrow) { fill: var(--ink-2); }

/* ---- Notes under a list of passes ----------------------------------------------------------- */
.pass-show-row { margin: var(--space-3) 0 0; }
.pass-none { margin: 0 0 var(--space-3); color: var(--ink-2); }
.pass-others { margin-top: var(--space-4); }
.pass-others > summary { display: list-item; min-height: 24px; padding: var(--space-1) 0; font-weight: 650; }
.pass-others[open] > summary { margin-bottom: var(--space-3); }
.pass-notes { margin-top: var(--space-4); font-size: var(--step--1); }
.pass-notes > p { margin: 0 0 var(--space-1); }
.pass-notes-more { border-top: 0; }
.pass-notes-more > summary { min-height: 32px; padding: 2px 0; font-size: var(--step--1); color: var(--ink-2); font-weight: 600; }
.pass-notes-more .disclosure-body { padding-bottom: var(--space-2); }
.pass-notes-more .disclosure-body p { margin: 0; color: var(--ink-2); }
.cloud-credit { margin: var(--space-2) 0 0; font-size: var(--step--1); }

/* ---- The night strip (night-strip.js): navy in either theme --------------------------------- */
.night-strip { padding: var(--space-3) var(--space-4) var(--space-1); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); user-select: none; }
.ns-sky { position: relative; height: var(--ns-height, 30px); border-bottom: 2px solid var(--field-border); }
.ns-field { position: absolute; inset: 0; }
/* Each mark fills the box night-strip.js gives it (its size set on it), centred on its time: the
   star at the foot of the box, a number (how many it stands for) above it. No two boxes touch. */
.ns-star {
  position: absolute; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  transform: translateX(-50%); color: var(--gold); cursor: pointer;
}
.ns-star.ns-faint { padding-bottom: 4px; }
.ns-star.ns-easy { padding-bottom: 2px; }
.ns-faint svg { opacity: 0.85; }
.ns-star svg { display: block; flex: none; fill: currentColor; stroke: var(--surface); stroke-width: 0.9; overflow: visible; }
.ns-star:hover svg { stroke: var(--ink); }
.ns-count { display: block; font: 700 12px/14px var(--font-text); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; color: var(--ink); }
/* Stacked: the "now" line beneath the stars, the shade over the part of the night gone above them. */
.ns-field { z-index: 1; }
.ns-past { position: absolute; z-index: 2; top: 0; bottom: -2px; left: 0; width: var(--ns-past, 0%); background: color-mix(in srgb, var(--surface) 70%, transparent); border-right: 0; pointer-events: none; }
/* "Now": the line from its label, on its own line above the stars (room made while it is shown), to below the bar. */
.night-strip.has-now { padding-top: calc(var(--space-3) + 22px); }
.ns-now { position: absolute; z-index: 0; top: -24px; bottom: -8px; width: 0; border-left: 2px solid var(--accent); pointer-events: none; }
.ns-now-label { position: absolute; z-index: 3; top: 0; left: 4px; padding: 0 5px; border-radius: var(--radius-xs); background: var(--accent); color: var(--on-accent); font-size: var(--step--2); font-weight: 700; line-height: 1.5; white-space: nowrap; }
/* Near the end of the night the label would run off the strip: it hangs to the left of the line. */
.ns-now.late .ns-now-label { left: auto; right: 2px; }
.ns-axis { position: relative; height: 26px; font-size: var(--step--2); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ns-tick { position: absolute; top: 0; width: 1px; height: 5px; background: var(--muted); }
.ns-tick.labelled { height: 7px; background: var(--ink-2); }
.ns-tick > span { position: absolute; top: 8px; left: 0; transform: translateX(-50%); white-space: nowrap; }
.ns-end { position: absolute; top: 8px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ns-end.start { left: 0; }
.ns-end.end { right: 0; }

/* ---- Sky: "Tonight" ------------------------------------------------------------------------- */
.sky-tonight-answer > h2 { margin-bottom: var(--space-3); }
.sky-tonight-lead { max-width: 60ch; margin-bottom: var(--space-2); font-size: var(--step-2); line-height: 1.35; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.sky-tonight-dark { margin-bottom: 0; }
.sky-tonight-strip { margin-top: var(--space-5); }
/* While tonight is worked out (sky-tonight.js): room kept for the line on when it gets dark and for
   the strip with its key (about 155 px tall on a wide screen, 220 px on a phone, where the key wraps),
   so the list under them stays where it is when the answer arrives. */
.sky-tonight[data-state="working"] .sky-tonight-dark { min-height: 1.55em; }
.sky-tonight-strip.waiting { min-height: clamp(155px, calc(230px - 5vw), 220px); }
.sky-tonight-strip.waiting > * { display: none; }
.sky-strip-key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-5); margin: var(--space-2) 0 0; max-width: none; font-size: var(--step--2); color: var(--ink-2); }
.sky-strip-key .key-item { display: inline-flex; align-items: center; gap: var(--space-2); }
.sky-strip-key .key-item[hidden] { display: none; }
.sky-strip-key .key-star { display: inline-grid; place-items: center; color: var(--gold); }
.sky-strip-key .key-star svg { fill: currentColor; }
.sky-strip-key .key-numbered { display: inline-flex; flex-direction: column; align-items: center; }
.sky-strip-key .key-numbered .ns-count { line-height: 13px; color: var(--ink); }
.sky-strip-key .key-hint { color: var(--muted); }
/* Nothing to see: the answer says why; a dashed ring beside it, as the foundation's empty state. */
.sky-tonight[data-state="empty"] .sky-tonight-answer { text-align: center; }
.sky-tonight[data-state="empty"] .sky-tonight-lead { margin-inline: auto; font-size: var(--step-1); }
.sky-tonight[data-state="empty"] .sky-tonight-dark { margin-inline: auto; }
.sky-tonight-empty .state { padding: var(--space-4) 0 var(--space-3); }
.sky-tonight[data-state="empty"] .sky-tonight-strip { text-align: left; }
@media (max-width: 640px) {
  .sky-tonight-lead { font-size: var(--step-1); }
  .night-strip { padding-inline: var(--space-3); }
}

.tonight-nights { margin-top: var(--space-6); }
.tonight-night + .tonight-night { margin-top: var(--space-8); }
.tonight-night > h3 { margin-bottom: var(--space-3); font-size: var(--step-0); font-weight: 650; color: var(--ink-2); }
.tonight-none { margin: 0; }
.growing > .btn { margin-top: var(--space-3); }
.tonight-faint { margin-top: var(--space-4); }
.tonight-faint > summary { color: var(--ink); }
/* A later night, folded behind its heading: the heading's button opens it. */
.tonight-night.later > h3 { margin: 0; text-transform: none; letter-spacing: 0; font-size: var(--step-0); color: var(--ink); }
.night-toggle {
  all: unset; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); width: 100%; min-height: 48px;
  padding: var(--space-2) var(--space-4); border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 650;
}
.night-toggle::before {
  content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 0 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur) var(--ease-out);
}
.night-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.night-toggle:hover { background: var(--surface-2); }
.night-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.night-toggle-text { flex: 1 1 18rem; }
.night-toggle-count { color: var(--ink-2); font-weight: 600; font-size: var(--step--1); }
.night-panel { padding-top: var(--space-4); }
.night-panel > .sky-tonight-strip { margin: 0 0 var(--space-4); }

/* For long exposures: the quietest hour, under tonight's list. */
.tonight-quiet { margin: var(--space-4) 0 0; font-size: var(--step--1); color: var(--ink-2); }

.sky-tonight-foot { margin-top: var(--space-6); }
.sky-tonight-how .disclosure-body p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.sky-saw-link { margin: var(--space-2) 0 0; }

/* A quiet line of links to the guides that explain the part of the page it is in (guide-links.js). */
.guide-line { margin: var(--space-2) 0 0; font-size: var(--step--1); color: var(--ink-2); }
.guide-line a { display: inline-block; min-height: 24px; padding: 2px 0; }
.sky-tonight-empty-guide { margin-inline: auto; }

/* Share and print, under the lists: a row of buttons; sharing opens beneath it, saying first what the link gives away. */
.sky-tonight-tools { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.sky-tonight-tools:not(:has(:not([hidden]))) { display: none; }
.sky-share { display: grid; gap: var(--space-3); max-width: 52rem; margin: 0 0 var(--space-4); padding: var(--space-4); border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--surface-2); }
.sky-share-words { margin: 0; font-size: var(--step--1); color: var(--ink); }
.sky-share-fields { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr); gap: var(--space-3); }
.sky-share-link input { font-family: var(--font-mono); font-size: var(--step--1); }
.sky-share .field-error { margin: 0; }
.sky-share .field-error:empty { display: none; }
.sky-print-note { margin: calc(-1 * var(--space-2)) 0 var(--space-4); max-width: 64ch; font-size: var(--step--1); color: var(--ink-2); }
.sky-share .form-actions { margin-top: 0; }
@media (max-width: 640px) { .sky-share-fields { grid-template-columns: minmax(0, 1fr); } }

/* Launched in the last two weeks: a fold under the lists, its passes by launch. */
.sky-recent > summary { color: var(--ink); }
.sky-recent-lead { margin: 0 0 var(--space-2); max-width: 64ch; }
.sky-recent-basis { margin: 0 0 var(--space-3); max-width: 64ch; font-size: var(--step--1); color: var(--ink-2); }
.sky-recent-caveat { margin: 0 0 var(--space-4); max-width: 64ch; padding-left: var(--space-3); border-left: 3px solid var(--border); font-size: var(--step--1); color: var(--ink-2); }
.sky-recent-launch + .sky-recent-launch { margin-top: var(--space-6); }
.sky-recent-launch > h3 { margin-bottom: var(--space-3); font-size: var(--step-0); overflow-wrap: anywhere; }
.sky-recent-launch > h3 a { display: inline-block; min-height: 24px; }
.sky-recent-when { font-weight: 600; color: var(--ink-2); }

/* ---- Tonight on paper (tonight-sheet.js) ---------------------------------------------------- */
/* Only paper shows the sheet; on paper it is all there is, black on white whatever the theme: no
   header, navigation, map, buttons or folds. A row is never cut across a page break; the column
   heads repeat on each page. The paper's own size (A4, US Letter) is the browser's to choose. */
.print-only { display: none; }
@media print {
  :root:has(.print-sheet) { color-scheme: light; background: #fff; }
  body:has(.print-sheet) { background: #fff; color: #000; }
  body:has(.print-sheet) > :not(main) { display: none !important; }
  body:has(.print-sheet) main { padding: 0; }
  .sky-page:has(.print-sheet) > :not(.sky-tonight) { display: none !important; }
  .sky-tonight:has(.print-sheet) > :not(.print-only) { display: none !important; }
  .sky-page:has(.print-sheet) { max-width: none; margin: 0; padding: 0; }
  .print-only { display: block; }
  .print-sheet, .print-sheet * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
  .print-sheet { font: 9pt/1.3 var(--font-text); }
  .ps-head { margin-bottom: 8pt; }
  .ps-brand { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2pt 12pt; margin: 0 0 6pt; max-width: none; font-size: 9pt; }
  .ps-address { font-family: var(--font-mono); font-size: 8pt; overflow-wrap: anywhere; }
  .ps-title { margin: 0 0 4pt; font: 600 16pt/1.2 var(--font-display); }
  .ps-place, .ps-zone, .ps-lead, .ps-note, .ps-foot { margin: 0 0 4pt; max-width: none; }
  .ps-zone { font-weight: 700; }
  .ps-together { font-size: 7.5pt; }
  .ps-note { font-style: italic; }
  .ps-foot { margin-top: 8pt; font-size: 8.5pt; }
  .ps-table { width: 100%; border-collapse: collapse; font-size: 8pt; line-height: 1.25; font-variant-numeric: tabular-nums; }
  .ps-table thead { display: table-header-group; }
  .ps-table tr { break-inside: avoid; page-break-inside: avoid; }
  .ps-table th, .ps-table td { padding: 2pt 5pt 2pt 0; border-bottom: 0.5pt solid #000; text-align: left; vertical-align: top; }
  .ps-table thead th { border-bottom: 1pt solid #000; font-size: 7.5pt; font-weight: 700; }
  .ps-table .ps-day th { padding-top: 7pt; border-bottom: 1pt solid #000; font-weight: 700; break-after: avoid; page-break-after: avoid; }
  /* Every column may wrap, so the table never runs off the paper; the widths keep the figures together. */
  .ps-table th:nth-child(1) { width: 13%; }
  .ps-table th:nth-child(2) { width: 27%; }
  .ps-table th:nth-child(3) { width: 29%; }
  .ps-table th:nth-child(4) { width: 13%; }
  .ps-table th:nth-child(5) { width: 18%; }
  .ps-table th, .ps-table td { white-space: normal; overflow-wrap: anywhere; }
  .ps-time { font-weight: 700; }
  .ps-bright .stars { width: auto; height: 8pt; vertical-align: -1pt; margin-right: 2pt; }
  @page { margin: 14mm 12mm; }
}

/* ---- Sky: "Saw a bright light?" ------------------------------------------------------------- */
.sky-saw h2:focus { outline: none; }
.sky-saw h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sky-saw-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.sky-saw-form legend { margin-bottom: var(--space-2); padding: 0; font-weight: 650; }
.saw-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Each choice a pill: the radio stays (the browser's keyboard handling), drawn inside it. */
.saw-choice {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-4) 0 var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; font-size: var(--step--1); font-weight: 600;
}
.saw-choice:hover { border-color: var(--field-border); }
.saw-choice:has(:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 700; }
.saw-choice:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The radio's own ring gives way to the pill's only where the pill's can be drawn (:has()); a
   browser without it keeps the radio's ring, so the focus is never left unmarked. */
@supports selector(:has(*)) {
  .saw-choice input:focus-visible { outline: none; }
}
.sky-saw-at { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); margin-top: var(--space-3); }
.sky-saw-at > label { flex: 1 1 14rem; max-width: 20rem; }
.sky-saw-form .form-actions { margin-top: var(--space-4); }
.sky-saw-form .btn.primary { height: 44px; padding: 0 var(--space-5); }
.sky-saw-error { margin: var(--space-3) 0 0; padding: var(--space-2) var(--space-3); border-left: 4px solid var(--critical); border-radius: var(--radius-xs); background: var(--surface-2); color: var(--ink); font-size: var(--step--1); }
.sky-saw-answer { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--hairline); }
.sky-saw-lead { max-width: 64ch; font-size: var(--step-1); line-height: 1.4; }
.sky-saw-caveat { margin-top: var(--space-5); }
.sky-saw-caveat .disclosure-body p { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
@media (pointer: coarse) { .saw-choice { min-height: 44px; } }

/* ---- The Tonight card (tonight-card.js), on the Live map and wherever it is put ------------- */
/* A column: the heading and status, then the list and its notes (which scroll when the card is
   given less height than it needs), then the link to the Sky page, always in view. */
.tonight-card { display: flex; flex-direction: column; min-height: 0; max-height: var(--tonight-card-max, none); }
.tonight-head { flex: none; padding-bottom: var(--space-2); }
.tonight-head > h2 { margin-bottom: var(--space-1); }
.tonight-status { margin: 0; font-size: var(--step--1); line-height: 1.45; color: var(--ink); }
/* A shade at the top or the foot while there is more to scroll that way (the covers scroll with
   the content; the shades stay put), as on the foundation's tables. */
.tonight-scroll {
  flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  background:
    linear-gradient(var(--surface) 30%, transparent) center top / 100% 28px no-repeat local,
    linear-gradient(transparent, var(--surface) 70%) center bottom / 100% 28px no-repeat local,
    radial-gradient(farthest-side at 50% 0, color-mix(in srgb, var(--ink) 22%, transparent), transparent) center top / 100% 10px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, color-mix(in srgb, var(--ink) 22%, transparent), transparent) center bottom / 100% 10px no-repeat scroll;
}
.tonight-list { list-style: none; margin: 0; padding: 0; }
.tonight-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--hairline); }
.tonight-clock { font: 600 var(--step-2)/1.05 var(--font-display); color: var(--ink); }
.tonight-day { display: block; margin-top: 2px; font: 650 var(--step--2)/1.3 var(--font-text); letter-spacing: 0.02em; color: var(--ink-2); }
.tonight-row.now .tonight-day { color: var(--gold-ink); }
.tonight-body { min-width: 0; }
.tonight-what { margin: 0; font-weight: 650; line-height: var(--leading-snug); overflow-wrap: anywhere; }
.tonight-what a { color: var(--ink); text-decoration-color: var(--border); }
.tonight-what a:hover { text-decoration-color: currentColor; }
.tonight-glance { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-3); margin: 3px 0 0; font-size: var(--step--1); color: var(--ink-2); }
.tonight-where { font-weight: 650; color: var(--ink); }
.tonight-bright { display: inline-flex; align-items: center; gap: 5px; }
.tonight-notes { padding: var(--space-3) 0 var(--space-1); border-top: 1px solid var(--hairline); }
.tonight-place { margin: 0 0 var(--space-2); font-size: var(--step--1); color: var(--ink-2); }
.tonight-place .btn { margin: 2px 0; vertical-align: middle; }
.tonight-saw { margin: 0 0 var(--space-2); font-size: var(--step--1); }
.tonight-small { margin: 0; font-size: var(--step--2); color: var(--muted); }
.tonight-foot { flex: none; padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
.tonight-more { margin: 0; font-weight: 700; }
.tonight-more a::after { content: " ›"; }

/* The link that leads a pass or a sighting: at least 24 by 24 px (WCAG 2.2, 2.5.8). */
:where(.pass-title, .tonight-what) > a:first-child { display: inline-block; min-height: 24px; max-width: 100%; }
