/* PN Honda (Honda motorcycle dealer) site layer — built on the Modernist tokens in ds.css.
   Flat, flush-left, 2px rules, zero radius. No inline styles in the views (CSP). */

:root {
  --font-heading: "Archivo", "Noto Sans Thai", system-ui, sans-serif;
  --font-body: "Archivo", "Noto Sans Thai", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --section-gap: clamp(40px, 6vw, 84px);
  --rule: 2px solid var(--color-divider);
  /* accent = Honda motorcycle red (darker steps for hover/active) */
  --color-accent: #e60012;
  --color-accent-600: #b8000e;
  --color-accent-700: #8a000b;
}

html, body { margin: 0; background: var(--color-bg); color: var(--color-text); }
body { text-wrap: pretty; }
button, input, select, textarea { font-family: var(--font-body); }
a { color: var(--color-text); text-decoration: none; }
a:not(.btn):hover { color: var(--color-accent); }
.btn { justify-content: flex-start; text-align: left; }
.tnum { font-feature-settings: "tnum" 1; }
.nowrap { white-space: nowrap; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section-gap); }
.section-end { padding-bottom: var(--section-gap); }

/* — type — */
.kicker {
  display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700); margin-bottom: 14px;
}
.label {
  display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-neutral-700); margin-bottom: 8px;
}
/* Thai stacks vowels and tone marks above the line — 1.06 (the Latin-only
   design value) makes wrapped headings collide, so headings sit at 1.2. */
.h-display, .h-page, .h-section, .h-poster, .h-model { margin: 0; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.h-display { font-size: clamp(34px, 5vw, 64px); max-width: 16ch; }
.h-page { font-size: clamp(34px, 4.6vw, 64px); }
.h-section { font-size: clamp(30px, 3.6vw, 48px); }
.h-sub { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.02em; }
.h-model { font-size: clamp(38px, 5.4vw, 80px); letter-spacing: -0.025em; }
.h-poster { font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -0.015em; max-width: 20ch; }
.h-row { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.h-box { margin: 0 0 8px; font-size: 26px; line-height: 1.3; letter-spacing: -0.01em; }
.copy { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--color-neutral-800); }
.copy-lg { font-size: 16px; }
.intro { max-width: 56ch; margin: 12px 0 36px; }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--color-neutral-700); }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-36 { margin-bottom: 36px; }
.measure-44 { max-width: 44ch; }
.measure-52 { max-width: 52ch; }
.measure-56 { max-width: 56ch; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.title-row { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }

/* — grids — */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 64px; }
.split-start { align-items: start; }
.split-center { align-items: center; }
.gap-16 { gap: 16px; }
.gap-form { gap: 36px 64px; }
.showroom-head { padding-bottom: 36px; }
.showroom-info { padding-top: 36px; }

/* Visible modular grid: the 2px gaps show the divider colour behind the cells. */
.cells { gap: 2px; background: var(--color-divider); border-top: var(--rule); border-bottom: var(--rule); }
.cell { background: var(--color-bg); padding: 24px 20px; }
a.cell:hover { background: var(--color-surface); color: var(--color-text); }

/* — contact strip — */
.topbar { background: var(--color-text); color: var(--color-bg); }
.topbar-inner { padding-block: 8px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.topbar-note { letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.topbar-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; font-weight: 800; font-size: 15px; }
.topbar-call { background: var(--color-accent); color: var(--color-bg); letter-spacing: 0.02em; }
a.topbar-call:hover { background: var(--color-accent-600); color: var(--color-bg); }
.topbar-line { background: var(--color-bg); color: var(--color-text); }
a.topbar-line:hover { background: var(--color-accent-200); color: var(--color-text); }

.social { display: inline-flex; gap: 6px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.social-topbar a { background: color-mix(in srgb, var(--color-bg) 14%, transparent); color: var(--color-bg); }
.social-topbar a:hover { background: var(--color-accent); color: var(--color-bg); }
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-link svg { flex-shrink: 0; }

/* — nav — */
/* light bar: the dealer's own logo lockup is dark on transparent, like Honda's site; the footer stays black */
.site-nav { border-bottom: var(--rule); background: var(--color-bg); position: sticky; top: 0; z-index: 20; }
.site-nav-inner { padding-block: 12px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; flex: 0 1 auto; min-width: 0; color: var(--color-text); }
a.brand:hover { color: var(--color-text); }
/* the dealer's logo lockup (Honda emblem + "Heritage Honda" + Thai name), 328×62 source */
.brand-logo { width: auto; height: 34px; flex-shrink: 0; }
.brand-wordmark { width: auto; height: 42px; flex-shrink: 0; }
.brand-sep { border-left: var(--rule); height: 40px; flex-shrink: 0; }
.site-footer .brand-sep { border-left: 2px solid color-mix(in srgb, var(--color-bg) 30%, transparent); height: 34px; }
.brand-dealer { font-family: var(--font-heading); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; color: var(--color-accent); white-space: nowrap; line-height: 1; }
.menu { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 500; }
.menu a { white-space: nowrap; }
.menu a:not(.btn):hover { color: var(--color-accent); }
.menu a[aria-current="page"] { color: var(--color-accent); }
/* the red CTA on a black bar needs a lighter hover than on the page */
.menu-mobile { display: none; }
.menu-mobile .input { min-width: 150px; }

/* — hero slider — */
.hero { position: relative; background: var(--color-text); overflow: hidden; border-bottom: var(--rule); }
.hero-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-slide { flex: 0 0 100%; min-width: 0; display: block; background: var(--color-surface); }
.hero-slide img { width: 100%; aspect-ratio: 21 / 9; object-fit: contain; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px;
  border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--color-text) 55%, transparent); color: var(--color-bg);
}
.hero-arrow:hover { background: var(--color-accent); }
.hero-arrow:active { background: var(--color-accent-600); }
.hero-prev { left: 0; }
.hero-next { right: 0; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; padding: 0 var(--gutter) 14px; }
/* 4px bar, 24px hit area */
.hero-dot { flex: 1; height: 24px; border: 0; padding: 0; cursor: pointer; background: transparent; position: relative; }
.hero-dot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: color-mix(in srgb, var(--color-text) 22%, transparent);
}
.hero-dot:hover::after { background: color-mix(in srgb, var(--color-text) 45%, transparent); }
.hero-dot[aria-current="true"]::after { background: var(--color-accent); }

