/* Intake calendar & pre-departure planner (frontend.plan). Uses epal.css tokens. */
.ep-pl-next { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.ep-pl-next__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(30,107,214,.5); animation: ep-pl-pulse 2s infinite; }
@keyframes ep-pl-pulse { 70% { box-shadow: 0 0 0 10px rgba(30,107,214,0); } 100% { box-shadow: 0 0 0 0 rgba(30,107,214,0); } }

/* ---------- Calendar dial ---------- */
.ep-pl-cal { position: relative; overflow: hidden; }
.ep-pl-cal__bg { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .08; pointer-events: none; }
.ep-pl-cal .ep-container { position: relative; }
.ep-pl-cal__grid { display: grid; gap: var(--sec-gap); align-items: center; }
@media (min-width: 900px) { .ep-pl-cal__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.ep-pl-dial { display: grid; place-items: center; }
.ep-pl-dial__ring { --s: min(420px, 100vw - 40px, 100svh - var(--header-h) - 150px); --r: calc(var(--s) / 2 - 28px); position: relative; width: var(--s); height: var(--s); min-width: 280px; min-height: 280px; border-radius: 50%;
    background: radial-gradient(circle, transparent 55%, rgba(30,107,214,.06) 56%, transparent 72%), conic-gradient(from -15deg, var(--paper-2), var(--white), var(--paper-2)); border: 1px solid var(--line); }
.ep-pl-month { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--muted);
    display: grid; place-content: center; line-height: 1; gap: 2px; cursor: pointer; font: 600 .74rem/1 var(--sans);
    transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); transition: transform .3s var(--ease-out), background .2s, box-shadow .2s; }
.ep-pl-month__n { font: 700 .95rem/1 var(--serif); }
.ep-pl-month.is-on { color: var(--ink); border-color: rgba(30,107,214,.4); box-shadow: 0 0 calc(8px + var(--v) * 22px) rgba(30,107,214, calc(.15 + var(--v) * .45)); }
.ep-pl-month.is-on .ep-pl-month__n { color: var(--brand); }
.ep-pl-month:not(.is-on) { opacity: .55; }
.ep-pl-month:hover, .ep-pl-month:focus-visible { transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)) scale(1.1); }
.ep-pl-month.is-sel { background: var(--brand); color: var(--white); border-color: var(--brand); }
.ep-pl-month.is-sel .ep-pl-month__n { color: var(--white); }
.ep-pl-dial__face { position: absolute; inset: 22%; border-radius: 50%; overflow: hidden; display: grid; place-content: center; text-align: center; color: var(--white); padding: 10px; gap: 4px; isolation: isolate; }
.ep-pl-dial__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ep-pl-dial__face::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(6,18,42,.55), rgba(6,18,42,.85)); z-index: -1; }
.ep-pl-dial__face strong { font: 600 clamp(1.3rem, 1rem + 1.4vw, 1.9rem)/1.05 var(--serif); }
.ep-pl-dial__face span { font-weight: 700; color: var(--sky); }
.ep-pl-dial__face small { color: var(--muted-on-ink); }

.ep-pl-list { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-pad); display: grid; gap: 12px; }
.ep-pl-list__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; }
.ep-pl-list__head h3 { font: 600 var(--fs-h3)/1.2 var(--serif); margin: 0; }
.ep-pl-split { display: flex; gap: 12px; font-size: .88rem; }
.ep-pl-split span { display: inline-flex; align-items: center; gap: 6px; }
.ep-pl-split img { border-radius: 2px; }
.ep-pl-list__items { list-style: none; margin: 0; padding: 0; max-height: min(300px, 42svh); overflow: auto; display: grid; gap: 6px; overscroll-behavior: contain; }
.ep-pl-list__items a { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 6px; border-radius: 12px; color: inherit; text-decoration: none; }
.ep-pl-list__items a:hover, .ep-pl-list__items a:focus-visible { background: var(--paper); }
.ep-pl-list__items a > img { width: 48px; height: 48px; flex: none; border-radius: 10px; object-fit: cover; }
.ep-pl-list__items a > span { min-width: 0; display: grid; }
.ep-pl-list__items strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-pl-list__items small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-pl-list__items small img { vertical-align: -1px; }
.ep-pl-list__empty { color: var(--muted); padding: 12px 0; }
.ep-pl-list__more { justify-self: start; }

