/* tollmagkano.thecloudgrid.com: Toll Magkano product site. Mobile first. Two looks: light (the default since 2 Dec 2026) and dark (the visitor's
   choice, <html data-theme="dark">; the head script applies it before the first paint). The rules below are written for the dark look's navy
   surfaces; the "light look" block near the end lightens them.
   Look = the app: deep navy (#172947) bands, the brand green gradient for buttons and highlights, and the two
   RFID colours (Autosweep amber, Easytrip blue, the app's own Theme.swift values). Wordmark and headings in Barlow
   Semi Condensed ExtraBold, body in Barlow. */
@font-face { font-family: "Barlow Semi Condensed"; src: url("/assets/fonts/bsc-800.woff2?v=b485f61327") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2?v=3e12d2aef2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff2?v=c65f327dc3") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-700.woff2?v=3e20bb02bc") format("woff2"); font-weight: 700 900; font-display: swap; }
:root {
  --navy: #172947;
  --navy-2: #0d1a33;
  --navy-3: #22365e;
  --green: #249e7a;            /* focus ring, dots, map. Never behind white text */
  --green-fill: #178062;       /* flat buttons, selected class thumb (white on it is 4.9:1) */
  --green-deep: #0f6652;
  --green-ink: #0f6652;        /* links and text (6.9:1 on paper) */
  --mint: #7ee8c6;             /* links on navy (9.9:1) */
  --on-navy: #f2f6fc;
  --on-navy-2: #c3cde0;
  --on-navy-3: #9fb0cc;
  --easytrip: #218cdb;
  --autosweep: #f28c1f;
  --easytrip-ink: #0b63a8;
  --autosweep-ink: #8a4a00;
  --easytrip-bg: rgba(33, 140, 219, .12);
  --autosweep-bg: rgba(242, 140, 31, .15);
  --paper: #f3f6fa;
  --card: #ffffff;
  --ink: #101c33;
  --ink-2: #36435e;            /* 9.1:1 on paper */
  --ink-3: #55627c;            /* 5.7:1 on paper */
  --line: #d4dce9;             /* hairlines (decor) */
  --field-line: #7c8aa5;       /* borders of controls (3.2 to 3.5:1) */
  --shadow: 0 1px 2px rgba(16, 28, 51, .06), 0 14px 34px rgba(16, 28, 51, .08);
  --radius: 20px;
  --wrap: 1140px;
  --head: "Barlow Semi Condensed", "Barlow", "Arial Narrow", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  color-scheme: light;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0a1325;
    --card: #12203a;
    --ink: #eef3fb;
    --ink-2: #c3cde0;
    --ink-3: #9aa7c0;
    --line: #223357;
    --field-line: #6b7da3;
    --green-ink: #4fd1a8;
    --easytrip-ink: #62b8f6;
    --autosweep-ink: #ffb25c;
    --easytrip-bg: rgba(33, 140, 219, .2);
    --autosweep-bg: rgba(242, 140, 31, .2);
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 16px 36px rgba(0, 0, 0, .4);
}
*, *::before, *::after { box-sizing: border-box; }
/* 72 px of clearance under the 56 px header for anchors, scrollIntoView and keyboard focus (padding on the scroller only: adding scroll-margin on [id] too would double it to 144).
   While focus is inside the header itself the padding is 0: the header cannot hide itself, and with the padding on, Tab into a header control throws the page up by hundreds of px. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--navy-2); }
html:has(.top:focus-within) { scroll-padding-top: 0; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
main:focus { outline: none; }
a, button, summary, label, [role="button"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.ss-lock, html.pop-open, html.menu-open { overflow: hidden; overscroll-behavior: none; scrollbar-gutter: stable; } /* gutter: a classic scrollbar going away must not shift the page */
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.06; }
h1, h2 { font-family: var(--head); font-weight: 800; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.65rem, 5.6vw, 3rem); }
h3 { font-family: var(--text); font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 720px) { .wrap { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green-fill); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.peso { font-variant-numeric: tabular-nums; }

/* ── header (always navy): logo, one small action, a menu button; the inline nav only on wide screens ── */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top .wrap { display: flex; align-items: center; gap: 6px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; }
.brand img { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.nav { display: none; margin-left: auto; gap: 22px; }
.nav a { position: relative; color: var(--on-navy-2); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.top .act { margin-left: auto; }
.app-link { display: none; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: #fff; }
.menu summary::-webkit-details-marker { display: none; }
/* the two-bar hamburger (the empty box is the middle), turning into a cross when the menu is open */
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; background: #fff; transition: transform .2s ease-out; }
.bars::before { top: -4px; } .bars::after { top: 4px; }
.menu[open] .bars::before { transform: translateY(4px) rotate(45deg); } .menu[open] .bars::after { transform: translateY(-4px) rotate(-45deg); }
.top :focus-visible { outline-offset: -3px; } /* an outer ring on the 44 px button would be cut by the top of the screen and the bar's corner */
.menu-scrim { display: none; }
.menu-sheet { position: absolute; z-index: 2; left: 0; right: 0; top: 100%; display: grid; padding: 4px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--navy-2); border-bottom: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 22px 40px rgba(0, 0, 0, .4); }
.menu-sheet a { display: flex; align-items: center; min-height: 56px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.menu-sheet a:last-child { border-bottom: 0; }
@media (min-width: 900px) { .nav { display: flex; } .menu { display: none; } .top .act { margin-left: 8px; } .top .wrap { height: 62px; } .brand { font-size: 1.3rem; } }

/* ── buttons and pills ──────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 700 1rem/1 var(--text); letter-spacing: .02em; text-decoration: none; cursor: pointer; color: #fff;
  background: var(--green-fill); transition: transform .08s ease-out; }
.btn.ghost { color: var(--ink); background: transparent; border: 1.5px solid var(--field-line); box-shadow: none; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.btn:active { transform: scale(.98); }
/* the App Store badge (unmodified artwork, only its height changes) and the pre-launch status line / box (plain text, never a button) */
.badge { display: inline-block; border-radius: 12px; }
.badge img { height: var(--bh, 54px); width: auto; }
.status-line { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--st-ink, var(--ink-2)); font-size: .94rem; line-height: 1.35; }
.status-line svg { flex: none; width: 16px; height: 16px; }
.status-line span { text-wrap: balance; }
.status-box { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 0 12px; border: 1px dashed var(--field-line); border-radius: 8px; color: var(--st-ink, var(--ink-2)); font-size: .94rem; line-height: 1.3; }
.status-box svg { flex: none; width: 16px; height: 16px; }
.final, .foot { --st-ink: var(--on-navy-2); }
html.android .apple { display: none !important; }
.only-android { display: none; }
html.android .only-android { display: block; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.a { color: var(--autosweep-ink); background: var(--autosweep-bg); }
.chip.e { color: var(--easytrip-ink); background: var(--easytrip-bg); }
.hero .chip.a, .page-hero .chip.a { color: #ffbf73; background: rgba(242, 140, 31, .2); }
.hero .chip.e, .page-hero .chip.e { color: #79c4fa; background: rgba(33, 140, 219, .24); }
.calc .chip.a { color: var(--autosweep-ink); background: var(--autosweep-bg); }
.calc .chip.e { color: var(--easytrip-ink); background: var(--easytrip-bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── hero: a short headline, then the calculator, then the map ── */
.hero { position: relative; overflow: hidden; color: var(--on-navy); padding: 14px 0 26px;
  background: radial-gradient(70% 60% at 12% -8%, rgba(60, 100, 170, .55), transparent 62%), radial-gradient(50% 50% at 100% 100%, rgba(36, 158, 122, .22), transparent 70%),
    linear-gradient(165deg, var(--navy-3) 0%, var(--navy) 42%, var(--navy-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.calc, .hero-copy, .trip-map { min-width: 0; }
.hero h1 { margin-top: 2px; color: #fff; font-size: clamp(2rem, 8.6vw, 4rem); text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.hero .sub { margin-top: 4px; color: var(--on-navy-2); font-size: 1rem; line-height: 1.35; }
.hero.trip-hero { padding-top: 22px; }

/* ── the trip card: one markup, two looks. These variables are the white card (desktop); the phone block rebinds them for the app's navy card ── */
.calc {
  --c-bg: var(--card); --c-ink: var(--ink); --c-ink-2: var(--ink-2); --c-ink-3: var(--ink-3); --c-line: var(--line); --c-inset: var(--paper);
  --c-field: var(--field-line); --c-a: var(--autosweep-ink); --c-e: var(--easytrip-ink); --c-lbl: var(--ink-3); --c-link: var(--green-ink);
  --c-tile: var(--paper); --c-tile-ink: var(--ink); --t-a: var(--autosweep-ink); --t-e: var(--easytrip-ink);
  --c-btn: var(--paper); --c-press: rgba(16, 28, 51, .06); --c-tip: var(--paper);
  position: relative; z-index: 2; background: var(--c-bg); color: var(--c-ink); border-radius: 22px; padding: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
}
[data-theme="dark"] .calc { --c-press: rgba(255, 255, 255, .07); }
.calc button { font-family: var(--text); }
/* places panel: two fields on a spine (ring dot, line, pin dot), the road bar below a hairline */
.calc .calc-panel { padding: 8px; border-radius: 16px; background: var(--c-inset); }
.calc .calc-fields { position: relative; }
.calc .fld { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; width: 100%; min-height: 60px; margin: 0; padding: 8px 52px 8px 44px; text-align: left; border: 0; border-radius: 12px; background-color: transparent; color: var(--c-ink); cursor: pointer; }
.calc .fld:active { background-color: var(--c-press); }
.calc .fld:focus-visible { outline-width: 2.5px; outline-offset: -6px; }   /* keyboard ring inside the field (an outer one ran through the spine node and under the swap button) */
.calc .fld[data-w="to"] { background-image: linear-gradient(var(--c-line), var(--c-line)); background-size: calc(100% - 44px - 56px) 1px; background-position: 44px top; background-repeat: no-repeat; }
.calc .fld::before { content: ""; position: absolute; left: 13px; top: calc(50% - 7px); width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; }
.calc .fld[data-w="from"]::before { border: 2.5px solid var(--green); background: var(--c-inset); }
.calc .fld[data-w="to"]::before { background: var(--green); }
.calc .fld::after { content: ""; position: absolute; left: 19px; width: 2px; background: var(--green); }
.calc .fld[data-w="from"]::after { top: calc(50% + 7px); bottom: 0; }
.calc .fld[data-w="to"]::after { top: 0; bottom: calc(50% + 7px); }
.calc .fl-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 18px; }
.calc .fl { flex: none; font-size: 14px; font-weight: 700; color: var(--c-lbl); }
.calc .fld small { position: relative; min-width: 0; padding-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 18px; color: var(--c-ink-3); }
.calc .fld small::after { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: var(--c-field); }   /* "From | via Buendia", not "From via Buendia" */
.calc .fld small .dt { display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50%; vertical-align: middle; background: var(--autosweep); }   /* a plaza pick: the road's RFID dot, so "TPLEX" reads as a road and not as the place */
.calc .fld small .dt.e { background: var(--easytrip); }
.calc .fld b { display: block; font-size: 19px; line-height: 24px; font-weight: 700; text-wrap: balance; }
.calc .mag { position: absolute; right: 12px; width: 20px; height: 20px; color: var(--c-ink-3); }
.calc .fld[data-w="from"] .mag { top: calc(50% - 20px); }
.calc .fld[data-w="to"] .mag { top: calc(50% + 0px); }
/* the swap circle is 36 px to look at and 44 px to hit (::after), opaque so the divider never shows through it, and 12 px clear of both magnifiers */
.calc .swap { position: absolute; z-index: 1; right: 4px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin: -18px 0 0; padding: 0; border-radius: 50%; border: 1.5px solid var(--c-field); background: linear-gradient(rgba(36, 158, 122, .18), rgba(36, 158, 122, .18)), var(--c-inset); color: var(--c-link); cursor: pointer; }
.calc .swap::after { content: ""; position: absolute; inset: -6px; }
.calc .swap svg { width: 20px; height: 20px; }
.calc .swap:active { transform: scale(.94); }
html:not(.js) .calc .swap, html:not(.js) .calc .mag { display: none; }
html:not(.js) .calc .fld { pointer-events: none; }
.calc .rd { margin-top: 4px; padding: 12px 8px 4px; border-top: 1px solid var(--c-line); }
.calc .rd:empty { display: none; }
@media (max-width: 380px) { .calc .rd { padding-inline: 4px; } }   /* 8 px more bar on a 360 px phone, where the three road names of the Makati to Baguio trip just fit */
.nw { white-space: nowrap; }   /* a plaza name that must not break at its hyphen or slash (render.js nwName) */
/* the road bar: a capsule per road, each named above it when its name fits (--n, set by render.js on the capsule, is the bar width where it does; the name grows from 0 to
   13 px as the bar passes it, measured by the bar itself with container query units, and stays hidden where those are not supported) */
.calc .bar { display: flex; align-items: flex-end; gap: 3px; container-type: inline-size; }   /* flex-end: a capsule whose name does not fit has no name box, so every capsule must sit on the same bottom line, the names stand above their own capsule */
.calc .bar > span { flex: 1 1 0; min-width: 0; }
.calc .bar i { display: block; height: 8px; border-radius: 999px; }
.calc .bar .a i { background: var(--autosweep); }
.calc .bar .e i { background: var(--easytrip); }
.calc .bar em { display: block; height: 0; overflow: hidden; font: normal 600 0/18px var(--text); white-space: nowrap; }
.calc .bar .a em { color: var(--c-a); }
.calc .bar .e em { color: var(--c-e); }
@supports (width: 1cqw) { .calc .bar em { height: clamp(0px, (100cqw - var(--n, 9999px)) * 1000, 22px); font-size: clamp(0px, (100cqw - var(--n, 9999px)) * 1000, 13px); } }
.calc .rd-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; line-height: 18px; color: var(--c-ink); }
.calc .rd-ends span:last-child { text-align: right; }
.tchips { display: flex; gap: 8px; overflow-x: auto; margin: 10px -12px 0; padding: 0 12px 2px; scroll-snap-type: x proximity; scroll-padding-left: 12px; scrollbar-width: none; }
.tchips::-webkit-scrollbar { display: none; }
.tchip, .ss-trip { flex: none; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink-3); font-weight: 500; font-size: .95rem; cursor: pointer; scroll-snap-align: start; white-space: nowrap; }
.tchip .pl, .ss-trip .pl { color: var(--green-ink); font-weight: 700; }   /* the places stand out, the joining word stays quiet (owner, 2 Dec 2026) */
.tchip:active, .ss-trip:active { background: var(--paper); border-color: var(--green); }
.ss-tsec .tchips { margin-top: 0; padding-bottom: 4px; }
.ss-trip { background: var(--card); border-color: var(--field-line); font-size: 15px; }
@media (hover: hover) and (min-width: 900px) { .ss-trip:hover { background: var(--paper); } }
.hdr-badge { display: inline-flex; flex: none; border-radius: 8px; }
@media (min-width: 900px) { .hdr-badge { margin-left: 8px; } }
html:not(.js) .tchips { display: none; }
/* the chips are one row that scrolls sideways (owner, 2 Dec 2026: one line, never two). calc.js marks the side(s) with more chips (data-l, data-r): that edge
   fades out, and on a mouse a round arrow pages the row (.tc-arr, shown by calc.js only for a fine pointer that can hover) */
.tchips-w { position: relative; }
.tchips[data-r] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.tchips[data-l] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.tchips[data-l][data-r] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tc-arr { position: absolute; top: 6px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; background: var(--c-bg, var(--card)); color: var(--c-ink, var(--ink)); cursor: pointer; box-shadow: 0 4px 12px rgba(8, 20, 44, .16); }
.tc-arr[hidden] { display: none; }
.tc-arr.l { left: -6px; }
.tc-arr.r { right: -6px; }
.tc-arr:hover { border-color: var(--green); }
/* the result: total row with the class control, caption, the big total, two load tiles, road by road, sources, the estimate line */
.calc .calc-res { margin-top: 14px; }
/* the top of the result, centred: "Total toll", then the amount */
.calc .res-top { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0 2px; border: 0; }
.calc .res-lbl { margin-top: 0; padding: 0; font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--c-ink-2); }
/* under the load tiles (owner, 2 Dec 2026): the class pills and "Using just one account?" side by side; alone, the pills are centred */
.calc .res-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 10px; }
.calc .res-row.solo { grid-template-columns: auto; justify-content: center; }
.calc .res-row .one-q { justify-self: start; text-align: left; }
.calc .cls { display: inline-flex; flex: none; margin: 0; padding: 3px; border-radius: 999px; background: transparent; border: 1.5px solid var(--c-field); }
.calc .cseg { display: inline-flex; align-items: center; border-radius: 999px; }
html:not(.js) .calc .cls, html:not(.js) .calc .res-lbl { display: none; }
html:not(.js) .calc .res-top { min-height: 0; }
html:not(.js) .calc .res-cap { margin: 0; text-align: center; }
html:not(.js) .calc .res-cap::before { content: "Total toll. "; font-weight: 600; }
.calc .cls button { height: 34px; margin: 0; padding: 0 2px 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--c-ink-2); font: 700 14.5px/1 var(--text); cursor: pointer; }
.calc .cls .ci { display: grid; place-items: center; width: 30px; padding: 0 10px 0 4px; color: var(--c-ink-3); }
/* compact: the pills that are not selected show their number only, centred in a 36 px pill, and no (i) */
.calc .cls button[data-c][aria-pressed="false"] { min-width: 36px; padding: 0 12px; }
.calc .cls button[aria-pressed="false"] .cw, .calc .cls button[aria-pressed="false"] + .ci { display: none; }
.calc .cls button:active { transform: scale(.98); }
.calc .cls button:focus-visible { outline-offset: -3px; outline-color: var(--c-ink); }   /* inside the pill: an outer ring would cross the capsule's border */
.calc .cseg:has(> [aria-pressed="true"]) { background: var(--green-fill); }
.calc .cls button[aria-pressed="true"], .calc .cseg:has(> [aria-pressed="true"]) .ci { color: #fff; }
@supports not selector(:has(a)) { .calc .cls button[aria-pressed="true"] { background: var(--green-fill); padding-right: 10px; } }
.calc .res-cap { margin: 6px 0 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--c-ink-2); }
html.js .calc .res-cap { display: none; }   /* with the script the (i) tips say it */
.calc .res-total { margin: 0; text-align: center; }
/* the tips: a bubble in the card's flow (it pushes what is under it down, never covers the amount), its pointer under the button that opened it (--ax, calc.js) */
.calc .tip { position: relative; align-self: stretch; margin: 10px 0 0; padding: 11px 42px 12px 14px; border-radius: 14px; background: var(--c-tip); color: var(--c-ink); font-size: 14.5px; line-height: 20px; text-align: left; text-wrap: pretty; }
.calc .tip[hidden] { display: none; }
.calc .tip::before { content: ""; position: absolute; top: -5px; left: var(--ax, 50%); width: 11px; height: 11px; margin-left: -5.5px; background: var(--c-tip); transform: rotate(45deg); border-radius: 2px 0 0 0; }
.calc .tip p + p { margin-top: 6px; }
.calc .tip b { font-weight: 700; white-space: nowrap; }
.calc .tip-x { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--c-ink-2); cursor: pointer; }
.calc .tip-x:active { background: var(--c-press); }
.calc .tip.tip-in { animation: tipin .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes tipin { from { opacity: 0; transform: translateY(-4px); } }
.calc .res-total b { display: inline-block; padding: 0 10px; border-radius: 14px; font: 800 64px/64px var(--head); font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--c-ink); }   /* inline-block: the change flash paints the figure, not the whole card width */
.calc .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.calc .tiles.one { grid-template-columns: minmax(0, 1fr); }
.calc .tile { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 64px; padding: 8px 8px 8px 14px; border-radius: 16px; background: var(--c-tile); color: var(--c-tile-ink); }
.calc .tl { font-size: 14px; line-height: 20px; font-weight: 600; text-wrap: balance; color: var(--t-a); }
.calc .tv { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calc .tiles.one .tv { justify-content: flex-start; gap: 10px; }   /* a lone full-width tile: the badge sits beside the amount, not 250 px away */
.calc .tile.e .tl { color: var(--t-e); }
.calc .bdg { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font: normal 800 15px/1 var(--head); color: #0d1a33; background: var(--autosweep); }
.calc .tile.e .bdg { background: var(--easytrip); }
.calc .tile .peso { font: 800 26px/28px var(--head); font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--c-tile-ink); }
.calc .one-q { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 2px; border: 0; background: transparent; color: var(--c-link); font: 600 14.5px/20px var(--text); cursor: pointer; }
.calc .one-q span { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.calc .one-q svg { flex: none; }
.calc .res-h { margin: 22px 2px 0; font: 700 19px/24px var(--text); color: var(--c-ink); }
.calc .legs { list-style: none; margin: 4px 0 0; padding: 0; display: block; border: 0; }
.calc .legs li { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline; min-height: 64px; padding: 12px 2px; }
.calc .legs .ln-v { position: absolute; left: 6px; top: 32px; bottom: -16px; width: 2px; border-radius: 1px; opacity: .6; }   /* from under this road's dot to the top of the next one */
.calc .legs li:last-child .ln-v { display: none; }
.calc .legs .ln-v.a { background: var(--autosweep); }
.calc .legs .ln-v.e { background: var(--easytrip); }
.calc .legs li:last-child { border-bottom: 0; }
.calc .legs i { grid-row: 1 / span 2; align-self: start; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; }
.calc .ln-t, .calc .legs .peso { font-size: 17px; line-height: 22px; font-weight: 700; color: var(--c-ink); }
.calc .legs .peso { min-width: 0; text-align: right; }
.calc .ln-s { display: block; font-size: 14px; line-height: 20px; color: var(--c-ink-3); }
.calc .ln-r { font-size: 13px; line-height: 20px; font-weight: 600; text-align: right; }
.calc .ln-r.a { color: var(--c-a); }
.calc .ln-r.e { color: var(--c-e); }
.legs i.a, .cls-table i.a, .cls-sum i.a, .ss-it i.a { background: var(--autosweep); }
.legs i.e, .cls-table i.e, .cls-sum i.e, .ss-it i.e { background: var(--easytrip); }
.calc .res-src { margin: 4px 0 0; border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-ink-2); }
.calc .res-src summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 2px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; color: var(--c-link); }
.calc .res-src summary::-webkit-details-marker { display: none; }
.calc .res-src summary::after { content: "+"; flex: none; width: 24px; margin-right: -6px; text-align: center; font-size: 22px; font-weight: 600; line-height: 1; }
.calc .res-src[open] summary::after { content: "\2212"; }
.calc .res-src ul { list-style: none; margin: 0; padding: 0 2px 6px; display: grid; gap: 2px; }
.calc .res-src li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; font-size: 14px; line-height: 20px; color: var(--c-ink-2); }
.calc .res-src li b { color: var(--c-ink); }
.calc .res-src .sep { color: var(--c-ink-3); }
.calc .res-src a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-link); }
@media (max-width: 599.98px) { .calc .res-src li { display: block; } .calc .res-src .sep { display: none; } .calc .res-src a { display: flex; margin-top: -8px; } .calc .res-src ul { gap: 8px; } }
.calc .res-est { margin: 2px 2px 0; font-size: 14px; line-height: 20px; color: var(--c-ink-2); }
.calc .res-msg { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--c-inset); font-size: 16px; line-height: 22px; color: var(--c-ink); }   /* a message is a small panel, not a stray grey line (same place, no route, same junction, the failure) */
.calc .res-total + .res-msg { margin-top: 12px; }
.calc noscript .res-msg { margin-top: 12px; }
.calc .res-btns { display: flex; gap: 8px; margin-top: 12px; }
.calc .calc-act { display: flex; gap: 8px; margin-top: 14px; }
.calc .calc-act[hidden], html:not(.js) .calc .share { display: none; }
/* states: waiting for the toll data after a tap (a short beat first, so a quick answer never flashes it), the load failure, the total's flash when it changes */
.calc.is-loading > .calc-panel, .calc.is-loading > .calc-res > :not(.res-top):not(.res-row), .calc.is-loading > .tchips, .calc.is-loading > .tchips-w { opacity: .55; transition: opacity .2s linear .3s; }   /* the card keeps its colour; only what is waiting dims */
.calc .res-fail .res-msg { font-weight: 600; }
.calc .res-total.flash b { animation: flash .4s ease-out; }
.noanim .calc .res-total.flash b { animation: none; }
@keyframes flash { from { background-color: var(--c-flash, rgba(126, 232, 198, .3)); } to { background-color: rgba(126, 232, 198, 0); } }
/* a page opened from a shared link (html.q, set in the head for a complete from= and to=): the card shows one line ("Getting your trip...") and holds back everything else
   (the example result, road bar, route, share row, app door) until calc.js has drawn the real trip and takes q off. Held parts keep their room (visibility, not display),
   so the page does not jump. calc.js adds qw as soon as it runs: it owns the wait, the example never comes back, and the line says "Still loading" after 3.5 s; if the data
   fails it adds qf (the card shrinks to the failure line). Without the script (no qw) the *show animations bring the example back after 3.5 s, labelled by its hint, with no
   reduced-motion guard. */
.calc .calc-hold, .calc .hold-b { display: none; }
html.q .calc[data-main] .calc-hold { display: block; position: absolute; z-index: 1; top: 8px; left: 18px; right: 18px; margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; color: var(--c-ink-2); }
html.q .calc[data-main]:not(:has(> .calc-hint)) { padding-top: 39px; }   /* a card without a hint gets the slot as padding while it waits */
html.q.qf .calc[data-main]:not(:has(> .calc-hint)) { padding-top: 14px; }   /* the failure line has no slot above it: the same 14 px as the sides */
html.q.qw .calc[data-main] .hold-b { display: block; position: absolute; left: 0; top: 0; visibility: hidden; animation: qshow 0s linear 3.5s forwards; }
html.q.qw .calc[data-main] .hold-a { animation: qhide 0s linear 3.5s forwards; }
html.q:not(.qw) .calc[data-main] .calc-hold { animation: qhide 0s linear 3.5s forwards; }
html.q .calc[data-main] > :not(.calc-hold):not(.sr), html.q .calc-map .route { visibility: hidden; }
html.q:not(.qw) .calc[data-main] > :not(.calc-hold):not(.sr), html.q:not(.qw) .calc-map .route { animation: qshow 0s linear 3.5s forwards; }
html.q.qf .calc[data-main] .calc-hold, html.q.qf .calc[data-main] > .calc-panel, html.q.qf .calc[data-main] > .tchips-w { display: none; }
html.q.qf .calc[data-main] > .calc-res, html.q.qf .calc[data-main] > .nudge { visibility: visible; }
@media (max-width: 959.98px) { html.q.qf .trip-map { display: none; } }   /* a failed shared link: no route to show, and a blank base map under the failure line reads as a rendering bug */
.calc:has(.res-fail) .rd { opacity: .4; }   /* the example trip stays on the home card while the data is missing, but is no longer the answer */
/* the skeleton: while the card is held it is drawn empty, from its own boxes, so it looks like the card that is coming and not like a crash. The hidden example parts keep
   their room and stay hidden (a screen reader never meets the example trip); what shows is painted by pseudo-elements behind them (z-index -1) and by the parts that say
   nothing about a trip (the From and To labels, "Total toll", the road bar's capsules and the road dots, empty). Static: no shimmer. Without calc.js (no qw) it goes when the example does. */
html.q:not(.qf) .calc[data-main] :where(.calc-panel, .nudge, .res-total, .cls, .tchips, .legs li, .res-h, .fld b, .fl-top small) { position: relative; }
html.q:not(.qf) .calc[data-main] :where(.calc-panel, .nudge, .res-total, .cls, .tile, .tchips, .legs li, .res-h, .fld b, .fl-top small)::before,
html.q:not(.qf) .calc[data-main] :where(.legs li)::after { content: ""; position: absolute; z-index: -1; visibility: visible; border-radius: 8px; background: var(--c-line); }
html.q:not(.qf) .calc[data-main] :where(.fl, .res-lbl, .bar i, .legs i) { visibility: visible; }
html.q:not(.qf) .calc[data-main] .fld::before, html.q:not(.qf) .calc[data-main] .fld::after { visibility: visible; }   /* the ring, the pin and the line between them */
html.q:not(.qf) .calc[data-main] :where(.bar i, .legs i) { background: var(--c-line); }
html.q:not(.qf) .calc[data-main] :is(.calc-panel, .nudge)::before { inset: 0; border-radius: 16px; background: var(--c-inset); }
html.q:not(.qf) .calc[data-main] .cls::before { inset: -1.5px; border-radius: 999px; }
html.q:not(.qf) .calc[data-main] .tchips::before { left: 12px; top: 0; width: 96px; height: 44px; border-radius: 999px; box-shadow: 104px 0 0 var(--c-line), 208px 0 0 var(--c-line), 312px 0 0 var(--c-line); }   /* desktop only (phones have no chips): the example chips as one row of pills, so the card keeps its room and looks whole */
html.q:not(.qf) .calc[data-main] .res-total::before { left: 50%; top: 10px; width: 172px; height: 44px; margin-left: -86px; border-radius: 12px; }
html.q:not(.qf) .calc[data-main] .tile::before { inset: 0; border-radius: 16px; background: linear-gradient(var(--c-line), var(--c-line)) 14px 14px / 96px 12px no-repeat, linear-gradient(var(--c-line), var(--c-line)) 14px 34px / 72px 20px no-repeat, var(--c-inset); }
html.q:not(.qf) .calc[data-main] .legs li::before { left: 22px; top: 14px; width: 92px; height: 14px; }
html.q:not(.qf) .calc[data-main] .legs li::after { left: 22px; top: 40px; width: 150px; height: 10px; }
html.q:not(.qf) .calc[data-main] .res-h::before { left: 2px; top: 4px; width: 112px; height: 16px; }
html.q:not(.qf) .calc[data-main] .fld b::before { left: 0; top: 3px; width: 128px; height: 18px; }
html.q:not(.qf) .calc[data-main] .fl-top small::before { left: 8px; top: 4px; width: 96px; height: 10px; }
html.q:not(.qw):not(.qf) .calc[data-main] :where(.calc-panel, .nudge, .res-total, .cls, .tile, .tchips, .legs li, .res-h, .fld b, .fl-top small)::before,
html.q:not(.qw):not(.qf) .calc[data-main] :where(.legs li)::after { animation: qhide 0s linear 3.5s forwards; }
/* the same 3.5 s, without the script: what was grey while the card held (the road dots and capsules) gets its Autosweep and Easytrip colour back, and the
   spine (the .fld ring, line and pin, which are real parts of the card, not skeleton) simply stays */
html.q:not(.qw):not(.qf) .calc[data-main] :is(.bar .a i, .legs i.a) { animation: qdot-a 0s linear 3.5s forwards; }
html.q:not(.qw):not(.qf) .calc[data-main] :is(.bar .e i, .legs i.e) { animation: qdot-e 0s linear 3.5s forwards; }
@keyframes qshow { to { visibility: visible; } }
@keyframes qhide { to { visibility: hidden; } }
@keyframes qdot-a { to { background: var(--autosweep); } }
@keyframes qdot-e { to { background: var(--easytrip); } }
.calc .act.pri { background: var(--green-fill); color: #fff; }
.calc .act { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--c-btn); color: var(--c-ink); font: 600 15px/1 var(--text); text-decoration: none; cursor: pointer; }
.calc .act[hidden] { display: none; }
.calc .act svg { flex: none; width: 20px; height: 20px; }
.calc .act:active { transform: scale(.98); }
.calc .act.done { color: var(--c-link); }
.calc .copy-msg { margin: 10px 2px 0; font-size: 14px; line-height: 20px; color: var(--c-ink-2); }   /* copying failed: this line and the selected link under it (the button keeps its name) */
.calc .copy-msg + .copy-url { margin-top: 6px; }
.calc .copy-url { display: block; width: 100%; min-height: 48px; margin-top: 10px; padding: 0 14px; border: 1.5px solid var(--c-field); border-radius: 14px; background: var(--c-inset); color: var(--c-ink); font: 16px/1.2 var(--text); }
.calc .pz { margin-right: .12em; }   /* the peso sign at 17 and 26 px (road rows, load tiles) sat 1 px from its digits */
/* the app door: darker inset at the bottom of the card; its words follow the result */
.calc .nudge { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--c-inset); }
.calc .nudge-app { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.calc .nudge-ic { width: 40px; height: 40px; border-radius: 10px; }
.calc .nudge-title { display: block; font-size: 17px; line-height: 22px; font-weight: 700; color: var(--c-ink); }
.calc .nudge-text { margin: 2px 0 0; font-size: 15px; line-height: 21px; color: var(--c-ink-2); }
.calc .nudge-more { display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0 -12px; font-size: 15px; font-weight: 600; color: var(--c-link); }
.calc .nudge-and { margin: 0; font-size: 15px; line-height: 21px; color: var(--c-ink-2); }
.calc .nudge.ln { padding: 0; }
.calc .nudge-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 16px; color: var(--c-ink); text-decoration: none; }
.calc .nudge-row .nudge-ic { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.calc .nudge-row .nudge-t { flex: 1; min-width: 0; }
.calc .nudge-row .nudge-text { display: none; }
.calc .nudge-row::after { content: ""; flex: none; width: 20px; height: 20px; background: var(--c-ink-3); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.calc .nudge-row:active { background: var(--c-press); }
.calc .nudge.ln .nudge-and { padding: 14px; }
.calc .nudge .badge { margin-top: 10px; }
@media (min-width: 960px) { .calc .maplink { display: none; } } /* the map sits next to the card from 960 px (below that it is stacked under the card) */
/* a wide card is a column, not a banner: the extra-wide /trips/ and road page cards stop at 600 px (the hero card has its own grid column) */
@media (min-width: 900px) { .calc-sec .calc, .roadpg .calc { max-width: 600px; } }
@media (min-width: 900px) and (max-width: 959.98px) { .hero-grid .calc, .hero-grid .trip-map { max-width: 560px; } }

/* the map under the calculator on phones: full width, the trip drawn on Luzon */
.trip-map { position: relative; margin: 0 -16px; }
.trip-map svg { display: block; width: 100%; height: auto; aspect-ratio: var(--asp, 1.15); background: #0a1830; }   /* --asp: a route too long for this wide frame gets a taller one (render.js fitViewBox) */
.trip-legend { display: flex; justify-content: center; gap: 14px; padding: 8px 0 0; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-2); }
.trip-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trip-legend i { width: 18px; height: 5px; border-radius: 3px; }
.trip-map .fl { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.trip-map svg { --k: 1; --f: 1; }
@media (min-width: 420px) { .trip-map svg { --f: .9; } }
@media (min-width: 480px) { .trip-map svg { --f: .8205; } }
/* the route layer is drawn at the scale of a 320 px phone: every size is N screen px * --k (set on the svg), so labels are 12 px or more on any phone. --f steps
   the sizes down as the map gets wider (1, then .9 from 420 px, then 320 / 390 from 480 px, where the map stops being full width), so a label stays between 12 and
   18 px from 320 px to desktop. The r attributes on the circles are the fallback for a browser without r in CSS. */
.trip-map .rt { fill: none; stroke-width: calc(5px * var(--k) * var(--f)); stroke-linecap: round; stroke-linejoin: round; }
.trip-map .rt.a { stroke: var(--autosweep); }
.trip-map .rt.e { stroke: var(--easytrip); }
.trip-map .casing { fill: none; stroke: rgba(8, 16, 34, .7); stroke-width: calc(9px * var(--k) * var(--f)); stroke-linecap: round; stroke-linejoin: round; }
.trip-map .stop { fill: #fff; stroke: var(--navy-2); stroke-width: calc(2.6px * var(--k) * var(--f)); r: calc(6.5px * var(--k) * var(--f)); }
.trip-map .pin { fill: var(--green); stroke: #fff; stroke-width: calc(2.6px * var(--k) * var(--f)); r: calc(6.5px * var(--k) * var(--f)); }
.trip-map .hd { fill: #fff; stroke: var(--navy-2); stroke-width: calc(2.2px * var(--k) * var(--f)); r: calc(4.4px * var(--k) * var(--f)); }
.trip-map .pd { fill: #fff; opacity: .85; r: calc(1.9px * var(--k) * var(--f)); }
/* the pulse that runs toward the destination once the line has drawn (render.js flowHtml, started by calc.js): the line lights up, with a chevron in the colour of the road under it,
   drawn at the 320 px phone size and scaled like the rest */
.trip-map .pls { transform: scale(calc(var(--k) * var(--f))); }
.trip-map .pw { fill: none; stroke: #fff; stroke-width: calc(9px * var(--k) * var(--f)); stroke-linecap: round; stroke-linejoin: round; }   /* the light: as wide as the road's casing */
.trip-map .pc { fill: none; stroke-width: 2.3px; stroke-linecap: round; stroke-linejoin: round; }
.trip-map .pc.a { stroke: var(--autosweep); }
.trip-map .pc.e { stroke: var(--easytrip); }
.noanim .trip-map .flow { display: none; }
@media (prefers-reduced-motion: reduce) { .trip-map .flow { display: none; } }
.trip-map .link { stroke: rgba(255, 255, 255, .65); stroke-width: calc(2.2px * var(--k) * var(--f)); stroke-dasharray: calc(2px * var(--k) * var(--f)) calc(6px * var(--k) * var(--f)); stroke-linecap: round; fill: none; }
.trip-map text { font-family: var(--head); font-weight: 800; font-size: calc(12px * var(--k) * var(--f)); letter-spacing: .5px; fill: #fff; text-transform: uppercase; paint-order: stroke; stroke: rgba(8, 18, 38, .8); stroke-width: calc(3px * var(--k) * var(--f)); stroke-linejoin: round; }
.hero .trip-map { margin-top: 2px; }
@media (max-width: 959.98px) { .trip-map.idle { display: none; } }   /* no route to show (same place, no priced route): a phone shows no map, a desktop keeps the plain one (calc.js drawRoute) */
@media (min-width: 720px) { .trip-map { margin: 0; } .trip-map svg { border-radius: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08); } }
@media (min-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 470px minmax(0, 1fr); column-gap: 0; align-items: start; }
  .hero-copy { grid-column: 1; grid-row: 1; padding-bottom: 8px; }
  .hero h1 { font-size: 3.2rem; }
  .hero .sub { font-size: 1.15rem; }
  .calc { padding: 16px; }
  .hero-grid .calc { grid-column: 1; grid-row: 2; margin-right: -64px; } /* only the hero card reaches under the map: a card inside a road page's text column keeps its column */
  .hero-grid .trip-map { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .hero-grid .trip-map svg { aspect-ratio: .95; }
  .trip-hero .calc { grid-row: 1; }
  .trip-hero .trip-map { grid-row: 1; }
}

/* the route line draws once, when calc.js sees the map 40 percent in view and puts .go on it (and again from "Route map"). Until then it waits hidden. calc.js marks the
   map data-arm when it takes over: from then on there is no clock, the line waits for .go however long the visitor reads. A map calc.js never arms (the script did not
   come) shows its route after 4 s by the *wait animations. Without JS (no html.js), with reduced motion and with ?noanim it is simply there, finished. */
@media (prefers-reduced-motion: no-preference) {
  html.js .trip-map .rt, html.js .trip-map .casing { stroke-dasharray: 1; stroke-dashoffset: 1; }
  html.js .trip-map .fade { opacity: 0; }
  html.js .trip-map:not([data-arm]) .rt, html.js .trip-map:not([data-arm]) .casing { animation: drawwait 0s linear 4s forwards; }
  html.js .trip-map:not([data-arm]) .fade { animation: fadewait 0s linear 4s forwards; }
  html.js .trip-map.go .rt, html.js .trip-map.go .casing { animation: draw var(--d, 1s) cubic-bezier(.45, .05, .35, 1) var(--t, 0s) forwards; }
  html.js .trip-map.go .fade { animation: fadein .45s ease var(--t, 0s) forwards; }
}
.noanim .trip-map .rt, .noanim .trip-map .casing { animation: none !important; stroke-dashoffset: 0 !important; }
.noanim .trip-map .fade { animation: none !important; opacity: 1 !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawwait { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes fadewait { to { opacity: 1; } }

/* ── search sheet: full screen on phones (a 56 px bar, then grouped lists on paper), an anchored popover on a desktop mouse. render.js sheetHtml() writes the list. ── */
.ss-lock, .pop-open.ss-lock { overflow: hidden; }
.ss-back { position: fixed; inset: 0; z-index: 80; background: rgba(6, 12, 24, .55); }
.ss-back.clear { background: transparent; }
.ss-back[hidden], .ssheet[hidden], .calc-pop[hidden], .calc-pill[hidden] { display: none; }
.ssheet { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 90; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
.ss-bar { flex: none; display: flex; align-items: center; gap: 2px; padding: calc(4px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right), calc((100% - 640px) / 2)) 4px max(12px, env(safe-area-inset-left), calc((100% - 640px) / 2)); background: var(--card); border-bottom: 1px solid var(--line); }
.ss-cap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 1.5px solid var(--field-line); border-radius: 999px; background: var(--paper); cursor: text; }
.ss-cap:focus-within { border-color: var(--green); }   /* the 1.5 px green line is enough: the field is always focused, so a heavier ring would read as a validation state */
.ss-lbl { flex: none; color: var(--green-ink); font: 700 14px/20px var(--text); }   /* calc.js slides the field over when From turns to To (the word is narrower), so the gap stays the same */
.ss-clr { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -12px 0 -8px; padding: 0; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; }
.ss-clr[hidden] { display: none; }
.ss-clr:active { color: var(--ink); }
.ss-in { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 400 17px/24px var(--text); text-overflow: ellipsis; -webkit-appearance: none; appearance: none; }
.ss-in:focus { outline: none; }
.ss-in::placeholder { color: var(--ink-3); opacity: 1; }
.ss-x { flex: none; min-width: 60px; height: 48px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--green-ink); font: 600 16px var(--text); cursor: pointer; }
.ss-x:active { background: var(--paper); background: color-mix(in srgb, var(--green-ink) 12%, var(--card)); }   /* pressed: a fill that shows in sunlight (the first line is for browsers without color-mix) */
.ss-list { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px max(12px, env(safe-area-inset-right), calc((100% - 600px) / 2)) calc(28px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left), calc((100% - 600px) / 2)); }   /* on a tablet or a phone on its side the rows stay a phone's width, centred */
.ss-from { margin: 0 4px 14px 16px; color: var(--ink-2); font: 400 15px/22px var(--text); }
.ss-from b { color: var(--ink); font-weight: 600; }
.ss-sec + .ss-sec { margin-top: 20px; }
.ss-g { margin: 0 0 8px 16px; color: var(--ink-3); font: 600 14px/20px var(--text); }
.ss-g .rf { margin-left: 4px; }
.ss-card { list-style: none; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ss-card li { position: relative; }
.ss-card li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }   /* hairlines start inset 16, like the app's lists */
.ss-it { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 16px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ss-it.one { min-height: 56px; }   /* a plaza under its road's heading: the heading says the road and the RFID, so one line */
.ss-it:active { background: var(--paper); background: color-mix(in srgb, var(--green-ink) 12%, var(--card)); }
.ss-it:focus-visible { outline-offset: -3px; }
.ss-it i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.ss-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ss-it .t { font: 600 17px/22px var(--text); color: var(--ink); overflow-wrap: anywhere; }
.ss-it .s { font: 400 15px/20px var(--text); color: var(--ink-2); }   /* the road and the RFID word tell two plazas of one name apart: read in sunlight, so 15 px and ink-2 */
.rf.a { color: var(--autosweep-ink); font-weight: 600; }
.rf.e { color: var(--easytrip-ink); font-weight: 600; }
.rf, .nb { white-space: nowrap; }   /* a second line breaks only at its commas (render.js nb()): no "NLEX-" / "SCTEX", no "Skyway" / "3", no lone "Easytrip" */
.ss-it .s b { color: var(--ink); font-weight: 600; }   /* the landmark a place was found by ("Cubao via Balintawak, ...") */
.ss-none { margin: 0; padding: 8px 4px 0 16px; color: var(--ink-2); font: 400 16px/22px var(--text); }
.ss-none b { display: block; margin-bottom: 4px; color: var(--ink); font: 700 19px/24px var(--text); overflow-wrap: anywhere; }
.ss-none p { margin: 0; }
.ss-wait { padding-top: 16px; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }   /* no right margin: with "Manila (NLEX)" six chips are two rows of three at 360 and 390 */
.ss-chip { min-height: 48px; padding: 0 18px; border: 1.5px solid var(--field-line); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 16px var(--text); cursor: pointer; }
.ss-chip:active { background: var(--paper); background: color-mix(in srgb, var(--green-ink) 12%, var(--card)); }
.ss-retry { min-height: 48px; margin-top: 14px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--green-fill); color: #fff; font: 700 16px var(--text); cursor: pointer; }
.ss-retry:active { transform: scale(.98); }
.ss-more { margin: 12px 16px 0; color: var(--ink-3); font: 400 14px/20px var(--text); }
.ss-note + .ss-sec { margin-top: 24px; }
.ss-note { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink-2); font: 400 15px/22px var(--text); }
.ss-pitch { display: flex; gap: 12px; }
.ss-pitch > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--green-ink); }
.ss-note p { margin: 0; }
.ss-note .status-line { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.ss-note .get { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 14px; border-radius: 999px; background: var(--green-fill); color: #fff; font: 700 16px var(--text); text-decoration: none; }
.ss-note .get:active { transform: scale(.98); }
.ss-note .only-android { margin: 0; }
@media (min-width: 900px) {
  .ssheet.pop { height: auto; width: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); overflow: hidden; }
  .ssheet.pop .ss-bar { padding-top: 4px; }
  .ssheet.pop .ss-x { display: none; }
}
@media (hover: hover) and (min-width: 900px) { .ss-it:hover, .ss-chip:hover { background: var(--paper); } }

/* ── floating pill, and the popover / bottom sheet it opens ── */
.calc-pill { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 20px 0 9px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--green-fill); color: #fff; font: 700 1rem var(--text); box-shadow: 0 8px 24px rgba(8, 20, 44, .3); }   /* flat green (white on it is 4.9:1), one soft neutral shadow: no gradient on a button */
.dock { display: none; }   /* the trip dock is a phone thing (calc.js builds it under 900 px; the phone block styles it) */
.calc-pill .pp { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .22); font: 800 1.15rem var(--head); }
.calc-pop { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; max-height: 90vh; max-height: 90dvh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 max(12px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-radius: 22px 22px 0 0; background: var(--paper); box-shadow: 0 -20px 60px rgba(0, 0, 0, .45); }
.calc-pop .calc { margin: 0; box-shadow: none; } /* the card inside the popover: no overlap margin of the hero layout */
.pop-h { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 8px 0 6px; background: var(--paper); font: 800 1.35rem var(--head); }
.pop-x { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 700 .95rem var(--text); cursor: pointer; }
@media (min-width: 720px) { .calc-pop { left: auto; right: 20px; bottom: 20px; width: 410px; border-radius: 22px; padding: 0 16px 16px; } .calc-pill { right: 20px; bottom: 20px; } }

/* ── sections ───────────────────────────────────────────── */
section { padding: 52px 0; }
section.tight { padding: 38px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } section.tight { padding: 64px 0; } }
.head { max-width: 40em; }
.head p { margin-top: 10px; color: var(--ink-2); font-size: 1.02rem; }
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }





/* faq */
.faq-list { margin-top: 18px; display: grid; gap: 8px; max-width: 860px; }
details.qa { border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.alt details.qa { background: var(--paper); box-shadow: none; }
details.qa summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; font-weight: 700; font-size: 1rem; line-height: 1.3; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); color: var(--green-ink); font-size: 1.4rem; font-weight: 600; line-height: 1; transition: transform .25s; }
.alt details.qa summary::after { background: var(--card); }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .ans { padding: 0 16px 16px; color: var(--ink-2); display: grid; gap: 10px; font-size: .98rem; }
details.qa .ans ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.doc .faq-list { max-width: none; margin-top: 18px; }

/* screens of the real app: plain cuts, a hairline frame, no bezel, no shadow, no tilt */
.shot { display: block; width: 100%; height: auto; border: 1px solid rgba(16, 28, 51, .14); border-radius: 20px; background: var(--paper); }
[data-theme="dark"] .shot { border-color: rgba(255, 255, 255, .26); }   /* the navy screens (verdict, trip) sit on a near-navy page: a stronger hairline keeps their edge */

/* the app section (home, owner 2 Dec 2026): its own band (a soft mint between the white map band and the paper of the popular trips, so a phone
   reads it as a new part of the page), the app's icon and name, a two-sentence headline (track the load, know if it makes the trip), three reasons
   on one card and the badge right under them; then the real screens as proof. Phones: the screens in a sideways row, each about 300 px wide so
   their small lines stay readable (a screen at 70% of the column made its key lines 6 px high), the next one peeking. From 600 px a two-column
   collage (the route on the left, the balance sheet and the trip card stacked on the right); from 1140 px the words left, the collage right. */
section.app { --band: #e4f4ed; --band-line: #c7e6d8; position: relative; padding: 40px 0 32px; background: var(--band); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }   /* positioned: the map band above has a shadow that must not paint over it */
[data-theme="dark"] section.app { --band: #0b2227; --band-line: #17383c; }
.app-kick { display: flex; align-items: center; gap: 10px; font: 600 15px/20px var(--text); color: var(--green-ink); }
.app-kick img { flex: none; width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 3px rgba(16, 28, 51, .2); }
.app h2 { margin-top: 12px; font-size: 31px; line-height: 1.08; text-wrap: balance; }
.app h2 .acc { display: block; color: var(--green-ink); }   /* the answer, on its own line */
.app-points { list-style: none; margin: 20px 0 0; padding: 2px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.app-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px 0; }
.app-points li + li { border-top: 1px solid var(--line); }
.pt-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(23, 128, 98, .12); color: var(--green-ink); }
[data-theme="dark"] .pt-ic { background: rgba(79, 209, 168, .14); }
.app-points h3 { font: 700 17px/22px var(--text); color: var(--ink); text-wrap: balance; }
.app-points p { margin-top: 3px; font-size: 15px; line-height: 21px; color: var(--ink-2); text-wrap: pretty; }
.app-foot { margin-top: 20px; }
.app-foot .app-store { margin-top: 0; }
.app-trust { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.app-trust b { display: block; font-weight: 600; color: var(--ink); text-wrap: balance; }
.app-shots { margin-top: 28px; }
.app-items { display: flex; align-items: center; gap: 12px; margin: 0 -16px; padding: 2px 16px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
.app-items::-webkit-scrollbar { display: none; }
.app-items { align-items: start; }
.app-item { flex: 0 0 min(300px, 80%); min-width: 0; scroll-snap-align: start; }
/* phones: every screen on a tile of the balance sheet's shape, so the row is one height and the first screen does not float in the route's
   height. The route keeps its bottom (the card with the total); the trip card sits centred on its own navy (24, 41, 72, its flat edge). */
.app-item .shot { width: 100%; aspect-ratio: 1130 / 958; object-fit: cover; }
.app-item[data-k="route"] .shot { object-position: 50% 100%; }
.app-item[data-k="verdict"] .shot { object-fit: contain; background: rgb(24, 41, 72); }
.app-item .shot-cap { margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--ink-3); }   /* the engine's figure for the screen above it */
.app-cap { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
@media (min-width: 600px) {
  .app-points { max-width: 560px; }
  .app-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "route detail" "route verdict"; grid-template-rows: auto 1fr;
               gap: 14px; align-items: start; max-width: 600px; margin: 0; padding: 0; overflow: visible; }
  .app-item .shot { aspect-ratio: auto; object-fit: fill; }   /* the collage shows each screen whole */
  .app-item[data-k="route"] { grid-area: route; }
  .app-item[data-k="detail"] { grid-area: detail; }
  .app-item[data-k="verdict"] { grid-area: verdict; }
  .app-cap { margin-top: 12px; }
}
@media (min-width: 900px) {
  section.app { padding: 72px 0; }
  .app h2 { font-size: clamp(2.2rem, 3.4vw, 2.6rem); }
  .app-shots { margin-top: 36px; }
}
@media (min-width: 1140px) {
  .app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; grid-template-areas: "head shots" "foot shots"; grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; }
  .app-head { grid-area: head; }
  .app-foot { grid-area: foot; margin-top: 24px; }
  .app-shots { grid-area: shots; margin-top: 4px; }
  .app-items { max-width: none; }
}

/* a trip page's real screen ("The same trip in the app") and a road page's app strip */
.app-fig { margin: 16px 0 0; }
.app-fig .shot { width: 100%; max-width: 360px; }   /* as wide as the text column, on its left edge (a 240 px screen made the key lines 6 px high) */
.app-fig figcaption { margin: 10px 0 0; max-width: 28em; font-size: 14px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }
.app-fig .app-store { margin-top: 12px; }
@media (min-width: 900px) {
  .tripapp.tight { padding: 48px 0; }
  .app-fig { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 32px; align-items: center; margin-top: 24px; }
  .app-fig figcaption { margin: 0; max-width: 26em; font-size: 15px; line-height: 22px; }
  .app-fig .app-store { margin-top: 16px; }
}
.app-strip { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.app-strip p { font-size: 15px; line-height: 22px; color: var(--ink-2); }

/* the final band before the footer (navy, flat): icon, headline, one sentence and the door. Compact on every page but home: icon, one line, one link. */
.final { padding: 32px 0; background: var(--navy); color: var(--on-navy); }
.fin { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 14px; }
.fin-ic { width: 56px; height: 56px; border-radius: 13px; }
.fin-txt h2 { color: #fff; }
.fin-txt p { margin-top: 8px; max-width: 32em; color: var(--on-navy-2); font-size: 17px; line-height: 24px; text-wrap: balance; }
.fin-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.final .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.fin-link { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--mint); font: 600 15px/1 var(--text); text-decoration: none; }
.fin-link::after { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.final.compact { padding: 18px 0 20px; }
.final.compact .fin { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ic txt" ". act"; column-gap: 12px; row-gap: 0; align-items: center; justify-items: stretch; }
.final.compact .fin-ic { grid-area: ic; width: 40px; height: 40px; border-radius: 10px; }
.final.compact .fin-txt { grid-area: txt; }
.final.compact .fin-act { grid-area: act; }
.final.compact .fin-act .badge { margin-top: 8px; }
.final.compact .fin-act .fin-link { margin-top: 4px; }   /* the focus ring must clear the sentence above it and the card's edge */
html.android .final:not(.compact) .fin-txt h2 { display: none; }
html.android .final:not(.compact) .fin-txt .only-android { margin-top: 0; }   /* on Android the band's one line says the app is iPhone only: the headline "Toll Magkano for iPhone" above it said the same twice */
.final.compact .fin-txt p { margin: 0; color: #fff; font-weight: 600; text-wrap: balance; }
@media (min-width: 900px) {
  .final { padding: 56px 0; }
  .fin { grid-template-columns: auto fit-content(32em) auto; justify-content: start; align-items: center; justify-items: start; column-gap: 28px; }
  .final.compact { padding: 22px 0; }
  .final.compact .fin { grid-template-columns: 40px fit-content(32em) auto; grid-template-areas: "ic txt act"; column-gap: 24px; }
  .final.compact .fin-act .badge, .final.compact .fin-act .fin-link { margin-top: 0; }
}

/* footer (always navy): brand, one line about, the links, the app line, the disclaimer, credits folded away */
.foot { background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, .08); color: var(--on-navy-2); padding: 16px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .94rem; }
.foot a { color: var(--on-navy); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr); }
.foot .brand { justify-self: start; min-height: 44px; font-size: 1.1rem; }
.foot-about { margin: 0; color: var(--on-navy-2); font-size: .94rem; line-height: 1.45; max-width: 36em; }
.foot-about a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.foot-about + .foot-about { margin-top: 6px; }
.foot-about a[href^="mailto:"] { white-space: normal; overflow-wrap: anywhere; display: inline-block; padding: 12px 0; margin: -12px 0; } /* 44 px tall hit area, line height unchanged */
.foot-links { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.foot-links a { display: flex; align-items: center; min-height: 48px; padding: 0 8px; margin: 0 -8px; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.foot-app { margin-top: 4px; }
.foot-app .badge { padding: 1px 0; }   /* the 42 px badge sits in a 44 px target; the badge image itself is untouched */
.foot .status-line { margin-top: 8px; font-size: .9375rem; color: var(--on-navy); }
.foot .status-line span { text-wrap: pretty; }   /* breaks where the words do, but never leaves "Store." alone on a line */
.foot-disc { margin: 12px 0 0; font-size: .875rem; line-height: 1.4; color: var(--on-navy); }
.credits { margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
.credits summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 8px; margin: 0 -8px; cursor: pointer; list-style: none; font-weight: 600; color: var(--on-navy); }
.credits summary::-webkit-details-marker { display: none; }
.credits summary::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; opacity: .7; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transform: rotate(90deg); transition: transform .2s ease-out; }
.credits[open] summary::after { transform: rotate(-90deg); }
.credits p { margin: 0 0 10px; font-size: .8125rem; line-height: 1.4; color: var(--on-navy-2); }
.credits a { text-decoration: underline; text-underline-offset: 3px; }
.foot-copy { margin: 6px 0 0; font-size: .8125rem; color: var(--on-navy-3); }
/* desktop: three columns again (brand, about and the app line | the links in two columns) with mouse-sized rows */
@media (min-width: 900px) {
  .foot { padding: 44px 0 32px; }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; grid-template-areas: "brand links" "about links" "mail links" "app links"; grid-template-rows: auto auto auto 1fr; align-items: start; }
  .foot .brand { grid-area: brand; }
  .foot-about { grid-area: about; }
  .foot-about + .foot-about { grid-area: mail; }
  .foot-links { grid-area: links; margin: 0; display: block; columns: 2; column-gap: 40px; }
  .foot-links li { break-inside: avoid; }
  .foot-links a { min-height: 36px; padding: 0; margin: 0; font-size: .94rem; font-weight: 400; }
  .foot-app { grid-area: app; margin-top: 14px; }
  .foot-disc { margin-top: 28px; }
}

/* inner pages */
.page-hero { background: linear-gradient(170deg, var(--navy-3), var(--navy) 45%, var(--navy-2)); color: var(--on-navy); padding: 22px 0 26px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 7.4vw, 3.4rem); }
.page-hero .lead { margin-top: 10px; font-size: 1rem; line-height: 1.5; color: var(--on-navy-2); max-width: 36em; }
/* road pages: the toll fee answer under the lead (3 Dec 2026): the road's run in three classes, the cheapest car fare, the date */
.tf-ans { max-width: 560px; margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: rgba(255, 255, 255, .06); }
.tf-k { margin: 0; font: 700 12px/16px var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-2); }
.tf-route { margin: 3px 0 10px; font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: #fff; }
.tf-cls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tf-cls span { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.tf-cls small { font: 600 12px/14px var(--text); color: var(--on-navy-2); }
.tf-cls b { font-size: 1.35rem; line-height: 1.2; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.tf-foot { margin: 10px 0 0; font-size: 13px; line-height: 18px; color: var(--on-navy-2); }
.page-hero .chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .page-hero { padding: 40px 0 46px; } .page-hero .lead { font-size: 1.15rem; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0 0 10px; padding: 0; font-size: .84rem; color: var(--on-navy-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { position: relative; color: var(--on-navy); }
.crumbs a::after { content: ""; position: absolute; inset: -14px -6px; }   /* a 44 px tall hit area for a 17 px line of text */
.doc { padding: 36px 0 64px; }
.doc .wrap { max-width: 880px; }
.doc h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
.doc h2 { font-size: 1.5rem; margin-top: 30px; }
.doc h3 { margin-top: 18px; }
.doc p, .doc ul, .doc ol { margin-top: 10px; color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 6px; }
.doc .meta { margin-top: 10px; color: var(--ink-3); font-size: .92rem; }
.doc .lead { font-size: 1.05rem; color: var(--ink-2); margin-top: 12px; }
.doc-w { max-width: 860px; }
.cls-note { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.linklist { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 6px; }
.linklist a { font-weight: 700; }

/* expressways index + road pages */
.netmap { margin: 0 -16px; background: linear-gradient(170deg, var(--navy-3), var(--navy-2)); padding: 0 0 12px; color: var(--on-navy); }
.netmap svg { width: 100%; height: auto; display: block; }
.netmap .cap { margin: 6px 16px 0; font-size: .82rem; color: var(--on-navy-2); text-align: center; }
@media (min-width: 720px) { .netmap { margin: 0; border-radius: 26px; padding: 18px 16px 14px; box-shadow: var(--shadow); } .netmap svg { border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); } }
.netmap text.pl { font: 600 11px var(--text); fill: #eef4fd; paint-order: stroke; stroke: rgba(8, 18, 38, .75); stroke-width: 3px; stroke-linejoin: round; }
.netmap text.rl { font: 800 11px var(--head); letter-spacing: .6px; text-transform: uppercase; fill: #d8e6fa; paint-order: stroke; stroke: rgba(8, 18, 38, .75); stroke-width: 3px; stroke-linejoin: round; }
.netmap .d.a { fill: var(--autosweep); }
.netmap .d.e { fill: var(--easytrip); }
.netmap .d { stroke: var(--navy-2); stroke-width: 1.5; }
.roadpg .calc { margin-top: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.roadpg h2 { font-size: 1.4rem; }

/* trip pages */
.tbl-wrap { overflow-x: auto; margin-top: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.cls-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cls-table th, .cls-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.cls-table thead th { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.cls-table tbody th { text-align: left; font-weight: 400; }
.cls-table tbody th b { display: inline; }
.cls-table tbody th small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.cls-table .chip { font-size: 13px; letter-spacing: 0; text-transform: none; }
.cls-table tbody th i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.cls-table tr.tot th, .cls-table tr.tot td { font-weight: 800; font-size: 1.1rem; border-top: 2px solid var(--ink); }
.cls-table tr:last-child th, .cls-table tr:last-child td { border-bottom: 0; }
/* the phone version of the class table (render.js classSummaryHtml): total, Autosweep, Easytrip by three classes; the per-road table returns from 600 px */
.cls-sum-wrap { display: none; margin-top: 14px; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.cls-sum { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15px; line-height: 20px; }
.cls-sum th, .cls-sum td { padding: 10px 6px; text-align: right; vertical-align: middle; border-bottom: 1px solid var(--line); }
.cls-sum thead td, .cls-sum tbody th { width: 96px; }
.cls-sum th:first-child, .cls-sum td:first-child { padding-left: 14px; }
.cls-sum th:last-child, .cls-sum td:last-child { padding-right: 14px; }
.cls-sum thead th { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--ink); }
.cls-sum thead small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.cls-sum tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.cls-sum tbody th i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; }
.cls-sum tr.tot th, .cls-sum tr.tot td { font-size: 17px; font-weight: 800; border-top: 2px solid var(--ink); }
.cls-sum tbody tr:last-child th, .cls-sum tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 599.98px) { .cls-full { display: none; } .cls-sum-wrap { display: block; } }
.calc-sec .calc { border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 14px; }

@media print { .top, .foot, .calc-pill, .dock, .hero::before { display: none; } }

/* ── base map (Natural Earth): land clearly lighter than the sea, the route and dots still the hero ── */
.bm-water { fill: #081327; }
.bm-land { fill: #284579; stroke: none; }
.bm-coast { fill: none; stroke: rgba(170, 205, 255, .55); stroke-width: .9; stroke-linejoin: round; stroke-linecap: round; }
.bm-lake { fill: #081327; stroke: rgba(170, 205, 255, .45); stroke-width: .8; }
.bm-admin { fill: none; stroke: rgba(205, 222, 250, .16); stroke-width: .6; }
.bm-lbl { font: 600 11px var(--text); letter-spacing: .3px; fill: rgba(226, 236, 250, .8); paint-order: stroke; stroke: rgba(8, 19, 39, .75); stroke-width: 2.5px; stroke-linejoin: round; }
.bm-lbl.bm-wat { fill: rgba(150, 190, 245, .7); font-style: italic; font-weight: 400; }
.bm-cdot { fill: rgba(226, 236, 250, .75); }

/* ── motion: subtle, 200 to 600 ms, ease-out, once. Everything sits under no-preference. No reveal fades, no progress bar, no count-up. ── */
@media (prefers-reduced-motion: no-preference) {
  .xcard, .tcard, details.qa { transition: transform .25s ease-out, box-shadow .25s ease-out, border-color .25s ease-out; }
  .js .calc-pill { animation: pillin .35s ease-out; }
  .js .calc-pop:not([hidden]) { animation: popin .3s ease-out; }
  .js .ssheet:not([hidden]) { animation: ssin .2s ease-out; }
  .js .menu[open] > .menu-sheet { animation: menuin .2s ease-out; }
  .js .menu-open .menu-scrim { animation: scrimin .2s ease-out; }
  :root { interpolate-size: allow-keywords; }
  details.qa::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .2s ease-out, opacity .2s ease-out, content-visibility .2s allow-discrete; }
  details.qa[open]::details-content { block-size: auto; opacity: 1; }
  /* page change: a short opacity fade (the header holds still); skipped on back and forward by the pagereveal handler in the head script */
  @view-transition { navigation: auto; }
  .top { view-transition-name: site-header; }
  ::view-transition-group(site-header) { animation-duration: 0s; }
  ::view-transition-old(root) { animation: vt-out .12s ease-out both; }
  ::view-transition-new(root) { animation: vt-in .18s ease-out both; }
}
/* hover effects only on a real pointer and only from 900 px */
@media (hover: hover) and (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .glist:not(.stack) > a:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 28, 51, .08), 0 22px 44px rgba(16, 28, 51, .16); }
  details.qa:hover { border-color: var(--green); }
  .calc-pill:hover { transform: translateY(-2px); }
}
@media (hover: hover) and (min-width: 900px) {
  .btn:hover { background: var(--green-deep); }
  .btn.ghost:hover { background: var(--paper); border-color: var(--field-line); }
  .app-store .btn.ghost:hover { background: var(--green-deep); border-color: transparent; }
  .final .btn.ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .8); color: #fff; }
  .badge:hover { opacity: .9; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes pillin { from { opacity: 0; transform: translateY(10px); } }
@keyframes popin { from { opacity: 0; transform: translateY(14px); } }
@keyframes ssin { from { opacity: 0; transform: translateY(16px); } }
@keyframes menuin { from { opacity: 0; transform: translateY(-16px); } }
@keyframes scrimin { from { opacity: 0; } }
/* ── motion, tap by tap: a press fades in and out instead of snapping, a changed trip settles into place (calc.js sets data-chg on the card:
   swap, from, to, route or cls), a closing layer fades out (calc.js and site.js leave a .leaving copy of it for 160 ms), the answer under a
   question eases in on every browser (Safari has no interpolate-size), same-page links glide. Still under no-preference and never on ?noanim. ── */
@media (prefers-reduced-motion: no-preference) {
  html:not(.noanim) { scroll-behavior: smooth; }
  html:not(.noanim) :where(.glist > a, .tchip, .ss-it, .ss-chip, .ss-x, .ss-clr, .ss-retry, .ss-note .get, .calc .fld, .calc .swap, .calc .cls button, .calc .act,
    .calc .nudge-row, .calc-pill, .pop-x, .toc a, .nav a, .menu summary, .menu-sheet a, .brand, .app-link, .badge, .foot-links a, .credits summary,
    details.qa summary, details.plz summary, .faq-list .qa-all) {
    transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out, opacity .2s ease-out, box-shadow .25s ease-out, transform .18s cubic-bezier(.2, .8, .2, 1); }
  html:not(.noanim) .btn { transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out, transform .18s cubic-bezier(.2, .8, .2, 1); }
  html:not(.noanim) :where(.btn, .glist > a, .tchip, .ss-it, .ss-chip, .ss-x, .ss-retry, .ss-note .get, .calc .fld, .calc .swap, .calc .cls button, .calc .act,
    .calc .nudge-row, .pop-x, .toc a, .menu summary, .menu-sheet a, .brand, .app-link, .foot-links a, .credits summary, details.qa summary, details.plz summary, .faq-list .qa-all):active { transition-duration: .05s; }
  .tchip:active, .ss-chip:active { transform: scale(.97); }
  .top { transition: border-radius .16s ease-out; }
  /* a changed trip: Swap turns its arrows and the two places trade rows, a picked place eases in, the road bar draws again, the result settles */
  html:not(.q):not(.noanim) .calc[data-chg="swap"] .swap svg { animation: swapspin .4s cubic-bezier(.2, .8, .2, 1); }
  html:not(.q):not(.noanim) .calc[data-chg="swap"] .fld[data-w="from"] b { animation: comeup .3s cubic-bezier(.2, .8, .2, 1); }
  html:not(.q):not(.noanim) .calc[data-chg="swap"] .fld[data-w="to"] b { animation: comedown .3s cubic-bezier(.2, .8, .2, 1); }
  html:not(.q):not(.noanim) :is(.calc[data-chg="from"] .fld[data-w="from"], .calc[data-chg="to"] .fld[data-w="to"], .calc[data-chg="route"] .fld) b { animation: valin .26s ease-out; }
  html:not(.q):not(.noanim) .calc[data-chg]:not([data-chg="cls"]) .rd .bar i { transform-origin: 0 50%; animation: barin .45s cubic-bezier(.2, .8, .2, 1); }
  html:not(.q):not(.noanim) .calc[data-chg] .calc-res > :not(.res-top):not(.res-total):not(.res-row):not(.tip) { animation: resin .3s ease-out; }
  html:not(.q):not(.noanim) .calc[data-chg="cls"] .cls .cseg:has(> [aria-pressed="true"]) { animation: thumbin .24s cubic-bezier(.2, .8, .2, 1); }
  /* an opened answer eases in */
  html:not(.noanim) :is(details.qa[open] .ans, details.plz[open] ol, .credits[open] p) { animation: ansin .24s ease-out; }
  /* layers: the search sheet's backdrop fades in too; every closing layer fades out through its .leaving copy */
  .js .ss-back:not([hidden]) { animation: scrimin .2s ease-out; }
  .js .ssheet.leaving { animation: ssout .16s ease-in forwards; }
  .js .calc-pop.leaving, .js .ssheet.pop.leaving { animation: popout .16s ease-in forwards; }
  .js .menu-sheet.leaving { animation: menuout .16s ease-in forwards; }
  .js :is(.ss-back, .menu-scrim).leaving { animation: scrimout .16s ease-in forwards; }
}
.leaving { pointer-events: none; }
@keyframes swapspin { from { transform: rotate(-180deg); } }
@keyframes comeup { from { opacity: 0; transform: translateY(12px); } }
@keyframes comedown { from { opacity: 0; transform: translateY(-12px); } }
@keyframes valin { from { opacity: 0; transform: translateY(5px); } }
@keyframes barin { from { transform: scaleX(0); } }
@keyframes resin { from { opacity: 0; transform: translateY(6px); } }
@keyframes thumbin { from { transform: scale(.86); background-color: transparent; color: var(--c-ink-2); } }
@keyframes ansin { from { opacity: 0; transform: translateY(-4px); } }
@keyframes ssout { to { opacity: 0; transform: translateY(16px); } }
@keyframes popout { to { opacity: 0; transform: translateY(10px); } }
@keyframes menuout { to { opacity: 0; transform: translateY(-12px); } }
@keyframes scrimout { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }

/* the expressways drawn on the index and road maps: a navy casing under the RFID line; other roads thin and faint */
.netmap .lc { fill: none; stroke: rgba(8, 16, 34, .72); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.netmap .ln { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.netmap .ln.thin { stroke-width: 2.6; }
.netmap:has(.ln.thin) .lc { stroke-width: 5.4; }
.netmap .fl { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════
   PAGE PARTS (Stage 7): grouped lists, trip and road rows, FAQ rows, the facts list, the plaza list, support, privacy, 404.
   Rows on a phone, separate cards from 720 px: one markup. The phone block below only re-skins what is shared with the desktop.
   ══════════════════════════════════════════════════════════════════════════════════════════════════ */
.d-only { display: inline; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 4px -6px; padding: 0 12px 0 0; color: var(--green-ink); font: 600 16px/22px var(--text); text-decoration: none; }
.back::before { content: ""; flex: none; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transform: rotate(180deg); }
.crumbs-nav { display: none; }
@media (min-width: 720px) { .back { display: none; } .crumbs-nav { display: block; padding-top: 8px; } }   /* the 8 px keeps the breadcrumb hit areas clear of the sticky header */
.head h2 + p { margin-top: 6px; }
.prose { margin-top: 10px; max-width: 40em; color: var(--ink-2); font-size: 16px; line-height: 25px; }
.plain { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; max-width: 40em; color: var(--ink-2); font-size: 16px; line-height: 24px; }
.list-note { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.fine { margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.btn.lg { display: flex; width: 100%; min-height: 52px; font-size: 1rem; }
@media (min-width: 600px) { .btn.lg { display: inline-flex; width: auto; min-width: 260px; } }

/* a grouped list: one white card with hairline rows (a phone), separate cards in a grid (720 px and up; .stack stays one list) */
.glist { display: grid; margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.glist > a { position: relative; display: grid; align-items: center; column-gap: 12px; min-height: 64px; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.glist > a + a::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.glist > a::after { content: ""; width: 20px; height: 20px; background: currentColor; opacity: .5; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.glist > a:active { background: var(--paper); }
.glist > a:focus-visible { outline-offset: -3px; }
.glist > .lrow { grid-template-columns: minmax(0, 1fr) 20px; min-height: 56px; font: 600 17px/22px var(--text); }
.glist > .lrow.slim { min-height: 48px; }
.glist > .lrow.all { color: var(--green-ink); }
.glist > .crow { grid-template-columns: minmax(0, 1fr) 20px; row-gap: 2px; padding-block: 12px; }
.crow b { grid-column: 1; font: 700 17px/22px var(--text); }
.crow span { grid-column: 1; font: 400 14px/20px var(--text); color: var(--ink-2); }
.crow::after { grid-column: 2; grid-row: 1 / span 2; }

/* trip row: a lane stripe (one segment per road, as tall as its fare), the name over the roads, the Class 1 total */
.glist > .tcard { grid-template-columns: 5px minmax(0, 1fr) auto 20px; }
.lane { display: flex; flex-direction: column; gap: 2px; width: 5px; height: 44px; border-radius: 999px; overflow: hidden; }
.lane i { flex: 1 1 0; min-height: 4px; background: var(--autosweep); }
.lane i.e { background: var(--easytrip); }
.tc-t { min-width: 0; }
.tc-t b { display: block; font: 700 17px/22px var(--text); }
.tc-t small { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.tcard .tp { font: 800 22px/24px var(--head); color: var(--green-ink); text-align: right; white-space: nowrap; }

/* road row: a white logo tile (the first logo), the name, the RFID word in its own ink */
.glist > .xcard { grid-template-columns: 72px minmax(0, 1fr) 20px; --c: var(--autosweep); }
.xcard.e { --c: var(--easytrip); }
.xcard .lg { display: flex; align-items: center; justify-content: center; width: 72px; height: 40px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.xcard .lg img { height: 26px; width: auto; max-width: 62px; object-fit: contain; }
.xcard .lg img:not(:first-child) { display: none; }
.lg.txt { font: 800 20px/1 var(--head); text-align: center; }
.lg.txt.a { color: var(--autosweep-ink); background: var(--autosweep-bg) !important; border-color: transparent !important; }
.lg.txt.e { color: var(--easytrip-ink); background: var(--easytrip-bg) !important; border-color: transparent !important; }
.xb { display: grid; gap: 2px; min-width: 0; }
.xn { font: 700 17px/22px var(--text); }
.xl { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.xr { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.xr i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.xr.a { color: var(--autosweep-ink); }
.xr.e { color: var(--easytrip-ink); }
.xd { display: none; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.xcard.ix .xd { display: block; }
.xm { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.xcard.desk { display: none; }

@media (min-width: 720px) {
  .glist:not(.stack) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }
  .glist:not(.stack) > a { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .glist:not(.stack) > a::before { display: none; }
  .glist:not(.stack) > .xcard { border-top: 5px solid var(--c); }
  .glist:not(.stack) > .lrow.all { grid-column: 1 / -1; grid-template-columns: auto 20px; justify-content: start; min-height: 44px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; font-weight: 700; }
  .glist > .xcard { grid-template-columns: 96px minmax(0, 1fr); align-items: start; padding: 14px; }
  .glist > .xcard::after { display: none; }
  .glist > .xcard.desk { display: grid; }   /* the home page's other six expressways join NLEX, SLEX and TPLEX from here */
  .xcard .lg { width: 96px; height: 56px; }
  .xcard .lg img { height: 32px; max-width: 80px; }
  .xd { display: block; }
}
@media (min-width: 1100px) { .glist.trips, .glist.roads:not(.index) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .split2 .glist.index { grid-template-columns: minmax(0, 1fr); } }

/* the pages that put a map beside the text from 960 px (the expressways index, a road page): one column on a phone, the map in the left column after that */
.split2 { display: grid; grid-template-columns: minmax(0, 1fr); }
.split2 > * { min-width: 0; }
.split2 > * + * { margin-top: 32px; }
@media (min-width: 960px) {
  .split2 { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-rows: repeat(var(--rows, 1), auto); column-gap: 44px; align-items: start; }
  .split2 > * { grid-column: 2; }
  .split2 > .side { grid-column: 1; grid-row: 1 / span var(--rows, 1); position: sticky; top: 84px; margin-top: 0; }
}

/* FAQ rows, the jump grid, the "Not here?" block */
.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 4px; }
.toc a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 8px; border: 1.5px solid var(--field-line); border-radius: 14px; color: var(--ink); text-decoration: none; font: 600 15px/1 var(--text); }
.toc a:active { background: var(--card); }
@media (min-width: 720px) { .toc { display: flex; flex-wrap: wrap; } .toc a { display: inline-flex; min-height: 44px; padding: 0 18px; border-radius: 999px; border-color: var(--line); background: var(--card); } }
.faq-list .qa-all { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--green-ink); }
.faq-list .cta { margin-top: 2px; }
.faq-list .cta a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.notq { margin-top: 32px; }
.notq p { margin-top: 8px; }
.notq .btn { margin-top: 16px; }

/* a road page: the logo strip, the facts as a plain list, the plazas behind a disclosure */
.logostrip { display: flex; align-items: center; gap: 16px; min-height: 56px; margin: 4px 0 14px; padding: 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.logostrip .lg { display: flex; align-items: center; gap: 18px; }
.logostrip .lg img { height: 32px; width: auto; max-width: 100%; }
.logostrip:has(.lg.txt) { padding: 0; border: 0; background: none; }
.logostrip .lg.txt { width: 100%; height: 56px; justify-content: center; border-radius: 14px; font-size: 26px; }
@media (min-width: 720px) { .logostrip { max-width: 420px; } }
.kv { display: block; margin: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
.kv > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 12px; padding: 10px 0; background: none; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; }
.kv dt { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 22px; color: var(--ink-3); }
.kv dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 22px; color: var(--ink); }
.kv dd .chip { margin: 0; padding: 0; background: none; font-size: 15px; letter-spacing: 0; text-transform: none; }
.kv .linklist a { display: flex; align-items: center; padding: 11px 0; margin: -11px 0; font-weight: 600; }   /* a 44 px tap target that never overlaps the next link when a name wraps (was min-height: 44px, 3 Dec 2026) */
.k-rfid { display: none !important; }   /* the RFID word sits under the H1 */
@media (min-width: 720px) { .kv > div { grid-template-columns: 160px minmax(0, 1fr); } }
details.plz { border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
details.plz summary, details.qa summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.plz summary { min-height: 56px; padding: 10px 16px; font: 600 17px/22px var(--text); }
details.plz summary::-webkit-details-marker { display: none; }
details.plz summary::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; opacity: .5; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transform: rotate(90deg); transition: transform .2s ease-out; }
details.plz[open] summary::after { transform: rotate(-90deg); }
details.plz ol { list-style: none; margin: 0; padding: 0 16px 16px; columns: 2; column-gap: 20px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
details.plz li { break-inside: avoid; padding: 3px 0; overflow-wrap: anywhere; }
.split2 > .app-strip { margin-top: 32px; }

/* support, privacy, 404 */
.doc .glist { margin-top: 12px; }
.doc .meta { margin-top: 12px; font-size: 14px; line-height: 20px; }
.inshort { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 14px; background: var(--card); }
.doc .inshort h2 { margin: 0; font: 700 17px/22px var(--text); color: var(--ink); }
.doc .inshort p { margin-top: 6px; }
.review { margin-top: 12px; font-size: 14px; line-height: 20px; }
.review a { display: inline-flex; align-items: center; min-height: 44px; }
.nf { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); padding: 32px 0; text-align: center; }
.nf .wrap { display: grid; justify-items: center; gap: 14px; max-width: 440px; width: 100%; }
.nf img { width: 72px; height: 72px; border-radius: 16px; }
.nf .lead { font-size: 17px; line-height: 24px; color: var(--ink-2); max-width: 22em; text-wrap: balance; }
.nf .btn.lg { width: 100%; margin-top: 4px; }
.nf .glist { width: 100%; margin-top: 8px; text-align: left; }
@media (min-width: 900px) { .nf { min-height: calc(100vh - 62px); } }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════
   PHONES (below 900 px): one additive block. Everything above is what desktop shows; this block only
   re-skins it for a thumb. Later stages add the trip card, lists, dock and pages inside this block.
   ══════════════════════════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 899.98px) {
  /* type: 17/26 body (a unitless ratio, so smaller text inherits a ratio and not 26 px), H1 32/34, H2 24/28, H3 19/24 */
  body { line-height: 1.53; }
  h1, .hero h1, .page-hero h1, .doc h1 { font-size: 32px; line-height: 34px; }
  h2, .doc h2, .roadpg h2 { font-size: 24px; line-height: 28px; }
  h3 { font-size: 19px; line-height: 24px; }
  h1, h2 { text-wrap: balance; } /* a headline breaks in two even lines ("Makati to Baguio / toll: ₱1,245"), never a lone price on line two */

  /* header: 56 px, navy gradient, rounded bottom corners like the app's bar, no blur */
  .top { background: linear-gradient(180deg, var(--navy-3), var(--navy)); border-bottom: 0; border-radius: 0 0 22px 22px; }
  .top .wrap { gap: 8px; }
  .brand { margin-right: auto; font-size: 17px; line-height: 1; letter-spacing: 1px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .top .act { display: none; }
  .menu summary { margin-right: -12px; } /* the 44 px button reaches into the gutter so its glyph ends on the page's right edge line */
  .menu summary:active { background: rgba(255, 255, 255, .12); }
  .brand:active { opacity: .85; }
  .app-link { display: inline-flex; align-items: center; flex: none; position: relative; min-height: 44px; padding: 0 8px; color: var(--mint); font: 600 15px/1 var(--text); text-decoration: none; }
  .app-link.cap { min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--green-fill); color: #fff; font-size: 14px; font-weight: 700; }
  .app-link.cap::after { content: ""; position: absolute; inset: -5px 0; } /* 44 px tall hit area; sideways it already is 100 px, so the 8 px gap to the menu button stays */
  .app-link:active { opacity: .8; }

  /* menu: a drop-down sheet from under the header (absolute inside the sticky header, never fixed) with a scrim */
  html.menu-open .top { border-radius: 0; }
  .menu-sheet { max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain;
    padding: 4px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: var(--card); border: 0; border-radius: 0 0 24px 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 36px rgba(6, 12, 24, .3); }
  .menu-sheet a { position: relative; gap: 12px; min-height: 56px; color: var(--ink); font-size: 17px; line-height: 22px; border-bottom: 1px solid var(--line); }
  .menu-sheet a::after { content: ""; flex: none; margin-left: auto; width: 20px; height: 20px; background: currentColor; opacity: .5; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
  .menu-sheet a:active { background: var(--paper); border-radius: 12px; border-bottom-color: transparent; box-shadow: -12px 0 0 var(--paper), 12px 0 0 var(--paper); }   /* pressed: a soft rounded row that reaches 12 px past the text on both sides, hairline hidden */
  .menu-sheet a[aria-current="page"] { color: var(--green-ink); }
  .menu-sheet a[aria-current="page"]::before { content: ""; position: absolute; left: calc(-1 * max(16px, env(safe-area-inset-left))); top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green-ink); }
  .menu-sheet .menu-app { margin-top: 12px; padding: 10px 12px; min-height: 64px; border: 0; border-radius: 16px; background: var(--paper); }
  .menu-sheet .menu-app img { flex: none; width: 36px; height: 36px; border-radius: 9px; }
  .menu-sheet .menu-app span { display: grid; gap: 2px; min-width: 0; }
  .menu-sheet .menu-app b { font-weight: 700; font-size: 17px; line-height: 20px; }
  .menu-sheet .menu-app small { font-weight: 400; font-size: 14px; line-height: 18px; color: var(--ink-3); text-wrap: balance; }
  /* footer: 34 px logo like the header's spec, pressed rows */
  .foot .brand img { width: 34px; height: 34px; }
  .foot-links li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); } /* rows are 48 px touching rows: a hairline says where one ends (above every row from the third, so any number of links works) */
  .foot-links a:active, .credits summary:active { background: rgba(255, 255, 255, .08); border-radius: 10px; }
  /* the floating "Toll calculator" pill is a desktop thing: calc.js builds it only from 900 px, and on a phone nothing floats except the trip dock */
  .calc-pill { display: none; }

  /* ── the trip dock (home, trip and road pages; spec 3.4): a slim navy bar rooted to the bottom edge (like the app's own sheet: nothing shows through under it) that says the trip,
     its total and the class once the calculator has scrolled up under the header. calc.js builds it (one button, so one target) and copies the main card's own words into it;
     it slides in over 160 ms and is hidden while the calculator is in view, near the final band, the footer and the app section, with a menu, sheet or keyboard open, while a
     shared link is still loading, and on a phone on its side. ── */
  .dock { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-width: 560px; margin-inline: auto;
    display: flex; align-items: center; gap: 10px; box-sizing: border-box; min-height: calc(60px + env(safe-area-inset-bottom));
    padding: 7px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));   /* 15 + the 1 px border: the name starts on the page's 16 px text edge */
    border: 1px solid rgba(255, 255, 255, .22); border-bottom: 0; border-radius: 22px 22px 0 0;
    background: #1b3258; color: #fff; box-shadow: 0 -2px 10px rgba(6, 12, 24, .14), inset 0 1px 0 rgba(255, 255, 255, .08);   /* one step lighter than the navy sections and a stronger edge, so it reads as a bar over them; a tight shadow (a wide one left a grey haze on the cards behind) */ font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none;
    visibility: hidden; opacity: 0; transform: translateY(18px); transition: transform .16s ease-out, opacity .16s ease-out, visibility 0s .16s; }
  .dock.on { visibility: visible; opacity: 1; transform: none; transition: transform .16s ease-out, opacity .16s ease-out; }
  .dock.on:active { background: var(--navy-3); transition-duration: .08s; }   /* a bar rooted to the edge presses in colour (a scale would open gaps at its sides) */
  .noanim .dock, .noanim .dock.on { transition: none; }
  html.q .dock, html.menu-open .dock, html.ss-lock .dock, html.pop-open .dock { visibility: hidden; opacity: 0; transition: none; }   /* a held shared link, the menu, the sheet: at once, with no slide */
  .dock:focus-visible { outline: 2px solid var(--mint); outline-offset: -4px; }
  .dk-t { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dk-n { display: grid; grid-template-columns: minmax(0, auto) max-content minmax(0, auto); justify-content: start; font: 600 15px/20px var(--text); }   /* one line, both places on show: a long From and a long To each give way (an ellipsis at their own end) and share what is left evenly, a short one keeps its whole name */
  .dk-f, .dk-d { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dk-to { margin: 0 4px; white-space: nowrap; }
  .dk-bar { display: flex; gap: 2px; width: 120px; max-width: 100%; height: 6px; }
  .dk-bar span { flex: 1 1 0; min-width: 0; border-radius: 999px; background: var(--autosweep); }
  .dk-bar .e { background: var(--easytrip); }
  .dk-v { flex: none; display: grid; justify-items: end; text-align: right; }
  .dk-p { font: 800 24px/28px var(--head); font-variant-numeric: tabular-nums; }
  .dk-c { font: 600 13px/14px var(--text); color: var(--on-navy-2); white-space: nowrap; }   /* "Class 2", "Class 3", or "Example" while the card still shows the example trip */
  .dk-c:empty { display: none; }
  .dk-go { flex: none; display: grid; place-items: center; min-width: 96px; height: 44px; padding: 0 14px; border: 1px solid rgba(126, 232, 198, .6); border-radius: 14px; background: var(--green-deep); font: 700 16px/20px var(--text); white-space: nowrap; }
  .dock:active .dk-go { background: #0b5242; }
  html:has(body[data-dock]) { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }   /* a focused control scrolls clear of the dock */
  @media (max-width: 359.98px) { .dock { gap: 8px; padding-left: max(12px, env(safe-area-inset-left)); } .dk-go { min-width: 88px; padding: 0 10px; } }
  @media (max-height: 480px) and (orientation: landscape) { .dock { display: none; } html:has(body[data-dock]) { scroll-padding-bottom: 0; } }   /* on its side a phone has 56 px of header and no room for a bar: the card is one short swipe up, the menu has a Calculator row */

  html.menu-open .menu-scrim, .menu-scrim.leaving { display: block; position: absolute; z-index: 1; top: 100%; left: 0; right: 0; height: 100vh; height: 100dvh; background: rgba(6, 12, 24, .5); }


  /* the calculator hero sits on paper: the navy lives in the header, the card, the map and the footer. Intro, then the card, then the map band. */
  section.hero { padding: 20px 0 0; overflow: visible; color: var(--ink); background: var(--paper); }
  section.hero.trip-hero { padding-top: 16px; }
  .hero::before { display: none; }
  .hero h1 { color: var(--ink); text-shadow: none; }
  .hero .sub { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 22px; }

  /* the final band on phones: an inset card on the paper page (16 px from the edges, paper above and below), never a full-bleed slab: a navy slab straight on top of the
     navy footer read as one block with two app tiles in it. The footer carries the tile, so the card has none. Home: a navy card with a white action; every other page:
     the same navy card with one line and one link (it stays navy so the Apple badge, which is white artwork, works in it after launch). */
  .final { padding: 24px 0; background: transparent; }
  .final.compact { padding: 16px 0 24px; }
  .final .fin { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: 16px; padding: 20px; border-radius: 20px; background: var(--navy); }
  .final .fin-ic { display: none; }
  .final .fin-txt h2 { line-height: 30px; }
  .final .fin-txt p { margin-top: 4px; }
  .final.compact .fin { grid-template-columns: minmax(0, 1fr); grid-template-areas: "txt" "act"; gap: 0; padding: 14px 16px 6px; border-radius: 16px; }
  .final.compact .fin-txt p { margin: 0; font-size: 16px; line-height: 22px; }
  .final.compact .fin-act .badge { margin-bottom: 8px; }
  .final .btn.ghost { flex: 1 1 100%; background: #fff; color: var(--navy); border-color: #fff; }
  /* the app section's close: the status is quiet text, the one action is a full-width solid button (a dashed box over an outlined pill read as two weak buttons) */
  .app-store { display: grid; justify-items: start; }
  .app-store .status-box { min-height: 0; padding: 0; border: 0; }
  .app-store .btn.ghost { justify-self: stretch; background: var(--green-fill); color: #fff; border-color: transparent; }
  .btn, h1, h2 { letter-spacing: 0; }   /* spec 2.5: no tracking except the wordmark */
  @media (min-width: 600px) { .app-store .btn.ghost, .final .btn.ghost { flex: 0 0 auto; justify-self: start; min-width: 280px; } }   /* on a tablet the button does not run 700 px wide */

  /* the trip card: the app's navy card on the paper page, 12 px from the screen edges */
  .calc, .roadpg .calc, .calc-sec .calc { margin-inline: -4px; padding: 14px; border: 0; border-radius: 24px; }
  [data-theme="dark"] :is(.calc, .roadpg .calc, .calc-sec .calc) {
    --c-bg: #172947; --c-ink: #fff; --c-ink-2: #c3cde0; --c-ink-3: #9fb0cc; --c-line: rgba(255, 255, 255, .12); --c-inset: #0f1c36; --c-field: rgba(255, 255, 255, .35);
    --c-a: #ffb25c; --c-e: #62b8f6; --c-lbl: var(--mint); --c-link: var(--mint); --c-tile: #f3f6fa; --c-tile-ink: #101c33; --t-a: #8a4a00; --t-e: #0b63a8;
    --c-btn: rgba(255, 255, 255, .08); --c-press: rgba(255, 255, 255, .07); --c-flash: rgba(126, 232, 198, .16); --c-tip: #22365e;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .1);
    --c-tile: #22365e; --c-tile-ink: #fff; --t-a: #ffb25c; --t-e: #62b8f6;
  }
  [data-theme="dark"] .calc .tile { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
  .calc > .tchips, .calc > .tchips-w { display: none; }   /* the cards' chips only: the search sheet's popular trips row shows on phones too */
  /* the map band under the card: the legend is a strip in the map's own navy, attached under the frame (as an overlay it sat on pins and labels near the lower left), so map and legend are one band */
  .trip-map svg { border-radius: 0; box-shadow: none; }
  .hero .trip-map { margin-top: 10px; }   /* 24 px of paper between the card and the map: room for the card's shadow to end before the map starts */
  .trip-legend { width: auto; min-height: 40px; margin: 0; gap: 18px; padding: 0 16px; align-items: center; justify-content: flex-start; background: #0a1830; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #fff; }
  .trip-legend span { gap: 6px; }
  .trip-legend i { width: 14px; height: 14px; border-radius: 50%; }
  @media (min-width: 480px) {
    /* from 480 px the band is a rounded block on the card's edges, not a full-width strip (a full-width map at tablet width would blow its labels up) */
    .trip-map { margin-inline: -4px; border-radius: 24px; overflow: hidden; box-shadow: 0 12px 28px rgba(8, 20, 44, .28); }
  }
  @media (min-width: 600px) {
    /* the card and the map are one column of at most 560 px, on the left edge of the text */
    .calc, .roadpg .calc, .calc-sec .calc { width: 100%; max-width: 560px; margin-inline: 0; }
    .hero-grid .trip-map { width: 100%; max-width: 560px; margin-inline: 0; }
  }

  @media (min-width: 720px) {
    /* tablet: the menu is a dropdown card on the right (its edge on the page's 28 px gutter) instead of a full-width sheet; headings step up from the phone scale */
    .menu-sheet { left: auto; right: max(28px, env(safe-area-inset-right)); width: 380px; border-radius: 0 0 24px 24px; }
    h1, .hero h1, .page-hero h1, .doc h1 { font-size: 40px; line-height: 42px; }
    h2, .doc h2, .roadpg h2 { font-size: 30px; line-height: 34px; }
  }

  /* ── Stage 7: the pages on a phone ── */
  section, section.tight { padding: 32px 0; }
  section.tight + section.tight { padding-top: 0; }   /* two plain sections in a row are 32 px apart, not 64 */
  .head h2 { text-wrap: balance; }
  .head p { font-size: 15px; line-height: 22px; }
  .d-only { display: none; }
  /* the page header sits on paper like the home intro: a back link, the H1, one lead (desktop keeps the navy band) */
  .page-hero { padding: 4px 0 8px; overflow: visible; background: none; color: var(--ink); }
  .page-hero::before { display: none; }
  .page-hero h1 { color: var(--ink); }
  .page-hero .lead { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
  .crumbs { flex-wrap: wrap; font-size: 14px; line-height: 20px; color: var(--ink-2); }
  .crumbs a { color: var(--green-ink); }
  .page-hero .chips { margin-top: 6px; }
  .page-hero .chips .chip, .page-hero .chip.a, .page-hero .chip.e { padding: 0; background: none; font-size: 15px; line-height: 22px; letter-spacing: 0; text-transform: none; }
  .page-hero .chip.a { color: var(--autosweep-ink); }
  .page-hero .chip.e { color: var(--easytrip-ink); }
  .tf-ans { margin-top: 14px; border-color: var(--line); background: var(--card); box-shadow: var(--shadow); }
  .tf-k, .tf-cls small, .tf-foot { color: var(--ink-3); }
  .tf-route, .tf-cls b { color: var(--ink); }
  .tf-cls span { background: var(--paper); }
  section.tlist { padding-top: 8px; }
  .doc { padding: 4px 0 40px; }
  .doc h2 { margin-top: 28px; }
  .doc .lead, .doc p, .doc ul, .doc ol { font-size: 16px; line-height: 25px; }
  .doc .meta, .doc .review { font-size: 14px; line-height: 20px; }
  .doc .fine { font-size: 14px; line-height: 20px; }
  .doc p a[href^="mailto:"] { display: inline-block; padding: 12px 0; margin: -12px 0; }   /* a 44 px tall hit area for an address that stands alone in its line */
  .doc-w .head + .prose { margin-top: 10px; }
  .cls-note { font-size: 14px; line-height: 20px; }
  .calc-sec .trip-map { margin-top: 10px; }
  .calc-sec .head h2 { margin-bottom: 4px; }

  /* the questions: one grouped list, a chevron that turns, 16/25 answers */
  .faq-list { gap: 0; max-width: none; margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
  details.qa { position: relative; border: 0; border-radius: 0; box-shadow: none; background: none; }
  details.qa + details.qa::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
  details.qa summary { min-height: 56px; padding: 10px 16px; font: 600 17px/22px var(--text); }
  details.qa summary:active { background: var(--paper); }
  details.qa summary::after { width: 20px; height: 20px; border-radius: 0; background: currentColor; opacity: .5; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transform: rotate(90deg); }
  details.qa[open] summary::after { transform: rotate(-90deg); }
  details.qa .ans { padding: 0 16px 16px; font-size: 16px; line-height: 25px; }
  .faq-list .qa-all { position: relative; display: flex; justify-content: space-between; min-height: 56px; padding: 0 16px; font: 600 17px/22px var(--text); text-decoration: none; }
  .faq-list .qa-all::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
  .faq-list .qa-all::after { content: ""; width: 20px; height: 20px; background: currentColor; opacity: .5; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
  .faq-list .qa-all:active { background: var(--paper); }
  .faq-list .cta { padding: 0 16px 8px; }
  .doc .faq-list { margin-top: 16px; }

  /* the network map on a page: full bleed and navy like the route map, the caption under it, 11 px labels or more at every width */
  .netmap { margin: 0 -16px; padding: 0 0 12px; }
  .netmap .cap { margin: 8px 16px 0; font-size: 13px; line-height: 18px; text-align: left; }
  .side .head { margin-bottom: 12px; }
  .kv > div:last-child { border-bottom: 1px solid var(--line); }
  .app-strip { margin-top: 0; }
  @media (min-width: 720px) {
    .page-hero { padding-bottom: 12px; }
    .page-hero .lead { font-size: 17px; line-height: 25px; }
    .netmap { margin: 0; max-width: 540px; padding: 0 0 12px; }
    .calc-sec .trip-map { max-width: 560px; margin-inline: 0; }
  }
  @media (max-width: 719.98px) { .glist > .lrow.all { margin-top: 0; } }
}
@media (max-width: 379.98px) {
  .calc .res-total b { font-size: 58px; }
}
@media (max-width: 369.98px) {
  .calc .tile { padding: 8px 6px 8px 12px; } /* "Load on Autosweep" needs about 125 px: the tile's inside is 132 px at 340 to 369, so the pair stays side by side down to 340 */
  .calc .tl { font-size: 13.5px; }
}
@media (max-width: 359.98px) {
  h1, .hero h1, .page-hero h1, .doc h1 { font-size: 30px; line-height: 32px; }
  .calc .cls button { padding-left: 10px; font-size: 14px; }
  .calc .cls .ci { width: 27px; padding: 0 8px 0 3px; }
  .calc .res-row { grid-template-columns: auto; justify-content: center; gap: 2px; }   /* under 360 px the two stack, centred */
  .calc .res-row > .cls, .calc .res-row .one-q { justify-self: center; text-align: center; }
}
@media (max-width: 339.98px) {
  .calc .res-total b { font-size: 52px; }
  .calc .tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 349.98px) {
  /* the via line keeps "via Buendia" and drops the road (", Skyway 3"), and 6 px of right padding (the magnifier ends 38 px from the edge) */
  .calc .fld { padding-right: 46px; }
  .calc .fld .vr { display: none; }
}
@media (max-width: 349.98px) {
  /* post-launch capsule needs about 350 px of header: below that it is the plain mint text link (88 px) */
  .app-link.cap { min-height: 44px; padding: 0 8px; background: none; color: var(--mint); font-size: 15px; font-weight: 600; }
  .app-link.cap::after { content: none; }
}
@media (max-width: 339.98px) {
  .app-link { display: none; }
}
@media (max-width: 349.98px) { .hdr-badge { display: none; } }   /* Apple's badge is 120 px at its 40 px minimum: on a 320 px phone it would cut the name; the menu's App Store row is the way in there */
/* Support page: Email support + Read the FAQ side by side (2026-12-01). */
.help-acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── the light look (the default; owner, 2 Dec 2026: "lighter to look at and not dark") ──────────────────────────────────────────────
   The header, the hero bands, the trip card and the maps go light; the final app band and the footer stay navy, as the page's anchor at the end.
   Everything here is scoped to "not dark", so the dark look is the site exactly as it was. */
html:not([data-theme="dark"]) { background: var(--paper); }
html:not([data-theme="dark"]) .top { background: #fff; border-bottom: 1px solid var(--line); }
html:not([data-theme="dark"]) .top .brand { color: var(--navy); }
html:not([data-theme="dark"]) .nav a { color: var(--ink-2); }
html:not([data-theme="dark"]) .nav a:hover, html:not([data-theme="dark"]) .nav a[aria-current="page"] { color: var(--ink); }
html:not([data-theme="dark"]) .menu summary { color: var(--ink); }
html:not([data-theme="dark"]) .bars::before, html:not([data-theme="dark"]) .bars::after { background: var(--ink); }
html:not([data-theme="dark"]) .app-link { color: var(--green-ink); }
@media (max-width: 899.98px) {
  html:not([data-theme="dark"]) .top { border-bottom: 0; box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(16, 28, 51, .07); }
  html:not([data-theme="dark"]).menu-open .top { box-shadow: none; }
  html:not([data-theme="dark"]) .menu summary:active { background: var(--paper); }
  html:not([data-theme="dark"]) .menu-sheet { box-shadow: inset 0 1px 0 var(--line), 0 18px 36px rgba(16, 28, 51, .16); }
  html:not([data-theme="dark"]) .menu-scrim { background: rgba(16, 28, 51, .28); }
}
/* the hero bands of the wide screens (phones already put them on paper) */
html:not([data-theme="dark"]) .hero, html:not([data-theme="dark"]) .page-hero { color: var(--ink); }
@media (min-width: 900px) {
  html:not([data-theme="dark"]) .hero, html:not([data-theme="dark"]) .page-hero {
    background: radial-gradient(60% 70% at 8% -10%, rgba(33, 140, 219, .10), transparent 65%), radial-gradient(45% 55% at 100% 100%, rgba(36, 158, 122, .10), transparent 70%), linear-gradient(180deg, #e8eff7, var(--paper)); }
}
html:not([data-theme="dark"]) .hero::before, html:not([data-theme="dark"]) .page-hero::before { display: none; }
html:not([data-theme="dark"]) .hero h1, html:not([data-theme="dark"]) .page-hero h1 { color: var(--navy); text-shadow: none; }
html:not([data-theme="dark"]) .hero .sub, html:not([data-theme="dark"]) .page-hero .lead, html:not([data-theme="dark"]) .crumbs { color: var(--ink-2); }
html:not([data-theme="dark"]) .crumbs a { color: var(--ink); }
html:not([data-theme="dark"]) .hero .chip.a, html:not([data-theme="dark"]) .page-hero .chip.a { color: var(--autosweep-ink); background: var(--autosweep-bg); }
html:not([data-theme="dark"]) .hero .chip.e, html:not([data-theme="dark"]) .page-hero .chip.e { color: var(--easytrip-ink); background: var(--easytrip-bg); }
/* the trip card: white on the paper page, a hairline and a soft shadow */
html:not([data-theme="dark"]) .calc { box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(16, 28, 51, .09); }
/* the maps: pale sea, light land, navy words with a white halo; the roads keep their colours on a white casing */
html:not([data-theme="dark"]) .trip-map svg { background: #cfe2f3; }
html:not([data-theme="dark"]) .bm-water, html:not([data-theme="dark"]) .bm-lake { fill: #cfe2f3; }
html:not([data-theme="dark"]) .bm-land { fill: #f8fafc; }
html:not([data-theme="dark"]) .bm-coast { stroke: rgba(70, 120, 175, .55); }
html:not([data-theme="dark"]) .bm-lake { stroke: rgba(70, 120, 175, .45); }
html:not([data-theme="dark"]) .bm-admin { stroke: rgba(60, 80, 115, .2); }
html:not([data-theme="dark"]) .bm-lbl { fill: rgba(40, 55, 82, .78); stroke: rgba(255, 255, 255, .85); }
html:not([data-theme="dark"]) .bm-lbl.bm-wat { fill: rgba(40, 100, 165, .72); }
html:not([data-theme="dark"]) .bm-cdot { fill: rgba(40, 55, 82, .6); }
html:not([data-theme="dark"]) .trip-map .casing { stroke: #fff; }
html:not([data-theme="dark"]) .trip-map .casing { filter: drop-shadow(0 0 1px rgba(16, 28, 51, .35)); }
html:not([data-theme="dark"]) .trip-map .link { stroke: rgba(23, 41, 71, .55); }
html:not([data-theme="dark"]) .trip-map text { fill: var(--navy); stroke: rgba(255, 255, 255, .92); }
html:not([data-theme="dark"]) .trip-map .pw { stroke: #fff; }
html:not([data-theme="dark"]) .trip-legend { color: var(--ink-2); }
html:not([data-theme="dark"]) .netmap { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
html:not([data-theme="dark"]) .netmap .cap { color: var(--ink-2); }
html:not([data-theme="dark"]) .netmap text.pl, html:not([data-theme="dark"]) .netmap text.rl { fill: var(--navy); stroke: rgba(255, 255, 255, .9); }
html:not([data-theme="dark"]) .netmap .lc { stroke: #fff; }
html:not([data-theme="dark"]) .netmap .d { stroke: #fff; }
@media (min-width: 720px) {
  html:not([data-theme="dark"]) .trip-map svg { box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(16, 28, 51, .12); }
  html:not([data-theme="dark"]) .netmap svg { box-shadow: 0 0 0 1px var(--line); }
}
@media (max-width: 899.98px) {
  html:not([data-theme="dark"]) .trip-legend { background: #fff; border-top: 1px solid var(--line); }
}
@media (min-width: 480px) and (max-width: 899.98px) {
  html:not([data-theme="dark"]) .trip-map { box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(16, 28, 51, .1); }
}

/* Apple's two badge artworks where a surface changes with the look: black on light, white on dark */
.badge .b-d { display: none; }
[data-theme="dark"] .badge .b-l { display: none; }
[data-theme="dark"] .badge .b-d { display: block; }

/* the switch: a row in the phone menu, a moon in the desktop bar */
.theme-btn { display: none; }
@media (min-width: 900px) {
  .theme-btn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-left: 14px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--on-navy-2); cursor: pointer; }
  .theme-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .theme-btn[aria-pressed="true"] { color: var(--mint); }
  html:not([data-theme="dark"]) .theme-btn { color: var(--ink-2); }
  html:not([data-theme="dark"]) .theme-btn:hover { background: var(--paper); color: var(--ink); }
  .top .theme-btn + .act { margin-left: 8px; }
}
.menu-theme { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 600 17px/22px var(--text); text-align: left; cursor: pointer; }
.menu-theme svg { flex: none; color: var(--ink-3); }
.menu-theme span { flex: 1; }
.menu-theme .sw { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--field-line); transition: background-color .18s ease-out; }
.menu-theme .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s ease-out; }
.menu-theme[aria-checked="true"] .sw { background: var(--green-fill); }
.menu-theme[aria-checked="true"] .sw::after { transform: translateX(18px); }
.noanim .menu-theme .sw, .noanim .menu-theme .sw::after { transition: none; }
@media (prefers-reduced-motion: reduce) { .menu-theme .sw, .menu-theme .sw::after { transition: none; } }

/* the language switch (owner, 2 Dec 2026): on phones a small pill floats at the top right, just under the header, and stays there while the page
   scrolls (second review that day: no row of its own); from 900 px it sits in the bar */
.lang { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: 600 14px/1 var(--text); white-space: nowrap; }
.lang svg { flex: none; }
.langbar { position: fixed; left: 0; right: 0; top: calc(var(--hdr-h, 56px) + 10px); z-index: 19; pointer-events: none; }   /* under the header (z 20), its menu and every sheet */
.langbar .wrap { display: flex; justify-content: flex-end; padding-top: 0; padding-bottom: 0; }
.lang-pill { position: relative; min-height: 32px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--card);
  box-shadow: 0 1px 2px rgba(16, 28, 51, .06), 0 6px 16px rgba(16, 28, 51, .12); pointer-events: auto; }
[data-theme="dark"] .lang-pill { border-color: rgba(255, 255, 255, .14); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
@media (max-width: 359.98px) {   /* 320 px: the word alone, and the home heading 2 px smaller, so "Magkano ang toll?" clears the pill */
  .lang-pill { padding: 0 11px; } .lang-pill svg { display: none; }
  .hero h1 { font-size: 28px; }
}
.lang-pill::after { content: ""; position: absolute; inset: -7px -4px; }   /* a 44 px tall target around the 30 px pill */
.lang-pill:active { background: var(--paper); }
.hdr-lang { display: none; }
@media (min-width: 900px) {
  .langbar { display: none; }
  .hdr-lang { display: inline-flex; min-height: 34px; margin-left: 18px; padding: 0 12px 0 10px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 999px; color: var(--on-navy-2); }
  .hdr-lang:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
  html:not([data-theme="dark"]) .hdr-lang { border-color: var(--field-line); color: var(--ink-2); }
  html:not([data-theme="dark"]) .hdr-lang:hover { color: var(--ink); border-color: var(--ink-3); }
  .hdr-lang + .theme-btn { margin-left: 6px; }
}
/* the swap (owner, 2 Dec 2026: subtler): the pill holds still while only its word cross-fades; the page under it is a short plain fade, no slide;
   the route map opens drawn (calc.js armMap). html.ls comes from the head script, only on the page a language tap opened. */
@media (prefers-reduced-motion: no-preference) {
  .lang-pill, .hdr-lang { view-transition-name: lang-switch; }
  ::view-transition-group(lang-switch) { animation-duration: 0s; }
  ::view-transition-old(lang-switch), ::view-transition-new(lang-switch) { animation-duration: .16s; }
  html.ls::view-transition-old(root) { animation: vt-out .14s linear both; }
  html.ls::view-transition-new(root) { animation: vt-fade .16s linear both; }
}
@keyframes vt-fade { from { opacity: 0; } }
html.ls .trip-map:not([data-arm]) :is(.rt, .casing) { animation: none !important; stroke-dashoffset: 0 !important; }
html.ls .trip-map:not([data-arm]) .fade { animation: none !important; opacity: 1 !important; }

/* toll matrix pages (owner, 2 Dec 2026). Phones: the entry picker and its exit list first (name, then Class 1, 2 and 3 side by side, nothing sideways),
   then the full grid in its own scroller (both headers stay put), the class pills above it and, once a fare is tapped, a navy bar that stays at the
   bottom of the screen with the trip and "Open in the calculator". */
section.mxpg { border-top: 1px solid var(--line); }   /* the road page's matrix: a part of its own after the facts and the app strip */
.mxpg .wrap > .blk { margin-top: 28px; }
.mxpg .wrap > .head + .blk { margin-top: 20px; }
.mxhub .wrap > .blk { margin-top: 36px; }
.mxpg h2 { font-size: 1.6rem; }
.mxhub h2 { font-size: 1.4rem; }
.mxpg h3 { font: 800 1.2rem/1.15 var(--head); color: var(--ink); }
.mx-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 6px; font-weight: 700; color: var(--green-ink); text-decoration: none; }
.mx-link::after { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.mx-entry { display: grid; gap: 6px; max-width: 560px; margin-top: 14px; }
.mx-entry > span:first-child { font: 600 14px/18px var(--text); color: var(--ink-3); }
.mx-selw { position: relative; display: block; }
.mx-selw::after { content: ""; position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--ink-3); transform: rotate(90deg); pointer-events: none;
                  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.mx-sel { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 50px; margin: 0; padding: 0 46px 0 14px; border: 1.5px solid var(--field-line); border-radius: 14px;
          background: var(--card); color: var(--ink); font: 700 17px/1.2 var(--text); cursor: pointer; }
.mx-list { max-width: 560px; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.mx-lh, .mx-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 58px); column-gap: 6px; align-items: center; padding: 0 14px; }
.mx-lh { min-height: 36px; background: var(--paper); border-bottom: 1px solid var(--line); font: 600 12px/14px var(--text); color: var(--ink-3); }
.mx-lh span + span, .mx-row span { text-align: right; }
.mx-row { min-height: 48px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.mx-row:first-child { border-top: 0; }
.mx-row b { padding: 6px 0; font-size: 15px; font-weight: 600; line-height: 19px; }
.mx-row span { font-size: 15px; font-weight: 600; }
.mx-row span:nth-of-type(1) { font-weight: 800; }
.mx-row:active { background: var(--paper); }
@media (hover: hover) { .mx-row:hover { background: var(--paper); } }
@media (max-width: 359.98px) {
  .mx-lh, .mx-row { grid-template-columns: minmax(0, 1fr) repeat(3, 48px); column-gap: 4px; padding: 0 12px; }
  .mx-row b, .mx-row span { font-size: 14px; }
}
.mx-cls { display: inline-flex; gap: 4px; margin-top: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.mx-cls button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 14px/1 var(--text); cursor: pointer; }
.mx-cls button[aria-pressed="true"] { background: var(--green-fill); color: #fff; }
.mx-scroll { position: relative; max-height: min(78vh, 760px); margin-top: 12px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 16px;
             background: var(--card); box-shadow: var(--shadow); }
.mx-scroll:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.mx { --on: #e3f3ec; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 18px; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .mx { --on: #123430; }
.mx th, .mx td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.mx td { height: 40px; min-width: 62px; padding: 0 10px; text-align: right; white-space: nowrap; color: var(--ink); cursor: pointer; }
.mx td.me { background: repeating-linear-gradient(135deg, var(--card) 0 6px, var(--line) 6px 7px); cursor: default; }
.mx td.nx { background: var(--paper); cursor: default; }
.mx thead th { position: sticky; top: 0; z-index: 2; min-width: 78px; max-width: 104px; padding: 8px 10px; vertical-align: bottom; text-align: right; font: 600 12px/15px var(--text); color: var(--ink-2); }
.mx tbody th { position: sticky; left: 0; z-index: 1; min-width: 132px; max-width: 160px; padding: 6px 12px; text-align: left; font: 600 13px/16px var(--text); color: var(--ink); }
.mx thead .mx-corner { left: 0; z-index: 3; text-align: left; vertical-align: bottom; }
.mx-corner span { display: block; font-size: 11px; line-height: 14px; color: var(--ink-3); }
.mx-corner span:first-child::after { content: " \2193"; }
.mx-corner span + span::after { content: " \2192"; }
@media (hover: hover) { .mx tbody tr:hover > td[data-f], .mx tbody tr:hover > th { background: var(--on); } }
.mx .on { background: var(--on); }
.mx td.hit, .mx tbody tr:hover > td.hit { background: var(--green-fill); color: #fff; font-weight: 800; }   /* over the row's hover tint too (the mouse is still on it) */
.mx-pick { position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 10px 10px 16px;
           border-radius: 16px; background: var(--navy); color: var(--on-navy); box-shadow: 0 12px 30px rgba(16, 28, 51, .28); }
.mx-pick[hidden] { display: none; }
.mx-pick p { margin: 0; min-width: 0; font-size: 15px; line-height: 20px; }
.mx-route { display: block; font-weight: 700; }
.mx-pc { margin-right: 8px; color: var(--on-navy-2); }
.mx-amt { color: #fff; font-weight: 800; }
.mx-open { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--green-fill); color: #fff; font-weight: 700; text-decoration: none; }
.mx-flat { max-width: 420px; margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.mx-frow { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border-top: 1px solid var(--line); font-weight: 600; }
.mx-frow:first-child { border-top: 0; }
.mx-frow b { font-size: 20px; font-variant-numeric: tabular-nums; }
