/* Boarding-pass status card (pages/flight-ticket.ts) + the page chrome that frames it. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/static/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/static/fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --pw-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pw-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tone-calm: #8b7bff;
  --tone-sky: #35d3b8;
  --tone-late: #ffb547;
  --tone-bad: #ff6070;
  --tone-done: #7be0a4;
}

/* ---------- ticket ---------- */

.pwt__link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 22px;
}
.pwt__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.pwt {
  --tone: var(--tone-calm);
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px 22px 18px;
  border: 1px solid color-mix(in oklab, var(--tone) 32%, rgba(255, 255, 255, 0.06));
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in oklab, var(--tone) 20%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    #0b1020;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px -28px color-mix(in oklab, var(--tone) 55%, #000);
  transition: transform 0.4s var(--pw-ease), border-color 0.3s;
}
.pwt--sky { --tone: var(--tone-sky); }
.pwt--late { --tone: var(--tone-late); }
.pwt--bad { --tone: var(--tone-bad); }
.pwt--done { --tone: var(--tone-done); }

a.pwt__link:hover .pwt { transform: translateY(-3px); border-color: color-mix(in oklab, var(--tone) 55%, transparent); }
a.pwt__link:active .pwt { transform: translateY(0) scale(0.995); }

.pwt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pwt__who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.pwt__airline { font-weight: 500; color: var(--muted); font-size: 0.95rem; }
.pwt__ident {
  font-family: var(--pw-mono);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 2px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  letter-spacing: 0.02em;
}

.pwt__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--tone) 80%, #fff);
  background: color-mix(in oklab, var(--tone) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--tone) 35%, transparent);
}
.pwt__pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
}
.pwt[data-status='in_flight'] .pwt__pulse::after,
.pwt[data-status='departed'] .pwt__pulse::after,
.pwt[data-status='delayed'] .pwt__pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--tone);
  animation: pwt-ping 2s var(--pw-ease) infinite;
}

.pwt__headline { margin: 20px 0 6px; }
.pwt__big {
  margin: 0;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}
.pwt__sub {
  margin: 8px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--tone) 70%, #fff);
}
.pwt__stale {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--tone-late);
}

/* route grid: codes + arc on one row, times underneath */
.pwt__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 1.5fr) minmax(0, 1fr);
  grid-template-areas: 'dc arc ac' 'dw . aw';
  column-gap: 8px;
  row-gap: 14px;
  margin-top: 22px;
  align-items: center;
}
.pwt__end--dep { grid-area: dc; }
.pwt__end--arr { grid-area: ac; text-align: right; }
.pwt__arc { grid-area: arc; }
.pwt__when--dep { grid-area: dw; }
.pwt__when--arr { grid-area: aw; text-align: right; }

.pwt__code {
  display: inline-flex;
  font-family: var(--pw-mono);
  font-weight: 600;
  font-size: clamp(2.3rem, 7.4vw, 4.1rem);
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--text);
}
.pwt__flap {
  display: inline-block;
  transform-origin: 50% 100%;
  animation: pwt-flap 0.7s var(--pw-ease) both;
  animation-delay: calc(var(--i) * 70ms + 120ms);
}
.pwt__city {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwt__arc {
  position: relative;
  aspect-ratio: 200 / 64;
  width: 100%;
  align-self: start;
  margin-top: 4px;
}
.pwt__arc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pwt__path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.6;
  stroke-dasharray: 2 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.pwt__path--done {
  stroke: var(--tone);
  stroke-width: 2.4;
  stroke-dasharray: var(--pct) 100;
  stroke-dashoffset: 0;
  animation: pwt-draw 1.4s var(--pw-ease) 0.3s both;
}
.pwt__plane {
  position: absolute;
  left: var(--px);
  top: var(--py);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  font-size: 13px;
  color: #0b1020;
  background: var(--tone);
  box-shadow: 0 6px 18px -4px color-mix(in oklab, var(--tone) 70%, #000);
  transform: rotate(var(--pa));
  animation: pwt-pop 0.7s var(--pw-ease) 0.5s both;
}
.pwt__plane--grounded { filter: grayscale(1); opacity: 0.55; }
.pwt[data-status='in_flight'] .pwt__plane::after,
.pwt[data-status='departed'] .pwt__plane::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--tone);
  animation: pwt-ping 2.4s var(--pw-ease) infinite;
}