/* ---------- Departure board ---------- */
.ep-pl-pass { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
@media (min-width: 900px) { .ep-pl-pass { grid-template-columns: minmax(0, 1fr) 220px; } }
.ep-pl-board { padding: var(--card-pad); min-width: 0; }
.ep-pl-board__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.ep-pl-board__top label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-ink); }
.ep-pl-board__top select { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-on-ink); background: var(--ink); color: var(--white); font: 600 1rem var(--sans); max-width: 100%; }
.ep-pl-board__today { margin-left: auto; font-size: .85rem; color: var(--muted-on-ink); }
.ep-pl-board__today b { color: var(--white); }
.ep-pl-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ep-pl-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "n what date" "n what status"; gap: 0 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border-left: 3px solid var(--brand); }
@media (min-width: 640px) { .ep-pl-row { grid-template-columns: 34px minmax(0, 1fr) auto 64px; grid-template-areas: "n what date status"; } }
.ep-pl-row__n { grid-area: n; font: 700 .85rem var(--sans); color: var(--sky); }
.ep-pl-row__what { grid-area: what; display: grid; min-width: 0; }
.ep-pl-row__what strong { color: var(--white); font-size: .95rem; }
.ep-pl-row__what small { color: var(--muted-on-ink); font-size: .8rem; }
.ep-pl-row__date { grid-area: date; }
.ep-pl-row__status { grid-area: status; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb4ad; text-align: right; }
.ep-pl-row.is-late { border-left-color: var(--err); opacity: .75; }
.ep-pl-row--go { border-left-color: #f5c84c; background: rgba(245,200,76,.08); }
.ep-flap { display: inline-flex; gap: 2px; font: 700 clamp(.82rem, .75rem + .3vw, 1rem)/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #f5c84c; white-space: nowrap; }
.ep-flap > span { display: inline-block; min-width: .78em; padding: 5px 2px; text-align: center; background: linear-gradient(#0a1836 50%, #071228 50%); border-radius: 3px; box-shadow: inset 0 -1px 0 rgba(0,0,0,.5); }
.ep-flap > span.is-flip { animation: ep-pl-flip .45s var(--ease-out) both; animation-delay: calc(var(--i) * 22ms); }
@keyframes ep-pl-flip { 0% { transform: rotateX(90deg); } 60% { transform: rotateX(-12deg); } 100% { transform: none; } }
.ep-pl-edit { margin-top: 12px; color: var(--white); }
.ep-pl-edit summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--sky); }
.ep-pl-edit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.ep-pl-edit__grid label { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; font-size: .85rem; }
.ep-pl-edit__grid label span { grid-column: 1 / -1; color: var(--muted-on-ink); }
.ep-pl-edit__grid input { min-height: 44px; width: 100%; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-on-ink); background: var(--ink); color: var(--white); font: 700 1rem var(--sans); }
.ep-pl-edit__grid small { color: var(--muted-on-ink); }
.ep-pl-edit .ep-link { min-height: 44px; color: var(--sky); }
.ep-pl-note { color: var(--muted-on-ink); margin-top: 10px; }
.ep-pl-stub { position: relative; display: none; border-left: 2px dashed rgba(255,255,255,.2); overflow: hidden; }
@media (min-width: 900px) { .ep-pl-stub { display: block; } }
.ep-pl-stub img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ep-pl-stub__txt { position: absolute; left: 16px; right: 16px; top: 20px; display: flex; justify-content: space-between; align-items: center; color: var(--white); font: 700 1.1rem var(--sans); letter-spacing: .1em; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.ep-pl-stub__code { position: absolute; left: 16px; right: 16px; bottom: 18px; height: 46px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px); opacity: .85; border-radius: 2px; }

/* ---------- Passport checklist ---------- */
.ep-pl-passport { display: grid; gap: var(--sec-gap); }
@media (min-width: 960px) { .ep-pl-passport { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -36px rgba(6,18,42,.45); }
    .ep-pl-page + .ep-pl-page { border-left: 2px solid rgba(6,18,42,.08); } }
.ep-pl-page { position: relative; min-width: 0; padding: var(--card-pad); background: #fbfaf5; border-radius: var(--radius-lg); overflow: hidden;
    background-image: repeating-linear-gradient(135deg, rgba(30,107,214,.035) 0 2px, transparent 2px 14px); border: 1px solid var(--line); }
.ep-pl-page__title { font: 600 var(--fs-h3)/1.2 var(--serif); margin: 0 0 10px; }
.ep-pl-page__photo { margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 14px; height: 120px; overflow: hidden; }
.ep-pl-page__photo img { width: 100%; height: 100%; object-fit: cover; }
.ep-pl-page__count { font-weight: 700; color: var(--brand); margin: 0 0 8px; }
.ep-pl-page .ep-docs { background: transparent; }
.ep-pl-item { position: relative; min-height: 44px; }
.ep-pl-stamp { position: absolute; right: 6px; top: 50%; padding: 4px 8px; border: 2px solid var(--ok); border-radius: 6px; color: var(--ok); font: 800 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
    transform: translateY(-50%) rotate(-12deg) scale(1.6); opacity: 0; pointer-events: none; transition: transform .35s var(--ease-out), opacity .2s; }
.ep-pl-item input:checked ~ .ep-pl-stamp { opacity: .85; transform: translateY(-50%) rotate(-12deg) scale(1); }
.ep-pl-item .ep-docs__text { padding-right: 70px; }
.ep-pl-page--pack .ep-btn { margin-top: 12px; }

@media print {
    .ep-print-docs .ep-pl-check .ep-railhead, .ep-print-docs .ep-pl-page__photo, .ep-print-docs [data-pack-print] { display: none !important; }
    .ep-print-docs .ep-pl-passport { display: block; box-shadow: none; }
    .ep-print-docs .ep-pl-page { border: 0; background: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ep-pl-next__dot, .ep-flap > span.is-flip { animation: none; }
    .ep-pl-month, .ep-pl-stamp { transition: none; }
}
.ep-pl-list__items small img { display: inline-block; margin-right: 2px; }

/* ---------- Phones & tablets (desktop 960px+ unchanged) ---------- */
@media (max-width: 959px) {
    .ep-pl-month { font-size: .8rem; }
    .ep-pl-list__items small, .ep-pl-row__what small, .ep-pl-edit__grid label { font-size: .875rem; }
    .ep-pl-edit__grid small { font-size: .8125rem; }
    .ep-pl-row__status, .ep-pl-stamp { font-size: .75rem; }
    .ep-pl-split, .ep-pl-board__today { font-size: .9375rem; }
}
@media (max-width: 639px) {
    /* Departure board: the date flaps get their own line so the step title keeps the full width */
    .ep-pl-row { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "n what what" "n date status"; gap: 6px 10px; padding: 10px 12px; }
    .ep-pl-row__date { justify-self: start; }
    .ep-pl-row__status { align-self: center; }
    .ep-pl-item .ep-docs__text { padding-right: 56px; }
}
/* Short screens (phones in landscape): the ring never drops below 280px, so the month radius must not either,
   otherwise the months collapse behind the photo face. Identical to before wherever the ring was 280px or larger. */
.ep-pl-dial__ring { --s: max(280px, min(420px, 100vw - 40px, 100svh - var(--header-h) - 150px)); }

/* ==========================================================================
   v3 "Orbit" (2026-11-18): dark HUD hero, glass dial, night departure board,
   passport checklist on paper. Tokens from epal.css.
   ========================================================================== */

/* ---------- Hero ---------- */
.ep-pl-hero { margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(24px, 4vh, 48px)) 0 clamp(36px, 5vh, 64px); }
.ep-pl-hero__vid { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; mix-blend-mode: screen; pointer-events: none; transition: opacity 1.4s ease; }
.ep-pl-hero__vid.is-on { opacity: .22; }
.ep-pl-hero__grid { position: relative; z-index: 2; display: grid; gap: 28px; }
@media (min-width: 960px) { .ep-pl-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; } }
.ep-pl-hero__copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.ep-pl-hero .ep-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-ink); }
.ep-pl-hero .ep-crumbs a { color: var(--sky); }
.ep-pl-hero .ep-crumbs a:hover { color: #fff; }
.ep-pl-hero__title { margin: 0; font-size: var(--fs-display); color: #fff; max-width: 16ch; text-wrap: balance; }
.ep-pl-hero .ep-lead { max-width: 52ch; color: var(--muted-on-ink); }
.ep-pl-next { margin: 0; background: rgba(255, 255, 255, .06); border: 0; box-shadow: inset 0 0 0 1px var(--glass-line); color: #fff; font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ep-pl-next__dot { background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); }
@keyframes ep-pl-pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.ep-pl-hero__media { position: relative; display: none; min-width: 0; }
@media (min-width: 960px) { .ep-pl-hero__media { display: block; } }
.ep-pl-hero__main { display: block; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow-3), 0 0 60px -20px rgba(47, 107, 255, .6); }
.ep-pl-hero__main img { width: 100%; height: 100%; object-fit: cover; }
.ep-pl-hero__main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 55%, rgba(2, 6, 26, .55)); pointer-events: none; }
.ep-pl-hero__chip { position: absolute; display: block; overflow: hidden; width: 34%; aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: 0 0 0 3px var(--ink), 0 20px 40px -14px rgba(0, 0, 0, .7), 0 0 0 4px var(--glass-line); }
.ep-pl-hero__chip img { width: 100%; height: 100%; object-fit: cover; }
.ep-pl-hero__chip--a { left: -8%; bottom: -8%; }
.ep-pl-hero__chip--b { right: -4%; top: -8%; }
@media (max-height: 760px) and (min-width: 960px) { .ep-pl-hero { padding-block: calc(var(--header-h) + 16px) 32px; } .ep-pl-hero__main { aspect-ratio: 16 / 10; } .ep-pl-hero__title { font-size: clamp(30px, 2.8vw, 40px); } }

