.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* No hero band on this page: the passage tracking card comes first, under the fixed header. */
.page-body-first { padding-top: calc(var(--header-h) + clamp(20px, 3vw, 40px)); }
.page-body-first .passage-band { margin-top: 0; }
.page-body-first .passage-band + .calc-layout { margin-top: 26px; }

.tariff-note { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.tariff-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }

/* ---------- layout ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.calc-main { padding: clamp(20px, 2.6vw, 34px); }
.calc-aside { position: sticky; top: calc(var(--header-h) + 14px); }
.calc-block + .calc-block { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--border); }

.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 18px; }

/* segmented radio control */
.seg-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg-group legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--border); }
.seg label { flex: 1; min-width: 0; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 40px; height: 100%;
  padding: 6px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--text-2);
  transition: background .2s, color .2s, box-shadow .2s;
}
.seg input:checked + span { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(16, 28, 48, .1), 0 0 0 1px var(--border); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }

/* fee tables */
.fee-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fee-table + .fee-table, .fee-grid, .fee-grid + .fee-table, .fee-scroll + .fee-grid, .calc-notice + .fee-grid { margin-top: 18px; }
.fee-table th {
  padding: 10px 10px; text-align: left; white-space: nowrap;
  font-size: var(--fs-label); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.fee-table td { padding: 10px; border-bottom: 1px solid #eef1f6; color: var(--text); vertical-align: middle; }
.fee-table tbody tr { transition: background .15s; }
.fee-table tbody tr:hover { background: #f7f9fc; }
.fee-table tbody tr.is-on { background: #f1f6ff; }
.fee-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.fee-table .chk { width: 40px; padding-right: 0; }
.fee-table .chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); cursor: pointer; display: block; }
.fee-table tfoot td { border-bottom: 0; font-weight: 700; color: var(--text-2); padding-top: 12px; }
.fee-table tfoot tr.total td { padding-top: 4px; font-size: 16px; font-weight: 800; color: var(--blue); }
#fpiTable { min-width: 620px; }
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.calc-notice {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: #fff8eb; border: 1px solid #f5dfb3; color: #8a5a00; font-size: 13.5px; font-weight: 600;
}

/* summary */
.calc-summary { padding: 24px; }
.summary-empty, .summary-hint { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.summary-hint { margin-top: 12px; font-size: 13px; }
.summary-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.summary-table th { padding: 6px 0; font-size: var(--fs-label); font-weight: 800; letter-spacing: .08em; color: var(--text-3); text-align: left; }
.summary-table td { padding: 9px 0; border-top: 1px solid #eef1f6; }
.summary-table .num { text-align: right; padding-left: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-table .primary { font-weight: 800; color: var(--text); }
.summary-table .secondary { color: var(--text-3); font-size: 13px; }
.summary-total {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--navy); color: #fff;
}
.summary-total span { font-size: var(--fs-label); font-weight: 800; letter-spacing: var(--track); color: rgba(255, 255, 255, .7); }
.summary-total b { font-size: 18px; font-variant-numeric: tabular-nums; text-align: right; }
.grand { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px 0; font-size: 13px; }
.grand span { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--text-3); }
.grand b { font-variant-numeric: tabular-nums; }
.rate-field { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.rate-field small { font-size: 12px; color: var(--text-3); }
.calc-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.calc-downloads .btn { gap: 8px; }
.calc-downloads svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; }

/* passage tracking band */
.passage-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  margin-top: 26px; padding: clamp(28px, 4vw, 56px);
  border-radius: 28px; color: var(--ink);
  background: radial-gradient(700px 420px at 80% 30%, rgba(47, 124, 255, .25), transparent 65%), linear-gradient(150deg, #0b2142, #050e1d 75%);
  box-shadow: 0 30px 70px rgba(6, 16, 28, .22);
}
.passage-copy .lead { margin-top: 16px; max-width: 30em; }
.passage-form { display: grid; gap: 14px; padding: clamp(20px, 2.4vw, 28px); border-radius: 20px; background: #fff; color: var(--text); }
.passage-form .btn { width: 100%; }
.passage-msg { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; background: #fff3f3; color: #b4232a; border: 1px solid #f6c9cb; }
.passage-msg.ok { background: #ecfdf3; color: #15803d; border-color: #bbf7d0; }

/* notes + weather */
.calc-extra { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; margin-top: 26px; align-items: stretch; }
.calc-notes ol { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.calc-weather { overflow: hidden; display: flex; flex-direction: column; }
.weather-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px) 16px; }
.weather-head .section-title { margin-bottom: 4px; }
.weather-head .muted { font-size: 13.5px; }
.weather-spots { display: flex; gap: 6px; flex-wrap: wrap; }
.weather-spots button {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--text-2); transition: background .2s, color .2s, border-color .2s;
}
.weather-spots button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
#weatherFrame { display: block; width: 100%; flex: 1; min-height: 420px; border: 0; background: #0b1b33; }

@media (max-width: 1100px) {
  .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .calc-aside { position: static; }
  .calc-extra, .passage-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .calc-inputs, .calc-options, .fee-grid, .calc-downloads { grid-template-columns: 1fr; }
  #weatherFrame { min-height: 340px; }
}