/* Brand artwork from mitsubishi-motors.co.th: campaign posters ("ad") stay whole; highlight photos fill 16:9 */
.hero-slide picture { display: block; }
.hero-slide-ad { background: var(--color-text); }
.hero-slide-ad img { aspect-ratio: 16 / 9; object-fit: contain; max-height: min(72vh, 760px); }
.hero-slide-photo { position: relative; background: var(--color-text); }
.hero-slide-photo img { aspect-ratio: 16 / 9; object-fit: cover; max-height: min(72vh, 760px); }
.hero-caption {
  position: absolute; left: 0; bottom: 28px; max-width: min(560px, 82%); pointer-events: none;
  display: flex; flex-direction: column; gap: 6px; margin-left: var(--gutter);
  padding: 18px 22px; background: color-mix(in srgb, var(--color-bg) 92%, transparent); color: var(--color-text);
  border-left: 6px solid var(--color-accent);
}
.hero-caption-kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-700); }
.hero-caption-title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.01em; }
.hero-caption-body { font-size: 14px; line-height: 1.5; color: var(--color-neutral-800); }

.hero-statement { padding-block: clamp(28px, 4vw, 48px); }

/* — quick contact row — */
.quick { border-bottom: var(--rule); }
.quick-grid { gap: 2px; background: var(--color-divider); }
.quick-cell { background: var(--color-bg); padding: 24px 20px; }
.quick-grid > :nth-child(4n + 1) { padding-left: 0; }
.big { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; }
.big-accent { color: var(--color-accent); }
.big-lg { font-size: clamp(26px, 2.6vw, 34px); }
.big-md { font-size: clamp(22px, 2.2vw, 28px); }
.mid { display: block; font-size: 17px; font-weight: 600; line-height: 1.4; }
.sub { display: block; font-size: 14px; color: var(--color-neutral-800); margin-top: 8px; }

/* — model cards (home) — */
.model-card { display: flex; flex-direction: column; gap: 20px; background: var(--color-bg); padding: 28px; }
a.model-card:hover { background: var(--color-surface); color: var(--color-text); }
.model-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tag { white-space: nowrap; flex-shrink: 0; }
.model-card-name { margin: 0; font-size: 28px; letter-spacing: -0.01em; }
.car-img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.car-hero { width: 100%; aspect-ratio: 21 / 9; object-fit: contain; background: var(--color-surface); }
.car-hero-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-surface); }
.spec-price { color: var(--color-accent); }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: var(--rule); padding-top: 16px; }
.stat-pair .label, .stat-trio .label { margin-bottom: 6px; }
.stat { display: block; font-size: 22px; font-weight: 800; }
.stat-accent { color: var(--color-accent); }
.stat-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: var(--rule); padding-top: 16px; margin-bottom: 24px; }
.stat-trio .label { font-size: 11px; }
.stat-trio .stat { font-size: 20px; }
.price-from { font-size: 22px; font-weight: 800; color: var(--color-accent); margin-right: 8px; }

