/* ==========================================================================
   UK Accent · speaker side ("on the road")  ·  v1, 28 Oct 2026
   The speakers are UK backpackers earning while they travel, so this side has
   its own look, apart from the learner's navy and red: a travel journal.
   Jungle green for structure and most actions, sunset coral for the ONE main
   action on a screen, ocean teal for information, sand and warm paper for
   surfaces. Set in Nunito, the one font of UK Accent; the postcard and
   noticeboard notes are Nunito too (no handwriting face).
   Postcards, boarding passes, luggage tags, a trail map, a hostel noticeboard
   and a packing list. Readable in bright sun (light) and in a dark dorm (dark).
   Phone first: 390px, 16px gutters, 44px targets, AA contrast, reduced motion.
   Served at /read/travel/traveller.css. Loaded on the speaker pages only.
   ========================================================================== */

/* 0. Type, self-hosted ------------------------------------------------------
   One font for all of UK Accent: Nunito (rounded; SIL Open Font License), the
   same one the learner side loads from Google Fonts. One variable file covers
   every weight (headings 800-900, body 400-600, buttons 800), latin first,
   latin-ext only when a name needs it. font-display: swap with a metric-matched
   fallback so the swap does not shove the text about. No request leaves this host. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/read/travel/fonts/nunito-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/read/travel/fonts/nunito-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 101.5%; ascent-override: 99.6%; descent-override: 34.8%; line-gap-override: 0%; }

/* 1. Colour ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #FBF6EC;            /* warm journal paper */
  --bg-2: #F4EAD6;          /* sand band behind the top of a page */
  --card: #FFFDF8;
  --soft: #F2E8D6;
  --line: #E3D4B6;
  --line-2: #CDB78F;        /* stronger line: perforations, dashed trail */
  --scrim: rgba(20, 30, 24, 0.5);
  --text: #1C2A22;          /* 14.6:1 on --bg */
  --muted: #56604F;         /* 6.2:1 on --bg */
  --jungle: #13513B;        /* buttons, the stamp, selected chips: 9.3:1 with white */
  --on-jungle: #FFFFFF;
  --jungle-ink: #13513B;    /* jungle as text */
  --jungle-soft: #DDEBDF;
  --ocean: #0B6670;         /* info: 6.6:1 with white */
  --ocean-ink: #0A5C65;
  --ocean-soft: #D7ECEA;
  --coral: #BE4128;         /* THE main action: 5.2:1 with white */
  --on-coral: #FFFFFF;
  --coral-ink: #A23620;
  --coral-soft: #FBE3DA;
  --sun: #E9A43B;           /* decoration only, never text */
  --sand: #EAD7B0;
  --ok: #1D6E43;  --ok-soft: #DCEFE2;
  --danger: #B3261E; --danger-soft: #FCE6E2;
  --warn: #7E5A00; --warn-soft: #FAEFD2;
  --cork: #C9A27A;  --cork-dot: #B48C62;  /* the noticeboard */
  --note: #FFF9E8;  --note-me: #DDF0EC;   --tape: rgba(233, 164, 59, 0.55);
  --tape-solid: rgba(243, 205, 140, 0.94);  --note-sh: 0 3px 8px rgba(40, 25, 5, .22);
  --focus: #0B6670;
  --focus-ring: 0 0 0 2px var(--card), 0 0 0 4px var(--focus);
  --sh-1: 0 1px 2px rgba(60, 40, 10, 0.08), 0 1px 1px rgba(60, 40, 10, 0.05);
  --sh-2: 0 6px 18px rgba(60, 40, 10, 0.10), 0 1px 3px rgba(60, 40, 10, 0.08);
  --sh-3: 0 16px 40px rgba(40, 30, 10, 0.20), 0 2px 8px rgba(40, 30, 10, 0.10);
  --scene-dim: 1;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0F1915;  --bg-2: #13211B;  --card: #172520;  --soft: #1F3029;
    --line: #2C4238; --line-2: #4A6457; --scrim: rgba(0, 0, 0, 0.55);
    --text: #F2ECDF; --muted: #B7C0AE;
    --jungle: #22704F; --on-jungle: #FFFFFF; --jungle-ink: #8ED9B1; --jungle-soft: #1C3A2D;
    --ocean: #136E78; --ocean-ink: #86D3D6; --ocean-soft: #15343A;
    --coral: #BE4128; --on-coral: #FFFFFF; --coral-ink: #FFA58E; --coral-soft: #3A2019;
    --sun: #E9A43B; --sand: #3A3324;
    --ok: #74D6A0; --ok-soft: #153626; --danger: #FF8E80; --danger-soft: #3A1C1A; --warn: #E9C46A; --warn-soft: #33290F;
    --cork: #4A3626; --cork-dot: #5E4632; --note: #26302A; --note-me: #183C3A; --tape: rgba(233, 164, 59, 0.35);
    --tape-solid: rgba(196, 150, 84, 0.92); --note-sh: 0 2px 0 rgba(0, 0, 0, .35), 0 6px 14px rgba(0, 0, 0, .3);
    --focus: #86D3D6;
    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4); --sh-2: 0 6px 18px rgba(0, 0, 0, 0.45); --sh-3: 0 16px 40px rgba(0, 0, 0, 0.6);
    --scene-dim: .82;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1915;  --bg-2: #13211B;  --card: #172520;  --soft: #1F3029;
  --line: #2C4238; --line-2: #4A6457; --scrim: rgba(0, 0, 0, 0.55);
  --text: #F2ECDF; --muted: #B7C0AE;
  --jungle: #22704F; --on-jungle: #FFFFFF; --jungle-ink: #8ED9B1; --jungle-soft: #1C3A2D;
  --ocean: #136E78; --ocean-ink: #86D3D6; --ocean-soft: #15343A;
  --coral: #BE4128; --on-coral: #FFFFFF; --coral-ink: #FFA58E; --coral-soft: #3A2019;
  --sun: #E9A43B; --sand: #3A3324;
  --ok: #74D6A0; --ok-soft: #153626; --danger: #FF8E80; --danger-soft: #3A1C1A; --warn: #E9C46A; --warn-soft: #33290F;
  --cork: #4A3626; --cork-dot: #5E4632; --note: #26302A; --note-me: #183C3A; --tape: rgba(233, 164, 59, 0.35);
  --tape-solid: rgba(196, 150, 84, 0.92); --note-sh: 0 2px 0 rgba(0, 0, 0, .35), 0 6px 14px rgba(0, 0, 0, .3);
  --focus: #86D3D6;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4); --sh-2: 0 6px 18px rgba(0, 0, 0, 0.45); --sh-3: 0 16px 40px rgba(0, 0, 0, 0.6);
  --scene-dim: .82;
}
/* the names the shared footer script and older markup use, mapped onto this side */
:root { --navy: var(--jungle); --on-navy: var(--on-jungle); --navy-ink: var(--jungle-ink); --navy-soft: var(--jungle-soft); --red: var(--coral); --on-red: var(--on-coral); --star: var(--warn); --star-soft: var(--warn-soft); }

