/* ============================================================
   MIZI.dolomites.09.26 — "Field Journal"

   An expedition guide rather than an app template. Three ideas carry it:
     1. A timeline spine for the route, because a journey is sequential and
        the structure should say so before any label does.
     2. Editorial display numerals — the day number is the largest thing on
        a row, so the eye lands on "where am I in the trip" first.
     3. One accent. Alpenglow rose marks actions; glacier turquoise belongs
        to the tracker alone. Everything else is limestone and dusk.

   Enrosadira is the Ladin word for pale dolomite turning rose at dusk; it
   is where the accent comes from.

   Logical properties throughout — one stylesheet serves Hebrew and English.
   ============================================================ */

/* ---------- tokens ---------- */
/* 2026-10 refresh — "Trail Buddy": the same field guide, made friendlier.
   Rounded type (Rubik, which has Hebrew), a tinted ground instead of
   paper-white, one punchy action colour per destination, a sun-yellow for
   rewards, and surfaces told apart by tone rather than by lines. */
:root {
  /* one spacing scale; nothing in this file may invent a value */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* five sizes do the work: display, title, head, body, small */
  --t-display: 52px;
  --t-title:   30px;
  --t-head:    20px;
  --t-body:    16px;
  --t-cap:     13.5px;
  --t-micro:   12.5px;

  --bg:        #F4F7F5;
  --surface:   #FFFFFF;
  --sunk:      #E8EEEB;
  --line:      #D7E0DB;
  --line-soft: #E4EBE7;

  --ink:    #13201B;
  --ink-2:  #3B4943;
  --ink-3:  #586660;

  --accent:      #CF3450;
  --accent-ink:  #B4283F;
  --accent-soft: #FDE7EB;

  --glacier:      #0C756B;
  --glacier-soft: #DDF3EF;

  --sun:      #FFB020;
  --sun-soft: #FFF3D6;
  --sun-ink:  #8A5A00;

  --dusk-1: #10201A;
  --dusk-2: #1B2F27;
  --dusk-3: #2C4339;

  --shadow-1: 0 1px 2px rgba(19, 32, 27, .05);
  --shadow-2: 0 8px 24px rgba(19, 32, 27, .08);
  --shadow-3: 0 22px 54px rgba(19, 32, 27, .18);

  --r1: 10px; --r2: 16px; --r3: 22px; --r4: 30px;

  --font-display: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* motion: enter fast and decelerate; never ease-in on UI */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-press: 140ms;
  --t-ui: 240ms;

  --nav-h: 68px;
  --maxw: 660px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg:        #0E1412;
  --surface:   #161E1B;
  --sunk:      #1E2824;
  --line:      #2B3732;
  --line-soft: #222D29;

  --ink:    #EEF4F1;
  --ink-2:  #B3C1BA;
  --ink-3:  #8D9C95;

  --accent:      #FF6F86;
  --accent-ink:  #FF93A5;
  --accent-soft: #2C1A1F;

  --glacier:      #4FD1C0;
  --glacier-soft: #0F2A26;

  --sun:      #FFB020;
  --sun-soft: #2E2410;
  --sun-ink:  #FFC95C;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 8px 22px rgba(0, 0, 0, .5);
  --shadow-3: 0 20px 48px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0E1412; --surface: #161E1B; --sunk: #1E2824;
    --line: #2B3732; --line-soft: #222D29;
    --ink: #EEF4F1; --ink-2: #B3C1BA; --ink-3: #8D9C95;
    --accent: #FF6F86; --accent-ink: #FF93A5; --accent-soft: #2C1A1F;
    --glacier: #4FD1C0; --glacier-soft: #0F2A26;
    --sun: #FFB020; --sun-soft: #2E2410; --sun-ink: #FFC95C;
    --shadow-1: 0 1px 2px rgba(0,0,0,.5);
    --shadow-2: 0 8px 22px rgba(0,0,0,.5);
    --shadow-3: 0 20px 48px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

/* Albania wears the Adriatic instead of alpenglow. */
:root[data-dest='albania'] { --accent: #1C69D3; --accent-ink: #1556B0; --accent-soft: #E3EEFD; }
:root[data-dest='albania'][data-theme='dark'] { --accent: #6FA8FF; --accent-ink: #9CC3FF; --accent-soft: #14213A; }
@media (prefers-color-scheme: dark) {
  :root[data-dest='albania']:not([data-theme='light']) { --accent: #6FA8FF; --accent-ink: #9CC3FF; --accent-soft: #14213A; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--t-body);
  line-height: 1.6;
  overflow-x: hidden;
  padding-block-end: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent-ink); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--glacier); outline-offset: 3px; border-radius: var(--r1); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s5); }

/* Eyebrow: small caps label. Hebrew gets no letterspacing or uppercasing —
   both are meaningless in an unicameral script and just look broken. */
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--t-micro); font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}
[lang='he'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: var(--t-cap); }

.section { margin-block: var(--s7); }
.section > .eyebrow { margin-block-end: var(--s4); display: block; }

.rule { height: 1px; background: var(--line); border: 0; margin-block: var(--s6); }

/* ---------- topographic texture ---------- */
/* Contour lines behind dark headers. Map language, barely visible — it should
   register as texture, never as pattern. */
.topo::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: .16;
  background-image:
    repeating-radial-gradient(ellipse 140% 90% at 22% 8%,
      transparent 0 17px, rgba(255,255,255,.5) 17px 18px),
    repeating-radial-gradient(ellipse 110% 70% at 88% 78%,
      transparent 0 21px, rgba(255,255,255,.36) 21px 22px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

/* ---------- cover (Today only) ---------- */
/* A photograph, not a gradient. The picture supplies the colour; the type
   sits on it the way a magazine cover line does. */
/* 62vh, not 74: taller than this and the card below is cut in half, which
   reads as a broken layout rather than an invitation to scroll. */
.cover { position: relative; overflow: hidden; min-height: 62vh; display: flex; flex-direction: column; }
.cover-img { position: absolute; inset: 0; }
.cover-img img { width: 100%; height: 100%; object-fit: cover; }
.cover-img::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(20,20,20,.15) 42%, rgba(20,20,20,.5) 100%);
}
.cover > .wrap { position: relative; z-index: 1; }
.cover .cover-top { padding-block-start: calc(var(--s5) + env(safe-area-inset-top, 0px)); }
.cover .cover-bottom { margin-block-start: auto; padding-block-end: var(--s6); }

.wordmark { display: flex; align-items: center; gap: var(--s3); }
.wordmark img { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }
.wordmark .wm-name {
  font-family: var(--font-ui); font-size: var(--t-cap); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: #FFF; line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.wordmark .wm-sub {
  font-size: var(--t-micro); color: rgba(255,255,255,.72); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-block-start: 2px;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
[lang='he'] .wordmark .wm-name,
[lang='he'] .wordmark .wm-sub { letter-spacing: 0; text-transform: none; font-size: var(--t-cap); }

.cover-lead {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-display); line-height: 1.02; letter-spacing: -.02em;
  color: #fff; max-width: 11ch; text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
[lang='he'] .cover-lead { letter-spacing: 0; max-width: 13ch; }
.cover-dates {
  font-size: var(--t-micro); color: rgba(255,255,255,.82); font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; margin-block-end: var(--s3);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
[lang='he'] .cover-dates { letter-spacing: .02em; text-transform: none; font-size: var(--t-cap); }

/* ---------- countdown ---------- */
.countdown { display: flex; align-items: baseline; gap: var(--s3); margin-block-start: var(--s5); }
.countdown .n {
  font-family: var(--font-display); font-size: 60px; font-weight: 700;
  line-height: .85; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.countdown .lbl {
  font-size: var(--t-cap); color: rgba(255,255,255,.85); font-weight: 700;
  max-width: 12ch; line-height: 1.3; text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.countdown-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s2); margin-block-start: var(--s5); max-width: 320px;
}
.cd-cell {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); border-radius: var(--r2);
  padding: var(--s2) var(--s1); text-align: center;
}
.cd-cell .n {
  font-family: var(--font-display); font-size: 25px; font-weight: 700;
  color: #fff; line-height: 1; font-variant-numeric: tabular-nums;
}
.cd-cell .u {
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin-block-start: 3px;
}
[lang='he'] .cd-cell .u { letter-spacing: 0; text-transform: none; font-size: 11px; }
.cd-foot {
  font-size: var(--t-micro); color: rgba(255,255,255,.7); font-weight: 700;
  margin-block-start: var(--s2); text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* ---------- dual clock ---------- */
.clocks {
  display: flex; align-items: center; gap: var(--s3);
  font-size: var(--t-cap); color: var(--ink-3); font-weight: 600;
}
.clocks b { font-family: var(--font-display); font-size: var(--t-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.clocks .sep { width: 1px; height: 14px; background: var(--line); }
.cover .clocks { color: rgba(255,255,255,.75); }
.cover .clocks b { color: #fff; }
.cover .clocks .sep { background: rgba(255,255,255,.3); }

/* ---------- hamburger ---------- */
.burger-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--sunk); color: var(--ink); border: 1px solid var(--line);
}
.burger-btn svg { width: 20px; height: 20px; stroke-width: 2; }
/* White only where it sits on the cover photograph. The topbar used to be a
   dark slab and was included here; once it became a light header the icon was
   white on near-white — present and clickable, but invisible. */
.cover .burger-btn {
  background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.24);
  color: #fff; backdrop-filter: blur(8px);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }

/* ---------- the trip in hand, beside the menu ---------- */
.hdr-acts { display: flex; align-items: center; gap: var(--s2); flex: none; min-width: 0; }
.trip-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding-inline: 12px 10px; border-radius: 21px;
  max-width: min(46vw, 220px); min-width: 0;
  background: var(--sunk); color: var(--ink); border: 1px solid var(--line);
  font: inherit; font-size: var(--t-cap); font-weight: 700;
}
.trip-chip .tc-flag { font-size: 17px; line-height: 1; flex: none; }
.trip-chip .tc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.trip-chip .tc-caret { flex: none; color: var(--ink-3); font-size: 11px; }
.cover .trip-chip {
  background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.24);
  color: #fff; backdrop-filter: blur(8px);
}
.cover .trip-chip .tc-caret { color: rgba(255,255,255,.8); }
@media (max-width: 380px) { .trip-chip { max-width: 34vw; padding-inline: 10px 8px; } }

.tsw-list { display: grid; gap: var(--s2); }
.tsw-row {
  display: flex; align-items: center; gap: var(--s3); width: 100%;
  padding: var(--s3) var(--s4); border-radius: var(--r2);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  text-align: start; font: inherit;
}
.tsw-row.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tsw-flag { font-size: 24px; line-height: 1; flex: none; }
.tsw-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tsw-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsw-sub { font-size: var(--t-cap); color: var(--ink-3); }
.tsw-go { color: var(--ink-3); flex: none; display: grid; }
.tsw-go svg { width: 18px; height: 18px; }
[dir='rtl'] .tsw-go svg { transform: scaleX(-1); }

/* ---------- compact header (every other view) ---------- */
/* Light, not a dark slab: on an editorial page the header should not shout. */
.topbar {
  position: relative;
  padding-block: calc(var(--s5) + env(safe-area-inset-top, 0px)) var(--s3);
  border-block-end: 1px solid var(--line);
}
.topbar h1 { font-size: var(--t-title); color: var(--ink); letter-spacing: -.015em; margin-block-start: var(--s2); }
[lang='he'] .topbar h1 { letter-spacing: 0; }
.topbar .eyebrow { display: block; }

/* ---------- timeline (Route) ---------- */
.timeline { position: relative; padding-inline-start: var(--s7); }
.timeline::before {
  content: ''; position: absolute; inset-block: 10px 30px;
  inset-inline-start: 15px; width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--line) 22%, var(--line) 100%);
}

