/* A day out: the pages, the yard, the sat nav. The pictures keep their real colours; the frame follows the theme. */
.do-sheet { width: min(980px, 100%); gap: 14px; }
.do-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 8px; }
.do-place { gap: 3px; padding: 10px 12px; }
.do-place .card-title { font-size: 19px; }
.do-place .card-text { font-size: 12.5px; line-height: 1.35; }
.do-who { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.do-who li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ink-soft); }
.do-who b { color: var(--ink); font: 600 16px/1.2 var(--f-display); letter-spacing: 0.01em; }

/* Tiles to tap: packing, snacks, getting changed */
.do-pack, .do-snacks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.do-tile {
  display: grid; gap: 3px; align-content: start; text-align: left; min-height: 64px; padding: 9px 11px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.04); color: var(--ink);
}
.do-tile b { font: 600 15.5px/1.2 var(--f-display); letter-spacing: 0.01em; }
.do-tile span { font-size: 12.5px; line-height: 1.3; color: var(--ink-faint); }
.do-tile:hover:not(:disabled) { border-color: rgba(var(--ink-rgb), 0.45); }
.do-tile.in { border-color: var(--good); background: rgba(var(--good-rgb), 0.12); }
.do-tile.in b::before { content: '\2713  '; color: var(--good); }
.do-tile.missing { border-color: var(--warn); background: rgba(var(--warn-rgb), 0.1); }
.do-tile.no { opacity: 0.45; }
.do-tile.special { border-color: rgba(var(--warn-rgb), 0.7); }
.do-tile.special:not(.in) b::after { content: ' \2605'; color: var(--warn); }
.do-tile:disabled { opacity: 0.4; cursor: default; }
.do-said { margin: 0; min-height: 2.9em; font: 400 17px/1.45 var(--f-voice); color: var(--ink); border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; }
.do-said.why { border-left-color: var(--warn); }
.do-done { grid-column: 1 / -1; margin: 0; font: 400 17px/1.45 var(--f-voice); color: var(--good); }
.do-ask { margin: 0; grid-column: 1 / -1; font: 600 13px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* The chandlery */
.do-shop { display: grid; gap: 6px; }
.do-shop-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.do-shop-row b { font: 600 15.5px/1.2 var(--f-display); letter-spacing: 0.01em; }
.do-shop-row span { font-size: 13.5px; color: var(--ink-soft); }
.do-shop-row .card-new { margin-left: 8px; font-size: 11px; font-weight: 600; }
.do-price { font: 600 15px/1 var(--f-mono); font-variant-numeric: tabular-nums; }

/* The yard: the car, the boat and the trolley, and the things to do */
.do-yard { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #e4eef2; }
.do-yard svg { display: block; width: 100%; aspect-ratio: 5 / 2; height: auto; max-height: 38vh; }
.do-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 7px; }
.do-act { text-align: left; padding: 10px 12px; min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.05); color: var(--ink); font-size: 15px; line-height: 1.35; }
.do-act:hover { border-color: var(--accent); }
.do-act.faint { color: var(--ink-faint); }

/* The sat nav */
.do-nav { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.do-map { display: block; width: 100%; height: min(52vh, 440px); }
.do-hud { position: absolute; left: 12px; top: 12px; max-width: min(360px, 70%); display: grid; gap: 4px; padding: 10px 14px;
  background: rgba(20, 28, 38, 0.88); color: #f4f1e8; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.do-next { font: 600 18px/1.25 var(--f-display); letter-spacing: 0.01em; }
.do-next-in { font: 500 14px/1 var(--f-mono); color: #e6c46a; }
.do-left { font: 500 12.5px/1.2 var(--f-mono); color: #b9c2cc; }

/* On the road: the replies in a chat, a card in place of the map (a sight, or lost), the view */
.do-replies { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 7px; }
.do-replies:empty { display: none; }
.do-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.do-card[hidden] { display: none; }
.do-pic { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #e6f0f3; }
.do-pic svg { display: block; width: 100%; aspect-ratio: 5 / 3; height: auto; }
.do-card-text { display: grid; gap: 8px; align-content: start; }
.do-card-text h3 { margin: 0; font: 600 22px/1.15 var(--f-display); letter-spacing: 0.01em; }
.do-card-words { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.do-card-text .dc-q { font-size: 17px; }
.do-card-text .dc-options button { padding: 7px 11px; font-size: 14.5px; }
.do-view { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #e6f0f3; }
.do-view svg { display: block; width: 100%; aspect-ratio: 5 / 2; height: auto; max-height: 36vh; }
.do-nav[hidden] { display: none; }

/* The day in the logbook */
.do-entry { white-space: pre-wrap; font: 400 15px/1.5 var(--f-voice); color: var(--ink-soft); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(var(--ink-rgb), 0.03); }

@media (max-height: 820px) {
  .do-yard svg { max-height: 34vh; }
  .do-map { height: min(46vh, 400px); }
  .do-said { font-size: 16px; }
}
@media (max-width: 720px) {
  .do-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .do-acts { grid-template-columns: 1fr; }
  .do-shop-row { grid-template-columns: 1fr auto; }
  .do-shop-row .do-price { grid-row: 2; }
}
/* The radio, afloat on a day out: wide enough for two columns of choices, and the commentary out of the way while she talks */
#radioPanel { width: min(860px, calc(100vw - 32px)); }
@media (min-width: 761px) { #radioPanel .dc-options { grid-template-columns: 1fr 1fr; } }
body.radio-open .log { display: none; }
/* Writing her own radio questions, and the friends' answers */
#radioPanel { max-height: calc(100dvh - 24px); overflow-y: auto; }
#radioPanel .rp-form { grid-column: 1 / -1; display: grid; gap: 8px; margin-bottom: 4px; }
#radioPanel .rp-form label { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
#radioPanel .rp-form label > span { font: 600 13px/1.2 var(--f-body); color: var(--accent-text); }
#radioPanel .rp-form textarea { resize: vertical; min-height: 2.6em; }
#radioPanel .rp-form .rp-check { grid-template-columns: auto 1fr; gap: 8px; }
#radioPanel .rp-form .rp-check > span { font: 400 14px/1.3 var(--f-body); color: inherit; }
#radioPanel .rp-hint { margin: 0; grid-column: 1 / -1; font-size: 14px; opacity: 0.8; }
#radioPanel .rp-err { margin: 0; color: var(--bad, #e0745a); font-size: 14px; }
@media (min-width: 761px) { #radioPanel .rp-form:has([data-pal]) { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  #radioPanel .rp-form:has([data-pal]) label:first-child, #radioPanel .rp-form .rp-err { grid-column: 1 / -1; } }
@media (max-width: 560px) { #radioPanel .rp-form label { grid-template-columns: 1fr; gap: 4px; } }