/* — numbered / titled rows — */
.rows { border-top: var(--rule); }
.row { gap: 12px 48px; padding: 24px 0; border-bottom: var(--rule); align-items: baseline; }
.row-lg { padding: 28px 0; }
.row-sm { padding: 20px 0; }
.row-wide { gap: 8px 64px; }
.row-head { display: flex; gap: 20px; align-items: baseline; }
.row-n { font-weight: 800; font-size: 15px; min-width: 28px; }
.row-body { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.row-title-lg { font-size: clamp(22px, 2.2vw, 28px); }
.row-title-sm { font-size: 20px; }
.model-row { gap: 24px 64px; padding: 36px 0; border-bottom: var(--rule); align-items: center; }

/* — promotions — */
.promo { scroll-margin-top: 96px; }
.promo-art { width: 100%; height: auto; border: var(--rule); border-bottom: 0; margin-top: 28px; }
.promo:first-child .promo-art { margin-top: 0; }
.promo-points { margin: 0; padding-left: 18px; font-size: 15.5px; line-height: 1.6; color: var(--color-neutral-800); flex: 1 1 320px; }
.promo-points li + li { margin-top: 4px; }
.promo-terms { flex: 1 1 100%; margin-top: 8px; font-size: 14px; }
.promo-terms summary { cursor: pointer; font-weight: 800; color: var(--color-accent-700); padding: 6px 0; }
.promo-terms summary:hover { color: var(--color-accent); }
.promo-terms .prose { margin-top: 12px; }

/* — news — */
.models-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.grid-3.models-grid > :last-child:nth-child(odd) { grid-column: auto; }
.news-grid { align-items: stretch; }
.news-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.news-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-surface); display: block; }
.news-thumb-wrap { position: relative; display: block; }
/* video posts: frosted round play mark centred on the preview (the one deliberate
   circle in an otherwise square system — it reads as "video" instantly) */
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, #fff 82%, transparent); color: var(--color-text);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 6px color-mix(in srgb, #fff 22%, transparent), var(--shadow-md);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.play-badge svg { width: 26px; height: 26px; margin-left: 4px; }
.news-card:hover .play-badge { background: var(--color-accent); color: var(--color-bg); transform: translate(-50%, -50%) scale(1.08); }
@media (prefers-reduced-motion: reduce) { .play-badge { transition: none; } .news-card:hover .play-badge { transform: translate(-50%, -50%); } }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--color-neutral-700); }
.news-title { margin: 0; font-size: 18px; line-height: 1.4; letter-spacing: -0.005em; }
.news-excerpt { margin: 0; font-size: 14px; line-height: 1.6; color: var(--color-neutral-800); }
/* a row that is not full would show the divider colour in its empty cells */
.news-grid > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.news-grid > :last-child:nth-child(3n + 2) { grid-column: span 2; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.pager-info { font-size: 14px; color: var(--color-neutral-700); margin-inline: auto; }

.article-head { padding-top: 24px; max-width: 1200px; }
.h-article { margin: 0; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.25; letter-spacing: -0.015em; max-width: 28ch; text-wrap: balance; }
.article-cover { margin-top: 28px; }
.article-cover-img { width: 100%; height: auto; max-height: 640px; object-fit: cover; border: var(--rule); }
/* phone photos are often portrait — show them whole instead of cropping heads */
.post-cover { object-fit: contain; background: var(--color-surface); }
.article-body { padding-top: 36px; }
.article-source { border-top: var(--rule); padding-top: 16px; margin-top: 36px; max-width: 72ch; }

/* — showroom post: inline Facebook video — */
/* width follows the clip's shape so a portrait reel never exceeds 80vh */
.fb-video { position: relative; aspect-ratio: 16 / 9; margin-inline: auto; background: var(--color-text); border: var(--rule); overflow: hidden; }
.fb-video-square { aspect-ratio: 1; max-width: 80vh; }
.fb-video-portrait { aspect-ratio: 9 / 16; max-width: 45vh; }
.fb-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fb-video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 16px; background: var(--color-accent); color: var(--color-bg);
}
.fb-video-play:hover { background: var(--color-accent-600); }
.fb-video.is-playing .fb-video-poster, .fb-video.is-playing .fb-video-play { display: none; }

/* — showroom post: photo album — */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--color-divider); border: var(--rule); margin-top: 36px; max-width: 1200px; }
.gallery a { display: block; background: var(--color-surface); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.gallery > :last-child:nth-child(3n + 1) img { aspect-ratio: 21 / 9; }
.gallery > :last-child:nth-child(3n + 2) { grid-column: span 2; }
.post-actions { margin-top: 28px; }

/* Sanitized CMS HTML (news articles, promotion terms) and escaped post text */
.prose { max-width: 72ch; font-size: 16.5px; line-height: 1.8; color: var(--color-neutral-900); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { margin: 1.6em 0 0.5em; font-size: 20px; line-height: 1.4; letter-spacing: -0.005em; text-transform: none; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--color-accent-700); text-decoration: underline; text-underline-offset: 3px; }
.prose img { width: 100%; height: auto; margin: 1.4em 0; border: var(--rule); }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 4px solid var(--color-accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14.5px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--color-divider); padding: 8px 10px; text-align: left; vertical-align: top; }
.promo-terms .prose { font-size: 14.5px; line-height: 1.7; }

/* — after-sales cells — */
.as-cell { padding: 24px 20px 28px; }
.as-big { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 800; color: var(--color-accent); letter-spacing: -0.02em; margin-bottom: 12px; }
.as-title { margin: 0 0 8px; font-size: 17px; }
.as-body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-neutral-800); }
.services { margin-top: 48px; }

/* — embeds — */
.frame { border: var(--rule); }
.frame iframe { border: 0; display: block; width: 100%; }
.frame-fb { background: var(--color-surface); min-height: 500px; }

