/* Layout: night-sky navy page, glass panels like the app's home chips,
   one magenta→violet gradient taken from the globe logo. Single dark look by choice. */
:root {
  --navy: #09203F;
  --navy-deep: #061529;
  --ink: #F4F6FB;
  --ink-soft: rgba(244, 246, 251, 0.72);
  --ink-faint: rgba(244, 246, 251, 0.48);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.14);
  --magenta: #E0066F;
  --violet: #4B0F8A;
  --glow: linear-gradient(120deg, #F0207E 0%, #B10C86 45%, #5A12A0 100%);
  --mark: #FFD166;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4vw, 2.6rem);
  --step-4: clamp(2.5rem, 6.5vw, 4.4rem);

  --radius: 20px;
  --wrap: 72rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--navy-deep); }
body {
  margin: 0;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(177, 12, 134, 0.22), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30%, rgba(90, 18, 160, 0.20), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  background-color: var(--navy-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* Header */
.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: var(--step--1); padding: 8px 14px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--glass); }
.nav a.cta { color: var(--ink); background: var(--glass-strong); border: 1px solid var(--line); }

/* Type */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.glow-text { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 34rem; }

/* Hero: looping timelapse in an inset frame, copy over a navy fade */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-inline: 12px; border-radius: 28px; border: 1px solid var(--line);
  min-height: clamp(520px, 80vh, 780px);
  display: flex; align-items: flex-end;
  background: var(--navy);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(6, 21, 41, 0.92) 0%, rgba(6, 21, 41, 0.55) 40%, rgba(6, 21, 41, 0.05) 75%),
    linear-gradient(90deg, rgba(6, 21, 41, 0.55) 0%, rgba(6, 21, 41, 0) 60%);
}
.hero .wrap { padding-block: 56px; }
.hero-copy { display: grid; gap: 20px; min-width: 0; max-width: 40rem; }
.hero .eyebrow { color: var(--ink-soft); }
.hero .lede { color: rgba(244, 246, 251, 0.85); }
.store-row { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
  border-radius: 14px; background: rgba(6, 21, 41, 0.5); border: 1px solid var(--line); text-decoration: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.store svg { width: 22px; height: 22px; fill: var(--ink); flex: none; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 0.68rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.store b { font-weight: 600; font-size: 0.98rem; }
.soon { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); }
.badge { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); flex: none; }
.badge svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
section.band { padding-block: 72px; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; max-width: 40rem; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); }


