/* ─────────────────────────────────────────────────────────────────────────────
   Loci web — the one stylesheet every page under web/ links (index.html studio,
   j/ share landing, the policy pages). Tokens first; then controls; then layout.

   Same system as the apps (Assets/Scripts/Loci/UI/UiTokens.cs, UiTheme.cs):
   colours are the hex transcription of UiTheme.Main (and .Kids under
   html[data-app="go"]), one control height per role, a small spacing and radius
   scale. Controls are CLASS-based, so <a class="btn primary"> and <button
   class="primary"> come out identical. Rows (.row) wrap, so adding a button is
   appending one element — never a re-tune of its neighbours.

   Deploy: copied to the loci-web repo with the pages (backend/README.md); bump
   the ?v= on every <link> when this file changes (assets cache for 4h).
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* colour */
  --primary: #d4537e; --warm: #faedda; --neutral: #eae4d9; --confirm: #6fa86b;
  --paper: #fdf8f1; --ink: #332624; --ink-soft: #78655c; --danger: #bd4d47;
  --ground: #efe6d8; --gold: #f5c747; --on-primary: #fff;
  /* spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  /* control heights: one per role */
  --control-h: 40px;      /* buttons, inputs, selects, tabs, header controls */
  --control-h-lg: 48px;   /* the one call-to-action on a page */
  --control-h-sm: 30px;   /* chips, category pills */
  /* shape */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow: 0 3px 10px rgba(60,35,25,.10);
  --shadow-header: 0 2px 8px rgba(60,35,25,.12);
  /* type */
  --font-meta: 13px; --font-body: 15px; --font-title: 22px;
}
/* Loci Go pages: the kids app's teal/mint (UiTheme.Kids). */
html[data-app="go"] {
  --primary: #32968f; --warm: #e2f1e6; --neutral: #dee7e2; --paper: #f2f9f5;
  --ink: #213230; --ink-soft: #5c746f; --ground: #e3efe8;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; background: var(--ground);
       color: var(--ink); line-height: 1.45; }
a { color: var(--primary); }
main { max-width: 1060px; margin: var(--space-5) auto; padding-inline: clamp(12px, 3vw, 32px); }
main.narrow { max-width: 820px; margin-bottom: 60px; }
h1, h2, h3 { margin: 0; }
h2 { font-size: var(--font-title); }
h3 { font-size: 17px; }
.muted { color: var(--ink-soft); font-size: var(--font-meta); }
.hidden { display: none !important; }

/* ── Header ───────────────────────────────────────────────────────────────── */
header { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
         min-height: 56px; padding: var(--space-2) var(--space-5); background: var(--paper);
         box-shadow: var(--shadow-header); position: sticky; top: 0; z-index: 5; }
header h1 { font-size: 20px; }
header .who { margin-inline-start: auto; color: var(--ink-soft); font-size: var(--font-meta); }
header > a:not(.btn) { margin-inline-start: auto; font-size: 14px; text-decoration: none; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow);
        padding: 20px; margin-bottom: var(--space-4); }
.card.article { padding: 26px 30px; }
.article h2 { font-size: 18px; margin: 26px 0 8px; }
.article h2:first-child { margin-top: 0; }
.article ul { padding-inline-start: 22px; }
.callout, .safety { background: var(--warm); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
           margin: 14px 0; font-size: 14.5px; }
/* The real-world safety box of the Terms pages: a callout with a warning edge. */
.safety { border-inline-start: 4px solid var(--danger); }
.safety ul { margin: var(--space-2) 0 0; }

/* ── Controls: one height, class-based variants ───────────────────────────── */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: var(--control-h); padding: 0 var(--space-4);
  border: 0; border-radius: var(--radius-md);
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  background: var(--neutral); color: var(--ink); text-decoration: none;
  cursor: pointer; white-space: nowrap;
}
.primary { background: var(--primary); color: var(--on-primary); }
.confirm { background: var(--confirm); color: var(--on-primary); }
.danger  { background: var(--danger);  color: var(--on-primary); }
.warm    { background: var(--warm);    color: var(--ink); }
.link    { background: none; padding: 0 var(--space-2); min-height: var(--control-h-sm); color: var(--primary); }
.link.danger { background: none; color: var(--danger); }
/* State is shown by which option is filled, never by rewriting a label: a .seg
   groups the options of one choice, and aria-pressed marks the current one. */