/* — red poster — */
.poster { background: var(--color-accent); color: var(--color-bg); }
.poster-inner { padding-block: clamp(48px, 6vw, 84px); }
.poster .actions { margin-top: 36px; }
.btn-on-accent { background: var(--color-bg); color: var(--color-text); }
.btn-on-accent:hover { background: var(--color-accent-200); }
.btn-on-accent:active { background: var(--color-accent-300); }
.btn-on-accent-outline { border-color: var(--color-bg); color: var(--color-bg); }
.btn-on-accent-outline:hover { background: color-mix(in srgb, var(--color-bg) 14%, transparent); }
.btn-on-accent-outline:active { background: color-mix(in srgb, var(--color-bg) 24%, transparent); }

/* — model detail: brand sections — */
.model-headline { margin: 20px 0 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; max-width: 30ch; }
.model-headline + .model-tagline { margin-top: 12px; }
.mt-2 { margin-top: 2px; }

.hero-media { position: relative; background: var(--color-text); aspect-ratio: 16 / 9; max-height: min(72vh, 760px); overflow: hidden; }
.hero-media-poster, .hero-media-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media-video { display: none; }
.hero-media.is-playing .hero-media-video { display: block; }
.hero-media.is-playing .hero-media-poster, .hero-media.is-playing .hero-media-play { display: none; }
.hero-media-play {
  position: absolute; left: var(--gutter); bottom: 20px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 14px;
  background: var(--color-bg); color: var(--color-text);
}
.hero-media-play:hover { background: var(--color-accent); color: var(--color-bg); }

.photo-wide { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border: var(--rule); background: var(--color-surface); }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--color-divider); border: var(--rule); }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-surface); }
.photo-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-grid-5 img { aspect-ratio: 3 / 2; }
.photo-grid-5 > :nth-child(4), .photo-grid-5 > :nth-child(5) { grid-column: span 1; }
.photo-grid-5 > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.photo-grid-5 > :last-child:nth-child(3n + 2) { grid-column: span 2; }
.photo-grid-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-grid-masonry img { aspect-ratio: 3 / 2; }
.photo-grid-masonry > :first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid-masonry > :first-child { aspect-ratio: auto; }
/* first tile takes 2x2, the rest flow 3-up; stretch the last tile so no cell stays empty */
.photo-grid-masonry > :last-child:nth-child(3n + 2) { grid-column: span 2; }
.photo-grid-masonry > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.photo-grid-masonry > :last-child:nth-child(3n + 1):not(:first-child) { aspect-ratio: 21 / 9; }

.feature-rows { border-top: var(--rule); }
.feature-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 64px; align-items: center; padding: 36px 0; border-bottom: var(--rule); }
.feature-row-right img { order: 2; }
.feature-row-wide { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; }
.feature-row-wide img { aspect-ratio: 21 / 9; }
.feature-row img.feature-img-wide { aspect-ratio: auto; max-height: 720px; object-fit: contain; background: var(--color-surface); }
.feature-row .kicker { margin-bottom: 8px; }
.feature-text .prose { max-width: 60ch; }
.feature-group { padding: 36px 0; border-bottom: var(--rule); }
/* 2-up grid: an odd last tile stretches across so no cell stays empty */
.photo-grid:not(.photo-grid-5):not(.photo-grid-masonry) > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.feature-row img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border: var(--rule); background: var(--color-surface); }
.feature-text .h-sub { font-size: clamp(24px, 2.6vw, 34px); }

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

.tech-card { padding: 0 0 24px; }
.tech-card .tech-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: 16px; }
.tech-card .as-title, .tech-card .tech-tagline, .tech-card .as-body, .tech-card .fine { padding-inline: 20px; }
.tech-tagline { display: block; font-size: 20px; font-weight: 800; color: var(--color-accent); margin-bottom: 8px; }

/* — model detail — */
.back { padding-top: 24px; }
.model-head { padding-top: 24px; }
.model-tagline { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--color-neutral-800); max-width: 56ch; }
.model-hero { margin-top: 28px; }
.spec-grid { border-bottom: var(--rule); }
.spec { padding: 24px 20px 24px 0; border-top: var(--rule); }
.spec-value { display: block; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.spec-unit { display: block; font-size: 13px; color: var(--color-neutral-700); margin-top: 4px; }
.section-md { padding-top: clamp(40px, 6vw, 72px); }
.section-md-end { padding-bottom: clamp(40px, 6vw, 72px); }
.table-scroll { overflow-x: auto; }
.table .num { text-align: right; }
.table .strong { font-weight: 800; }
.table .price { text-align: right; font-weight: 800; color: var(--color-accent-700); white-space: nowrap; }


.contact-cell { padding: 28px 20px; }
.phone-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-divider); }
.phone-line { font-size: 15px; font-weight: 600; }
.phone-dept { font-weight: 400; color: var(--color-neutral-700); margin-left: 6px; }
.footer-dept { color: var(--color-neutral-700); font-weight: 400; }
.contact-cell .label { margin-bottom: 10px; }
.cell-stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cell-stack .label { margin-bottom: 0; }
.contact-lower { margin-top: 48px; gap: 36px 64px; }
.address { margin: 0; font-size: 16px; line-height: 1.6; }

/* — FAQ — */
.faq { border-top: var(--rule); }
.faq-item { border-bottom: var(--rule); }
.faq-q { cursor: pointer; padding: 18px 0; font-size: 18px; font-weight: 800; letter-spacing: -0.005em; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-weight: 400; color: var(--color-accent); flex-shrink: 0; }
.faq-item[open] .faq-q::after { content: "–"; }
.faq-q:hover { color: var(--color-accent); }
.faq-a { margin: 0; padding: 0 0 20px; font-size: 15.5px; line-height: 1.7; color: var(--color-neutral-800); max-width: 72ch; }