.pwt__when { display: flex; flex-direction: column; gap: 2px; }
.pwt__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
}
.pwt__time {
  font-family: var(--pw-mono);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  letter-spacing: -0.03em;
  color: var(--text);
}
.pwt__time small {
  margin-left: 6px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted2);
}
.pwt__time--actual { color: var(--tone-done); }
.pwt__time--late { color: var(--tone-late); }
.pwt__time--est { color: color-mix(in oklab, var(--tone) 70%, #fff); }
.pwt__date { font-size: 0.8rem; color: var(--muted2); }
.pwt__was { font-family: var(--pw-mono); font-size: 0.78rem; color: var(--muted2); text-decoration-color: rgba(255, 255, 255, 0.35); }

/* progress rail */
.pwt__rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  position: relative;
}
.pwt__step {
  position: relative;
  padding-top: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted2);
  text-align: left;
}
.pwt__step:last-child { text-align: right; }
.pwt__step::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.pwt__step--done::before { background: var(--tone); }
.pwt__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0b1020;
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.pwt__step:last-child .pwt__dot { left: auto; right: 0; }
.pwt__step--done .pwt__dot { background: var(--tone); border-color: var(--tone); }
.pwt__step--now { color: var(--text); }
.pwt__step--now .pwt__dot { border-color: var(--tone); box-shadow: 0 0 0 4px color-mix(in oklab, var(--tone) 25%, transparent); }

/* perforated stub */
.pwt__chips,
.pwt__foot {
  position: relative;
}
.pwt__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px -22px 0;
  padding: 18px 22px 0;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.16);
}
.pwt__chips::before,
.pwt__chips::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid color-mix(in oklab, var(--tone) 32%, rgba(255, 255, 255, 0.06));
}
.pwt__chips::before { left: -11px; }
.pwt__chips::after { right: -11px; }
.pwt__chipGroup { display: flex; align-items: stretch; gap: 8px; }
.pwt__chipGroup > i {
  align-self: center;
  font-style: normal;
  font-family: var(--pw-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted2);
}
.pwt__chip {
  min-width: 58px;
  padding: 7px 12px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.pwt__chip span { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2); }