.seg { display: inline-flex; gap: 4px; }
button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.btn-lg  { min-height: var(--control-h-lg); padding: 0 var(--space-5); font-size: 17px; font-weight: 700; }
button:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; }
/* The header's Play Store link: a small primary button. */
.appbtn { min-height: var(--control-h); font-size: 13.5px; }

input, textarea, select {
  min-height: var(--control-h); padding: var(--space-2) var(--space-3);
  border: 1px solid #d9cfc2; border-radius: var(--radius-sm);
  font-size: var(--font-body); font-family: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 0; }
input[type=checkbox], input[type=radio], input[type=range] { min-height: 0; padding: 0; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); border-color: transparent; }

/* ── Chips / pills (one system) ───────────────────────────────────────────── */
.pill, .chip { display: inline-flex; align-items: center; gap: .4em; min-height: 24px;
               padding: 0 var(--space-3); border-radius: var(--radius-pill);
               font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.draft   { background: var(--neutral); color: var(--ink-soft); }
.pill.ready   { background: #dbe7f4; color: #2f5d8a; }
.pill.started { background: #dcedd8; color: #3c6b38; }
.pill.ended   { background: #e8d7d5; color: #8c4640; }
.pill.warn    { background: #f6e3c2; color: #8a6414; }
/* The leaderboard inside the Start card: set off from the facts above it. */
.board { margin: var(--space-4) 0; }
/* Team colour picker: the palette as swatches, the current one ringed. */
.swatches { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 3px; }
.swatch-pick { min-height: 0; width: 24px; height: 24px; padding: 0; border-radius: 6px; }
.swatch-pick[aria-checked="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: var(--space-1);
          vertical-align: middle; margin-inline-end: 6px; }

/* ── Rows: the toolbar. Wraps; a .spacer pushes what follows to the far edge. ── */
.row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.row .spacer { flex: 1 1 0; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.row.stack { flex-direction: column; align-items: stretch; }
.grow { flex: 1; min-width: 160px; }
.stack-v { display: flex; flex-direction: column; gap: var(--space-2); }

/* ── Tabs: a strip that scrolls sideways instead of wrapping ──────────────── */
.tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-4);
        overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 0 var(--space-5); }
.tabs button.active, .tabs button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }

/* ── Creator steps: all three names always visible, the current one filled ── */
.steps { margin-bottom: var(--space-2); }
.steps button { flex: 1 1 0; }
.steps button.active { font-weight: 700; }
.steps button.done { background: var(--confirm); color: var(--on-primary); }
#g-step-hint { margin-top: var(--space-1); }
#view-game[data-step="1"] [data-steps]:not([data-steps~="1"]),
#view-game[data-step="2"] [data-steps]:not([data-steps~="2"]),
#view-game[data-step="3"] [data-steps]:not([data-steps~="3"]) { display: none; }
/* Step 1 reads text (no placement column); step 2 reads placement (no edit/delete). */
#view-game[data-step="1"] #q-table th:nth-child(5), #view-game[data-step="1"] #q-table td:nth-child(5),
#view-game[data-step="2"] #q-table th:nth-child(6), #view-game[data-step="2"] #q-table td:nth-child(6) { display: none; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: start; color: var(--ink-soft); font-weight: 600; font-size: 12.5px;
     text-transform: uppercase; letter-spacing: .04em; padding: var(--space-2) 10px;
     border-bottom: 2px solid var(--neutral); }
td { padding: 10px; border-bottom: 1px solid var(--neutral); vertical-align: top; }
tr.rowlink:hover { background: #fbf3e7; cursor: pointer; }
td .link { min-height: 0; padding: 0 var(--space-1); }
/* A running game's locked question row, expanded in place: its choices, the
   correct one marked (the app's locked card). */
.q-expand td { background: var(--warm); padding: var(--space-2) 10px var(--space-2) 28px; line-height: 1.6; }
.q-expand .q-correct { color: var(--primary); margin-inline-start: 6px; }

/* ── Status line, modals, forms ───────────────────────────────────────────── */
/* Sticks under the header, so a reply to a button far down the page is still read.
   --header-h is measured by the page (the header wraps on phones). */
#status { min-height: 20px; font-size: 13.5px; color: var(--primary); margin: var(--space-1) 0 10px;
          position: sticky; top: calc(var(--header-h, 56px) + var(--space-2)); z-index: 4; }
#status:not(:empty) { width: fit-content; max-width: 100%; padding: 6px var(--space-3); background: var(--paper);
                      border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.modal-back { position: fixed; inset: 0; z-index: 1100; background: rgba(40,25,20,.45);
              display: flex; align-items: center; justify-content: center; }   /* above Leaflet (~1000) */
.modal { background: var(--paper); border-radius: var(--radius-lg); padding: 22px;
         width: min(620px, 92vw); max-height: 90vh; overflow: auto;
         box-shadow: 0 8px 30px rgba(40,25,20,.35); }
.modal.wide { width: min(760px, 94vw); }
.modal.xwide { width: min(1100px, 94vw); text-align: center; }
.modal h3 { margin-bottom: var(--space-3); }
.modal .row.end { margin-top: 14px; }
.choice-row { display: flex; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.choice-row input[type=text] { flex: 1; }
/* Settings: one fieldset per section (the app's set.section.*), each field a
   label, its control, and a one-line help under it. Labels wrap (never clipped),
   Save spans the whole grid. */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
                 gap: var(--space-3); margin-top: var(--space-2); }
.settings-grid fieldset { margin: 0; min-width: 0; padding: var(--space-3) var(--space-4) var(--space-4);
                          border: 1px solid var(--neutral); border-radius: var(--radius-md);
                          display: flex; flex-direction: column; gap: var(--space-3); }
.settings-grid legend { padding: 0 var(--space-2); font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
                        text-transform: uppercase; letter-spacing: .04em; }
.settings-grid label { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: var(--space-1); }
.settings-grid label small { font-size: 12px; font-weight: 400; color: var(--ink-soft); line-height: 1.35; }
.settings-grid label.check { flex-direction: row; align-items: center; gap: var(--space-2); }
.settings-grid fieldset > small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-soft); line-height: 1.35; margin-bottom: var(--space-2); }
.settings-grid .save-row { grid-column: 1 / -1; margin-top: 0; }
/* A warning inside a fieldset is a sentence, not a chip: it wraps in its column. */
.settings-grid fieldset > .pill { display: block; white-space: normal; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm, 8px); line-height: 1.35; }
/* Start step summary: one warm row per line of what players will get; each row
   is a button that jumps to where the thing is edited (the app's Summary Group). */
