/* ============================================================
   Interior pages — shared layout on top of modern.css
   Solid (in-flow) header, light page heroes.
   ============================================================ */

/* page hero / banner */
.phero { padding: clamp(46px, 7vw, 88px) 0 clamp(34px, 5vw, 54px); background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.phero--plain { background: var(--bg); border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 22px; }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.phero .ey { margin-bottom: 18px; }
.phero h1 { font-size: clamp(34px, 5.6vw, 76px); font-weight: 800; letter-spacing: -0.035em; max-width: 18ch; }
.phero h1 em { font-style: normal; color: var(--accent); }
.phero__sub { color: var(--ink-soft); font-size: clamp(17px, 1.8vw, 21px); max-width: 56ch; margin-top: 20px; }
.phero__stats { display: flex; gap: clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.phero__stat .v { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.phero__stat .v .u { color: var(--accent); }
.phero__stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }

/* generic section */
.psec { padding: clamp(50px, 7vw, 92px) 0; }
.psec--alt { background: var(--bg-2); }
.psec__head { margin-bottom: 40px; max-width: 60ch; }
.psec__head .ey { margin-bottom: 14px; }
.psec__head h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.psec__head p { color: var(--ink-soft); font-size: 18px; margin-top: 14px; }

/* filter bar */
.filter { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }
.filter__search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 16px; }
.filter__search input { border: 0; outline: 0; font-family: var(--sans); font-size: 16px; width: 100%; color: var(--ink); background: none; }
.filter__search .mono { color: var(--ink-faint); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 0.6em 1em; border-radius: 30px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .14s; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:not(.on):hover { border-color: var(--ink); }

/* route ledger list */
.ledger { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.lrow { display: grid; grid-template-columns: 52px 1fr 90px 96px 150px 26px; align-items: center; gap: 18px; padding: 17px 24px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); transition: background .14s; }
.lrow:first-child { border-top: 0; }
.lrow:hover { background: var(--bg-2); }
.lrow__i { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.lrow__pair { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; font-size: clamp(16px, 1.8vw, 20px); letter-spacing: -0.02em; }
.lrow__pair .arrow { color: var(--accent); }
.lrow__pair .code { font-size: 10px; }
.lrow__days, .lrow__trend { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); text-align: right; }
.lrow__trend.up { color: var(--accent); }
.lrow__cost { font-weight: 700; font-size: clamp(16px, 1.8vw, 20px); text-align: right; letter-spacing: -0.02em; }
.lrow__cost .cur { color: var(--ink-faint); font-size: 0.7em; font-weight: 600; }
.lrow__go { text-align: right; color: var(--ink-faint); font-family: var(--mono); }
.lrow:hover .lrow__go { color: var(--accent); }
.ledger__empty { padding: 40px 24px; text-align: center; font-family: var(--mono); font-size: 14px; color: var(--ink-faint); }
@media (max-width: 760px) {
  .lrow { grid-template-columns: 34px 1fr auto; gap: 12px; }
  .lrow__days, .lrow__trend, .lrow__go { display: none; }
  .lrow__pair .code { display: none; }
}

/* country grid */
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ctile { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: transform .16s, box-shadow .16s, border-color .16s; }
.ctile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.ctile__code { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px; color: #fff; flex: none; letter-spacing: 0.02em; }
.ctile__nm { display: block; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; line-height: 1.1; }
.ctile__meta { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 3px; }
@media (max-width: 860px) { .cgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cgrid { grid-template-columns: 1fr; } }

/* rank table */
.ranktabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.rank { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.rank__row { display: grid; grid-template-columns: 56px 1fr 120px 130px; align-items: center; gap: 18px; padding: 16px 24px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .14s; }
.rank__row:first-child { border-top: 0; }
.rank__row:hover { background: var(--bg-2); }
.rank__row--head { background: var(--bg-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.rank__row--head:hover { background: var(--bg-2); }
.rank__pos { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--accent); }
.rank__nm { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.rank__nm .arrow { color: var(--accent); }
.rank__nm .code { font-size: 10px; }
.rank__bar { display: flex; align-items: center; gap: 10px; }
.rank__track { flex: 1; height: 7px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.rank__fill { height: 100%; background: linear-gradient(90deg, var(--accent), oklch(0.62 0.16 264)); border-radius: 4px; }
.rank__val { text-align: right; font-weight: 700; letter-spacing: -0.02em; }
.rank__val .cur { color: var(--ink-faint); font-size: 0.7em; font-weight: 600; }
.col-head .num { text-align: right; }
@media (max-width: 700px) {
  .rank__row { grid-template-columns: 40px 1fr 100px; gap: 12px; padding-inline: 18px; }
  .rank__bar { display: none; }
}

/* prose */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 32px 0 10px; }
.prose p { color: var(--ink-2); font-size: 18px; line-height: 1.6; margin: 0 0 18px; }
.prose ul { padding: 0; margin: 0 0 18px; list-style: none; display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 28px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.prose li .mk { position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.prose a { color: var(--accent); }
.prose__lead { font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.35; margin-bottom: 28px; }

/* two-col layout for prose pages */
.docpage { display: grid; grid-template-columns: 200px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 90px; display: grid; gap: 4px; }
.toc a { text-decoration: none; color: var(--ink-faint); font-size: 14px; font-weight: 500; padding: 7px 0; border-left: 2px solid var(--line); padding-left: 14px; transition: all .14s; }
.toc a:hover, .toc a.on { color: var(--ink); border-color: var(--accent); }
@media (max-width: 820px) { .docpage { grid-template-columns: 1fr; } .toc { display: none; } }

/* feature anatomy (inside page) */
.anat { display: grid; gap: 18px; }
.anat__item { display: grid; grid-template-columns: 64px 1fr; gap: 24px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 30px 32px; align-items: start; }
.anat__letter { width: 52px; height: 52px; border-radius: 13px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.anat__item h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; }
.anat__item p { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 16px; max-width: 60ch; }
.anat__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.anat__tags span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--accent); background: var(--accent-t); padding: 5px 10px; border-radius: 20px; }
@media (max-width: 600px) { .anat__item { grid-template-columns: 1fr; gap: 16px; } }

/* CTA strip reused */
.strip { background: var(--ink); border-radius: clamp(18px, 3vw, 28px); padding: clamp(40px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.strip h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; max-width: 20ch; }
.strip p { color: oklch(1 0 0 / 0.7); margin-top: 10px; max-width: 44ch; }
.strip .btn { background: #fff; color: var(--ink); }
.strip .btn:hover { background: var(--accent); color: #fff; }

/* Gate Notes signup (strip form + lounge block form) */
.gns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gns input[type="email"] { font-family: var(--sans); font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 16px; min-width: 240px; flex: 1 1 240px; }
.gns input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gns .btn { border: 0; cursor: pointer; font-size: 16px; white-space: nowrap; }
.gns .gotcha { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.gns-small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; margin-top: 12px; }
.strip .gns-small { color: oklch(1 0 0 / 0.45); }

/* Sticky mobile CTA bar (lounge pages only) */
.stickycta { display: none; }
@media (max-width: 760px) {
  .stickycta { display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: #fff; border-top: 1.5px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px oklch(0 0 0 / 0.07); }
  .stickycta .btn { display: block; text-align: center; width: 100%; }
  body:has(.stickycta) { padding-bottom: 72px; }
}