/* 2. Type, space, shape ---------------------------------------------------- */
:root {
  --font: "Nunito", "Nunito Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font);   /* titles are Nunito too, at 800 */
  --t-xs: 13px; --lh-xs: 18px; --t-s: 15px; --lh-s: 21px; --t-m: 17px; --lh-m: 25px;
  --t-l: 21px; --lh-l: 27px; --t-xl: 28px; --lh-xl: 33px; --t-2xl: 34px; --lh-2xl: 38px;
  --s-xs: 4px; --s-s: 8px; --s-m: 16px; --s-l: 24px; --s-xl: 32px;
  --gutter: 16px; --tap: 44px; --btn-h: 54px; --nav-h: 66px;
  --r-s: 8px; --r-m: 12px; --r: 16px; --r-btn: 14px; --r-pill: 999px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --d-fast: 120ms; --d: 200ms;
  --d-slow: 320ms;
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body.trv {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--t-m); line-height: var(--lh-m);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
/* a faint paper grain over the whole page */
body.trv::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(120, 90, 40, 0.06) 1px, transparent 1.2px), radial-gradient(rgba(120, 90, 40, 0.04) 1px, transparent 1.2px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px;
}
body.trv > * { position: relative; z-index: 1; }
.trv h1, .trv h2, .trv h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-optical-sizing: auto; }
.trv h3 { font-family: var(--font); font-weight: 800; letter-spacing: 0; }
.trv p { margin: 0; }
.trv a { color: var(--jungle-ink); font-weight: 700; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.trv button, .trv input, .trv select, .trv textarea { font-family: inherit; }
.trv [hidden] { display: none !important; }
.trv :focus { outline: none; }
.trv :focus-visible { box-shadow: var(--focus-ring); border-radius: var(--r-s); }
.trv .h1, .trv-main > h1 { font-family: var(--font-display); font-size: var(--t-xl); line-height: var(--lh-xl); font-weight: 800; }
.trv .h2 { font-family: var(--font-display); font-size: var(--t-l); line-height: var(--lh-l); font-weight: 800; }
.trv .meta { font-size: var(--t-s); line-height: var(--lh-s); color: var(--muted); }
.trv .cap, .trv small { font-size: var(--t-xs); line-height: var(--lh-xs); color: var(--muted); }
.trv .lede { color: var(--muted); font-size: var(--t-s); line-height: var(--lh-s); margin-top: 6px; }
.trv .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); line-height: var(--lh-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean-ink); }
.trv .hand { font-family: var(--font); font-weight: 800; font-size: 15px; line-height: 20px; letter-spacing: 0; }
.trv-sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; gap: var(--s-m); }
.row { display: flex; align-items: center; gap: var(--s-s); }
.grow { flex: 1; min-width: 0; }
.num, .tnum { font-variant-numeric: tabular-nums; }

/* 4. Buttons --------------------------------------------------------------- */
.trv .btn {
  --_bg: var(--jungle); --_fg: var(--on-jungle); --_bd: var(--jungle);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-s);
  min-height: var(--btn-h); padding: 0 var(--s-l);
  font: inherit; font-size: var(--t-m); font-weight: 800; text-decoration: none; letter-spacing: .005em;
  color: var(--_fg) !important; background: var(--_bg); border: 1.5px solid var(--_bd); border-radius: var(--r-btn);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--_bd) 60%, #000);
  cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent;
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease), opacity var(--d-fast);
}
.trv .btn:active { transform: translateY(2px); box-shadow: none; }
.trv .btn:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--r-btn); }
.trv .btn[disabled], .trv .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.trv .btn--main { --_bg: var(--coral); --_fg: var(--on-coral); --_bd: var(--coral); }
.trv .btn--plain { --_bg: var(--card); --_fg: var(--jungle-ink); --_bd: var(--line-2); box-shadow: 0 2px 0 var(--line); }
.trv .btn--quiet { --_bg: transparent; --_fg: var(--jungle-ink); --_bd: transparent; box-shadow: none; padding: 0 var(--s-m); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.trv .btn--s { min-height: var(--tap); font-size: var(--t-s); padding: 0 var(--s-m); border-radius: var(--r-m); }
.trv .btn--block { display: flex; width: 100%; }
.trv .btn svg { width: 20px; height: 20px; flex: none; }

/* 5. Cards ----------------------------------------------------------------- */
.trv .card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-m); box-shadow: var(--sh-1); }
.trv .card h2 { font-size: var(--t-l); line-height: var(--lh-l); }
.trv .card h3 { font-size: var(--t-m); line-height: 23px; }
.trv .card--raised { box-shadow: var(--sh-3); border-color: transparent; }
.trv .card--link { color: inherit !important; text-decoration: none; font-weight: inherit; transition: transform var(--d-fast) var(--ease); }
.trv .card--link:active { transform: scale(.99); }
.trv .card--feature { border: 2px solid var(--jungle); }
.trv .card--info { background: var(--ocean-soft); border-color: transparent; box-shadow: none; }
.trv .card--ok { background: var(--ok-soft); border-color: transparent; box-shadow: none; }

