/* Trip with Joanna — Coastal Editorial
   Pages: home (#/), trip overview (#/<trip>), schedule + one page per day in the itinerary-sidebar frame. */
:root {
  --bg: #FAFAF7; --surface: #FFFFFF; --tint: #E6F2F6; --tint-2: #F2F6F3; --sand: #F1ECE2;
  --ink: #0E1A24; --ink-2: #2A3B47; --muted: #5B6B76; --line: #DDE5E9; --line-strong: #B4C3CB;
  --accent: #0E7490; --accent-deep: #0A4F63; --accent-soft: #CFE7EE; --sky: #38BDF8;
  --on-dark: #FFFFFF; --on-dark-muted: rgba(255,255,255,.78);
  --radius: 12px; --radius-sm: 6px;
  --font-sans: "Manrope", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Noto Sans TC", serif;
  --maxw: 1180px; --gutter: clamp(16px, 4vw, 48px); --header-h: 64px; --rail-w: 272px;
  --shadow: 0 1px 2px rgba(14,26,36,.05), 0 18px 40px -18px rgba(14,26,36,.22);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 1rem; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #fff; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 700; }
h1:focus, h2:focus { outline: none; }
.eyebrow { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.on-dark .eyebrow { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.display-it { font-family: var(--font-display); font-style: italic; font-weight: 300; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.pending { color: var(--muted); font-weight: 600; letter-spacing: .04em; text-decoration: underline dashed var(--line-strong); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.path { display: block; margin-top: 10px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .75rem; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,250,247,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; flex: none; display: block; box-shadow: 0 1px 3px rgba(14,26,36,.18); }  /* logo.png: our photo (Okinawa Day 4 #49) */
.site-nav { display: flex; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.site-nav a:hover { background: var(--tint-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent-deep); background: var(--tint); }

/* ============================================================
   HOME — masthead, rotating hero, trip cards
   ============================================================ */
.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 18px; }
.masthead .eyebrow { margin-bottom: 4px; }
.masthead h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.masthead .lead { margin: 4px 0 0; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.stats { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .85rem; font-weight: 600; }
.stats b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 2rem; color: var(--accent); line-height: 1; }

.carousel { position: relative; height: min(68vh, 620px); min-height: 400px; isolation: isolate; color: var(--on-dark); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide:not(.is-active) { visibility: hidden; transition: opacity .9s, visibility 0s .9s; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,26,36,.08) 0%, rgba(14,26,36,0) 35%, rgba(14,26,36,.72) 100%); pointer-events: none; }
.slide.gradient { background: linear-gradient(160deg, #083B4C 0%, #0A4F63 38%, #0E7490 72%, #2E8FA8 100%); }
.slide.gradient::after { background: linear-gradient(180deg, rgba(8,59,76,0) 25%, rgba(8,59,76,.55) 100%); }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; pointer-events: none; }
.ghost { position: absolute; right: var(--gutter); top: 8%; margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(5rem, 16vw, 15rem); line-height: 1; color: rgba(255,255,255,.10); letter-spacing: -0.04em; pointer-events: none; user-select: none; }
.slide-inner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(28px, 5vw, 56px); }
.slide h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.slide h2 .latin { display: block; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: .62em; letter-spacing: 0; margin-top: 4px; color: var(--on-dark-muted); }
.hero-meta { display: flex; gap: 10px 22px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; list-style: none; font-size: .92rem; color: #fff; font-weight: 600; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; transition: transform .2s; }
.hero-cta:hover { transform: translateX(3px); }

.trips { padding-top: clamp(40px, 6vw, 72px); }
.trips-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.trips-head h2 { font-size: 2rem; }
.trips-head h2 .display-it { color: var(--accent); margin-left: 12px; font-size: .8em; }
.trips-head p { margin: 0; color: var(--muted); }
.trip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trip-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.trip-card:focus-visible { outline-offset: 4px; }
.trip-cover-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.trip-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cover-soon { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #083B4C 0%, #0A4F63 38%, #0E7490 72%, #2E8FA8 100%); color: #fff; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.cover-soon .ghost { right: 14px; top: 10px; font-size: 4.2rem; }
.cover-soon .soon-tag { position: relative; z-index: 1; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); padding: 6px 10px; border-radius: 999px; }
.trip-card-body { padding: 20px 22px 24px; display: grid; gap: 4px; }
.trip-no { font-family: var(--font-display); font-style: italic; font-weight: 300; color: var(--accent); font-size: 1.1rem; }
.trip-meta { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trip-card h3 { font-size: 1.45rem; margin-top: 2px; }
.trip-card h3 .latin { font-family: var(--font-display); font-style: italic; font-weight: 300; color: var(--ink-2); margin-left: 6px; }
.trip-card p.where { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.trip-card .go { margin-top: 14px; font-weight: 700; color: var(--accent-deep); font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; }

/* ============================================================
   TRIP OVERVIEW — hero, schedule card, day cards
   ============================================================ */
.trip-hero { position: relative; height: min(60vh, 560px); min-height: 380px; color: var(--on-dark); isolation: isolate; }
.trip-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.trip-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,26,36,.10) 0%, rgba(14,26,36,0) 20%, rgba(14,26,36,.78) 100%); }
.trip-hero .hero-inner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: clamp(28px, 5vw, 56px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trip-hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.trip-hero h1 .latin { display: block; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: .62em; letter-spacing: 0; margin-top: 4px; color: var(--on-dark-muted); }
.trip-hero.gradient { height: min(50vh, 460px); min-height: 340px; background: linear-gradient(160deg, #083B4C 0%, #0A4F63 38%, #0E7490 72%, #2E8FA8 100%); }
.trip-hero.gradient::after { background: linear-gradient(180deg, rgba(8,59,76,0) 25%, rgba(8,59,76,.55) 100%); }

.overview { padding-top: clamp(32px, 5vw, 56px); }
.sched-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 24px; padding: 22px 26px; border: 1px solid var(--accent-soft); border-radius: var(--radius); background: var(--tint); color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.sched-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sched-card .sc-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); color: var(--accent-deep); display: grid; place-items: center; }
.sched-card .sc-ico svg { width: 26px; height: 26px; }
.sched-card h2 { font-size: 1.35rem; }
.sched-card p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.sched-card .go { font-weight: 700; color: var(--accent-deep); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }

.days-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: clamp(36px, 5vw, 56px) 0 20px; flex-wrap: wrap; }
.days-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.days-head h2 .display-it { color: var(--accent); font-size: .8em; margin-left: 8px; }
.days-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.day-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-group { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; margin: 8px 0 -6px; font-size: 1.1rem; }
.grid-group small { color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.grid-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.day-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); text-decoration: none; color: inherit; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.day-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.day-card:focus-visible { outline-offset: 4px; }
.dc-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.dc-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.dc-cover.soon { background: linear-gradient(160deg, var(--tint) 0%, var(--tint-2) 100%); display: grid; place-items: center; }
.dc-cover.soon .big { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 4.5rem; line-height: 1; color: rgba(14,116,144,.28); letter-spacing: -0.04em; }
.dc-num { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(14,26,36,.78); color: #fff; padding: 5px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dc-cover.soon .dc-num { background: var(--ink); }
.dc-body { padding: 16px 18px 20px; display: grid; gap: 4px; }
.dc-date { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dc-title { font-size: 1.15rem; line-height: 1.25; }
.dc-title.pending { color: var(--muted); font-weight: 600; }
.dc-body .city-tag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--accent-deep); background: var(--tint); padding: 3px 10px; border-radius: 999px; }
.dc-body .city-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dc-count { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }

/* ============================================================
   SCHEDULE + DAY PAGES — trip band, side rail, one page in the pane
   ============================================================ */
.trip-band { position: relative; color: var(--on-dark); isolation: isolate; height: 260px; overflow: hidden; }
.trip-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.trip-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,26,36,.15) 0%, rgba(14,26,36,.78) 100%); }
.trip-band.gradient { background: linear-gradient(160deg, #083B4C 0%, #0A4F63 38%, #0E7490 72%, #2E8FA8 100%); }
.trip-band.gradient::after { background: linear-gradient(180deg, rgba(8,59,76,0) 30%, rgba(8,59,76,.5) 100%); }
.trip-band .waves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; }
.trip-band .band-inner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trip-band h1, .trip-band .band-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-shadow: 0 2px 24px rgba(0,0,0,.25); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
.trip-band .latin { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: .7em; margin-left: 10px; color: var(--on-dark-muted); }
.band-crumb { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.band-crumb:hover { text-decoration: underline; }

.trip-layout { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); gap: 0 56px; align-items: start; padding-top: 32px; }

/* Left rail */
.rail { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; padding: 4px 4px 24px 0; }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-group { margin: 0 0 6px; padding: 18px 0 6px 12px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.rail-group:first-child { padding-top: 0; }
.rail a { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; align-items: center; min-height: 44px; padding: 7px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; transition: background .2s, color .2s; }
.rail a:hover { background: var(--tint-2); color: var(--ink); }
.rail a[aria-current="page"] { background: var(--tint); color: var(--accent-deep); border-left-color: var(--accent); }
.rail a .rn { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 1.35rem; line-height: 1; color: var(--accent); }
.rail a .rt { display: block; font-weight: 700; font-size: .9rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail a .rd { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; line-height: 1.3; }
.rail a[aria-current="page"] .rd { color: var(--accent); }
.rail a .rt.pending { font-weight: 600; }
.rail .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--accent-deep); display: grid; place-items: center; }
.rail .ico svg { width: 18px; height: 18px; }
.rail a[aria-current="page"] .ico { background: var(--accent); color: #fff; }

/* Right pane */
.pane { min-width: 0; padding-bottom: 24px; }
.pane-head { padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; align-items: end; }
.day-num { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(4rem, 7vw, 5.5rem); line-height: .85; letter-spacing: -0.04em; color: var(--accent); grid-row: 1 / 3; margin-left: -4px; }
.day-label { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); align-self: end; }
.day-label .city-tag { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--accent-deep); letter-spacing: .06em; text-transform: none; font-size: .78rem; }
.pane-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); align-self: start; }
.pane-head.plain { grid-template-columns: 1fr; }
.pane-sub { margin: 10px 0 0; color: var(--muted); font-size: .98rem; max-width: 60ch; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 32px 128px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .time { position: absolute; left: 0; top: 3px; width: 96px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); line-height: 1.3; }
.timeline li::before { content: ""; position: absolute; left: 104px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 108px; top: 14px; bottom: -4px; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline .act { margin: 0; font-size: 1.05rem; font-weight: 500; color: var(--ink); white-space: pre-line; }
figure { margin: 0; }
figcaption { margin-top: 9px; font-size: .82rem; color: var(--muted); line-height: 1.4; display: flex; gap: 8px; align-items: baseline; }
figcaption::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--accent); transform: translateY(-4px); }
figure img { cursor: zoom-in; }
figure img:hover { opacity: .94; }
.ticket-ph { margin-top: 16px; max-width: 480px; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--tint-2) 12px 24px); color: var(--ink-2); }
.ticket-ph svg { flex: none; width: 40px; height: 40px; color: var(--accent); }
.ticket-ph strong { display: block; font-size: .95rem; }
.ticket-ph span { display: block; font-size: .8rem; color: var(--muted); word-break: break-all; }

