:root, [data-theme="kaamos"] {
  --bg: #14213D; --surface: #18284A; --surface-2: #213459; --text: #F4F7FB; --muted: #AEB9D2;
  --line: rgba(244, 247, 251, 0.14); --accent: #5CE1A7; --accent-ink: #0B2A1E; --accent-text: #5CE1A7;
  --chip-on: #5CE1A7; --chip-on-ink: #0B2A1E; --shadow: 0 8px 24px rgba(0, 0, 0, 0.35); --sheet-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  --open-bg: rgba(242, 165, 65, 0.18); --open-ink: #F7C57E;
  --soon-bg: rgba(200, 50, 60, 0.22); --soon-ink: #FF9AA2;
  --closed-bg: rgba(174, 185, 210, 0.12); --closed-ink: #AEB9D2;
  color-scheme: dark;
}
[data-theme="day"] {
  --bg: #F4F7FB; --surface: #FFFFFF; --surface-2: #EEF2F8; --text: #14213D; --muted: #4A5878;
  --line: rgba(20, 33, 61, 0.12); --accent: #1F9E6E; --accent-ink: #14213D; --accent-text: #167A55; /* accent as text: 4.7:1 or more on every day surface */
  --chip-on: #14213D; --chip-on-ink: #F4F7FB; --shadow: 0 8px 24px rgba(20, 33, 61, 0.14); --sheet-shadow: 0 -6px 20px rgba(20, 33, 61, 0.10);
  --open-bg: #FDEBD0; --open-ink: #8A4F06;
  --soon-bg: #FBE3E5; --soon-ink: #9E1F2A;
  --closed-bg: #EEF2F8; --closed-ink: #4A5878;
  color-scheme: light;
}
* { box-sizing: border-box; }
/* Figtree (OFL), self-hosted: one variable file, Latin subset (docs/DESIGN.md §6.4, tools/fonts). */
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; }
.i-sm { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }

#app { position: fixed; inset: 0; overflow: hidden; }
#map, #sky { position: absolute; inset: 0; }
/* Shown in place of the map when WebGL 2 is missing (app.js noMap). */
.no-map #map { display: flex; align-items: flex-start; justify-content: center; padding: calc(var(--top-h, 170px) + 56px) 16px 0; background: var(--bg); }
.no-map-note { max-width: 420px; padding: 16px 18px; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-size: 16px; line-height: 1.5; }
.no-map-note p { margin: 0 0 8px; }
.no-map-note p:last-child { margin: 0; color: var(--muted); }
.no-map .map-buttons { display: none; }
#sky { pointer-events: none; z-index: 2; width: 100%; height: 100%; }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* Top bar ---------------------------------------------------------------------- */
#top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; flex-direction: column; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 4px; pointer-events: none; }
#top > * { pointer-events: auto; }
.searchbar { display: flex; align-items: center; gap: 6px; min-height: 50px; padding: 3px 4px 3px 14px;
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; padding: 10px 0; }
.searchbar input::placeholder { color: var(--muted); }
.live { display: flex; }
/* The live strip: one tile with the next ski bus (DESIGN.md §5.2). */
.live-bus { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px 6px 9px; border: 0; border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.live-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--accent-text); }
.live-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.live-text b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-text > span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-when { flex: none; font-size: 15px; font-weight: 800; color: var(--accent-text); white-space: nowrap; display: inline-flex; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--chip-on); color: var(--chip-on-ink); border-color: transparent; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }

/* Map buttons, badge, toast, panels ------------------------------------------- */
.map-buttons { position: absolute; right: 12px; top: calc(var(--top-h, 170px) + 6px); z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer; }
.badge { position: absolute; left: 12px; top: calc(var(--top-h, 170px) + 6px); z-index: 4; padding: 5px 10px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); font-size: 12px; color: var(--muted); }
.badge a { color: var(--accent-text); font-weight: 700; margin-left: 6px; display: none; }
.embed .badge a { display: inline; }
#toast { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--top-h, 170px) + 48px); z-index: 9;
  max-width: min(92vw, 420px); padding: 10px 14px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; box-shadow: var(--shadow); }