/* — footer — */
/* footer on black, like the nav bar */
.site-footer { background: var(--color-text); color: var(--color-bg); border-top: 2px solid color-mix(in srgb, var(--color-bg) 18%, transparent); }
.site-footer a { color: var(--color-bg); }
.site-footer a:not(.btn):hover { color: var(--color-accent); }
.site-footer .label { color: color-mix(in srgb, var(--color-bg) 62%, transparent); }
.site-footer-inner { padding-block: 36px; }
.footer-grid { gap: 28px 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: auto; }
.footer-brand .brand-logo { height: 30px; }
.footer-brand .brand-wordmark { height: 38px; }
.footer-brand .brand-dealer { font-size: 17px; }
.footer-address { font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--color-bg) 78%, transparent); }
.site-footer .footer-dept { color: color-mix(in srgb, var(--color-bg) 62%, transparent); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col .label { margin-bottom: 4px; }
.footer-col .strong { font-weight: 800; }
.footer-note { margin: 0; font-size: 13px; line-height: 1.6; color: color-mix(in srgb, var(--color-bg) 70%, transparent); }
.footer-legal { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--color-bg) 18%, transparent); font-size: 12px; color: color-mix(in srgb, var(--color-bg) 62%, transparent); }

/* — mobile sticky call / LINE bar — */
.sticky-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-top: var(--rule); }
.sticky-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; color: var(--color-bg); font-weight: 800; font-size: 16px; }
.sticky-bar a:hover { color: var(--color-bg); }
.sticky-call { background: var(--color-accent); }
.sticky-line { background: var(--color-text); }

/* — admin — */
.notice { border: 2px solid var(--color-accent); padding: 28px; }
.admin-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; margin: 12px 0 24px; }