.summary { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: var(--space-3); }
.summary:empty { display: none; }
.summary .link { justify-content: flex-start; text-align: start; white-space: normal; min-height: var(--control-h);
                 padding: var(--space-2) var(--space-3); background: var(--warm); color: var(--ink);
                 border-radius: var(--radius-md); font-weight: 600; }
.summary .link:hover { color: var(--primary); }
/* The per-step help toggle: a link-looking summary, the long text folded under it. */
#g-step-help { margin-top: var(--space-1); }
#g-step-help summary { cursor: pointer; list-style: none; display: inline-block; color: var(--primary);
                       font-size: var(--font-meta); font-weight: 600; padding: 2px 0; }
#g-step-help summary::-webkit-details-marker { display: none; }
#g-step-help p { margin: var(--space-1) 0 0; }
.error { color: var(--danger); font-size: var(--font-meta); min-height: 1.2em; margin: 6px 0 0; }
.error:empty { min-height: 0; margin: 0; }   /* no gap reserved while there is nothing to say */
.field-note { margin: 12px 0 6px; }
code.jc { background: var(--warm); padding: 2px 8px; border-radius: 6px; font-size: 15px; letter-spacing: .08em; }
.qr-frames { display: flex; gap: var(--space-3); justify-content: center; align-items: center; margin-top: var(--space-3); }
.qr-frames img { max-width: 540px; image-rendering: pixelated; }
/* Feedback screenshots (0063): small thumbnails beside the text, full size on click.
   In the attach strip each one is a button that removes itself, with a corner cross. */