.tl-day {
  position: relative; display: block; width: 100%; text-align: start;
  padding-block-end: var(--s6);
}
.tl-day::before {
  content: ''; position: absolute; inset-block-start: 6px;
  inset-inline-start: calc(var(--s7) * -1 + 9px);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--line);
}
.tl-day.is-now::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-day.is-past::before { background: var(--line); }

.tl-num {
  font-family: var(--font-display); font-size: var(--t-display);
  font-weight: 700; line-height: .9; color: var(--line);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  position: absolute; inset-block-start: -6px; inset-inline-start: calc(var(--s7) * -1 - 4px);
  opacity: 0;
}
.tl-head { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.tl-date { font-size: var(--t-micro); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
[lang='he'] .tl-date { letter-spacing: 0; text-transform: none; font-size: var(--t-cap); }
.tl-day h3 { font-size: var(--t-head); margin-block-start: var(--s1); color: var(--ink); }

.tl-photo {
  margin-block-start: var(--s3); border-radius: var(--r2); overflow: hidden;
  aspect-ratio: 21 / 9; background: var(--sunk); box-shadow: var(--shadow-1);
}
.tl-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
@media (hover: hover) { .tl-day:hover .tl-photo img { transform: scale(1.04); } }

/* ---------- metrics ---------- */
/* Distance leads; ascent and time are demoted by contrast, not by size. */
.metrics { display: flex; gap: var(--s5); margin-block-start: var(--s3); flex-wrap: wrap; }
.metric { display: flex; align-items: baseline; gap: var(--s1); }
.metric .v {
  font-family: var(--font-display); font-size: var(--t-head); font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1;
}
.metric .u { font-size: var(--t-cap); color: var(--ink-3); font-weight: 700; }

/* proportional bars — honest, derived straight from the day's own numbers */
.bars { margin-block-start: var(--s4); display: grid; gap: var(--s2); }
.bar-row { display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: var(--s3); }
.bar-row .k { font-size: var(--t-micro); font-weight: 800; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
[lang='he'] .bar-row .k { letter-spacing: 0; text-transform: none; font-size: var(--t-cap); }
.bar-track { height: 5px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--accent); }
.bar-fill.alt { background: var(--ink-3); }
.bar-row .n { font-size: var(--t-cap); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: var(--t-micro); font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px var(--s2); border-radius: var(--r1);
  background: var(--sunk); color: var(--ink-2);
}
[lang='he'] .tag { letter-spacing: 0; text-transform: none; font-size: var(--t-cap); }
.tag.accent { background: var(--accent-soft); color: var(--accent-ink); }
.tag.glacier { background: var(--glacier-soft); color: var(--glacier); }
.tag.solid { background: var(--accent); color: #fff; }
.tag.walked { background: var(--glacier-soft); color: var(--glacier); }
.tag.untested { background: var(--sunk); color: var(--ink-3); }

/* ---------- day detail ---------- */
.hero { position: relative; margin-inline: calc(var(--s5) * -1); }
.hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgba(12,18,25,.15) 46%, rgba(12,18,25,.42) 100%);
}
.hero-cap { position: absolute; inset-block-end: var(--s5); inset-inline: var(--s5); z-index: 1; }
.hero-cap .eyebrow { color: #F0BCA4; display: block; margin-block-end: var(--s2); text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.hero-cap h2 { font-size: var(--t-title); color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); }

.prose { margin-block: var(--s6); }
.prose h4 {
  font-family: var(--font-ui); font-size: var(--t-micro); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-block-end: var(--s2);
}
[lang='he'] .prose h4 { letter-spacing: 0; text-transform: none; font-size: var(--t-cap); }
.prose p { color: var(--ink-2); max-width: 68ch; }

.filmstrip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--s5) * -1); padding-inline: var(--s5);
  scrollbar-width: none;
}
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip figure { margin: 0; scroll-snap-align: center; }
.filmstrip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r2); box-shadow: var(--shadow-1); }
.filmstrip figcaption { font-size: var(--t-cap); color: var(--ink-3); margin-block-start: var(--s2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 46px; padding: var(--s3) var(--s4);
  border-radius: var(--r2); font-weight: 700; font-size: 14.5px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; box-shadow: var(--shadow-1); }
.btn.glacier { background: var(--glacier); color: #fff; border-color: transparent; }
/* The dark theme's glacier is light: dark text on it reads, white does not. */
:root[data-theme='dark'] .btn.glacier { color: #0C1219; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .btn.glacier { color: #0C1219; } }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.full { width: 100%; }
.btn.sm { min-height: 38px; padding: var(--s2) var(--s3); font-size: var(--t-cap); border-radius: var(--r1); }
.btn.danger { color: var(--accent-ink); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 60;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  border-block-start: 1px solid var(--line-soft);
  padding-block-end: env(safe-area-inset-bottom, 0px);
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: 48px; padding-block: var(--s2) var(--s1);
  color: var(--ink-3); font-size: var(--t-micro); font-weight: 700;
  transition: color .16s ease;
}
[lang='he'] .tabbar button { font-size: var(--t-cap); }
.tabbar button svg { width: 21px; height: 21px; stroke-width: 1.7; }
/* A tab that does not apply to this account or trip leaves no gap: the
   button's own display would otherwise win over the hidden attribute. */
.tabbar button[hidden] { display: none; }
.tabbar button.on { color: var(--accent); }
.tabbar button.on svg { stroke-width: 2.3; }

/* ---------- album ---------- */
.daystrip {
  display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--s5) * -1); padding: 2px var(--s5) var(--s3);
}
.daystrip::-webkit-scrollbar { display: none; }
.daypill {
  flex: none; min-height: 44px; padding: var(--s2) var(--s4);
  border-radius: 99px; font-size: var(--t-cap); font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  white-space: nowrap; display: flex; flex-direction: column; justify-content: center;
}
.daypill.on { background: var(--accent); color: #fff; border-color: transparent; }
.daypill.has::after {
  content: ''; display: block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); margin: 3px auto 0;
}
.daypill.on.has::after { background: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s1); }
.tile {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--sunk); border-radius: var(--r1);
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile .who {
  position: absolute; inset-block-end: 0; inset-inline: 0; padding: var(--s5) var(--s2) var(--s1);
  background: linear-gradient(to top, rgba(12,18,25,.75), transparent);
  color: #fff; font-size: var(--t-micro); font-weight: 700;
}
.tile .badge-v {
  position: absolute; inset-block-start: var(--s1); inset-inline-end: var(--s1);
  background: rgba(12,18,25,.7); border-radius: var(--r1); padding: 1px 5px;
  color: #fff; font-size: var(--t-micro); font-weight: 700;
}
.tile.pending { opacity: .55; }

.empty {
  text-align: center; padding: var(--s7) var(--s5); color: var(--ink-3);
  border: 1.5px dashed var(--line); border-radius: var(--r3);
}
.empty .mark { font-size: 28px; margin-block-end: var(--s2); opacity: .55; }
.empty .hint { font-size: var(--t-cap); margin-block-start: var(--s1); }

.comment { display: flex; gap: var(--s3); padding-block: var(--s3); border-block-start: 1px solid var(--line-soft); }
.comment:first-child { border-block-start: 0; }
.avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: var(--t-cap);
}
.comment .name { font-weight: 700; font-size: 13.5px; }
.comment .when { font-size: var(--t-micro); color: var(--ink-3); font-weight: 600; }
.comment .body { font-size: 14.5px; color: var(--ink-2); margin-block-start: 2px; }