@media (max-width: 1280px) {
  .menu-desktop { display: none; }
  .menu-mobile { display: flex; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .news-grid > :last-child { grid-column: auto !important; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .feature-row-right img { order: 0; }
  .feature-group { padding: 28px 0; }
  .photo-grid-5, .photo-grid-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid-5 > *, .photo-grid-masonry > * { grid-column: auto !important; grid-row: auto !important; }
  .photo-grid-masonry > :first-child { grid-column: 1 / -1 !important; aspect-ratio: 3 / 2; }
  .photo-grid-5 > :last-child:nth-child(odd), .photo-grid-masonry > :last-child:nth-child(even) { grid-column: 1 / -1 !important; }
  .hero-media { max-height: 60vh; }
  .gallery > :last-child { grid-column: auto !important; }
  .gallery > :last-child:nth-child(odd) { grid-column: 1 / -1 !important; }
  .grid-3.models-grid { background: var(--color-bg); gap: 0; }
  .grid-3.models-grid > * + * { border-top: var(--rule); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .quick-grid > :nth-child(4n + 1) { padding-left: 20px; }
  .quick-grid > :nth-child(odd) { padding-left: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .quick-grid > * { padding-left: 0 !important; }
  .topbar-note { display: none; }
  /* call + LINE share one row; the social icons wrap onto a second row */
  .topbar-actions { margin-left: 0; width: 100%; gap: 6px; }
  .topbar-btn { flex: 1 1 40%; min-width: 0; white-space: nowrap; font-size: 13px; padding: 6px 10px; gap: 6px; justify-content: center; }
  /* "@mitsubnt" does not fit beside the phone number on a 360 px screen */
  .topbar-id { display: none; }
  .social-topbar { flex: 1 1 100%; justify-content: center; gap: 8px; }
  .social-topbar a { width: 36px; height: 36px; }
  .sticky-bar { display: flex; }
  .site-footer-inner { padding-bottom: 96px; }
  .site-nav-inner { gap: 10px; }
  .brand { gap: 6px; }
  .brand-logo { height: 26px; }
  .brand-wordmark { height: 32px; }
  .brand-sep { height: 24px; }
  .brand-dealer { font-size: 15px; }
  .menu-mobile .input { min-width: 0; width: 118px; }
  /* 16px stops iOS zooming the page on focus */
  .input { font-size: 16px; min-height: 44px; }
  .btn { min-height: 44px; }
  .model-card { padding: 24px 0; }
  .colors-stage { padding: 12px; }
  .colors-picker { padding: 14px 14px 0; gap: 6px; }
  .colors-name { padding: 10px 14px 16px; }
  .news-card { padding: 20px 0; }
  .cells.news-grid { background: var(--color-bg); gap: 0; }
  .cells.news-grid > * + * { border-top: var(--rule); }
  .prose { font-size: 16px; }
  .cells.models-grid { background: var(--color-bg); gap: 0; }
  .cells.models-grid > * + * { border-top: var(--rule); }
  .stat-trio { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-arrow { width: 36px; height: 48px; }
}

@media (max-width: 360px) {
  .topbar-btn { font-size: 12px; padding: 6px 8px; }
  .topbar-btn svg { display: none; }
  /* tiny phones: logo + dealer wordmark + menu do not fit — keep the brand logo */
  .brand-dealer { display: none; }
  .brand-sep { height: 20px; }
  .brand-wordmark { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: none; }
}


/* ══ brand-section additions ═══════════════════════════════════════════════ */

/* — site-wide notice band (showroom under construction) — */
.notice-band { background: var(--color-accent); color: var(--color-bg); border-bottom: var(--rule); }
.notice-band-inner { padding-block: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: center; }
.notice-band-kicker { color: var(--color-bg); opacity: 0.85; margin-bottom: 6px; grid-column: 1; }
.notice-band-title { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.15; letter-spacing: -0.02em; grid-column: 1; }
.notice-band-body { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; max-width: 70ch; opacity: 0.95; grid-column: 1; }
.notice-band-actions { grid-column: 2; grid-row: 1 / span 3; }
@media (max-width: 900px) {
  .notice-band-inner { grid-template-columns: minmax(0, 1fr); }
  .notice-band-actions { grid-column: 1; grid-row: auto; margin-top: 12px; }
}

/* — model slogan (the brand's English tagline) — */
.model-slogan { display: block; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-700); margin-top: 14px; font-weight: 600; }
.title-row + .model-slogan { margin-top: 18px; }
.hero-media-poster-cutout { object-fit: contain; background: var(--color-surface); }
.stat-unit { font-size: 0.6em; font-weight: 600; color: var(--color-neutral-700); }

/* — campaign strip on a model page — */
.promo-art-model { border: var(--rule); margin-top: 0; height: auto; }
.promo-art-wrap { display: block; }
.promo-actions { margin-top: 12px; flex: 1 1 100%; }

/* — captioned photo grid (design details) — */
.photo-grid-captioned { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-fig { margin: 0; background: var(--color-bg); display: flex; flex-direction: column; }
.photo-fig img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--color-surface); }
.photo-fig figcaption { padding: 14px 18px 18px; font-size: 15px; line-height: 1.55; color: var(--color-neutral-800); }
.photo-grid-captioned > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
.photo-grid-captioned > :last-child:nth-child(odd):not(:first-child) img { aspect-ratio: 21 / 9; }

/* — specification categories — */
.spec-cats { border-top: var(--rule); }
.spec-cat { border-bottom: var(--rule); }
.spec-cat-title { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; font-family: var(--font-heading); font-weight: 800; font-size: 18px; letter-spacing: -0.005em; }
.spec-cat-title::-webkit-details-marker { display: none; }
.spec-cat-title::after { content: "+"; font-weight: 400; color: var(--color-accent); margin-left: auto; }
.spec-cat[open] .spec-cat-title::after { content: "–"; }
.spec-cat-title:hover { color: var(--color-accent); }
.spec-cat-count { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--color-neutral-700); }
.spec-cat .table-scroll { padding-bottom: 20px; }
.spec-table { font-size: 14px; }
.spec-table th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 800; color: var(--color-text); }
.spec-table td { vertical-align: top; }
.spec-row-title { width: 44%; color: var(--color-neutral-800); }
.spec-table td.yes { color: var(--color-accent-700); font-weight: 600; }
.spec-table td.no { color: var(--color-neutral-500); }

/* — awards / why Mitsubishi — */
.awards-grid { align-items: stretch; }
.award { padding: 0 0 24px; }
.award-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 16px; background: var(--color-surface); }
.award .as-title, .award .as-body { padding-inline: 20px; }
.awards-grid > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.awards-grid > :last-child:nth-child(3n + 2) { grid-column: span 2; }

/* — service pages (warranty tables, brochures, manuals) — */
.svc-cards { align-items: stretch; }
.svc-card { display: flex; flex-direction: column; gap: 12px; padding: 0 0 20px; }
.svc-card-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--color-surface); border-bottom: var(--rule); }
.svc-card-icon { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--color-surface); color: var(--color-accent); border-bottom: var(--rule); }
.svc-card .as-title, .svc-card .as-body { padding-inline: 20px; margin: 0; }
.svc-card .btn-ghost { margin: auto 20px 0; align-self: flex-start; }
.svc-cards > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.svc-cards > :last-child:nth-child(3n + 2) { grid-column: span 2; }
.svc-images { display: grid; gap: 36px; }
.svc-fig { margin: 0; }
.svc-fig img { width: 100%; height: auto; border: var(--rule); background: #fff; }
.svc-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--color-neutral-700); }
.file-row { align-items: center; }
.file-head { display: flex; align-items: center; gap: 20px; }
.file-car { width: 150px; aspect-ratio: 16 / 9; object-fit: contain; flex-shrink: 0; }
.file-model { display: inline-block; margin-top: 4px; }
@media (max-width: 640px) {
  .file-car { width: 110px; }
  .grid-3.svc-cards { background: var(--color-bg); gap: 0; }
  .grid-3.svc-cards > * + * { border-top: var(--rule); }
  .svc-cards > * { grid-column: auto !important; }
}

/* — brand film (YouTube, tap-to-load) — */
.frame-video { position: relative; aspect-ratio: 16 / 9; background: var(--color-text); max-width: 960px; }
.frame-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 16px; background: var(--color-accent); color: var(--color-bg);
}
.yt-play:hover { background: var(--color-accent-600); }
.frame-video.is-playing .yt-play { display: none; }

