/* Zoe's travel English site. Paper, ink stamps, postcards. Laid out for an iPad held sideways (about 1180 x 820)
   first; narrower screens stack. Touch targets are 44px or more. */
:root {
  --paper: #F5F0E4; --paper-2: #ECE5D3; --card: #FBF8F0; --land: #DFD5BD; --line: #CBC1A9;
  --ink: #1E2733; --ink-soft: #6F6857; --ink-faint: #A69E8A;
  --navy: #1F3A5F; --brick: #B4462F; --green: #2F5D50;
  --serif: "Noto Serif TC", "Songti TC", serif; --sans: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 2.7vw, 32px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); min-height: 100dvh; }
body.has-dev { padding-bottom: 64px; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--mono); letter-spacing: .12em; font-size: 12px; color: var(--ink-faint); }
.mono.ink { color: var(--brick); }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--ink-faint); }
.eyebrow a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 6px;
  background: var(--brick); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.again { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.lock { background: var(--paper-2); color: var(--ink-faint); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.btn.stop { background: var(--ink); }
.wait { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-faint); font-size: 14.5px; }
.note { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.bad { color: var(--brick); }

/* the bar on top */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 var(--pad); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; }
.brand b { font: 700 20px var(--serif); }
.brand span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-faint); }
.bar nav { display: flex; align-items: center; gap: 4px; }
.bar nav a, .bar nav button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; background: none; border-radius: 6px;
  font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; cursor: pointer; }
.bar nav a[aria-current] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brick); border-radius: 0; }
.bar nav button { color: var(--ink-faint); font-size: 14px; }
.previewbar { padding: 8px var(--pad); background: var(--paper-2); font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.previewbar a { margin-left: 10px; color: var(--navy); }
.main { padding: 20px var(--pad) 28px; max-width: 1240px; margin: 0 auto; }

/* login */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; }
.gate h1 { font: 700 34px var(--serif); margin: 6px 0 10px; }
.gmono { font-family: var(--mono); letter-spacing: .2em; font-size: 12px; color: var(--brick); }
.gbtn { display: flex; justify-content: center; margin: 18px 0; min-height: 44px; }
.fake { display: grid; gap: 10px; margin-top: 12px; }
.fake button { min-height: 48px; padding: 0 20px; border: 1.5px dashed var(--line); background: var(--card); border-radius: 6px; cursor: pointer; }

/* map */
.mappage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.mapbox { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-height: 520px; height: calc(100dvh - 64px - 48px - var(--devh, 0px)); max-height: 760px; }
.has-dev .mapbox { --devh: 64px; }
.mapbox svg { display: block; width: 100%; height: 100%; }
.land { fill: var(--land); stroke: var(--line); stroke-width: 1.5; stroke-linejoin: round; }
.rt { fill: none; stroke: var(--ink-faint); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; }
.rt.on { stroke: var(--brick); stroke-width: 4; stroke-dasharray: 12 9; }
.rt.done { stroke: var(--navy); stroke-width: 4; stroke-dasharray: none; }
.home { fill: var(--ink); }
.dot { fill: var(--card); stroke: var(--ink-faint); stroke-width: 3; }
.dot.on { fill: var(--brick); stroke: var(--card); stroke-width: 4; }
.halo { fill: rgba(180, 70, 47, .18); }
.city, .citysub { font-family: var(--mono); fill: var(--ink-soft); paint-order: stroke; stroke: var(--paper-2); stroke-width: 6px; stroke-linejoin: round; }
.city { font-size: 21px; letter-spacing: 1.5px; }
.city.on { fill: var(--ink); font-weight: 700; }
.citysub { font-family: var(--sans); font-size: 18px; fill: var(--ink-faint); }
.citysub.on { fill: var(--brick); font-weight: 500; }
.mapside { display: grid; grid-template-rows: auto 1fr; gap: 20px; min-width: 0; }
.tripcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.tc-main { padding: 24px 26px; display: grid; gap: 8px; align-content: center; min-width: 0; }
.tc-main h1 { font: 700 36px/1.2 var(--serif); }
.theme { color: var(--ink-soft); font-size: 15px; }
.stopline { font-size: 18px; font-weight: 500; margin-top: 6px; }
.goal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.goal span { font-size: 13.5px; color: var(--ink-soft); }
.goal b { font: italic 600 21px/1.35 var(--serif); color: var(--navy); }
.goal i { font-style: normal; font-size: 14px; color: var(--ink-soft); flex-basis: 100%; }
.pips { display: flex; gap: 6px; margin-top: 8px; }
.pips li { flex: 1; max-width: 44px; height: 8px; border-radius: 2px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.pips li.done { background: var(--navy); box-shadow: none; }
.pips li.now { background: var(--brick); box-shadow: none; }
.tc-stub { display: grid; gap: 12px; align-content: center; justify-items: center; padding: 24px; border-left: 1.5px dashed var(--line); }
.later { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; }
.later ul { margin-top: 6px; }
.later li { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
.later li:last-child { border-bottom: 0; }
.later b { font: 600 18px var(--serif); color: var(--ink-soft); }
.later span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--ink-faint); }