.composer { display: flex; gap: var(--s2); margin-block-start: var(--s4); }
.composer input {
  flex: 1; min-height: 46px; padding: var(--s3) var(--s4); border-radius: 99px;
  border: 1px solid var(--line); background: var(--sunk); color: var(--ink);
}
.composer input::placeholder { color: var(--ink-3); }

/* ---------- forms ---------- */
.field { margin-block-end: var(--s4); }
.field label { display: block; font-size: var(--t-cap); font-weight: 700; color: var(--ink-2); margin-block-end: var(--s1); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: var(--s3) var(--s4);
  border-radius: var(--r2); border: 1px solid var(--line);
  background: var(--sunk); color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 84px; resize: vertical; }
.field .hint { font-size: var(--t-cap); color: var(--ink-3); margin-block-start: var(--s1); }
.field .err { font-size: var(--t-cap); color: var(--accent-ink); font-weight: 700; margin-block-start: var(--s1); }

/* ---------- lodging ---------- */
.stay {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r3); overflow: hidden; margin-block-end: var(--s3);
  box-shadow: var(--shadow-1);
}
.stay.chosen { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-1); }
.stay-top { display: flex; gap: var(--s3); padding: var(--s4); }
.stay-thumb {
  width: 76px; height: 76px; flex: none; border-radius: var(--r2);
  object-fit: cover; background: var(--sunk);
}
.stay-thumb.none { display: grid; place-items: center; font-size: 22px; opacity: .4; }
.stay h3 { font-size: 17px; margin-block-start: var(--s1); }
.stay .addr { font-size: var(--t-cap); color: var(--ink-3); margin-block-start: 2px; }
.stay .price {
  font-family: var(--font-display); font-size: var(--t-head); font-weight: 700;
  color: var(--ink); margin-block-start: var(--s2);
}
.stay .price small { font-family: var(--font-ui); font-size: var(--t-cap); font-weight: 600; color: var(--ink-3); }
.stay-acts { display: flex; gap: var(--s2); flex-wrap: wrap; padding: 0 var(--s4) var(--s4); }

.src { font-size: var(--t-micro); font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
       padding: 2px 6px; border-radius: var(--r1); background: var(--sunk); color: var(--ink-2); }