@media (max-width: 900px) {
  .photo-grid-captioned { grid-template-columns: minmax(0, 1fr); }
  .photo-grid-captioned > * { grid-column: auto !important; }
  .photo-grid-captioned > * img { aspect-ratio: 3 / 2 !important; }
  .awards-grid > * { grid-column: auto !important; }
  .grid-3.awards-grid { background: var(--color-bg); gap: 0; }
  .grid-3.awards-grid > * + * { border-top: var(--rule); }
  .hero-caption { max-width: calc(100% - 2 * var(--gutter)); bottom: 32px; padding: 12px 14px; }
  .hero-caption-body { display: none; }
  .spec-row-title { width: 50%; }
}
@media (max-width: 640px) {
  /* portrait campaign artwork the brand made for phones shows whole */
  .hero-slide-ad img.has-mobile { aspect-ratio: auto; max-height: 80vh; width: 100%; }
  .hero-caption { bottom: 30px; }
  .hero-caption-title { font-size: 17px; }
  .dims { gap: 20px; }
}


/* ══ Mitsu BNT additions ═══════════════════════════════════════════════════ */

/* — two branches — */
.branches-grid { align-items: stretch; }
.branch-card { padding: 24px 20px 28px; }
.branch-card .label { margin-bottom: 10px; }
.branch-card .big { margin-top: 4px; }
.quick-cell .sub { margin-top: 6px; }

/* — home: the brand's campaign tiles — */
.showcase-grid { align-items: stretch; }
.showcase-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; padding: 0; align-items: stretch; }
.showcase-img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; background: var(--color-surface); }
.showcase-text { padding: 20px 20px 20px 0; display: flex; flex-direction: column; }
.showcase-text .btn-ghost { margin-top: auto; align-self: flex-start; }
.award-sub { display: block; padding-inline: 20px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 6px; }
.award-link { display: inline-block; padding-inline: 20px; margin-top: 10px; }
.prose-sm { max-width: none; }
.prose-sm p, .prose-sm ul { margin: 0 0 0.6em; }
.prose-sm ul { padding-left: 18px; }

/* — model page: highlights in the spec strip, sub-models, variants — */
.spec-list { padding-right: 0; }
.spec-points { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--color-neutral-800); }
.spec-points li + li { margin-top: 4px; }
.submodels-grid { align-items: stretch; }
.submodel-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.submodel-card .car-img { aspect-ratio: 16 / 9; }
.submodel-card .as-title { font-size: 20px; margin: 4px 0 0; }
.submodel-card .as-body { flex: 1; }
.submodel-card .btn-ghost { align-self: flex-start; }
.submodels-grid > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.submodels-grid > :last-child:nth-child(3n + 2) { grid-column: span 2; }
.variants-grid { align-items: stretch; }
.variant-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.variant-name { margin: 8px 0 0; font-size: 22px; letter-spacing: -0.01em; }
.variant-card .promo-points { flex: 1; font-size: 14px; }
.variant-card .btn { align-self: flex-start; }
.variants-grid > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.variants-grid > :last-child:nth-child(3n + 2) { grid-column: span 2; }
.grid-2.variants-grid > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
.spec-sub td { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-700); padding-top: 14px; border-bottom: 0; }
.frame-video-wide { max-width: none; }
.file-cover { width: 110px; aspect-ratio: 3 / 4; object-fit: cover; border: var(--rule); flex-shrink: 0; background: var(--color-surface); }
.article-cover-whole { max-height: none; object-fit: contain; background: var(--color-surface); }
.contact-links { gap: 10px; font-size: 15px; }

/* — preview model (not on the brand's list yet) — */
.preview-note { border-left: 6px solid var(--color-accent); padding: 14px 18px; background: var(--color-surface); max-width: 60ch; }
.preview-note .copy { max-width: none; }

/* — finance calculator — */
.finance { margin-top: 8px; }
.finance-form { display: flex; flex-direction: column; gap: 22px; }
.finance-field { display: block; }
.finance-field .input { width: 100%; box-sizing: border-box; }
.finance-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border: 2px solid var(--color-divider); background: var(--color-bg); color: var(--color-text); cursor: pointer; }
.chip:hover { border-color: var(--color-neutral-500); }
.chip.is-on { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-bg); }
.finance-result .cell { padding: 20px; }
.finance-result .big { margin-top: 2px; }

@media (max-width: 900px) {
  .submodels-grid > *, .variants-grid > * { grid-column: auto !important; }
  .grid-3.submodels-grid, .grid-3.variants-grid { background: var(--color-bg); gap: 0; }
  .grid-3.submodels-grid > * + *, .grid-3.variants-grid > * + * { border-top: var(--rule); }
  .showcase-card { grid-template-columns: minmax(0, 1fr); }
  .showcase-img { aspect-ratio: 16 / 9; }
  .showcase-text { padding: 0 20px 20px; }
}
@media (max-width: 640px) {
  .grid-2.branches-grid, .grid-2.showcase-grid, .grid-2.variants-grid { background: var(--color-bg); gap: 0; }
  .grid-2.branches-grid > * + *, .grid-2.showcase-grid > * + *, .grid-2.variants-grid > * + * { border-top: var(--rule); }
  .submodel-card, .variant-card, .branch-card { padding-inline: 0; }
  .award-sub, .award-link { padding-inline: 0; }
  .finance-result .grid-2 { background: var(--color-bg); gap: 0; }
  .finance-result .grid-2 > * + * { border-top: var(--rule); }
  .finance-result .cell { padding-inline: 0; }
}