.panel { position: absolute; right: 12px; top: calc(var(--top-h, 170px) + 6px); z-index: 8; width: min(320px, calc(100% - 24px));
  padding: 12px 16px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.panel h2 { margin: 4px 0 8px; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.panel h3 { margin: 14px 0 6px; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.02em; }
.panel label { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.panel input[type="checkbox"], .panel input[type="radio"] { width: 20px; height: 20px; accent-color: var(--accent); }
.panel select { width: 100%; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 10px; }
.you-dot { width: 18px; height: 18px; border-radius: 50%; background: #3D7DD8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(61, 125, 216, 0.25); }

/* Sheet ------------------------------------------------------------------------- */
#sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; flex-direction: column;
  max-height: calc(100dvh - var(--top-h, 170px) - 8px); background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--sheet-shadow);
  transition: max-height 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
/* Phone states (app.js setSheet): full is the rule above; half leaves the map visible; bar shows
   the handle and the first row only. app.js reads these heights for snapping. */
#sheet[data-state="half"] { max-height: 46dvh; }
#sheet[data-state="bar"] { max-height: calc(86px + env(safe-area-inset-bottom)); }
#sheet[data-state="bar"] #sheet-body { overflow: hidden; }
#sheet.dragging { transition: none; }
.sheet-head, .sheet-title { touch-action: none; } /* the first row drags the sheet */
#sheet-handle { flex: none; height: 28px; width: 100%; border: 0; background: transparent; cursor: grab; display: flex; justify-content: center; align-items: center; touch-action: none; }
#sheet-handle::before { content: ''; width: 44px; height: 5px; border-radius: 3px; background: var(--line); background: color-mix(in srgb, var(--text) 28%, transparent); }
#sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet-title { margin: 2px 0 10px; font-size: 19px; }
.section-title { margin: 18px 0 4px; font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: 0.02em; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.sheet-head-text { flex: 1; min-width: 0; }
.sheet-head h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.sheet-head p { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; cursor: pointer; }
.intents { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.intent { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; text-align: left; cursor: pointer; }
.intent .i { color: var(--accent); }
.stay-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 2px; border: 0;
  border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 13px; color: var(--muted); }
.item-sub.open { color: var(--open-ink); } .item-sub.soon { color: var(--soon-ink); }
.item-dist { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; font-size: 14px; background: var(--surface-2); color: var(--muted); }
.pill.open { background: var(--open-bg); color: var(--open-ink); font-weight: 700; }
.pill.soon { background: var(--soon-bg); color: var(--soon-ink); font-weight: 700; }
.pill.closed { background: var(--closed-bg); color: var(--closed-ink); }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; margin-bottom: 10px; }
.action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 8px 4px;
  border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; cursor: pointer; }
.action .i { color: var(--accent); }
.action-main { background: var(--accent); color: var(--accent-ink); }
.action-main .i { color: inherit; }
.note { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.note h3 { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.note p { margin: 0; line-height: 1.45; }
.summary, .prose p { line-height: 1.5; }
.prose p { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.own { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 8px; padding: 5px 10px; border-radius: 9px; background: var(--surface-2); font-size: 14px; font-weight: 700; color: var(--accent-text); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 4px 0 12px; font-size: 15px; }
.hours dd { margin: 0; } .hours .today { font-weight: 800; }
.cabins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cabin-card { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 6px 10px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-2); font-weight: 700; text-align: left; cursor: pointer; }
.cabin-mini svg { display: block; width: 30px; height: 33px; }
.stop-box { margin: 12px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.stop-box h3 { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.stop-box p { margin: 0 0 6px; }
.deps { list-style: none; margin: 0; padding: 0; }
.deps li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.line-badge { display: inline-block; min-width: 30px; padding: 2px 6px; border-radius: 6px; color: #0B1A2E; font-weight: 800; font-size: 12px; text-align: center; }
.fresh { display: flex; align-items: center; gap: 6px; margin: 14px 0 4px; font-size: 12px; color: var(--muted); }
.bus-status { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-weight: 700; }
.item .line-badge { flex: none; }
.primary, .secondary { width: 100%; min-height: 50px; margin: 8px 0; border-radius: 14px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.primary { border: 0; background: var(--accent); color: var(--accent-ink); }
.secondary { border: 1px solid var(--line); background: transparent; }
.emergency { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; margin: 6px 0; border-radius: 14px;
  background: #C8323C; color: #FFFFFF; font-weight: 800; font-size: 18px; text-decoration: none; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; }
.metrics div { padding: 10px 6px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.metrics b { display: block; font-size: 18px; }
.metrics b.good { color: var(--accent-text); }
.metrics span { font-size: 12px; color: var(--muted); }
.tips { margin: 6px 0; padding-left: 20px; line-height: 1.5; }
.empty { text-align: center; padding: 10px 0 4px; color: var(--muted); }
.kuukkeli { width: 96px; height: auto; }
.sample-mark { color: var(--muted); }

/* The Skibus Rally link (DESIGN.md §5.9): a quiet row, not a button, no colour of its own ------ */
.game { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 12px 0 4px; padding: 8px 12px 8px 10px; border-radius: 14px;
  border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.game .item-icon { color: var(--muted); }
.game-title { font-weight: 700; }
.game-tag { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.game-go, .race { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 800; color: var(--accent-text); white-space: nowrap; }
.game-go { text-decoration: underline; text-underline-offset: 3px; }
.race { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; }
.game-note { margin: 6px 0 10px; font-size: 13px; color: var(--muted); }

/* Saved places (DESIGN.md §5.7) ---------------------------------------------------- */
.i-xs { width: 14px; height: 14px; vertical-align: -2px; }
.i-fill { fill: currentColor; }
.item-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.item-icon.accent { color: var(--accent-text); }
.item .line-badge, .item-sub .line-badge { min-width: 0; padding: 0 5px; font-size: 11px; }
.set-stay { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px;
  border: 1.5px dashed var(--accent); background: var(--surface-2); text-align: left; cursor: pointer; }
.set-stay-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.tools { display: flex; gap: 8px; }
.tools .secondary { min-height: 48px; font-size: 14px; }
.secondary.quiet { color: var(--muted); }
.help { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.help .i { flex: none; margin-top: 2px; }
.offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.offer-text { flex: 1 1 180px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.offer-text span { color: var(--muted); }
.offer-actions { display: flex; gap: 8px; }
.small { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; font-weight: 800; font-size: 14px; cursor: pointer; flex: none; }
.small.primary { width: auto; margin: 0; border: 0; background: var(--accent); color: var(--accent-ink); }
.btn-row { display: flex; gap: 8px; }
.btn-row > * { flex: 1; margin: 8px 0; }
.danger { min-height: 50px; border: 0; border-radius: 14px; background: #C8323C; color: #FFFFFF; font-weight: 800; cursor: pointer; }
.primary:disabled { opacity: .5; cursor: default; }
.pick-sheet .muted { margin: 0 0 4px; min-height: 1.4em; }
/* The centre pin: drawn over the map where the visible map's centre is; the map moves under it. */
#pick-pin { position: absolute; z-index: 5; left: 50%; transform: translate(-50%, -100%); pointer-events: none; }
#pick-pin svg { display: block; width: 52px; height: 62px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
#pick-hint { position: absolute; z-index: 5; left: 12px; right: 12px; top: calc(var(--top-h, 170px) + 6px); padding: 10px 14px; border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; text-align: center; }
.picking .map-buttons, .picking .badge, .picking #chips { visibility: hidden; }

/* Desktop: left sidebar ---------------------------------------------------------- */
@media (min-width: 900px) {
  #pick-hint { left: 412px; }
  .no-map #map { padding: 96px 24px 0 424px; align-items: flex-start; }
  #map, #sky { left: 400px; }
  #top { right: auto; width: 400px; padding: 16px 16px 8px; background: var(--surface); }
  .searchbar, .live-bus, .chip { box-shadow: none; background: var(--surface-2); }
  #sheet { top: var(--top-h, 190px); left: 0; right: auto; bottom: 0; width: 400px; max-height: none !important;
    border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
  #sheet-handle { display: none; }
  #sheet[data-state] #sheet-body { overflow-y: auto; }
  .sheet-head, .sheet-title { touch-action: auto; }
  #sheet-body { padding-top: 14px; }
  .map-buttons { top: 16px; }
  .badge { left: 416px; top: 16px; }
  .panel { top: 16px; right: 72px; }
  #toast { left: calc(50% + 200px); top: 16px; }
}
/* Embed (DESIGN.md §5.8): the map and one card. No search, chips, live strip, layers or settings;
   the full map is one link away. Never the desktop sidebar, however wide the frame. */
#embed-bar { display: none; }
.embed #top, .embed #layers-btn { display: none; }
.embed #map, .embed #sky { left: 0; }
.embed #embed-bar { position: fixed; z-index: 7; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.embed #embed-bar > * { pointer-events: auto; }
.embed-brand { padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 800; font-size: 14px; white-space: nowrap; }
.open-full { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
  color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.open-full .i { width: 16px; height: 16px; color: var(--accent-text); }
.embed #sheet[data-state="half"] { max-height: min(46dvh, 260px); }
.embed .map-buttons { top: calc(var(--top-h, 64px) + 8px); gap: 6px; }
.embed .round-btn { width: 44px; height: 44px; }
.embed #toast { top: calc(var(--top-h, 64px) + 8px); }
.embed-head { margin: 6px 0 4px; }
.embed-cabin { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 3px var(--accent); }
.embed-cabin svg { display: block; width: 30px; height: 33px; }
.embed .intents { margin-top: 12px; }
.embed .intent { min-height: 48px; padding: 6px 10px; font-size: 14px; }
@media (min-width: 600px) {
  .embed #sheet { top: 12px; left: 12px; right: auto; bottom: 12px; width: 312px; max-height: none !important; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
  .embed #sheet-handle { display: none; }
  .embed #sheet-body { padding-top: 4px; }
  .embed #embed-bar { position: static; flex: none; padding: 10px 12px 6px 16px; }
  .embed .embed-brand { padding: 0; background: none; box-shadow: none; }
  .embed .open-full { background: var(--surface-2); box-shadow: none; }
  .embed .sheet-head, .embed .sheet-title { touch-action: auto; }
  .embed .map-buttons { top: 12px; }
  .embed .badge { left: 336px; top: 12px; }
  .embed #toast { left: calc(50% + 168px); top: 12px; }
  .embed.no-map #map { padding: 24px 24px 0 348px; }
}
@media (prefers-reduced-motion: reduce) { #sheet { transition: none; } }

/* Links from the home sheet to the server-rendered pages (ski bus, About). */
.home-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 12px 0 4px; }
.home-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 700; text-underline-offset: 3px; }
.links { list-style: none; margin: 4px 0 8px; padding: 0; }
.links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 700; text-underline-offset: 3px; }
/* An event for its own days (DESIGN.md §5.10): kaamos square with a white edge and the gate glyph. */
.event-icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: #14213D; color: #FFFFFF; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85); }
.event-icon-sm { width: 30px; height: 30px; border-radius: 9px; }
.event-card { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; margin: 0 0 14px; padding: 8px 12px 8px 10px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; }
.event-card .item-name { font-weight: 800; white-space: normal; }
.event-card > .i { color: var(--muted); }
.event-tag { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; vertical-align: 1px; }
.event-note { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.event-note p { margin: 0; font-size: 14px; line-height: 1.45; }
.event-note b { display: block; }
.event-note .link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.programme { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 6px 0 4px; font-size: 15px; }
.programme dt { font-weight: 800; white-space: nowrap; }
.programme dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.programme small { font-size: 13px; color: var(--muted); }
.item.how { align-items: flex-start; text-align: left; }
.item.how .item-name, .item.how .item-sub { white-space: normal; }
.item.how .line-badge { margin-top: 2px; }
