/* The pages of things, and the one box that goes to any of them (UX.md, phases 3 and 6): the header of a fix's, a
   procedure's and an airport's page with its live list, the line that sets one flight of an aircraft apart from
   the next, and what stands under the box at the top as somebody types. It is read after app.css, whose colours and
   whose ways of drawing what is inferred and what was heard it uses and does not change. */

/* ---------------------------------------------------------------- the one box that goes anywhere */
/* The box at the top is the way to everything, a frequency among the rest. */
.search { position: relative; }
/* (Said so that it holds whichever of the two style sheets a page reads first: a release names them in its own order.) */
@media (min-width: 821px) {
  .top .search { flex: 0 1 420px; }
}
.found {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: min(460px, calc(100vw - 24px));
  max-height: min(70vh, 540px);
  overflow-y: auto;
  padding: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
/* One thing that what was typed could mean: what it is called, a little of what is known of it, and what kind of
   thing it is. The one Enter would take is marked. */
.fo {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.fo.on { background: rgba(76, 201, 240, 0.12); box-shadow: inset 2px 0 0 var(--accent); }
.fo-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-f { font: 600 13.5px var(--mono); color: var(--kind, var(--text)); }
.fo-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-kind { justify-self: end; font-size: 10.5px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.fo.on .fo-kind { color: var(--muted); }
/* The search of the words, always last. */
.fo-search { grid-template-columns: minmax(0, 1fr) auto; }
.fo-search .fo-name { font-weight: 500; color: var(--muted); }
.fo-search.on .fo-name { color: var(--text); }
.fo:not(.fo-search) + .fo-search { margin-top: 4px; position: relative; }
.fo:not(.fo-search) + .fo-search::before { content: ""; position: absolute; left: 6px; right: 6px; top: -2px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- the header of a thing's page */
/* What it is, what is known of it, and under that, set apart, who is on it now. */
.h-place { flex: 1 1 100%; min-width: 0; display: grid; gap: 7px; }
.h-top { display: flex; align-items: baseline; gap: 2px 12px; flex-wrap: wrap; }
.h-known { display: grid; gap: 3px; font-size: 13px; }
.k-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.k-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
/* An airport's own frequencies, on one line: each kind under its word. */
.k-own { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 26px; }
.k-group { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
.k-items { display: flex; flex-wrap: wrap; gap: 3px 12px; min-width: 0; }
/* A thing with a page of its own: the way there, in the tint a link in the words has. */
.k-to, .n-to { color: #9fd6ec; text-decoration: none; white-space: nowrap; }
.k-to:hover, .k-to:focus-visible, .n-to:hover, .n-to:focus-visible { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.k-to sup { margin-left: 3px; font-size: 9.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.k-order .k-to + .k-to::before { content: "\2192"; display: inline-block; margin-right: 12px; color: var(--faint); text-decoration: none; }
.k-text { font: 12.5px var(--mono); }
/* What there is much of (an airport's sixty approaches) stays folded under a line that says how much. */
.k-more > summary { cursor: pointer; color: var(--muted); font-size: 12.5px; width: fit-content; }
.k-more > summary:hover { color: var(--text); }
.k-more[open] > summary { margin-bottom: 4px; }
.k-more .k-row + .k-row { margin-top: 4px; }
.k-more .k-items { max-height: 6em; overflow-y: auto; }
/* A frequency, small: its number in the colour of its kind and what it is called. The way to its page. */
.f-chip, .fl-f { display: inline-flex; align-items: baseline; gap: 5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.f-chip b, .fl-f b { font: 600 12.5px var(--mono); color: var(--kind, var(--text)); }
.f-chip:hover span, .f-chip:focus-visible span, .fl-f:hover span, .fl-f:focus-visible span { color: var(--text); }
.f-chip:hover b, .f-chip:focus-visible b, .fl-f:hover b, .fl-f:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
/* The airport a frequency is the own of, in that frequency's header. */
.h-apt { font-size: 13px; color: #9fd6ec; text-decoration: none; white-space: nowrap; }
.h-apt::before { content: "of "; color: var(--muted); }
.h-apt:hover, .h-apt:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* What an aircraft holds can be a dozen things: they keep to three lines, and the rest is there when they are
   pointed at, or scrolled to. */
.h-facts { max-height: 92px; overflow-y: auto; }
.h-facts:hover, .h-facts:focus-within { max-height: 46vh; }

/* ---------------------------------------------------------------- the live list: who is on the thing now */
/* Set apart from the list below it, which is the archive: a panel of its own, with the mark of what is live. An
   aircraft is on it for as long as the server says so; the list below keeps everything. */
.h-now {
  display: grid;
  gap: 5px;
  padding: 6px 12px 8px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--live);
  border-radius: 8px;
  background: var(--panel);
}
.h-now.empty { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; border-left-color: var(--faint); background: none; padding: 5px 12px; }
.n-title { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.n-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
.h-now.empty .n-dot { background: var(--faint); animation: none; }
.n-count { font: 600 12px var(--mono); color: var(--text); letter-spacing: 0; }
.n-none { font-size: 13px; color: var(--muted); }
.n-all { margin-left: auto; padding: 0; border: 0; background: none; color: var(--accent); font-size: 12px; text-transform: none; letter-spacing: 0; }
.n-all:hover { text-decoration: underline; }
/* Each aircraft: its name, what ties it, how that was come by and, apart from that, how well its words were heard;
   under that, since when, when it was last heard, and the frequency it is on. Two rows of them show, and the rest
   is a scroll or a switch away. A card is two lines whatever it holds: where the first has no room for all of it,
   the words for what ties the aircraft give way (they are whole when pointed at), never the two marks. */
.n-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 7px 24px; max-height: 84px; overflow-y: auto; }
.n-list.all { max-height: 42vh; }
.n-ac { min-width: 0; display: grid; align-content: start; }
.n-first { display: flex; align-items: baseline; gap: 2px 8px; min-width: 0; font-size: 13.5px; }
.n-first > * { flex: none; }
.n-first .t-ac { text-decoration: none; }
.n-first .t-ac:hover, .n-first .t-ac:focus-visible { text-decoration: underline; }
.n-tie, .n-to { font-size: 12.5px; }
.n-first .n-tie, .n-first .n-to { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-second { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.n-when { overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- an aircraft's page, a flight at a time */
/* The line that sets one flight apart from the next: the day, from when to when, the airframe, and the trail of
   frequencies it was handed along. It stays at the top of the list while its flight is read. */
.day.flight { display: flex; align-items: baseline; gap: 14px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.day.flight > * { flex: none; }
.day.flight .fl-frame { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Under it, and not held at the top with it: the frequencies the flight was handed along, in order. */
.fl-under { display: flex; align-items: baseline; gap: 2px 14px; flex-wrap: wrap; padding: 5px 18px 6px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); color: var(--muted); font-size: 12px; }
.fl-under .fl-frame { display: none; }
.fl-day { text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.fl-span { font: 12px var(--mono); color: var(--text); white-space: nowrap; }
.fl-frame { color: var(--text); white-space: nowrap; }
.fl-trail { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 1px 7px; min-width: 0; max-width: 100%; }
.fl-then { font-style: normal; color: var(--faint); }

/* ---------------------------------------------------------------- a frequency's own page */
/* Every row there is on that frequency: the chip that says so on every other page says nothing new, and its room
   goes to the words. */
body[data-lens="frequency"] .feed .rows { --meta: 66px; }
body[data-lens="frequency"] .r-meta { grid-template-columns: 40px 17px; }
body[data-lens="frequency"] .r-chan { display: none; }

/* ---------------------------------------------------------------- the last line of the page */
/* The way to the whole graph, small, at the other end of the line from the credit. */
.credit { display: flex; align-items: baseline; gap: 14px; }
.credit a:last-child { margin-left: auto; }

@container (max-width: 760px) {
  .h-facts { max-height: 62px; }
  .k-row { gap: 8px; }
  .k-more .k-items { max-height: 4.6em; }
  /* One aircraft to a line of the list, and in it nothing is cut: what does not fit goes to a line of its own. */
  .n-list { grid-template-columns: minmax(0, 1fr); max-height: 82px; }
  .n-first { flex-wrap: wrap; }
  .h-now { padding: 6px 10px 7px; }
}
/* Home laid out in cards (js/cards.js): one card a frequency, or one an aircraft, each with its latest lines as the
   list draws them. The cards stand in the list's place, and the lines in them are the list's own rows, laid out
   again here for a narrow box: who speaks runs into the words, as in a script. */
.cards { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; padding: 12px 16px 16px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 10px; align-content: start; }
.cards .feed-edge { padding: 26px 18px; }
/* By aircraft: how many of the recent lines name nobody, said small, with the way to everything. */
.cards-note { margin: 0 2px 10px; font-size: 12.5px; color: var(--muted); }
.cards-note a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.cards-note a:hover, .cards-note a:focus-visible { text-decoration: underline; }
body[data-home="frequency"] #btnLatest, body[data-home="aircraft"] #btnLatest { display: none; }      /* the cards are of the present */

/* A card. Every card is the same size, so that a line coming in moves nothing but the lines of its own card, and a
   card that changes its seat moves as a whole. A quiet one stands back. */
.card {
  --card: var(--panel);
  display: flex;
  flex-direction: column;
  height: 204px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
}
.card.quiet { --card: var(--bg); }
.card.quiet .c-lines { opacity: 0.66; }
.c-head { flex: none; display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 7px 12px 6px; border-bottom: 1px solid rgba(31, 43, 56, 0.75); }
.card[data-kind] .c-head { box-shadow: inset 0 2px 0 color-mix(in srgb, var(--kind, transparent) 55%, transparent); }
/* The small thing that says a card is speaking now: red and beating while it is on the air, lit for a few seconds
   when a line has just come. */
.c-now { flex: none; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.card[data-now="air"] .c-now { background: var(--live); box-shadow: 0 0 6px var(--live); animation: pulse 1s ease-in-out infinite; }
.card[data-now="new"] .c-now { background: var(--accent); }
/* Its name, the way to its own page: what a frequency's ground station is called and the frequency in the colour of
   its kind; an aircraft's call sign as spoken and its flight ID. */
.c-title { flex: 0 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 14.5px; white-space: nowrap; }
.c-title:hover .c-name, .c-title:focus-visible .c-name { text-decoration: underline; text-underline-offset: 3px; }
.c-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* (The frequency as a chip, as a line of the list has it.) */
.c-freq { flex: none; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font: 600 12.5px var(--mono); color: var(--kind, var(--text)); }
.c-title:hover .c-freq, .c-title:focus-visible .c-freq { border-color: var(--kind, var(--muted)); background: var(--panel-2); }
.c-id { flex: none; font: 12px var(--mono); font-weight: 400; color: var(--muted); }
/* The frequency an aircraft was last heard on, as a chip: the way to that frequency's page. */
.c-on { flex: none; padding: 0 7px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.c-on b { font: 600 12px var(--mono); color: var(--kind, var(--text)); }
.c-on:hover, .c-on:focus-visible { border-color: var(--kind, var(--muted)); background: var(--panel-2); }
.c-age { flex: none; margin-left: auto; font: 11.5px var(--mono); color: var(--faint); white-space: nowrap; }

/* Its latest lines, the newest last. Where they are more than the card has room for, the newest is at its foot and
   what is older goes out at the top (cards.js keeps it so). */
.c-lines {
  flex: 1;
  min-height: 0;
  list-style: none;
  margin: 0;
  padding: 3px 0 5px;
  overflow: hidden;
}
.c-lines.over { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px); mask-image: linear-gradient(to bottom, transparent 0, #000 16px); }
.cards .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "text time" "text meta";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 0 8px;
  padding: 3px 10px 3px 12px;
  border: 0;
  font-size: 14px;
}
.cards .row.hidden { display: grid; }      /* the copy of a transmission on another frequency is a line of that frequency's card */
.cards .row:hover { background: var(--panel-2); }
.cards .row.live::before { left: 3px; top: 12px; width: 6px; height: 6px; margin-top: 0; }
.cards .r-text { grid-area: text; }
/* When it was said, to the minute, small at the line's end. */
.cards .r-time { grid-area: time; width: 5ch; overflow: hidden; white-space: nowrap; font-size: 11px; line-height: 20px; color: var(--faint); }
.cards .r-act { display: none; }
/* The frequency of a line: nothing on a frequency's own card, and on an aircraft's only where a line was said on
   another frequency than its latest, which the head of the card names. */
.cards .r-meta { display: none; }
.cards[data-by="aircraft"] .row.elsewhere .r-meta { grid-area: meta; display: block; font-size: 11px; }
.cards .r-meta .r-dur, .cards .r-meta .r-sig, .cards .r-meta .r-label { display: none; }
.cards .r-meta .r-chan { padding: 0; border: 0; }
.cards .r-meta .r-freq { font-size: 11px; font-weight: 500; }
/* A turn: who speaks, and the words run on after it. A turn that is longer than three lines is cut, and says so. */
.cards .turn, .cards .turn[data-who="aircraft"] { display: block; position: relative; line-height: 20px; max-height: 60px; overflow: hidden; }
.cards .w-to, .cards .w-about { display: inline; }      /* (run on with the words: every line of a turn is then as high as the next) */
.cards .t-who a { white-space: nowrap; }      /* (and a name goes to the next line whole) */
.cards .turn[data-who="aircraft"] { padding-left: 9px; }
.cards .turn + .turn { margin-top: 2px; }
/* On an aircraft's card, as on its page, the turns of a recording that are neither by it nor to it are not its
   lines: here, where room is short, they are left out. */
.cards[data-by="aircraft"] .turn.other { display: none; }
.cards .t-who { display: inline; margin-right: 6px; font-size: 13px; }
.cards .t-words { display: inline; }
.cards .turn.cut::after {
  content: "\2026";
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 22px;
  color: var(--muted);
  background: linear-gradient(to right, transparent, var(--card) 55%);
}
.cards .row:hover .turn.cut::after { background: linear-gradient(to right, transparent, var(--panel-2) 55%); }
.cards .row.playing .turn.cut::after { background: none; }
.cards .also { display: none; }      /* (each frequency that carried it has its own card) */

@media (max-width: 520px) {
  .cards { padding: 8px 10px 12px; }
  .cards-grid { gap: 8px; }
  .card { height: 188px; }
}
@media (prefers-reduced-motion: reduce) {
  .card[data-now="air"] .c-now { animation: none; }
}
/* Going back in time (js/when.js): a slim strip above the list on every page. The days there are, the day in view
   from midnight to midnight with what was heard drawn along it, where the list is and where now is, and a small way
   to type a date and a time. */
.when {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px 12px;
  padding: 6px 18px 3px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 25, 34, 0.35);
  font-size: 12.5px;
}
/* The days: today, the days before it that have anything, and the way to every other day. */
.when-days { flex: none; display: flex; align-items: center; gap: 3px; }
.when-day { border: 1px solid transparent; border-radius: 999px; background: none; padding: 2px 9px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.when-day:hover { color: var(--text); background: var(--panel-2); }
.when-day.on { color: var(--accent); border-color: rgba(76, 201, 240, 0.45); background: rgba(76, 201, 240, 0.08); }
.when-more { color: var(--faint); }
.when-more.spare { display: none; }      /* every day has a chip already */
.when-more[aria-expanded="true"] { color: var(--text); background: var(--panel-2); }

/* The day in view. Bars for what was heard, ten minutes each, the tallest the day's busiest; a rule under them with
   the hours; what of today has not been yet, set back; a thin line where now is; and the mark of where the list is,
   with its time. */
.when-strip { flex: 1 1 200px; min-width: 0; position: relative; height: 36px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 4px; }
.when-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line); }
.when-bars { position: absolute; left: 0; top: 3px; width: 100%; height: 20px; fill: color-mix(in srgb, var(--accent) 58%, var(--bg)); shape-rendering: crispEdges; }
.when-strip:hover .when-bars { fill: color-mix(in srgb, var(--accent) 72%, var(--bg)); }
.when-ahead { position: absolute; top: 3px; right: 0; height: 20px; background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(127, 147, 166, 0.09) 4px 5px); border-left: 0; pointer-events: none; }
.when-hours i { position: absolute; top: 23px; height: 13px; padding: 2px 0 0 4px; border-left: 1px solid var(--line); font: 10px/11px var(--mono); font-style: normal; color: var(--faint); pointer-events: none; }
.when-hours i.minor { color: transparent; height: 4px; }
.when-now { position: absolute; top: 1px; width: 1px; height: 23px; background: var(--live); pointer-events: none; }
.when-now::before { content: ""; position: absolute; left: -2px; top: -1px; width: 5px; height: 5px; border-radius: 50%; background: var(--live); }
.when-at { position: absolute; top: 0; width: 2px; height: 25px; margin-left: -1px; border-radius: 1px; background: var(--accent); pointer-events: none; }
.when-at::after { content: ""; position: absolute; left: -3px; bottom: -4px; border: 4px solid transparent; border-top: 0; border-bottom-color: var(--accent); }
.when-at b { position: absolute; left: 6px; top: 0; padding: 0 4px; border-radius: 4px; background: rgba(11, 16, 22, 0.88); font: 600 10.5px/14px var(--mono); color: var(--accent); white-space: nowrap; }
.when-at b.left { left: auto; right: 6px; }
.when-at.live b { color: var(--live); }
/* Where a drag or the keys are taking it, until it is let go. */
.when-at.pending { background: var(--text); z-index: 1; }
.when-at.pending::after { border-bottom-color: var(--text); }
.when-at.pending b { color: var(--text); background: var(--panel-2); border: 1px solid var(--line); }
.when-tip { position: absolute; top: 100%; margin-top: 3px; z-index: 5; padding: 2px 8px; border-radius: 6px; background: rgba(8, 12, 18, 0.96); border: 1px solid var(--line); font: 11.5px var(--mono); white-space: nowrap; pointer-events: none; }

/* A date and a time, typed: behind a small button, the box the page has always had for it. */
/* (Said with the strip's own class before it, so that it outweighs what app.css says of every such button: a
   release reads that sheet after this one and the page as written reads it before. tools/built_same.mjs.) */
.when .when-go { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; color: var(--muted); }
.when .when-go:hover, .when .when-go[aria-expanded="true"] { color: var(--text); }
.when-box { position: absolute; right: 12px; top: 100%; margin-top: 4px; z-index: 6; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.when-box input { color-scheme: dark; }

/* Every day there is: a month at a time, each day as deep in colour as it has much, a day with nothing set back. */
.when-cal { position: absolute; top: 100%; margin-top: 4px; z-index: 6; width: 246px; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.cal-head .ghost { padding: 0 9px; font-size: 16px; line-height: 22px; }
.cal-head .ghost:disabled { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .wd { text-align: center; font-size: 10.5px; color: var(--faint); }
.cal-grid .day { aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: 7px; background: color-mix(in srgb, var(--accent) calc(var(--much, 0) * 100%), transparent); color: var(--text); font: 12px var(--mono); }
.cal-grid .day:hover:not(:disabled) { border-color: var(--muted); }
.cal-grid .day:disabled { background: none; color: var(--faint); opacity: 0.45; cursor: default; }
.cal-grid .day.today { text-decoration: underline; text-underline-offset: 3px; }
.cal-grid .day.on { border-color: var(--accent); }

@container (min-width: 1100px) {
  .when-hours i.minor { color: var(--faint); height: 13px; }      /* every third hour is named where there is room for it */
}
/* Where room is short it is still one line, which is all a telephone can spare: of the days only the day in view,
   with the way to the others as a small mark beside it (the calendar has them all, today among them). */
@container (max-width: 760px) {
  .when { gap: 6px; padding: 5px 12px 2px; }
  .when-day:not(.on):not(.when-more) { display: none; }
  .when-more, .when-more.spare { display: inline-block; padding: 2px 6px; font-size: 0; }
  .when-more::after { content: "\25BE"; font-size: 12px; }
  .when-hours i.minor { display: none; }
}
/* The Situation (js/situation.js): what out of the ordinary is going on in the airspace, and what was. A panel of
   its own: on a wide screen the column at the right of the page, always there; on a narrower one behind a bar of
   one line under the top bar, which is always there and opens it over the page. Inside it is one scroll, the
   newest at the top: what stands now, then what has gone, back in time; a rail of time stays at its top.

   Every rule here names the panel or its bar by its id, or begins with `html`: a release reads the style sheets
   in an order of its own (app.css last; as written it is first), and a rule that only weighed what a rule of
   app.css weighs would hold on one of the two and not on the other (tools/situation_same.mjs).

   A card is drawn in a form of its own. The words of a transmission it rests on are a transcript's words, and
   what the transcriber put in square brackets stands apart in them as it does in the list; nothing else here
   looks like what the list has for how sure words are (a dotted line under them), nor like the mark of how a
   fact was arrived at. And two things are never to be taken for one another: a row that plays a transmission
   (a play mark at its left, the whole width of the card) and the way to a thing's own page (a small pill with an
   arrow after its name). A third is neither: the way to the card itself, for sending to somebody (words at the
   right of the card's top line, which say what they do and leave the page as it is). */

/* The four levels, in colour and in a word (a card says the word as well): warning, caution, advisory, note. A
   card that is over has a fifth, and the bar a calm one for when nothing stands. */
#situation, #sitBar { --l4: #ff6b6b; --l3: #f5b942; --l2: #4cc9f0; --l1: #a8b6c4; --l0: #7f93a6; --calm: #5fcf9f; }
#situation [data-level="4"], #sitBar[data-level="4"] { --lvl: var(--l4); }
#situation [data-level="3"], #sitBar[data-level="3"] { --lvl: var(--l3); }
#situation [data-level="2"], #sitBar[data-level="2"] { --lvl: var(--l2); }
#situation [data-level="1"], #sitBar[data-level="1"] { --lvl: var(--l1); }
#situation [data-level="0"] { --lvl: var(--l0); }
#sitBar[data-level="0"] { --lvl: var(--calm); }

/* ---------------------------------------------------------------- the bar that opens it, on a narrower screen */
html #sitBar { display: none; }
#sitBar .sit-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--lvl); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lvl) 22%, transparent); }
#sitBar .sit-bar-level { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lvl); }
#sitBar .sit-bar-level:empty { display: none; }
#sitBar .sit-bar-words { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sitBar[data-level="0"] .sit-bar-words { color: var(--muted); }
#sitBar .sit-bar-n { flex: none; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--lvl); color: #0b1016; font: 700 12px/19px var(--mono); text-align: center; }
/* (The mark that says it opens: drawn, so that no font makes a picture of it.) */
#sitBar .sit-bar-go { flex: none; width: 7px; height: 7px; margin: 0 3px 0 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); }
#sitBar[aria-expanded="true"] .sit-bar-go { transform: rotate(45deg) translate(-2px, -2px); }
#sitBar:hover .sit-bar-go, #sitBar:focus-visible .sit-bar-go { border-color: var(--text); }
#sitBar:focus-visible { outline-offset: -2px; }

/* ---------------------------------------------------------------- the panel */
html #situation {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  width: 360px;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: var(--panel);
}
#situation:focus { outline: none; }
#situation .sit-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; scrollbar-width: thin; }
#situation .sit-head { padding: 12px 14px 8px; }
#situation .sit-head h2 { margin: 0 0 3px; font-size: 15px; font-weight: 650; }
#situation .sit-head p { margin: 0; font-size: 11.5px; line-height: 1.4; }
#situation .sit-close { display: none; position: absolute; z-index: 5; top: 8px; right: 10px; padding: 1px 11px 3px; font-size: 19px; line-height: 1.2; background: var(--panel); }
#situation .sit-warn { margin: 10px 12px 0; padding: 7px 10px; border: 1px solid rgba(245, 185, 66, 0.5); border-radius: 8px; color: var(--amber); font-size: 12.5px; }
#situation .sit-foot { margin: 0; padding: 10px 14px 16px; font-size: 12px; text-align: center; }
#situation .sit-foot:empty { padding: 0 0 12px; }
#situation .sit-gap { margin: 0; padding: 9px 14px; border-bottom: 1px dashed var(--line); font-size: 12px; text-align: center; }
/* What is said for whoever is read the page, and is not to be seen. */
#situation .sit-said, #situation .sit-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- the rail of time */
/* It stays at the top while the rest scrolls. Chips: now, the last hour, today, yesterday, the days before by
   name, each with a mark in the colour of its gravest; one that has nothing is plainly empty. They scroll
   sideways. Under them the hours of the day in view. */
#situation .sit-rail { position: sticky; top: 0; z-index: 3; padding: 7px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
#situation .sit-chips { position: relative; display: flex; gap: 5px; padding: 0 12px 7px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
#situation .sit-chips::-webkit-scrollbar { display: none; }
#situation .sit-chips.more::after { content: "\2026"; flex: none; padding: 0 8px; color: var(--muted); line-height: 26px; }
#situation .sit-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
}
/* "Now" stays at the left of them however far they are scrolled: the present is one tap from anywhere. (What
   goes by under it does not show beside it.) */
#situation .sit-chip[data-go="now"] { position: sticky; left: 0; z-index: 1; background: var(--panel-2); box-shadow: -13px 0 0 var(--panel), 5px 0 5px var(--panel); }
#situation .sit-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--lvl); }
#situation .sit-chip[data-level="0"] i { display: none; }
#situation .sit-chip:disabled { border-style: dashed; background: none; color: var(--muted); cursor: default; }
#situation .sit-chip:not(:disabled):hover { border-color: var(--muted); }
#situation .sit-chip.on { border-color: var(--accent); background: rgba(76, 201, 240, 0.1); color: var(--accent); }
#situation .sit-chip[data-go="now"].on { background: color-mix(in srgb, var(--accent) 12%, var(--panel-2)); }
#situation .sit-chip:focus-visible { outline-offset: -1px; }
#situation .sit-hours { position: relative; display: flex; gap: 1px; height: 31px; margin: 0 12px; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; border-radius: 4px; }
#situation .sit-hours:focus-visible { outline-offset: 3px; }
#situation .sit-hr { position: relative; flex: 1 1 0; min-width: 0; height: 16px; border-radius: 2px; background: rgba(127, 147, 166, 0.14); }
#situation .sit-hr:not([data-level="0"]) { background: var(--lvl); }
#situation .sit-hr.ahead { background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(127, 147, 166, 0.13) 3px 4px); }
#situation .sit-hr.now::before { content: ""; position: absolute; left: 50%; top: -3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--live); }
#situation .sit-hr.at { box-shadow: 0 0 0 1.5px var(--panel), 0 0 0 3px var(--text); z-index: 1; }
#situation .sit-hr.pending { box-shadow: 0 0 0 1.5px var(--panel), 0 0 0 3px var(--accent); z-index: 1; }
#situation .sit-hr[data-h]::after { content: attr(data-h); position: absolute; left: 0; top: 19px; font: 10px/11px var(--mono); color: var(--muted); }
#situation .sit-tip { position: absolute; top: -27px; z-index: 6; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(8, 12, 18, 0.96); font: 11.5px var(--mono); color: var(--text); white-space: nowrap; pointer-events: none; }

/* ---------------------------------------------------------------- the scroll: now, then back in time */
/* A heading to each span of time, which stays under the rail while what is under it goes by. */
#situation .sit-h {
  position: sticky;
  top: var(--rail, 78px);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 5px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
#situation .sit-sec[data-sec="now"] .sit-h { color: var(--text); }
#situation .sit-h-n:empty { display: none; }
#situation .sit-h-n { min-width: 18px; padding: 0 5px; border: 1px solid var(--line); border-radius: 999px; font: 600 11px/16px var(--mono); letter-spacing: 0; text-align: center; color: var(--text); }
#situation .sit-cards { list-style: none; margin: 0; padding: 8px 10px 4px; }
/* Where more stand than are seen at once: a line to each, the gravest first, which is the way to its card. */
#situation .sit-index { list-style: none; margin: 0; padding: 6px 10px 0; }
#situation .sit-jump { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 2px 6px; border: 0; border-radius: 6px; background: none; font-size: 13px; line-height: 1.5; color: var(--text); text-align: left; }
#situation .sit-jump:hover { background: var(--panel-2); }
#situation .sit-jump:focus-visible { outline-offset: -2px; }
#situation .sit-jump i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lvl); }
#situation .sit-jump-words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#situation .sit-none { display: flex; align-items: baseline; gap: 9px; margin: 0; padding: 12px 14px 12px; font-size: 13px; color: var(--muted); }
#situation .sit-none::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--calm); }

/* A card: its level and its kind, and the way to the card itself; what it is, what is going on or was, and when;
   then the transmissions it rests on, to be heard; then the ways to what it names. */
#situation .sit-card {
  --lvl: var(--l1);
  margin: 0 0 7px;
  padding: 7px 10px 8px 11px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lvl);
  border-radius: 8px;
}
#situation .sit-card[data-level="4"] { --lvl: var(--l4); background: color-mix(in srgb, var(--l4) 9%, var(--panel-2)); border-color: color-mix(in srgb, var(--l4) 45%, var(--line)); border-left-color: var(--l4); }
#situation .sit-card[data-level="3"] { --lvl: var(--l3); }
#situation .sit-card[data-level="2"] { --lvl: var(--l2); }
#situation .sit-card[data-level="1"] { --lvl: var(--l1); }
#situation .sit-card[data-level="0"] { --lvl: var(--l0); background: none; border-left-style: dashed; }      /* over */
#situation .sit-top { display: flex; align-items: baseline; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
#situation .sit-level { color: var(--lvl); }
#situation .sit-kind { color: var(--muted); font-weight: 600; }
#situation .sit-title { display: block; margin: 3px 0 0; font-size: 14px; font-weight: 650; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
#situation .sit-text { margin: 3px 0 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
#situation .sit-card[data-level="0"] .sit-title { color: var(--muted); }
#situation .sit-when { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
/* The way to the card itself: "Copy link" (on a telephone "Share"), which says for a moment that it has done so. */
#situation .sit-link { flex: none; align-self: center; margin: -2px -3px -2px auto; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; background: none; font: 500 11.5px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); white-space: nowrap; }
#situation .sit-link:hover, #situation .sit-link:focus-visible { border-color: var(--accent); color: var(--accent); }
#situation .sit-link.done { border-color: var(--calm); color: var(--calm); }
/* The card the address names (somebody was sent the way to it): ringed, for as long as the address names it. */
#situation .sit-card.linked { box-shadow: 0 0 0 2px var(--accent); }
#situation .sit-lost { margin: 10px 12px 0; padding: 7px 10px; border: 1px dashed var(--line); border-radius: 8px; font-size: 12.5px; color: var(--muted); }

/* The transmissions a card rests on. Each is a row and one control: a click plays it, here. The play mark is
   drawn (a triangle; a square while it plays), so that no font makes a picture of it. */
#situation .sit-src { margin: 8px -5px 0; padding-top: 6px; border-top: 1px solid var(--line); }
#situation .sit-src-head { display: flex; align-items: center; gap: 8px; min-height: 22px; margin: 0 5px 2px; }
#situation .sit-src-word { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
#situation .sit-all { margin-left: auto; padding: 1px 10px; border: 1px solid var(--line); border-radius: 999px; background: none; font-size: 12px; color: var(--text); }
#situation .sit-all:hover, #situation .sit-all.on { border-color: var(--accent); color: var(--accent); }
#situation .sit-txs { list-style: none; margin: 0; padding: 0; }
#situation .sit-tx {
  --p: 0;
  position: relative;
  display: block;
  width: 100%;
  padding: 5px 8px 6px 30px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  text-align: left;
  overflow: hidden;
}
#situation .sit-tx:hover { background: rgba(76, 201, 240, 0.08); }
#situation .sit-tx:focus-visible { outline-offset: -2px; }
#situation .sit-tx.playing, #situation .sit-tx.loading { background: rgba(76, 201, 240, 0.14); box-shadow: inset 3px 0 0 var(--accent); }
#situation .sit-tx::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 100%); background: var(--accent); }
#situation .sit-play { position: absolute; left: 11px; top: 9px; width: 0; height: 0; border-left: 9px solid var(--accent); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
/* A row that has been played since the page was opened: its mark is quiet, so that whoever goes down a card's rows
   sees which are still to hear. */
#situation .sit-tx.played .sit-play { border-left-color: var(--muted); }
#situation .sit-tx.playing .sit-play { left: 10px; top: 9px; width: 10px; height: 10px; border: 0; border-radius: 2px; background: var(--accent); }
#situation .sit-tx.loading .sit-play { animation: pulse 0.8s ease-in-out infinite; }
#situation .sit-tx-top { display: flex; align-items: baseline; gap: 8px; font: 11.5px/1.5 var(--mono); color: var(--muted); }
#situation .sit-tx-f { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); font-size: 12px; }
#situation .sit-tx-f b { font: 600 11.5px var(--mono); color: var(--text); }
#situation .sit-tx-dur { flex: none; margin-left: auto; }
#situation .sit-words { display: block; overflow-wrap: anywhere; }
#situation .sit-turn { display: block; }
#situation .sit-turn + .sit-turn { margin-top: 2px; }
#situation .sit-who { margin-right: 2px; font-weight: 600; color: #f3f8fc; }
#situation .sit-turn[data-who="G"] .sit-who { color: var(--l1); }
/* Words in square brackets: the transcriber's guess at a stretch it was not sure of, as the list draws them. */
#situation .sit-words .guess { color: var(--muted); }
#situation .sit-tx-note { display: block; margin-top: 2px; font-size: 12px; color: var(--amber); }
#situation .sit-more { margin: 2px 5px 0 30px; font-size: 12px; color: var(--muted); }
/* The line that brings out the rows between the first and the latest, where a card rests on many. */
#situation .sit-rest { position: relative; display: block; width: 100%; padding: 2px 8px 3px 30px; border: 0; border-radius: 6px; background: none; font-size: 12px; color: var(--muted); text-align: left; }
#situation .sit-rest::before { content: "\22EE"; position: absolute; left: 12px; top: 1px; }
#situation .sit-rest:hover, #situation .sit-rest:focus-visible { background: rgba(76, 201, 240, 0.08); color: var(--text); }

/* The things a card names: each the way to that thing's own page, and drawn as a way out. A thing with no page
   of its own is plain words. */
#situation .sit-refs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; margin: 8px 0 0; }
#situation .sit-refs-word { margin-right: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
#situation .sit-ref { max-width: 100%; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; line-height: 1.6; color: #9fd6ec; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#situation a.sit-ref { border-color: color-mix(in srgb, #9fd6ec 38%, var(--line)); }
#situation a.sit-ref::after { content: "\2192"; margin-left: 5px; }
#situation a.sit-ref:hover, #situation a.sit-ref:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--panel); }
#situation a.sit-ref:hover::after, #situation a.sit-ref:focus-visible::after { color: var(--accent); }
#situation .sit-ref.plain { color: var(--muted); border-style: dashed; }

/* A card that has gone: whole, as one that stands is (what it said, the transmissions it rested on, to be heard,
   and the ways to what it named), only quieter: no ground of its own, its level's colour on its edge and in its
   word. */
#situation .sit-card.sit-was { background: none; border-color: var(--line); border-left-color: var(--lvl); }
#situation .sit-was .sit-title { font-size: 13.5px; font-weight: 600; }

/* ---------------------------------------------------------------- where it stands */
/* Narrower than the list and the panel side by side: the bar under the top bar, and the panel over the list when
   the bar is pressed, between the bars above and the player below, which both stay in reach. */
@media (max-width: 1180px) {
  html #sitBar {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: none;
    width: 100%;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--panel);
    font-size: 13px;
    color: var(--text);
    text-align: left;
  }
  html .layout { position: relative; overflow: hidden; }
  html #situation {
    position: absolute;
    z-index: 6;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(100%, 400px);
    transform: translateX(102%);
    visibility: hidden;                 /* closed, nothing in it is to be reached with the keyboard */
    transition: transform 0.2s ease, visibility 0s 0.2s;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  }
  html body.sit-open #situation { transform: none; visibility: visible; transition: transform 0.2s ease; }
  html #situation .sit-close { display: block; }
  html #situation .sit-head { padding-right: 58px; }
  html #situation .sit-chips { padding-right: 56px; }
}
/* A telephone's width, or a screen too low for a drawer between the bars: the panel is the whole screen. */
@media (max-width: 560px), (max-width: 1180px) and (max-height: 620px) {
  html #sitBar { padding: 0 12px; }
  html #situation { position: fixed; z-index: 30; left: 0; width: auto; border-left: 0; box-shadow: none; }
  html #situation .sit-scroll { padding-bottom: env(safe-area-inset-bottom); }
  html #situation .sit-head { padding-top: max(12px, env(safe-area-inset-top)); }
}
/* A telephone's width (UX.md, phase 8): the page's own furniture gives way to the list. The band is lower, the
   squelch and the two switches are behind one button of the bar of controls, home's header says nothing the three
   buttons do not, and the player is two short rows: what is playing on one line, and under it the buttons. Nothing
   here is in force on a wider screen but the one rule that hides the button.

   Every rule begins with `html`, and must: a release loads app.css after this file and the page as written loads
   it before (the build keeps the style sheet that three pages share apart, and names it last), so a rule here that
   only said again what one there says would hold on one and not on the other. Measure a change on both
   (scratch/tools/phone_rows.mjs against a server with WEB_DIR on a built release, and against one without). */
#btnFilters { display: none; }
@media (max-width: 560px) {
  html #spectrum { height: 46px; }

  /* The bar of controls: on home the three ways and the button; on a frequency's page its squelch; on every other
     page nothing in it does anything, and it is not there. */
  html #btnFilters { display: inline-flex; align-items: center; margin-left: auto; padding: 4px 10px; font-size: 12.5px; }
  html #btnFilters[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
  html .controls .filters { display: none; }
  html .controls.open .filters { display: flex; flex: 1 1 100%; }
  html body:not([data-lens="all"]):not([data-lens="frequency"]) .controls { display: none; }
  html body[data-lens="frequency"] #btnFilters { display: none; }
  html body[data-lens="frequency"] .controls .filters { display: flex; }
  html body[data-lens="frequency"] .controls .chip.check { display: none; }

  /* Home's header (what the list is of, and how much there is) is said by the three buttons: it is there only
     while it has something of its own to say, which is what a search found. */
  html body[data-lens="all"]:not(:has(#rows[data-search])) #head { display: none; }

  /* The player. */
  html .transport { gap: 6px 8px; padding: 6px 10px 2px; }
  html .tp-now { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  html .tp-now .now-line, html .tp-now .now-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html .tp-now .now-line { flex: 0 1 auto; max-width: 62%; }
  html .tp-now .now-sub { flex: 1 1 0; min-width: 0; }
  html .transport .primary { width: 40px; height: 40px; }
  html .transport .primary svg { width: 18px; height: 18px; }
  html .tp-right .select { display: none; }
  html .tp-right { flex-wrap: nowrap; gap: 6px; }
  /* Its buttons and its choices stay on the one row down to a width of 360. */
  html .tp-left { gap: 4px; }
  html .transport .icon { width: 30px; height: 30px; }
  html .transport .seg button { padding: 6px 8px; font-size: 12px; }
  html .transport .live-btn { padding: 6px 8px; gap: 5px; font-size: 11.5px; }

  /* A thing's header (pages.css). What it is on one line: where there is no room for all of it, what comes after
     the name gives way (the last of it first; the name itself is never cut for it). What is folded says how much there is on one line. And of the live list one aircraft
     shows, whole, with the count beside the title and the switch that opens the rest (head.js asks whether any is
     hidden, so the switch is there). */
  html .h-place, html .h-known { grid-template-columns: minmax(0, 1fr); }      /* or a line that may not wrap makes the page as wide as itself */
  html .h-top { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
  html .h-top > * { flex: none; white-space: nowrap; }
  html .h-top .h-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  html .h-top .h-sub:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html .k-more:not([open]) > summary { width: auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html .n-list:not(.all) { max-height: none; overflow: visible; }
  html .n-list:not(.all) > .n-ac:nth-child(n+2) { display: none; }

  /* An aircraft's flights: the heading has the day and the hours, and the airframe is on the line under it. */
  html .day.flight .fl-frame { display: none; }
  html .fl-under { padding: 5px 12px 6px; }
  html .fl-under .fl-frame { display: inline; flex: 1 1 100%; }
}
/* Narrower than any telephone made lately: the player's choices take a row of their own before anything is cut. */
@media (max-width: 350px) {
  html .transport .tp-right { flex-wrap: wrap; }
}