.fb-thumb { max-height: 64px; max-width: 96px; border-radius: 6px; vertical-align: middle; margin-inline-start: 8px; object-fit: contain; }
.fb-strip { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fb-chip { position: relative; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.fb-chip-x { position: absolute; inset-inline-end: 2px; inset-block-end: 2px; background: var(--paper); border-radius: 4px; padding: 0 3px; font-size: 11px; color: var(--ink); line-height: 1.4; }
/* The inbox table: the device column takes the wrapping, the two verbs stack, and
   the card scrolls sideways rather than letting the last column run past its edge. */
#fb-inbox { overflow-x: auto; }
#fb-table td:nth-child(4) { max-width: 320px; }
#fb-table td:last-child { white-space: normal; }
#fb-table td:last-child .link { display: block; }
#fb-table .fb-thumb { display: block; margin: 6px 0 0; max-height: 96px; }
#fb-table tr.fb-hidden td { color: var(--ink-soft); }
#fb-table td .pill { margin-inline-start: 6px; }
/* Question pictures (0070): a thumbnail beside the question in the list, a larger
   preview in the editor modal wearing its remove verb in the corner. */
.q-thumb { max-height: 64px; max-width: 96px; border-radius: 6px; vertical-align: middle; margin-inline-end: 8px; object-fit: contain; }
.q-photo { position: relative; display: inline-block; margin-top: 10px; max-width: 100%; }
.q-photo-img { display: block; max-height: 240px; max-width: 100%; border-radius: 8px; }
.q-photo-x { position: absolute; inset-inline-end: 6px; inset-block-start: 6px; background: var(--paper); color: var(--ink); border: 0; border-radius: 6px; padding: 2px 8px; font-size: 13px; cursor: pointer; }
.wide-textarea { width: 100%; }
.scroll-list { max-height: 52vh; overflow: auto; }

/* Stats tiles (studio ▸ Stats). */
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 90px; }
.stat-value { font-size: 26px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--ink-soft); }
#stats-headline { gap: var(--space-5); }

/* Day by day: one small line chart per stat, all six sharing a pointer. Each
   keeps its own scale (see the markup), so nothing here compares two charts by
   height — the caption's number is the reading, and the table twin has them all.
   The svg is drawn at its real pixel width by the page, never stretched. */
.sparks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
          gap: var(--space-4) var(--space-5); margin-top: var(--space-3); }
.sparks:focus-visible { outline: 2px solid var(--primary); outline-offset: 6px; border-radius: var(--radius-sm); }
.spark { margin: 0; }
.spark figcaption { display: flex; align-items: baseline; justify-content: space-between;
                    gap: var(--space-2); font-size: 12px; color: var(--ink-soft); }
.spark-value { font-size: 17px; font-weight: 700; color: var(--ink); }
.spark svg { display: block; width: 100%; height: 58px; }
.spark-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-fill { fill: var(--primary); opacity: .12; stroke: none; }
.spark-base { stroke: var(--neutral); stroke-width: 1; }
.spark-rule { stroke: var(--ink-soft); stroke-width: 1; opacity: .5; }
.spark-dot  { fill: var(--primary); stroke: var(--paper); stroke-width: 2; }
#stats-daily-table td:not(:first-child), #stats-daily-table th:not(:first-child) {
  text-align: end; font-variant-numeric: tabular-nums; }

/* Public-bank import: category chips + review cards. Subcategories arrive as
   "parent / child" strings and render grouped: one .p-group row per parent, its bold
   parent checkbox first (select-all), then the child chips. */
#p-cats { flex-direction: column; align-items: stretch; gap: var(--space-2); }
#p-cats .p-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#p-cats label, #p-diffs label { display: inline-flex; gap: 6px; align-items: center; background: var(--warm);
                border-radius: var(--radius-pill); min-height: var(--control-h-sm); padding: 0 14px;
                font-size: 13.5px; cursor: pointer; }
#p-cats label:has(input.p-parent) { font-weight: 700; background: var(--neutral); }
#p-cats label:has(input:checked), #p-cats label:has(input:indeterminate),
#p-diffs label:has(input:checked) { background: #dcedd8; outline: 2px solid var(--confirm); }
.pub-q { background: var(--warm); border-radius: var(--radius-md); padding: 14px; margin-bottom: 10px; }
.pub-q .correct { color: #3c6b38; font-weight: 700; }
.pub-q .row { margin: 6px 0; }

/* Map pins (Leaflet divIcon). */
.qpin { background: var(--gold); color: #3b2a1a; border: 2px solid #3b2a1a; border-radius: var(--radius-pill);
        display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0;
        font-weight: 700; font-size: 12px; box-shadow: 0 2px 6px rgba(60,35,25,.35); }
.map { height: 360px; border-radius: var(--radius-md); }
.map-tools { margin-top: 10px; }

/* ── Get-the-app banner (the whole banner is one link) ────────────────────── */
.getapp { display: flex; align-items: center; gap: 18px; margin-bottom: var(--space-4); padding: var(--space-4) 20px;
          text-decoration: none; color: var(--ink); border: 2px solid var(--primary); border-radius: var(--radius-lg);
          background: linear-gradient(135deg, var(--warm), var(--paper));
          box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.getapp:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(60,35,25,.20); }
.getapp .ga-icon { width: 56px; height: 56px; flex: none; display: block; }
.getapp .ga-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 180px; }
.getapp .ga-title { font-size: 19px; font-weight: 700; }
.getapp .ga-blurb { font-size: 14px; color: var(--ink-soft); }
.getapp .ga-cta { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-h-lg);
                  padding: 0 20px; background: var(--primary); color: var(--on-primary); border-radius: var(--radius-md);
                  font-size: 16px; font-weight: 700; white-space: nowrap; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer { max-width: 1060px; margin: 0 auto 26px; padding-inline: clamp(12px, 3vw, 32px);
         font-size: var(--font-meta); color: var(--ink-soft);
         display: flex; flex-wrap: wrap; gap: 14px; }