/* 6. Chips ----------------------------------------------------------------- */
.trv .chips { display: flex; gap: var(--s-s); overflow-x: auto; scrollbar-width: none; }
.trv .chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 14px;
  font: inherit; font-size: var(--t-s); font-weight: 700; color: var(--text) !important; text-decoration: none;
  background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-pill); cursor: pointer;
}
.trv .chip[aria-pressed="true"], .trv .chip[aria-selected="true"] { color: var(--on-jungle) !important; background: var(--jungle); border-color: var(--jungle); }
.trv .chip[aria-pressed="true"]::before, .trv .chip[aria-selected="true"]::before { content: "✓"; font-weight: 900; }
/* Usual online hours (You): seven day chips in one row on a phone; the two times side by side */
.trv .trv-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; overflow: visible; }
.trv .trv-days .chip { padding: 0; min-width: 0; min-height: var(--tap); }
.trv .trv-days .chip::before { display: none; }
.trv .trv-hours-times { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-s); }
/* Busy calendar (You): the state line, the where-to-find-it steps, buffer and all-day side by side */
.trv .trv-busy-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--t-s); margin: 0; overflow-wrap: anywhere; }
.trv .trv-busy-help summary { cursor: pointer; font-weight: 700; color: var(--jungle-ink); min-height: var(--tap); display: flex; align-items: center; font-size: var(--t-s); }
.trv .trv-busy-help ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: var(--t-s); line-height: var(--lh-s, 1.45); }
.trv .trv-busy-opts { display: grid; gap: var(--s-s); }
.trv .trv-busy input[type=url] { width: 100%; min-width: 0; }

/* 7. Inputs ---------------------------------------------------------------- */
.trv .field { display: flex; flex-direction: column; gap: 6px; }
.trv .field label { font-size: var(--t-s); font-weight: 700; color: var(--text); }
.trv .field .hint, .trv .hint { font-size: var(--t-xs); color: var(--muted); }
.trv .input, .trv .select, .trv .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: var(--t-m);
  color: var(--text); background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-m);
}
.trv .textarea { min-height: 52px; resize: vertical; }
.trv .input::placeholder, .trv .textarea::placeholder { color: var(--muted); opacity: .85; }
.trv .input:focus-visible, .trv .select:focus-visible, .trv .textarea:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); border-radius: var(--r-m); }
.trv input[type="checkbox"], .trv input[type="radio"] { accent-color: var(--jungle); }

/* 8. Top bar: the stamp, the word, where you are --------------------------- */
.trv-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: 60px;
  padding: 6px var(--gutter); padding-top: max(6px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px dashed var(--line-2);
}
.trv .uka-brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); text-decoration: none; color: var(--text) !important; }
/* The UK Accent mark, the same as the learning side (lib/uka-brand.js): the red UK speech bubble
   with its navy inset, in its own colours light and dark, the name beside it. */
.trv .uka-mark { width: 34px; height: 34px; flex: none; display: block; }
.trv .uka-word { display: inline; font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 24px; letter-spacing: -0.01em; white-space: nowrap; color: var(--text); }
.trv-bar .trv-role { display: none; }
.trv-bar .sp { flex: 1; }
@media (min-width: 900px) { .trv-bar .trv-role { display: inline-flex; } }

/* 9. The app shell (_uka-header.ejs), as on the learning side: the top bar, the
   Learning / Speaking switch, and the four tabs at the bottom of a phone ---------- */
.trv .uka-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 var(--gutter); padding-top: env(safe-area-inset-top); max-width: 1120px; margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.trv .uka-sp { flex: 1; }
.trv .uka-nav { display: none; }
.trv .uka-out { font: inherit; font-size: var(--t-s); font-weight: 700; color: var(--text); background: none; border: 0; min-height: var(--tap); padding: 0 4px; cursor: pointer; display: none; }
.trv .uka-back { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); padding-right: 6px; font-weight: 700; color: var(--text) !important; text-decoration: none; }
.trv .uka-bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr); min-height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(58, 42, 16, 0.06);
}
.trv .uka-bnav a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--nav-h); font-size: var(--t-xs); font-weight: 700; color: var(--muted) !important; text-decoration: none;
}
.trv .uka-bnav a svg { width: 24px; height: 24px; }
.trv .uka-bnav a[aria-current="page"] { color: var(--text) !important; font-weight: 800; }
.trv .uka-bnav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 34px; height: 4px; border-radius: 0 0 3px 3px; background: #C8102E; }
.trv .uka-bnav a[aria-current="page"] svg { transform: translateY(-1px); }
.trv .uka-bnav .count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #C8102E; color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--card); }
.trv .uka-switch { display: inline-flex; flex: none; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--text) 8%, transparent); }
.trv .uka-switch a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 11px; border-radius: var(--r-pill); font-size: 14px; font-weight: 700; color: var(--muted) !important; text-decoration: none; white-space: nowrap; }
.trv .uka-switch a[aria-current="page"] { background: var(--card); color: var(--text) !important; font-weight: 800; box-shadow: 0 1px 3px rgba(40, 25, 5, .18); }
@media (max-width: 520px) { .trv .uka-top--switch .uka-word { display: none; } }
@media (min-width: 900px) {
  .trv .uka-bnav { display: none; } body.trv { padding-bottom: 0; }
  .trv .uka-nav { display: flex; align-items: center; gap: 4px; margin-left: 16px; flex-wrap: wrap; }
  .trv .uka-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-pill); font-size: var(--t-s); font-weight: 700; color: var(--muted) !important; text-decoration: none; }
  .trv .uka-nav a[aria-current="page"] { color: var(--text) !important; background: color-mix(in srgb, var(--text) 8%, transparent); font-weight: 800; }
  .trv .uka-out { display: inline-flex; align-items: center; }
}