.src.booking { background: #E7EFFD; color: #16407F; }
.src.airbnb  { background: #FCE9ED; color: #A82A43; }
:root[data-theme='dark'] .src.booking { background: #14243C; color: #93B9F2; }
:root[data-theme='dark'] .src.airbnb  { background: #331A20; color: #F2909F; }

/* ---------- tracker ---------- */
.tracker {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r3); padding: var(--s5); text-align: center;
  box-shadow: var(--shadow-1);
}
.tracker .km {
  font-family: var(--font-display); font-size: 52px; font-weight: 700;
  line-height: .9; color: var(--glacier); font-variant-numeric: tabular-nums;
}
.tracker .km-u { font-size: var(--t-cap); color: var(--ink-3); font-weight: 700; margin-block-start: var(--s1); }
.tracker-sub { display: flex; justify-content: center; gap: var(--s6); margin-block: var(--s4); }
.tracker-sub .k { font-size: var(--t-micro); font-weight: 800; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
[lang='he'] .tracker-sub .k { letter-spacing: 0; text-transform: none; font-size: var(--t-cap); }
.tracker-sub .v { font-family: var(--font-display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }

/* ---------- gate ---------- */
.gate {
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, var(--dusk-1) 0%, var(--dusk-2) 52%, var(--dusk-3) 100%);
  color: #FCF6EF; padding-block: var(--s8);
}
.gate > .wrap { position: relative; z-index: 1; max-width: 400px; }
.gate img.mark { width: 62px; height: 62px; margin-block-end: var(--s5); }
.gate h1 { font-size: 30px; color: #FBEDE2; line-height: 1.15; }
.gate .sub { font-size: var(--t-body); color: #D9B3A0; margin-block-start: var(--s3); }
.gate .field label { color: #D9B3A0; }
.gate .field input {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #FCF6EF;
}
.gate .field input::placeholder { color: rgba(252,246,239,.45); }
.gate .field input:focus { border-color: #F5A882; }
.gate .field .err { color: #FFC2AC; }
.gate form { margin-block-start: var(--s6); }
.gate .foot { font-size: var(--t-cap); color: rgba(217,179,160,.8); margin-block-start: var(--s5); line-height: 1.5; }

/* ---------- rows ---------- */
.rows { border: 1px solid var(--line-soft); border-radius: var(--r3); overflow: hidden; background: var(--surface); }
.row { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 52px;
       padding: var(--s3) var(--s4); text-align: start; color: var(--ink); }
.row + .row { border-block-start: 1px solid var(--line-soft); }
.row .val { margin-inline-start: auto; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.row .chev { margin-inline-start: auto; color: var(--ink-3); width: 18px; height: 18px; }
[dir='rtl'] .row .chev { transform: scaleX(-1); }

.seg { display: flex; background: var(--sunk); border-radius: var(--r2); padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 40px; border-radius: var(--r1); font-size: var(--t-cap); font-weight: 700; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- sheet / lightbox ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(12,18,25,.55);
         backdrop-filter: blur(4px); display: none; }
.scrim.open { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 91;
  background: var(--surface);
  border-start-start-radius: var(--r4); border-start-end-radius: var(--r4);
  max-height: 90vh; overflow-y: auto;
  padding: var(--s2) var(--s5) calc(var(--s6) + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-3);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.3,1);
  max-width: var(--maxw); margin-inline: auto;
}
.sheet.open { transform: none; }
.sheet .grab { width: 36px; height: 4px; border-radius: 99px; background: var(--line); margin: var(--s2) auto var(--s4); }
.sheet h3 { font-size: 21px; margin-block-end: var(--s4); }

.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(8,12,16,.96); display: none; place-items: center; }
.lightbox.open { display: grid; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 84vh; object-fit: contain; }
.lightbox .x { position: absolute; inset-block-start: calc(var(--s3) + env(safe-area-inset-top, 0px));
               inset-inline-end: var(--s4); color: #fff; font-size: 26px; line-height: 1;
               width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); }

/* ---------- misc ---------- */
.callout {
  font-size: var(--t-cap); color: var(--ink-2); background: var(--sunk);
  border-inline-start: 3px solid var(--accent); padding: var(--s3) var(--s4);
  border-radius: 0 var(--r2) var(--r2) 0; margin-block: var(--s4);
}
[dir='rtl'] .callout { border-radius: var(--r2) 0 0 var(--r2); }

.strip { display: flex; align-items: center; gap: var(--s2); background: var(--accent-soft);
         color: var(--accent-ink); padding: var(--s2) var(--s5); font-size: var(--t-cap); font-weight: 700; }

.toast {
  position: fixed; inset-block-end: calc(var(--nav-h) + var(--s5) + env(safe-area-inset-bottom, 0px));
  inset-inline: 0; margin-inline: auto; width: max-content; max-width: 84vw; z-index: 100;
  background: var(--ink); color: var(--bg); padding: var(--s3) var(--s5); border-radius: 99px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(12px); transition: all .26s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

.credits { font-size: var(--t-cap); color: var(--ink-3); line-height: 1.7; }
.credits b { color: var(--ink-2); font-weight: 700; }

.fade-in { animation: rise .34s cubic-bezier(.2,.7,.3,1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Reduced motion means fewer and gentler, not none: things still fade so
   a change is visible, but nothing travels, scales or bounces. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  *, *::before, *::after { transition-property: opacity, color, background-color, border-color !important; transition-duration: 160ms !important; }
}

/* ---------- weather ---------- */
.wx { margin-block: var(--s4); }
.wx-skeleton {
  padding: var(--s4); text-align: center; font-size: var(--t-cap);
  color: var(--ink-3); background: var(--sunk); border-radius: var(--r3);
}
.wx-card {
  display: flex; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r3); box-shadow: var(--shadow-1); overflow: hidden;
}
.wx-half {
  flex: 1; min-width: 0; text-align: start;
  padding: var(--s4); display: flex; flex-direction: column; gap: 2px;
}
.wx-div { width: 1px; background: var(--line-soft); flex: none; }
.wx-line { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.wx-temp {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums;
}
.wx-temp b { font-weight: 700; }
.wx-temp i { font-style: normal; color: var(--ink-3); font-size: 19px; margin-inline-start: 4px; }
.wx-ico { font-size: 26px; line-height: 1; }
.wx-desc { font-size: var(--t-micro); color: var(--ink-3); font-weight: 600; }

.wx-advice {
  margin-block-start: var(--s2); padding: var(--s2) var(--s3);
  border-radius: var(--r2); font-size: var(--t-cap); font-weight: 700;
}
.wx-advice.good { background: var(--glacier-soft); color: var(--glacier); }
.wx-advice.warn { background: var(--accent-soft); color: var(--accent-ink); }
.wx-advice.bad  { background: var(--accent); color: #fff; }
.wx-advice.unknown { background: var(--sunk); color: var(--ink-3); }

.wx-sub { font-size: var(--t-cap); color: var(--ink-3); margin-block-start: calc(var(--s2) * -1); }
.wx-sun { font-size: var(--t-cap); color: var(--ink-2); margin-block-start: var(--s3); font-weight: 600; }
.wx-stale { font-size: var(--t-micro); color: var(--ink-3); margin-block-start: var(--s3); text-align: center; }

.wx-list { border: 1px solid var(--line-soft); border-radius: var(--r3); overflow: hidden; }
.wx-row {
  display: grid; grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: var(--s3);
  width: 100%; min-height: 50px; padding: var(--s2) var(--s4); text-align: start;
}
.wx-row + .wx-row { border-block-start: 1px solid var(--line-soft); }
.wx-row.is-trip { background: var(--accent-soft); }
.wx-row-day { font-size: var(--t-cap); font-weight: 700; color: var(--ink); }
.wx-row-ico { font-size: 19px; }
.wx-row-rain { font-size: var(--t-micro); color: var(--ink-3); font-weight: 700; min-width: 3.4rem; }
.wx-row-temp { font-size: var(--t-cap); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wx-row-temp b { color: var(--ink); font-size: var(--t-body); }

/* hourly: a small column chart, temperature by height, rain in the label */
.wx-hours {
  display: grid; grid-auto-flow: column; grid-auto-columns: 46px;
  gap: 2px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--s5) * -1); padding: var(--s3) var(--s5);
}
.wx-hours::-webkit-scrollbar { display: none; }
.wx-hour { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wx-hour .hh { font-size: 10.5px; color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.wx-hour .ico { font-size: 15px; }
.wx-hour .bar { height: 56px; display: flex; align-items: flex-end; }
.wx-hour .bar i {
  display: block; width: 7px; border-radius: 99px;
  background: linear-gradient(to top, var(--accent), var(--accent-soft));
}
.wx-hour .tt { font-size: var(--t-cap); font-weight: 700; font-variant-numeric: tabular-nums; }
.wx-hour .rr { font-size: 10px; color: var(--ink-3); font-weight: 700; }
.wx-hour .rr.wet { color: var(--glacier); }

/* ---------- flights ---------- */
.leg {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r3); padding: var(--s4); margin-block-end: var(--s3);
  box-shadow: var(--shadow-1);
}
.leg-head { display: flex; align-items: center; justify-content: space-between; }
.leg-no { font-size: var(--t-cap); font-weight: 800; color: var(--ink-3); letter-spacing: .06em; }
.leg-body { display: flex; align-items: center; gap: var(--s3); margin-block-start: var(--s3); }
.leg-end { flex: 1; min-width: 0; }
.leg-end.end { text-align: end; }
.leg-end .code {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  line-height: 1; letter-spacing: .02em;
}
.leg-end .time {
  font-size: var(--t-head); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--ink); margin-block-start: 2px;
}
.leg-end .place { font-size: var(--t-micro); color: var(--ink-3); font-weight: 600; margin-block-start: 2px; }
.leg-arrow { color: var(--accent); flex: none; }
.leg-arrow svg { width: 22px; height: 22px; }
[dir='rtl'] .leg-arrow svg { transform: scaleX(-1); }
.leg-foot {
  font-size: var(--t-micro); color: var(--ink-3); font-weight: 700;
  margin-block-start: var(--s3); padding-block-start: var(--s2);
  border-block-start: 1px solid var(--line-soft);
}
.pnr {
  font-family: var(--font-display); font-size: 17px;
  letter-spacing: .12em; color: var(--ink) !important;
}

/* ---------- packing ---------- */
.pack-progress { display: flex; align-items: center; gap: var(--s3); margin-block-end: var(--s3); }
.pack-bar { flex: 1; height: 5px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.pack-bar span { display: block; height: 100%; background: var(--glacier); border-radius: 99px; transition: width .3s ease; }
.pack-progress > span { font-size: var(--t-micro); color: var(--ink-3); font-weight: 700; white-space: nowrap; }

.pack-row { gap: var(--s3); }
.check {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 2px solid var(--line); background: transparent; display: grid; place-items: center;
}
.check.on { background: var(--glacier); border-color: var(--glacier); }
.check.on::after { content: '✓'; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.pack-text { flex: 1; min-width: 0; font-size: 14.5px; }
.pack-row.is-packed .pack-text { color: var(--ink-3); text-decoration: line-through; }

.credits-toggle { font-size: var(--t-cap); color: var(--ink-3); cursor: pointer; }

/* ---------- day swapping ---------- */
.wx-row .swap-title {
  grid-column: 1 / -1; font-size: var(--t-cap); color: var(--ink-2);
  text-align: start; margin-block-start: 2px;
}
.wx-row:has(.swap-title) { grid-template-columns: 1fr auto; padding-block: var(--s3); }
.tl-day.moved .tl-date::after {
  content: '⇄'; margin-inline-start: 6px; color: var(--accent); font-weight: 800;
}

/* Sheets need an explicit way out — the grab handle alone is not an
   affordance on a device without a drag gesture wired up. */
.sheet-x {
  position: absolute; inset-block-start: var(--s3); inset-inline-end: var(--s4);
  width: 34px; height: 34px; border-radius: 50%; z-index: 2;
  background: var(--sunk); color: var(--ink-2);
  font-size: 21px; line-height: 1; display: grid; place-items: center;
}
.sheet { position: fixed; }

/* ---------- desktop ----------
   The app is built for a phone in a pocket, but it gets opened on a laptop to
   plan. On a tall desktop window a 62vh cover plus a full-width photo card
   meant you saw roughly one and a half images and nothing else. Cap the
   photography, tighten the rhythm, and let the itinerary breathe sideways. */
@media (min-width: 900px) {
  :root { --maxw: 980px; }

  .cover { min-height: 0; height: 420px; }
  .cover-lead { font-size: 46px; }

  /* Two columns: the route reads as a list while a day stays open beside it. */
  .timeline { columns: 2; column-gap: var(--s7); }
  .timeline::before { display: none; }
  .tl-day { break-inside: avoid; padding-inline-start: 0; }
  .tl-day::before { display: none; }
  .tl-photo { aspect-ratio: 16 / 10; }

  .hero img { aspect-ratio: 21 / 9; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .filmstrip { grid-auto-columns: 42%; }

  /* A bottom tab bar on a desktop is odd; float it as a centred pill. */
  .tabbar {
    inset-block-end: var(--s5); inset-inline: 0;
    width: max-content; margin-inline: auto;
    border-radius: 999px; border: 1px solid var(--line);
    box-shadow: var(--shadow-2); padding-inline: var(--s2);
    grid-template-columns: repeat(5, 88px);
  }
  body { padding-block-end: calc(var(--nav-h) + var(--s7)); }

  .sheet { border-radius: var(--r4); inset-block-end: var(--s5); max-height: 82vh; }
}

@media (min-width: 1280px) {
  :root { --maxw: 1120px; }
  .cover { height: 460px; }
}

/* ---------- install prompt ---------- */
.install-bar {
  display: flex; align-items: center; gap: var(--s3);
  margin: var(--s4) var(--s5) 0;
  padding: var(--s3) var(--s4);
  background: var(--accent-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r3);
}
.install-bar .ib-icon { color: var(--accent); flex: none; }
.install-bar .ib-icon svg { width: 22px; height: 22px; }
.install-bar .ib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.install-bar .ib-text b { font-size: var(--t-cap); color: var(--ink); }
.install-bar .ib-text span { font-size: var(--t-micro); color: var(--ink-2); }
.install-bar .btn.quiet { min-height: 32px; padding-inline: var(--s2); font-size: 18px; }
@media (min-width: 900px) { .install-bar { margin-inline: auto; max-width: var(--maxw); } }

/* ---------- daily schedule ---------- */
.sched { list-style: none; margin: 0; padding: 0; }
.sched-row {
  display: grid; grid-template-columns: 3.4rem 1.6rem 1fr;
  gap: var(--s3); align-items: start;
  padding-block: var(--s3);
  position: relative;
}
.sched-row + .sched-row { border-block-start: 1px solid var(--line-soft); }
.sched-time {
  font-family: var(--font-display); font-size: var(--t-body); font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums; padding-block-start: 1px;
}
.sched-dot { font-size: 15px; line-height: 1.4; text-align: center; }
.sched-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sched-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.sched-note { font-size: var(--t-cap); color: var(--ink-2); }
.sched-note .verify {
  color: var(--accent-ink); font-weight: 800; font-size: var(--t-micro);
  white-space: nowrap;
}
.sched-foot { font-size: var(--t-micro); color: var(--ink-3); margin-block-start: var(--s3); }

/* ---------- background reading ---------- */
.learn {
  border: 1px solid var(--line-soft); border-radius: var(--r2);
  background: var(--surface); margin-block-end: var(--s2); overflow: hidden;
}
.learn summary {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); cursor: pointer;
  font-weight: 700; font-size: 14.5px; list-style: none;
}
.learn summary::-webkit-details-marker { display: none; }
.learn summary::after {
  content: '+'; margin-inline-start: auto; color: var(--ink-3);
  font-size: 19px; font-weight: 400; line-height: 1;
}
.learn[open] summary::after { content: '−'; }
.learn[open] summary { border-block-end: 1px solid var(--line-soft); }
.learn-ico { font-size: 17px; }
.learn-body { padding: var(--s4); }
.learn-body p { color: var(--ink-2); font-size: 14.5px; max-width: 68ch; }
.learn-body p + p { margin-block-start: var(--s3); }
.learn-body b { color: var(--ink); font-weight: 700; }

/* ---------- shared album link + tasks ---------- */
.album-link { margin-block-end: var(--s4); }
.task-meta {
  display: block; font-size: var(--t-micro); color: var(--ink-3);
  font-weight: 600; margin-block-start: 2px;
}
#task-form .seg button { font-size: var(--t-micro); }

/* ---------- desktop gallery ----------
   A horizontal snap-scroller is right on a phone and wrong with a mouse:
   there is no thumb to flick with, so photos end up half-visible and the
   only way across is a shift-scroll nobody thinks to try. On a wide screen
   show them all at once instead. */
@media (min-width: 720px) {
  .filmstrip {
    display: grid; grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    overflow: visible; scroll-snap-type: none;
    margin-inline: 0; padding-inline: 0; gap: var(--s4);
  }
  .filmstrip img { aspect-ratio: 4 / 3; }

}

@media (min-width: 900px) {
  .daystrip { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .wx-hours { grid-auto-columns: 54px; }
}

/* ---------- difficulty & gear ---------- */
.diff { display: flex; align-items: center; gap: var(--s3); margin-block-start: var(--s4); }
.diff-dots { display: flex; gap: 3px; flex: none; }
.diff-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line); display: block;
}
.diff-dots i.on { background: var(--accent); }
.diff-text { min-width: 0; }
.diff-label { font-size: var(--t-cap); font-weight: 800; color: var(--ink); }
.diff-why { font-size: var(--t-micro); color: var(--ink-3); }

.gear { display: grid; gap: var(--s2); margin-block-start: var(--s3); }
.gear li {
  display: flex; gap: var(--s3); align-items: baseline;
  font-size: 14px; color: var(--ink-2); list-style: none;
}
.gear li span.g-ico { font-size: 15px; flex: none; }

/* ---------- notes & custom places ---------- */
.note-box {
  width: 100%; min-height: 90px; padding: var(--s3) var(--s4);
  border: 1px solid var(--line); border-radius: var(--r2);
  background: var(--sunk); color: var(--ink); resize: vertical;
  font-size: 14.5px; line-height: 1.6;
}
.note-saved { font-size: var(--t-micro); color: var(--glacier); font-weight: 700; }

.place {
  display: flex; gap: var(--s3); padding: var(--s3);
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r2); margin-block-end: var(--s2);
}
.place img.thumb {
  width: 64px; height: 64px; flex: none; border-radius: var(--r1); object-fit: cover;
}
.place .p-body { flex: 1; min-width: 0; }
.place .p-title { font-weight: 700; font-size: 14.5px; }
.place .p-desc { font-size: var(--t-cap); color: var(--ink-2); margin-block-start: 2px; }
.place .p-acts { display: flex; gap: var(--s2); margin-block-start: var(--s2); flex-wrap: wrap; }

/* ---------- task detail ---------- */
.task-open { text-align: start; flex: 1; min-width: 0; display: block; }
.task-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.task-desc {
  display: block; font-size: var(--t-cap); color: var(--ink-2);
  margin-block-start: 2px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pack-row.is-packed .task-title { color: var(--ink-3); text-decoration: line-through; }
.due { font-weight: 700; }
.due.now { color: var(--accent); }
.due.late { color: var(--accent-ink); }

/* ---------- waypoints ---------- */
.wps { list-style: none; margin: 0; padding: 0; counter-reset: wp; }
.wp {
  display: grid; grid-template-columns: 1.9rem 1fr auto;
  gap: var(--s3); align-items: start;
  padding-block: var(--s4);
  border-block-start: 1px solid var(--line-soft);
}
.wp:first-child { border-block-start: 0; }
.wp-n {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: var(--t-cap); font-weight: 800; font-variant-numeric: tabular-nums;
}
.wp-main { min-width: 0; }
.wp-head { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.wp-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.wp-at {
  font-size: var(--t-micro); font-weight: 700; color: var(--ink-3);
  background: var(--sunk); padding: 1px 6px; border-radius: var(--r1);
}
.wp-what {
  display: block; font-size: 14px; color: var(--ink-2);
  margin-block-start: var(--s1); max-width: 62ch;
}
.wp-acts { display: flex; gap: var(--s2); margin-block-start: var(--s2); flex-wrap: wrap; }
.wp-photo {
  width: 78px; height: 78px; flex: none; border-radius: var(--r2);
  overflow: hidden; border: 1px solid var(--line-soft); background: var(--sunk);
}
.wp-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) { .wp-photo { width: 110px; height: 92px; } }

/* ---------- waypoints inside the timeline ---------- */
/* On a phone the text keeps the whole width and the photographs go under
   it, full width, where a sign or a junction can actually be recognised.
   On a wide screen the photographs sit in a column beside the text. */
.sched-row.is-wp { grid-template-columns: 3.4rem 1.6rem 1fr; }
/* A stop's photos: one swipe strip, the first (the sign to look for) wide
   and the next one peeking in, instead of a stack of full-width pictures. */
.sched-row.is-wp .wp-photos {
  grid-column: 2 / -1; display: flex; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-block-end: 2px; margin-block-start: var(--s1);
}
.sched-row.is-wp .wp-photos::-webkit-scrollbar { display: none; }
.sched-row.is-wp .wp-photo { flex: 0 0 78%; width: auto; height: auto; aspect-ratio: 4 / 3; max-height: 220px; scroll-snap-align: start; }
.sched-row.is-wp .wp-photo:only-child { flex-basis: 100%; aspect-ratio: 16 / 10; }
.sched-row.is-wp .wp-photo + .wp-photo { margin-block-start: 0; }
/* The sign, the wrong turn and the next target reach under the dot column. */
.sched-row.is-wp .wp-sign, .sched-row.is-wp .wp-wrong, .sched-row.is-wp .next-target, .sched-row.is-wp .wp-via {
  margin-inline-start: calc(-1 * (1.6rem + var(--s3)));
}
@media (min-width: 720px) {
  .sched-row.is-wp .wp-photo { flex-basis: 260px; }
  .sched-row.is-wp .wp-photo + .wp-photo { margin-block-start: 0; }
  .sched-row.is-wp .wp-sign, .sched-row.is-wp .wp-wrong, .sched-row.is-wp .next-target, .sched-row.is-wp .wp-via { margin-inline-start: 0; }
}
.sched-row.is-wp .sched-title { font-size: 15px; font-weight: 700; }
.wp-dot { font-size: 14px; }
.sched-row.is-wp .wp-acts { display: flex; gap: var(--s2); margin-block-start: var(--s2); flex-wrap: wrap; }
.sched-row.is-wp .wp-head { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }

/* ---------- eat & do ---------- */
.spot {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r3); padding: var(--s4); margin-block-end: var(--s3);
  box-shadow: var(--shadow-1);
}
.spot-head { display: flex; align-items: flex-start; gap: var(--s3); }
.spot-kind { font-size: 19px; flex: none; }
.spot-title { flex: 1; min-width: 0; }
.spot-name { display: block; font-family: var(--font-display); font-size: var(--t-head); font-weight: 700; }
.spot-town { display: block; font-size: var(--t-micro); color: var(--ink-3); font-weight: 700; }
.conf {
  flex: none; font-size: 10px; font-weight: 800; padding: 2px 7px;
  border-radius: var(--r1); white-space: nowrap;
}
.conf-high { background: var(--glacier-soft); color: var(--glacier); }
.conf-medium { background: var(--sunk); color: var(--ink-3); }
.conf-own { background: var(--glacier-soft); color: var(--glacier); }
.spot-what { margin-block-start: var(--s3); }
.spot-what p { font-size: 14px; color: var(--ink-2); }
.spot-what p + p { margin-block-start: var(--s2); }
.spot-tags { display: flex; gap: var(--s1); flex-wrap: wrap; margin-block: var(--s3); }

/* ---------- booked lodging ---------- */
.stay-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.stay-photo { aspect-ratio: 1; overflow: hidden; background: var(--sunk); }
.stay-photo.lead { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.stay-photo img { width: 100%; height: 100%; object-fit: cover; }
.stay-host { padding: 0 var(--s4) var(--s4); font-size: var(--t-cap); color: var(--ink-3); }
.stay-detail { margin-block-start: var(--s4); }
.stay-detail .beds { font-size: 14.5px; color: var(--ink-2); }
@media (min-width: 720px) {
  .stay-photos { grid-template-columns: repeat(4, 1fr); }
  .stay-photo.lead { grid-column: span 4; aspect-ratio: 21 / 9; }
}

/* ---------- booking alerts ---------- */
.alert {
  display: flex; gap: var(--s2); align-items: baseline;
  margin: 0 var(--s4) var(--s2);
  padding: var(--s2) var(--s3); border-radius: var(--r2);
  background: var(--sunk); color: var(--ink-2);
  font-size: var(--t-cap); font-weight: 600;
}
.alert.soon { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.alert.quiet { color: var(--ink-3); }

/* ---------- drive summary ---------- */
.drive-line {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3); margin-block-end: var(--s3);
  background: var(--sunk); border-radius: var(--r2);
  font-size: var(--t-cap); color: var(--ink-2);
}
.drive-line svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.drive-line b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- plan sub-navigation ---------- */
/* Sticks under the header so switching from tasks to the packing list never
   means scrolling back up. Blurred like the tabbar so it reads as chrome. */
.subnav {
  /* Sticks BELOW the status bar, not under it. The page runs edge to edge on
     iPhone (viewport-fit=cover, translucent status bar), and a bar stuck at 0
     would sit inside the notch strip where taps never reach the page — five
     perfectly rendered, perfectly dead buttons. */
  position: sticky; inset-block-start: env(safe-area-inset-top, 0px); z-index: 40;
  padding-block: var(--s2) var(--s3);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-block-end: 1px solid var(--line-soft);
}
/* Cover the strip above it while stuck, so content does not scroll through the notch area. */
.subnav::before {
  content: ''; position: absolute; inset-inline: 0; inset-block-end: 100%;
  height: env(safe-area-inset-top, 0px); background: var(--bg); pointer-events: none;
}
.subnav .seg button { min-height: 38px; padding-inline: var(--s1); white-space: nowrap; }

/* ---------- tasks: the completed group ---------- */
.done-tasks .done-rows { border: 0; border-radius: 0; box-shadow: none; }
.done-tasks .pack-row .check.on { background: var(--ink-3); border-color: var(--ink-3); }
.done-tasks summary { color: var(--ink-3); }
.pack-row .check { transition: background .18s ease, border-color .18s ease; }

/* ---------- where a place is, and tonight's options ---------- */
.spot-dist {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3);
  margin-block-start: var(--s3); font-size: var(--t-cap); color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.spot-where { margin-block-start: var(--s2); font-size: var(--t-cap); color: var(--ink-3); }
.fit {
  display: inline-block; font-size: 10.5px; font-weight: 800; padding: 2px 7px;
  border-radius: var(--r1); white-space: nowrap; vertical-align: middle;
  background: var(--sunk); color: var(--ink-3);
}
.fit-onway { background: var(--glacier-soft); color: var(--glacier); }
.fit-detour { background: var(--accent-soft); color: var(--accent-ink); }
.spot-warn { margin: var(--s3) 0 0; }
.spot-fits { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); font-size: var(--t-cap); color: var(--ink-3); margin-block: var(--s3); }
.spot-fits.chosen { color: var(--ink); font-weight: 700; }
.spot.is-chosen { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.spot-base { margin-block: var(--s5) var(--s3); }
.spot-base .eyebrow { display: block; }

.spot-rows .spot-row { text-align: start; padding-inline-end: var(--s2); }
.spot-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s3); text-align: start; min-height: 44px; }
.spot-row-nav { flex: none; min-width: 44px; justify-content: center; }
.spot-row-nav svg { width: 18px; height: 18px; }
.spot-row .spot-kind { font-size: 17px; }
.spot-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.spot-row-name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.spot-row-meta { font-size: var(--t-micro); color: var(--ink-3); font-weight: 600; }
.spot-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.spot-row-end .val { margin-inline-start: 0; }

/* ---------- the rental, as booked ---------- */
.car-model { margin-block-start: var(--s3); font-family: var(--font-display); font-size: var(--t-head); font-weight: 700; }
.car-model-note { display: block; font-family: var(--font-ui); font-size: var(--t-cap); font-weight: 600; color: var(--ink-3); }

/* ---------- notes, one per author ---------- */
.note-row { align-items: flex-start; }
.note-row .avatar.sm { width: 28px; height: 28px; font-size: 12px; flex: none; margin-block-start: 2px; }
.note-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.note-text { font-size: 14.5px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- moved times ---------- */
.sched-time.is-moved { color: var(--accent-ink); }
.sched-time .was { display: block; font-size: 10px; color: var(--ink-3); font-weight: 600; text-decoration: line-through; }
.tm-field { min-height: 40px; border: 1px solid var(--line); border-radius: var(--r1); padding-inline: var(--s2); background: var(--surface); color: var(--ink); font: inherit; }

/* ---------- access rules: the barrier before the walk ---------- */
.access {
  margin-block-start: var(--s4); padding: var(--s4);
  border: 1px solid var(--line-soft); border-radius: var(--r3); background: var(--surface);
}
.access.is-must { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.access h4 { margin-block-start: var(--s2); font-size: var(--t-head); }
.access-body { margin-block-start: var(--s2); }
.access-body p { font-size: 14px; color: var(--ink-2); }
.access-body p + p { margin-block-start: var(--s2); }
.access-body b { color: var(--ink); }

/* ---------- stage by stage ---------- */
.stages { margin-block-start: var(--s4); }
.stages > .eyebrow { display: block; margin-block-end: var(--s2); }
.stage { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: var(--s2); align-items: start; padding-block: var(--s2); border-block-start: 1px solid var(--line-soft); }
.stage-ico { font-size: 15px; }
.stage-text { font-size: 13.5px; color: var(--ink-2); }
.stage-st { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: var(--r1); white-space: nowrap; background: var(--sunk); color: var(--ink-3); }
.st-book { background: var(--accent); color: #fff; }
.st-call, .st-verify { background: var(--accent-soft); color: var(--accent-ink); }
.st-pay { background: var(--glacier-soft); color: var(--glacier); }

/* ---------- preparation ---------- */
.prep .rows { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.prep.is-done .rows { border-color: var(--line-soft); box-shadow: none; }
.prep-row { gap: var(--s2); }
.prep-quick { display: flex; gap: 4px; flex: none; }
.prep-quick .btn { min-width: 40px; padding-inline: var(--s2); }
.prep-quick svg { width: 16px; height: 16px; }
.prep-row.is-packed .task-title { color: var(--ink-3); text-decoration: line-through; }

/* ---------- not to miss ---------- */
.gear.miss li span:last-child p { display: inline; font-size: 14px; color: var(--ink-2); }
.gear.miss b { color: var(--ink); }

/* ---------- parking and trailhead ---------- */
.start { display: grid; gap: var(--s4); }
.start-row { padding: var(--s4); border: 1px solid var(--line-soft); border-radius: var(--r3); background: var(--surface); }
.start-row .eyebrow { display: block; margin-block-end: var(--s2); }
.start-name { font-weight: 700; font-size: 15px; }
.start-how { margin-block-start: var(--s2); font-size: 14px; color: var(--ink-2); }
.start-how b { color: var(--ink); }

/* ---------- accounts (owner panel) ---------- */
.user-row { align-items: flex-start; gap: var(--s3); }
.user-row.is-off { opacity: .55; }
.user-row .btn-row { flex-wrap: nowrap; }

/* ---------- price band and hours on a place card ---------- */
.spot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-block: var(--s2); font-size: var(--t-cap); color: var(--ink-2); }
.spot-hours { direction: ltr; unicode-bidi: isolate; }

/* ---------- difficulty ladder ---------- */
.diff-rank { display: block; font-size: var(--t-micro); color: var(--ink-3); margin-block-start: 2px; }
.rank { display: flex; flex-direction: column; gap: var(--s2); }
.rank-row { display: flex; gap: var(--s3); align-items: center; width: 100%; text-align: start; background: var(--surface); border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 12px; padding: var(--s2) var(--s3); font: inherit; color: inherit; cursor: pointer; }
.rank-k { flex: 0 0 1.8em; font-weight: 800; font-size: var(--t-head); color: var(--accent-ink); text-align: center; }
.rank-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank-title { font-weight: 700; }
.rank-bar { display: block; height: 6px; border-radius: 3px; background: var(--line, rgba(0,0,0,.1)); overflow: hidden; }
.rank-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #6fbf73, #f0b429 60%, #d64545); }
.rank-meta { font-size: var(--t-cap); color: var(--ink-3); }

/* the sign glossary: a group heading, then one line per word */
.signs .signs-group { margin-block-start: var(--s4); color: var(--accent-ink); }
.signs .sign { margin-block-start: var(--s1); }

/* Strava's embed arrives as an iframe inside the placeholder */
.strava-embed-placeholder { margin-block-end: var(--s2); }
.strava-embed-placeholder iframe { max-width: 100%; border-radius: var(--r-md, 12px); }

/* Google Photos thumbnails on the day */
.gp-grid { margin-block-start: var(--s3); }
.grid.gp .tile { aspect-ratio: 1; display: block; overflow: hidden; border-radius: var(--r-sm, 8px); background: var(--sunk); }

/* the forecast at the top of the walk, and the live links under it */
.wx-top { margin-block-start: var(--s3); padding: var(--s3); border-radius: var(--r-md, 12px); background: var(--sunk); }
.wx-top-row { display: flex; align-items: center; gap: var(--s3); margin-block-start: var(--s2); }
.wx-top-meta { font-size: var(--t-cap); color: var(--ink-2); line-height: 1.4; }
.wx-top .wx-advice { margin-block-start: var(--s2); }
.wx-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-block-start: var(--s2); }
.wx-links-label { font-size: var(--t-cap); color: var(--ink-3); flex-basis: 100%; }

/* where to next */
.next-target { display: block; margin-block-start: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r-md, 12px); background: var(--glacier-soft); }
.next-target .next-head { display: block; font-size: var(--t-cap); color: var(--glacier); margin-block-end: var(--s1); }
.next-target .arrow, .whereto-dir .arrow { font-size: 1.3em; font-weight: 700; }
.whereto { font-size: var(--t-body); padding-block: var(--s3); }
.whereto-you { margin-block-start: var(--s3); }
.whereto-line { font-size: var(--t-body); font-weight: 600; margin-block-start: var(--s1); }
.whereto-next { margin-block-start: var(--s4); padding: var(--s4); border-radius: var(--r-md, 12px); background: var(--glacier-soft); }
.whereto-big { font-size: var(--t-title, 1.5rem); font-weight: 700; color: var(--glacier); margin-block-start: var(--s1); }
.whereto-dir { font-size: var(--t-head); margin-block-start: var(--s1); }

/* what the sign says, and how you know you went wrong */
.wp-sign, .wp-wrong { display: block; margin-block-start: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r-sm, 8px); font-size: var(--t-cap); line-height: 1.45; }
.wp-sign { background: rgba(255, 200, 0, .16); }
.wp-wrong { background: rgba(220, 60, 40, .10); }

.wp-via { display: block; margin-block-start: var(--s2); }
.wp-via .btn { white-space: normal; text-align: start; }
.wp-via .hint { display: block; margin-block-start: var(--s1); }

/* Two short fields side by side in a sheet form (from/to, depart/arrive). */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.field-row .field { min-width: 0; }

/* Google Photos tiles carry where the plan had you when the shot was taken. */
.gp-tile { position: relative; }
.gp-cap { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 2px 6px; font-size: 11px; line-height: 1.25;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Album delete mode: every tile is a delete button with a cross on it. */
.tile.is-del { outline: 2px solid var(--danger, #c0392b); outline-offset: -2px; }
.tile.is-del .del-x { position: absolute; inset-inline-end: 6px; inset-block-start: 6px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--danger, #c0392b); color: #fff; font-weight: 700; display: grid; place-items: center; }
.mono { font-family: ui-monospace, monospace; font-size: 11px; }
.check-row { display: flex; align-items: center; gap: var(--s2); font-weight: 600; }
.check-row input { width: 20px; height: 20px; }
/* The sharing code, big enough to read out over the phone. */
.link-code { font-family: ui-monospace, monospace; font-size: 2rem; font-weight: 800; letter-spacing: .2em; text-align: center;
  padding: var(--s3); border: 2px dashed var(--line, #ccc); border-radius: var(--r2); margin-block: var(--s2); user-select: all; }

/* ---------- day page: jump bar ---------- */
/* Sticks under the status bar like the plan sub-navigation; scrolls sideways. */
.jumpbar {
  position: sticky; inset-block-start: env(safe-area-inset-top, 0px); z-index: 40;
  margin-inline: calc(-1 * var(--s5)); padding: var(--s2) var(--s5);
  margin-block-start: var(--s3);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-block-end: 1px solid var(--line-soft);
}
.jumpbar .chips { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-block: 2px; }
.jumpbar .chips::-webkit-scrollbar { display: none; }
.jumpbar button {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: var(--t-cap); font-weight: 600; white-space: nowrap;
}
.jumpbar button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.jumpbar .j-ico { font-size: 1em; }
[data-sec] { scroll-margin-block-start: calc(env(safe-area-inset-top, 0px) + 64px); }
.learn.about summary .hint { font-weight: 400; }

/* Trail facts and drive legs on a place card. */
.spot-facts { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-block-start: var(--s2); font-size: var(--t-cap); color: var(--ink); font-weight: 600; }
.spot-facts .spot-facts-note { flex-basis: 100%; font-weight: 400; color: var(--ink-2); }
.spot-legs { display: flex; flex-direction: column; gap: 2px; margin-block-start: var(--s2); font-size: var(--t-cap); color: var(--ink-2); }
.spot-legs b { color: var(--ink); }

/* ---------- "we are here" on the day's timeline ---------- */
.sched-row { scroll-margin-block-start: calc(env(safe-area-inset-top, 0px) + 120px); }
.here-btn {
  grid-column: 2 / -1; justify-self: start;
  font: inherit; font-size: var(--t-cap); color: var(--ink-3);
  background: none; border: 1px dashed var(--line); border-radius: 999px;
  padding: 2px 10px; cursor: pointer;
}
.sched-row.is-done > :not(.here-btn) { opacity: .5; }
.sched-row.is-done .sched-dot::after { content: ' ✓'; font-size: 11px; }
.sched-row.is-here {
  background: var(--accent-soft); border-radius: var(--r-md, 12px);
  box-shadow: inset 3px 0 0 var(--accent);
  padding-inline: var(--s2);
}
[dir="rtl"] .sched-row.is-here { box-shadow: inset -3px 0 0 var(--accent); }
.sched-row.is-here .here-btn { color: var(--accent-ink); border-style: solid; border-color: var(--accent); font-weight: 700; }
.here-bar {
  margin-block: 0 var(--s3); padding: var(--s2) var(--s3);
  background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--r-md, 12px);
  font-size: var(--t-small, 14px); display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap;
}

/* ---------- versions of one walk ---------- */
.variants { margin-block: var(--s4); }
.var-list { display: grid; gap: var(--s2); }
@media (min-width: 720px) { .var-list { grid-template-columns: repeat(2, 1fr); } }
.var-card {
  display: flex; flex-direction: column; gap: 4px; text-align: start;
  font: inherit; color: var(--ink); cursor: pointer;
  background: var(--surface, transparent); border: 1px solid var(--line); border-radius: var(--r-md, 12px);
  padding: var(--s3);
}
.var-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); background: var(--accent-soft); }
.var-card.is-day { border-style: dashed; }
.var-top { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.var-level { font-size: var(--t-cap); color: var(--ink-3); font-weight: 700; }
.var-label { font-weight: 700; font-size: 15px; }
.var-facts { font-size: var(--t-cap); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.var-note { font-size: var(--t-cap); color: var(--ink-3); }
.variants .hint { font-size: var(--t-cap); color: var(--ink-3); }

/* A place's picture on its card, one tap to the full photo. */
.spot-photo { display: block; width: 100%; height: auto; margin-block: var(--s2) var(--s3); border-radius: var(--r2); overflow: hidden; aspect-ratio: 16 / 9; }
.spot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The weather at each place of the day. */
.wx-along { margin-block-start: var(--s4); padding: var(--s4); border-radius: var(--r2); background: var(--surface); border: 1px solid var(--line); }
.wx-along-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding-block: var(--s2); border-block-start: 1px solid var(--line-soft); }
.wx-along-row:first-of-type { border-block-start: 0; }
.wx-along-place { display: grid; flex: 1 1 60%; min-width: 0; }
.wx-along-now, .wx-along-day { font-size: var(--t-cap); color: var(--ink-2); white-space: nowrap; }

/* ---------- via ferrata ---------- */
.fer-legend { font-size: var(--t-micro); color: var(--ink-3); margin-block: var(--s2) var(--s3); }
.fer-card, .fer-rent {
  border: 1px solid var(--line-soft); border-radius: var(--r2);
  padding: var(--s3) var(--s4); margin-block-end: var(--s3); background: var(--bg);
}
.fer-card p, .fer-rent p { margin-block-start: var(--s2); }
.fer-head { display: flex; gap: var(--s3); align-items: flex-start; }
.fer-grade {
  flex: none; min-width: 34px; height: 34px; padding-inline: 6px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff;
}
.fer-grade.gA { background: #2f7d4f; }
.fer-grade.gB { background: #2c6aa0; }
.fer-grade.gC { background: #95521f; }
.fer-grade.gD, .fer-grade.gE { background: #9a2f2f; }
.fer-name { font-weight: 800; font-size: 15px; }
.fer-sub { font-size: var(--t-cap); color: var(--ink-3); }
.fer-facts { font-size: var(--t-cap); color: var(--ink-2); font-weight: 700; margin-block-start: var(--s2); }
.fer-start, .fer-src, .fer-foot { font-size: var(--t-micro); color: var(--ink-3); margin-block-start: var(--s2); }
.fer-src a { color: var(--link, var(--accent-ink)); }
.fer-foot { margin-block-start: var(--s3); }


/* ============================================================
   Playful layer (2026-10) — clearer, friendlier, a little game-like.
   Sentence-case labels instead of tracked capitals; surfaces told apart
   by tone, not lines; pill buttons that answer the finger; a floating
   tab bar; the route as a board of numbered stops; and small rewards
   when a list is done. Everything here reads the tokens above.
   ============================================================ */

body { font-size: var(--t-body); line-height: 1.6; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
[lang='he'] h1, [lang='he'] h2, [lang='he'] h3, [lang='he'] h4 { letter-spacing: 0; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* labels: no tracked capitals, in either language */
.eyebrow, .tl-date, .tag, .prose h4 { letter-spacing: 0; text-transform: none; }
.eyebrow { font-size: var(--t-cap); font-weight: 700; color: var(--ink-2); }
.section > .eyebrow { font-size: 17px; font-weight: 800; color: var(--ink); }
.prose h4 { font-size: 15px; font-weight: 800; color: var(--accent-ink); }
.tl-date { font-size: var(--t-cap); font-weight: 600; }

/* headers */
.topbar { border-block-end: 0; }
.topbar h1 { font-weight: 800; }

/* cards: a step in tone, no outline, no resting shadow */
.rows, .stay, .spot, .leg, .tracker, .wx-card, .access, .start-row, .place, .learn, .fer-card, .fer-rent {
  border-color: transparent; box-shadow: none;
}
.rows, .stay, .spot, .leg, .tracker, .wx-card, .start-row, .place, .learn { background: var(--surface); border-radius: var(--r3); }
.fer-card, .fer-rent { background: var(--sunk); }
.access.is-must { box-shadow: none; background: var(--accent-soft); }
.callout {
  border-inline-start: 0; border-radius: var(--r2);
  background: var(--sun-soft); color: var(--ink);
}
[dir='rtl'] .callout { border-radius: var(--r2); }

/* tags: soft pills */
.tag { border-radius: 99px; padding: 3px 10px; font-weight: 700; font-size: var(--t-cap); }
.vid-tag { background: var(--accent-soft); color: var(--accent-ink); }

/* buttons: pills that answer the finger */
.btn {
  border-radius: 99px; border-color: transparent; background: var(--sunk);
  font-weight: 700; font-size: 15px;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-press) ease;
}
.btn.sm { min-height: 44px; padding: var(--s2) var(--s4); border-radius: 99px; font-size: var(--t-cap); }
.btn.quiet { background: transparent; }
.btn.primary { box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent); }
:root[data-theme='dark'] .btn.primary, :root[data-theme='dark'] .daypill.on, :root[data-theme='dark'] .tag.solid { color: #0E1412; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .btn.primary, :root:not([data-theme='light']) .daypill.on, :root:not([data-theme='light']) .tag.solid { color: #0E1412; }
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--line-soft); }
  .btn.primary:hover { background: var(--accent-ink); }
  .btn.quiet:hover { background: var(--sunk); }
}

/* everything pressable answers on the way down */
.tl-day, .daypill, .tabbar button, .jumpbar button, .seg button, .var-card, .rank-row, .tsw-row,
.spot-row-main, .check, a.tag, .sheet-x {
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-press) ease, color var(--t-press) ease;
}
.btn:active, .daypill:active, .tabbar button:active, .jumpbar button:active, .seg button:active,
.var-card:active, .rank-row:active, .tsw-row:active, .spot-row-main:active, a.tag:active, .sheet-x:active { transform: scale(.96); }
.tl-day:active { transform: scale(.985); }
.row:active { background: var(--sunk); }

/* the tab bar floats, and the tab you are on wears a bubble */
.tabbar {
  inset-inline: var(--s3); inset-block-end: calc(var(--s2) + env(safe-area-inset-bottom, 0px));
  border-radius: var(--r4); border: 0; padding: 6px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-3);
}
.tabbar button { border-radius: 20px; min-height: 52px; color: var(--ink-3); }
.tabbar button.on { background: var(--accent-soft); color: var(--accent-ink); }
.tabbar button.on svg { animation: tab-hop 420ms var(--ease-spring); }
@keyframes tab-hop { 0% { transform: translateY(0) scale(.92); } 60% { transform: translateY(-3px) scale(1.06); } 100% { transform: none; } }
body { padding-block-end: calc(var(--nav-h) + var(--s5) + env(safe-area-inset-bottom, 0px)); }

/* the route: a board of numbered stops along the spine */
.timeline::before { background: var(--line); width: 3px; border-radius: 3px; }
.tl-day::before { display: none; }
.tl-badge {
  position: absolute; inset-block-start: -2px; inset-inline-start: calc(var(--s7) * -1 + 1px);
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums;
  background: var(--surface); color: var(--ink-2);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-day.is-past .tl-badge { background: var(--sunk); color: var(--ink-3); }
.tl-day.is-walked .tl-badge { background: var(--glacier); color: #fff; }
.tl-day.is-now .tl-badge { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px var(--accent-soft); }
:root[data-theme='dark'] .tl-day.is-walked .tl-badge, :root[data-theme='dark'] .tl-day.is-now .tl-badge { color: #0E1412; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .tl-day.is-walked .tl-badge, :root:not([data-theme='light']) .tl-day.is-now .tl-badge { color: #0E1412; }
}
.tl-day h3 { font-size: 21px; font-weight: 800; }
.tl-photo img { border-radius: var(--r3); }

/* checks: bigger, and a pop when ticked */
.check { width: 28px; height: 28px; border-width: 2.5px; }
.check.on { background: var(--glacier); border-color: var(--glacier); }
.check.on::after { font-size: 15px; }
.check.pop { animation: check-pop 320ms var(--ease-spring); }
@keyframes check-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
:root[data-theme='dark'] .check.on::after { color: #0E1412; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .check.on::after { color: #0E1412; } }

/* progress: a fatter bar that turns sun-gold when full */
.pack-bar { height: 10px; }
.pack-bar span { transition: width var(--t-ui) var(--ease-out); }
.pack-bar span[style*='100%'] { background: var(--sun); }

/* the jump chips */
.jumpbar button { min-height: 44px; border-radius: 99px; }

/* toast: comes up and goes the same way, never `all` */
.toast { transition: opacity 400ms ease, transform 400ms var(--ease-out); border-radius: 99px; font-weight: 700; }

/* confetti for the rare moments */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti span {
  position: absolute; inset-block-start: 46%; font-size: 24px;
  animation: confetti var(--d) var(--ease-out) forwards;
}
@keyframes confetti {
  0% { transform: translate(0, 0) scale(.6) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: translate(calc(var(--x) * .6), -26vh) scale(1) rotate(calc(var(--r) * .5)); opacity: 1; }
  100% { transform: translate(var(--x), 34vh) scale(.9) rotate(var(--r)); opacity: 0; }
}

/* the cover's countdown: solid chips, no glass on a moving page */
.cd-cell { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16, 32, 26, .52); border-radius: var(--r2); }


/* header rows stay inside the screen: the trip chip gives way first */
.head-row .btn.sm { padding-inline: var(--s2); }
.head-row .hdr-acts { flex: 0 1 auto; }
.head-row .trip-chip { max-width: min(34vw, 200px); }

/* a day without a photo: the title sits on the page, in ink */
.hero.no-photo { margin-inline: 0; padding-block: var(--s4) var(--s2); }
.hero.no-photo::after { display: none; }
.hero.no-photo .hero-cap { position: static; }
.hero.no-photo .hero-cap h2 { color: var(--ink); text-shadow: none; }
.hero.no-photo .hero-cap .eyebrow { color: var(--accent-ink); text-shadow: none; }

/* ---------- the day's dishes ---------- */
.dish-list { display: grid; gap: var(--s3); }
.dish { display: flex; gap: var(--s3); background: var(--surface); border-radius: var(--r3); padding: var(--s3); }
.dish-photo { flex: none; width: 104px; height: 104px; border-radius: var(--r2); overflow: hidden; }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-body { min-width: 0; }
.dish-head { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.dish-head h3 { font-size: 18px; font-weight: 800; }
.dish-body p { margin-block-start: var(--s1); font-size: 15px; color: var(--ink-2); }
.dish-body .dish-hist { color: var(--ink-3); font-size: 14px; }
.story-ico { flex: none; width: 64px; height: 64px; border-radius: var(--r2); background: var(--sun-soft); display: grid; place-items: center; font-size: 30px; }

/* Day options: the facts that decide a choice, one per line. */
.opt-facts { list-style: none; margin: var(--s1) 0 var(--s2); padding: 0; display: grid; gap: 2px; font-size: var(--t-cap); color: var(--ink-2); }
.opt-facts li { display: flex; gap: var(--s2); align-items: baseline; }

/* ---------- day page as tabs ---------- */
[data-panel] { padding-block-start: var(--s2); animation: panel-in var(--dur-2, .22s) var(--ease-out, ease-out); }
[data-panel][hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-panel] { animation: none; } }
/* The tabs scroll sideways; a soft fade at the far edge says there is more. */
.jumpbar .chips { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 28px); mask-image: linear-gradient(to left, transparent 0, #000 28px); padding-inline-end: 28px; }
[dir="rtl"] .jumpbar .chips { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px); mask-image: linear-gradient(to right, transparent 0, #000 28px); }
.jumpbar button { min-height: 40px; padding: 0 14px; font-size: 14px; }
.jumpbar button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- "now → next" card ---------- */
.now-card {
  margin-block: var(--s3) var(--s5); padding: var(--s4); border-radius: 20px;
  background: var(--surface); box-shadow: 0 0 0 2px var(--accent), 0 10px 30px -12px color-mix(in srgb, var(--accent) 45%, transparent);
}
.now-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.now-pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
.now-pill::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-inline-end: 6px; animation: now-pulse 1.6s ease-in-out infinite; vertical-align: 1px; }
@keyframes now-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .now-pill::before { animation: none; } }
.now-time { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.now-title { margin: var(--s2) 0 var(--s3); font-size: 22px; line-height: 1.25; }
.now-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--sunk, #eee); cursor: zoom-in; }
.now-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.now-cap { position: absolute; inset-inline-start: 8px; inset-block-end: 8px; background: rgb(0 0 0 / .62); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.now-cue { margin: var(--s3) 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.now-acts { display: flex; gap: var(--s2); margin-block-start: var(--s3); }
.now-acts .btn.primary { flex: 1; justify-content: center; min-height: 48px; font-size: 16px; }
.now-next { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-block-start: var(--s4); padding-block-start: var(--s3); border-block-start: 1px dashed var(--line); }
.now-next-txt { font-size: 15px; color: var(--ink-2); }
.now-next-txt b { color: var(--ink); font-variant-numeric: tabular-nums; }
:root[data-theme='dark'] .now-pill, :root[data-theme='dark'] .jumpbar button.on { color: #0E1412; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .now-pill, :root:not([data-theme='light']) .jumpbar button.on { color: #0E1412; }
}

/* A short list inside a card's prose (mdLite). */
.md-list { margin: var(--s1, 4px) 0 var(--s2, 8px); padding-inline-start: 1.2em; }
.md-list li { margin-block: 2px; }

/* Leaving a hotel: the last look round the room. */
.checkout-card details > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); font-weight: 700; }
.checkout-card details > summary::-webkit-details-marker { display: none; }
.checkout-card .hint { margin-block: var(--s1) var(--s2); }

/* A booked stay's alternative for the same night: the decision first, the card folded. */
.stay-decide { font-size: var(--t-cap); color: var(--ink-2); margin-block: var(--s1) var(--s3); }
.stay-alt { background: var(--sunk); border-radius: var(--r3, 16px); padding: var(--s4); margin-block-end: var(--s3); }
.stay-alt-name { font-weight: 700; }
.stay-alt .btn { margin-block: var(--s2); min-height: 44px; }
.stay-alt-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ink-2); }

/* A new version is ready: a card above the tab bar, one primary button. */
.update-pop { position: fixed; inset-inline: 12px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  background: var(--surface); color: var(--ink); border-radius: var(--r3); padding: var(--s4);
  box-shadow: 0 12px 32px rgba(0,0,0,.22); display: flex; flex-direction: column; gap: var(--s3);
  animation: update-in .25s ease-out; }
.update-pop-text { display: flex; flex-direction: column; gap: 2px; }
.update-pop-text span { font-size: var(--t-cap); color: var(--ink-2); }
.update-pop-btns { display: flex; gap: var(--s2); }
.update-pop-btns .btn { min-height: 44px; flex: 1; }
@keyframes update-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .update-pop { animation: none; } }

/* Trips, people and access. */
.trip-card { background: var(--surface); border-radius: var(--r3); padding: var(--s4); margin-block-end: var(--s3); }
.trip-card.is-now { box-shadow: inset 0 0 0 2px var(--accent); }
.trip-card h3 { margin-block: var(--s1) var(--s2); }
.trip-people { display: flex; flex-wrap: wrap; gap: var(--s1); margin-block-end: var(--s2); }
.person-chip { font-size: var(--t-cap); background: var(--sunk); color: var(--ink-2); border-radius: 999px; padding: 2px 10px; }
.trip-actions .btn { min-height: 44px; }
.person-card { background: var(--surface); border-radius: var(--r3); padding: var(--s4); margin-block-end: var(--s3); }
.person-card .rows { margin-block-start: var(--s2); }
.person-trip { gap: var(--s2); align-items: center; }
.seg.seg-sm { flex: 0 0 auto; margin: 0; }
.seg.seg-sm button { min-width: 44px; min-height: 44px; }