.pwt__chip b { display: block; margin-top: 2px; font-family: var(--pw-mono); font-size: 1.2rem; font-weight: 600; color: var(--text); }
.pwt__chip--strong { background: color-mix(in oklab, var(--tone) 14%, transparent); border-color: color-mix(in oklab, var(--tone) 35%, transparent); }
.pwt__chip--strong b { font-size: 1.5rem; color: color-mix(in oklab, var(--tone) 55%, #fff); }

.pwt__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pwt__foot span {
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}
.pwt__foot .pwt__cs { font-family: var(--pw-mono); }

/* compact (list rows) */
.pwt--compact { padding: 16px 18px 14px; }
.pwt--compact .pwt__headline { margin-top: 14px; }
.pwt--compact .pwt__big { font-size: clamp(1.25rem, 3.4vw, 1.7rem); }
.pwt--compact .pwt__code { font-size: clamp(1.9rem, 6vw, 2.9rem); }
.pwt--compact .pwt__route { margin-top: 14px; }
.pwt--compact .pwt__chips { margin: 16px -18px 0; padding: 14px 18px 0; }

@media (max-width: 520px) {
  .pwt { padding: 16px 16px 14px; border-radius: 20px; }
  .pwt__chips { margin: 18px -16px 0; padding: 14px 16px 0; gap: 10px 14px; }
  .pwt__arc { margin-top: 0; }
  .pwt__plane { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 11px; }
  .pwt__airline { display: none; }
}

/* ---------- motion ---------- */
@keyframes pwt-flap {
  0% { transform: rotateX(-100deg); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: rotateX(0); opacity: 1; }
}
@keyframes pwt-draw { from { stroke-dasharray: 0 100; } }
@keyframes pwt-pop { from { opacity: 0; scale: 0.4; } }
@keyframes pwt-ping {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes pwt-rise {
  from { opacity: 0; transform: translateY(18px); }
}

@media (prefers-reduced-motion: reduce) {
  .pwt__flap, .pwt__path--done, .pwt__plane, .pwt__pulse::after, .pwt__plane::after, .pw-reveal { animation: none !important; }
  .pwt, a.pwt__link:hover .pwt { transition: none; transform: none; }
}

/* ---------- list + detail chrome ---------- */

.pw-reveal { animation: pwt-rise 0.7s var(--pw-ease) both; animation-delay: calc(var(--n, 0) * 90ms); }

.pwh, .pwf, .pwd { position: relative; }
.pwh::before, .pwf::before, .pwd::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  pointer-events: none;
  background:
    radial-gradient(55% 70% at 85% 0%, rgba(124, 92, 255, 0.2), transparent 70%),
    radial-gradient(40% 55% at 5% 0%, rgba(53, 211, 184, 0.08), transparent 70%);
}
.pwh__wrap, .pwf__wrap, .pwd__wrap { position: relative; margin: 0 auto; padding: 0 18px; }

/* ----- home ----- */
.pwh { padding: 28px 0 96px; }
.pwh__wrap { max-width: 1180px; }
.pwh__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: min(680px, calc(100dvh - 190px));
}
.pwh__title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.pwh__lede { margin: 18px 0 26px; max-width: 46ch; font-size: 1.1rem; line-height: 1.55; color: var(--muted); }
.pwh .pwh__form {
  max-width: 540px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 70px -40px rgba(0, 0, 0, 0.8);
}
.pwh .pw-input--flight {
  font-family: var(--pw-mono);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  padding-left: 18px;
}
.pwh .pw-auth__row { justify-content: flex-start; }
.pwh .pw-gameCtaWrap { justify-content: flex-start; max-width: 540px; }
.pwh__stage { position: relative; min-width: 0; }
.pwh__stage::before {
  content: '';
  position: absolute;
  inset: 8% -6% -8% 6%;
  border-radius: 40px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(124, 92, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.pwh__stage .pwt { transform: rotate(-1.4deg); }
.pwh__stage a.pwt__link:hover .pwt { transform: rotate(0) translateY(-3px); }
.pwh__caption { margin: 14px 0 0; text-align: center; font-size: 0.85rem; color: var(--muted2); }
.pwh__more { display: block; margin-top: 14px; text-align: center; color: var(--accent); font-weight: 600; text-decoration: none; }

.pwh__h2 { margin: 0 0 28px; max-width: 18ch; font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.pwh__moments { margin-top: clamp(64px, 10vw, 120px); }
.pwh__timeline { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.pwh__timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 22px 0; }
.pwh__timeline li + li { border-top: 1px solid var(--border); }
.pwh__when { font-family: var(--pw-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tone-sky); padding-top: 5px; }
.pwh__timeline h3 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.pwh__timeline p { margin: 6px 0 0; max-width: 52ch; color: var(--muted); line-height: 1.55; }

.pwh__more2 { margin-top: clamp(64px, 10vw, 120px); }
.pwh__bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(190px, auto));
  gap: 14px;
}
.pwh__cell {
  --c: 255, 255, 255;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(var(--c), 0.06), rgba(var(--c), 0.015));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.4s var(--pw-ease), border-color 0.3s;
}
.pwh__cell:hover { transform: translateY(-3px); border-color: rgba(var(--c), 0.4); }
.pwh__cell--tall { grid-row: span 2; }
.pwh__cell--wide { grid-column: span 2; }
.pwh__cell--sky { --c: 53, 211, 184; background: radial-gradient(90% 70% at 20% 0%, rgba(53, 211, 184, 0.28), transparent 70%), linear-gradient(160deg, rgba(53, 211, 184, 0.08), rgba(53, 211, 184, 0.02)); }
.pwh__cell--violet { --c: 124, 92, 255; background: radial-gradient(90% 80% at 100% 0%, rgba(124, 92, 255, 0.3), transparent 70%), linear-gradient(160deg, rgba(124, 92, 255, 0.08), rgba(124, 92, 255, 0.02)); }
.pwh__cell--amber { --c: 255, 181, 71; background: radial-gradient(70% 90% at 0% 100%, rgba(255, 181, 71, 0.22), transparent 70%), linear-gradient(160deg, rgba(255, 181, 71, 0.07), rgba(255, 181, 71, 0.015)); }
.pwh__cell i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: auto; border-radius: 14px; font-size: 1.1rem; color: rgb(var(--c)); background: rgba(var(--c), 0.14); }
.pwh__cell--tall i { width: 56px; height: 56px; font-size: 1.4rem; }
.pwh__cell h3 { margin: 22px 0 6px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.pwh__cell--tall h3 { font-size: 1.7rem; max-width: 12ch; }
.pwh__cell p { margin: 0; max-width: 40ch; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .pwh__hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; }
  .pwh__stage .pwt { transform: none; }
  .pwh__bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .pwh__cell--tall { grid-row: auto; grid-column: span 2; }
  .pwh__cell--wide { grid-column: span 2; }
  .pwh__timeline li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .pwh__bento { grid-template-columns: 1fr; }
  .pwh__cell--tall, .pwh__cell--wide { grid-column: auto; }
}