/* 10. Footer --------------------------------------------------------------- */
.trv .uka-foot { margin-top: var(--s-l); padding: var(--s-l) var(--gutter) var(--s-xl); border-top: 1px dashed var(--line-2); color: var(--muted); font-size: var(--t-xs); line-height: var(--lh-xs); }
.trv .uka-foot .in { max-width: 560px; margin: 0 auto; }
.trv .uka-foot a { color: var(--muted); }

/* 11. The page --------------------------------------------------------------- */
.trv-main { padding-top: 12px; padding-bottom: 24px; }
.trv-head { display: flex; flex-direction: column; gap: 2px; }
.trv-head .hand { color: var(--coral-ink); transform: rotate(-1.5deg); transform-origin: left; }

/* 12. Scenes (paintings): SVG first, painted art laid over it when there ---- */
.trv-scene { position: relative; overflow: hidden; background: var(--sand); aspect-ratio: 5 / 3; }
.trv-scene-svg, .trv-scene picture, .trv-scene-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.trv-scene-img { object-fit: cover; }
.trv-scene::after { /* brush grain so the flat SVG reads as paint */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.trv-scene > svg, .trv-scene > picture { filter: brightness(var(--scene-dim)); }

/* 13. Postcard (home hero, page headers) ------------------------------------ */
.trv-postcard { position: relative; background: var(--card); border-radius: 6px; padding: 10px 10px 0; box-shadow: var(--sh-2); border: 1px solid var(--line); transform: rotate(-.6deg); }
.trv-postcard .trv-scene { border-radius: 3px; aspect-ratio: 16 / 9; }
.trv-postcard .greet { position: absolute; left: 22px; top: 22px; z-index: 2; background: #FFF8E6; color: #2A2016; padding: 2px 12px 4px; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.18); transform: rotate(-3deg); font-family: var(--font); font-weight: 800; font-size: 18px; line-height: 24px; max-width: calc(100% - 44px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trv-postcard .back { display: grid; grid-template-columns: 1fr 72px; gap: 12px; padding: 14px 6px 16px; }
.trv-postcard .back > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.trv-postcard h1 { font-size: var(--t-2xl); line-height: var(--lh-2xl); letter-spacing: -.02em; }
.trv-postcard .sub { color: var(--muted); font-size: var(--t-s); line-height: var(--lh-s); }
.trv-postcard .post { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-left: 12px; border-left: 1.5px dashed var(--line-2); }
.trv-stamp { width: 58px; height: 68px; padding: 5px; background: linear-gradient(var(--coral), var(--coral)) content-box, #FFF8E6;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at 3px 3px, transparent 1.9px, #000 2.2px) -3px -3px / 6px 6px;
          mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at 3px 3px, transparent 1.9px, #000 2.2px) -3px -3px / 6px 6px;
  transform: rotate(4deg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.trv-stamp svg { width: 100%; height: 100%; display: block; }
.trv-postmark { width: 64px; height: 64px; color: var(--line-2); }
.trv-postmark text { font-family: var(--font); font-size: 9px; font-weight: 800; letter-spacing: .12em; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .trv-postcard, .trv-stamp { transform: none; } }

/* 14. Boarding pass (money) -------------------------------------------------- */
.trv-pass { position: relative; display: grid; grid-template-columns: 1fr 104px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); color: var(--text) !important; text-decoration: none; font-weight: inherit; }
.trv-pass::before, .trv-pass::after { content: ""; position: absolute; right: 94px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.trv-pass::before { top: -11px; clip-path: inset(50% 0 0 0); }
.trv-pass::after { bottom: -11px; clip-path: inset(0 0 50% 0); }
.trv-pass .main { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.trv-pass .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ocean-ink); }
.trv-pass .top svg { width: 18px; height: 18px; color: var(--coral); }
.trv-pass .legs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; }
.trv-pass .leg { display: flex; flex-direction: column; min-width: 0; }
.trv-pass .leg small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trv-pass .leg b { font-family: var(--font-display); font-size: 30px; line-height: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.trv-pass .leg.r { text-align: right; }
.trv-pass .leg.r b { font-size: 22px; line-height: 34px; color: var(--text); }
.trv-pass .plane { color: var(--line-2); padding-bottom: 8px; }
.trv-pass .plane svg { width: 34px; height: 14px; display: block; }
.trv-pass .stub { border-left: 2px dashed var(--line-2); padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; align-items: flex-start; }
.trv-pass .stub small { font-size: 11px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; color: var(--muted); }
.trv-pass .stub .go { font-weight: 800; color: var(--jungle-ink); font-size: var(--t-s); line-height: 19px; }
.trv-pass .bars { width: 100%; height: 26px; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px, var(--text) 8px 11px, transparent 11px 13px); opacity: .75; }

/* 15. Luggage tags (counts) ------------------------------------------------- */
.trv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trv-tile {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px 30px; min-height: 92px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px 16px 16px 10px; box-shadow: var(--sh-1);
  color: var(--text) !important; text-decoration: none; font-weight: inherit;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}
.trv-tile::before { content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-2); }
.trv-tile .n { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 800; font-variant-numeric: tabular-nums; }
.trv-tile .l { font-size: var(--t-s); color: var(--muted); font-weight: 700; }
.trv-tile .ti { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; color: var(--ocean); opacity: .9; }
a.trv-tile:active { transform: scale(.98); }

/* 16. The trail (set-up steps) ---------------------------------------------- */
.trv-steps { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 6px 2px; }
.trv-steps::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 2.5px dashed var(--line-2); }
.trv-steps i { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--line-2); flex: none; }
.trv-steps i.on { background: var(--jungle); border-color: var(--jungle); }
.trv-steps i.on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* 17. Lists, icons, tags, switch, notes, ring ------------------------------- */
.trv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.trv-list > li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line-2); }
.trv-list > li:first-child { border-top: 0; }
.trv-list .grow { flex: 1; min-width: 0; }
.trv-list .t { font-weight: 800; }
.trv-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--ocean-soft); color: var(--ocean-ink); display: grid; place-items: center; }
.trv-ic svg { width: 22px; height: 22px; }
.trv-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 2px 9px; border-radius: var(--r-pill); font-size: 13px; font-weight: 800; background: var(--soft); color: var(--muted); }
.trv-tag.ok { background: var(--ok-soft); color: var(--ok); }
.trv-tag.ok::before { content: "✓"; }
.trv-tag.navy { background: var(--ocean-soft); color: var(--ocean-ink); }
.trv-tag.star { background: var(--warn-soft); color: var(--warn); }
/* the drawn switch is 60 x 34; a clear 5px border (unpainted) makes the tap target 70 x 44 without moving anything */
.trv-switch { position: relative; flex: none; box-sizing: content-box; width: 60px; height: 34px; margin: -5px; border-radius: 999px; border: 5px solid transparent; background: var(--line-2); background-clip: padding-box; cursor: pointer; padding: 0; transition: background var(--d) var(--ease); }
.trv-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform var(--d) var(--ease); }
.trv-switch::before { content: "Off"; position: absolute; right: 7px; top: 9px; font-size: 11px; font-weight: 800; color: #fff; line-height: 1; }
.trv-switch[aria-checked="true"] { background: var(--jungle); }
.trv-switch[aria-checked="true"]::before { content: "On"; left: 9px; right: auto; }
.trv-switch[aria-checked="true"]::after { transform: translateX(26px); }
.trv-switch:disabled { opacity: .5; cursor: not-allowed; }
.trv-switch:focus-visible { border-radius: 999px; }
.trv-note { font-size: var(--t-s); font-weight: 700; padding: 10px 12px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); }
.trv-note.err { color: var(--text); border-color: var(--danger); background: var(--danger-soft); }
.trv-note.err::before { content: "! "; color: var(--danger); font-weight: 900; }
.trv-note.ok { color: var(--ok); border-color: transparent; background: var(--ok-soft); }
.trv-note.ok::before { content: "✓ "; }
.trv-note[hidden] { display: none; }
body.trv > .trv-ring, .trv-ring { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 60; display: block; text-align: center; background: var(--coral); color: var(--on-coral) !important; font-weight: 900; padding: 16px; border-radius: var(--r); box-shadow: var(--sh-3); text-decoration: none; animation: trvRing 1s ease-in-out infinite alternate; }
.trv-ring[hidden] { display: none; }
@keyframes trvRing { from { transform: scale(1); } to { transform: scale(1.03); } }
/* The incoming call (views/_trv-foot.ejs, public/js/uka-trv.js): a phone's incoming-call screen,
   a centred card over the page blurred and dimmed (solid dim where blur is not supported), 16px in
   from every edge. Answer is green, Decline coral; both big. Matches the learner's Add credit popup. */