/* a trip: route strip, today card, postcard */
.thead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.thead h1 { font: 700 28px/1.3 var(--serif); }
.thead h1 span { font: 400 14px var(--sans); color: var(--ink-soft); margin-left: 14px; }
.tcount { font-size: 14px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
ol.route { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px 8px 12px; margin-bottom: 16px; overflow-x: auto; }
ol.route li { flex: 1 0 96px; }
.rb { display: grid; justify-items: center; gap: 4px; text-decoration: none; padding-bottom: 4px; border-radius: 6px; }
.rrow { display: flex; align-items: center; width: 100%; height: 56px; }
.rl { flex: 1; height: 2px; background: var(--line); }
.rl.on { background: var(--navy); }
.rl.none { background: none; }
.rc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2); color: var(--ink-faint); box-shadow: inset 0 0 0 1.5px var(--line); }
.rc .i { width: 21px; height: 21px; stroke-width: 1.8; }
.done .rc { background: var(--card); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.now .rc { width: 56px; height: 56px; background: var(--brick); color: #fff; box-shadow: none; }
.now .rc .i { width: 27px; height: 27px; }
.rn { font-size: 14px; color: var(--ink-soft); }
.done .rn { color: var(--navy); font-weight: 500; }
.now .rn { color: var(--brick); font-weight: 700; font-size: 15px; }
.rs { font-size: 11.5px; min-height: 18px; color: var(--ink-faint); font-family: var(--mono); }
.now .rs { color: var(--brick); font-family: var(--sans); font-weight: 500; }
ol.route li.sel .rb { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.tmain { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.today, .keep { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.thd { padding: 22px 28px 18px; display: grid; gap: 6px; border-bottom: 1.5px solid var(--line); }
.thd h2 { font: 700 32px/1.25 var(--serif); }
.thd .goal b { font-size: 23px; }
.banner { margin: 16px 28px 0; padding: 12px 16px; background: var(--paper-2); border-left: 3px solid var(--ink-faint); font-size: 15px; }
.banner.ok { border-color: var(--green); }
.steps { padding: 4px 28px 8px; }
.steps li { display: flex; align-items: center; gap: 18px; min-height: 96px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.sn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; font: 700 18px var(--mono);
  background: var(--paper-2); color: var(--ink-faint); box-shadow: inset 0 0 0 1.5px var(--line); }
.steps .now .sn { background: var(--brick); color: #fff; box-shadow: none; }
.steps .got .sn { background: var(--navy); color: #fff; box-shadow: none; }
.st { flex: 1; min-width: 0; }
.st h3 { font-size: 19px; font-weight: 700; }
.st p { font-size: 14.5px; color: var(--ink-soft); }
.sa { display: grid; justify-items: end; gap: 6px; flex: none; }
.gotnote { font-size: 13px; font-weight: 500; color: var(--navy); }
.keep { background: var(--paper-2); padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.legend { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.legend li.got { color: var(--ink); }
.legend li .i { color: var(--navy); }
.legend li i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-faint); flex: none; }
.legend span { font-size: 13px; color: var(--ink-faint); margin-left: auto; }

/* postcard with its stamp */
.pc { position: relative; aspect-ratio: 3 / 2; background: var(--card); border: 6px solid #fff; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(30, 39, 51, .12); }
.pc img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(.85) brightness(1.08); opacity: .55; transition: filter .6s, opacity .6s; }
.pc.full img { filter: none; opacity: 1; }
.pc { margin-bottom: 15%; }
.pc .stamp { position: absolute; right: -5%; bottom: -27%; width: 45%; height: auto; }
.pc.nocard { display: grid; place-items: center; border-color: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pc.nocard { margin-bottom: 0; }
.pc.nocard .stamp { position: static; width: 62%; }
.stamp { overflow: visible; }
.stamp text { text-anchor: middle; font-family: var(--mono); }
.stamp .st-b { font-weight: 700; }
.stamp .st-m { font-weight: 600; }
.stamp .st-s { font-family: var(--serif); font-style: italic; font-weight: 600; }
.won { width: min(260px, 60vw); margin: 0 auto 8px; }
.won .stamp { width: 100%; height: auto; }

/* the stamp dialog */
.party { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(30, 39, 51, .55); }
.party-in { width: min(560px, 100%); background: var(--paper); border-radius: 8px; padding: 28px 28px 24px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.party-in .pc { width: 100%; }
.party-in h2 { font: 700 26px var(--serif); }
.party-in .goal { justify-content: center; }
.party-in .next { color: var(--ink-soft); font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .party-in .stamp { animation: press .5s cubic-bezier(.2, 1.4, .4, 1) .25s both; }
  @keyframes press { from { transform: scale(1.7) rotate(8deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* pages inside a stop */
.vtop { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-right: 10px; color: var(--navy); font-weight: 500; text-decoration: none; }
.vtop h1 { font: 700 24px var(--serif); }
.vgoal { margin-top: 18px; color: var(--ink-soft); font-size: 15px; }
.vgoal b { font: italic 600 18px var(--serif); color: var(--navy); }

/* video */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.watch.solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.vbox { aspect-ratio: 16 / 9; background: #14181d; border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.vbox iframe { width: 100%; height: 100%; border: 0; }
.vmsg { color: #e9e4d6; text-align: center; padding: 20px; display: grid; gap: 12px; justify-items: center; }
.vnote { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }
.said { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 16px 18px; background: var(--card); border: 1.5px solid var(--brick); border-radius: 6px; }
.said[hidden] { display: none; }
.said-q { flex: 1; }
.pn { font-size: 13px; color: var(--ink-faint); }
.pq { font-size: 19px; font-weight: 700; }
.ph { font-size: 14px; color: var(--ink-soft); }
.tagred { display: inline-block; padding: 2px 8px; background: var(--brick); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 3px; margin-right: 8px; }
.read { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.read h2 { font-size: 15px; margin-bottom: 8px; }
.tbox { max-height: 56vh; overflow-y: auto; display: grid; gap: 2px; }
.ln { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 4px; cursor: pointer; color: var(--ink-soft); }
.ln.is-now { background: var(--paper-2); color: var(--ink); }
.ln .who { display: block; font-size: 12px; color: var(--ink-faint); }
.ln .zh { display: block; font-size: 13px; color: var(--ink-faint); }
.rnote { font-size: 13px; color: var(--ink-faint); margin-top: 8px; }
.after { margin-top: 20px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.after[hidden] { display: none; }
.after p { font-size: 18px; font-weight: 700; }

/* practice */
.ppage, .cpage { max-width: 860px; margin: 0 auto; }
.dots { display: flex; gap: 8px; margin-bottom: 18px; }
.dots li { flex: 1; height: 6px; border-radius: 3px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.dots li.done { background: var(--navy); box-shadow: none; }
.dots li.now { background: var(--brick); box-shadow: none; }
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: grid; gap: 14px; }
.qn { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--ink-faint); }
.qq { font-size: 24px; font-weight: 700; line-height: 1.45; }
.qq[lang="en"] { font-family: var(--serif); }
.qq:focus { outline: none; }
.blank { color: var(--brick); }
.hear { justify-self: start; }
.hearnote { font-size: 14px; color: var(--ink-soft); }
.heard { font: italic 600 20px var(--serif); color: var(--navy); padding: 10px 14px; background: var(--paper-2); border-left: 3px solid var(--navy); }
.heard[hidden], .hearnote[hidden] { display: none; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.opts.long { grid-template-columns: 1fr; }
.opt { min-height: 64px; padding: 12px 16px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 6px; font: 600 19px var(--serif); cursor: pointer; text-align: center; }
.opts.long .opt { text-align: left; }
.opt.right { border-color: var(--green); background: #E3ECE4; color: var(--green); }
.opt.wrong { border-color: var(--brick); color: var(--brick); opacity: .55; text-decoration: line-through; }
.opt:disabled:not(.wrong) { opacity: .5; }
.why { min-height: 26px; font-size: 16px; color: var(--ink-soft); }
.done-q { justify-items: center; text-align: center; }

/* the sentences card (a stop without a video yet) */
.readlist { display: grid; }
.readlist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.readlist .sayit { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); font-size: 22px; }
.readlist p { font-size: 14.5px; color: var(--ink-soft); padding-left: 32px; }
#read-ok { justify-self: start; }

/* the tutor */
.chat { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px 28px; display: grid; gap: 16px; min-height: 300px; align-content: start; }
.chead { display: flex; align-items: center; gap: 18px; }
.clock { font: 700 34px var(--mono); }
.clock .low, #clock.low { color: var(--brick); }
.cstat { flex: 1; color: var(--ink-soft); font-size: 15px; }
.mic { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.mic[hidden] { display: none; }
.dot#micdot, .mic .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); opacity: calc(.25 + var(--lv, 0) * .75); transform: scale(calc(1 + var(--lv, 0) * .6)); }
.cap { min-height: 110px; display: grid; gap: 6px; align-content: center; }
.cap:empty { min-height: 0; }
.cap p { font: 600 30px/1.35 var(--serif); color: var(--navy); }
.hist { display: grid; gap: 4px; }
.hist li { font: 500 17px var(--serif); color: var(--ink-faint); }
.cact { display: grid; justify-items: start; }
.chat.over .cap, .chat.over .hist { display: none; }
.cdone { display: grid; gap: 12px; justify-items: center; text-align: center; width: 100%; }

/* passport */
.book { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
.page { background: var(--card); border: 1px solid var(--line); padding: 24px 28px; min-width: 0; }
.page.lp { border-radius: 10px 0 0 10px; border-right-width: 2px; }
.page.rp { border-radius: 0 10px 10px 0; border-left: 0; display: flex; flex-direction: column; }
.ph { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.ph b { font: 700 15px var(--mono); letter-spacing: .14em; color: var(--brick); }
.ph span { font-size: 13px; color: var(--ink-faint); }
.ph h2 { font: 700 20px var(--serif); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.cards li { display: grid; gap: 6px; align-content: start; }
.cards a { display: block; text-decoration: none; }
.cards li:nth-child(odd) .pc { transform: rotate(-1.2deg); }
.cards li:nth-child(even) .pc { transform: rotate(1deg); }
.cn { font-size: 13px; color: var(--ink-soft); text-align: center; }
.slot { aspect-ratio: 3 / 2; display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 4px; color: var(--ink-faint); }
.slot .i { width: 28px; height: 28px; stroke-width: 1.6; }
.lines { flex: 1; }
.lines li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 76px; border-bottom: 1px solid var(--line); }
.lines .no { font: 400 14px var(--mono); color: var(--ink-faint); }
.lines .done .no { font-weight: 700; }
.sayit { border: 0; background: none; padding: 4px 0; text-align: left; font: italic 600 20px/1.3 var(--serif); cursor: pointer; }
.lines p { font-size: 13.5px; color: var(--ink-soft); }
.wh { font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }
.pgno { margin-top: 14px; font-size: 13px; color: var(--ink-faint); text-align: right; }

/* records */
.plain h1 { font: 700 28px var(--serif); margin-bottom: 10px; }
.plain h2 { font: 700 19px var(--serif); margin: 26px 0 10px; }
.tw { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.nw { white-space: nowrap; }
.talk summary { cursor: pointer; color: var(--navy); min-height: 32px; }
.talk ol { margin-top: 6px; display: grid; gap: 6px; min-width: 320px; }
.tw2 { display: inline-block; min-width: 86px; color: var(--ink-faint); font-size: 12.5px; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); z-index: 40; max-width: min(92vw, 560px); padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 6px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.devbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #2a2f36; color: #e9e4d6; font-size: 13px; overflow-x: auto; white-space: nowrap; }
.devbar button { min-height: 40px; padding: 0 12px; border: 1px solid #5b6168; background: #3a4048; color: #fff; border-radius: 5px; cursor: pointer; }

/* iPad held upright, and phones: one column */
@media (max-width: 900px) {
  .mappage, .tmain, .watch, .book { grid-template-columns: minmax(0, 1fr); }
  .mapbox { height: auto; aspect-ratio: 1; min-height: 0; max-height: none; }
  .page.lp { border-radius: 10px 10px 0 0; border-right-width: 1px; }
  .page.rp { border-radius: 0 0 10px 10px; border-left: 1px solid var(--line); border-top: 0; }
  .brand span { display: none; }
  .opts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tripcard { grid-template-columns: 1fr; }
  .tc-stub { border-left: 0; border-top: 1.5px dashed var(--line); }
  .steps li { flex-wrap: wrap; }
  .sa { justify-items: start; margin-left: 62px; }
  .cards { grid-template-columns: 1fr; }
  .bar nav a, .bar nav button { padding: 0 9px; }
}