main.narrow + footer, footer.narrow { max-width: 820px; }
footer a { color: var(--primary); }

/* ── Share landing (j/) ───────────────────────────────────────────────────── */
body.share { min-height: 100vh; display: flex; align-items: center; justify-content: center;
             padding: var(--space-5); background: var(--paper); }
.share .card { max-width: 420px; width: 100%; text-align: center; box-shadow: none; padding: 0; margin: 0; }
.share h1 { font-size: 22px; margin-bottom: var(--space-2); }
.share h1.kicker { font-size: var(--font-body); font-weight: 400; color: var(--ink-soft); margin: 0; }
.share h2 { font-size: 26px; margin: 2px 0; overflow-wrap: anywhere; }
.share p  { color: var(--ink-soft); font-size: var(--font-body); margin: 10px 0; }
.share .meta { font-size: 16px; color: var(--ink); margin: 6px 0 2px; }
.share .code { font-size: 30px; font-weight: 700; letter-spacing: 2px; margin: 18px 0; font-variant-numeric: tabular-nums; }
.share .ended { color: var(--primary); font-weight: 600; font-size: 16px; margin: 14px 0; }
.share #map { height: 200px; border-radius: var(--radius-md); margin: 14px 0; display: none; border: 1px solid #d9cdb8; }
/* Directions and Share side by side; either one alone takes the row. */
.share .actions { display: flex; gap: 10px; margin: 0 0 10px; }
.share .actions .btn { flex: 1; white-space: normal; }
.share #share-note { font-size: 14px; margin: 0 0 10px; overflow-wrap: anywhere; }
.share a.open, .share a.store { display: flex; margin: 10px 0; white-space: normal; }
/* The install button: Play's own black, second to the green Open. */
.share a.store { background: #111; color: #fff; }
.share a.store-link { display: inline-block; color: var(--primary); font-size: 14px; }
.share .scan img { display: block; margin: 0 auto; width: 220px; height: 220px; image-rendering: pixelated; border-radius: var(--radius-sm); }
.share .ended-hide { display: none; }
.share .kids { margin-top: 18px; padding-top: var(--space-3); border-top: 1px dashed #d9cdb8; }
[dir=rtl] .share .code { letter-spacing: 0; }

/* ── Small utilities used by the studio markup ────────────────────────────── */
.row.head { margin-bottom: 10px; }
.mb { margin-bottom: 10px; }
.mt { margin-top: 16px; }
.nowrap { white-space: nowrap; }
.check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.narrow-card { max-width: 420px; margin: 60px auto; }
.narrow-card.wider { max-width: 520px; }
/* Sign-in: the pitch, the one button, then the quieter way to the app. */
.signin-pitch { font-size: var(--font-body); margin: var(--space-2) 0 var(--space-4); }
.signin-more { margin: var(--space-4) 0 var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--neutral); }
.note { margin: 8px 2px 0; }
.caption { margin: 4px 0 0; font-size: 12px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  header { padding: var(--space-2) var(--space-3); }
  header h1 { font-size: 17px; }
  header .appbtn { display: none; }   /* the banner right below carries the same link */
  .row > button, .row > .btn { flex: 1 1 auto; }
  .row .spacer { display: none; }
  .getapp { flex-wrap: wrap; gap: var(--space-3); }
  .getapp .ga-cta { width: 100%; }
  .card { padding: var(--space-4); }
  .card.article { padding: 20px 18px; }
}
@media (max-width: 480px) {
  .row.end > button, .row.end > .btn { flex: 1 1 100%; }
  .modal { padding: var(--space-4); }
}