html.trv-call-lock, html.trv-call-lock body { overflow: hidden; }
/* body.trv > * (section 1) sets every direct child of the body to position: relative; z-index: 1,
   which out-ranks a plain class: the banner and this card name the body too, or they sit at the
   very bottom of the page instead of over the screen. */
body.trv > .trv-callpop, .trv-callpop {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(10, 22, 16, 0.66);
}
.trv-callpop[hidden] { display: none !important; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .trv-callpop { background: rgba(10, 22, 16, 0.42); -webkit-backdrop-filter: blur(10px) saturate(0.9); backdrop-filter: blur(10px) saturate(0.9); }
}
.trv-callpop-card {
  width: 100%; max-width: 440px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-3); padding: 28px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; outline: none; animation: trvCallIn .2s ease-out;
}
@keyframes trvCallIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.trv-callpop-k { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-s); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--jungle-ink); }
.trv-callpop-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: trvCallDot 1.2s ease-out infinite; }
@keyframes trvCallDot { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } to { box-shadow: 0 0 0 12px transparent; } }
.trv-callpop-who { margin: 4px 0 0; font-family: var(--font-display); font-size: var(--t-2xl); line-height: var(--lh-2xl); font-weight: 800; overflow-wrap: anywhere; }
.trv-callpop-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--t-m); line-height: var(--lh-m); }
.trv-callpop-facts li[hidden] { display: none; }
.trv-callpop-facts [data-trv-call-kind] { font-weight: 800; }
.trv-callpop-facts [data-trv-call-rate] { color: var(--muted); }
.trv-callpop-left { margin: 2px 0 0; font-size: var(--t-s); color: var(--muted); font-variant-numeric: tabular-nums; min-height: var(--lh-s); }
.trv-callpop-acts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.trv .trv-callpop-acts .btn { min-height: 64px; font-size: var(--t-l); border-radius: var(--r-pill); }
.trv .trv-callpop-acts .btn svg { width: 24px; height: 24px; }
.trv .trv-callpop-yes { --_bg: var(--jungle); --_fg: var(--on-jungle); --_bd: var(--jungle); }
.trv .trv-callpop-no { --_bg: var(--coral); --_fg: var(--on-coral); --_bd: var(--coral); }
.trv-callpop-msg { margin: 0; font-size: var(--t-s); font-weight: 700; }
.trv-callpop-msg[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .trv-callpop-card, .trv-callpop-dot { animation: none; } }
.trv-check { display: flex; gap: 12px; align-items: flex-start; }
.trv-check .box { flex: none; width: 30px; height: 30px; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; font-family: var(--font); font-size: 20px; font-weight: 900; color: var(--jungle-ink); background: var(--card); }
.trv-check .box.ok { border-color: var(--jungle); }
.trv-check .box.no { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.trv-check .box.opt { border-style: dashed; color: var(--muted); }
.trv details > summary { list-style: none; }
.trv details > summary::-webkit-details-marker { display: none; }

/* 18. Small postcards (links to other places) ------------------------------- */
.trv-cardlink { display: grid !important; grid-template-columns: 96px 1fr; gap: 14px !important; align-items: center; padding: 10px !important; }
.trv-cardlink .trv-scene { border-radius: 8px; aspect-ratio: 1 / 1; }
.trv-cardlink .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trv-cardlink h2 { font-size: 19px !important; line-height: 24px !important; }

/* 19. Ticket (next booked) --------------------------------------------------- */
.trv-ticket .times { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.trv-ticket .times div { background: var(--soft); border-radius: var(--r-m); padding: 10px 12px; }
.trv-ticket .times b { display: block; font-family: var(--font-display); font-size: var(--t-l); line-height: 26px; font-weight: 800; }
.trv-ticket .times small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.trv-ticket .times .arr { color: var(--line-2); }
.trv-ticket .times .arr svg { width: 22px; height: 22px; display: block; }

/* 20. Page header painting (a strip above the title) ------------------------ */
.trv-banner { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); }
.trv-banner .trv-scene { aspect-ratio: 16 / 7; }
.trv-banner .lbl { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: #FFF8E6; color: #2A2016; padding: 4px 12px 6px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.2); font-family: var(--font); font-weight: 800; font-size: 16px; line-height: 22px; transform: rotate(-2deg); max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 21. Trail map (Stay) ------------------------------------------------------ */
.trv-place { position: relative; padding-left: 58px !important; }
.trv-place::before { /* the map pin */
  content: ""; position: absolute; left: 14px; top: 16px; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--coral); box-shadow: inset 0 0 0 9px var(--coral), inset 0 0 0 30px #FFF8E6;
}
.trv-place::after { content: ""; position: absolute; left: 28px; top: 52px; bottom: -12px; border-left: 2px dashed var(--line-2); }
.trv-place:last-child::after { display: none; }
.trv-place .links { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: var(--t-s); }
.trv-place .links a { min-height: var(--tap); display: inline-flex; align-items: center; }
.trv-place .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.trv-vote { white-space: nowrap; flex: none; font: inherit; font-size: 13px; font-weight: 800; border: 1.5px solid var(--line-2); background: var(--card); color: var(--jungle-ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: var(--tap); }
.trv-vote::before { content: "+ "; }
.trv-vote[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.trv-vote[aria-pressed="true"]::before { content: "✓ "; }
.trv-skel { height: 76px; border-radius: var(--r); background: linear-gradient(90deg, var(--soft), var(--card), var(--soft)); background-size: 200% 100%; animation: trvSk 1.4s linear infinite; }
@keyframes trvSk { to { background-position: -200% 0; } }
.trv-routes { display: flex; flex-direction: column; gap: 6px; }
.trv-route { border-top: 1px dashed var(--line-2); }
.trv-route:first-of-type { border-top: 0; }
.trv-route > summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; gap: 12px; font-weight: 800; }
.trv-route > summary .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 4.5px currentColor; }
.trv-route > summary .nm { flex: 1; min-width: 0; }
.trv-route > summary .ct { font-size: var(--t-xs); color: var(--muted); font-weight: 700; }
.trv-route > summary::after { content: ""; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 6px 0 0; transition: transform var(--d); }
.trv-route[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.trv-stops { list-style: none; margin: 0 0 12px; padding: 0 0 0 6px; position: relative; display: flex; flex-wrap: wrap; gap: 8px 6px; }
.trv-stops .chip { min-height: 40px; padding: 0 12px 0 10px; font-size: 14px; border-style: dashed; }
.trv-stops .chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rc, var(--coral)); flex: none; }