/* ----- flights list ----- */
.pwf { padding: 28px 0 96px; }
.pwf__wrap { max-width: 860px; }
.pwf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pwf__title { margin: 0; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.pwf__lede { margin: 8px 0 0; color: var(--muted); }
.pwf__logbook {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 14px 18px; border-radius: 18px;
  border: 1px solid rgba(53, 211, 184, 0.28);
  background: linear-gradient(120deg, rgba(53, 211, 184, 0.12), rgba(53, 211, 184, 0.03));
}
.pwf__logbookStats { display: flex; flex-direction: column; gap: 2px; }
.pwf__logbookStats strong { font-size: 1.05rem; }
.pwf__logbookStats span { font-size: 0.85rem; color: var(--muted); }
.pwf__logbookActions { display: flex; gap: 8px; }
.pwf #pwOfflineBanner, .pwf #pwNotifNudge { margin: 0 0 14px !important; } /* legacy inline 20px gutters */
.pwf__tabs { display: inline-flex; gap: 4px; margin: 6px 0 22px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }
.pwf__tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--muted); text-decoration: none; transition: background 0.25s, color 0.25s; }
.pwf__tabs a b { font-family: var(--pw-mono); font-size: 0.78rem; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.pwf__tabs a:hover { color: var(--text); }
.pwf__tabs a.is-on { background: var(--accent); color: #fff; }
.pwf__tabs a.is-on b { background: rgba(255, 255, 255, 0.22); }

.pwf .pwf__group { display: flex; flex-direction: column; margin: 0 0 26px; padding: 0; background: none; border: 0; box-shadow: none; cursor: pointer; }
.pwf .pwf__group:hover { background: none !important; transform: none !important; }
.pwf .pwf__group .pw-myflights__groupMeta { display: none; }
.pwf .pwf__group .pw-myflights__groupHead { order: 2; justify-content: flex-end; padding: 8px 4px 0; background: none; border: 0; }
.pwf .pwf__leg { padding: 0; border: 0; background: none; }
.pwf .pwf__leg > :not(.pwt):not(.pwt__link) { margin-top: 12px; }
.pwf__empty { display: grid; justify-items: center; gap: 8px; padding: 56px 16px; text-align: center; border-radius: 24px; border: 1px dashed var(--border); }
.pwf__empty h2 { margin: 8px 0 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.pwf__empty p { margin: 0 0 12px; max-width: 42ch; color: var(--muted); line-height: 1.5; }

/* ----- flight detail ----- */
.pwd { padding: 22px 0 96px; }
.pwd__wrap { max-width: 780px; }
.pwd__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pwd__back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.pwd__back:hover { color: var(--text); }
.pwd__actions { display: flex; gap: 8px; }
.pwd__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* ticket header carries the visible title */
.pwd__legs { display: grid; gap: 26px; }
.pwd .pwd__leg { padding: 0; border: 0; background: none; }
.pwd .pwd__leg > :not(.pwt) { margin-top: 14px; }
.pwd .pwd__leg > .pwt { margin-top: 0; }


/* ---------- spotlight, alignment, secondary blocks ---------- */
.pwt__when { align-self: start; }
.pwt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--tone) 22%, transparent), transparent 70%);
  transition: opacity 0.35s;
}
@media (hover: hover) { .pwt:hover::after { opacity: 1; } }