/* ---------- Calendar: glass HUD dial ---------- */
.ep-pl-cal { background: var(--paper); }
.ep-pl-cal__bg { display: none; }
.ep-pl-dial__ring {
    border: 0; background: radial-gradient(circle, transparent 54%, rgba(47, 107, 255, .08) 56%, transparent 72%), conic-gradient(from -15deg, var(--paper-2), #fff, var(--paper-2));
    box-shadow: inset 0 0 0 1px var(--line), 0 0 0 10px rgba(47, 107, 255, .05), var(--shadow-2);
}
.ep-pl-dial__ring::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 1px dashed rgba(47, 107, 255, .35); animation: pl-spin 60s linear infinite; pointer-events: none; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.ep-pl-month { border-radius: 50%; font-family: var(--mono); box-shadow: inset 0 0 0 1px var(--line); border: 0; }
.ep-pl-month__n { font-family: var(--display); font-weight: 600; }
.ep-pl-month.is-on { box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .45), 0 0 calc(8px + var(--v) * 22px) rgba(34, 211, 238, calc(.15 + var(--v) * .5)); }
.ep-pl-month.is-sel { background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 22px rgba(34, 211, 238, .6); }
.ep-pl-month.is-sel .ep-pl-month__n { color: #fff; }
.ep-pl-dial__face strong { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; }
.ep-pl-dial__face span { font-family: var(--mono); font-weight: 500; font-size: .8rem; color: var(--cyan); }
.ep-pl-dial__face::before { background: linear-gradient(160deg, rgba(2, 6, 26, .5), rgba(5, 12, 34, .88)); }
.ep-pl-list {
    border: 1px solid transparent; border-radius: var(--radius-lg);
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(47, 107, 255, .6), rgba(34, 211, 238, .4) 50%, rgba(124, 92, 255, .3)) border-box;
    box-shadow: var(--shadow-2);
}
.ep-pl-list__head h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
.ep-pl-split { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.ep-pl-split b { color: var(--brand-deep); }
.ep-pl-list__items a { border-radius: var(--radius-sm); transition: background .25s, transform .3s var(--ease-out); }
.ep-pl-list__items a:hover, .ep-pl-list__items a:focus-visible { background: var(--paper); transform: translateX(4px); }

/* ---------- Departure board: night glass ---------- */
.ep-pl-plan { background: var(--ink); }
.ep-pl-pass {
    border-radius: var(--radius-lg); position: relative; isolation: isolate;
    background: linear-gradient(160deg, rgba(18, 35, 90, .7), rgba(5, 12, 34, .92));
    box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow-3), 0 0 80px -30px rgba(47, 107, 255, .5);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.ep-pl-board__top label { font-family: var(--mono); color: var(--cyan); }
.ep-pl-board__top select { border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); border-color: var(--glass-line); }
.ep-pl-board__top select:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ep-pl-board__today { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.ep-pl-row { border-radius: var(--radius-sm); transition: background .3s, transform .3s var(--ease-out); }
.ep-pl-row:hover { transform: translateX(4px); }
.ep-pl-row__n { font-family: var(--mono); font-weight: 500; color: var(--cyan); }
.ep-pl-row__what strong { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.ep-pl-row--go { border-left-color: var(--warm); background: rgba(255, 181, 71, .1); }
.ep-flap { color: var(--warm); }
.ep-flap > span { border-radius: 4px; }
.ep-pl-edit summary { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cyan); }
.ep-pl-edit__grid input { border-radius: var(--radius-xs); background: rgba(255, 255, 255, .06); border-color: var(--glass-line); }
.ep-pl-edit__grid input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.ep-pl-edit .ep-link { color: var(--cyan); }
.ep-pl-stub { border-left-color: rgba(255, 255, 255, .18); }
.ep-pl-stub img { opacity: .5; mix-blend-mode: luminosity; }
.ep-pl-stub__txt { font-family: var(--mono); }

/* ---------- Passport checklist ---------- */
.ep-pl-check { background: var(--paper); }
.ep-pl-passport { align-items: stretch; }
.ep-pl-page { background-color: #fff; border-radius: var(--radius-lg); border: 0; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); background-image: radial-gradient(circle at 100% 0%, rgba(47, 107, 255, .06), transparent 50%); }
.ep-pl-page__title { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
.ep-pl-page__count { font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); }
.ep-pl-item { border-radius: var(--radius-sm); transition: background .25s, transform .3s var(--ease-out); }
.ep-pl-item:hover { background: var(--paper); transform: translateX(3px); }
.ep-pl-stamp { font-family: var(--mono); border-radius: var(--radius-xs); }
@media (min-width: 960px) { .ep-pl-passport { border-radius: var(--radius-lg); box-shadow: var(--shadow-2); } .ep-pl-page { border-radius: var(--radius-lg); } }

/* ---------- Consultation ---------- */
.ep-pl-consult { background: var(--ink); }
.ep-pl-consult .ep-cta { position: relative; z-index: 1; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow-3); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.ep-pl-consult .ep-h2 em { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }

/* ---------- Section heads ---------- */
.ep-pl-cal .ep-h2, .ep-pl-check .ep-h2, .ep-pl-plan .ep-h2, .ep-pl-consult .ep-h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; }
.ep-pl-cal .ep-h2 em, .ep-pl-check .ep-h2 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ep-pl-plan .ep-h2 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (prefers-reduced-motion: reduce) {
    .ep-pl-dial__ring::before { animation: none; }
    .ep-pl-hero__vid { display: none; }
    .ep-pl-row:hover, .ep-pl-item:hover, .ep-pl-list__items a:hover { transform: none; }
}
html.ep-lite .ep-pl-hero__vid, html.ep-lite .ep-pl-dial__ring::before { display: none; }

/* ==========================================================================
   v4 restructure: giant titles, no paragraphs
   ========================================================================== */
.ep-pl-hero__title { font-size: clamp(40px, 6vw, 76px); font-weight: 700; line-height: .96; letter-spacing: -.045em; max-width: 12ch; }
@media (min-width: 960px) and (max-height: 900px) { .ep-pl-hero__title { font-size: clamp(44px, 4.8vw, 62px); } }
@media (max-height: 760px) and (min-width: 960px) { .ep-pl-hero__title { font-size: 48px; } }
.ep-pl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ep-pl-chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px 4px 5px; border-radius: 999px; background: var(--glass-bg); box-shadow: inset 0 0 0 1px var(--glass-line); font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.ep-pl-chips i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-brand); font-style: normal; font-weight: 700; }
.ep-pl-cal .ep-h2, .ep-pl-plan .ep-h2, .ep-pl-check .ep-h2, .ep-pl-consult .ep-h2 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
@media (max-height: 760px) and (min-width: 960px) { .ep-pl-cal .ep-h2, .ep-pl-plan .ep-h2, .ep-pl-check .ep-h2 { font-size: 38px; } }
.ep-railhead .ep-lead { max-width: 24ch; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ep-pl-row__what strong { font-family: var(--display); font-size: 1.1rem; letter-spacing: -.02em; }
.ep-pl-row__n { font-family: var(--mono); }
.ep-pl-fold { margin-top: 8px; }
.ep-pl-fold summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); }
.ep-pl-plan .ep-pl-fold summary { color: var(--cyan); }
.ep-pl-item .ep-docs__text small, .ep-pl-pass .ep-pl-row__what small { display: none; }

