/* ------------------------------------------------------------------
   Banff 2026 · Trip site styles
   Clean, white, modern. Accent = glacial-lake teal.
------------------------------------------------------------------- */
:root {
  --navy: #0f2a44;
  --ink: #152534;
  --muted: #5b6b7c;
  --line: #e6ebf0;
  --soft: #f5f8fa;
  --teal: #2ab3c0;
  --teal-dark: #1e8f9a;
  --teal-soft: #e6f6f8;
  --sun: #ffd166;
  --sun-soft: #fff7dd;
  --red: #d62828;
  --red-soft: #fdecec;
  --green: #1b7f5c;
  --green-soft: #e6f5ee;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(15, 42, 68, 0.08);
  --shadow-sm: 0 4px 14px rgba(15, 42, 68, 0.06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(15, 42, 68, .18); }
.btn-primary:hover { background: #163a5c; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: .55em 1em; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.btn-ghost:hover { color: var(--navy); border-color: #cfd8e0; }

/* ---------- header / tabs ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { height: 44px; width: auto; }
.tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: .55em 1.05em; border-radius: 999px; color: var(--muted); font-weight: 600; white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.tabs a:hover { background: var(--soft); color: var(--navy); text-decoration: none; }
.tabs a.active { background: var(--navy); color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: clamp(520px, 66vh, 760px); display: flex; align-items: flex-end;
  background-image: url("../img/hero.jpg?v=5"), url("../img/hero.svg");
  background-size: cover, cover; background-position: center 48%, center;
  border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
}
/* Keep the photo clean: only shade the bottom-left where the text sits. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 42, 68, 0) 0%, rgba(15, 42, 68, 0) 28%, rgba(15, 42, 68, .72) 100%),
    linear-gradient(90deg, rgba(15, 42, 68, .5) 0%, rgba(15, 42, 68, 0) 72%);
}
.hero h1, .hero p.lead { text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 4px 28px rgba(0, 0, 0, .45); }
.hero-inner { position: relative; z-index: 1; padding: 64px 0 56px; color: #fff; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy); background: var(--sun); padding: .4em .9em; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero p.lead { max-width: 52ch; font-size: 1.1rem; color: rgba(255, 255, 255, .9); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em .95em; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-weight: 600; font-size: .92rem;
  backdrop-filter: blur(6px);
}
.chip strong { font-size: 1.15em; }

/* ---------- crew strip ---------- */
.crew-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px;
  margin: -46px auto 0; position: relative; z-index: 2;
}
.crew-member { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; background: var(--soft); border: 4px solid #fff;
  box-shadow: var(--shadow); object-fit: cover; object-position: top;
  transition: transform .18s ease;
}
.crew-member:hover .avatar { transform: translateY(-4px) rotate(-3deg); }
.crew-member span { font-weight: 700; font-size: .95rem; }
.crew-member small { color: var(--muted); font-size: .78rem; margin-top: -6px; }
.avatar-sm { width: 52px; height: 52px; border-width: 3px; box-shadow: var(--shadow-sm); }
.avatar-xs { width: 40px; height: 40px; border-width: 2px; box-shadow: var(--shadow-sm); }
/* ---------- crew pictures: tilted prints scattered through the pages ---------- */
.polaroid {
  float: right; width: 230px; margin: 6px 0 20px 32px; padding: 9px 9px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
  transform: rotate(2.2deg); transition: transform .2s ease, box-shadow .2s ease;
}
.polaroid.pl { float: left; margin: 6px 32px 20px 0; }
.polaroid.tilt-l { transform: rotate(-2.2deg); }
.polaroid.tilt-r { transform: rotate(2.2deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.03); box-shadow: 0 18px 44px rgba(15, 42, 68, .16); z-index: 2; position: relative; }
.polaroid a { display: block; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 3px; display: block; }
.polaroid.wide { width: 300px; }
.polaroid.wide img { aspect-ratio: 4 / 3; }
.polaroid.small { width: 170px; margin-left: 22px; }
.polaroid.static { float: none; width: 100%; margin: 0; }
.polaroid.static img { aspect-ratio: 3 / 4; object-position: center 30%; }
.polaroid.static.wide { width: 100%; }
.polaroid.static.wide img { aspect-ratio: 4 / 3; }
.polaroid:empty { display: none; }
.section-head.has-photo { align-items: center; justify-content: flex-start; gap: 36px; margin-bottom: 34px; }
.section-head.has-photo > div:first-of-type { flex: 1 1 320px; max-width: 62ch; }
.section-head.has-photo .polaroid { float: none; flex: 0 0 auto; margin: 0; }
.section-head.has-photo p { margin-top: 10px; }
.card.flow, .day-body { display: flow-root; }
.food-cols { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); align-items: start; }
.food-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card.split { display: grid; grid-template-columns: minmax(220px, .8fr) 1.4fr; padding: 0; overflow: hidden; }
.split-img { display: block; min-height: 260px; }
.split-img a { display: block; height: 100%; }
.split-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.house-photo { min-height: 320px; }
.house-photo img { object-position: center 40%; }
.card:not(.split) .split-body { padding: 0; }
.split-body { padding: 26px; }
.lightbox { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; }
.lightbox img {
  position: relative; max-width: min(96vw, 900px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: pop .22s ease;
}
.lb-close { position: fixed; top: 14px; right: 14px; z-index: 1; background: #fff; }
.avatar-pair { display: flex; }
.avatar-pair .avatar + .avatar { margin-left: -14px; }

/* ---------- sections & cards ---------- */
.section { padding: 64px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head p { margin: 0; max-width: 60ch; }
.kicker { color: var(--teal-dark); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); position: relative;
}
.card, h2[id] { scroll-margin-top: 96px; }
.card-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-soft); font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 6px; }
.card .lead { color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.stat { background: var(--soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat b { display: block; font-size: 1.25rem; color: var(--navy); letter-spacing: -0.02em; }
.stat span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 8px 0 8px 26px; position: relative; border-top: 1px dashed var(--line); font-size: .95rem; }
.facts li::before { content: "▲"; position: absolute; left: 4px; top: 10px; font-size: .6rem; color: var(--teal); }

.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tip { background: var(--soft); border-radius: var(--radius-sm); padding: 18px; }
.tip b { display: block; margin-bottom: 4px; }
.tip.alert { background: var(--red-soft); }
.tip.sun { background: var(--sun-soft); }
.tip.green { background: var(--green-soft); }

/* floating decorative avatars beside content */
.with-peekers { position: relative; }
.peekers { position: absolute; right: -8px; top: -32px; display: flex; gap: 6px; }
.peekers .avatar { transform: rotate(6deg); }
.peekers .avatar:nth-child(2) { transform: rotate(-8deg) translateY(10px); }

/* ---------- itinerary ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.subnav a { padding: .45em .9em; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .9rem; color: var(--navy); }
.subnav a:hover { background: var(--teal-soft); text-decoration: none; }

.day-card { margin-bottom: 26px; padding: 0; overflow: visible; }
.day-head {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff, var(--soft));
  border-radius: var(--radius) var(--radius) 0 0;
}
.day-num {
  width: 58px; height: 58px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 800; line-height: 1; flex-shrink: 0;
}
.day-num small { font-size: .62rem; font-weight: 700; letter-spacing: .12em; opacity: .75; }
.day-num b { font-size: 1.45rem; }
.day-title h3 { margin: 0; font-size: 1.25rem; }
.day-title .date { color: var(--teal-dark); font-weight: 700; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; }
.day-title .sub { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.day-head .avatar-pair { margin-left: auto; }
.day-body { padding: 8px 26px 22px; }
.block { padding: 16px 0 6px; }
.block + .block { border-top: 1px dashed var(--line); }
.block-title { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.block.alert .block-title { color: var(--red); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 9px 0; align-items: start; }
.tl .time { font-weight: 700; color: var(--navy); font-size: .92rem; padding-top: 2px; white-space: nowrap; }
.tl .time.soft { color: var(--muted); font-weight: 600; }
.tl .what { font-weight: 500; }
.tl .sub { list-style: none; margin: 6px 0 0; padding: 0; color: var(--muted); font-size: .92rem; }
.tl .sub li { display: block; padding: 2px 0 2px 16px; position: relative; }
.tl .sub li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.stars { color: #f2b705; letter-spacing: 1px; font-size: .95rem; white-space: nowrap; }
.stars .off { color: #dbe1e7; }
.hike { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hike span {
  font-size: .78rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; background: var(--soft); color: var(--muted);
}
.hike span.diff-easy, .hike span.diff-very-easy { background: var(--green-soft); color: var(--green); }
.hike span.diff-moderate, .hike span.diff-easy-to-moderate { background: var(--sun-soft); color: #8a6d00; }
.hike span.diff-moderate-to-hard, .hike span.diff-hard { background: var(--red-soft); color: var(--red); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2em .6em; border-radius: 6px; background: var(--teal-soft); color: var(--teal-dark); vertical-align: middle; margin-left: 6px; }
.badge.gf { background: var(--green-soft); color: var(--green); }
.badge.price { background: var(--soft); color: var(--muted); }
.badge.must { background: var(--red-soft); color: var(--red); }
.conf { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--soft); padding: .1em .45em; border-radius: 6px; font-size: .88em; }

/* checklist */
.check { list-style: none; margin: 0; padding: 0; }
.check li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #cfd8e0; flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; font-size: .75rem; color: #fff; }
.check li.done > .box { background: var(--green); border-color: var(--green); }
.check li.done > .box::before { content: "✓"; }
.check li.done > div > span:first-child { text-decoration: line-through; color: var(--muted); }
.check .nested { margin: 6px 0 0; padding: 0; list-style: none; }
.check .nested li { padding: 4px 0; }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.people span { font-size: .78rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; background: var(--soft); color: var(--muted); }
.people span.done { background: var(--green-soft); color: var(--green); text-decoration: line-through; }

/* food */
.food-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.food-list { list-style: none; margin: 0; padding: 0; }
.food-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.food-list li:first-child { border-top: 0; }
.food-list b { display: block; }
.food-list small { color: var(--muted); }

/* costs table */
table.costs { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.costs th, table.costs td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.costs th { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
table.costs tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- stay ---------- */
.house-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; padding: 0; }
.house-art {
  background: linear-gradient(160deg, #e6f6f8, #d3eef2 60%, #f5f8fa); display: grid; place-items: center; padding: 30px; min-height: 280px;
}
.house-art svg { width: 100%; max-width: 380px; height: auto; }
.house-info { padding: 30px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; margin: 16px 0; font-size: .95rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.tbd { color: #b0492f; background: var(--sun-soft); padding: .1em .5em; border-radius: 6px; font-size: .85em; font-weight: 600; }
.dist { list-style: none; padding: 0; margin: 0; }
.dist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.dist li span:last-child { color: var(--muted); white-space: nowrap; }

/* ---------- map ---------- */
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--soft); }
.map-frame iframe { width: 100%; height: min(70vh, 640px); border: 0; display: block; }

/* ---------- bio modal ---------- */
[data-bio] { cursor: pointer; }
[data-bio]:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 42, 68, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .18s ease; }
.modal-card {
  position: relative; width: min(640px, 100%); background: #fff; border-radius: 24px; padding: 30px 34px 28px;
  box-shadow: 0 30px 80px rgba(15, 42, 68, .35); text-align: center; animation: pop .22s cubic-bezier(.2, .9, .3, 1.3);
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft);
  color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--line); color: var(--navy); }
.modal-avatar { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 14px; border: 5px solid #fff; box-shadow: var(--shadow); background: var(--soft); object-fit: cover; object-position: top; }
.modal-card h3 { font-size: 1.6rem; margin-bottom: 2px; }
.modal-title { color: var(--teal-dark); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.modal-card p { text-align: center; margin: 0 0 14px; font-size: 1.02rem; }
.modal-facts { list-style: none; margin: 0; padding: 0; text-align: center; }
.modal-facts li { padding: 8px 0; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--muted); white-space: nowrap; overflow: hidden; }
.modal-facts li::before { content: "▶ "; font-size: .6rem; color: var(--teal); vertical-align: middle; }
.modal-note { display: block; margin-top: 12px; font-size: .68rem; color: #a3afba; font-style: italic; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 80px; padding: 34px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }

/* ---------- login ---------- */
.login-body {
  min-height: 100vh; display: grid; place-items: center; background: #fff;
  background-image: radial-gradient(1200px 600px at 50% -10%, var(--teal-soft), transparent 60%);
}
.login { width: min(480px, calc(100% - 32px)); padding: 40px 0; }
.login-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px 36px 30px; box-shadow: var(--shadow); text-align: center;
}
.login-logo { height: 64px; width: auto; margin: 0 auto 22px; }
.login-card h1 { font-size: 1.9rem; }
.login-card p { color: var(--muted); }
.login-card form { text-align: left; margin-top: 22px; }
.login-card label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.pw-row { position: relative; margin-bottom: 14px; }
.pw-row input {
  width: 100%; font: inherit; padding: .85em 3em .85em 1em; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.pw-row input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); background: #fff; }
.pw-row button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; padding: 6px; color: var(--muted); }
.login-card .btn { width: 100%; }
.turnstile-wrap { display: flex; justify-content: center; min-height: 65px; margin: 0 0 14px; }
.login-error { color: var(--red); font-weight: 600; margin: 12px 0 0; text-align: center; }
.login-foot { margin: 22px 0 0; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.login-crew { display: flex; justify-content: center; margin-top: 26px; }
.login-crew .avatar + .avatar { margin-left: -12px; }
.shake { animation: shake .4s ease; }
@keyframes shake { 0%,100% { transform: translateX(0);} 20%,60% { transform: translateX(-8px);} 40%,80% { transform: translateX(8px);} }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .house-card, .card.split, .food-cols { grid-template-columns: 1fr; }
  .split-img { min-height: 0; max-height: 360px; }
  .polaroid.static { width: min(300px, 100%); margin: 0 auto; }
  .polaroid.static img { aspect-ratio: 4 / 5; }
  .peekers { display: none; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 8px 10px; padding: 8px 0; min-height: 0; }
  .brand img { height: 36px; }
  .tabs { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .tabs a { padding: .5em .8em; font-size: .95rem; }
  #logout { margin-left: auto; padding: .45em .85em; font-size: .9rem; }
  .hero { min-height: 0; border-radius: 0 0 14px 14px; }
  .hero::after { background: linear-gradient(180deg, rgba(15, 42, 68, .05) 0%, rgba(15, 42, 68, .5) 30%, rgba(15, 42, 68, .82) 100%); }
  .hero-inner { padding: 40px 0 64px; }
  .hero h1 { font-size: 2rem; max-width: none; }
  .hero p.lead { font-size: .98rem; }
  .chip { font-size: .85rem; padding: .45em .8em; }
  .avatar { width: 74px; height: 74px; border-width: 3px; }
  .crew-strip { gap: 10px 0; margin-top: -40px; }
  .crew-member { flex: 0 0 33.33%; }
  .crew-member span { font-size: .85rem; }
  .polaroid, .polaroid.pl, .polaroid.small, .polaroid.wide { float: none; width: min(250px, 78%); margin: 14px auto 22px; }
  .polaroid.wide { width: min(300px, 92%); }
  .section-head.has-photo { flex-direction: column; align-items: stretch; gap: 8px; }
  .section-head.has-photo > div:first-of-type { flex: 0 0 auto; max-width: none; }
  .section-head.has-photo .polaroid { order: 2; margin: 14px auto 6px; }
  .section { padding: 40px 0 6px; }
  .section-head { margin-bottom: 18px; }
  .card { padding: 18px; border-radius: 14px; }
  .card-icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .stats { gap: 8px; }
  .stat b { font-size: 1.1rem; }
  .tip { padding: 14px; }
  .subnav a { font-size: .85rem; padding: .4em .75em; }
  .day-head { padding: 16px 18px; gap: 12px; flex-wrap: wrap; }
  .day-num { width: 48px; height: 48px; }
  .day-num b { font-size: 1.2rem; }
  .day-title h3 { font-size: 1.1rem; }
  .day-head .avatar-pair { margin-left: 0; }
  .day-body { padding: 4px 18px 16px; }
  .tl li { grid-template-columns: 1fr; gap: 2px; }
  .tl .time { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-dark); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 10px; }
  .split-body { padding: 18px; }
  .map-frame iframe { height: 70vh; height: 70dvh; }
  .modal { padding: 12px; align-items: end; }
  .modal-card { padding: 24px 18px 20px; border-radius: 20px; }
  .modal-avatar { width: 110px; height: 110px; }
  .site-footer { padding: 26px 0 40px; }
  .site-footer .container { justify-content: center; text-align: center; }
}
