/* The flight compensation checker (claims.py, assets/compensation.js), on top of routes.css and guides.css: one part
   at a time, as the app's new flight. The contrail fills over the parts' names; each part is a card of tiles (a pixel
   label over its words, picked: a coral fill and a square pixel); beside it the receipt (assets/receipt.css) prints a
   line for each answer, and on the last part the amount, the stamp and the two contrails. Then the claim letter. */
.flow { scroll-margin-top: 88px; }
.flow-head { display: grid; gap: 12px; margin: 0 0 24px; }
.flow .contrail { position: relative; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.flow .contrail .fill { position: absolute; inset: 0 auto 0 0; display: grid; grid-template-rows: repeat(4, 1fr); border-radius: 999px;
  overflow: hidden; transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.flow .contrail i:nth-child(1) { background: var(--coral); } .flow .contrail i:nth-child(2) { background: var(--crimson); }
.flow .contrail i:nth-child(3) { background: var(--maroon); } .flow .contrail i:nth-child(4) { background: var(--plum); }
.flow .parts { display: grid; grid-template-columns: repeat(var(--parts, 5), minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.flow .parts button { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 0; border: 0; background: none; color: var(--muted);
  font: 500 14px/1.3 var(--sans); text-align: left; cursor: pointer; }
.flow .parts button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow .parts button::before { content: attr(data-n); flex: none; font: 400 11px/1 var(--pixel); color: var(--muted); }
.flow .parts button[aria-current="step"] { color: var(--ink); font-weight: 650; }
.flow .parts button[aria-current="step"]::before { color: var(--coral); }
.flow .parts button.done::before { content: ""; width: 8px; height: 8px; background: var(--coral); }
.flow .parts button:disabled { opacity: .5; cursor: default; }
.flow .parts button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.flow-stage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.flow-card { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
.flow-card h2 { margin: 4px 0 6px; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.flow-card h2:focus { outline: none; }
.flow-card .sub { margin: 0 0 22px; color: var(--muted); text-wrap: pretty; }
.flow-card .places { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.flow-card .places .arrow { padding-bottom: 13px; color: var(--muted); font: 600 18px/1 "Geist Mono", ui-monospace, monospace; }
.flow-card .airport, .letter label { position: relative; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.flow-card input[type=text], .letter input, .letter textarea { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: var(--raised-2); color: var(--ink); font: 500 16px/1.3 var(--sans); }
.letter textarea { height: auto; padding: 10px 14px; resize: vertical; }
.flow-card input:focus-visible, .letter input:focus-visible, .letter textarea:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.suggest { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; margin: 6px 0 0; padding: 6px; list-style: none;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--raised-2); max-height: 340px; overflow-y: auto; }
.suggest li { display: grid; gap: 2px; padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.suggest li b { color: var(--ink); font-weight: 600; font-size: 15px; }
.suggest li span { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.suggest li.on, .suggest li:hover { background: rgba(255, 255, 255, .06); }
.suggest li.none { cursor: default; color: var(--muted); font-size: 14px; }
.flow-card .ask { margin: 24px 0 0; }
.flow-card .places + .ask { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.flow-card .ask .q { margin: 0 0 10px; color: var(--ink); font-weight: 600; text-wrap: pretty; }
.flow-card .hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; text-wrap: pretty; }

.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pick { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--raised-2); color: #D9D4D2; font: 500 15px/1.35 var(--sans); text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s; }
.pick:hover { border-color: var(--muted); }
.pick:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.pick .code { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 400 12px/1.2 var(--pixel); letter-spacing: .06em;
  text-transform: uppercase; }
.pick .code::before { content: ""; flex: none; width: 8px; height: 8px; border: 1px solid var(--line-strong); }
.pick[aria-pressed="true"] { border-color: var(--coral); background: #2A1518; color: var(--ink); }
.pick[aria-pressed="true"] .code { color: var(--coral); }
.pick[aria-pressed="true"] .code::before { border-color: var(--coral); background: var(--coral); }
.picks[data-count="2"], .picks[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.picks[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.picks.big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.picks.big .pick { min-height: 136px; padding: 20px 18px; }
.picks.big .art { display: flex; align-items: flex-end; height: 40px; margin: 0 0 4px; }
.picks.big strong { color: var(--ink); font-size: 18px; line-height: 1.25; font-weight: 600; }

.flow-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.flow .btn { height: 46px; border-radius: 8px; border: 0; cursor: pointer; }
.flow .btn-ghost { border: 1px solid var(--line-strong); }
.flow .btn:disabled { opacity: .4; cursor: default; transform: none; }
.flow .btn[aria-disabled="true"] { opacity: .55; }
.flow .need { margin: 12px 0 0; color: var(--brand-ink); font-size: 14px; text-align: right; }

/* the last part: the answer, why, then the letter */
.flow-card .outcome { margin: 4px 0 14px; font-size: 26px; line-height: 1.2; }
.outcome.yes { color: #7EE2A8; } .outcome.weak { color: #F2C66D; } .outcome.no, .outcome.out { color: var(--brand-ink); }
.flow-card .why { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; color: #D9D4D2; }
.flow-card .why li { position: relative; padding-left: 18px; text-wrap: pretty; }
.flow-card .why li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--muted); }
.flow-card .why li.warn { color: #F2C66D; }
.flow-card .why li.warn::before { background: #F2C66D; }
.flow-card .keep { margin: 0 0 8px; color: var(--ink); font-weight: 600; }
.flow-card .extra { margin: 6px 0 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.letter { margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.letter h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.01em; }
.letter .note { margin: 0 0 16px; color: var(--muted); }
.letter .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 0 0 16px; }
.letter .wide { grid-column: 1 / -1; }
.letter .check-en { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; }
.letter .check-en input { width: 18px; height: 18px; accent-color: var(--coral); }
.letter .text { min-height: 280px; font: 400 15px/1.55 var(--sans); white-space: pre-wrap; }
.letter .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; }

/* the receipt beside the parts: the lines print as you answer, the amounts wait, the stamp lands at the end */
.flow-side { position: sticky; top: 96px; display: grid; gap: 14px; }
.flow-side .receipt-wrap { width: 100%; }
.flow-side .receipt .item.info { font-size: 13px; }
.flow-side .receipt .item.info b { min-width: 0; font-weight: 500; white-space: normal; text-align: right; text-wrap: balance; }
.flow-side .receipt .item.info .who { flex: none; color: #6E5468; }
.flow-side .receipt .item.wait { opacity: .4; }
.flow-side .receipt .item.wait b { letter-spacing: .12em; }
.flow-side .stamp:not(.on) { opacity: 0; }
.flow-side .private { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .flow-card { animation: flow-in .3s ease both; }
  .flow-side .receipt .print { animation: flow-print .45s steps(6) both; }
  .flow-side .stamp.on { animation: flow-stamp .35s cubic-bezier(.2, 1.6, .4, 1) both; }
}
@keyframes flow-in { from { opacity: 0; transform: translateX(12px); } }
@keyframes flow-print { from { clip-path: inset(0 0 100% 0); } }
@keyframes flow-stamp { from { opacity: 0; transform: rotate(6deg) scale(1.8); } }

@media (max-width: 900px) {
  .flow-stage { grid-template-columns: 1fr; }
  .flow-side { position: static; max-width: 420px; }
  .flow .parts { display: flex; gap: 14px; }
  .flow .parts li { flex: none; }
  .flow .parts li:has([aria-current="step"]) { flex: 1; min-width: 0; }
  .flow .parts button:not([aria-current="step"]) span { display: none; }
}
@media (max-width: 600px) {
  .flow-card { padding: 20px; }
  .flow-card .places { grid-template-columns: 1fr; }
  .flow-card .places .arrow { display: none; }
  .picks[data-count="3"], .picks.big { grid-template-columns: 1fr; }
  .picks.big .pick { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; min-height: 0; }
  .picks.big .art { grid-row: span 2; margin: 0; }
  .letter .fields { grid-template-columns: 1fr; }
  .flow-nav .btn { flex: 1; justify-content: center; }
}

.claims .steps { display: grid; gap: 10px; max-width: 760px; margin: 0 0 14px; padding-left: 22px; color: #D9D4D2; }
.claims .points.plain { grid-template-columns: 1fr; max-width: 760px; gap: 8px; list-style: disc; padding-left: 22px; }
.claims .points.plain li { display: list-item; padding: 0; border: 0; background: none; color: #D9D4D2; }
.claims .sources { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.claims .sources a, .claims .method a { color: var(--brand-ink); }
.claims .amounts td, .claims .amounts th { white-space: normal; }

/* free, no sign-up, Wingman takes 0%: pixel tags under the question (assets/receipt.css) */
.claims .hero .tags { margin: 22px 0 0; }

/* the ads between the page's parts (routes.ad_slot): their label stays the plain small one of the route pages, not
   receipt.css's pixel tag, which has the same class name */
.claims .ad .tag { display: block; height: auto; padding: 0; background: none; box-shadow: none; clip-path: none; white-space: normal; }
.claims .ad .tag::before { content: none; }

/* the claim letter as a template (claims.sample): a sheet of the receipt's paper */
.claims .letter-sample { max-width: 760px; margin: 0; padding: 26px 30px; background: #FBF6F3; color: #2D142C; font: 400 15px/1.6 var(--sans);
  white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) { .claims .letter-sample { padding: 20px; } }