/* Prev / next footer in pane */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.pager a:hover { border-color: var(--accent-soft); box-shadow: var(--shadow); }
.pager a.next { grid-column: 2; text-align: right; flex-direction: row-reverse; }
.pager .nl-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.pager .nl-title { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.pager .nl-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.pager a:hover .nl-arrow { background: var(--ink); color: #fff; }
.pager .nl-arrow svg { width: 18px; height: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--accent-deep); text-decoration: none; margin-top: 20px; }
.back-link:hover { text-decoration: underline; }

/* Schedule + galleries */
.section-kicker { display: flex; align-items: baseline; gap: 14px; margin: 0 0 6px; }
.section-kicker .no { font-family: var(--font-display); font-style: italic; font-weight: 300; color: var(--accent); font-size: 1.2rem; }
.sched-grid { display: grid; gap: 20px; }
.sched-img { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.sched-img .sched-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.sched-img .sched-bar b { color: var(--ink-2); font-weight: 600; }
.sched-stage { background: var(--tint-2); padding: clamp(16px, 3vw, 28px); display: grid; place-items: center; }
.sched-shot { display: block; width: auto; max-width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.sched-stage .ticket-ph { margin: 0; }
.pdf-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; min-height: 44px; }
.pdf-card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow); }
.pdf-icon { flex: none; width: 46px; height: 56px; border-radius: 6px; background: var(--accent-deep); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; letter-spacing: .08em; position: relative; }
.pdf-icon::after { content: ""; position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 12px 12px 0; border-color: var(--bg) var(--bg) var(--accent) var(--accent); border-radius: 0 6px 0 0; }
.pdf-card .pdf-name { font-weight: 700; display: block; }
.pdf-card .pdf-meta { display: block; font-size: .82rem; color: var(--muted); }
.pdf-card .pdf-go { margin-left: auto; flex: none; color: var(--accent-deep); font-weight: 700; font-size: .9rem; }
.state-label { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.state-label::before { content: ""; width: 22px; height: 1px; background: var(--line-strong); }
.empty { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); padding: clamp(32px, 5vw, 56px) 24px; text-align: center; color: var(--ink-2); }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--tint); color: var(--accent-deep); display: grid; place-items: center; }
.empty-icon svg { width: 26px; height: 26px; }
.empty h2, .empty h3 { font-size: 1.1rem; font-weight: 700; }
.empty .display-it { color: var(--muted); font-weight: 300; }
.empty p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.empty code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .82rem; background: var(--tint-2); padding: 2px 8px; border-radius: 4px; color: var(--ink-2); }