.pwt--mini { margin-top: 4px; }
.pwt--mini .pwt__route { margin-top: 10px; }

.pwf .pw-myflights__actionLinks, .pwd .pw-myflights__actionLinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pwf .pw-myflights__actionLink, .pwd .pw-myflights__actionLink {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--text);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  transition: background 0.25s, transform 0.25s var(--pw-ease);
}
.pwf .pw-myflights__actionLink:hover, .pwd .pw-myflights__actionLink:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-1px); }
.pwf .pw-myflights__actionLink--checkin, .pwd .pw-myflights__actionLink--checkin { background: var(--accent); border-color: transparent; color: #fff; }
.pwf .pw-advisory, .pwd .pw-advisory, .pwf .pw-myflights__transport, .pwd .pw-myflights__transport, .pwd .pw-myflights__inbound { border-radius: 18px; }
.pwf .pw-myflights__metaNote, .pwd .pw-myflights__metaNote { margin-top: 12px; font-size: 0.8rem; color: var(--muted2); }

@media (max-width: 520px) {
  .pwt__time small { display: block; margin: 2px 0 0; }
}
.pwt__time { white-space: nowrap; }
.pwt__link:hover, .pwt__link:active, .pwt__link:focus-visible, .pwt__link:hover * { text-decoration: none; } /* beats global a:hover underline */

/* Boarding pass flight picker (multi-select) */
.pw-bp-select { display: flex; justify-content: flex-end; margin-top: 6px; }
.pw-bp-select .pw-btn { min-height: 0; padding: 4px 10px; font-size: 0.8rem; }
.pw-bp-flight-item { border-radius: 12px; box-sizing: border-box; }
.pw-bp-flight-item.is-selected { border-color: rgba(124, 92, 255, 0.55); background: rgba(124, 92, 255, 0.1); }
.pw-bp-flight-item__check { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.pw-bp-flight-item__dateInput { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 0.85rem; color-scheme: dark; }
.pw-bp-error { min-height: 1.2em; margin: 0; color: #ff8a8a; font-size: 0.85rem; text-align: center; }

/* Home: direct-answer + FAQ blocks (visible content that backs the FAQPage JSON-LD) */
.pwh__answer { margin-top: clamp(48px, 8vw, 96px); max-width: 820px; }
.pwh__answer p { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--text); }
.pwh__faq { margin-top: clamp(48px, 8vw, 96px); max-width: 820px; }
.pwh__faqItem { border-top: 1px solid var(--border); padding: 16px 0; }
.pwh__faqItem:last-child { border-bottom: 1px solid var(--border); }
.pwh__faqItem summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.pwh__faqItem p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; max-width: 62ch; }