/* — model page: body colours (swatches drive the big picture; see public/js/site.js) — */
.colors { display: grid; gap: 16px; }
.colors-stage { background: var(--color-surface); border: var(--rule); display: flex; align-items: center; justify-content: center; min-height: 240px; }
.colors-car { width: 100%; max-width: 960px; height: auto; display: block; }
.colors-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.colors-name { font-family: var(--font-heading); font-weight: 800; font-size: 18px; }
.colors-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.colors-swatch { width: 44px; height: 44px; padding: 0; border: 2px solid var(--color-divider); background: var(--color-bg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.colors-swatch img { width: 36px; height: 36px; object-fit: cover; display: block; }
.colors-swatch-blank { width: 36px; height: 36px; background: var(--color-neutral-300); display: block; }
.colors-swatch:hover, .colors-swatch.is-on { border-color: var(--color-accent); }
.colors-swatch:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* model-page card grids: the brand mixes landscape and portrait pictures — crop them to one shape so rows stay even */
.cards-grid .award-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---- PN Honda: motorcycle dealer additions ---- */

/* logo = Honda wing + the dealer's Thai wordmark (220×20 original) */
.brand-logo { height: 40px; }
.brand-wordmark { height: 20px; }
.footer-brand .brand-logo { height: 34px; }
.footer-brand .brand-wordmark { height: 18px; }

/* model cards: cut-out on white, grouped by the brand's categories */
.moto-cat + .moto-cat { margin-top: 36px; }
.moto-cat-title { font-family: var(--font-heading); font-weight: 800; font-size: 20px; margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; }
.cells.moto-grid { background: none; border: 0; gap: 12px; }
.moto-grid .moto-card { border: var(--rule); position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; color: var(--color-text); }
.moto-grid .moto-card:hover .moto-name { color: var(--color-accent); }
.moto-img { width: 100%; aspect-ratio: 43 / 30; object-fit: contain; display: block; margin-bottom: 6px; }
.moto-img-blank { background: var(--color-surface); }
.moto-name { font-family: var(--font-heading); font-weight: 800; font-size: 18px; margin: 0; line-height: 1.25; }
.moto-price { font-weight: 800; color: var(--color-accent); }
.moto-new { position: absolute; top: 12px; left: 12px; z-index: 1; }

.cat-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.cat-jump .chip { display: inline-flex; gap: 6px; }

/* Thai Honda banners: 1920×768 desktop, 750×900 phone artwork — shown whole, never cropped */
.hero-slide-promo { background: var(--color-text); }
.hero-slide-promo img { aspect-ratio: 1920 / 768; object-fit: cover; }
.model-hero .car-hero-photo { aspect-ratio: 1920 / 768; }
@media (max-width: 640px) {
  .hero-slide-promo img.has-mobile, .model-hero .car-hero-photo.has-mobile { aspect-ratio: 750 / 900; }
}

/* branches */
.branch-cell { display: flex; flex-direction: column; gap: 6px; }
.branch-name { font-family: var(--font-heading); font-weight: 800; font-size: 17px; margin: 0; line-height: 1.3; }
.branch-phone { margin-top: 4px; }
.branch-map { align-self: flex-start; margin-top: auto; padding-left: 0; }
.showroom-cell { display: flex; flex-direction: column; }
.frame-map-sm iframe { display: block; border: 0; width: 100%; height: 220px; }
.frame-map-sm { position: relative; height: 220px; }
.frame-map-sm .map-frame { position: absolute; inset: 0; }
.frame-map-sm[data-map-state="on"] .map-open { visibility: hidden; }
.map-open { width: 100%; height: 220px; border: 0; cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--color-accent);
  background: repeating-linear-gradient(45deg, var(--color-surface) 0 12px, var(--color-neutral-200) 12px 24px); }
.map-open-place { color: var(--color-text); font-weight: 600; font-size: 15px; }
.map-open-cta { font-weight: 800; font-size: 14px; padding: 6px 14px; background: var(--color-accent); color: var(--color-bg); }
.map-open:hover .map-open-cta { background: var(--color-accent-600); }
/* .branch-name resets margin, so the gap under the map is set here (the view's mt-12 loses to it) */
.showroom-cell .branch-name { margin-top: 20px; }

.promo-cell { display: flex; flex-direction: column; gap: 6px; }
.promo-cell .tag { align-self: flex-start; }

@media (max-width: 900px) {
  .grid-3.showroom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .brand-logo { height: 32px; }
  .brand-wordmark { height: 16px; }
  .moto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moto-name { font-size: 16px; }
  .moto-grid .moto-card { padding: 16px 12px; }
  .grid-3.showroom-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .brand-wordmark { height: 13px; }
}