/* ==========================================================================
   v4 POLISH: white, restrained. The departure board stays as the one dark card.
   ========================================================================== */
:where(.ep-pl-hero, .ep-pl-cal, .ep-pl-plan, .ep-pl-check, .ep-pl-consult) { --mono: var(--sans); }

/* — Hero — */
.ep-pl-hero.nx-dark { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 24px) 0 clamp(32px, 5vh, 56px); }
.ep-pl-hero::before, .ep-pl-hero::after { display: none; }
.ep-pl-hero__vid { display: none; }
.ep-pl-hero .ep-crumbs { font: 400 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.ep-pl-hero .ep-crumbs a { color: var(--muted); }
.ep-pl-hero .ep-crumbs a:hover { color: var(--ink); }
.ep-pl-hero__title { color: var(--ink); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.5rem, 1.2rem + 4vw, 4.5rem); max-width: 10ch; }
.ep-pl-hero__title em { color: var(--brand); background: none; -webkit-text-fill-color: currentColor; }
.ep-pl-chips li { background: var(--paper-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.ep-pl-chips i { background: var(--ink); color: #fff; font-family: var(--sans); font-weight: 600; }
.ep-pl-next { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); -webkit-backdrop-filter: none; backdrop-filter: none; font: 500 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.ep-pl-next__dot { background: var(--ok); animation: none; box-shadow: none; }
.ep-pl-hero__main { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.ep-pl-hero__main::after { display: none; }
.ep-pl-hero__chip { display: none; }
@media (min-width: 960px) and (max-height: 900px) { .ep-pl-hero__title { font-size: clamp(2.5rem, 4vw, 3.5rem); } }
@media (min-width: 960px) and (max-height: 760px) { .ep-pl-hero__title { font-size: 2.75rem; } .ep-pl-hero.nx-dark { padding: calc(var(--header-h) + 8px) 0 24px; } }

/* — Section heads — */
.ep-pl-cal .ep-h2, .ep-pl-plan .ep-h2, .ep-pl-check .ep-h2 { color: var(--ink); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.ep-pl-cal .ep-h2 em, .ep-pl-check .ep-h2 em, .ep-pl-plan .ep-h2 em, .ep-pl-consult .ep-h2 em { color: var(--brand); background: none; -webkit-text-fill-color: currentColor; }
.ep-railhead .ep-lead { font: 400 16px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); max-width: 28ch; }
@media (min-width: 960px) and (max-height: 760px) { .ep-pl-cal .ep-h2, .ep-pl-plan .ep-h2, .ep-pl-check .ep-h2 { font-size: 2.5rem; } }

/* — Calendar dial — */
.ep-pl-cal { background: #fff; }
.ep-pl-dial__ring { background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.ep-pl-dial__ring::before { border-color: var(--line); animation: none; }
.ep-pl-month { font-family: var(--sans); box-shadow: inset 0 0 0 1px var(--line-strong); background: #fff; transition: background 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out; }
.ep-pl-month__n { font-family: var(--sans); font-weight: 600; }
.ep-pl-month.is-on { box-shadow: inset 0 0 0 1.5px var(--brand); }
.ep-pl-month:not(.is-on) { opacity: .5; }
.ep-pl-month:hover, .ep-pl-month:focus-visible { transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); background: var(--paper-2); opacity: 1; }
.ep-pl-month:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ep-pl-month.is-sel, .ep-pl-month.is-sel:hover { background: var(--ink); box-shadow: none; color: #fff; opacity: 1; }
.ep-pl-month.is-sel .ep-pl-month__n { color: #fff; }
.ep-pl-dial__face strong { font-family: var(--sans); letter-spacing: -.03em; }
.ep-pl-dial__face span { font-family: var(--sans); color: #fff; font-size: .9rem; }
.ep-pl-dial__face::before { background: linear-gradient(180deg, rgba(11, 18, 32, .35), rgba(11, 18, 32, .78)); }
.ep-pl-list { border: 0; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.ep-pl-list__head h3 { font-family: var(--sans); letter-spacing: -.02em; }
.ep-pl-split { font: 500 14px/1.3 var(--sans); text-transform: none; letter-spacing: 0; }
.ep-pl-split b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ep-pl-list__items a { border-radius: 8px; transition: background 150ms ease-out; }
.ep-pl-list__items a:hover, .ep-pl-list__items a:focus-visible { background: var(--paper-2); transform: none; }
.ep-pl-list__items a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ep-pl-list__items a > img { border-radius: 8px; }
.ep-pl-list__empty { background: var(--paper-2); border-radius: 8px; padding: 16px; text-align: center; }

/* — Departure board: the one dark card — */
.ep-pl-plan { background: var(--paper-2); }
.ep-pl-pass { background: var(--ink); border-radius: 16px; box-shadow: var(--shadow-3); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ep-pl-board__top label { font: 500 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .72); }
.ep-pl-board__top select { border-radius: 8px; background: rgba(255, 255, 255, .08); transition: background 150ms ease-out; }
.ep-pl-board__top select:hover { background: rgba(255, 255, 255, .14); }
.ep-pl-board__top select:focus { outline: 2px solid #fff; outline-offset: 2px; }
.ep-pl-board__today { font: 400 14px/1.3 var(--sans); text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, .72); }
.ep-pl-row { border-radius: 8px; transition: background 150ms ease-out; }
.ep-pl-row:hover { transform: none; background: rgba(255, 255, 255, .06); }
.ep-pl-row__n { font-family: var(--sans); color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.ep-pl-row__what strong { font-family: var(--sans); color: #fff; }
.ep-pl-row__what small { color: rgba(255, 255, 255, .65); }
.ep-pl-row__status { font: 600 12px/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: #ffb4ad; }
.ep-pl-row--go { border-left-color: #fff; background: rgba(255, 255, 255, .1); }
.ep-flap { color: #fff; }
.ep-flap > span { background: rgba(255, 255, 255, .1); }
.ep-flap > span.is-flip { animation-duration: .25s; }
@keyframes ep-pl-flip { 0% { opacity: 0; } 100% { opacity: 1; } }
.ep-pl-edit { color: #fff; }
.ep-pl-edit summary { font: 600 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: #fff; }
.ep-pl-edit__grid input { border-radius: 8px; background: rgba(255, 255, 255, .08); }
.ep-pl-edit__grid input:focus { outline: 2px solid #fff; outline-offset: 1px; }
.ep-pl-edit .ep-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ep-pl-fold summary { font: 600 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--brand-deep); }
.ep-pl-plan .ep-pl-fold summary { color: #fff; }
.ep-pl-stub__txt { font-family: var(--sans); }
.ep-pl-note { color: rgba(255, 255, 255, .7); }

/* — Checklist — */
.ep-pl-check { background: #fff; }
.ep-pl-page { background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.ep-pl-page__title { font-family: var(--sans); letter-spacing: -.02em; }
.ep-pl-page__count { font: 600 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.ep-pl-item { border-radius: 8px; transition: background 150ms ease-out; }
.ep-pl-item:hover { background: var(--paper-2); transform: none; }
.ep-pl-stamp { font-family: var(--sans); border-radius: 6px; }
@media (min-width: 960px) { .ep-pl-passport { box-shadow: none; gap: 24px; } .ep-pl-page + .ep-pl-page { border-left: 0; } }

/* — Consultation: the shared flat dark CTA card on a light band — */
.ep-pl-consult.nx-dark { background: var(--paper-2); }
.ep-pl-consult .ep-cta .ep-h2 { color: #fff; }
.ep-pl-consult .ep-cta .ep-h2 em { color: #9bb8ff; }
@media (prefers-reduced-motion: reduce) { .ep-pl-month, .ep-pl-row, .ep-pl-item { transition: none; } }
.ep-pl-hero__title { max-width: 13ch; }
.ep-pl-page .ep-docs__group, .ep-pl-page .ep-docs__group > :is(h3, h4, span, p, legend):first-child { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); }
.ep-pl-hero__title { max-width: 13ch; }
.ep-pl-page .ep-docs__group, .ep-pl-page .ep-docs__group > :is(h3, h4, span, p, legend):first-child { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); }

/* Consultation card is white: light fields and readable lines (the shared .ep-cta field styles assume dark) */
.ep-pl-consult .ep-cta { background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 16px; }
.ep-pl-consult .ep-cta .ep-h2 { color: var(--ink); }
.ep-pl-consult .ep-cta .ep-h2 em { color: var(--brand); }
.ep-pl-consult .ep-cta .ep-lead, .ep-pl-consult .ep-cta .ep-form__note, .ep-pl-consult .ep-cta .ep-check { color: var(--muted); }
.ep-pl-consult .ep-cta .ep-field :is(input, textarea, select) { background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); transition: border-color 150ms ease-out, box-shadow 150ms ease-out; }
.ep-pl-consult .ep-cta .ep-field :is(input, textarea, select):hover { border-color: var(--g-400, #9aa5b5); }
.ep-pl-consult .ep-cta .ep-field :is(input, textarea, select):focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100, #dfe8ff); }
.ep-pl-consult .ep-cta .ep-field label { color: var(--muted); }
.ep-pl-consult .ep-cta .ep-field :is(input, textarea):focus + label, .ep-pl-consult .ep-cta .ep-field :is(input, textarea):not(:placeholder-shown) + label { color: var(--brand-deep); }
.ep-pl-consult .ep-contact-lines, .ep-pl-consult .ep-contact-lines :is(a, span, li, div) { color: var(--ink); }
.ep-pl-consult .ep-contact-lines svg { color: var(--brand); }

/* v4 QA: the plan consult card is light, so the shared dark-card form label + radio pills need dark text. */
.ep-pl-consult .ep-form-label, .ep-pl-consult legend { color: var(--text); }
.ep-pl-consult .ep-radio span { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; }
.ep-pl-consult .ep-radio input:checked + span { color: #fff; background: var(--brand); box-shadow: none; }
.ep-pl-consult .ep-radio input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.ep-pl-consult .ep-radios .ep-radio input:checked + span::before { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 6px var(--brand), inset 0 0 0 10px #fff; }
.ep-pl-consult .ep-btn--light[type="submit"] { --bg: var(--brand); --fg: #fff; box-shadow: none; }

/* ═════════ v5 "Passport Colours" — plan ═════════ */
.ep-pl-hero { background: #fff; margin-top: 0; padding: calc(var(--header-h) + 10px) clamp(8px, 1.5vw, 24px) clamp(12px, 2vh, 24px); }
.ep-pl-hero .ep-container.ep-pl-hero__grid {
    max-width: var(--max, 1240px); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
    background-color: var(--sun-tint);
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 200, 61, .65) 1.3px, transparent 1.6px); background-size: 18px 18px;
    padding: clamp(16px, 3vh, 36px) clamp(18px, 3.5vw, 48px); align-items: center;
}
.ep-pl-hero__title { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .98; color: var(--ink); font-size: clamp(2.4rem, 1rem + 4vw, 4.5rem); }
.ep-pl-hero__title em { font-style: normal; color: var(--brand); background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 88% / 100% .16em; padding-inline: .04em; -webkit-text-fill-color: currentColor; }
.ep-pl-hero .ep-crumbs, .ep-pl-hero .ep-crumbs a, .ep-pl-hero .ep-crumbs span { color: var(--ink-2); font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; }
.ep-pl-hero .ep-lead { color: var(--ink-2); }
.ep-pl-chips li { background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-weight: 600; }
.ep-pl-chips li i { background: var(--brand); color: #fff; font-family: var(--display); font-weight: 800; box-shadow: none; }
.ep-pl-hero__main { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0; box-shadow: 0 0 0 6px #fff, var(--shadow-3); transform: rotate(1.5deg); }
.ep-pl-hero__main::after { display: none; }
.ep-pl-hero__chip { box-shadow: 0 0 0 4px #fff, var(--shadow-3); }
.ep-pl-next { color: var(--ink); }

/* calendar */
.ep-pl-cal { background: #fff; }
.ep-pl-cal .ep-h2, .ep-pl-plan .ep-h2, .ep-pl-check .ep-h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; }
.ep-pl-cal .ep-h2 em, .ep-pl-plan .ep-h2 em { font-style: normal; background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 88% / 100% .16em; -webkit-text-fill-color: currentColor; color: var(--brand); padding-inline: .04em; }

/* countdown: the boarding pass, in brand blue with a dashed tear */
.ep-pl-plan { background: #fff; }
.ep-pl-pass {
    --muted-on-ink: rgba(255, 255, 255, .82); --cyan: var(--sun); --line-on-ink: rgba(255, 255, 255, .25); --warm: var(--sun);
    background: var(--brand); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.ep-pl-pass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .14) 1.2px, transparent 1.5px) 0 0 / 18px 18px; pointer-events: none; }
.ep-pl-board__top select, .ep-pl-edit__grid input { background: #fff; color: var(--ink); border-color: transparent; }
.ep-pl-row { transition: background 180ms var(--ease), transform 220ms var(--spring); }
.ep-pl-row:hover { background: rgba(255, 255, 255, .12); }
.ep-pl-row--go { background: var(--sun); color: var(--ink); border-left-color: var(--ink); }
.ep-pl-row--go * { color: var(--ink); }
.ep-flap { color: var(--sun); }
.ep-pl-row--go .ep-flap { color: var(--ink); }
.ep-pl-stub { border-left: 2px dashed rgba(255, 255, 255, .5); }
.ep-pl-stub img { opacity: .9; mix-blend-mode: normal; filter: saturate(1.05); }
.ep-pl-stub__txt { font-family: var(--display); font-weight: 800; color: #fff; }
.ep-pl-stub__code { background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px); }

/* checklist passport */
.ep-pl-check { background: #fff; }
.ep-pl-page { border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-2); background-image: radial-gradient(circle at 100% 0%, var(--sun-tint), transparent 55%); }
.ep-pl-page__title { font-weight: 800; }
.ep-pl-page__count { font-family: var(--display); font-weight: 800; color: var(--brand); letter-spacing: 0; text-transform: none; font-size: 1rem; }
.ep-pl-item:hover { background: var(--brand-50); }

/* consult: tinted band with dots, ink title on a sun highlight */
.ep-pl-consult { background: #fff; padding-block: clamp(16px, 4vw, 48px); }
.ep-pl-consult .ep-cta { border-radius: var(--radius-lg); background-color: var(--brand-50); background-image: radial-gradient(circle at 1px 1px, rgba(18, 64, 200, .2) 1.3px, transparent 1.6px); background-size: 18px 18px; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-2); -webkit-backdrop-filter: none; backdrop-filter: none; overflow: hidden; }
.ep-pl-consult .ep-h2 { color: var(--ink); }
.ep-pl-consult .ep-h2 em { color: var(--brand); background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 88% / 100% .16em; -webkit-text-fill-color: currentColor; padding-inline: .04em; }
.ep-pl-consult .ep-lead { color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .ep-pl-row, .ep-pl-item { transition: none; } .ep-pl-hero__main { transform: none; } }