/* 22. Noticeboard (Hangout) ------------------------------------------------- */
.trv-board {
  position: relative; padding: 16px 12px; border-radius: 14px; min-height: 260px;
  background-color: var(--cork);
  background-image: radial-gradient(var(--cork-dot) 1px, transparent 1.5px), radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.5px);
  background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px;
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--cork) 70%, #5A3B1E), inset 0 2px 12px rgba(0,0,0,.25);
}
.trv-thread { display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.trv-thread > p.meta { background: var(--note); color: var(--text); padding: 12px 14px; border-radius: 2px; box-shadow: var(--sh-2); align-self: center; transform: rotate(-1deg); max-width: 90%; }
.trv-msg { position: relative; display: flex; flex-direction: column; gap: 4px; max-width: 88%; padding: 12px 14px 12px; background: var(--note); color: var(--text); border-radius: 2px; box-shadow: var(--note-sh); }
.trv-msg:nth-child(odd) { transform: rotate(-.8deg); }
.trv-msg:nth-child(even) { transform: rotate(.7deg); }
.trv-msg::before { /* the pin */ content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FF9D84, var(--coral) 60%, #7E2412); box-shadow: 0 2px 2px rgba(0,0,0,.3); }
.trv-msg .who { font-size: 13px; font-weight: 800; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.trv-msg .bub { white-space: pre-wrap; overflow-wrap: anywhere; }
.trv-msg.me { align-self: flex-end; background: var(--note-me); }
.trv-msg.me::before { background: radial-gradient(circle at 35% 35%, #8FE0E6, var(--ocean) 60%, #053338); }
.trv-msg .more { font: inherit; font-size: 15px; font-weight: 900; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0 8px; min-height: var(--tap); min-width: var(--tap); margin: -12px -10px -12px auto; }
.trv-meet { position: relative; border: 2px dashed var(--coral); border-radius: 8px; padding: 14px 12px 12px; margin-top: 8px; background: var(--card); display: flex; flex-direction: column; gap: 2px; }
/* the tag sits inside the flyer, a stamp at its top; the tape is on top, across the middle of the top edge */
.trv-meet::before { content: "Meet-up"; align-self: flex-start; margin-bottom: 6px; background: var(--coral); color: var(--on-coral); font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; transform: rotate(-2deg); }
.trv-meet b { display: block; font-family: var(--font-display); font-size: var(--t-m); }
.trv-meet::after { content: ""; position: absolute; z-index: 2; top: -11px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: var(--tape-solid); box-shadow: 0 1px 1px rgba(0, 0, 0, .12); transform: rotate(-3deg); }
.trv-rooms { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.trv-rooms::-webkit-scrollbar { display: none; }
.trv-rooms .chip { flex: none; }
.trv-compose { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); padding: 10px 0; display: flex; flex-direction: column; gap: 8px; z-index: 5; border-top: 1px dashed var(--line-2); }
@media (min-width: 900px) { .trv-compose { bottom: 0; } }
.trv-compose .row { align-items: flex-end; }
.trv-compose textarea { flex: 1; min-height: 52px; max-height: 140px; resize: none; }
.trv-compose summary { min-height: var(--tap); display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--jungle-ink); cursor: pointer; font-size: var(--t-s); }
.trv-sheet { position: fixed !important; left: 8px; right: 8px; bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); z-index: 70; max-height: 80vh; overflow-y: auto; max-width: 544px; margin: 0 auto; }
.trv-sheet[hidden] { display: none; }
.trv-sheet .opts { display: flex; flex-direction: column; gap: 8px; }
.trv-sheet .opts label { display: flex; gap: 10px; align-items: center; min-height: var(--tap); font-weight: 700; }
.trv-rules ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.trv-rules li { position: relative; padding-left: 26px; }
.trv-rules li::before { content: "✓"; position: absolute; left: 0; top: 0; font-family: var(--font); font-size: 18px; font-weight: 900; color: var(--jungle-ink); }

/* 23. Packing list (Kit) ---------------------------------------------------- */
.trv-paper { position: relative; background-color: var(--card); background-image: repeating-linear-gradient(transparent 0 35px, color-mix(in srgb, var(--ocean) 18%, transparent) 35px 36px); border-radius: 4px 14px 14px 4px; border-left: 3px double color-mix(in srgb, var(--coral) 50%, transparent); padding: 18px 16px 14px 22px !important; }
.trv-paper::before { content: ""; position: absolute; top: -8px; left: 40%; width: 70px; height: 18px; background: var(--tape); transform: rotate(-3deg); }
.trv-paper h2 { font-family: var(--font) !important; font-weight: 900; font-size: 24px !important; line-height: 30px !important; color: var(--coral-ink); }
.trv-meter { height: 12px; border-radius: 6px; background: var(--soft); overflow: hidden; border: 1px solid var(--line); }
.trv-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ocean), var(--jungle)); transition: width 80ms linear; }
.trv-cam { width: 100%; max-height: 180px; border-radius: var(--r-m); background: var(--soft); object-fit: cover; display: none; }
.trv-run .row { justify-content: space-between; min-height: 36px; }