.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.feature .badge { width: 44px; height: 44px; }
.feature div { min-width: 0; display: grid; gap: 6px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* Departure-board strip */
.board { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(6, 21, 41, 0.6); }
.board table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.85rem; min-width: 34rem; font-variant-numeric: tabular-nums; }
.board th, .board td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board th { color: var(--ink-faint); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.board tr:last-child td { border-bottom: 0; }
.board .ok { color: #7EE2A8; }

.closing { text-align: left; display: grid; gap: 18px; justify-items: start; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--ink-faint); font-size: var(--step--1); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding-block: 32px 80px; }
.legal article { max-width: 44rem; display: grid; gap: 18px; }
.legal header { display: grid; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.legal h1 { font-size: var(--step-3); }
.legal h2 { font-size: var(--step-1); margin-top: 22px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }
.legal .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 32rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.legal th { color: var(--ink); font-weight: 600; background: var(--glass); }
.legal tr:last-child td { border-bottom: 0; }
.callout { padding: 18px 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 10px; }
/* Placeholders Eli must fill in before going live: search the files for class="todo" */
mark.todo { background: rgba(255, 209, 102, 0.18); color: var(--mark); padding: 0 4px; border-radius: 4px; }

@media (max-width: 860px) {
  .hero { margin-inline: 8px; border-radius: 22px; min-height: 560px; }
  .hero .wrap { padding-block: 32px; }
    .features { grid-template-columns: 1fr; }
}

.hero + .band { border-top: 0; }

/* Auth pages: one glass card on the night sky */
.auth { padding-block: 32px 96px; }
.auth .wrap { display: grid; justify-items: center; }
.auth-card {
  width: 100%; max-width: 28rem; display: grid; gap: 20px; padding: 28px;
  border-radius: 24px; background: rgba(9, 32, 63, 0.72); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}
.auth-card h1 { font-size: var(--step-2); }
.auth-card .sub { color: var(--ink-soft); font-size: 0.95rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(6, 21, 41, 0.6); border: 1px solid var(--line); }
.tabs button { font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); background: transparent; border: 0; padding: 10px; border-radius: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--glass-strong); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input {
  font: inherit; color: var(--ink); background: rgba(6, 21, 41, 0.65); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field input:focus { outline: none; border-color: rgba(240, 32, 126, 0.8); box-shadow: 0 0 0 3px rgba(240, 32, 126, 0.25); }
.field .hint { font-size: 0.8rem; color: var(--ink-faint); }
.btn {
  font: inherit; font-weight: 600; color: #fff; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  padding: 13px 18px; border-radius: 12px; background: var(--glow); display: inline-block;
}
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.ghost { background: var(--glass); border: 1px solid var(--line); color: var(--ink); }
.linkish { font: inherit; font-size: 0.88rem; color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.msg { font-size: 0.9rem; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.msg.error { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.4); color: #FFC9C9; }
.msg.ok { background: rgba(81, 207, 102, 0.12); border-color: rgba(81, 207, 102, 0.4); color: #C3F5CD; }
.msg.info { background: var(--glass); color: var(--ink-soft); }
.fine { font-size: 0.8rem; color: var(--ink-faint); }
.fine a { color: var(--ink-soft); }
.account-grid { display: grid; gap: 10px; }
.account-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.account-row span:first-child { color: var(--ink-faint); }
.account-row span:last-child { min-width: 0; overflow-wrap: anywhere; }
.empty { padding: 18px; border-radius: 16px; border: 1px dashed var(--line); color: var(--ink-soft); font-size: 0.92rem; }

/* Admin dashboard */
.dash { padding-block: 24px 96px; }
.dash .wrap { display: grid; gap: 28px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { font-size: var(--step-3); }
.panel { border-radius: 20px; background: rgba(9, 32, 63, 0.6); border: 1px solid var(--line); padding: 22px; display: grid; gap: 16px; min-width: 0; }
.panel h2 { font-size: var(--step-1); letter-spacing: -0.01em; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { padding: 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 4px; }
.tile .label { font-size: 0.8rem; color: var(--ink-faint); }
.tile .value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .note { font-size: 0.8rem; color: var(--ink-soft); }
.chart-wrap { position: relative; overflow-x: auto; }
.chart-wrap svg { display: block; width: 100%; min-width: 34rem; height: auto; }
.chart-wrap .tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: #F4F6FB; color: #09203F; font-size: 0.8rem; font-weight: 600; white-space: nowrap; transform: translate(-50%, -110%); }
.data-table { overflow-x: auto; }
.data-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 34rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--ink-faint); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.data-table td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.pill.on { color: #C3F5CD; background: rgba(81, 207, 102, 0.12); border-color: rgba(81, 207, 102, 0.4); }
.pill.off { color: var(--ink-soft); background: var(--glass); }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: start; }
.post-list { display: grid; gap: 10px; }
.post { padding: 14px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 8px; }
.post-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.post-top b { min-width: 0; overflow-wrap: anywhere; }
.post p { color: var(--ink-soft); font-size: 0.9rem; white-space: pre-line; overflow-wrap: anywhere; }
.post-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.small { padding: 7px 12px; font-size: 0.82rem; border-radius: 10px; }
.btn.danger { background: rgba(255, 107, 107, 0.16); border: 1px solid rgba(255, 107, 107, 0.45); color: #FFC9C9; }
.field textarea { font: inherit; color: var(--ink); background: rgba(6, 21, 41, 0.65); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; min-height: 8rem; resize: vertical; }
.field textarea:focus { outline: none; border-color: rgba(240, 32, 126, 0.8); box-shadow: 0 0 0 3px rgba(240, 32, 126, 0.25); }
.check { display: flex; gap: 10px; align-items: center; font-size: 0.92rem; }
.check input { width: 18px; height: 18px; accent-color: #E8378F; }
details.table-toggle summary { cursor: pointer; color: var(--ink-soft); font-size: 0.88rem; }
.member-posts { display: grid; gap: 10px; }
.member-posts .post a { color: var(--ink); font-weight: 600; font-size: 0.9rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } .two-col { grid-template-columns: 1fr; } }

/* Member dashboard + world clocks */
.member { display: grid; gap: 20px; }
.member .dash-head h1 { font-size: var(--step-3); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.clocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 12px; }
@media (max-width: 480px) { .clock { padding: 12px; } .clock-time { font-size: 1.8rem; } .clock-meta { font-size: 0.68rem; } }
.clock { position: relative; display: grid; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); min-width: 0; }
.clock.is-day { background: linear-gradient(160deg, rgba(255, 209, 102, 0.12), rgba(255, 255, 255, 0.05)); }
.clock.is-night { background: linear-gradient(160deg, rgba(90, 18, 160, 0.22), rgba(255, 255, 255, 0.04)); }
.clock:first-child { border-color: rgba(240, 32, 126, 0.55); }
.clock-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.clock-city { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.clock.is-day .clock-icon svg { stroke: var(--mark); }
.clock-time { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.clock-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); }
.clock-remove { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 107, 107, 0.5); background: #3a1830; color: #FFC9C9; font-size: 1rem; line-height: 1; cursor: pointer; }
.clock-add { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.clock-add .field { flex: 1 1 16rem; }
.clock-add .btn { margin-bottom: 22px; }
.clock-meta span { white-space: nowrap; }

/* Clock styles (chosen per user) */
.clocks.style-neon { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.clocks.style-wide { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.nclock, .wclock { position: relative; font-family: "Jost", "Futura", "Avenir Next", sans-serif; min-width: 0; }
.nclock .meta, .wclock .meta { font-family: inherit; font-size: .82rem; letter-spacing: .02em; }
.nclock { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 12px 16px; border-radius: 22px; background: linear-gradient(180deg, #7A1A5E 0%, #3B1450 55%, #2B1B5C 100%); border: 1px solid rgba(255, 255, 255, .12); }
.nclock svg { width: 100%; max-width: 10.5rem; height: auto; display: block; overflow: visible; }
.nclock svg text { font-family: "Jost", "Futura", sans-serif; }
.nclock .city { font-weight: 600; font-size: 1.05rem; color: #5FF5E8; text-shadow: 0 0 8px rgba(95, 245, 232, .65); letter-spacing: .04em; }
.nclock .meta { color: rgba(220, 250, 247, .7); }
.nclock.you { box-shadow: 0 0 0 1px rgba(95, 245, 232, .5), 0 0 24px rgba(95, 245, 232, .15); }
.wclock { display: grid; grid-template-columns: 8rem minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 20px 16px 16px; border-radius: 26px; background: #05080F; border: 1px solid rgba(255, 255, 255, .1); }
.wclock svg { width: 100%; height: auto; display: block; }
.wclock .txt { display: grid; gap: 2px; min-width: 0; }
.wclock .city { font-weight: 500; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wclock .date { font-weight: 500; font-size: 2.2rem; line-height: 1.05; white-space: nowrap; }
.wclock .meta { margin-top: 4px; color: var(--ink-faint); }
.wclock.you { box-shadow: 0 0 0 1px rgba(240, 32, 126, .6); }
.style-field { flex-basis: 100%; }
.label-like { font-size: .85rem; font-weight: 600; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(6, 21, 41, .6); border: 1px solid var(--line); justify-self: start; }
.seg button { font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-soft); background: transparent; border: 0; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { color: var(--ink); background: var(--glass-strong); }
@media (max-width: 480px) {
  .clocks.style-neon { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nclock { padding: 12px 8px; } .nclock .city { font-size: .92rem; } .nclock .meta { font-size: .72rem; }
  .clocks.style-wide { grid-template-columns: 1fr; }
  .wclock { grid-template-columns: 6.5rem minmax(0, 1fr); padding: 12px 14px 12px 12px; gap: 12px; }
  .wclock .city { font-size: 1.1rem; } .wclock .date { font-size: 1.8rem; }
}
.nclock .meta span, .wclock .meta span { white-space: nowrap; }

/* Members' game card on My account */
.game-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: 20px; text-decoration: none; border: 1px solid rgba(95, 245, 232, .35); background: radial-gradient(30rem 12rem at 100% 0%, rgba(95, 245, 232, .14), transparent 70%), rgba(9, 32, 63, .6); }
.game-card:hover { border-color: rgba(95, 245, 232, .7); }
.game-card-text { display: grid; gap: 4px; min-width: 0; flex: 1 1 18rem; }
.game-card b { font-family: var(--font-display); font-size: var(--step-1); }
.game-card-text > span:last-child { color: var(--ink-soft); font-size: .92rem; }

.overlay-card .data-table table { min-width: 0; }
.overlay-card .data-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }

/* TravelHub Tower (ATC game): full-screen radar with a light strip bay */
body:has(.game-main) { background: #2B4C5B; }
body:has(.game-main) .site-header, body:has(.game-main) .site-footer { display: none; }
.game-main { padding: 0; }
.game-main .wrap { max-width: none; padding: 0; }
.game-main #gate { margin: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atc { --atc-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; height: 100dvh; min-height: 32rem; }
.atc-radar { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #2B4C5B; }
.atc-radar canvas { display: block; cursor: crosshair; touch-action: manipulation; }
.atc-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 10px; background: #E7ECEF; color: #1E2A31; font-family: var(--atc-mono); font-size: .74rem; border-left: 1px solid #C9D3D8; }
.atc-top { display: flex; justify-content: space-between; align-items: baseline; }
.atc-exit { color: #4B5D67; text-decoration: none; }
.atc-exit:hover { color: #1E2A31; }
.atc-name { font-weight: 600; letter-spacing: .02em; }
.atc-score { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.atc-score i { font-style: normal; font-size: .62rem; color: rgba(234, 241, 245, .65); font-variant-numeric: tabular-nums; }
.atc-score div { display: grid; padding: 5px 6px; background: #F6F8F9; border: 1px solid #D3DBDF; }
.atc-score span { font-size: .62rem; color: #61737D; text-transform: uppercase; letter-spacing: .06em; }
.atc-score b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.atc-hint { margin: 2px 0 -4px; font-size: .64rem; color: #61737D; }
.atc-msg { height: 4.6rem; overflow-y: auto; padding: 4px 6px; background: #D2DADE; border: 1px solid #BCC7CC; font-size: .68rem; line-height: 1.35; }
.atc-msg p { margin: 0 0 2px; color: #2B3A42; }
.atc-msg .k-good { color: #1C6B3A; } .atc-msg .k-bad, .atc-msg .k-emergency { color: #A32020; font-weight: 600; } .atc-msg .k-warn { color: #8A5A00; }
.atc-strips { flex: 1; min-height: 6rem; overflow-y: auto; display: grid; align-content: start; gap: 2px; padding: 3px; background: #FFFFFF; border: 1px solid #C9D3D8; }
.atc-strip { display: grid; gap: 1px; width: 100%; text-align: left; font: inherit; color: #1E2A31; background: #F7F0D4; border: 0; border-left: 4px solid #CDB45A; padding: 4px 6px; cursor: pointer; }
.atc-strip.dep { background: #DCEEF6; border-left-color: #5A9CBD; }
.atc-strip.emerg { background: #F9D9D6; border-left-color: #C23B3B; }
.atc-strip.sel { outline: 2px solid #1E2A31; outline-offset: -2px; }
.atc-strip .l1, .atc-strip .l2 { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.atc-strip .l2 { color: #4B5D67; font-size: .66rem; }
.atc-empty { margin: 6px; color: #61737D; }
.atc-cmd { display: flex; gap: 4px; }
.atc-cmd input { flex: 1; min-width: 0; font: 600 .8rem var(--atc-mono); text-transform: uppercase; color: #1E2A31; background: #FFF; border: 1px solid #9FB0B8; padding: 6px 7px; border-radius: 0; }
.atc-cmd input:focus { outline: 2px solid #3E7FA3; outline-offset: -1px; }
.atc-cmd button, .atc-ctrl button { font: .74rem var(--atc-mono); color: #1E2A31; background: #FFF; border: 1px solid #9FB0B8; padding: 5px 9px; cursor: pointer; }
.atc-cmd button:hover, .atc-ctrl button:hover { background: #F2F5F6; }
.atc-airport { display: grid; gap: 1px; color: #4B5D67; font-size: .66rem; }
.atc-airport b { color: #1E2A31; font-weight: 500; font-size: .74rem; }
#wind { width: 110px; height: 110px; align-self: center; }
.atc-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.atc-speed { display: inline-flex; }
.atc-speed button + button { border-left: 0; }
.atc-ctrl button[aria-pressed="true"] { background: #1E2A31; color: #FFF; border-color: #1E2A31; }
.atc-quick { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100% - 24px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding: 6px 8px; background: rgba(20, 36, 45, .82); border: 1px solid rgba(207, 221, 227, .25); backdrop-filter: blur(6px); font-family: var(--atc-mono); }
.atc-q-id { color: #FFD166; font-size: .78rem; margin-right: 4px; }
.atc-q-sep { width: 1px; height: 16px; background: rgba(207, 221, 227, .25); margin: 0 3px; }
.atc-chip { font: .72rem var(--atc-mono); color: #E6EEF1; background: transparent; border: 1px solid rgba(207, 221, 227, .35); padding: 4px 7px; cursor: pointer; }
.atc-chip:hover { background: rgba(255, 255, 255, .1); }
.atc-chip.go { border-color: #FFD166; color: #FFD166; }
.atc-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(20, 36, 45, .55); overflow-y: auto; }
.atc-card { width: 100%; max-width: 27rem; display: grid; gap: 12px; padding: 24px; background: #F3F6F7; color: #1E2A31; border: 1px solid #C9D3D8; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); font-size: .92rem; max-height: calc(100dvh - 32px); overflow-y: auto; }
.atc-card.wide { max-width: 40rem; }
.atc-card h2 { margin: 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 1.5rem; letter-spacing: -.01em; }
.atc-card p { margin: 0; color: #3A4A53; }
.atc-card code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .82rem; background: #E1E8EB; padding: 1px 4px; }
.atc-kicker { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .7rem !important; letter-spacing: .12em; text-transform: uppercase; color: #61737D !important; }
.atc-fine { font-size: .8rem; color: #61737D !important; }
.atc-diff { display: inline-flex; justify-self: start; }
.atc-diff button { font: .85rem "JetBrains Mono", ui-monospace, monospace; padding: 7px 14px; background: #FFF; color: #1E2A31; border: 1px solid #9FB0B8; cursor: pointer; }
.atc-diff button + button { border-left: 0; }
.atc-diff button[aria-pressed="true"] { background: #1E2A31; color: #FFF; border-color: #1E2A31; }
.atc-opts { display: grid; gap: 4px; }
.atc-opts .atc-opt-label:not(:first-child) { margin-top: 6px; }
.atc-opt-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #61737D; }
.atc-opts .atc-diff { flex-wrap: wrap; }
.atc-pending { color: #FFC857; }
@media (max-width: 480px) { .atc-opts .atc-diff button { padding: 7px 10px; } }
.atc-go { font: 600 .95rem "JetBrains Mono", ui-monospace, monospace; padding: 11px 16px; color: #FFF; background: #1E2A31; border: 0; cursor: pointer; }
.atc-go:hover { background: #33454F; }
.atc-link { font: .85rem "JetBrains Mono", ui-monospace, monospace; color: #3E7FA3; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.atc-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.atc-big { font-family: "JetBrains Mono", ui-monospace, monospace; }
.atc-big span { font-size: 2.6rem; font-weight: 700; color: #1E2A31; }
.atc-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.atc-table td { padding: 5px 6px; border-bottom: 1px solid #D3DBDF; color: #3A4A53; vertical-align: top; }
.atc-table td:last-child { text-align: right; font-weight: 600; color: #1E2A31; font-variant-numeric: tabular-nums; }
.atc-table.cmds td:last-child { text-align: left; font-weight: 400; color: #3A4A53; }
.atc-table.cmds td:first-child { white-space: nowrap; width: 6.5rem; }
.atc-lb td:first-child { width: 2rem; color: #61737D; text-align: left; font-weight: 400; }
.atc-lb tr.me td { color: #3E7FA3; }
.atc-board { display: grid; gap: 6px; }
.atc-board-title { font-weight: 600; color: #1E2A31 !important; margin-top: 4px !important; }
@media (max-width: 760px) {
  .atc { grid-template-columns: 1fr; grid-template-rows: 58dvh auto; height: auto; }
  .atc-side { border-left: 0; border-top: 1px solid #C9D3D8; }
  .atc-strips { max-height: 14rem; }
  #wind { display: none; }
  #quick-slot .atc-quick { position: static; transform: none; max-width: none; justify-content: flex-start; }
}
/* Tower: photo strips, waypoint chips */
.atc { grid-template-columns: minmax(0, 1fr) 20rem; }
.atc-strip { grid-template-columns: 4.6rem minmax(0, 1fr); align-items: center; gap: 7px; padding: 4px 6px 4px 4px; }
.atc-strip:focus-visible { outline: 2px solid #3E7FA3; outline-offset: -2px; }
.atc-strip-txt { display: grid; gap: 1px; min-width: 0; }
.atc-ph { position: relative; display: block; width: 4.6rem; height: 3rem; overflow: hidden; background: #C9D3D8; }
.atc-ph a, .atc-ph img { display: block; width: 100%; height: 100%; }
.atc-ph img { object-fit: cover; }
.atc-ph-none { display: grid; place-items: center; height: 100%; font-size: .62rem; color: #61737D; }
.atc-ph-by { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 3px; font-size: .5rem; line-height: 1.5; color: #FFF; background: rgba(0, 0, 0, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atc-q-lbl { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(207, 221, 227, .6); margin: 0 2px 0 4px; }
.atc-q-break { flex-basis: 100%; height: 0; }
.atc-chip.req { border-color: #7FD8FF; color: #7FD8FF; }
.atc-ph-credit { font-size: .6rem; color: #61737D; }
.atc-credit { position: absolute; right: 6px; bottom: 4px; margin: 0; max-width: calc(100% - 12px); font: .58rem "JetBrains Mono", ui-monospace, monospace; color: rgba(230, 238, 241, .6); text-align: right; text-shadow: 0 0 3px rgba(0, 0, 0, .8); pointer-events: auto; }
.atc-credit a { color: inherit; }
@media (max-width: 760px) { .atc-credit { font-size: .5rem; } }
/* Tower control panel: navy-to-steel gradient, tower image top right */
.atc-side { background: linear-gradient(180deg, #09203F 0%, #537895 100%); color: #EAF1F5; border-left: 1px solid rgba(255, 255, 255, .12); }
.atc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.atc-top-text { display: grid; gap: 4px; padding-top: 2px; }
.atc-exit { color: rgba(234, 241, 245, .7); }
.atc-exit:hover { color: #FFF; }
.atc-name { color: #FFF; }
.atc-tower { height: 5.5rem; width: auto; max-width: 55%; object-fit: contain; display: block; }
.atc-score div { background: transparent; border: 1px solid rgba(255, 255, 255, .18); }
.atc-score span { color: rgba(234, 241, 245, .65); }
.atc-score b { color: #FFF; }
.atc-strips { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); }
.atc-empty { color: rgba(234, 241, 245, .7); }
.atc-ph-credit, .atc-airport { color: rgba(234, 241, 245, .7); }
.atc-airport b { color: #FFF; }
.atc-cmd input { border-color: rgba(255, 255, 255, .35); }
.atc-cmd button, .atc-ctrl button { background: rgba(255, 255, 255, .1); color: #FFF; border-color: rgba(255, 255, 255, .3); }
.atc-cmd button:hover, .atc-ctrl button:hover { background: rgba(255, 255, 255, .2); }
.atc-ctrl button[aria-pressed="true"] { background: #FFF; color: #09203F; border-color: #FFF; }
/* Radio calls now appear at the top of the radar */
.atc-radio { position: absolute; left: 12px; top: 10px; max-width: min(36rem, calc(100% - 24px)); display: grid; gap: 3px; pointer-events: none; font: .74rem/1.35 "JetBrains Mono", ui-monospace, monospace; }
.atc-radio p { margin: 0; padding: 3px 8px; justify-self: start; color: #EAF1F5; background: rgba(9, 32, 63, .72); transition: opacity .8s; }
.atc-radio p.old { opacity: 0; }
.atc-radio .k-good { color: #9BF0B7; } .atc-radio .k-bad, .atc-radio .k-emergency { color: #FF9C9C; font-weight: 600; } .atc-radio .k-warn { color: #FFD98A; }
@media (max-width: 760px) { .atc-tower { height: 3.5rem; } .atc-radio { font-size: .66rem; } }

/* My account: left feature menu + compact single-line clocks */
.member-layout { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 24px; align-items: start; }
.side-menu { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); display: grid; gap: 4px; padding: 14px 10px; border-radius: 20px; background: rgba(9, 32, 63, .6); border: 1px solid var(--line); }
.side-menu-title { margin: 0 8px 6px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu-item svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-item span { flex: 1; min-width: 0; }
.menu-item em { font-style: normal; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-faint); }
a.menu-item:hover, a.menu-item:focus-visible { background: var(--glass-strong); }
.menu-item.soon { color: var(--ink-soft); cursor: default; }
.clock-strip { display: grid; gap: 8px; margin-top: -6px; }
.clock-strip .clocks { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 6px 2px 6px; grid-template-columns: none; }
.clock-edit { justify-self: start; font-size: .8rem; }
.clock-strip .clock-add { margin-top: 2px; }
/* 40% smaller clock faces */
.clock-strip .nclock { flex: 0 0 auto; width: 7rem; gap: 3px; padding: 10px 6px 8px; border-radius: 14px; }
.clock-strip .nclock svg { max-width: 6.3rem; }
.clock-strip .nclock .city { font-size: .66rem; letter-spacing: .03em; }
.clock-strip .nclock .meta { font-size: .56rem; }
.clock-strip .wclock { flex: 0 0 auto; width: 12.5rem; grid-template-columns: 4.8rem minmax(0, 1fr); gap: 10px; padding: 9px 12px 9px 9px; border-radius: 16px; }
.clock-strip .wclock .city { font-size: .82rem; }
.clock-strip .wclock .date { font-size: 1.32rem; }
.clock-strip .wclock .meta { font-size: .56rem; margin-top: 2px; }
.clock-strip .clock-remove { top: -6px; right: -4px; width: 20px; height: 20px; font-size: .8rem; }
@media (max-width: 860px) {
  .member-layout { grid-template-columns: 1fr; gap: 14px; }
  .side-menu { position: static; display: flex; overflow-x: auto; padding: 8px; gap: 6px; }
  .side-menu-title { display: none; }
  .menu-item { flex: 0 0 auto; padding: 8px 12px; font-size: .88rem; }
}
.menu-item, .menu-item span { font-family: var(--font-body); white-space: nowrap; }
.member-layout { grid-template-columns: 15rem minmax(0, 1fr); }
.clock-strip .nclock { width: 7.8rem; }
@media (max-width: 860px) { .member-layout { grid-template-columns: 1fr; } }

/* Flights: "Who's up there?" */
body:has(.fl-main) { background: #09203F; }
body:has(.fl-main) .site-header, body:has(.fl-main) .site-footer { display: none; }
.fl-main { padding: 0; }
.fl-main .wrap { max-width: none; padding: 0; }
.fl-main #gate { margin: 24px; }
.fl { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100dvh; min-height: 30rem; background: #09203F; color: #FFF; }
.fl-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.fl-back { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; }
.fl-back:hover { color: #FFF; }
.fl-h1 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 0; letter-spacing: -.01em; }
.fl-h1 svg { width: 20px; height: 20px; fill: none; stroke: #FFF; stroke-width: 1.8; }
.fl-search { display: flex; gap: 6px; margin-left: auto; flex: 0 1 20rem; min-width: 0; }
.fl-search input { flex: 1; min-width: 0; font: inherit; font-size: .9rem; color: #FFF; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; padding: 8px 12px; }
.fl-search input::placeholder { color: rgba(255, 255, 255, .5); }
.fl-search input:focus { outline: none; border-color: #FF6633; }
.fl-search button { font: inherit; font-weight: 600; font-size: .85rem; color: #FFF; background: #FF6633; border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.fl-units { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; overflow: hidden; }
.fl-units button { font: inherit; font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .7); background: transparent; border: 0; padding: 6px 10px; cursor: pointer; }
.fl-units button[aria-pressed="true"] { background: rgba(255, 255, 255, .18); color: #FFF; }
.fl-trip { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.fl-trip-bar { position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.fl-trip-bar i { position: absolute; inset: 0 auto 0 0; background: #FF6633; border-radius: 2px; }
.fl-trip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.fl-trip-row { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.fl-trip-row b { color: #FFF; font-weight: 600; }
.fl-count { padding: 5px 10px; border-radius: 12px; background: rgba(255, 255, 255, .15); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.fl-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; min-height: 0; }
.fl-globe-wrap { position: relative; min-height: 0; }
.fl-globe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #09203F; }
.fl-loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .7); pointer-events: none; }
.fl-chips { position: absolute; top: 10px; left: 12px; display: grid; gap: 6px; justify-items: start; pointer-events: none; }
.fl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 14px; background: rgba(9, 32, 63, .85); border: 1px solid rgba(255, 255, 255, .2); font-size: .75rem; font-weight: 600; }
.fl-chip i { width: 8px; height: 8px; border-radius: 50%; background: #34A853; }
.fl-chip i.red { width: 10px; height: 10px; background: #E53935; border: 1.5px solid #FFF; }
.fl-locate { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(9, 32, 63, .85); border: 1px solid rgba(255, 255, 255, .35); cursor: pointer; }
.fl-locate svg { width: 20px; height: 20px; fill: none; stroke: #FFF; stroke-width: 1.8; }
.fl-side { display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow-y: auto; border-left: 1px solid rgba(255, 255, 255, .1); }
.fl-attr { margin: auto 0 0; font-size: .66rem; color: rgba(255, 255, 255, .45); text-align: center; }
.fl-hint { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); display: grid; gap: 10px; }
.fl-hint p { margin: 0; font-size: .85rem; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.fl-card { border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.fl-body { padding: 14px; display: grid; gap: 10px; }
.fl-photo { position: relative; height: 10rem; background: rgba(255, 255, 255, .06); }
.fl-photo a, .fl-photo img { display: block; width: 100%; height: 100%; }
.fl-photo img { object-fit: cover; }
.fl-photo.loading, .fl-photo.empty { height: 4.5rem; display: grid; place-items: center; font-size: .78rem; color: rgba(255, 255, 255, .5); }
.fl-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 10px; font-size: .7rem; background: rgba(0, 0, 0, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-head { display: flex; align-items: flex-start; gap: 12px; }
.fl-head > div { flex: 1; min-width: 0; }
.fl-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.fl-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fl-mine { font-size: .68rem; font-weight: 700; color: #CFE0FF; background: rgba(66, 133, 244, .3); border-radius: 8px; padding: 2px 8px; }
.fl-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 3px; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.fl-reg { font: inherit; font-size: .8rem; font-weight: 700; color: #FF6633; background: rgba(255, 102, 51, .12); border: 1px solid rgba(255, 102, 51, .6); border-radius: 8px; padding: 1px 8px; cursor: pointer; }
.fl-x { font: inherit; font-size: 1.4rem; line-height: 1; color: rgba(255, 255, 255, .8); background: none; border: 0; cursor: pointer; padding: 0 2px; }
.fl-muted { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .55); }
.fl-retry { font: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: #FF6633; }
.fl-route { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.fl-route-row { display: flex; align-items: center; gap: 10px; }
.fl-end { flex: 1; min-width: 0; display: grid; }
.fl-end.right { text-align: right; }
.fl-end b { font-size: 1.25rem; font-weight: 800; }
.fl-end span { font-size: .75rem; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-plane { color: #FF6633; font-size: 1.1rem; }
.fl-note { margin: 8px 0 0; font-size: .7rem; color: #FBBC05; }
.fl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fl-stat { display: grid; gap: 2px; min-width: 0; }
.fl-stat span { font-size: .68rem; color: rgba(255, 255, 255, .6); }
.fl-stat b { font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.fl-foot { margin: 0; font-size: .7rem; color: rgba(255, 255, 255, .5); }
.fl-legend { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: rgba(255, 255, 255, .7); }
.fl-legend small { color: rgba(255, 255, 255, .5); }
.fl-grad { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, hsl(20,85%,50%), hsl(90,85%,50%), hsl(160,85%,50%), hsl(230,85%,50%), hsl(300,85%,50%)); }
.fl-badge { flex: none; background: #FFF; color: #0B2545; font-weight: 800; font-size: .88rem; border-radius: 8px; padding: 4px 8px; margin-top: 2px; }
.fl-sheet-bg { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; justify-items: center; background: rgba(0, 0, 0, .5); }
.fl-sheet { width: 100%; max-width: 34rem; max-height: 85dvh; overflow-y: auto; background: #0E2A4F; color: #FFF; border-radius: 24px 24px 0 0; padding: 20px 20px 28px; display: grid; gap: 8px; }
.fl-sheet h2 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.fl-drow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }
.fl-drow > span { color: rgba(255, 255, 255, .6); }
.fl-drow > div { display: grid; text-align: right; }
.fl-drow small { color: rgba(255, 255, 255, .45); font-size: .7rem; }
.fl-sources { margin: 8px 0 0; font-size: .64rem; color: rgba(255, 255, 255, .4); }
@media (min-width: 900px) { .fl-sheet-bg { align-items: center; } .fl-sheet { border-radius: 24px; } }
@media (max-width: 860px) {
  .fl { height: auto; grid-template-rows: auto auto; }
  .fl-main-grid { grid-template-columns: 1fr; }
  .fl-globe-wrap { height: 62dvh; }
  .fl-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); overflow: visible; }
  .fl-search { order: 3; flex-basis: 100%; margin-left: 0; }
}

/* ---------- Itinerary Planner (it-) ---------- */
body:has(.it-main) { min-height: 100vh; background: #537895 linear-gradient(160deg, #09203F 0%, #2E4A6B 55%, #537895 100%) no-repeat; background-size: 100% 100%; }
body:has(.it-main) .site-header, body:has(.it-main) .site-footer { display: none; }
body.it-noscroll { overflow: hidden; }
.it-main { padding: 0; }
.it-main .wrap { max-width: 78rem; padding: 0 20px 48px; }
.it-main #gate { margin: 24px 0; }
.it { color: #FFF; }
.it-bar { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 22px; }
.it-back { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; }
.it-back:hover { color: #FFF; }
.it-h1 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.01em; }
.it-saved-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .85rem; font-weight: 600; color: #FFF; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.it-saved-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.it-saved-btn b { background: #C33764; border-radius: 999px; min-width: 1.4em; padding: 0 5px; font-size: .72rem; line-height: 1.5; text-align: center; }
.it-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.it-btn { font: inherit; font-weight: 600; font-size: .95rem; color: #FFF; background: #C33764; border: 0; border-radius: 12px; padding: 11px 20px; cursor: pointer; }
.it-btn:hover:not(:disabled) { filter: brightness(1.08); }
.it-btn:disabled { opacity: .6; cursor: default; }
.it-btn.glow { background: linear-gradient(120deg, #C33764, #1D2671); min-width: 15rem; }
.it-btn.ghost { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); }
.it-btn.small { font-size: .82rem; padding: 7px 12px; border-radius: 10px; }
.it-eyebrow { margin: 0 0 2px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.it-muted { color: rgba(255, 255, 255, .6); }
.it-fine { font-size: .72rem; color: rgba(255, 255, 255, .5); margin: 8px 0 0; }

/* setup wizard */
.it-setup { display: grid; place-items: start center; padding-top: 4vh; }
.it-wizard { width: min(100%, 38rem); padding: 28px; display: grid; gap: 16px; }
.it-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.it-progress i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.it-progress i.on { background: linear-gradient(90deg, #C33764, #F0207E); }
.it-step-count { margin: 0; font-size: .78rem; color: rgba(255, 255, 255, .6); }
.it-step h2 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; margin: 0 0 16px; letter-spacing: -.01em; }
.it-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: #FFF; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: 12px 14px; color-scheme: dark; }
.it-input::placeholder { color: rgba(255, 255, 255, .45); }
.it-input:focus { outline: none; border-color: #F0207E; }
.it-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.it-dates label, .it-travellers { display: grid; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.it-travellers { margin-top: 14px; grid-template-columns: 1fr auto; align-items: center; }
.it-stepper { display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; overflow: hidden; }
.it-stepper button { font: inherit; font-size: 1.1rem; width: 40px; height: 40px; color: #FFF; background: rgba(255, 255, 255, .08); border: 0; cursor: pointer; }
.it-stepper output { min-width: 2.5em; text-align: center; font-weight: 600; color: #FFF; }
.it-chips, .it-pace { display: flex; flex-wrap: wrap; gap: 8px; }
.it-chip, .it-pace-btn { font: inherit; font-size: .9rem; color: #FFF; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.it-pace-btn { flex: 1; border-radius: 12px; padding: 12px; font-weight: 600; }
.it-chip[aria-pressed="true"], .it-pace-btn[aria-pressed="true"] { background: #C33764; border-color: #C33764; }
.it-error { margin: 0; color: #FFB4C8; font-size: .9rem; }
.it-nav { display: flex; gap: 10px; justify-content: flex-end; }
.it-nav #step-back { margin-right: auto; }

/* results */
.it-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.it-results-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -.02em; }
.it-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.it-toast { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(46, 160, 98, .25); border: 1px solid rgba(46, 160, 98, .5); font-size: .9rem; }
.it-toast.bad { background: rgba(195, 55, 100, .25); border-color: rgba(195, 55, 100, .6); }
.it-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.it-tab { flex: none; display: grid; gap: 1px; text-align: left; font: inherit; color: #FFF; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 8px 14px; cursor: pointer; }
.it-tab b { font-size: .9rem; }
.it-tab span { font-size: .75rem; color: rgba(255, 255, 255, .7); }
.it-tab[aria-selected="true"] { background: #FFF; color: #09203F; border-color: #FFF; }
.it-tab[aria-selected="true"] span { color: #53607A; }
.it-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.it-map-col { position: sticky; top: 16px; }
.it-map-card { position: relative; height: min(72vh, 40rem); border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); background: #1B3350; }
.it-map-card.full { position: fixed; inset: 0; height: auto; z-index: 60; border-radius: 0; border: 0; }
.it-map-card .it-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.it-map-full { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; background: #FFF; border: 0; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: pointer; }
.it-map-full svg { width: 18px; height: 18px; fill: none; stroke: #09203F; stroke-width: 2; }
.it-mode { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; background: #FFF; border-radius: 999px; padding: 3px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.it-mode button { font: inherit; font-size: .82rem; font-weight: 600; color: #09203F; background: transparent; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.it-mode button[aria-pressed="true"] { background: #C33764; color: #FFF; }
.it-attr { font-size: .7rem; color: rgba(255, 255, 255, .5); margin: 8px 2px 0; }
.it-marker { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #FFF; background: #C33764; color: #FFF; font: 700 .8rem/1 var(--font-body); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); cursor: pointer; padding: 0; }
.it-marker.on { background: #09203F; transform: scale(1.15); }
.it-day-card { padding: 18px; }
.it-day-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.it-day-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.it-warn { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 196, 0, .16); border: 1px solid rgba(255, 196, 0, .45); font-size: .85rem; }
.it-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0 6px; border-radius: 12px; background: rgba(9, 32, 63, .35); }
.it-summary div { display: grid; gap: 2px; padding: 10px 8px; text-align: center; }
.it-summary div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.it-summary b { font-size: .98rem; font-variant-numeric: tabular-nums; }
.it-summary span { font-size: .7rem; color: rgba(255, 255, 255, .65); }
.it-stops { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; }
.it-stop { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; }
.it-stop.locked { border-color: rgba(255, 209, 102, .6); }
.it-stop-main { display: flex; gap: 12px; align-items: flex-start; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 12px; cursor: pointer; min-width: 0; }
.it-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #C33764; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.it-stop-txt { min-width: 0; display: grid; gap: 3px; }
.it-stop-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: rgba(255, 255, 255, .7); }
.it-cat { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.it-time { font-weight: 700; color: #FFF; font-variant-numeric: tabular-nums; }
.it-ig { background: linear-gradient(90deg, #F58529, #DD2A7B, #8134AF); color: #FFF; border-radius: 999px; padding: 1px 8px; font-size: .68rem; font-weight: 700; }
.it-stop h4 { margin: 0; font-size: 1rem; }
.it-notes { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .75); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.it-stop-tools { display: flex; gap: 2px; padding: 8px 8px 0 0; align-items: flex-start; }
.it-icon { width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: rgba(255, 255, 255, .65); cursor: pointer; }
.it-icon:hover { background: rgba(255, 255, 255, .1); color: #FFF; }
.it-icon.on { color: #FFD166; }
.it-icon.armed { color: #FF8FAB; background: rgba(195, 55, 100, .25); }
.it-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.it-details { grid-column: 1 / -1; padding: 0 14px 14px 50px; display: grid; gap: 10px; }
.it-photo { width: 100%; max-height: 15rem; object-fit: cover; border-radius: 12px; }
.it-addr { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.it-sec h5 { margin: 0 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
.it-sec p { margin: 0; font-size: .9rem; line-height: 1.5; }
.it-link { display: inline-block; margin-top: 4px; color: #FF9EC0; font-size: .85rem; font-weight: 600; text-decoration: none; }
.it-link:hover { text-decoration: underline; }
.it-dchips { display: flex; flex-wrap: wrap; gap: 6px; }
.it-dchips span { font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.it-travel { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0 8px 22px; margin-left: 12px; border-left: 2px dashed rgba(255, 255, 255, .25); font-size: .8rem; color: rgba(255, 255, 255, .75); }
.it-travel-ico { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; margin-top: 1px; }
.it-travel div { display: grid; gap: 2px; }
.it-travel small { font-size: .74rem; color: rgba(255, 255, 255, .6); }

/* saved sheet */
.it-sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(4, 12, 24, .6); display: grid; place-items: center; padding: 16px; }
.it-sheet { width: min(100%, 30rem); max-height: 80vh; overflow: auto; background: linear-gradient(160deg, #0E2A4E, #2E4A6B); color: #FFF; border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; padding: 18px; }
.it-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.it-sheet-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; }
.it-x { font-size: 1.5rem; line-height: 1; color: #FFF; background: none; border: 0; cursor: pointer; padding: 4px 8px; }
.it-saved-row { display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .12); }
.it-saved-open { flex: 1; display: grid; gap: 2px; text-align: left; font: inherit; color: #FFF; background: none; border: 0; padding: 12px 4px; cursor: pointer; }
.it-saved-open span { font-size: .8rem; color: rgba(255, 255, 255, .65); }
.it-saved-open:hover b { text-decoration: underline; }

@media (max-width: 900px) {
  .it-grid { grid-template-columns: 1fr; }
  .it-map-col { position: static; order: -1; }
  .it-map-card { height: 22rem; }
}
@media (max-width: 520px) {
  .it-wizard { padding: 20px; }
  .it-dates { grid-template-columns: 1fr; }
  .it-summary { grid-template-columns: repeat(2, 1fr); }
  .it-summary div:nth-child(3) { border-left: 0; }
  .it-details { padding-left: 14px; }
  .it-results-head h2 { font-size: 1.5rem; }
}

/* ---------- Ships (sh-), reuses the Flights layout ---------- */
.fl-globe-wrap .sh-map { position: absolute; inset: 0; width: 100%; height: 100%; background: #AAD3DF; }
.sh-legend { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 80px); }
.sh-leg { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .72rem; font-weight: 600; color: #FFF; background: rgba(9, 32, 63, .85); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 4px 9px; cursor: pointer; }
.sh-leg i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); }
.sh-leg b { font-weight: 600; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.sh-leg.off { opacity: .45; text-decoration: line-through; }
.sh-type { display: inline-flex; align-items: center; gap: 6px; }
.sh-type::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); border: 1px solid rgba(255, 255, 255, .7); }
.sh-status { margin: 0; justify-self: start; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(52, 168, 83, .22); border: 1px solid rgba(52, 168, 83, .5); }
.sh-status.still { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.sh-voyage { display: grid; gap: 2px; }
.sh-voyage span { font-size: .68rem; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .06em; }
.sh-voyage b { font-size: 1.05rem; }
.sh-voyage small { font-size: .78rem; color: rgba(255, 255, 255, .75); }
.sh-rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .82rem; }
.sh-rows dt { color: rgba(255, 255, 255, .6); }
.sh-rows dd { margin: 0; font-weight: 600; }
.sh-links { display: flex; gap: 14px; }
.sh-links a { color: #FF9EC0; font-size: .82rem; font-weight: 600; text-decoration: none; }
.sh-links a:hover { text-decoration: underline; }
.sh-photo { position: relative; }
.sh-photo a { display: block; }
.sh-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 4px; font-size: .62rem; color: rgba(255, 255, 255, .85); background: linear-gradient(transparent, rgba(0, 0, 0, .6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Trains (tr-), reuses the Flights / Ships layout ---------- */
.sh-status.late { background: rgba(229, 57, 53, .22); border-color: rgba(229, 57, 53, .55); }
.tr-stops h3 { margin: 0 0 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
.tr-stops ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid rgba(255, 255, 255, .2); display: grid; gap: 6px; }
.tr-stops li { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; position: relative; }
.tr-stops li::before { content: ""; position: absolute; left: -17px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: #FFF; }
.tr-stops li b { font-variant-numeric: tabular-nums; font-weight: 600; }
.tr-stops li b.late { color: #FF8A80; }
.tr-jumps { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.fl-end span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .55); }

/* ---------- My flights ---------- */
.mf { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.mf > * { min-width: 0; }
.mf-table { max-width: 100%; position: relative; }
.mf-back { display: inline-block; color: var(--ink-soft); font-size: 0.88rem; text-decoration: none; margin-bottom: 6px; }
.mf-back:hover { color: var(--ink); }
.mf-sum-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mf-sum-head h2 { margin: 0; }
.mf-sum-head .seg { flex-wrap: wrap; }
.mf .tile .value { font-size: 1.9rem; }
.mf-form { display: grid; gap: 16px; }
.mf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.mf-grid .field input, .mf-grid .field select { box-sizing: border-box; height: 50px; padding-top: 0; padding-bottom: 0; }
.field select { font: inherit; color: var(--ink); background: rgba(6, 21, 41, 0.65); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.field select:focus { outline: none; border-color: rgba(240, 32, 126, 0.8); box-shadow: 0 0 0 3px rgba(240, 32, 126, 0.25); }
.field input[readonly] { color: var(--ink-soft); background: rgba(6, 21, 41, 0.35); }
.mf-ap { position: relative; }
.mf-suggest { position: absolute; z-index: 20; top: 74px; left: 0; right: 0; margin: 0; padding: 4px; list-style: none; border-radius: 12px; background: #0b2242; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); max-height: 18rem; overflow-y: auto; }
.mf-suggest li { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 0.88rem; color: var(--ink-soft); }
.mf-suggest li b { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mf-suggest li:hover { background: var(--glass-strong); }
.mf-table table { min-width: 72rem; }
.mf-table td { white-space: nowrap; }
.mf-table td:nth-child(2), .mf-table td:nth-child(4) { white-space: normal; min-width: 11rem; }
.mf-table td.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.mf-table td.num, .mf-table th.num { text-align: right; }
.mf-table td.logo img { height: 20px; width: auto; max-width: 84px; display: block; background: #fff; border-radius: 4px; padding: 2px 4px; }
.mf-table td.acts, .mf-table th:last-child { position: sticky; right: 0; background: #0a1f3c; box-shadow: -8px 0 12px -8px rgba(0, 0, 0, 0.6); }
.mf-table td.acts > div { display: flex; gap: 6px; }
.mf-method { color: var(--ink-faint); }
@media (max-width: 860px) { .mf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mf-grid { grid-template-columns: 1fr; } }
.mf-notes { grid-column: span 2; }
.mf-notes textarea { min-height: 50px; height: 50px; }
.mf-table td.notes { max-width: 16rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .mf .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .mf .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mf-notes { grid-column: auto; } }
.mf .tile .value.mf-long { font-size: 1.15rem; line-height: 1.3; }

/* ---------- My World ---------- */
.mw { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.mw .dash-head { align-items: flex-end; }
.mw-home { min-width: 220px; margin: 0; }
.mw-stage { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
.mw-globe-wrap { position: relative; height: min(72vh, 680px); min-height: 420px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #0f3b33 0%, #08211c 55%, #04130f 100%); }
#mw-globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#mw-globe:active { cursor: grabbing; }
.mw-country { transition: fill .4s; }
.mw-country:hover { filter: brightness(1.25); }
.mw-labels text { font: 600 10px/1 system-ui, sans-serif; fill: #e9fff4; paint-order: stroke; stroke: rgba(4,19,15,.85); stroke-width: 2.5px; pointer-events: none; }
.mw-hud { position: absolute; left: 20px; top: 16px; color: #fff; pointer-events: none; display: flex; flex-direction: column; }
.mw-big { font-size: 46px; font-weight: 800; line-height: 1; color: #DAAA44; }
.mw-big-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.mw-year { margin-top: 10px; font-size: 30px; font-weight: 700; opacity: .9; }
.mw-tip { position: absolute; z-index: 3; max-width: 230px; padding: 8px 10px; border-radius: 8px; background: rgba(4,19,15,.92); color: #fff; font-size: 13px; pointer-events: none; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.mw-tip span { opacity: .8; font-size: 12px; }
.mw-controls { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(4,19,15,.72); color: #fff; backdrop-filter: blur(6px); }
.mw-slider { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; font-size: 13px; min-width: 0; }
.mw-slider span { white-space: nowrap; min-width: 92px; }
.mw-slider input { flex: 1; min-width: 80px; accent-color: #DAAA44; }
.mw-controls .seg button { color: #fff; }
.mw-controls .seg button[aria-pressed="false"] { opacity: .45; }
.mw-controls .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.mw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.mw-dot.air { background: #F0207E; } .mw-dot.rail { background: #2DD4BF; }
.mw-side { padding: 18px; border-radius: 18px; background: rgba(9, 32, 63, 0.6); border: 1px solid var(--line); align-self: stretch; align-content: start; display: grid; gap: 4px; }
.mw-tiles .value { font-size: 1.8rem; white-space: nowrap; }
.mw-side h2 { margin: 0 0 8px; font-size: 1.05rem; }
.mw-donut svg { width: 100%; max-width: 190px; display: block; margin: 0 auto; }
.mw-donut-n { font-size: 30px; font-weight: 800; fill: currentColor; }
.mw-donut-l { font-size: 11px; fill: currentColor; opacity: .65; text-transform: uppercase; letter-spacing: .06em; }
.mw-legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 14px; }
.mw-legend li { display: flex; align-items: center; gap: 8px; }
.mw-legend li.off { opacity: .4; }
.mw-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mw-legend b { margin-left: auto; }
.mw-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mw-table td.mw-cname { white-space: nowrap; font-weight: 600; }
@media (max-width: 1100px) { .mw-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .mw-stage { grid-template-columns: minmax(0, 1fr); } .mw-side { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; } .mw-side h2 { grid-column: 1 / -1; } }
@media (max-width: 600px) { .mw-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mw-globe-wrap { height: 70vh; min-height: 380px; } .mw-big { font-size: 34px; } .mw-side { grid-template-columns: 1fr; } }

/* ---------- Travel companions & trip documents (My flights / My trains) ---------- */
.tx-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.7rem; white-space: nowrap; color: #2DD4BF; background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.35); vertical-align: 1px; }
.tx-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tx-count { font-size: 0.75rem; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
dialog.tx { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: #0b2140; color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
dialog.tx::backdrop { background: rgba(2, 10, 24, 0.7); backdrop-filter: blur(3px); }
.tx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tx-head h2 { font-size: var(--step-1); margin: 0; overflow-wrap: anywhere; }
.tx-close { background: none; border: 0; color: var(--ink-soft); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.tx-close:hover { color: var(--ink); }
.tx-sub { color: var(--ink-faint); font-size: 0.85rem; margin: 2px 0 12px; }
.tx-from { margin: 0 0 12px; }
.tx-sec { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; display: grid; gap: 10px; }
.tx-sec h3 { font-size: 1rem; margin: 0; }
.tx-sec .hint { color: var(--ink-faint); font-size: 0.8rem; margin: 0; }
.tx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tx-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.tx-list li.tx-none { background: none; padding: 2px 0; color: var(--ink-faint); font-size: 0.9rem; }
.tx-name { font-weight: 600; overflow-wrap: anywhere; text-align: left; }
.tx-meta { color: var(--ink-faint); font-size: 0.8rem; margin-right: auto; }
.tx-list .linkish.danger { color: #ff8a9a; }
.tx-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tx-row input[type="text"], .tx-row select { flex: 1 1 180px; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--ink); font: inherit; }
.tx-row select option { color: #111; }
.tx-row input[type="file"] { flex: 1 1 200px; min-width: 0; font-size: 0.85rem; color: var(--ink-soft); }
.tx-msg { margin: 0; font-size: 0.85rem; color: #7ee2b8; min-height: 1em; }
.tx-msg:empty { display: none; }
.tx-msg.bad { color: #ff8a9a; }
.uname-form { display: grid; gap: 10px; margin-top: 4px; }

/* ---------- My World: editing ---------- */
.mw-head-tools { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.mw-fix-note { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.mw-edit h3 { font-size: 1.05rem; margin: 0; }
.mw-edit .hint { color: var(--ink-faint); font-size: 0.85rem; margin: 0; max-width: 60rem; }
.mw-edit-sec { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.mw-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--ink-soft); white-space: nowrap; }
.mw-fix-list { display: grid; gap: 10px; }
.mw-fix { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(255, 255, 255, 0.03); display: grid; gap: 10px; }
.mw-fix-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mw-fix-head span { color: var(--ink-faint); font-size: 0.85rem; }
.mw-fix-ends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mw-end { display: grid; gap: 6px; min-width: 0; }
.mw-end-label { font-size: 0.85rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.mw-end-ok { font-size: 0.85rem; color: #7ee2b8; }
.mw-end-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.mw-end-row select, .mw-end-row input { width: 100%; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--ink); font: inherit; font-size: 0.9rem; }
.mw-end-row select option { color: #111; }
.mw-city { position: relative; }
.mw-end-note { font-size: 0.8rem; color: var(--ink-faint); }
.mw-end-note.sugg { color: #DAAA44; }
.mw-fix-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mw-place-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 10px; align-items: end; }
.mw-place-form .field { margin: 0; }
@media (max-width: 900px) { .mw-fix-ends { grid-template-columns: minmax(0, 1fr); } .mw-place-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .mw-end-row { grid-template-columns: minmax(0, 1fr); } .mw-place-form { grid-template-columns: minmax(0, 1fr); } }
.mw-city .mf-suggest, .mf-place .mf-suggest { top: calc(100% + 4px); min-width: 220px; }
.mf-place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin-top: 6px; }

/* ---------- Row action icons (My flights / My trains) ---------- */
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s, border-color .15s; flex: none; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--ink); background: var(--glass-strong); }
.icon-btn:focus-visible { outline: 2px solid #2DD4BF; outline-offset: 2px; }
.icon-btn.danger { color: #ff8a9a; }
.icon-btn.danger:hover { background: rgba(255, 92, 120, 0.14); border-color: rgba(255, 92, 120, 0.45); }
.icon-btn.armed, .icon-btn.armed:hover { width: auto; padding: 0 10px; font: inherit; font-size: 0.8rem; font-weight: 600; color: #fff; background: #d6385c; border-color: #d6385c; }
.icon-btn:disabled { opacity: .5; cursor: default; }
.icon-badge { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #2DD4BF; color: #04211c; font-size: 0.68rem; font-weight: 700; line-height: 17px; text-align: center; pointer-events: none; }
.mf-table td.acts > div { gap: 6px; align-items: center; }

/* ---------- My flights: summary with background video ---------- */
.mf-summary { position: relative; overflow: hidden; isolation: isolate; }
.mf-sum-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
.mf-summary::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 21, 41, 0.62) 0%, rgba(6, 21, 41, 0.18) 45%, rgba(6, 21, 41, 0.6) 100%); }
.mf-summary.no-video::before { content: none; }
.mf-summary:not(.no-video) .tile { background: rgba(9, 32, 63, 0.55); border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mf-summary:not(.no-video) .mf-sum-head .seg { background: rgba(9, 32, 63, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mf-summary:not(.no-video) .table-toggle { background: rgba(9, 32, 63, 0.7); border-radius: 12px; padding: 8px 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mf-summary:not(.no-video) h2 { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.mf-year-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mf-year-row .seg { flex-wrap: wrap; }
.mf-year-label { font-size: 0.85rem; color: var(--ink-soft); }
.mf-summary:not(.no-video) .mf-year-row .seg { background: rgba(9, 32, 63, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mf-summary:not(.no-video) .mf-year-label { color: var(--ink); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }

/* ---------- Two-step verification ---------- */
.mfa-card { max-width: 30rem; }
.mfa-card section { display: grid; gap: 18px; }
.mfa-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 16px; color: var(--ink-soft); }
.mfa-steps li::marker { color: var(--ink); font-weight: 700; }
.mfa-steps b { color: var(--ink); }
.mfa-qr { margin: 10px 0 6px; width: 196px; height: 196px; padding: 10px; border-radius: 14px; background: #fff; display: grid; place-items: center; }
.mfa-qr img { width: 176px; height: 176px; image-rendering: pixelated; }
.mfa-qr img:not([src]) { visibility: hidden; }
.mfa-key summary { cursor: pointer; font-size: 0.88rem; color: var(--ink-soft); }
.mfa-key p { margin: 8px 0 0; font-size: 0.88rem; }
.mfa-key code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; word-break: break-all; color: var(--ink); background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 6px; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.6rem !important; letter-spacing: 0.4em; text-align: center; max-width: 14rem; }
.mfa-steps .form { margin-top: 10px; }
.mfa-foot { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.mfa-foot .linkish { margin-left: auto; }

/* ---------- Travel articles (e.g. Discover Japan) ---------- */
.story-main .wrap { padding-block: 24px 64px; }
.story { display: grid; gap: 0; }
.story-hero { position: relative; border-radius: 24px; overflow: hidden; min-height: clamp(420px, 68vh, 640px); display: flex; align-items: flex-end; isolation: isolate; }
.story-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.story-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 21, 41, 0.95) 0%, rgba(6, 21, 41, 0.7) 45%, rgba(6, 21, 41, 0.15) 80%); }
.story-hero-text { padding: clamp(24px, 5vw, 56px); max-width: 52rem; display: grid; gap: 14px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.story-hero .eyebrow { color: #FFD166; font-weight: 600; }
.story-hero h1 { font-family: var(--font-display); font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.story-dek { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); margin: 0; max-width: 42rem; }
.story-meta { font-size: var(--step--1); color: var(--ink-faint); margin: 0; }
.story-body { max-width: 46rem; margin: 0 auto; padding-top: clamp(28px, 5vw, 56px); font-size: 1.08rem; line-height: 1.75; color: rgba(244, 246, 251, 0.86); }
.story-body > * + * { margin-top: 1.15em; }
.story-body p { margin-bottom: 0; }
.story-body h2 { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin-top: 2.2em; }
.story-body b { color: var(--ink); font-weight: 650; }
.story-lede { font-size: 1.22rem; line-height: 1.7; color: var(--ink); }
.story-lede::first-letter { float: left; font-family: var(--font-display); font-size: 4.2em; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: #FF6FA8; }
.story figure { margin: 0; }
.story figure img, .story figure video { width: 100%; display: block; border-radius: 16px; background: #0b2242; }
.story figcaption { margin-top: 8px; font-size: 0.86rem; line-height: 1.5; color: var(--ink-faint); }
.story-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 1.8em !important; align-items: start; }
.story-pair img, .story-pair video { aspect-ratio: 9 / 14; object-fit: cover; }
.story-wide { margin-block: 1.8em !important; }
.story-wide img, .story-wide video { aspect-ratio: 16 / 9; object-fit: cover; }
.story-tall img { aspect-ratio: 4 / 3; object-position: center 18%; }
.story-quote { margin: 2em 0 !important; padding: 0.2em 0 0.2em 1.1em; border-left: 3px solid #FF6FA8; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.35; color: var(--ink); }
.story-facts { margin-top: 2.4em !important; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: rgba(9, 32, 63, 0.7); border: 1px solid var(--line); }
.story-facts h2 { margin: 0 0 0.6em; font-size: var(--step-2); }
.story-facts dl { margin: 0; display: grid; gap: 14px; }
.story-facts dl > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; }
.story-facts dt { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.story-facts dd { margin: 0; font-size: 0.97rem; line-height: 1.6; }
.story-cta { margin-top: 2.4em !important; display: grid; gap: 16px; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: linear-gradient(120deg, rgba(240, 32, 126, 0.18), rgba(90, 18, 160, 0.22)); border: 1px solid rgba(255, 255, 255, 0.16); }
.story-cta b { display: block; font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); }
.story-cta span { display: block; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; margin-top: 4px; }
@media (max-width: 700px) {
  .story-pair { grid-template-columns: minmax(0, 1fr); }
  .story-pair img, .story-pair video { aspect-ratio: 4 / 5; }
  .story-facts dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .story-body { font-size: 1.02rem; }
  .story-main .wrap { padding-inline: 12px; }
  .story-hero::after { background: linear-gradient(0deg, rgba(6, 21, 41, 0.96) 0%, rgba(6, 21, 41, 0.78) 55%, rgba(6, 21, 41, 0.5) 100%); }
  .story-dek { font-size: 1.05rem; }
}

/* Featured article card on My account ("From TravelHub") */
.feature-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 0; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-2px); border-color: rgba(255, 111, 168, 0.55); }
.feature-card img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block; }
.feature-text { display: grid; gap: 6px; align-content: center; padding: 16px 18px; }
.feature-text b { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; }
.feature-text > span:not(.eyebrow):not(.feature-link) { font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.feature-link { font-size: 0.9rem; font-weight: 600; color: #FF6FA8; }
@media (max-width: 560px) { .feature-card { grid-template-columns: minmax(0, 1fr); } .feature-card img { min-height: 0; aspect-ratio: 16 / 9; } }
.member-posts:empty { display: none; }

/* ---------- Backpacker's corner ---------- */
.bp { display: grid; gap: clamp(40px, 6vw, 72px); }
.bp-hero { position: relative; border-radius: 24px; overflow: hidden; min-height: clamp(460px, 72vh, 660px); display: flex; align-items: flex-end; isolation: isolate; }
.bp-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bp-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 21, 41, 0.95) 0%, rgba(6, 21, 41, 0.65) 45%, rgba(6, 21, 41, 0.1) 85%); }
.bp-hero-text { padding: clamp(24px, 5vw, 56px); display: grid; gap: 14px; max-width: 56rem; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4); }
.bp-hero .eyebrow { color: #FFD166; font-weight: 600; }
.bp-hero h1 { font-family: var(--font-display); font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.bp-dek { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); margin: 0; max-width: 44rem; }
.bp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.bp-chips a { text-decoration: none; color: var(--ink); font-size: 0.88rem; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); text-shadow: none; }
.bp-chips a:hover { background: rgba(255, 255, 255, 0.22); }
.bp-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: calc(-1 * clamp(20px, 4vw, 44px)); }
.bp-why-tile { display: grid; gap: 6px; padding: 18px; border-radius: 18px; background: rgba(9, 32, 63, 0.75); border: 1px solid var(--line); }
.bp-why-tile svg { width: 28px; height: 28px; fill: none; stroke: #FF6FA8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bp-why-tile b { font-family: var(--font-display); font-size: 1.1rem; }
.bp-why-tile span { font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); }
.bp-section { display: grid; gap: 22px; scroll-margin-top: 20px; }
.bp-head { display: grid; gap: 8px; max-width: 46rem; }
.bp-head h2 { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.12; margin: 0; }
.bp-head p:not(.eyebrow) { margin: 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.bp-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.bp-steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 64px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); line-height: 1.55; color: var(--ink-soft); font-size: 0.95rem; }
.bp-steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--glow); }
.bp-steps b { color: var(--ink); display: block; margin-bottom: 2px; }
.bp-tool-note { margin: 0; color: var(--ink-soft); }
.bp-filter { justify-self: start; flex-wrap: wrap; }
.bp-routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.bp-route { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.bp-route:hover { transform: translateY(-3px); border-color: rgba(255, 111, 168, 0.5); }
.bp-route[hidden] { display: none; }
.bp-route-media { position: relative; aspect-ratio: 4 / 3; }
.bp-route-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-route-art { width: 100%; height: 100%; display: grid; place-items: center; }
.bp-route-art span { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: rgba(255, 255, 255, 0.92); letter-spacing: -0.01em; }
.bp-badge { position: absolute; left: 10px; top: 10px; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(6, 21, 41, 0.78); color: #7ee2b8; backdrop-filter: blur(4px); }
.bp-route-body { display: grid; gap: 8px; padding: 16px 16px 18px; align-content: start; }
.bp-route-where { margin: 0; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.bp-route h3 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; }
.bp-route-body > p:not(.bp-route-where) { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.bp-route-hl { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.bp-route-hl li { font-size: 0.78rem; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--ink-soft); }
.bp-route-facts { margin: 4px 0 0; display: flex; gap: 18px; }
.bp-route-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.bp-route-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.bp-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.bp-split-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.bp figure { margin: 0; }
.bp figure img, .bp figure video { width: 100%; display: block; border-radius: 18px; background: #0b2242; }
.bp figcaption { margin-top: 8px; font-size: 0.86rem; color: var(--ink-faint); line-height: 1.5; }
.bp-solo-media video { aspect-ratio: 16 / 9; object-fit: cover; }
.bp-split-rev figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.bp-ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.bp-ticks li { position: relative; padding-left: 30px; line-height: 1.55; color: var(--ink-soft); }
.bp-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(126, 226, 184, 0.16); color: #7ee2b8; font-size: 0.75rem; font-weight: 800; display: grid; place-items: center; }
.bp-ticks b { color: var(--ink); }
.bp-callout { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 111, 168, 0.1); border: 1px solid rgba(255, 111, 168, 0.35); }
.bp-callout span { color: var(--ink-soft); line-height: 1.55; font-size: 0.95rem; }
.bp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bp-gallery img { aspect-ratio: 4 / 5; object-fit: cover; }
.bp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bp-card { padding: 18px 20px; border-radius: 18px; background: rgba(9, 32, 63, 0.7); border: 1px solid var(--line); }
.bp-card h3 { margin: 0 0 8px; font-family: var(--font-display); }
.bp-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; color: var(--ink-soft); line-height: 1.5; font-size: 0.95rem; }
.bp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.bp-tile { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.bp-tile b { font-family: var(--font-display); }
.bp-tile span { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }
.bp-pack-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bp-pack-progress { flex: 1 1 220px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bp-pack-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2DD4BF, #7ee2b8); transition: width .3s; }
.bp-pack { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.bp-pack-group { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.bp-pack-group h3 { margin: 0 0 8px; font-size: 1rem; font-family: var(--font-display); }
.bp-pack-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bp-pack-group label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 0.93rem; line-height: 1.45; color: var(--ink-soft); }
.bp-pack-group input { margin-top: 3px; accent-color: #2DD4BF; width: 16px; height: 16px; flex: none; }
.bp-pack-group input:checked + span { color: var(--ink-faint); text-decoration: line-through; }
.bp-faq { display: grid; gap: 10px; max-width: 52rem; }
.bp-faq details { border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); padding: 4px 18px; }
.bp-faq summary { cursor: pointer; padding: 12px 0; font-weight: 650; color: var(--ink); list-style-position: outside; }
.bp-faq p { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.6; }
.bp-cta { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 16px; padding: clamp(28px, 5vw, 56px); border-radius: 24px; min-height: 280px; align-content: end;
  background: linear-gradient(90deg, rgba(6, 21, 41, 0.92) 0%, rgba(6, 21, 41, 0.6) 55%, rgba(6, 21, 41, 0.25) 100%), var(--bp-cta-img) center 60% / cover no-repeat; }
.bp-cta h2 { margin: 0; font-family: var(--font-display); font-size: var(--step-3); }
.bp-cta p { margin: 6px 0 0; color: var(--ink-soft); max-width: 34rem; }
.feature-mini { grid-template-columns: 120px minmax(0, 1fr); }
.feature-mini img { min-height: 110px; }
@media (max-width: 900px) {
  .bp-why { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .bp-split, .bp-split-rev { grid-template-columns: minmax(0, 1fr); }
  .bp-gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bp-gallery figure:last-child { grid-column: 1 / -1; }
  .bp-gallery figure:last-child img { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .bp-why, .bp-cols { grid-template-columns: minmax(0, 1fr); }
  .bp-gallery { grid-template-columns: minmax(0, 1fr); }
  .bp-gallery img { aspect-ratio: 4 / 3; }
  .bp-dek { font-size: 1.05rem; }
  .bp-hero::after { background: linear-gradient(0deg, rgba(6, 21, 41, 0.96) 0%, rgba(6, 21, 41, 0.75) 55%, rgba(6, 21, 41, 0.45) 100%); }
  .feature-mini { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .site-header, .site-footer, .bp > :not(#packing) { display: none !important; }
  .bp-pack-bar button { display: none; }
  body { background: #fff !important; color: #000 !important; }
  .bp-pack-group { border-color: #ccc; background: none; }
  .bp-pack-group label, .bp-head h2, .bp-head p { color: #000 !important; }
}
.bp-route-art { position: relative; align-content: center; gap: 6px; }
.bp-route-art svg { width: 70%; max-width: 220px; }
.bp-route-art span { text-align: center; padding: 0 12px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.bp-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-gallery-2 img { aspect-ratio: 1 / 1; }
@media (max-width: 900px) { .bp-gallery-2 figure:last-child { grid-column: auto; } .bp-gallery-2 figure:last-child img { aspect-ratio: 1 / 1; } }
@media (max-width: 600px) { .bp-gallery-2 { grid-template-columns: minmax(0, 1fr); } .bp-gallery-2 img, .bp-gallery-2 figure:last-child img { aspect-ratio: 4 / 3; } }

/* ---------- My account: background photo (Chicago skyline) ---------- */
.acct-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,21,41,0.55) 0%, rgba(6,21,41,0.45) 35%, rgba(6,21,41,0.62) 70%, rgba(6,21,41,0.85) 100%), url("img/chicago-skyline-sm.jpg") 62% 70% / cover no-repeat, #061529; }
@media (min-width: 900px) { .acct-bg { background: linear-gradient(180deg, rgba(6,21,41,0.5) 0%, rgba(6,21,41,0.38) 35%, rgba(6,21,41,0.55) 70%, rgba(6,21,41,0.8) 100%), url("img/chicago-skyline.jpg") center 65% / cover no-repeat, #061529; } }
.member-layout .panel, .member-layout .side-menu { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.member-layout .dash-head h1 { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }
body:has(.acct-bg) { background: transparent; }
.member-layout .dash-head .eyebrow, .member-layout .clock-edit { color: var(--ink); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }

/* ---------- Yoga & retreats ---------- */
.yg { --yg-sage: #9FE3C1; --yg-lav: #C9B8FF; --yg-sand: #F3D9B1; }
.yg-hero .eyebrow { color: var(--yg-sand); }
.yg-hero > img { object-position: center 60%; }
.yg-hero::after { background: linear-gradient(0deg, rgba(6, 21, 41, 0.94) 0%, rgba(6, 21, 41, 0.6) 42%, rgba(6, 21, 41, 0.05) 80%); }
.yg .bp-why-tile svg { stroke: var(--yg-sage); }
.yg .eyebrow { letter-spacing: 0.12em; }
.yg .bp-route:hover { border-color: rgba(159, 227, 193, 0.5); }
.yg-badge { color: var(--yg-lav); }
.yg-art svg { width: 46%; max-width: 140px; }
.yg-more { font-size: 0.9rem; font-weight: 600; color: var(--yg-sage); text-decoration: none; }
.yg-more:hover { text-decoration: underline; }
.yg .bp-route-facts { flex-wrap: wrap; gap: 8px 18px; }
.yg-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.yg-type { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.yg-type b { font-family: var(--font-display); }
.yg-type span { font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); }
.yg-type em { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--yg-sage); margin-top: 2px; }
.yg-tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.yg-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.yg-style { display: grid; gap: 6px; align-content: start; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.yg-style[hidden] { display: none; }
.yg-style-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.yg-style h3 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.yg-style p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); }
.yg-style .yg-good { font-size: 0.85rem; }
.yg-good b { color: var(--yg-sage); font-weight: 700; margin-right: 4px; }
.yg-dots { display: inline-flex; gap: 4px; }
.yg-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.yg-dots i.on { background: linear-gradient(135deg, var(--yg-sage), var(--yg-lav)); }
.yg-breathe { padding: clamp(20px, 4vw, 40px); border-radius: 24px; background: radial-gradient(120% 120% at 0% 0%, rgba(159, 227, 193, 0.12), transparent 55%), rgba(9, 32, 63, 0.7); border: 1px solid var(--line); }
.yg-breathe-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.yg-breathe-text { display: grid; gap: 16px; }
.yg-patterns { justify-self: start; flex-wrap: wrap; }
.yg-pattern-note { margin: 0; color: var(--ink-soft); line-height: 1.55; min-height: 3em; }
.yg-breathe-actions { display: flex; align-items: center; gap: 16px; }
.yg-breathe-actions .btn { min-width: 120px; }
.yg-rounds { color: var(--yg-sage); font-weight: 600; font-size: 0.95rem; }
.yg-fountain { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 14; max-height: 560px; width: 100%; justify-self: center; background: #0b2242; }
.yg .yg-fountain video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; filter: saturate(0.9) brightness(0.8); transition: filter .6s; }
.yg-fountain.on video { filter: saturate(0.85) brightness(0.62); }
.yg-orb-wrap { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.yg-orb { width: 62%; aspect-ratio: 1; border-radius: 50%; transform: scale(0.5); transition-property: transform, box-shadow; transition-timing-function: ease-in-out; transition-duration: 1.5s;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), rgba(159, 227, 193, 0.18) 45%, rgba(201, 184, 255, 0.12) 70%, transparent 72%);
  border: 2px solid rgba(255, 255, 255, 0.55); box-shadow: 0 0 40px rgba(159, 227, 193, 0.25), inset 0 0 30px rgba(255, 255, 255, 0.15); backdrop-filter: blur(2px); }
.yg-orb.big { transform: scale(1); }
.yg-orb.hold { box-shadow: 0 0 60px rgba(201, 184, 255, 0.45), inset 0 0 30px rgba(255, 255, 255, 0.2); }
.yg-orb-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; pointer-events: none; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); padding: 0 16px; }
.yg-orb-label b { font-family: var(--font-display); font-size: 1.3rem; }
.yg-orb-label span { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; min-height: 1em; }
.yg-flow video { aspect-ratio: 16 / 9; object-fit: cover; }
.yg-day { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.yg-day::before { content: ""; position: absolute; left: 62px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--yg-sage), var(--yg-lav)); opacity: 0.5; }
.yg-day li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 22px; padding: 8px 0; position: relative; }
.yg-day li::after { content: ""; position: absolute; left: 57px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-deep); border: 2px solid var(--yg-sage); }
.yg-day time { font-family: var(--font-mono); font-size: 0.85rem; color: var(--yg-sage); padding-top: 2px; }
.yg-day div { display: grid; gap: 2px; padding-left: 6px; }
.yg-day b { color: var(--ink); }
.yg-day span { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }
.yg-flags { background: rgba(201, 184, 255, 0.07); }
.yg .bp-card li b { color: var(--ink); }
.yg .bp-ticks li::before { background: rgba(159, 227, 193, 0.16); color: var(--yg-sage); }
.yg-pack-split { align-items: center; }
.yg-pack-split figure img { aspect-ratio: 16 / 10; object-fit: cover; }
.yg .bp-pack-progress span { background: linear-gradient(90deg, var(--yg-sage), var(--yg-lav)); }
.yg .bp-pack-group input { accent-color: var(--yg-sage); }
.yg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.yg-incense { justify-self: center; width: min(100%, 360px); }
.yg-incense video { aspect-ratio: 9 / 14; object-fit: cover; }
.yg-cta { background: linear-gradient(90deg, rgba(6, 21, 41, 0.9) 0%, rgba(6, 21, 41, 0.55) 55%, rgba(6, 21, 41, 0.15) 100%), var(--bp-cta-img) center 70% / cover no-repeat; }
@media (prefers-reduced-motion: reduce) { .yg-orb { transition: none; } }
@media (max-width: 900px) {
  .yg-breathe-grid { grid-template-columns: minmax(0, 1fr); }
  .yg-fountain { max-width: 380px; }
  .yg-tall img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .yg-types, .yg-tiles { grid-template-columns: minmax(0, 1fr); }
  .yg-incense { width: min(100%, 280px); }
}
@media print { .bp.yg > :not(#packing) { display: none !important; } .yg-pack-split figure { display: none; } }
@media (max-width: 600px) { .yg .bp-route-media:has(.yg-art) { aspect-ratio: 2 / 1; } .yg-art span { font-size: 1.5rem; } }
.yg-place .bp-route-media img[src*="kerala"] { object-position: center 70%; }

/* ---------- Azores article: island explorer ---------- */
.az .story-lede::first-letter { color: #5EEAD4; }
.az .story-quote { border-left-color: #5EEAD4; }
.az-explorer { margin-block: 1.6em !important; display: grid; gap: 14px; padding: clamp(14px, 2.5vw, 20px); border-radius: 20px; background: rgba(9, 32, 63, 0.7); border: 1px solid var(--line); }
.az-map { width: 100%; height: auto; display: block; }
.az-grp { fill: rgba(244, 246, 251, 0.35); font: 600 11px var(--font-mono); letter-spacing: 0.14em; }
.az-isle { cursor: pointer; }
.az-isle ellipse:not(.az-hit) { fill: #2f7d5b; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; transition: fill .2s; }
.az-isle .az-hit { fill: transparent; }
.az-isle text { fill: rgba(244, 246, 251, 0.75); font: 600 12px var(--font-body); text-anchor: middle; pointer-events: none; }
.az-isle:hover ellipse:not(.az-hit) { fill: #3fa877; }
.az-isle.on ellipse:not(.az-hit) { fill: #5EEAD4; stroke: #fff; stroke-width: 1.5; }
.az-isle.on text { fill: #fff; font-weight: 800; }
.az-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.az-tabs button { flex: none; font: inherit; font-size: 0.88rem; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--ink-soft); cursor: pointer; }
.az-tabs button:hover { background: rgba(255, 255, 255, 0.1); }
.az-tabs button[aria-selected="true"] { background: #5EEAD4; color: #062a2a; border-color: #5EEAD4; font-weight: 700; }
.az-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.az-panel { display: grid; gap: 8px; }
.az-panel[hidden] { display: none; }
.az-panel h3 { margin: 0; font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); line-height: 1.2; }
.az-panel p { margin: 0; font-size: 1rem; line-height: 1.6; }
.az-nick { font-size: 0.78rem !important; text-transform: uppercase; letter-spacing: 0.08em; color: #5EEAD4; font-weight: 700; }
.az-hl { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.az-hl li { font-size: 0.82rem; padding: 4px 10px; border-radius: 999px; background: rgba(94, 234, 212, 0.1); border: 1px solid rgba(94, 234, 212, 0.25); color: var(--ink); }
.az-stay { font-size: 0.92rem !important; color: var(--ink-soft); }
.az-stay b { color: #5EEAD4; margin-right: 4px; }
@media (max-width: 600px) { .az-isle text { font-size: 15px; } .az-grp { font-size: 13px; } }

/* ---------- My account: header pop-outs (Account details, Saved trips) and full-width news ---------- */
.acct-pop { position: absolute; z-index: 60; width: min(420px, calc(100vw - 24px)); max-height: min(78vh, 640px); overflow: auto; display: grid; gap: 10px;
  background: rgba(9, 28, 54, 0.97); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: acct-pop-in .16s ease-out; }
.acct-pop[hidden] { display: none; }
.acct-pop h2 { margin: 0; font-size: 1.15rem; }
.acct-pop .fine { margin: 0; }
@keyframes acct-pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acct-pop { animation: none; } }
.acct-menu::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.acct-menu.is-open::after { transform: translateY(1px) rotate(-135deg); }
.trips-btn { display: inline-flex; align-items: center; gap: 8px; }
.trips-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.trips-count { font-style: normal; font-size: 0.75rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, 0.16); }
.trips-btn.is-open, .acct-menu.is-open { background: rgba(255, 255, 255, 0.2); }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.news-grid .feature-lead { grid-row: span 3; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(220px, 1fr) auto; }
.news-grid .feature-lead img { min-height: 220px; }
.news-grid .feature-mini { grid-template-columns: 140px minmax(0, 1fr); }
@media (max-width: 860px) { .news-grid { grid-template-columns: minmax(0, 1fr); } .news-grid .feature-lead { grid-row: auto; } }
@media (max-width: 560px) { .news-grid .feature-mini { grid-template-columns: minmax(0, 1fr); } }
.news-grid .feature-lead { grid-template-rows: auto 1fr; align-self: start; }
.news-grid .feature-lead img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }

/* ---------- From TravelHub: two columns (lead guides | short features) ---------- */
.news-col { display: grid; gap: 14px; align-content: start; }
.news-grid .feature-lead { grid-row: auto; }
.news-grid .feature-lead img.lead-img-morocco { object-position: center 40%; }
/* ---------- Morocco article ---------- */
.ma .story-lede::first-letter { color: #F28C52; }
.ma .story-quote { border-left-color: #F28C52; }
.ma-hero img { object-position: center 42%; }
.ma-pair-land img { aspect-ratio: 4 / 3 !important; }
@media (min-width: 900px) {
  .ma-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: stretch; min-height: clamp(480px, 70vh, 660px); background: radial-gradient(120% 140% at 0% 100%, #3a1d14 0%, #0b2242 60%); }
  .ma-hero img { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1; height: 100%; min-height: 100%; object-position: center 40%; }
  .ma-hero::after { background: linear-gradient(90deg, #0b2242 0%, rgba(11, 34, 66, 0.55) 49%, rgba(11, 34, 66, 0) 62%); z-index: 1; pointer-events: none; }
  .ma-hero .story-hero-text { grid-column: 1; grid-row: 1; align-self: end; position: relative; z-index: 2; }
}

/* ---------- Travel resources (editorial) ---------- */
.tr { --tr-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif; --tr-sand: #D8B99A; --tr-line: rgba(244, 246, 251, 0.1); display: grid; gap: 0; }
.tr h1, .tr h2 { font-family: var(--tr-serif); font-weight: 500; letter-spacing: 0; color: var(--ink); }
.tr em { font-style: italic; color: var(--tr-sand); }
.tr-kicker { margin: 0 0 14px; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tr-sand); }
.tr-more { display: inline-block; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--tr-sand); text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid currentColor; transition: color .2s; }
.tr-more:hover { color: var(--ink); }

.tr-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 80px); }
.tr-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.02; margin: 0 0 20px; }
.tr-dek { margin: 0; max-width: 34rem; font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.tr-search { margin-top: 30px; max-width: 26rem; display: grid; gap: 6px; }
.tr-search label { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.tr-search input { background: none; border: 0; border-bottom: 1px solid rgba(244, 246, 251, 0.3); border-radius: 0; color: var(--ink); font: inherit; font-size: 1.05rem; padding: 8px 0; outline: none; transition: border-color .2s; }
.tr-search input::placeholder { color: var(--ink-faint); font-style: italic; }
.tr-search input:focus { border-bottom-color: var(--tr-sand); }
.tr-hero-pics { position: relative; aspect-ratio: 1 / 1; }
.tr-hero-pics img { position: absolute; object-fit: cover; display: block; }
.tr-pic-a { left: 0; top: 0; width: 72%; height: 66%; }
.tr-pic-b { right: 0; bottom: 0; width: 58%; height: 58%; border: 10px solid var(--navy-deep); object-position: center 30%; }

.tr-nav { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; padding: 16px 0; background: var(--navy-deep); border-top: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); }
.tr-nav a { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.tr-nav a:hover, .tr-nav a.on { color: var(--ink); border-bottom-color: var(--tr-sand); }
.tr-note { margin: 18px 0 0; text-align: center; font-family: var(--tr-serif); font-style: italic; font-size: 1.1rem; color: var(--ink-faint); }
.tr-empty { margin: 40px 0; text-align: center; color: var(--ink-soft); font-family: var(--tr-serif); font-size: 1.3rem; font-style: italic; }

.tr-own { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.tr-own[hidden] { display: none; }
.tr-own-head { text-align: center; margin-bottom: 36px; }
.tr-own-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.tr-own-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.tr-own-card { display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
.tr-own-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: 10px; filter: saturate(0.9); transition: filter .3s; }
.tr-own-card:hover img { filter: saturate(1.05); }
.tr-own-title { font-family: var(--tr-serif); font-size: 1.55rem; line-height: 1.15; }
.tr-own-sub { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
.tr-own-card .tr-more { justify-self: start; margin-top: 6px; }
.tr-own-also { margin: 36px auto 0; max-width: 46rem; text-align: center; color: var(--ink-soft); line-height: 1.8; }
.tr-own-also a, .tr-tip a, .tr-fine a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tr-sand); text-underline-offset: 4px; }

.tr-section { padding: clamp(48px, 7vw, 84px) 0; border-top: 1px solid var(--tr-line); scroll-margin-top: 60px; }
.tr-section[hidden] { display: none; }
.tr-band { background: rgba(255, 255, 255, 0.025); box-shadow: 0 0 0 100vmax rgba(255, 255, 255, 0.025); clip-path: inset(0 -100vmax); }
.tr-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.tr-side { position: sticky; top: 80px; }
.tr-side h2 { font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 16px; }
.tr-count { font-family: var(--font-body); font-size: 0.35em; vertical-align: middle; color: var(--ink-faint); letter-spacing: 0.1em; }
.tr-intro { margin: 0; color: var(--ink-soft); line-height: 1.75; }
.tr-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-top: 26px; }
.tr-tip { margin: 22px 0 0; font-family: var(--tr-serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--ink-soft); }
.tr-list { list-style: none; margin: 0; padding: 0; }
.tr-item { padding: 22px 0; border-bottom: 1px solid var(--tr-line); }
.tr-item:first-child { padding-top: 4px; }
.tr-item[hidden] { display: none; }
.tr-item p { margin: 0; }
.tr-item-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 6px !important; }
.tr-item-head a { font-family: var(--tr-serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); text-decoration: none; background: linear-gradient(var(--tr-sand), var(--tr-sand)) 0 100% / 0 1px no-repeat; transition: background-size .25s; }
.tr-item-head a:hover { background-size: 100% 1px; }
.tr-best { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.tr-item > p:last-child { color: var(--ink-soft); line-height: 1.7; font-size: 0.98rem; max-width: 40rem; }

.tr-end { position: relative; margin-top: clamp(24px, 4vw, 40px); min-height: 360px; display: flex; align-items: center; isolation: isolate; }
.tr-end img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tr-end::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 21, 41, 0.9) 0%, rgba(6, 21, 41, 0.55) 55%, rgba(6, 21, 41, 0.2) 100%); }
.tr-end-text { padding: clamp(28px, 5vw, 64px); max-width: 34rem; }
.tr-end h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.08; margin: 0 0 12px; }
.tr-end p { margin: 0 0 22px; color: var(--ink-soft); line-height: 1.7; }
.tr-fine { margin: 28px 0 0; text-align: center; font-size: 0.88rem; color: var(--ink-faint); }

@media (max-width: 900px) {
  .tr-hero { grid-template-columns: minmax(0, 1fr); }
  .tr-hero-pics { max-width: 520px; width: 100%; justify-self: center; aspect-ratio: 5 / 4; }
  .tr-wrap { grid-template-columns: minmax(0, 1fr); }
  .tr-side { position: static; }
  .tr-photo { aspect-ratio: 16 / 9; }
  .tr-own-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .tr-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 22px; }
  .tr-nav::-webkit-scrollbar { display: none; }
  .tr-nav a { flex: none; }
}
@media (max-width: 600px) { .tr-item-head a { font-size: 1.35rem; } .tr-pic-b { border-width: 6px; } }

/* ---------- Traveller type quiz ---------- */
.tt-start { display: flex; align-items: baseline; gap: 18px; margin: 28px 0 0; }
.tt-start span { font-size: 0.85rem; color: var(--ink-faint); font-style: italic; }
.tt-quiz { max-width: 46rem; width: 100%; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--tr-line); scroll-margin-top: 20px; }
.tt-progress { height: 1px; background: var(--tr-line); margin-bottom: 40px; }
.tt-progress span { display: block; height: 1px; width: 0; background: var(--tr-sand); transition: width .35s ease; }
.tt-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.tt-q[hidden] { display: none; }
.tt-q legend { padding: 0; margin-bottom: 26px; font-family: var(--tr-serif); font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; color: var(--ink); }
.tt-step { display: block; margin-bottom: 14px; font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tr-sand); }
.tt-q ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tr-line); }
.tt-opt { width: 100%; display: flex; align-items: baseline; gap: 18px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--tr-line); color: var(--ink-soft); font: inherit; font-size: 1.05rem; line-height: 1.5; padding: 18px 4px; cursor: pointer; transition: color .2s, padding-left .2s; }
.tt-opt:hover, .tt-opt:focus-visible { color: var(--ink); padding-left: 12px; outline: none; }
.tt-opt[aria-pressed="true"] { color: var(--ink); }
.tt-opt[aria-pressed="true"] .tt-letter, .tt-opt:hover .tt-letter { color: var(--tr-sand); }
.tt-letter { flex: none; width: 1.2em; font-size: 0.75rem; letter-spacing: 0.15em; color: var(--ink-faint); transition: color .2s; }
.tt-nav { margin-top: 18px; min-height: 24px; }
.tt-back { background: none; border: 0; padding: 0 0 4px; color: var(--ink-faint); font: inherit; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; cursor: pointer; border-bottom: 1px solid transparent; }
.tt-back:hover { color: var(--ink); border-bottom-color: currentColor; }
.tt-result { outline: none; }
.tt-result[hidden] { display: none; }
.tt-result-main { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.tt-result-main img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.tt-result h2 { font-family: var(--tr-serif); font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.05; margin: 0 0 10px; color: var(--ink); }
.tt-type-line { margin: 0 0 14px; font-family: var(--tr-serif); font-style: italic; font-size: 1.25rem; line-height: 1.4; color: var(--tr-sand); }
.tt-result-main p:not(.tr-kicker):not(.tt-type-line):not(.tt-actions):not(.tt-saved) { margin: 0; color: var(--ink-soft); line-height: 1.75; }
.tt-mix { display: grid; gap: 8px; margin: 26px 0 0; }
.tt-mix-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 2.8rem; gap: 12px; align-items: center; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.tt-mix-row.on { color: var(--ink); }
.tt-mix-track { height: 1px; background: var(--tr-line); position: relative; }
.tt-mix-track span { position: absolute; left: 0; top: -1px; height: 3px; background: var(--ink-faint); }
.tt-mix-row.on .tt-mix-track span { background: var(--tr-sand); }
.tt-mix-val { text-align: right; letter-spacing: 0.05em; }
.tt-saved { margin: 22px 0 0; font-size: 0.92rem; color: var(--ink-faint); font-style: italic; min-height: 1em; }
.tt-saved a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tr-sand); text-underline-offset: 4px; }
.tt-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 28px; margin: 22px 0 0; }
.tt-actions [hidden] { display: none; }
.tt-picks { margin-top: clamp(32px, 5vw, 52px); padding-top: 28px; border-top: 1px solid var(--tr-line); }
.tt-picks ol, .style-picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 48px); }
.tt-picks li, .style-picks li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--tr-line); }
.tt-picks a, .style-picks a { font-family: var(--tr-serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; justify-self: start; background: linear-gradient(var(--tr-sand), var(--tr-sand)) 0 100% / 0 1px no-repeat; transition: background-size .25s; }
.tt-picks a:hover, .style-picks a:hover { background-size: 100% 1px; }
.tt-picks li span, .style-picks li span { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.55; }
.tt-types { padding: clamp(48px, 7vw, 88px) 0 0; border-top: 1px solid var(--tr-line); }
.tt-types-dek { margin: 12px auto 0; max-width: 34rem; color: var(--ink-soft); line-height: 1.7; }
.tt-type { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--tr-line); }
.tt-type:nth-of-type(even) img { order: 2; }
.tt-type img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tt-type h3 { font-family: var(--tr-serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1.05; margin: 0 0 10px; color: var(--ink); }
.tt-type-text > p:not(.tr-kicker):not(.tt-type-line) { margin: 0; color: var(--ink-soft); line-height: 1.75; }
.tt-loves { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 6px; }
.tt-loves li { color: var(--ink-soft); font-size: 0.95rem; padding-left: 18px; position: relative; }
.tt-loves li::before { content: "—"; position: absolute; left: 0; color: var(--tr-sand); }
@media (max-width: 760px) {
  .tt-result-main, .tt-type { grid-template-columns: minmax(0, 1fr); }
  .tt-result-main img { aspect-ratio: 16 / 10; }
  .tt-type:nth-of-type(even) img { order: 0; }
  .tt-picks ol, .style-picks { grid-template-columns: minmax(0, 1fr); }
  .tt-mix-row { grid-template-columns: 6.5rem minmax(0, 1fr) 2.6rem; }
}
/* ---------- Account: travel style strip ---------- */
.style-strip { --tr-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif; --tr-sand: #D8B99A; --tr-line: rgba(244, 246, 251, 0.12); padding: 22px 0 6px; border-top: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); display: grid; gap: 14px; }
.style-strip[hidden] { display: none; }
.style-head h2 { font-family: var(--tr-serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; margin: 0 0 6px; color: var(--ink); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4); }
.style-kicker { margin: 0 0 8px; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tr-sand); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.style-line { margin: 0; color: var(--ink-soft); font-family: var(--tr-serif); font-style: italic; font-size: 1.15rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.style-picks li { padding: 12px 0; }
.style-picks a { font-size: 1.2rem; }
.style-actions { margin: 4px 0 12px; }
.style-link { display: inline-block; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--tr-sand); text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid currentColor; }
.style-link:hover { color: var(--ink); }
.style-strip.has-type .style-link { color: var(--ink-faint); border-bottom-color: transparent; }
.style-strip.has-type .style-link:hover { color: var(--ink); border-bottom-color: currentColor; }
.tr-foryou { margin: 10px 0 0; text-align: center; font-family: var(--tr-serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.tr-foryou a { color: var(--tr-sand); text-decoration: none; border-bottom: 1px solid currentColor; }
.style-strip { padding: 22px clamp(18px, 3vw, 28px) 8px; border: 0; border-radius: 20px; background: rgba(6, 21, 41, 0.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.style-head h2, .style-kicker, .style-line { text-shadow: none; }
.tt-mix-row { grid-template-columns: 9.5rem minmax(0, 1fr) 2.8rem; }
@media (max-width: 760px) { .tt-mix-row { grid-template-columns: 8.5rem minmax(0, 1fr) 2.6rem; letter-spacing: 0.12em; } }

/* ---------- Editorial article variant (Europe by train) ---------- */
.story.ed { --tr-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif; --tr-sand: #D8B99A; --tr-line: rgba(244, 246, 251, 0.1); }
.ed-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(16px, 3vw, 40px) 0 clamp(24px, 4vw, 48px); }
.ed-hero h1 { font-family: var(--tr-serif); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; margin: 0 0 18px; color: var(--ink); }
.ed-hero h1 em { font-style: italic; color: var(--tr-sand); }
.ed-hero .story-dek { font-size: 1.1rem; line-height: 1.7; margin-bottom: 14px; }
.story.ed .story-body { border-top: 1px solid var(--tr-line); }
.story.ed .story-body h2 { font-family: var(--tr-serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.5rem); letter-spacing: 0; }
.story.ed .story-lede::first-letter { font-family: var(--tr-serif); font-weight: 500; color: var(--tr-sand); }
.story.ed .story-quote { font-family: var(--tr-serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 1.9rem); border-left: 0; padding: 0; text-align: center; color: var(--ink-soft); }
.story.ed .story-facts { background: none; border: 0; border-top: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); border-radius: 0; padding: 28px 0; }
.story.ed .story-facts h2 { font-size: 1.9rem; }
.story.ed .story-facts dt { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tr-sand); font-weight: 400; padding-top: 3px; }
.story.ed .story-cta { background: none; border: 0; border-top: 1px solid var(--tr-line); border-radius: 0; padding: 28px 0 0; }
.story.ed .story-cta b { font-family: var(--tr-serif); font-weight: 500; font-size: 1.6rem; }
.story.ed figure img, .story.ed figure video { border-radius: 0; }
/* Placeholder until photos arrive */
.img-slot { width: 100%; display: grid; place-content: center; gap: 8px; text-align: center; padding: 18px; border: 1px dashed rgba(216, 185, 154, 0.5); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 12px, rgba(255, 255, 255, 0.04) 12px 24px); color: var(--ink-soft); }
.img-slot-n { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: #D8B99A; }
.img-slot-d { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.1rem; line-height: 1.4; max-width: 26rem; margin: 0 auto; }
.story-pair .img-slot { aspect-ratio: 9 / 14; }
/* Trip at a glance */
.rt-glance { margin-block: 2.2em !important; padding: 28px 0; border-top: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); }
.rt-glance h2 { margin: 0 0 18px !important; font-size: 1.9rem !important; }
.rt-glance-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.rt-map { width: 100%; height: auto; display: block; }
.rt-sea { fill: rgba(125, 211, 252, 0.06); }
.rt-line { fill: none; stroke: #D8B99A; stroke-width: 1.5; }
.rt-back { stroke-dasharray: 3 6; opacity: 0.6; }
.rt-side { stroke-dasharray: 2 4; opacity: 0.7; }
.rt-stop circle { fill: #061529; stroke: #D8B99A; stroke-width: 1.5; }
.rt-stop text { fill: var(--ink); font: 500 17px "Cormorant Garamond", Georgia, serif; }
.rt-minor text { fill: var(--ink-soft); font-style: italic; font-size: 15px; }
.rt-note { fill: var(--ink-faint); font: italic 13px "Cormorant Garamond", Georgia, serif; }
.rt-legs { list-style: none; margin: 0; padding: 0; }
.rt-legs li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 2px 14px; padding: 11px 0; border-bottom: 1px solid var(--tr-line); }
.rt-legs li:last-child { border-bottom: 0; }
.rt-day { grid-row: span 2; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: #D8B99A; padding-top: 4px; }
.rt-route { color: var(--ink); font-size: 0.98rem; }
.rt-route i { color: var(--ink-faint); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.05rem; }
.rt-train { color: var(--ink-faint); font-size: 0.85rem; }
.rt-glance-foot { margin: 14px 0 0 !important; font-size: 0.85rem; color: var(--ink-faint); font-style: italic; }
@media (max-width: 760px) { .ed-hero, .rt-glance-grid { grid-template-columns: minmax(0, 1fr); } }
.rt-glance-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.rt-map { max-width: 520px; margin: 0 auto; }
.ed-hero-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 60%; display: block; }
.story.ed img.eb-center { object-position: center; }
.story.ed .eb-tall img { aspect-ratio: 4 / 3; object-position: center 55%; }
@media (max-width: 760px) { .ed-hero-img { aspect-ratio: 4 / 3; } }
.story.ed .eb-tall img { object-position: center 12%; }
/* Europe by train: headline over the photo */
.ed-hero-over { position: relative; display: flex; align-items: flex-end; min-height: clamp(460px, 74vh, 700px); padding: 0; margin-bottom: clamp(24px, 4vw, 48px); overflow: hidden; isolation: isolate; }
.ed-hero-over .ed-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 55%; z-index: -2; }
.ed-hero-over::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 21, 41, 0.94) 0%, rgba(6, 21, 41, 0.7) 38%, rgba(6, 21, 41, 0.15) 75%, rgba(6, 21, 41, 0) 100%); }
.ed-hero-over .ed-hero-text { padding: clamp(24px, 5vw, 56px); max-width: 52rem; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }
.ed-hero-over .story-dek { color: rgba(244, 246, 251, 0.85); max-width: 40rem; }
.ed-hero-over .story-meta { color: rgba(244, 246, 251, 0.65); }
@media (max-width: 760px) { .ed-hero-over { min-height: 560px; } .ed-hero-over::after { background: linear-gradient(0deg, rgba(6, 21, 41, 0.96) 0%, rgba(6, 21, 41, 0.78) 50%, rgba(6, 21, 41, 0.3) 100%); } .ed-hero-over .ed-hero-img { aspect-ratio: auto; } }

/* ---------- YouTube review button + pop-up player ---------- */
.yt-watch { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center; margin-block: 1.6em !important; padding: 20px 0; border-top: 1px solid var(--tr-line, rgba(244,246,251,.1)); border-bottom: 1px solid var(--tr-line, rgba(244,246,251,.1)); }
.yt-thumb { width: 160px; height: 90px; object-fit: cover; display: block; filter: saturate(0.85); }
.yt-text p { margin: 0; }
.yt-kicker { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: #D8B99A; margin-bottom: 6px !important; }
.yt-title { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.15rem; line-height: 1.4; color: var(--ink-soft); }
.yt-open { margin-top: 12px; background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 5px; color: #D8B99A; font: inherit; font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; cursor: pointer; transition: color .2s; }
.yt-open::before { content: "▶"; font-size: 0.7em; margin-right: 10px; position: relative; top: -1px; }
.yt-open:hover { color: var(--ink); }
.yt-credit { margin-top: 10px !important; font-size: 0.8rem; color: var(--ink-faint); }
.yt-credit a, .yt-dialog-foot a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: #D8B99A; text-underline-offset: 3px; }
.yt-dialog { width: min(960px, 94vw); padding: 0; border: 0; background: #061529; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.yt-dialog::backdrop { background: rgba(3, 10, 22, 0.82); backdrop-filter: blur(4px); }
.yt-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; }
.yt-dialog-head p { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-close { flex: none; background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; padding: 6px 0; border-bottom: 1px solid transparent; }
.yt-close:hover { color: var(--ink); border-bottom-color: currentColor; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-dialog-foot { margin: 0; padding: 12px 18px 16px; font-size: 0.85rem; color: var(--ink-faint); }
@media (max-width: 560px) { .yt-watch { grid-template-columns: minmax(0, 1fr); } .yt-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; } }
.feature-mini img.thumb-amsterdam { object-position: center 60%; }
.ed-hero-over .img-slot.ed-hero-slot { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto !important; z-index: -2; align-content: start; padding-top: 40px; }
.rt-alps { fill: none; stroke: rgba(244, 246, 251, 0.18); stroke-width: 1.2; stroke-linejoin: round; }

/* ---------- GHIC guide ---------- */
.gh-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-block: 1.8em !important; border-top: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); }
.gh-key div { display: grid; gap: 4px; padding: 18px 16px; border-left: 1px solid var(--tr-line); }
.gh-key div:first-child { border-left: 0; padding-left: 0; }
.gh-key b { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 1.5rem; color: #D8B99A; line-height: 1.1; }
.gh-key span { font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }
.gh-check { margin-block: 1.6em !important; padding: 24px 0; border-top: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); display: grid; gap: 12px; }
.gh-check-label { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.4rem; color: var(--ink); }
.gh-select { position: relative; max-width: 26rem; }
.gh-select::after { content: ""; position: absolute; right: 6px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid #D8B99A; border-bottom: 1.5px solid #D8B99A; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.gh-select select { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-bottom: 1px solid rgba(244, 246, 251, 0.3); border-radius: 0; color: var(--ink); font: inherit; font-size: 1.05rem; padding: 10px 28px 10px 0; cursor: pointer; }
.gh-select select:focus { outline: none; border-bottom-color: #D8B99A; }
.gh-select option { background: #061529; color: var(--ink); }
.gh-answer { margin-top: 6px !important; padding-left: 16px; border-left: 2px solid var(--ink-faint); }
.gh-answer p { margin: 0; }
.gh-answer p + p { margin-top: 6px; color: var(--ink-soft); line-height: 1.65; font-size: 0.98rem; }
.gh-verdict { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; color: var(--ink); }
.gh-yes { border-left-color: #9FE3C1; } .gh-yes .gh-verdict { color: #9FE3C1; }
.gh-cond { border-left-color: #D8B99A; } .gh-cond .gh-verdict { color: #D8B99A; }
.gh-ireland { border-left-color: #C9B8FF; } .gh-ireland .gh-verdict { color: #C9B8FF; }
.gh-no { border-left-color: #F4A3A3; } .gh-answer.gh-no .gh-verdict { color: #F4A3A3; }
.gh-steps { list-style: none; counter-reset: g; margin: 1.2em 0 0; padding: 0; }
.gh-steps li { counter-increment: g; position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--tr-line); line-height: 1.7; }
.gh-steps li::before { content: counter(g); position: absolute; left: 0; top: 10px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.9rem; line-height: 1; color: #D8B99A; }
.gh-steps a, .gh-list a, .gh-warn a { color: var(--ink); text-decoration: underline; text-decoration-color: #D8B99A; text-underline-offset: 4px; }
.gh-warn { margin-block: 1.4em !important; padding: 14px 18px; border-left: 2px solid #F4A3A3; background: rgba(244, 163, 163, 0.06); line-height: 1.65; color: var(--ink-soft); }
.gh-warn b { color: var(--ink); }
.gh-list { list-style: none; margin: 1em 0 0; padding: 0; }
.gh-list li { position: relative; padding: 8px 0 8px 22px; line-height: 1.7; }
.gh-list li::before { content: "—"; position: absolute; left: 0; color: #D8B99A; }
.gh-list.gh-no li::before { content: "×"; color: #F4A3A3; font-size: 1.1em; }
.gh-small { font-size: 0.88rem !important; color: var(--ink-faint) !important; font-style: italic; }
@media (max-width: 760px) { .gh-key { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gh-key div:nth-child(3) { border-left: 0; padding-left: 0; } .gh-key div:nth-child(n+3) { border-top: 1px solid var(--tr-line); } }
.story.ed img.gh-apteka { object-position: center 35%; }

/* ---------- Dashboard: editorial tiers ---------- */
.news { --ed-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif; --ed-sand: #D8B99A; --ed-line: rgba(244, 246, 251, 0.12); padding: clamp(20px, 3vw, 32px); }
.news-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.news-kicker { margin: 0 0 6px; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ed-sand); }
.news-head h2 { margin: 0; font-family: var(--ed-serif); font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.05; }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px) clamp(18px, 2.5vw, 28px); }
.ed-card { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); }
.ed-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(255, 255, 255, 0.04); margin-bottom: 6px; }
.ed-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
a.ed-card:hover .ed-card-img img { transform: scale(1.03); }
.ed-card-kicker { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ed-sand); }
.ed-card b { font-family: var(--ed-serif); font-weight: 500; font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.12; }
.ed-card-dek { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.6; }
.ed-card-more { justify-self: start; margin-top: 4px; font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ed-sand); text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
a.ed-card:hover .ed-card-more, .ed-card-more:hover { color: var(--ink); }
.ed-card-blank { display: grid; place-items: center; border: 1px dashed rgba(216, 185, 154, 0.4); background: repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 12px, rgba(255,255,255,0.035) 12px 24px); }
.ed-card-blank span { font-family: var(--ed-serif); font-style: italic; font-size: 1.4rem; color: var(--ink-faint); }
.ed-card-next b { color: var(--ink-soft); }
.news-tier { margin-top: clamp(28px, 4vw, 40px); padding-top: 22px; border-top: 1px solid var(--ed-line); }
.news-tier-title { margin: 0 0 16px; font-family: var(--ed-serif); font-weight: 500; font-size: 1.6rem; color: var(--ink); }
.rail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rail-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: center; text-decoration: none; color: var(--ink); }
.rail-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.rail-text { display: grid; gap: 5px; }
.rail-text b { font-family: var(--ed-serif); font-weight: 500; font-size: 1.35rem; line-height: 1.15; transition: color .2s; }
.rail-card:hover b { color: var(--ed-sand); }
.rail-text .ed-card-dek { font-size: 0.88rem; }
.news-more .news-tier-title { font-size: 1.15rem; color: var(--ink-soft); }
.more-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.more-links a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.more-links img { width: 56px; height: 56px; object-fit: cover; display: block; opacity: 0.85; }
.more-links b { display: block; font-size: 0.95rem; font-weight: 600; }
.more-links span span { display: block; font-size: 0.82rem; color: var(--ink-faint); line-height: 1.45; }
.more-links a:hover b { color: var(--ed-sand); }
/* GHIC badge: a slowly turning stamp */
.ghic-badge { flex: none; width: 104px; height: 104px; display: block; border-radius: 50%; color: var(--ed-sand); }
.ghic-badge svg { width: 100%; height: 100%; overflow: visible; }
.ghic-spin { transform-origin: 60px 60px; animation: ghic-turn 22s linear infinite; }
.ghic-spin text { fill: currentColor; font: 600 9.6px var(--font-body); letter-spacing: 2.2px; }
.ghic-core { fill: rgba(216, 185, 154, 0.1); stroke: currentColor; stroke-width: 1; }
.ghic-cross { fill: currentColor; opacity: 0.9; }
.ghic-badge:hover .ghic-spin { animation-duration: 8s; }
.ghic-badge:hover .ghic-core { fill: rgba(216, 185, 154, 0.22); }
.ghic-badge:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@keyframes ghic-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ghic-spin { animation: none; } .ed-card-img img { transition: none; } }
@media (max-width: 760px) {
  .ed-grid, .rail-grid, .more-links { grid-template-columns: minmax(0, 1fr); }
  .rail-card { grid-template-columns: 96px minmax(0, 1fr); }
  .ghic-badge { width: 84px; height: 84px; }
}
/* Travel style: one collapsible line */
.style-strip { padding: 0 clamp(16px, 2.5vw, 24px); gap: 0; }
.style-line1 { width: 100%; display: flex; align-items: baseline; gap: 14px; padding: 15px 0; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.style-line1[hidden] { display: none; }
.style-line1 .style-kicker { flex: none; margin: 0; }
.style-one { flex: 1; min-width: 0; font-family: var(--tr-serif); font-size: 1.15rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.style-go { color: var(--tr-sand); }
.style-line1:hover .style-one { color: var(--tr-sand); }
.style-chev { flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--tr-sand); border-bottom: 1.5px solid var(--tr-sand); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.style-toggle[aria-expanded="true"] .style-chev { transform: translateY(1px) rotate(-135deg); }
.style-body { padding: 0 0 14px; border-top: 1px solid var(--tr-line); }
.style-body[hidden] { display: none; }
.style-body .style-line { margin: 14px 0 4px; }
@media (max-width: 600px) { .style-line1 { flex-wrap: wrap; gap: 4px 12px; } .style-one { white-space: normal; flex-basis: 100%; order: 3; } }

/* ---------- GHIC guide: compact layout ---------- */
.story.ghic .ed-hero-over { min-height: clamp(320px, 46vh, 440px); }
.story.ghic .ed-hero-over h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.story.ghic .story-body { padding-top: clamp(20px, 3vw, 32px); font-size: 1rem; line-height: 1.65; }
.story.ghic .story-body > * + * { margin-top: 0.9em; }
.story.ghic .story-body h2 { font-size: clamp(1.6rem, 2.8vw, 2rem); margin-top: 1.5em; }
.story.ghic .story-lede { font-size: 1.1rem; }
.story.ghic .gh-key { margin-block: 1.2em !important; }
.story.ghic .gh-key div { padding: 12px 14px; }
.story.ghic .gh-check { padding: 16px 0; margin-block: 1.1em !important; }
.story.ghic .story-pair { margin-block: 1.2em !important; gap: 12px; }
.story.ghic .story-pair img { aspect-ratio: 16 / 10 !important; }
.story.ghic .gh-steps li { padding: 10px 0 10px 40px; }
.story.ghic .gh-list li { padding: 5px 0 5px 22px; }
.story.ghic .story-facts { padding: 18px 0; margin-top: 1.6em !important; }
.story.ghic .story-facts dl { gap: 10px; }
.story.ghic .story-cta { margin-top: 1.6em !important; }
@media (min-width: 900px) {
  .story.ghic .gh-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .story.ghic .gh-cols > div > h2:first-child { margin-top: 0; }
}
.story.ghic .story-body { max-width: 54rem; }
.story.ghic .gh-cols > div > * + * { margin-top: 0.9em; }
.story.ghic .gh-cols h2 { margin-bottom: 0; }

/* ---------- Chile guide ---------- */
.cl .story-lede::first-letter { color: #E8735A; }
.cl .story-quote { border-left-color: #E8735A; }
.story-hero .img-slot.story-hero-slot { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto !important; z-index: -2; align-content: start; padding-top: 40px; }
.cl-explorer { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; margin-block: 1.4em !important; padding: 20px; border-radius: 20px; background: rgba(9, 32, 63, 0.7); border: 1px solid var(--line); }
.cl-map { width: 100%; height: auto; max-height: 440px; }
.cl-land { fill: rgba(232, 115, 90, 0.18); stroke: rgba(244, 246, 251, 0.35); stroke-width: 1; }
.cl-note { fill: rgba(244, 246, 251, 0.45); font: italic 12px "Cormorant Garamond", Georgia, serif; }
.cl-side { writing-mode: vertical-rl; }
.cl-dot { cursor: pointer; }
.cl-dot circle:first-child { fill: #061529; stroke: #E8735A; stroke-width: 2; transition: fill .2s; }
.cl-dot.on circle:first-child { fill: #E8735A; }
.cl-dot .cl-hit { fill: transparent; }
.cl-explorer-body { display: grid; gap: 14px; min-width: 0; }
.cl-explorer .az-tabs button[aria-selected="true"] { background: #E8735A; border-color: #E8735A; color: #1a0703; }
.cl-explorer .az-nick, .cl-explorer .az-stay b { color: #E8735A; }
.cl-explorer .az-hl li { background: rgba(232, 115, 90, 0.1); border-color: rgba(232, 115, 90, 0.3); }
.cl-why { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 10px; }
.cl-why li { position: relative; padding-left: 22px; line-height: 1.7; }
.cl-why li::before { content: "—"; position: absolute; left: 0; color: #E8735A; }
@media (max-width: 600px) { .cl-explorer { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; padding: 14px; } }
.cl-explorer .az-tabs { flex-wrap: wrap; overflow: visible; }

/* ---------- Photo viewer: full view for cropped photos ---------- */
.ph-frame { position: relative; display: block; }
.ph-btn { display: none; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(244,246,251,0.28); background: rgba(6,20,40,0.5); color: #F4F6FB; padding: 0; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: .85; transition: opacity .2s, background .2s, transform .2s; }
.ph-btn svg { width: 14px; height: 14px; display: block; margin: auto; }
.ph-on .ph-btn { display: block; }
.ph-on img { cursor: zoom-in; }
.ph-frame:hover .ph-btn, .ph-btn:focus-visible { opacity: 1; background: rgba(6,20,40,0.72); transform: scale(1.06); }
.ph-btn:focus-visible { outline: 2px solid #D8B99A; outline-offset: 2px; }
.ph-box { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(4,12,26,0.94); color: #F4F6FB; }
.ph-box::backdrop { background: rgba(4,12,26,0.6); }
.ph-box[open] { display: flex; align-items: center; justify-content: center; animation: ph-in .22s ease-out; }
@keyframes ph-in { from { opacity: 0; } to { opacity: 1; } }
.ph-fig { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 100%; padding: 64px 72px 40px; box-sizing: border-box; }
.ph-fig img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.ph-fig figcaption { font-size: 13px; color: rgba(244,246,251,0.7); max-width: 640px; text-align: center; line-height: 1.5; }
.ph-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #F4F6FB; font: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid rgba(216,185,154,0.6); padding: 4px 0; cursor: pointer; }
.ph-close:hover { color: #D8B99A; }
.ph-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(244,246,251,0.18); background: transparent; color: #F4F6FB; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 0 3px; }
.ph-nav:hover { border-color: #D8B99A; color: #D8B99A; }
.ph-prev { left: 14px; } .ph-next { right: 14px; }
.ph-single .ph-nav { display: none; }
html.ph-lock { overflow: hidden; }
@media (max-width: 700px) {
  .ph-fig { padding: 56px 12px 24px; }
  .ph-nav { top: auto; bottom: 14px; transform: none; width: 40px; height: 40px; }
  .ph-fig img { max-height: calc(100vh - 170px); }
}
@media (prefers-reduced-motion: reduce) { .ph-box[open] { animation: none; } .ph-btn { transition: none; } }

/* Chile hero: portrait clock-tower photo, split layout like Morocco */
.cl-hero img { object-position: center 55%; }
.ed-card-img img.lead-img-chile { object-position: center 58%; }
@media (min-width: 900px) {
  .cl-hero { background: radial-gradient(120% 140% at 0% 100%, #2a2f4a 0%, #0b2242 60%); }
  .cl-hero img { object-position: center 50%; }
}

/* ---------- Weather (wx-) ---------- */
body:has(.wx-main) { min-height: 100vh; background: #537895 linear-gradient(165deg, #09203F 0%, #1d3a5c 50%, #537895 100%) no-repeat; background-size: 100% 100%; }
body:has(.wx-main) .site-header, body:has(.wx-main) .site-footer { display: none; }
.wx-main { padding: 0; }
.wx-main .wrap { max-width: none; padding: 0; }
.wx-main #gate { margin: 24px; }
.wx { color: #F4F6FB; min-height: 100vh; }
.wx-bar { position: sticky; top: 0; z-index: 30; background: rgba(9, 32, 63, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wx-search { position: relative; flex-basis: 24rem; }
.wx-pick { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; padding: 14px; border-radius: 16px; background: #0E2A4F; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); display: grid; gap: 8px; }
.wx-search .wx-pick button { font-weight: 400; border-radius: 0; padding: 0; background: none; }
.wx-pick-h { margin: 6px 0 0; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 246, 251, .5); }
.wx-search .wx-pick .wx-here { font: inherit; font-size: .85rem; text-align: left; color: #D8B99A; background: none; border: 0; padding: 0 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); cursor: pointer; }
.wx-search .wx-pick .wx-here:hover { color: #fff; }
.wx-saved { display: grid; }
.wx-saved-row { display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.wx-search .wx-pick .wx-saved-go { flex: 1; font: inherit; font-size: .9rem; color: #F4F6FB; background: none; border: 0; text-align: left; padding: 8px 0; cursor: pointer; }
.wx-search .wx-pick .wx-saved-go:hover { color: #D8B99A; }
.wx-search .wx-pick .wx-saved-x { font: inherit; font-size: 1.1rem; line-height: 1; color: rgba(244, 246, 251, .45); background: none; border: 0; padding: 4px 6px; cursor: pointer; }
.wx-search .wx-pick .wx-saved-x:hover { color: #FF8A80; }
.wx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wx-search .wx-pick .wx-chip { font: inherit; font-size: .8rem; color: #F4F6FB; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.wx-search .wx-pick .wx-chip:hover { border-color: #D8B99A; color: #D8B99A; }
.wx-muted { margin: 0; font-size: .82rem; color: rgba(244, 246, 251, .55); }

.wx-wrap { max-width: 76rem; margin: 0 auto; padding: 24px 20px 56px; }
.wx-status { margin: 40px 0; text-align: center; color: rgba(244, 246, 251, .7); }
.wx-error { margin: 40px auto; max-width: 30rem; text-align: center; display: grid; gap: 14px; }
.wx-error p { margin: 0; line-height: 1.5; }
.wx-btn { font: inherit; font-size: .85rem; font-weight: 600; color: #fff; background: #FF6633; border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; }
.wx-btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .3); }

.wx-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; }
.wx-now { position: relative; overflow: hidden; border-radius: 22px; min-height: 23rem; background: #1d3a5c; isolation: isolate; }
.wx-now-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.wx-now::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 18, 36, .45) 0%, rgba(6, 18, 36, .15) 40%, rgba(6, 18, 36, .7) 100%); }
.wx-now-in { height: 100%; padding: 22px 24px; display: flex; flex-direction: column; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.wx-place-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wx-place-row h2 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.wx-save { flex: none; font: inherit; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(9, 32, 63, .35); border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 5px 12px; cursor: pointer; text-shadow: none; }
.wx-save[aria-pressed="true"] { background: #F4F6FB; color: #0B2545; border-color: #F4F6FB; }
.wx-local { margin: 4px 0 0; font-size: .82rem; color: rgba(244, 246, 251, .8); }
.wx-temp-row { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.wx-temp { font-size: clamp(4rem, 9vw, 6rem); font-weight: 300; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.wx-cond-ico svg { width: 52px; height: 52px; display: block; }
.wx-desc { margin: 6px 0 0; font-size: 1.15rem; font-weight: 600; }
.wx-feels { margin: 2px 0 0; font-size: .88rem; color: rgba(244, 246, 251, .82); }
.wx-range { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.wx-range i { position: relative; flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #6FA8FF, #FFD36E, #FF8A65); }
.wx-range b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(9, 32, 63, .4); }

.wx-radar { border-radius: 22px; overflow: hidden; background: rgba(9, 32, 63, .45); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; min-height: 23rem; }
.wx-radar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; }
.wx-radar-head h2 { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 246, 251, .65); }
.wx-layers { display: flex; flex-wrap: wrap; gap: 4px; }
.wx-layers button { font: inherit; font-size: .74rem; color: rgba(244, 246, 251, .7); background: none; border: 1px solid transparent; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.wx-layers button:hover { color: #fff; }
.wx-layers button[aria-pressed="true"] { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); }
.wx-map-wrap { position: relative; flex: 1; min-height: 18rem; }
.wx-map-wrap .wx-map { position: absolute; inset: 0; background: #dfe6ee; }
.wx-map-err { padding: 20px; color: #0B2545; }
.wx-legend { position: absolute; left: 12px; bottom: 12px; width: min(15rem, calc(100% - 24px)); padding: 8px 10px; border-radius: 10px; background: rgba(9, 32, 63, .82); display: grid; gap: 4px; pointer-events: none; }
.wx-legend i { display: block; height: 6px; border-radius: 3px; }
.wx-legend span { display: flex; justify-content: space-between; }
.wx-legend small { font-size: .66rem; color: rgba(244, 246, 251, .75); }
.wx-marker { width: 14px; height: 14px; border-radius: 50%; background: #FF6633; border: 2px solid #fff; box-shadow: 0 0 0 6px rgba(255, 102, 51, .25); }

.wx-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.wx-stats div { padding: 14px 16px; border-left: 1px solid rgba(255, 255, 255, .08); }
.wx-stats div:first-child { border-left: 0; padding-left: 0; }
.wx-stats dt { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 246, 251, .55); }
.wx-stats dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.wx-fc { margin-top: 32px; }
.wx-fc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wx-fc-head h2 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 1.9rem; }
.wx-fc-head p { margin: 0; font-size: .82rem; color: rgba(244, 246, 251, .6); }
.wx-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.wx-day { font: inherit; color: inherit; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; aspect-ratio: 3 / 4.2; border-radius: 18px; }
.wx-day:focus-visible { outline: 2px solid #D8B99A; outline-offset: 3px; }
.wx-day-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.4, .1, .2, 1); transform-style: preserve-3d; }
.wx-day.flipped .wx-day-in { transform: rotateY(180deg); }
.wx-face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; }
.wx-front { background: #1d3a5c; }
.wx-front video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wx-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 18, 36, .5) 0%, rgba(6, 18, 36, .05) 45%, rgba(6, 18, 36, .65) 100%); }
.wx-front-txt { position: relative; z-index: 1; height: 100%; padding: 14px; display: flex; flex-direction: column; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.wx-face b { font-size: 1rem; font-weight: 700; }
.wx-face small { font-size: .74rem; color: rgba(244, 246, 251, .78); }
.wx-day-ico { margin-top: 10px; }
.wx-day-ico svg { width: 30px; height: 30px; display: block; }
.wx-day-desc { margin-top: auto; font-size: .82rem; line-height: 1.3; }
.wx-day-t { margin-top: 4px; font-size: .95rem; color: rgba(244, 246, 251, .78); font-variant-numeric: tabular-nums; }
.wx-day-t b { font-size: 1.35rem; color: #fff; }
.wx-back { transform: rotateY(180deg); padding: 14px; background: linear-gradient(145deg, #09203F, #537895); border: 1px solid rgba(255, 255, 255, .14); gap: 2px; }
.wx-back-rows { display: grid; gap: 6px; margin: 12px 0; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; font-variant-numeric: tabular-nums; }
.wx-back-rows span, .wx-haz { display: grid; gap: 1px; }
.wx-back em, .wx-haz em { font-style: normal; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 246, 251, .55); }
.wx-haz { font-size: .78rem; gap: 3px; overflow: hidden; }
.wx-haz span { color: #FFD9A0; }
.wx-haz span.none { color: rgba(244, 246, 251, .75); }

.wx-foot { margin: 28px 0 0; font-size: .72rem; line-height: 1.7; color: rgba(244, 246, 251, .5); text-align: center; }
.wx-link { font: inherit; color: #D8B99A; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .wx-top { grid-template-columns: 1fr; }
  .wx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wx-stats div:nth-child(4) { border-left: 0; padding-left: 0; }
  .wx-stats div:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .wx-days { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(10.5rem, 42%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scroll-padding: 0 20px; }
  .wx-day { scroll-snap-align: start; }
}
@media (max-width: 860px) { .wx-search { order: 3; flex-basis: 100%; margin-left: 0; } }
@media (max-width: 560px) {
  .wx-wrap { padding: 16px 16px 48px; }
  .wx-now { min-height: 20rem; }
  .wx-radar { min-height: 0; }
  .wx-map-wrap { min-height: 20rem; }
  .wx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx-stats div { border-left: 0 !important; padding-left: 0 !important; }
  .wx-stats div:nth-child(even) { padding-left: 16px !important; border-left: 1px solid rgba(255, 255, 255, .08) !important; }
  .wx-stats div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .wx-days { margin: 0 -16px; padding-left: 16px; padding-right: 16px; grid-auto-columns: minmax(9.5rem, 46%); }
}
@media (prefers-reduced-motion: reduce) { .wx-day-in { transition: none; } }

/* Itinerary wizard: transport step */
.it-progress { grid-template-columns: repeat(5, 1fr); }
.it-transport { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.it-transport .it-pace-btn { display: grid; gap: 3px; align-content: start; text-align: left; padding: 12px 14px; }
.it-transport .it-pace-btn small { font-weight: 400; font-size: .76rem; color: rgba(255, 255, 255, .7); }
.it-transport .it-pace-btn[aria-pressed="true"] small { color: rgba(255, 255, 255, .9); }
@media (max-width: 560px) { .it-transport { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Itinerary: photo banners on stop cards */
.it-banner { grid-column: 1 / -1; position: relative; margin: 0; height: 9.5rem; border-radius: 13px 13px 0 0; overflow: hidden; background: rgba(255, 255, 255, .06); }
.it-banner img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.it-banner figcaption { position: absolute; right: 8px; bottom: 6px; font-size: .64rem; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.it-banner figcaption a { color: inherit; text-decoration: none; }
.it-banner figcaption a:hover { text-decoration: underline; }
.it-stop.has-photo .it-stop-tools { padding-top: 8px; }
@media (max-width: 560px) { .it-banner { height: 8rem; } }
.it-mode { bottom: 40px; }
.it-banner .it-banner-ex { display: block; top: 10px; right: 10px; bottom: auto; }
.it-banner img { cursor: zoom-in; }
.ph-fig figcaption b { color: #F4F6FB; font-weight: 600; }
.ph-fig figcaption a { color: #D8B99A; }
/* Weather: "tap a day" hint icon next to the forecast heading */
.wx-tap { width: 1.55rem; height: 1.55rem; vertical-align: -.2em; margin-left: .35rem; fill: none; stroke: #D8B99A; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform-origin: 40% 80%; animation: wx-tap 2.6s ease-in-out infinite; }
.wx-tap-rays { animation: wx-rays 2.6s ease-in-out infinite; }
@keyframes wx-tap { 0%, 60%, 100% { transform: translateY(0) scale(1); } 70% { transform: translateY(1.5px) scale(.92); } 80% { transform: translateY(0) scale(1); } }
@keyframes wx-rays { 0%, 62%, 100% { opacity: .35; } 72% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wx-tap, .wx-tap-rays { animation: none; } }

/* ---------- Weather: warnings on the current card + natural hazards map ---------- */
.wx-alerts { display: grid; gap: 6px; margin-top: 10px; justify-items: start; }
.wx-alert { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font: inherit; font-size: .8rem; color: #fff; text-align: left; text-shadow: none; background: rgba(9, 32, 63, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .22); border-left: 4px solid var(--c); border-radius: 10px; padding: 6px 12px 6px 10px; cursor: pointer; }
.wx-alert i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.wx-alert b { font-weight: 700; }
.wx-alert span { color: rgba(255, 255, 255, .8); }
.wx-alert:hover { background: rgba(9, 32, 63, .8); }
.wx-hz { margin-top: 36px; scroll-margin-top: 80px; }
.wx-hz-layers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wx-hz-layers button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .78rem; color: rgba(244, 246, 251, .6); background: transparent; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.wx-hz-layers button b { font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(244, 246, 251, .5); }
.wx-hz-layers button[aria-pressed="true"] { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); }
.wx-hz-layers button[aria-pressed="true"] b { color: #D8B99A; }
.wx-hz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 14px; }
.wx-hz-mapwrap { position: relative; height: 30rem; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: #dfe6ee; }
.wx-hz-mapwrap .wx-hz-map { position: absolute; inset: 0; }
.wx-hz-side { border-radius: 22px; background: rgba(9, 32, 63, .45); border: 1px solid rgba(255, 255, 255, .12); padding: 14px 14px 10px; overflow-y: auto; max-height: 30rem; }
.wx-hz-side h3 { margin: 0 0 8px; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 246, 251, .6); }
.wx-hz-list { list-style: none; margin: 0; padding: 0; display: grid; }
.wx-hz-list li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
.wx-hz-list button { display: flex; gap: 10px; align-items: flex-start; width: 100%; font: inherit; color: inherit; text-align: left; background: none; border: 0; padding: 9px 2px; cursor: pointer; }
.wx-hz-list button:hover b { color: #D8B99A; }
.wx-hz-list i { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; }
.wx-hz-list span { display: grid; gap: 2px; min-width: 0; }
.wx-hz-list b { font-size: .86rem; font-weight: 600; }
.wx-hz-list small { font-size: .74rem; color: rgba(244, 246, 251, .6); line-height: 1.35; }
.wx-hz-list .hz-none { padding: 10px 2px; font-size: .84rem; color: rgba(244, 246, 251, .6); }
.wx-hz-attr { margin: 10px 0 0; font-size: .7rem; line-height: 1.5; color: rgba(244, 246, 251, .5); }
.hz-pin { width: 20px; height: 20px; padding: 3px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); cursor: pointer; display: grid; place-items: center; }
.hz-pin.big { width: 26px; height: 26px; padding: 4px; }
.hz-pin svg { width: 100%; height: 100%; display: block; }
.hz-pin.hz-warning { border-radius: 6px; }
.hz-popup .maplibregl-popup-content { padding: 12px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(9, 32, 63, .25); font-family: Inter, Helvetica, Arial, sans-serif; color: #0B1F3A; }
.hz-pop h4 { margin: 2px 0 4px; font-size: .95rem; line-height: 1.3; }
.hz-pop-k { margin: 0; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hz-pop-s { margin: 0 0 3px; font-size: .8rem; color: #33415C; line-height: 1.4; }
.hz-pop-t { margin: 0 0 6px; font-size: .74rem; color: #8A94A6; }
.hz-pop ul { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 6px; font-size: .78rem; color: #33415C; }
.hz-pop li { display: grid; grid-template-columns: 9px 1fr; column-gap: 7px; }
.hz-pop li i { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; grid-row: span 2; }
.hz-pop li small { color: #8A94A6; font-size: .7rem; }
.hz-pop a { font-size: .78rem; font-weight: 600; color: #1D6FA3; text-decoration: none; }
@media (max-width: 960px) { .wx-hz-grid { grid-template-columns: 1fr; } .wx-hz-mapwrap { height: 24rem; } .wx-hz-side { max-height: none; } }

/* ---------- Itinerary: build it your way ---------- */
.it-own { margin-top: 6px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.it-own-or { justify-self: stretch; display: flex; align-items: center; gap: 12px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.it-own-or::before, .it-own-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }
.it-own p { margin: 0; max-width: 26rem; font-size: .82rem; line-height: 1.45; color: rgba(255, 255, 255, .7); }
.it-day-col { display: grid; gap: 12px; min-width: 0; }
.it-add { position: relative; }
.it-add-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.it-add-row:focus-within { border-color: rgba(255, 255, 255, .45); }
.it-add-plus { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #C33764; color: #fff; font-weight: 700; font-size: 1rem; line-height: 1; }
.it-add-input { flex: 1; min-width: 0; font: inherit; font-size: .92rem; color: #fff; background: transparent; border: 0; padding: 8px 2px; }
.it-add-input::placeholder { color: rgba(255, 255, 255, .55); }
.it-add-input:focus { outline: none; }
#pick-btn { flex: none; }
#pick-btn[aria-pressed="true"] { background: #C33764; border-color: #C33764; color: #fff; }
.it-add-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; border-radius: 14px; background: #10294A; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); max-height: 22rem; overflow-y: auto; }
.it-add-results button { width: 100%; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; text-align: left; font: inherit; color: #fff; background: none; border: 0; border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.it-add-results button:hover, .it-add-results button:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.it-add-results b { font-size: .9rem; font-weight: 600; }
.it-add-results span { grid-column: 1; font-size: .76rem; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.it-add-results em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: .74rem; font-weight: 600; color: #F7A8C4; white-space: nowrap; }
.it-add-none { padding: 10px; font-size: .84rem; color: rgba(255, 255, 255, .7); }
.it-add-hint { margin: 8px 2px 0; font-size: .8rem; color: #F7A8C4; }
.it-empty { padding: 18px 6px; line-height: 1.5; }
.it-timing { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 10px; font-size: .82rem; color: rgba(255, 255, 255, .75); }
.it-timing label { display: inline-flex; align-items: center; gap: 8px; }
.it-timing input, .it-timing select { font: inherit; font-size: .84rem; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; padding: 5px 8px; color-scheme: dark; }
.it-icon:disabled { opacity: .3; cursor: default; }
.it-pick-popup .maplibregl-popup-content { border-radius: 12px; padding: 12px 14px; font-family: Inter, Helvetica, Arial, sans-serif; color: #0B1F3A; }
.it-pick-pop { display: grid; gap: 4px; }
.it-pick-pop b { font-size: .92rem; }
.it-pick-pop span { font-size: .76rem; color: #53607A; }
.it-pick-pop .it-btn { margin-top: 6px; justify-self: start; }
.it-pick-pop .it-muted { margin: 0; color: #53607A; font-size: .8rem; }

/* ---------- About ---------- */
.story.ab { max-width: 64rem; margin: 0 auto; }
.ab-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 64px); align-items: end; padding: clamp(28px, 6vw, 72px) 0 clamp(20px, 4vw, 40px); border-bottom: 1px solid rgba(244, 246, 251, .1); }
.ab-kicker { margin: 0 0 14px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: #D8B99A; }
.ab-intro h1 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; }
.ab-dek { margin: 18px 0 0; max-width: 34rem; font-size: 1.12rem; line-height: 1.6; color: rgba(244, 246, 251, .78); }
.ab-photo { margin: 0; justify-self: end; width: min(100%, 380px); }
.ab-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 4px; filter: saturate(.92); }
.ab-photo figcaption { margin-top: 10px; font-size: .78rem; letter-spacing: .04em; color: rgba(244, 246, 251, .55); font-style: italic; }
.ab-body { padding-top: clamp(24px, 4vw, 48px); }
.ab-body h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.ab-list { margin: 22px 0 8px; display: grid; gap: 0; border-top: 1px solid rgba(244, 246, 251, .12); }
.ab-list div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 6px 28px; padding: 16px 0; border-bottom: 1px solid rgba(244, 246, 251, .12); }
.ab-list dt { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: #F4F6FB; }
.ab-list dd { margin: 0; line-height: 1.6; color: rgba(244, 246, 251, .78); }
.ab-close { margin-top: 36px; font-size: 1.15rem; line-height: 1.7; }
.ab-sign { margin: 22px 0 0; display: grid; gap: 2px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 246, 251, .55); }
.ab-sign span { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 2.4rem; letter-spacing: 0; text-transform: none; color: #D8B99A; line-height: 1; }
.ab-cta { margin: 40px 0 clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
@media (max-width: 860px) {
  .ab-head { grid-template-columns: 1fr; align-items: start; }
  .ab-photo { justify-self: start; width: min(78%, 340px); order: -1; }
  .ab-list div { grid-template-columns: 1fr; }
}

/* ---------- Member menu: groups like the app (My account, Plan & Research, Book & Reserve) ---------- */
.menu-group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.menu-group:last-of-type { border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 4px; }
.menu-group summary { list-style: none; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; }
.menu-group summary::-webkit-details-marker { display: none; }
.menu-group summary::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 8px; height: 8px; border-right: 1.6px solid var(--ink-soft); border-bottom: 1.6px solid var(--ink-soft); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.menu-group[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.menu-group summary:hover, .menu-group summary:focus-visible { background: var(--glass-strong); outline: none; }
.menu-group-t { font-family: var(--font-body); font-weight: 700; font-size: .95rem; color: var(--ink); }
.menu-group-s { grid-column: 1; font-size: .74rem; color: var(--ink-faint); margin-top: 2px; }
.menu-group-items { display: grid; gap: 2px; padding: 2px 0 6px 10px; margin-left: 10px; border-left: 1px solid var(--line); }
.menu-group-items .menu-item { padding: 8px 10px; font-size: .9rem; font-weight: 500; }
@media (max-width: 860px) {
  .side-menu:has(.menu-group) { display: grid; overflow: visible; padding: 10px; gap: 2px; }
  .side-menu:has(.menu-group) .menu-item { padding: 9px 10px; }
  .menu-group-s { display: none; }
}

/* "My account" pop-out: journeys links (My flights, My trains, My World) */
.acct-pop .acct-pop-h { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.acct-pop #h-details { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.acct-jrs { display: grid; gap: 4px; }
.acct-jr { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.acct-jr:hover, .acct-jr:focus-visible { background: rgba(255, 255, 255, 0.08); }
.acct-jr svg { grid-row: span 2; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acct-jr span { font-weight: 600; }
.acct-jr small { color: var(--ink-soft); font-size: .8rem; }

/* ================= Budget (beta): calm colours, big targets, one number that matters ================= */
.bud-main .wrap { max-width: 68rem; }
.bud { --ok: #5CC8B2; --low: #F2B66D; --over: #F08A7E; --tone: var(--ok); }
.bud-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 22px; }
.bud-head h1 { font-size: var(--step-3); margin: 4px 0 0; line-height: 1.1; }
.bud-back { color: var(--ink-soft); text-decoration: none; font-size: var(--step--1); }
.bud-back:hover { color: var(--ink); }
.bud-beta { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); margin-left: 6px; vertical-align: 2px; }
.bud-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bud-sub { color: var(--ink-soft); margin: 4px 0 12px; font-size: var(--step--1); }
.bud-empty { color: var(--ink-faint); font-size: var(--step--1); margin: 6px 0; }
.bud .panel h2, .bud-sheet h2 { font-size: var(--step-1); margin: 0; }
.bud-lab { display: block; font-weight: 600; margin: 16px 0 8px; }
.bud-lab span { font-weight: 400; color: var(--ink-faint); }
.bud-hint { color: var(--ink-soft); font-size: var(--step--1); margin: 10px 0 0; }

/* setup */
.bud-setup { max-width: 40rem; margin: 0 auto; padding: 28px; }
.bud-progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; }
.bud-progress li { flex: 1; height: 5px; border-radius: 999px; background: var(--glass-strong); }
.bud-progress li.done { background: var(--ok); }
.bud-progress li.now { background: linear-gradient(90deg, var(--ok) 50%, var(--glass-strong) 50%); }
.bud-step-n { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.bud-setup h2 { font-size: var(--step-2); margin: 6px 0 6px; outline: none; }
.bud-step-p { color: var(--ink-soft); margin: 0 0 18px; }
.bud-step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.bud-step-nav .btn:only-child, .bud-step-nav [hidden] + .btn { margin-left: auto; }
.bud-money { display: flex; align-items: center; gap: 10px; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 8px 18px; max-width: 22rem; }
.bud-money:focus-within, .bud-amt-row:focus-within { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(92, 200, 178, .22); }
.bud-cur { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink-soft); }
.bud-money input, .bud-amt-row input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 600 2rem/1.2 var(--font-display); padding: 6px 0; outline: none; }
.bud-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.bud-seg button, .bud-chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; cursor: pointer; }
.bud-seg button[aria-checked="true"], .bud-chip[aria-checked="true"] { background: rgba(92, 200, 178, .18); border-color: var(--ok); }
.bud-seg button:hover, .bud-chip:hover { background: var(--glass-strong); }
.bud-payday select, .bud-rule-build select { background: var(--glass); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; }
.bud-payday select { min-width: 6rem; }
.bud-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bud-chips.small { margin-top: 12px; }
.bud-chip { display: inline-flex; align-items: center; gap: 8px; }
.bud-chip small { color: var(--ink-faint); }
.bud-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pot, var(--ok)); flex: none; }
.bud-potedit { display: grid; gap: 8px; margin: 10px 0; }
.bud-potrow { display: grid; grid-template-columns: 12px 1fr 7.5rem auto 32px; gap: 10px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px 8px 14px; }
.bud-potrow input.bud-pn, .bud-potrow input.bud-pa { background: transparent; border: 0; border-bottom: 1px solid transparent; color: var(--ink); font: inherit; padding: 6px 2px; min-width: 0; }
.bud-potrow input.bud-pa { text-align: right; font-weight: 600; }
.bud-potrow input:focus { outline: none; border-bottom-color: var(--ok); }
.bud-want { display: inline-flex; gap: 6px; align-items: center; font-size: var(--step--1); color: var(--ink-soft); cursor: pointer; }
.bud-want input { width: 18px; height: 18px; accent-color: #5CC8B2; }
.bud-pdel { background: none; border: 0; color: var(--ink-faint); font-size: 1.3rem; cursor: pointer; border-radius: 8px; height: 32px; }
.bud-pdel:hover { color: var(--ink); background: var(--glass); }
.bud-potsum { margin: 12px 0 0; font-weight: 600; color: var(--ok); }
.bud-potsum.bad { color: var(--over); }
.bud-rule-build { font-size: var(--step-1); line-height: 2.1; margin: 0; }
.bud-rule-build select { font-size: 1rem; margin: 0 2px; }

/* dashboard */
.bud-dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bud-col { display: grid; gap: 20px; }
.bud-hero { --tone: var(--ok); position: relative; border-radius: var(--radius); padding: 28px 26px 22px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--tone) 26%, transparent), transparent 70%), rgba(9, 28, 54, .7);
  border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); transition: border-color .6s, background .6s; }
.bud-hero[data-state="low"] { --tone: var(--low); }
.bud-hero[data-state="over"] { --tone: var(--over); }
.bud-hero-k { margin: 0; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.bud-hero-n { margin: 6px 0 4px; font: 700 clamp(3rem, 9vw, 4.6rem)/1 var(--font-display); color: var(--tone); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bud-hero.hide-n .bud-hero-n { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.2; }
.bud-hero-s { margin: 0 auto; max-width: 30rem; color: var(--ink-soft); }
.bud-add { margin: 20px auto 18px; display: flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 20rem); min-height: 56px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--tone); color: #08202B; font: 700 1.1rem var(--font-body); box-shadow: 0 10px 30px color-mix(in srgb, var(--tone) 35%, transparent); transition: transform .15s, background .6s; }
.bud-add span { font-size: 1.5rem; line-height: 1; }
.bud-add:hover { transform: translateY(-1px); }
.bud-add:active { transform: scale(.98); }
.bud-days { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 28rem; margin: 0 auto; }
.bud-days i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line); }
.bud-days i.past { background: rgba(255, 255, 255, .28); border-color: transparent; }
.bud-days i.now { background: var(--tone); border-color: transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 30%, transparent); }
.bud-left { margin: 12px 0 0; color: var(--ink-soft); font-size: var(--step--1); }
.bud-rule { border-left: 3px solid var(--ok); padding: 6px 0 6px 16px; }
.bud-rule-k { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.bud-rule p { margin: 4px 0 0; font-size: var(--step-0); }

.bud-pots { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 12px; margin-top: 14px; }
.bud-pot { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: stretch; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.bud-jar { position: relative; border-radius: 9px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); overflow: hidden; min-height: 64px; }
.bud-jar span { position: absolute; left: 0; right: 0; bottom: 0; height: var(--fill); background: var(--pot); opacity: .85; transition: height .7s cubic-bezier(.2, .8, .2, 1); }
.bud-pot.low .bud-jar span { opacity: .55; }
.bud-pot-t { display: grid; align-content: center; gap: 2px; min-width: 0; }
.bud-pot-t b { font-size: var(--step--1); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bud-tag { font-style: normal; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-faint); font-weight: 400; }
.bud-pot-left { font: 700 1.15rem var(--font-display); font-variant-numeric: tabular-nums; }
.bud-pot.over .bud-pot-left { color: var(--over); }
.bud-pot-of { font-size: .78rem; color: var(--ink-faint); }
.bud-fixed { margin: 14px 0 0; font-size: var(--step--1); color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.bud-fixed::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat; }

.bud-waits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bud-w { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 16px; overflow: hidden; }
.bud-w-t { display: grid; gap: 2px; min-width: 0; }
.bud-w-t span { font-size: var(--step--1); color: var(--ink-soft); }
.bud-w-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--wait); background: var(--pot, var(--ok)); opacity: .8; }
.bud-w.ready { border-color: var(--ok); }
.bud-w.ready .bud-w-t span { color: var(--ok); font-weight: 600; }
.bud-w-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bud-saved { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(92, 200, 178, .12); color: var(--ink); font-size: var(--step--1); }

.bud-checkin { border-color: rgba(127, 167, 245, .45); }
.bud-ci-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.bud-ci-stats div { background: var(--glass); border-radius: 12px; padding: 10px; }
.bud-ci-stats dt { font-size: .75rem; color: var(--ink-faint); }
.bud-ci-stats dd { margin: 2px 0 0; font: 700 1.05rem var(--font-display); }
.bud-ci-p { color: var(--ink-soft); margin: 0 0 12px; }

.bud-day { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 16px 0 6px; font-weight: 400; }
.bud-row { display: grid; grid-template-columns: 10px 1fr auto 32px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bud-row-t { display: grid; min-width: 0; }
.bud-row-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bud-row-t small { color: var(--ink-faint); font-size: .78rem; }
.bud-row-a { font-weight: 600; font-variant-numeric: tabular-nums; }
.bud-row-x { background: none; border: 0; color: var(--ink-faint); font-size: 1.2rem; cursor: pointer; border-radius: 8px; height: 32px; }
.bud-row-x:hover { color: var(--ink); background: var(--glass); }
.bud-foot { color: var(--ink-faint); font-size: .8rem; margin: 0; }

/* sheets */
.bud-sheet { border: 1px solid var(--line); border-radius: 24px; padding: 0; width: min(30rem, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: #0B2240; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.bud-sheet::backdrop { background: rgba(3, 10, 22, .62); backdrop-filter: blur(3px); }
.bud-sheet[open] { animation: bud-up .22s ease-out; }
@keyframes bud-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bud-sheet-in { padding: 22px; display: block; }
.bud-sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bud-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.bud-amt-l { display: block; color: var(--ink-soft); margin: 6px 0 6px; }
.bud-amt-row { display: flex; align-items: center; gap: 10px; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px; }
.bud-amt-row input { font-size: 2.6rem; }
.bud-amt-hint { margin: 8px 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.bud-amt-hint.warn { color: var(--low); }
.bud-chips-f { border: 0; padding: 0; margin: 16px 0 0; }
.bud-chips-f legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.bud-sheet-in > div > input#bud-note { width: 100%; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: inherit; padding: 12px 14px; }
.bud-wide { width: 100%; margin-top: 20px; min-height: 52px; justify-content: center; }
.bud-pane-k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--low); margin: 0; }
.bud-pane-big { font: 700 var(--step-2)/1.2 var(--font-display); margin: 8px 0; }
.bud-pane-p { color: var(--ink-soft); margin: 0; }
.bud-move { margin-top: 6px; }
.bud-move .bud-chips { flex-direction: column; align-items: stretch; }
.bud-hold { position: relative; overflow: hidden; width: 100%; margin-top: 12px; min-height: 52px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .35); background: transparent; color: var(--ink-soft); font: 600 1rem var(--font-body); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
.bud-hold-fill { position: absolute; inset: 0; width: 0; background: rgba(240, 138, 126, .28); transition: width .2s linear; }
.bud-hold.holding .bud-hold-fill { width: 100%; }
.bud-hold-t { position: relative; }
.bud-cancel { display: block; margin: 14px auto 0; }
.bud-toggle { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.bud-toggle input { width: 22px; height: 22px; accent-color: #5CC8B2; margin-top: 2px; }
.bud-toggle span { color: var(--ink-soft); font-size: var(--step--1); }
.bud-toggle b { display: block; color: var(--ink); font-size: var(--step-0); }

.bud-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; gap: 16px; align-items: center; max-width: calc(100vw - 32px);
  background: #10304F; border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.bud-toast .linkish { color: var(--ok); font-weight: 600; white-space: nowrap; }

/* primary buttons in the tool use the calm teal instead of the site gradient */
.bud .btn:not(.ghost), .bud-sheet .btn:not(.ghost) { background: #5CC8B2; color: #08202B; border-color: transparent; box-shadow: none; }
.bud .btn:not(.ghost):hover, .bud-sheet .btn:not(.ghost):hover { background: #74D6C2; }
body.bud-calm .bud .btn:not(.ghost), body.bud-calm .bud-sheet .btn:not(.ghost) { background: #8FB8B0; }

/* calm mode and reduced motion: softer colours, nothing moves */
body.bud-calm .bud { --ok: #8FB8B0; --low: #C9B48F; --over: #C99A94; }
body.bud-calm .bud *, body.bud-calm .bud-sheet, body.bud-calm .bud-sheet * { transition: none !important; animation: none !important; }
body.bud-calm .bud-add { box-shadow: none; }
body.bud-calm .bud-hold .bud-hold-fill { transition: width linear !important; }   /* the hold still needs to show progress */

@media (max-width: 860px) {
  .bud-dash { grid-template-columns: 1fr; }
  .bud-setup { padding: 22px 18px; }
  .bud-potrow { grid-template-columns: 10px 1fr 5.5rem 32px; }
  .bud-potrow .bud-want { grid-column: 2 / -1; }
  .bud-potrow .bud-pdel { grid-row: 1; grid-column: 4; }
  .bud-ci-stats { grid-template-columns: 1fr; }
  .bud-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92vh; }
}

/* Budget: panel heads, set-aside list, plan editor, past statements */
.bud-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bud-fixed { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.bud-fixed::before { content: none; }
.bud-fixed-h { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; color: var(--ink-soft); font-size: var(--step--1); }
.bud-lock { width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat; }
.bud-fixed-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bud-fixed-list li { display: inline-flex; gap: 8px; align-items: baseline; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: .82rem; color: var(--ink-soft); }
.bud-fixed-list li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bud-fixed-list li.save { border-color: rgba(92, 200, 178, .4); }

.bud-editor { width: min(44rem, calc(100vw - 24px)); }
.bud-editor .bud-sheet-in { padding-bottom: 0; max-height: calc(100vh - 34px); overflow: auto; }
.bud-money.small { max-width: 16rem; padding: 4px 14px; }
.bud-money.small .bud-cur { font-size: 1.2rem; }
.bud-money.small input { font-size: 1.4rem; }
.ed-sec { margin-top: 22px; }
.ed-sec h3 { margin: 0; font-size: var(--step-0); }
.ed-sec .bud-hint { margin: 4px 0 10px; }
.ed-list { display: grid; gap: 6px; }
.ed-row { display: grid; grid-template-columns: 1fr 7rem auto 32px; gap: 8px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 12px; }
.ed-row.pot { grid-template-columns: 10px 1fr 7rem auto auto 32px; }
.ed-row-save { grid-template-columns: 1fr 7rem; }
.ed-name-static { color: var(--ink-soft); }
.ed-row input.ed-name, .ed-row input.ed-amt { background: transparent; border: 0; border-bottom: 1px solid transparent; color: var(--ink); font: inherit; padding: 7px 2px; min-width: 0; }
.ed-row input.ed-amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ed-row input:focus { outline: none; border-bottom-color: var(--ok, #5CC8B2); }
.ed-move { background: none; border: 1px solid var(--line); color: var(--ink-faint); border-radius: 999px; font: inherit; font-size: .74rem; padding: 4px 9px; cursor: pointer; white-space: nowrap; }
.ed-move:hover { color: var(--ink); background: var(--glass); }
.ed-add { margin-top: 8px; }
.ed-quick { margin-top: 18px; display: grid; gap: 6px; }
.ed-quick .bud-chip { min-height: 36px; padding: 5px 12px; font-size: .86rem; }
.ed-foot { position: sticky; bottom: 0; margin: 18px -22px 0; padding: 14px 22px 18px; background: #0B2240; border-top: 1px solid var(--line); }
.ed-sum { margin: 0; display: grid; gap: 4px; justify-items: start; }
.ed-sum-l { font-size: .82rem; color: var(--ink-faint); }
.ed-sum-r { font: 700 1.1rem var(--font-display); }
.ed-sum-r.ok { color: #5CC8B2; } .ed-sum-r.spare { color: #F2B66D; } .ed-sum-r.bad { color: #F08A7E; }
.ed-foot .msg { margin: 10px 0 0; }
.ed-btns { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.ed-btns > span { flex: 1; }
.ed-btns .linkish { font-size: .85rem; color: var(--ink-faint); }

.bud-stm { margin-top: 20px; }
.bud-drop { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; margin-top: 16px; padding: 26px 18px; border: 1.5px dashed rgba(255, 255, 255, .28); border-radius: 18px; cursor: pointer; transition: background .2s, border-color .2s; }
.bud-drop:hover, .bud-drop.over, .bud-drop:focus-within { background: rgba(92, 200, 178, .08); border-color: #5CC8B2; }
.bud-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bud-drop svg { width: 30px; height: 30px; fill: none; stroke: #5CC8B2; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bud-drop b { font-size: var(--step-0); }
.bud-drop span { color: var(--ink-soft); font-size: var(--step--1); }
.bud-drop small { color: var(--ink-faint); font-size: .78rem; margin-top: 4px; }
.bud-drop.compact { grid-template-columns: auto auto 1fr; justify-items: start; align-items: center; text-align: left; padding: 12px 16px; gap: 4px 12px; }
.bud-drop.compact svg { width: 22px; height: 22px; grid-row: span 2; }
.bud-drop.compact small { grid-column: 2 / -1; margin: 0; }
.bud-drop.compact b::after { content: " (add more)"; font-weight: 400; color: var(--ink-faint); }
.bud-how { margin-top: 10px; font-size: var(--step--1); color: var(--ink-soft); }
.bud-how summary { cursor: pointer; color: var(--ink); }
.bud-how ul { padding-left: 18px; display: grid; gap: 4px; }
.bud-stm-range { color: var(--ink-faint); font-size: .82rem; margin: 16px 0 0; }
.bud-flip { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: var(--step--1); color: var(--ink-soft); }
.bud-flip input { width: 18px; height: 18px; accent-color: #5CC8B2; }
.bud-stm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 0; }
.bud-stm-tiles div { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.bud-stm-tiles dt { font-size: .76rem; color: var(--ink-faint); }
.bud-stm-tiles dd { margin: 4px 0 0; font: 700 1.15rem var(--font-display); font-variant-numeric: tabular-nums; }
.bud-stm-tiles .good dd { color: #5CC8B2; } .bud-stm-tiles .bad dd { color: #F2B66D; }
.bud-insight { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid #7FA7F5; background: rgba(127, 167, 245, .08); border-radius: 0 12px 12px 0; }
.bud-insight:empty { display: none; }
.bud-stm-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 18px; }
.bud-stm-grid h3 { font-size: var(--step-0); margin: 0 0 4px; }
.bud-stm-grid h3 + .bud-months, .bud-stm-grid h3 + .bud-recur { margin-top: 10px; }
.bud-stm-grid .bud-months + h3 { margin-top: 22px; }
.bud-cats { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.bud-cat-b { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.bud-cat-b:hover, .bud-cat.open .bud-cat-b { background: var(--glass); }
.bud-cat-n { font-size: var(--step--1); }
.bud-cat-b b { font-variant-numeric: tabular-nums; }
.bud-cat-bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.bud-cat-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--pot); border-radius: 999px; }
.bud-cat-d { padding: 4px 10px 12px 22px; display: grid; gap: 6px; }
.bud-mer { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bud-mer-t { display: grid; min-width: 0; }
.bud-mer-t b { font-weight: 600; font-size: var(--step--1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bud-mer-t small { color: var(--ink-faint); font-size: .76rem; }
.bud-mer select { background: var(--glass); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: .8rem; max-width: 11rem; }
.bud-months { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bud-months li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 2px 12px; align-items: center; font-size: var(--step--1); }
.bud-m-n { color: var(--ink-soft); }
.bud-m-bars { display: grid; gap: 3px; }
.bud-m-bars i { display: block; height: 7px; border-radius: 999px; }
.bud-m-bars i.o { width: var(--o); background: #F2B66D; }
.bud-m-bars i.in { width: var(--i); background: #5CC8B2; opacity: .8; }
.bud-m-v { grid-column: 2; color: var(--ink-faint); font-size: .76rem; }
.bud-recur { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.bud-recur li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.bud-recur b { font-variant-numeric: tabular-nums; }
.bud-stm-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.bud-stm-actions .bud-hint { margin: 0; }
@media (max-width: 860px) {
  .bud-stm-tiles { grid-template-columns: 1fr 1fr; }
  .bud-stm-grid { grid-template-columns: 1fr; }
  .ed-row { grid-template-columns: 1fr 5.5rem 32px; }
  .ed-row .ed-move { grid-column: 1 / 2; justify-self: start; grid-row: 2; }
  .ed-row.pot { grid-template-columns: 10px 1fr 5.5rem 32px; }
  .ed-row.pot .bud-dot { grid-row: span 2; }
  .ed-row.pot .bud-want { grid-row: 2; grid-column: 2; }
  .ed-row.pot .ed-move { grid-row: 2; grid-column: 3; justify-self: end; }
  .ed-row .bud-pdel { grid-row: 1; grid-column: -2; }
  .bud-editor { width: 100vw; }
  .ed-btns { flex-wrap: wrap; }
  .ed-btns .linkish { order: 3; width: 100%; text-align: center; }
}
@media (max-width: 860px) {
  .bud-drop.compact { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 16px; }
  .bud-drop.compact svg { grid-row: auto; }
  .bud-drop.compact small { grid-column: auto; }
  .bud-drop.compact span { display: none; }
}

/* ================= Budget v2: essentials first, extras from what's left ================= */
.b2 { --ess: #8FA6C9; --ext: #5CC8B2; --free: rgba(255, 255, 255, .16); max-width: 46rem; margin: 0 auto; }
.b2-head { margin: 8px 0 22px; }
.b2-head h1 { font-size: var(--step-3); line-height: 1.12; margin: 4px 0 8px; }
.b2-lead { color: var(--ink-soft); margin: 0; font-size: var(--step-0); max-width: 36rem; }
#b2-flow { display: grid; gap: 18px; }
.b2-sec { padding: 22px; }
.b2-sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.b2-sec-head h2 { margin: 2px 0 0; font-size: var(--step-2); }
.b2-sec-head .bud-sub { margin: 4px 0 0; }
.b2-step { margin: 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
#b2-ess .b2-step { color: var(--ess); } #b2-ext .b2-step { color: var(--ext); }
.b2-edit { min-width: 4.5rem; justify-content: center; }
.b2-sec.editing .b2-edit { background: #5CC8B2; color: #08202B; border-color: transparent; }

/* your month */
.b2-month { border-radius: var(--radius); padding: 22px; background: rgba(9, 28, 54, .7); border: 1px solid var(--line); }
.b2-in { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.b2-in span { color: var(--ink-soft); }
.b2-in b { font: 700 var(--step-2) var(--font-display); font-variant-numeric: tabular-nums; }
.b2-in-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.b2-in-form select { background: var(--glass); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; }
.b2-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; margin: 16px 0 12px; background: rgba(255, 255, 255, .05); }
.b2-bar i { display: block; height: 100%; transition: width .5s ease; }
.b2-bar .ess { background: var(--ess); } .b2-bar .ext { background: var(--ext); } .b2-bar .free { background: repeating-linear-gradient(45deg, var(--free) 0 6px, transparent 6px 12px); }
.b2-split { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.b2-split li { display: grid; gap: 2px; }
.b2-split span { display: flex; align-items: center; gap: 7px; font-size: var(--step--1); color: var(--ink-soft); }
.b2-split span i { width: 10px; height: 10px; border-radius: 3px; }
.b2-split .ess i { background: var(--ess); } .b2-split .ext i { background: var(--ext); } .b2-split .free i { background: var(--free); border: 1px dashed rgba(255,255,255,.5); }
.b2-split b { font: 700 1.25rem var(--font-display); font-variant-numeric: tabular-nums; }
.b2-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(92, 200, 178, .1); font-size: var(--step--1); }
.b2-note.warn { background: rgba(242, 182, 109, .12); color: #F6CB92; }

/* lists */
.b2-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; }
.b2-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.b2-item-t { display: grid; min-width: 0; }
.b2-item-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2-item-t small { color: var(--ink-faint); font-size: .78rem; }
.b2-item-a { font-weight: 600; font-variant-numeric: tabular-nums; }
.b2-item.ended { opacity: .5; } .b2-item.ended .b2-item-a { text-decoration: line-through; }
.b2-item.edit { grid-template-columns: 1fr 8rem auto 40px; gap: 8px; padding: 6px 0; border-bottom: 0; }
#b2-ext .b2-item.edit { grid-template-columns: 1fr 8rem 40px; }
.b2-item.edit input, .b2-end { background: var(--glass); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; padding: 10px 12px; min-width: 0; width: 100%; }
.b2-item.edit input:focus, .b2-end:focus { outline: none; border-color: #5CC8B2; box-shadow: 0 0 0 3px rgba(92, 200, 178, .2); }
.b2-amt { position: relative; display: block; }
.b2-amt-c { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none; }
.b2-amt input { padding-left: 26px !important; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.b2-end { font-size: .85rem; padding: 10px 8px; max-width: 13rem; }
.b2-del { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-faint); cursor: pointer; display: grid; place-items: center; }
.b2-del svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.b2-del:hover { color: #F08A7E; border-color: rgba(240, 138, 126, .5); }
.b2-editbar { margin-top: 12px; display: grid; gap: 10px; justify-items: start; }
.b2-sugs { display: grid; gap: 6px; }
.b2-sugs-h { margin: 6px 0 0; font-size: .8rem; color: var(--ink-faint); }
.b2-sugs .bud-chip { min-height: 36px; padding: 5px 12px; font-size: .86rem; }
.b2-empty { color: var(--ink-faint); margin: 14px 0 0; font-size: var(--step--1); }
.b2-total { display: flex; justify-content: space-between; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.b2-total b { color: var(--ink); font: 700 1.15rem var(--font-display); font-variant-numeric: tabular-nums; }
.b2-rail { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(242, 182, 109, .13); border: 1px solid rgba(242, 182, 109, .4); color: #F6CB92; }
#b2-ext.over .b2-total b { color: #F6CB92; }
#b2-ext.over.editing .b2-edit { background: var(--glass); color: var(--ink-faint); border-color: var(--line); }

/* statements (v2) */
.b2 .bud-stm { margin-top: 0; }
.b2-manual { margin: 12px 0 0; text-align: center; }
.b2-stm-sum { margin: 16px 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--glass); }
.b2 .bud-stm h3 { font-size: var(--step-0); margin: 0; }
.b2 .bud-stm h3 + .bud-hint { margin: 4px 0 0; }
.b2-months { margin-top: 18px; }
.b2-months summary { cursor: pointer; font-weight: 600; }
.b2-months .bud-months { margin-top: 12px; }

@media (max-width: 640px) {
  .b2-sec, .b2-month { padding: 18px 16px; }
  .b2-split b { font-size: 1.05rem; }
  .b2-item.edit, #b2-ext .b2-item.edit { grid-template-columns: 1fr 7rem 40px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .b2-item.edit .b2-end { grid-column: 1 / 3; grid-row: 2; max-width: none; }
  .b2-item.edit .b2-del { grid-column: 3; grid-row: 1; }
}
.b2-list .b2-item:last-child { border-bottom: 0; }

/* ================= Budget v3: spreadsheet layout (Summary + Loans & credit cards) ================= */
.b3 { --in: #6CCB5F; --out: #E8664A; --disp: #4E9BF5; --bud: #D9649E; --debt: #E8664A; max-width: 72rem; margin: 0 auto; }
.b3-head { margin: 8px 0 18px; }
.b3-head h1 { font-size: var(--step-4); line-height: 1; margin: 4px 0 0; }
.b3-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 22px; }
.b3-tabs button { border: 0; background: transparent; color: var(--ink-soft); font: 600 var(--step--1) var(--font-body); padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.b3-tabs button[aria-selected="true"] { background: var(--ink); color: #0B2240; }
.b3-sum { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.b3-tables { display: grid; gap: 26px; }
.b3-t { border-radius: 14px; overflow: hidden; background: rgba(9, 28, 54, .72); border: 1px solid var(--line); --h: var(--out); }
.t-in { --h: var(--in); } .t-out { --h: var(--out); } .t-disp { --h: var(--disp); } .t-bud { --h: var(--bud); } .t-loans, .t-cards { --h: var(--debt); }
.b3-th { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; background: color-mix(in srgb, var(--h) 82%, #000 0%); }
.b3-th h2 { margin: 0; font-size: 1.05rem; color: #fff; font-weight: 700; }
.b3-edit { border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: #fff; font: 600 .82rem var(--font-body); padding: 6px 14px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.b3-edit:hover { background: rgba(255, 255, 255, .24); }
.b3-t.editing .b3-edit { background: #fff; color: #0B2240; border-color: #fff; }
.b3-t.over.editing .b3-edit { opacity: .55; }
.b3-tw { overflow-x: auto; }
.b3-t table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.b3-t thead th { font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-faint); text-align: left; padding: 9px 14px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.b3-t tbody th, .b3-t tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; vertical-align: middle; }
.b3-t tbody th { font-weight: 600; }
.b3-t tbody th small { display: block; font-weight: 400; font-size: .76rem; color: var(--ink-faint); }
.b3-t .num { text-align: right; white-space: nowrap; }
.b3-t .prov { color: var(--ink-soft); }
.b3-t td.p, .b3-t th.p { width: 2.6rem; text-align: center; color: var(--ink-soft); }
.b3-t tr.ended { opacity: .5; } .b3-t tr.ended td.num { text-decoration: line-through; }
.b3-t td.late { color: #F6CB92; }
.b3-t tr.empty td { color: var(--ink-faint); font-size: var(--step--1); }
.b3-t tfoot th, .b3-t tfoot td { padding: 11px 14px; font-weight: 700; background: rgba(255, 255, 255, .06); text-align: left; }
.b3-t tfoot .num { text-align: right; }
.b3-t tfoot tr.left th, .b3-t tfoot tr.left td { background: color-mix(in srgb, var(--disp) 85%, #000 0%); color: #fff; font-size: 1.05rem; }
.b3-t tfoot tr.left.over th, .b3-t tfoot tr.left.over td { background: #C9772F; }
.t-disp table td { font-weight: 700; font-size: 1.15rem; }
.b3-note { margin: 0; padding: 10px 14px; font-size: var(--step--1); color: var(--ink-soft); border-top: 1px solid var(--line); }
.b3-rail { margin: 0; padding: 12px 14px; background: rgba(242, 182, 109, .14); color: #F6CB92; border-top: 1px solid rgba(242, 182, 109, .35); font-size: var(--step--1); }
/* edit mode */
.b3-t.editing tbody td { padding: 6px 8px; }
.b3-in { width: 100%; min-width: 0; background: var(--glass); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font: inherit; padding: 9px 10px; }
.b3-in.money, .b3-in.int { text-align: right; font-weight: 600; min-width: 5.5rem; }
.b3-in.int { min-width: 3.4rem; }
.b3-in.date { min-width: 8.8rem; color-scheme: dark; }
.b3-in.month { min-width: 8rem; font-size: .86rem; }
.b3-in:focus { outline: none; border-color: #5CC8B2; box-shadow: 0 0 0 3px rgba(92, 200, 178, .2); }
.b3-t td.del, .b3-t th.del { width: 48px; padding-left: 0 !important; text-align: right; }
.b3-editbar { padding: 12px 16px 16px; display: grid; gap: 10px; justify-items: start; border-top: 1px solid var(--line); }
.b3-cur { display: flex; gap: 8px; align-items: center; font-size: var(--step--1); color: var(--ink-soft); }
.b3-cur select { background: var(--glass); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; }
/* chart */
.b3-chart { position: sticky; top: 20px; text-align: center; }
.b3-chart h2 { font-size: var(--step-1); margin: 0 0 12px; font-weight: 600; }
.b3-donut-wrap { position: relative; width: min(100%, 22rem); margin: 0 auto; }
.b3-donut { width: 100%; display: block; }
.b3-ring { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 34; }
.b3-pct { fill: #fff; font: 700 9px var(--font-body); text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .25); stroke-width: 2px; }
.b3-donut-c { position: absolute; inset: 0; display: grid; place-content: center; pointer-events: none; }
.b3-donut-c b { font: 700 1.5rem var(--font-display); }
.b3-donut-c span { font-size: .8rem; color: var(--ink-faint); }
.b3-legend { list-style: none; padding: 0; margin: 20px auto 0; display: grid; gap: 2px; text-align: left; max-width: 24rem; }
.b3-legend li { display: grid; grid-template-columns: 12px 1fr auto 3rem; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.b3-legend li i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.b3-legend li b { font-variant-numeric: tabular-nums; }
.b3-legend li em { font-style: normal; color: var(--ink-faint); text-align: right; }
.b3-legend li.empty { display: block; color: var(--ink-faint); border: 0; text-align: center; }
/* statements and debts */
.b3-stm { margin-top: 30px; }
.b3-stm-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.b3-stm-head h2 { margin: 0; font-size: var(--step-1); }
.b3-stm-head .bud-sub { margin: 4px 0 0; }
.b3-stm h3 { font-size: var(--step-0); margin: 0; }
.b3-stm h3 + .bud-hint { margin: 4px 0 0; }
#pane-debt { display: grid; gap: 26px; }
#pane-debt[hidden] { display: none; }
.b3-intro { margin: 0; color: var(--ink-soft); }
.b3-grand { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--glass); font-weight: 600; }
.b3-grand:empty { display: none; }
@media (max-width: 900px) {
  .b3-sum { grid-template-columns: 1fr; }
  .b3-chart { position: static; }
  .b3-donut-wrap { width: min(100%, 17rem); }
}
/* phones: wide tables become stacked cards */
@media (max-width: 640px) {
  .b3-head h1 { font-size: var(--step-3); }
  .b3-tabs { display: flex; } .b3-tabs button { flex: 1; padding: 10px 8px; }
  .t-loans thead, .t-cards thead, .t-out thead { display: none; }
  .t-loans tbody tr, .t-cards tbody tr, .t-out tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .t-loans tbody th, .t-loans tbody td, .t-cards tbody th, .t-cards tbody td, .t-out tbody th, .t-out tbody td { border: 0; padding: 3px 0 !important; text-align: left !important; }
  .t-loans tbody td::before, .t-cards tbody td::before, .t-out tbody td::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--ink-faint); font-weight: 400; }
  .t-loans tbody th, .t-cards tbody th, .t-out tbody th { grid-column: 1 / -1; font-size: 1.02rem; }
  .t-loans td.p, .t-cards td.p { width: auto; text-align: left; }
  .t-loans tbody td.p, .t-cards tbody td.p { font-size: .72rem; color: var(--ink-faint); }
  .t-loans tfoot tr, .t-cards tfoot tr { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 14px; background: rgba(255, 255, 255, .06); }
  .t-loans tfoot th, .t-loans tfoot td, .t-cards tfoot th, .t-cards tfoot td { background: none; padding: 3px 0; text-align: left !important; }
  .t-loans tfoot th, .t-cards tfoot th { grid-column: 1 / -1; }
  .t-loans tfoot td.blank, .t-cards tfoot td.blank, .t-loans tfoot th:empty, .t-cards tfoot th:empty { display: none; }
  .t-loans tfoot td::before, .t-cards tfoot td::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--ink-faint); font-weight: 400; }
  .b3-t.editing tbody tr { grid-template-columns: 1fr 1fr; }
  .b3-t.editing td.del { grid-column: 2; justify-self: end; width: auto; }
  .b3-t.editing td::before { margin-bottom: 3px; }
  .t-in.editing tbody td, .t-bud.editing tbody td { display: table-cell; }
  .b3-in.date { min-width: 0; }
  .b3-in.money { min-width: 0; }
}
@media (max-width: 640px) {
  .t-loans tbody tr, .t-cards tbody tr, .t-out tbody tr, .b3-t.editing tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .b3-t.editing .b3-in { min-width: 0 !important; width: 100%; }
  .t-loans tbody td.p, .t-cards tbody td.p { display: flex; gap: 6px; align-items: baseline; }
  .t-loans tbody td.p::before, .t-cards tbody td.p::before { display: inline; }
  .b3-t.editing tbody td.p { display: block; }
}
@media (max-width: 640px) { .b3-t.editing tbody td.p { width: auto; text-align: left; } }
@media (max-width: 640px) {
  .b3-t.editing tbody td.p::before { display: block; }
  .b3-t.editing tbody td.p { font-size: inherit; color: inherit; }
  .b3-t.editing tbody td.p .b3-in { font-size: 1rem; }
}

/* ================= Budget v3: benchmarks, savings ================= */
.b3-kick { margin: 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.b3-bench { margin-top: 34px; }
.b3-bench-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.b3-bench-head h2 { margin: 4px 0 2px; font-size: var(--step-2); }
.b3-bench-head .bud-sub { margin: 0; }
.b3-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.b3-seg button { border: 0; background: none; color: var(--ink-soft); font: 600 .85rem var(--font-body); padding: 7px 16px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.b3-seg button[aria-pressed="true"] { background: #5CC8B2; color: #08202B; }
.b3-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 14px; }
.b3-card { --tone: #7FA7F5; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 16%, transparent), rgba(9, 28, 54, .78) 60%); border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); overflow: hidden; }
.b3-card.good { --tone: #5CC8B2; } .b3-card.warn { --tone: #F2B66D; } .b3-card.neutral { --tone: #7FA7F5; }
.b3-card.spot { --tone: #D9649E; grid-column: span 2; background: linear-gradient(120deg, color-mix(in srgb, #D9649E 30%, transparent), color-mix(in srgb, #7F5AF0 22%, transparent) 55%, rgba(9, 28, 54, .8)); }
.b3-card-k { margin: 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--tone); }
.b3-card-big { margin: 0; font: 700 1.35rem/1.2 var(--font-display); }
.b3-card.spot .b3-card-big { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.b3-card-t { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.b3-card-f { margin: 2px 0 0; color: var(--ink-faint); font-size: .76rem; }
.b3-bars { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 7px; }
.b3-bars li { display: grid; grid-template-columns: 6.6rem 1fr auto; gap: 10px; align-items: center; font-size: .8rem; color: var(--ink-soft); }
.b3-bar-t { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.b3-bar-t i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 999px; background: rgba(255, 255, 255, .38); transform-origin: left; animation: b3-grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.b3-bars li.you { color: var(--ink); font-weight: 600; }
.b3-bars li.you .b3-bar-t i { background: var(--tone); box-shadow: 0 0 12px color-mix(in srgb, var(--tone) 55%, transparent); }
.b3-bars li.line .b3-bar-t i { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 4px, transparent 4px 8px); }
.b3-bars li b { font-variant-numeric: tabular-nums; min-width: 3.4rem; text-align: right; }
@keyframes b3-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .b3-bar-t i { animation: none; } }
.b3-sources { margin-top: 14px; font-size: var(--step--1); color: var(--ink-soft); }
.b3-sources summary { cursor: pointer; color: var(--ink); }
.b3-sources ul { padding-left: 18px; display: grid; gap: 4px; }
.b3-sources a { color: var(--ink); }
.b3-empty { color: var(--ink-faint); }
.b3-goal { display: flex; align-items: center; gap: 8px; min-width: 8rem; }
.b3-goal i { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.b3-goal i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--f); background: linear-gradient(90deg, #5CC8B2, #8FE3C9); border-radius: 999px; }
.b3-goal b { font-size: .8rem; min-width: 2.6rem; text-align: right; }
.b3-goal.done b { color: #5CC8B2; }
#pane-save { display: grid; gap: 22px; }
#pane-save[hidden] { display: none; }
.t-savings, .t-goals { --h: #3FA98C; }
.t-goals { --h: #7F5AF0; }
.b3-save-hero { display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: end; padding: 26px; border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(92, 200, 178, .28), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(127, 90, 240, .25), transparent 60%), rgba(9, 28, 54, .8); border: 1px solid rgba(92, 200, 178, .3); }
.b3-sh-big { margin: 4px 0 0; font: 700 clamp(2.6rem, 7vw, 4rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.b3-sh-sub { margin: 8px 0 0; color: #8FE3C9; font-weight: 600; }
.b3-sh-proj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.b3-sh-proj div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.b3-sh-proj dt { font-size: .76rem; color: var(--ink-faint); }
.b3-sh-proj dd { margin: 4px 0 0; font: 700 1.2rem var(--font-display); font-variant-numeric: tabular-nums; }
.b3-sh-note { grid-column: 1 / -1; margin: 0; font-size: .76rem; color: var(--ink-faint); }
.b3-tabs { flex-wrap: wrap; }
@media (max-width: 760px) {
  .b3-card.spot { grid-column: auto; }
  .b3-save-hero { grid-template-columns: 1fr; padding: 20px; }
  .b3-sh-proj dd { font-size: 1rem; }
}
@media (max-width: 640px) {
  .t-savings thead, .t-goals thead { display: none; }
  .t-savings tbody tr, .t-goals tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .t-savings tbody th, .t-savings tbody td, .t-goals tbody th, .t-goals tbody td { border: 0; padding: 3px 0 !important; text-align: left !important; }
  .t-savings tbody td::before, .t-goals tbody td::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--ink-faint); font-weight: 400; }
  .t-savings tbody th, .t-goals tbody th { grid-column: 1 / -1; font-size: 1.02rem; }
  .t-savings tfoot tr { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 14px; background: rgba(255, 255, 255, .06); }
  .t-savings tfoot th, .t-savings tfoot td { background: none; padding: 3px 0; text-align: left !important; }
  .t-savings tfoot th { grid-column: 1 / -1; }
  .t-savings tfoot td.blank { display: none; }
  .t-savings tfoot td::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--ink-faint); font-weight: 400; }
  .b3-tabs button { flex: 1 1 auto; font-size: .8rem; }
  .b3-bars li { grid-template-columns: 5.4rem 1fr auto; }
}

/* ================= Budget: growth from asset mix ================= */
.b3-in.pct { text-align: right; font-weight: 600; min-width: 4.2rem; }
.b3-grow-cell { display: inline-grid; justify-items: end; line-height: 1.2; }
.b3-grow-cell small { font-size: .7rem; color: #8FE3C9; font-weight: 500; }
.b3-grow-edit { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.b3-grow-edit .b3-in { width: 4.6rem; }
.b3-grow-val { font-variant-numeric: tabular-nums; min-width: 3rem; text-align: right; }
.b3-mix-btn { white-space: nowrap; border: 1px solid rgba(92, 200, 178, .55); background: rgba(92, 200, 178, .1); color: #8FE3C9; border-radius: 999px; font: 600 .78rem var(--font-body); padding: 7px 11px; cursor: pointer; }
.b3-mix-btn.on, .b3-mix-btn:hover { background: #5CC8B2; color: #08202B; }
.b3-t tr.b3-detail > td { padding: 0 !important; border-bottom: 1px solid var(--line); }
.b3-mix { margin: 4px 10px 12px; padding: 16px 18px; border-radius: 14px; background: rgba(92, 200, 178, .07); border: 1px solid rgba(92, 200, 178, .3); display: grid; gap: 10px; justify-items: start; }
.b3-mix-h { margin: 0; font-weight: 700; font-size: 1rem; }
.b3-mix .bud-hint { margin: 0; }
.b3-mix .bud-chips .bud-chip { min-height: 34px; padding: 4px 12px; font-size: .84rem; }
.b3-mix-rows { display: grid; gap: 6px; width: 100%; }
.b3-mix-row { display: grid; grid-template-columns: 10px minmax(0, 18rem) 6.5rem 1fr 40px; gap: 10px; align-items: center; }
.b3-mix-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.b3-mix-pct { display: flex; align-items: center; gap: 4px; }
.b3-mix-pct .b3-in { text-align: right; font-weight: 600; min-width: 0; }
.b3-mix-meta { font-size: .76rem; color: var(--ink-faint); }
.b3-mix-sum { margin: 0; font-size: .84rem; color: var(--ink-faint); }
.b3-mix-sum.ok { color: #8FE3C9; } .b3-mix-sum.bad { color: #F6CB92; }
.b3-mix-fee { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-soft); }
.b3-mix-fee .b3-in { width: 4.6rem; text-align: right; font-weight: 600; }
.b3-mix-res { width: 100%; display: grid; gap: 10px; }
.b3-mix-res:empty { display: none; }
.b3-mix-big { margin: 4px 0 0; color: var(--ink-soft); }
.b3-mix-big b { font: 700 1.6rem var(--font-display); color: #8FE3C9; margin-right: 4px; }
.b3-mix-scen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.b3-mix-scen div { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.b3-mix-scen div.on { background: rgba(92, 200, 178, .16); }
.b3-mix-scen dt { font-size: .72rem; color: var(--ink-faint); }
.b3-mix-scen dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.b3-mixbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; width: 100%; background: rgba(255, 255, 255, .06); }
.b3-mixbar i { display: block; height: 100%; }
.b3-mix-off { font-size: .8rem; color: var(--ink-faint); }
/* chart */
.b3-grow { padding: 22px; display: grid; gap: 14px; }
.b3-grow:empty { display: none; }
.b3-grow-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.b3-grow-head h2 { margin: 4px 0 0; font-size: var(--step-2); }
.b3-grow-ctrls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.b3-toggle { display: inline-flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--ink-soft); cursor: pointer; }
.b3-toggle input { width: 18px; height: 18px; accent-color: #5CC8B2; }
.b3-gwrap { width: 100%; }
.b3-gchart { width: 100%; height: auto; display: block; }
.b3-g-grid { stroke: rgba(255, 255, 255, .07); }
.b3-g-ax { fill: var(--ink-faint); font: 11px var(--font-body); }
.b3-g-band { fill: rgba(92, 200, 178, .13); }
.b3-g-exp { fill: none; stroke: #5CC8B2; stroke-width: 3; stroke-linejoin: round; }
.b3-g-low, .b3-g-high { fill: none; stroke: rgba(92, 200, 178, .55); stroke-width: 1.5; stroke-dasharray: 4 4; }
.b3-g-paid { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; }
.b3-g-dot { fill: #5CC8B2; stroke: #0B2240; stroke-width: 3; }
.b3-g-leg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.b3-g-leg div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border-left: 3px solid rgba(92, 200, 178, .55); }
.b3-g-leg div.exp { background: rgba(92, 200, 178, .14); border-left-color: #5CC8B2; }
.b3-g-leg div.paid { border-left-color: rgba(255, 255, 255, .45); }
.b3-g-leg dt { font-size: .74rem; color: var(--ink-faint); }
.b3-g-leg dd { margin: 3px 0 0; font: 700 1.15rem var(--font-display); font-variant-numeric: tabular-nums; }
.b3-pots { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.b3-pots li { display: grid; gap: 7px; padding: 12px 0; border-top: 1px solid var(--line); }
.b3-pot-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.b3-pot-top span { color: var(--ink-soft); font-size: .88rem; font-variant-numeric: tabular-nums; }
.b3-pot-mix { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--ink-soft); }
.b3-pot-mix span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-right: 6px; }
.b3-pots .bud-hint { margin: 0; }
@media (max-width: 640px) {
  .b3-mix { margin: 4px 0 12px; padding: 14px; }
  .b3-mix-row { grid-template-columns: 10px minmax(0, 1fr) 5.2rem 40px; }
  .b3-mix-meta { grid-column: 2 / -1; grid-row: 2; }
  .b3-mix-scen, .b3-g-leg { grid-template-columns: 1fr 1fr; }
  .b3-t.editing tr.b3-detail { display: block; padding: 0; }
  .b3-t.editing tr.b3-detail > td { display: block; }
  .b3-t.editing tr.b3-detail > td::before { content: none; }
  .b3-grow-edit { justify-content: flex-start; }
  .b3-grow { padding: 18px 14px; }
}
.b3-mix-row select { min-width: 0; width: 100%; }
.b3-mix-notes { display: grid; gap: 6px; }
.b3-mix-notes:empty { display: none; }
.b3-mix-notes .bud-hint { margin: 0; font-size: .78rem; }
.b3-mix-notes a { color: #8FE3C9; }
@media (max-width: 640px) { .b3-mix, .b3-mix-rows, .b3-mix-row, .b3-mix-fee { min-width: 0; max-width: 100%; } .b3-mix-scen { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .t-savings table, .t-savings tbody, .t-savings tfoot { display: block; width: 100%; } .t-savings tbody tr.b3-detail { display: block; } }
#pane-save, #pane-debt { grid-template-columns: minmax(0, 1fr); }

/* ================= Budget v5: Money Tracker dashboard ================= */
.bud-main .wrap:has(.b5) { max-width: 98rem; }
.b5 { --font-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif; --font-body: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --c-in: #6CCB5F; --c-out: #E8664A; --c-bud: #D9649E; --c-debt: #F2B66D; --c-sav: #3FA98C; --c-inv: #8C6CF2; --c-pl: #F2D58A; --c-ac: #5CC8B2;
  max-width: none; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.b5 h1, .b5 h2, .b5 h3, .b5 .b3-th h2, .b5 dt, .b5 .b3-tabs button { font-family: var(--font-display); }
.b5 .b3-t table, .b5 .b5-table { font-family: var(--font-body); }
/* top: title block + KPI strip */
.b5-top { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; margin: 6px 0 16px; align-items: stretch; }
.b5-title { padding: 14px 18px 16px; border-radius: 16px; background: rgba(9, 28, 54, .78); border: 1px solid var(--line); text-align: center; display: grid; gap: 4px; }
.b5-title .bud-back { justify-self: start; font-size: .8rem; }
.b5-year { margin: 0; font: 700 2.4rem/1 var(--font-display); letter-spacing: .02em; }
.b5-title h1 { margin: 0; font-size: 1.5rem; font-weight: 600; color: var(--c-ac); letter-spacing: .01em; }
.b5-title h1 .bud-beta { color: var(--ink-faint); font-size: .55rem; vertical-align: 4px; }
.b5-pick { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin-top: 10px; text-align: left; }
.b5-pick label { font: 600 .9rem var(--font-display); color: var(--c-pl); }
.b5-pick select { background: rgba(242, 213, 138, .12); border: 1px solid rgba(242, 213, 138, .45); color: var(--ink); border-radius: 8px; padding: 7px 10px; font: 600 .92rem var(--font-body); }
.b5-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; border-radius: 16px; background: rgba(9, 28, 54, .78); border: 1px solid var(--line); overflow: hidden; }
.b5-kpis > div { padding: 18px 14px; text-align: center; display: grid; align-content: center; gap: 4px; border-right: 1px solid var(--line); position: relative; }
.b5-kpis > div:last-child { border-right: 0; }
.b5-kpis > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--k); }
.b5-kpis dt { font-size: 1.05rem; font-weight: 600; color: var(--k); }
.b5-kpis dd { margin: 0; font: 700 clamp(1.25rem, 2vw, 1.75rem) var(--font-display); }
.b5-kpis small { font-size: .72rem; color: var(--ink-faint); }
.k-in { --k: var(--c-in); } .k-out { --k: var(--c-out); } .k-bud { --k: var(--c-bud); } .k-debt { --k: var(--c-debt); } .k-sav { --k: var(--c-sav); } .k-inv { --k: var(--c-inv); }
.b5 .b3-tabs { margin-bottom: 16px; }
/* main grid */
.b5-dash { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.b5-left, .b5-main { display: grid; gap: 16px; min-width: 0; }
.b5-box { padding: 12px 14px 14px; border-radius: 14px; background: rgba(9, 28, 54, .72); border: 1px solid var(--line); min-width: 0; }
.b5-box > h2 { margin: 0 0 8px; text-align: center; font-size: 1.12rem; font-weight: 600; color: var(--c-pl); }
.b5-tw { overflow-x: auto; }
.b5-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.b5-table th, .b5-table td { padding: 5px 6px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .06); white-space: nowrap; }
.b5-table thead th { font: 600 .78rem var(--font-display); color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.b5-table tbody th { font-weight: 500; }
.b5-table .num { text-align: right; }
.b5-table tfoot th, .b5-table tfoot td { background: rgba(242, 213, 138, .14); font-weight: 700; color: var(--c-pl); border: 0; }
.b5-table tr.on th, .b5-table tr.on td { background: rgba(92, 200, 178, .1); }
.b5-table .good { color: #7EDCC6; } .b5-table .bad { color: #F08A7E; }
.b5-hint { margin: 6px 0 0; font-size: .74rem; color: var(--ink-faint); white-space: normal; }
.b5-disp { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.b5-disp span { color: var(--ink-soft); font-size: .86rem; }
.b5-disp b { font: 700 1.5rem var(--font-display); color: var(--c-ac); }
.b5 .t-disp .b3-note { border: 0; padding: 6px 0 0; font-size: .78rem; }
/* charts */
.b5-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.b5-svg { width: 100%; height: auto; display: block; }
.b5-leg { display: flex; justify-content: center; gap: 14px; font-size: .78rem; color: var(--ink-soft); margin: -2px 0 6px; }
.b5-leg span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.b5-leg .pl::before { background: var(--c-pl); } .b5-leg .ac::before { background: var(--c-ac); } .b5-leg .in::before { background: var(--c-ac); } .b5-leg .out::before { background: var(--c-out); }
.b5-grid line.b5-grid, .b5-svg .b5-grid { stroke: rgba(255, 255, 255, .07); }
.b5-svg .b5-ax { fill: var(--ink-faint); font: 10px var(--font-body); }
.b5-svg .b5-ax.on { fill: var(--c-pl); font-weight: 700; }
.b5-svg .b5-lab { fill: var(--ink-soft); font: 600 11px var(--font-display); }
.b5-svg .b5-pl { fill: var(--c-pl); } .b5-svg .b5-ac { fill: var(--c-ac); }
.b5-svg .b5-in, .b5-svg .b5-out { fill: none; stroke-width: 2.4; stroke-linejoin: round; }
.b5-svg .b5-in { stroke: var(--c-ac); } .b5-svg .b5-out { stroke: var(--c-out); }
.b5-svg .b5-in-dot { fill: var(--c-ac); } .b5-svg .b5-out-dot { fill: var(--c-out); }
.b5 .b3-chart { position: static; text-align: center; }
.b5 .b3-chart h2 { font-size: 1.12rem; margin: 0 0 8px; }
.b5 .b3-donut-wrap { width: min(100%, 11.5rem); }
.b5 .b3-donut-c b { font-size: 1.15rem; }
.b5 .b3-legend { margin-top: 10px; max-width: none; }
.b5 .b3-legend li { grid-template-columns: 10px 1fr auto 2.6rem; gap: 8px; padding: 3px 2px; font-size: .78rem; }
/* category panels */
.b5-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.b5-grid .b3-t { border-radius: 12px; }
.b5-grid .b3-th { padding: 7px 10px 7px 14px; }
.b5-grid .b3-th h2 { font-size: 1.02rem; }
.b5-grid .b3-edit { padding: 4px 12px; min-height: 28px; font-size: .76rem; }
.b5-grid .b3-t thead th { padding: 7px 10px 5px; font-size: .74rem; }
.b5-grid .b3-t tbody th, .b5-grid .b3-t tbody td, .b5-grid .b3-t tfoot th, .b5-grid .b3-t tfoot td { padding: 6px 10px; font-size: .86rem; }
.b5-grid .b3-t tbody th small { font-size: .7rem; }
.b5-grid .b3-t td.auto { color: var(--ink-soft); font-style: italic; }
.b5-grid .b3-t.editing tbody td { padding: 4px 6px; }
.b5-grid .b3-in { padding: 7px 8px; font-size: .86rem; }
.b5-grid .b3-in.money { min-width: 4.6rem; }
.b5-grid .b3-t.editing tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 5.4rem 5.4rem 40px; align-items: center; border-bottom: 1px solid var(--line); }
.b5-grid .b3-t.editing tbody td { border: 0; }
.b5-grid .b3-t.editing thead { display: none; }
.b5-grid .b3-t.editing tbody td.prov, .b5-grid .b3-t.editing tbody td:has(> select.month) { grid-column: 1 / -2; }
.b5-grid .b3-t.editing tbody td.prov::before, .b5-grid .b3-t.editing tbody td:has(> select.month)::before { content: attr(data-label); font-size: .68rem; color: var(--ink-faint); display: block; margin: 0 0 2px; }
.b5-grid .b3-t.editing tbody td.del { grid-column: 4; grid-row: 1; }
.b5-grid .b3-t.editing tfoot tr { display: grid; grid-template-columns: minmax(0, 1fr) 5.4rem 5.4rem 40px; }
.b5-grid .b3-t.editing tfoot td:empty { display: none; }
.b5-mini .b3-edit { background: transparent; }
.b5 .b3-bench { margin-top: 26px; }
.b5 .b3-stm { margin-top: 22px; }
@media (max-width: 1280px) {
  .b5-top, .b5-dash { grid-template-columns: minmax(0, 1fr); }
  .b5-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b5-kpis > div:nth-child(3) { border-right: 0; }
  .b5-kpis > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .b5-left { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b5-title { grid-template-columns: auto auto 1fr; text-align: left; align-items: center; gap: 4px 16px; }
  .b5-title .bud-back { grid-column: 1 / -1; }
  .b5-pick { margin: 0; justify-self: end; grid-template-columns: auto 12rem auto 8rem; }
}
@media (max-width: 980px) {
  .b5-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b5-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .b5-left, .b5-charts, .b5-grid { grid-template-columns: minmax(0, 1fr); }
  .b5-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b5-kpis > div { border-bottom: 1px solid var(--line); padding: 12px 8px; }
  .b5-kpis > div:nth-child(3) { border-right: 1px solid var(--line); }
  .b5-kpis > div:nth-child(2n) { border-right: 0; }
  .b5-title { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .b5-pick { justify-self: stretch; grid-template-columns: auto 1fr; }
  .b5 .t-out thead { display: table-header-group; }
  .b5 .t-out tbody tr { display: table-row; padding: 0; }
  .b5 .t-out tbody th, .b5 .t-out tbody td { display: table-cell; padding: 6px 10px !important; border-bottom: 1px solid var(--line); }
  .b5 .t-out tbody td.num { text-align: right !important; }
  .b5 .t-out tbody td::before { content: none; }
  .b5 .t-out tbody th { font-size: .86rem; }
}
.b5-top, .b5-dash { grid-template-columns: 380px minmax(0, 1fr); }
.b5-table { font-size: .8rem; }
.b5-table th, .b5-table td { padding: 5px 4px; }
.b5-table tbody th { max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; }
.b5 .b3-legend li.more { display: block; text-align: center; color: var(--ink-faint); border: 0; }
@media (max-width: 1280px) { .b5-top, .b5-dash { grid-template-columns: minmax(0, 1fr); } }

/* ================= Restaurant finder ================= */
.rs-main .wrap { max-width: 60rem; }
.rs-head { margin: 8px 0 22px; }
.rs-head h1 { font-size: var(--step-3); margin: 4px 0 6px; line-height: 1.1; }
.rs-lead { margin: 0; color: var(--ink-soft); }
.rs-hungry { display: grid; gap: 8px; justify-items: start; }
.rs-near { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 26px; border: 0; border-radius: 14px; background: #FF6633; color: #fff; font: 500 1.05rem var(--font-body); letter-spacing: .02em; cursor: pointer; box-shadow: 0 10px 28px rgba(255, 102, 51, .28); }
.rs-near:hover { background: #FF7A4D; }
.rs-near:disabled { opacity: .75; cursor: progress; }
.rs-near-hint { margin: 0; font-size: var(--step--1); color: var(--ink-faint); }
.rs-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-faint); font: 600 .72rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.rs-divider::before, .rs-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rs-form { padding: 20px; display: grid; gap: 14px; }
.rs-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rs-field { display: grid; gap: 6px; font-weight: 600; font-size: var(--step--1); }
.rs-field em { font-style: normal; font-weight: 400; color: var(--ink-faint); }
.rs-field input { background: var(--glass); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; padding: 12px 14px; }
.rs-field input:focus { outline: none; border-color: #5CC8B2; box-shadow: 0 0 0 3px rgba(92, 200, 178, .2); }
.rs-field input:disabled { opacity: .5; }
.rs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rs-check { display: inline-flex; gap: 8px; align-items: center; font-size: var(--step--1); color: var(--ink-soft); cursor: pointer; }
.rs-check input { width: 18px; height: 18px; accent-color: #5CC8B2; }
.rs-btns { display: flex; gap: 8px; }
.rs-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; border-radius: 999px; background: #FF6633; color: #fff; font-size: .72rem; }
.rs-active { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rs-active-h { font-size: .78rem; color: var(--ink-faint); margin-right: 4px; }
.rs-active .bud-chip, .rs-popular .bud-chip { min-height: 34px; padding: 4px 12px; font-size: .84rem; }
.bud-chip.on, .bud-chip[aria-pressed="true"] { background: rgba(255, 102, 51, .16); border-color: #FF6633; }
.rs-popular { display: grid; gap: 6px; }
.rs-popular > span { font-size: .78rem; color: var(--ink-faint); }
.rs-results { margin-top: 26px; display: grid; gap: 14px; }
.rs-res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rs-res-head p { margin: 0; font-weight: 600; }
.rs-res-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-soft); }
.rs-res-tools select { background: var(--glass); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; }
.rs-loading { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); margin: 0; }
.rs-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: #FF6633; animation: rs-spin .8s linear infinite; }
@keyframes rs-spin { to { transform: rotate(360deg); } }
.rs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rs-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-radius: 18px; overflow: hidden; background: rgba(9, 28, 54, .72); border: 1px solid var(--line); }
.rs-photo { position: relative; min-height: 190px; background: rgba(255, 255, 255, .05); }
.rs-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-photo.none { display: grid; place-items: center; font: 700 3rem var(--font-display); color: rgba(255, 255, 255, .25); }
.rs-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: .66rem; color: rgba(255, 255, 255, .85); background: linear-gradient(transparent, rgba(0, 0, 0, .6)); text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rs-body { padding: 16px 18px; display: grid; gap: 7px; align-content: start; min-width: 0; }
.rs-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rs-top h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.rs-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rs-b { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.rs-b.top { background: rgba(255, 102, 51, .18); color: #FFB08F; }
.rs-b.open { background: rgba(92, 200, 178, .16); color: #8FE3C9; }
.rs-b.closed { background: rgba(255, 255, 255, .08); color: var(--ink-faint); }
.rs-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--step--1); color: var(--ink-soft); }
.rs-stars { display: inline-flex; gap: 1px; }
.rs-stars i { width: 13px; height: 13px; background: rgba(255, 255, 255, .2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7 .8-5.2 4.8 1.5 7L12 17.8 5.7 21.2l1.5-7L2 9.4l7-.8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7 .8-5.2 4.8 1.5 7L12 17.8 5.7 21.2l1.5-7L2 9.4l7-.8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.rs-stars i.f { background: #FFD166; }
.rs-stars i.h { background: linear-gradient(90deg, #FFD166 50%, rgba(255, 255, 255, .2) 50%); }
.rs-meta b { color: var(--ink); }
.rs-n { color: var(--ink-faint); }
.rs-dot::before { content: "·"; margin-right: 6px; color: var(--ink-faint); }
.rs-addr { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.rs-sum { margin: 0; font-size: var(--step--1); }
.rs-feats { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rs-feats li { font-size: .74rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.rs-hours { font-size: .82rem; color: var(--ink-soft); }
.rs-hours summary { cursor: pointer; width: max-content; }
.rs-hours ul { list-style: none; padding: 6px 0 0; margin: 0; display: grid; gap: 2px; }
.rs-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.rs-act { display: grid; place-items: center; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: 600 .84rem var(--font-body); text-decoration: none; cursor: pointer; }
.rs-act:hover { background: var(--glass-strong); }
.rs-act.off { opacity: .35; cursor: default; }
.rs-act.save.on { background: rgba(255, 102, 51, .16); border-color: #FF6633; color: #FFB08F; }
.rs-empty { padding: 18px; border-radius: 14px; background: var(--glass); display: grid; gap: 10px; justify-items: start; }
.rs-empty p { margin: 0; color: var(--ink-soft); }
.rs-none { color: var(--ink-faint); padding: 8px 0; }
.rs-attr { margin: 4px 0 0; font-size: .74rem; color: var(--ink-faint); }
.rs-sheet { width: min(36rem, calc(100vw - 24px)); }
.rs-sheet .bud-sheet-in { max-height: calc(100vh - 40px); overflow: auto; }
.rs-fs { border: 0; padding: 0; margin: 0 0 16px; }
.rs-fs legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.rs-fs .bud-chips .bud-chip { min-height: 34px; padding: 4px 12px; font-size: .84rem; }
.rs-fs input[type="range"] { width: 100%; accent-color: #FF6633; }
.rs-f-btns { display: flex; justify-content: space-between; gap: 10px; position: sticky; bottom: -22px; padding: 12px 0 4px; background: #0B2240; }
@media (max-width: 640px) {
  .rs-fields { grid-template-columns: 1fr; }
  .rs-card { grid-template-columns: 1fr; }
  .rs-photo { min-height: 170px; }
  .rs-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-near { width: 100%; justify-content: center; }
  .rs-btns { width: 100%; } .rs-btns .btn { flex: 1; justify-content: center; }
}
.rs-meta > .rs-dot:first-child::before { content: none; margin: 0; }
.rs-card.nophoto { grid-template-columns: minmax(0, 1fr); }

/* ================= Hotel finder ================= */
.ht-main .wrap { max-width: 62rem; }
.ht-wiz { position: relative; border-radius: 24px; overflow: hidden; min-height: 26rem; display: grid; background: linear-gradient(135deg, #09203F, #537895); border: 1px solid var(--line); }
.ht-wiz-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ht-wiz::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 32, 63, .35), rgba(9, 32, 63, .85)); pointer-events: none; }
.ht-wiz-in { position: relative; z-index: 1; display: grid; padding: 28px; }
.ht-intro { display: grid; align-content: space-between; justify-items: start; min-height: 22rem; }
.ht-intro h2 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; max-width: 14ch; }
.ht-start { display: inline-flex; gap: 8px; align-items: center; min-height: 50px; padding: 12px 28px; border: 0; border-radius: 999px; background: #fff; color: #09203F; font: 700 1.05rem var(--font-body); cursor: pointer; }
.ht-start span { font-size: 1.3rem; line-height: 1; }
.ht-steps { display: grid; gap: 10px; max-width: 34rem; }
.ht-dots { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.ht-dots li { width: 28px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.ht-dots li.now { background: #fff; } .ht-dots li.done { background: #5CC8B2; }
.ht-count { margin: 4px 0 0; font: 600 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.ht-steps h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; outline: none; }
.ht-sub { margin: 0 0 6px; color: rgba(255, 255, 255, .8); }
.ht-body { display: grid; gap: 12px; justify-items: start; }
.ht-input { width: 100%; max-width: 26rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; color: #fff; font: inherit; font-size: 1.1rem; padding: 14px 16px; color-scheme: dark; }
.ht-input::placeholder { color: rgba(255, 255, 255, .6); }
.ht-input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.ht-loc { border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; border-radius: 999px; padding: 9px 16px; font: 600 .9rem var(--font-body); cursor: pointer; }
.ht-loc[aria-pressed="true"] { background: #5CC8B2; border-color: #5CC8B2; color: #08202B; }
.ht-pop .bud-chip { min-height: 36px; padding: 5px 14px; font-size: .88rem; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.ht-pop .bud-chip[aria-pressed="true"] { background: #fff; color: #09203F; border-color: #fff; }
.ht-stepper { display: grid; grid-template-columns: 7rem 44px 3rem 44px; align-items: center; gap: 10px; }
.ht-st-l { font-weight: 600; }
.ht-st-b { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.4rem; cursor: pointer; }
.ht-st-b:disabled { opacity: .35; cursor: default; }
.ht-st-v { text-align: center; font: 700 1.4rem var(--font-display); }
.ht-note { margin: 0; color: rgba(255, 255, 255, .85); }
.ht-review { margin: 0; display: grid; gap: 8px; width: 100%; max-width: 30rem; }
.ht-review div { display: grid; grid-template-columns: 6rem 1fr; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.ht-review dt { color: rgba(255, 255, 255, .7); font-size: .88rem; }
.ht-review dd { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.ht-review .linkish { color: #fff; font-weight: 400; font-size: .85rem; }
.ht-cu { margin-top: 4px; }
.ht-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; max-width: 30rem; }
.ht-nav .btn:not(.ghost) { background: #fff; color: #09203F; }
.ht-res { display: grid; gap: 14px; margin-top: 4px; }
.ht-sumbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; }
.ht-sum { display: flex; gap: 22px; flex-wrap: wrap; }
.ht-sum div { display: grid; gap: 2px; }
.ht-sum span { font-size: .74rem; color: var(--ink-faint); }
.ht-sum b { font-weight: 600; }
.ht-sum-btns { display: flex; gap: 8px; }
.ht-book { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(0, 53, 128, .35), rgba(9, 28, 54, .7)); }
.ht-book p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.ht-book p b { color: var(--ink); }
.ht-book-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ht-more { position: absolute; right: 8px; top: 8px; border: 0; border-radius: 999px; padding: 5px 10px; background: rgba(0, 0, 0, .55); color: #fff; font: 600 .74rem var(--font-body); cursor: pointer; }
.ht-price { margin-top: 4px; }
.ht-price > summary { list-style: none; display: inline-flex; cursor: pointer; }
.ht-price > summary::-webkit-details-marker { display: none; }
.ht-price-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ht-idea { width: 100%; margin-bottom: 8px; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: inherit; padding: 11px 14px; }
.ht-when-book { margin: 4px 0 16px; padding: 14px; border-radius: 14px; background: rgba(0, 53, 128, .25); border: 1px solid rgba(127, 167, 245, .3); }
.ht-wb-h { margin: 0; font-weight: 700; }
.ht-when-book .bud-hint { margin: 2px 0 12px; }
.ht-viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 70rem); width: 100%; color: #fff; }
.ht-viewer::backdrop { background: rgba(3, 10, 22, .9); }
.ht-viewer figure { margin: 0; display: grid; gap: 8px; }
.ht-viewer img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; background: #000; }
.ht-viewer figcaption { font-size: .82rem; color: rgba(255, 255, 255, .75); text-align: center; }
.ht-viewer .bud-x { position: absolute; right: 8px; top: 8px; z-index: 2; background: rgba(0, 0, 0, .5); }
.hv-nav { position: absolute; top: 45%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.8rem; cursor: pointer; }
.hv-nav.prev { left: 8px; } .hv-nav.next { right: 8px; }
@media (max-width: 640px) {
  .ht-wiz-in { padding: 20px; }
  .ht-intro { min-height: 18rem; }
  .ht-stepper { grid-template-columns: 1fr 44px 2.6rem 44px; }
  .ht-price-links { grid-template-columns: 1fr; }
  .ht-sum { gap: 12px; }
}

/* ===================== Flight search (fs-) ===================== */
.fs-wiz { grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); background: linear-gradient(160deg, #0B2545, #3D6E9E 70%, #8FB6D8); }
.fs-wiz .ht-wiz-bg { position: relative; inset: auto; grid-column: 2; grid-row: 1; opacity: 1; height: 100%; min-height: 26rem; }
.fs-wiz::after { background: linear-gradient(90deg, rgba(9, 32, 63, .25), rgba(9, 32, 63, .1) calc(100% - 17rem), transparent calc(100% - 17rem)); }
.fs-wiz .ht-wiz-in { grid-column: 1; grid-row: 1; }
.fs-recent { display: grid; gap: 8px; margin-top: 18px; }
.fs-recent p { margin: 0; font: 600 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.fs-recent .bud-chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); min-height: 38px; font-size: .86rem; }
.fs-opts { display: grid; gap: 10px; width: 100%; max-width: 34rem; }
.fs-opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fs-opts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fs-opts.cabins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fs-opt { display: grid; gap: 3px; align-content: start; text-align: left; padding: 14px 16px; min-height: 56px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; cursor: pointer; }
.fs-opt b { font-size: 1.02rem; }
.fs-opt span { font-size: .8rem; color: rgba(255, 255, 255, .75); line-height: 1.35; }
.fs-opt:hover { background: rgba(255, 255, 255, .14); }
.fs-opt[aria-checked="true"] { background: #fff; color: #09203F; border-color: #fff; }
.fs-opt[aria-checked="true"] span { color: #34506F; }
.fs-opt:focus-visible { outline: 3px solid #5CC8B2; outline-offset: 2px; }
.fs-ac { position: relative; width: 100%; max-width: 26rem; }
.fs-ac .ht-input { max-width: none; text-transform: none; }
.fs-ac-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #0D2440; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); max-height: 20rem; overflow: auto; }
.fs-ac-list li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 10px; border-radius: 10px; cursor: pointer; }
.fs-ac-list li b { font: 700 .95rem var(--font-mono); color: #9FE3D5; }
.fs-ac-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-ac-list li small { color: rgba(255, 255, 255, .6); font-size: .78rem; white-space: nowrap; }
.fs-ac-list li:hover, .fs-ac-list li[aria-selected="true"] { background: rgba(255, 255, 255, .12); }
.fs-ac-name { margin: -4px 0 0; min-height: 1.4em; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.fs-stepper { grid-template-columns: 12rem 44px 3rem 44px; }
.fs-stepper .ht-st-l { display: grid; line-height: 1.25; }
.fs-stepper .ht-st-l small { font-weight: 400; font-size: .8rem; color: rgba(255, 255, 255, .7); }
.fs-direct { color: #fff; margin-top: 4px; }
.fs-res { gap: 18px; }
.fs-route { padding: 22px 24px; display: grid; gap: 18px; background: linear-gradient(135deg, rgba(14, 50, 92, .85), rgba(9, 28, 54, .9)); }
.fs-rt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(5rem, 2fr) minmax(0, 1fr); align-items: center; gap: 14px; }
.fs-end { display: grid; gap: 2px; min-width: 0; }
.fs-end.b { text-align: right; }
.fs-code { font: 700 clamp(2.2rem, 7vw, 3.4rem) var(--font-display); line-height: 1; letter-spacing: .02em; }
.fs-city { font-weight: 600; }
.fs-end small { color: var(--ink-faint); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-mid { position: relative; color: rgba(159, 227, 213, .8); height: 46px; }
.fs-mid svg { width: 100%; height: 100%; display: block; }
.fs-plane { position: absolute; left: 50%; top: -4px; transform: translateX(-50%) rotate(0deg); font-size: 1.5rem; color: #fff; }
.fs-rtn { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); font: 600 .66rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.fs-stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 10px; }
.fs-stats div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.fs-stats dt { font-size: .76rem; color: var(--ink-faint); }
.fs-stats dd { margin: 2px 0 0; font: 700 1.15rem var(--font-display); }
.fs-stats dd.fs-n { font: 400 .8rem var(--font-body); color: var(--ink-soft); }
.fs-train { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(92, 200, 178, .14); border: 1px solid rgba(92, 200, 178, .4); font-size: .92rem; }
.fs-train a { color: #9FE3D5; }
.fs-compare h2, .fs-tips h2 { margin: 0; font-size: 1.35rem; }
.fs-compare .bud-sub { margin: 4px 0 12px; }
.fs-sites { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fs-site { display: grid; gap: 10px; align-content: start; padding: 18px; }
.fs-site-h { display: grid; gap: 10px; }
.fs-site-h h3 { margin: 0; font-size: 1.15rem; }
.fs-site-h .btn { justify-content: center; text-align: center; }
.fs-good { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.fs-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fs-tags li { font-size: .76rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.fs-tags li.ok { background: rgba(92, 200, 178, .12); border-color: rgba(92, 200, 178, .4); }
.fs-tags li.ok::before { content: "✓ "; color: #9FE3D5; }
.fs-tags li.no { color: var(--ink-faint); }
.fs-remind { margin: 0; font-size: .82rem; color: #F6D58E; }
.fs-tips { padding: 18px 22px; }
.fs-tips ul { margin: 10px 0 0; padding-left: 1.2rem; display: grid; gap: 6px; color: var(--ink-soft); }
.fs-again { text-align: center; }
@media (max-width: 860px) {
  .fs-sites { grid-template-columns: minmax(0, 1fr); }
  .fs-site-h { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
@media (max-width: 720px) {
  .fs-wiz { grid-template-columns: minmax(0, 1fr); }
  .fs-wiz .ht-wiz-bg { position: absolute; inset: 0; grid-column: auto; opacity: .55; min-height: 0; }
  .fs-wiz::after { background: linear-gradient(180deg, rgba(9, 32, 63, .35), rgba(9, 32, 63, .85)); }
  .fs-opts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-opts.cabins { grid-template-columns: minmax(0, 1fr); }
  .fs-stepper { grid-template-columns: minmax(0, 1fr) 44px 2.6rem 44px; }
  .fs-route { padding: 18px; }
  .fs-site-h { grid-template-columns: minmax(0, 1fr); }
  .fs-ac-list li { grid-template-columns: 3rem minmax(0, 1fr); }
  .fs-ac-list li small { display: none; }
}
.fs-stepper { width: 100%; max-width: 27rem; }
.fs-wiz .ht-dots li { flex: 1 1 0; max-width: 28px; min-width: 10px; }
.fs-wiz .ht-steps { min-width: 0; }
.fs-wiz .ht-wiz-in { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.fs-wiz .ht-steps { grid-template-columns: minmax(0, 1fr); }
.fs-wiz .ht-dots { min-width: 0; }
.fs-wiz .ht-nav { max-width: 34rem; }
