/* The Alphard page (alphardpage.py, rebuilt 18 Nov 2026 to the Toyota Commuter page's standard; the layout is Jev's):
   fleet.css + commuter.css (its cm-* pieces, unchanged) + these. Hero with three photos from different cars · the wall of our real Alphards ·
   six angles · outside photos · the line-up · luggage · the seat map · real cabins · new or previous model · prices with the old tables ·
   the four clips · the closing block · on phones the slim booking bar. */

/* 1 · hero: an MPV is wider than it is tall, so the main photo sits on top across the box and the other two share the row under it */
.al-hero .cm-hero-photos.al-hero-photos{grid-template-columns:1fr 1fr;grid-template-rows:auto auto;aspect-ratio:auto}
.al-hero .cm-hp.main{grid-column:1/3;grid-row:1;aspect-ratio:16/10}
.al-hero .cm-hp:not(.main){aspect-ratio:1/1}
.al-hero .cm-hp.main img{object-position:42% 55%}
.al-lead{margin:0 0 12px;font-size:15.5px;line-height:1.8;color:#d7e2dd;max-width:62ch}
/* the old "The car" card's tag and one line (fleet-content.json, review 18 Nov 2026) */
.al-card{margin:0 0 12px;font-size:14.5px;line-height:1.75;color:#c9d6d0;max-width:62ch}
.al-tag{display:inline-block;margin-right:6px;padding:1px 10px;border:1px solid #f0c98559;border-radius:999px;background:#f0c9851a;color:#f6d79c;font-size:12.5px;font-weight:600;line-height:1.7;white-space:nowrap;vertical-align:1px}
.al-feats{list-style:none;margin:0 0 4px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.al-feats li{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 13px;border:1px solid #f0d49a40;border-radius:999px;background:#ffffff08;font-size:13.5px;line-height:1.35;color:#efe6cf}
.al-feats .fl-ic{flex:none}
.cm-stats.al-stats{grid-template-columns:repeat(3,minmax(0,1fr))}

/* 2 · the wall: square cards (an Alphard photo is wide; 4:5 cut the cars), three to a row so the first six fill two rows */
.al-cars .cm-van-photo{aspect-ratio:1/1}
@media(min-width:1101px){.cm-vans.al-cars{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}}

/* 3 · every angle: six tiles, three to a row (two on phones), each naming its model */
.cm-views.al-views{grid-template-columns:repeat(3,minmax(0,1fr))}
.al-model{display:inline-block;margin-left:6px;padding:1px 9px;border:1px solid #f0c98559;border-radius:999px;background:#f0c9851a;font-style:normal;font-size:12px;font-weight:500;line-height:1.6;color:#f6d79c;vertical-align:2px;white-space:nowrap}

/* 4 · outside photos · 5 · the line-up strip · 12 · trip photos */
.al-grid .cm-lp .fl-zoom{aspect-ratio:4/3}
.al-lineup{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.al-lineup .cm-lp .fl-zoom{aspect-ratio:4/3}
.al-trips .cm-lp .fl-zoom{aspect-ratio:1/1}
.al-trips{grid-template-columns:repeat(3,minmax(0,1fr))}

/* 6 · luggage: three steps (two bands of the booking system, then the Commuter or a second car) */
.cm-lug-steps.al-lug-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
.al-ls-link{display:inline-flex;align-items:center;gap:6px;min-height:40px;margin-top:2px;font-size:14px;text-decoration:none!important}
.al-ls-link:hover{text-decoration:underline!important}

/* 7 · the seat map: the Alphard is shorter than the Commuter (viewBox 172 × 300), its doors on both sides */
.al-map{max-width:150px;margin:0 auto}

/* 10 · prices: the old page's two tables, in full, under the tiles */
.al-sub{font-size:20px;font-weight:500;line-height:1.4;color:#f1ede2;margin:34px 0 14px;scroll-margin-top:96px}
.al-scroll{overflow-x:auto}
.al-table .al-num{white-space:nowrap;font-variant-numeric:tabular-nums}
.al-table tbody th a{color:#e7cd95;text-decoration:none}
.al-table tbody th a:hover{text-decoration:underline}
.al-table thead th{font-size:20px}

/* 13 · the four clips: all four in a row on a computer, a swipe row with about two on screen on a phone */
.al-videos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:start}
.al-video{margin:0;min-width:0;display:flex;flex-direction:column}
.al-video video{display:block;width:100%;height:auto;aspect-ratio:9/16;border-radius:22px;border:1px solid #f0d49a40;background:#0d1b1f;box-shadow:0 30px 60px -40px #000}
.al-video figcaption{font-size:14px;line-height:1.6;color:#dfe8e4;margin-top:10px}
.al-watch{display:inline-flex;align-items:center;gap:6px;min-height:40px;font-size:13.5px;text-decoration:none!important}
.al-watch:hover{text-decoration:underline!important}

/* 14 · on the day: the live-map part of the sample trip page (the whole screen named a Toyota Commuter) */
.cm-day-shot.al-day-shot{max-width:360px}
.al-day-shot img{border-radius:18px}

/* headings balance their lines (with the NOWRAP words of alphardpage.py); Korean headings break only between words, Japanese ones between
   phrases where the browser can (word-break:auto-phrase; elsewhere the normal Japanese breaks) — "スーツケ / ース", "캡틴 시 / 트" before */
.al-main h3{text-wrap:balance}
.al-main :is(h1,h2,h3):lang(ko){word-break:keep-all}
.al-main :is(h1,h2,h3):lang(ja){word-break:auto-phrase}

/* 15 · who: the old four in one row on a computer */
@media(min-width:1101px){.cm-main .cm-who.al-who{grid-template-columns:repeat(4,minmax(0,1fr))}}

@media(max-width:1100px){
  .al-videos{grid-template-columns:repeat(2,minmax(0,1fr))}
  .al-lineup{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .al-hero .cm-hero-photos.al-hero-photos{max-width:none}
  .alphard-view .glass-site>footer{padding-bottom:calc(180px + env(safe-area-inset-bottom))}
  .cm-day-shot.al-day-shot{max-width:340px}
}
@media(max-width:760px){
  .al-trips{grid-template-columns:repeat(2,minmax(0,1fr))}
  .al-trips .cm-lp .fl-zoom{aspect-ratio:3/4}
  .al-grid .cm-lp .fl-zoom{aspect-ratio:4/3}
}
@media(max-width:600px){
  .al-hero .cm-hp.main{aspect-ratio:4/3}
  .al-lead{font-size:14.5px;line-height:1.75}
  .al-card{font-size:13.5px;line-height:1.7}
  .al-feats{gap:6px}
  .al-feats li{min-height:32px;padding:0 11px;font-size:13px}
  .cm-stats.al-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .cm-stats.al-stats li{padding:9px 9px}
  .cm-stats.al-stats b{font-size:18px}
  .cm-stats.al-stats span{font-size:12px}
  .cm-views.al-views{grid-template-columns:repeat(2,minmax(0,1fr))}
  .al-model{margin:3px 0 0;display:table}
  .cm-lug-steps.al-lug-steps{grid-template-columns:1fr}
  .cm-lug-steps.al-lug-steps li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px}
  .cm-lug-steps.al-lug-steps .cm-ls-pax{grid-column:1/-1}
  .al-lineup{gap:10px}
  .al-sub{font-size:18px;margin-top:28px}
  .al-table .al-num{white-space:normal}
  /* the old tables stay whole on a phone but compact: one card per destination with its three figures side by side, and the hourly
     packages as a plain three-column table */
  .al-table.al-oneway tr{grid-template-columns:.85fr 1fr 1.3fr}
  .al-table.al-oneway td{padding:4px 12px 12px;font-size:13.5px}
  .al-table.al-oneway td::before{font-size:11px}
  .al-table.al-oneway tbody th{padding:12px 12px 2px}
  .al-table.al-hourly{display:table;width:100%;table-layout:fixed}
  .al-table.al-hourly thead{display:table-header-group}
  .al-table.al-hourly tbody{display:table-row-group}
  .al-table.al-hourly tr{display:table-row}
  .al-table.al-hourly th,.al-table.al-hourly td{display:table-cell;padding:10px 14px;font-size:14px;white-space:nowrap;border-bottom:1px solid #ffffff10}
  .al-table.al-hourly thead th{font-size:15px;white-space:normal}
  .al-table.al-hourly tbody th{width:auto;color:#e7cd95}
  .al-table.al-hourly tbody tr:last-child>*{border-bottom:0}
  .al-table.al-hourly td::before{content:none}
  .al-videos{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin-right:-16px;padding:0 16px 6px 0}
  .al-video{flex:0 0 46%;scroll-snap-align:start}
  .al-video video{border-radius:16px}
  .al-video figcaption{font-size:13px}
  .al-map{max-width:118px}
}

/* the header phone pair when footer.js stacks it (np-stack: this page's menu is wider) — 6px apart so each number is a 24px tap target (Lighthouse target-size · 19 Nov 2026, as singapore.css) */
.nav-contact .nav-phones.np-stack{gap:6px}