.badge-sample { position: absolute; left: 10px; top: 10px; z-index: 1; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(14,26,36,.78); color: #fff; padding: 4px 8px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; inset: 0; max-width: 100vw; width: 100vw; max-height: 100vh; height: 100vh; }
@supports (height: 100dvh) { dialog.lightbox { max-height: 100dvh; height: 100dvh; } }
dialog.lightbox::backdrop { background: rgba(8,16,24,.96); }
dialog.lightbox .lb-stage { position: fixed; inset: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 64px 72px 104px; touch-action: none; }  /* definite track so the photo's max-height: 100% fits it to the screen */
dialog.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .15s ease; }
dialog.lightbox.zoomed img { cursor: grab; }
dialog.lightbox.dragging img { transition: none; cursor: grabbing; }
.lb-hint { position: fixed; left: 50%; top: 26px; transform: translateX(-50%); font-size: .78rem; color: rgba(255,255,255,.6); white-space: nowrap; pointer-events: none; }
.lb-btn { position: fixed; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; left: 20px; top: 24px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.72); }
.lb-caption { position: fixed; left: 0; right: 0; bottom: 0; padding: 18px 72px 26px; text-align: center; font-size: .95rem; color: #fff; margin: 0; }
.lb-caption small { display: block; color: var(--on-dark-muted); font-size: .78rem; margin-top: 2px; }

/* Footer */
.site-footer { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 40px; color: var(--muted); font-size: .9rem; }
.footer-inner p { margin: 0; }
.footer-inner .sig { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 1.3rem; color: var(--ink); }
.footer-inner .sig .heart { color: var(--accent); font-style: normal; }

/* ============================================================
   PHONE: rail → "Day 3 of 11 ▾" selector + bottom sheet + sticky Prev/Next bar
   ============================================================ */
.day-select { display: none; }
.sheet { border: 0; padding: 0; background: transparent; width: 100vw; max-width: 100vw; margin: 0; inset: auto 0 0 0; max-height: 82vh; }
.sheet::backdrop { background: rgba(14,26,36,.55); }
.sheet-inner { background: var(--bg); border-radius: 20px 20px 0 0; padding: 10px var(--gutter) 24px; max-height: 82vh; overflow-y: auto; box-shadow: 0 -10px 40px rgba(14,26,36,.25); }
.sheet-handle { width: 42px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sheet-head h2 { font-size: 1.05rem; }
.sheet-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.sheet-close svg { width: 18px; height: 18px; }
.sheet .rail a { padding-left: 12px; }
.bottom-bar { display: none; }

.photo-credit { position: absolute; right: 12px; top: 10px; z-index: 2; font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.85); text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.photo-credit:hover { text-decoration: underline; }
.credits { margin: 20px 0 0; font-size: .8rem; color: var(--muted); }
.link-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
[data-schedule-folder] { margin-bottom: 32px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .trip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip-grid .trip-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --rail-w: 232px; }
  .trip-layout { gap: 0 32px; }
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 700px) {
  :root { --header-h: 0px; }
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-top: 6px; padding-bottom: 4px; }
  .site-nav { width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; padding: 6px calc(var(--gutter) - 14px); }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; }
  .carousel { height: min(62vh, 520px); min-height: 420px; }
  .slide h2 { font-size: 2.4rem; }
  .trip-grid { grid-template-columns: 1fr; }
  .trip-grid .trip-card:first-child { grid-column: auto; }
  .trip-hero { height: min(56vh, 480px); min-height: 360px; }
  .sched-card { grid-template-columns: auto 1fr; padding: 18px; }
  .sched-card .go { grid-column: 2; }
  .trip-band { height: 200px; }
  .trip-layout { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .trip-layout > div { min-width: 0; }
  .day-select > span:first-child { min-width: 0; flex: 1 1 auto; }
  .rail:not(.in-sheet) { display: none; }
  .day-select { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 8px 14px 8px 18px; border: 0; border-bottom: 1px solid var(--line); background: rgba(250,250,247,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); text-align: left; cursor: pointer; border-radius: 0; }
  .day-select .ds-main { font-weight: 800; font-size: 1rem; }
  .day-select .ds-sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .day-select .ds-caret { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--accent-deep); display: grid; place-items: center; }
  .day-select .ds-caret svg { width: 18px; height: 18px; }
  .wrap.trip-layout { padding-left: 0; padding-right: 0; }
  .pane { padding: 24px var(--gutter) 96px; }
  .pane-head { padding-top: 0; }
  .day-num { font-size: 3.6rem; }
  .timeline li { padding: 0 0 26px 24px; }
  .timeline .time { position: static; display: block; width: auto; margin-bottom: 3px; }
  .timeline li::before { left: -1px; top: 6px; }
  .timeline li::after { left: 3px; top: 12px; }
  .pager { display: none; }
  .bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px var(--gutter) max(8px, env(safe-area-inset-bottom)); background: rgba(250,250,247,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .bottom-bar a, .bottom-bar span.dis { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); max-width: 100%; }
  .bottom-bar a.next { justify-self: end; flex-direction: row-reverse; background: var(--ink); color: #fff; }
  .bottom-bar a.prev { justify-self: start; border: 1px solid var(--line-strong); background: var(--surface); }
  .bottom-bar span.dis { color: var(--muted); }
  .bottom-bar .bb-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26vw; }
  .bottom-bar svg { width: 18px; height: 18px; flex: none; }
  .bottom-bar .bb-mid { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
  dialog.lightbox .lb-stage { padding: 56px 12px 100px; }
  .lb-prev { top: auto; bottom: 18px; left: 16px; transform: none; }
  .lb-next { top: auto; bottom: 18px; right: 16px; transform: none; }
  .lb-caption { padding: 12px 72px 24px; }
  .c-status { display: none; }
}
.pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pager a { min-width: 0; }
/* Day photos: one grid of square thumbnails, 3 per row (6 columns, span 2). Rows of 2 use halves
   (span 3) and the last row never holds a lone photo (script.js adds .half). Thumbnails are cropped
   toward the top so faces stay in; clicking opens the whole photo in the lightbox. */
.photo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.photo-grid > figure { grid-column: span 2; margin: 0; min-width: 0; position: relative; }
.photo-grid > figure.half { grid-column: span 3; }
.ph { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--tint); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ph:has(img:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.ph img:focus-visible { outline: none; }
.dc-cover.whole .ph img { object-fit: contain; }  /* day with coverWhole: show the whole cover photo, uncropped */
.dc-cover .ph { border-radius: 0; aspect-ratio: auto; position: absolute; inset: 0; }
@media (max-width: 700px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-grid > figure, .photo-grid > figure.half { grid-column: span 1; }
}