/* 24. Passport (You) -------------------------------------------------------- */
.trv-passport { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; }
.trv-passport .cover { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; background: var(--jungle); color: #F4E2B8; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.trv-passport .cover svg { width: 22px; height: 22px; }
.trv-passport .pg { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px; position: relative; background-image: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--ocean) 5%, transparent) 10px 11px); }
.trv-passport .av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.trv-passport .av picture { display: contents; }
.trv-passport .av { overflow: hidden; width: 84px; height: 100px; border-radius: 6px; background: linear-gradient(160deg, var(--ocean-soft), var(--jungle-soft)); color: var(--jungle-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 38px; border: 1px solid var(--line); }
.trv-passport .f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trv-passport .f small { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trv-passport h1 { font-size: 26px; line-height: 30px; overflow-wrap: anywhere; }
.trv-passport .side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trv-passport .visa { display: block; width: 78px; height: 78px; margin-top: 2px; color: var(--ok); opacity: .9; transform: rotate(-12deg); pointer-events: none; }
.trv-passport .visa.wait { color: var(--warn); }
.trv-passport .visa text { font-family: var(--font); font-size: 10px; font-weight: 900; letter-spacing: .1em; fill: currentColor; }
.trv-link { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; text-decoration: none; color: var(--text) !important; border-top: 1px dashed var(--line-2); font-weight: 700; }
.trv-link:first-of-type { border-top: 0; }
.trv-link .grow { flex: 1; }
.trv-link .cap { font-weight: 500; }
.trv-link .li { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--jungle-ink); }
.trv-link .li svg { width: 20px; height: 20px; }
.trv-link::after { content: ""; width: 9px; height: 9px; border: solid var(--muted); border-width: 2px 2px 0 0; transform: rotate(45deg); margin-right: 6px; }

/* 25. Moderator page ------------------------------------------------------- */
.trv-mod .msg { background: var(--soft); border-radius: var(--r-m); padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.trv-mod .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.trv-mod .hid { opacity: .6; }
.trv-modnav { display: flex; gap: 6px 14px; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.trv-modnav a { min-height: var(--tap); display: inline-flex; align-items: center; }

/* 25b. Tap targets: text links in a speaker page's words and footer reach 44px tall (the padding
   widens the tap area only; the lines do not move) */
.trv-main p a:not(.btn), .trv-main li a:not(.btn), .trv .uka-foot a { padding: 13px 0; }
.trv-notes input[type=checkbox], .trv-check-line input[type=checkbox] { width: 22px; height: 22px; }

/* 25c. Friends and private messages (lib/ukaccent-friends.js, UKA_HANGOUT_DM) --------------- */
.trv .trv-fr-title { font-family: var(--font-display); font-weight: 800; font-size: var(--t-xl); line-height: var(--lh-xl); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.trv .trv-fr-h { font-family: var(--font-display); font-weight: 800; font-size: var(--t-l); line-height: var(--lh-l); }
.trv-fr-acts { display: flex; flex-direction: column; gap: 8px; }
.trv-fr-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.trv-fr-bar .btn { position: relative; gap: 6px; }
.trv-unread { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #C8102E; color: #fff; font-family: var(--font); font-size: 12px; font-weight: 800; line-height: 1; vertical-align: middle; }
.trv-unread[hidden] { display: none; }
.trv-friend { display: grid !important; grid-template-columns: 44px 1fr auto; gap: 12px !important; align-items: center; padding: 12px !important; text-decoration: none; color: inherit; }
.trv-friend .txt, .trv-town-row .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trv-friend .txt b, .trv-town-row .txt b { font-family: var(--font); font-weight: 800; font-size: var(--t-m); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trv-friend .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.trv-av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--jungle-soft, var(--soft)); color: var(--jungle-ink, var(--jungle)); font-family: var(--font-display); font-weight: 800; font-size: 20px; flex: none; }
.trv-av--l { width: 72px; height: 72px; font-size: 32px; margin: 0 auto 6px; }
.trv-add { display: flex; flex-direction: column; gap: 10px; text-align: center; padding: 22px 16px !important; }
.trv-add .h1 { font-size: var(--t-l); line-height: var(--lh-l); }
.trv-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px !important; margin: 0; }
.trv-qr-img { width: min(100%, 280px); aspect-ratio: 1 / 1; background: #fff; border-radius: 12px; padding: 10px; box-shadow: var(--sh-2); }
.trv-qr-img svg { display: block; width: 100%; height: 100%; }
.trv-qr-img.gone { opacity: .15; }
.trv-qr figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.trv-qr-code { font-family: var(--font); font-weight: 800; font-size: 26px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.trv-town { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m, 12px); padding: 12px; }
.trv-town[hidden] { display: none; }
.trv-town-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.trv-town-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.trv-dm-head { display: grid; grid-template-columns: auto 44px 1fr auto; gap: 10px; align-items: center; }
.trv-dm-head .txt { display: flex; flex-direction: column; min-width: 0; }
.trv-dm-head .trv-fr-title { font-size: var(--t-l); line-height: var(--lh-l); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trv-dm-back { display: inline-grid; place-items: center; min-width: var(--tap); min-height: var(--tap); color: var(--text); }
.trv-dm-more { min-width: var(--tap); font-weight: 900; }
.trv-dm-priv { color: var(--muted); }

/* 26. Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .trv *, .trv *::before, .trv *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .trv-msg:nth-child(odd), .trv-msg:nth-child(even), .trv-postcard, .trv-stamp, .trv .uka-mark { transform: none; }
}

/* 27. Share link (lib/uka-share.js, views/_trv-share.ejs) -------------------- */
.trv-share { display: flex; flex-direction: column; gap: 10px; }
.trv-share-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.trv .trv-share-h { font-family: var(--font-display); font-weight: 800; font-size: var(--t-l); line-height: var(--lh-l); }
.trv-share-link { margin: 2px 0 0; font-size: var(--t-m); line-height: var(--lh-m); }
.trv-share-link span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.trv-share-link b { font-weight: 800; color: var(--jungle-ink); white-space: nowrap; }
.trv-share-qr { flex: none; width: 104px; height: 104px; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; padding: 4px; }
.trv-share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trv-share-btns .btn { width: 100%; }
.trv-share-stats { margin: 0; font-weight: 700; }
.trv-share-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trv-share-form .input { flex: 1 1 120px; min-width: 0; }
.trv-share-at { font-weight: 700; color: var(--muted); font-size: var(--t-s); }
.trv-share-change summary { cursor: pointer; font-weight: 700; color: var(--jungle-ink); min-height: var(--tap); display: flex; align-items: center; }
.trv-share-change[open] summary { margin-bottom: 6px; }
