/* ==========================================================
   STV Trader — Global styles (Apple-inspired)
   ========================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-alt: #161617;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-light: #f5f5f7;
  --text-light-secondary: #a1a1a6;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link-light: #2997ff;
  --border: #d2d2d7;
  --brand: #37AABA;
  --brand-yellow: #FFC930;
  --nav-bg: #37AABA;                         /* ด้านบนสุดของหน้า: สีทึบ */
  --nav-bg-scrolled: rgba(55, 170, 186, 0.6); /* เมื่อเลื่อนลง: โปร่งแสงเห็นภาพด้านหลัง */

  --nav-height: 48px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1024px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Thai",
          "Noto Sans Thai", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }

/* ================= Global Nav ================= */
.globalnav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.4s var(--ease);
}
.globalnav.is-scrolled { background: var(--nav-bg-scrolled); }

.globalnav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.globalnav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 8px;
  margin-left: -8px;
  color: #fff;
  transition: opacity 0.3s var(--ease);
}
.globalnav-logo:hover { opacity: 1; }
.globalnav-logo svg { width: 26px; height: 18px; }

/* Desktop: the list's items join the logo as direct flex items of the nav,
   so justify-content: space-between gives the SAME gap between every item — logo included. */
.globalnav-list {
  display: contents;
  opacity: 0; /* no effect under display:contents; stops the mobile overlay fading out when the window shrinks past the breakpoint */
}

.globalnav-list > li > a {
  display: block;
  padding: 0 8px;
  line-height: var(--nav-height);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s var(--ease);
}
.globalnav-list > li > a:hover,
.globalnav-list > li > a[aria-current],
.has-flyout:hover > a { color: #fff; }
.nav-top { cursor: default; user-select: none; } /* top-level items only open their dropdown for now */
.nav-top:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 8px; }

/* ----- Dropdown flyouts (desktop): full-width panel under the nav ----- */
.nav-flyout {
  position: absolute;          /* the sticky header is the containing block */
  top: calc(100% - 1px);       /* 1px overlap hides a sub-pixel seam under the bar */
  left: 0;
  right: 0;
  background: var(--nav-bg);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.has-flyout:hover > .nav-flyout,
.has-flyout:focus-within > .nav-flyout {
  visibility: visible;
  opacity: 1;
  z-index: 2;
  transition-delay: 0s;
}

.nav-flyout-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 22px 44px;       /* left edge lines up with the logo */
}
.nav-flyout-inner > * {
  transform: translateY(-6px);
  transition: transform 0.35s var(--ease);
}
.has-flyout:hover .nav-flyout-inner > *,
.has-flyout:focus-within .nav-flyout-inner > * { transform: none; }

.flyout-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}
.nav-flyout li a {
  display: inline-block;
  padding: 3px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
.nav-flyout li a:hover { text-decoration: underline; }

/* keep the bar solid while a flyout is open so bar + panel read as one surface */
@media (min-width: 834px) {
  .globalnav:has(.has-flyout:hover),
  .globalnav:has(.has-flyout:focus-within) { background: var(--nav-bg); }
}

/* dim + blur the page behind an open flyout */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
body:has(.has-flyout:hover) .nav-scrim,
body:has(.has-flyout:focus-within) .nav-scrim {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.globalnav-toggle {
  display: none;
  width: 44px;
  height: var(--nav-height);
  margin-right: -12px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.globalnav-toggle span {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 1.5px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.globalnav-toggle span:first-child { top: 20px; }
.globalnav-toggle span:last-child  { top: 27px; }

/* ================= Shared type & CTAs ================= */
.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.headline {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.subhead {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-top: 10px;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }

.link-arrow {
  font-size: 17px;
  color: var(--accent);
}
.link-arrow::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translate(3px, -1px) rotate(45deg); }
.link-light { color: var(--link-light); }

/* ================= Hero ================= */
.hero {
  background: var(--brand);
  line-height: 0;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.nw { white-space: nowrap; } /* keep a word (e.g. เอสทีวี) from breaking mid-word */

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

/* ================= Products banner ================= */
.banner {
  padding: 100px 22px 56px;
  text-align: center;
}
.banner-light { background: var(--bg-alt); }

.banner-content { max-width: 720px; margin: 0 auto; }

.product-row {
  max-width: 1200px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: block;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 28px 24px 32px;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.product-card h3 { font-size: 21px; font-weight: 600; margin-top: 20px; }
.product-card p  { font-size: 15px; line-height: 1.55; color: var(--text-secondary); margin-top: 6px; }

.product-visual {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
  background: #fff;
  border: 1px solid #ececf0;
}
.product-visual img {
  /* every logo fits the same box as the Michelin wordmark: full width, ~half height,
     so the round Continental badge no longer looks much bigger than the others */
  max-width: 100%;
  max-height: 50%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.pv-dunlop { background: #F7D800; border-color: #F7D800; } /* matches the logo's own yellow */
.product-card:hover .product-visual img { transform: scale(1.05); }

/* ================= Slideshow ================= */
.slideshow {
  padding: 12px 12px 0;
  background: var(--bg);
}

.slideshow-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #111;
  touch-action: pan-y;
}

.slideshow-track {
  display: flex;
  height: 100%;
  transition: transform 0.9s var(--ease);
}

.slide { flex: 0 0 100%; height: 100%; }
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* review-post slides: photo + caption, the whole slide links to the article */
.slide-post { overflow: hidden; }
.slide-post a { position: relative; display: block; height: 100%; color: #fff; }
.slide-post img { transition: transform 0.8s var(--ease); }
.slide-post a:hover img { transform: scale(1.03); }
.slide-post a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 70%);
}
.slide-caption {
  position: absolute;
  left: clamp(20px, 6%, 72px);
  bottom: clamp(20px, 12%, 96px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 60%;
}
.slide-tag {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 700;
}
.slide-title { font-size: clamp(20px, 3.6vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.slide-sub { font-size: clamp(13px, 1.6vw, 21px); color: rgba(255, 255, 255, 0.85); }
.slide-cta {
  margin-top: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 600;
  transition: background 0.2s;
}
.slide-cta::after { content: "›"; margin-left: 6px; }
/* hover: plain solid shade change, like the ดูสินค้าทั้งหมด button (the photo still zooms) */
.slide-post a:hover .slide-cta { background: #2b909e; }
/* branded artwork (title already in the photo): no dark gradient, caption tucked bottom-right */
.slide-post-branded a::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%); }
.slide-post-branded .slide-caption { left: auto; right: clamp(20px, 5%, 64px); align-items: flex-end; flex-direction: row; gap: 10px; }
.slide-post-branded .slide-cta { margin-top: 0; }
.slide-post-p5e a::after { display: none; } /* light artwork: no dark fade */
.slide-post-p5e .slide-caption { bottom: 22%; } /* sit above the Michelin logo / QR code */
.slide-post a:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0 6px;
}
.slideshow.is-single .slideshow-controls { display: none; }

.slideshow-dots { display: flex; gap: 10px; }
.slideshow-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #c7c7cc;
  cursor: pointer;
  transition: width 0.4s var(--ease), background 0.4s var(--ease);
}
.slideshow-dot:hover { background: #8e8e93; }
.slideshow-dot[aria-current="true"] { width: 28px; background: var(--text); }

.slideshow-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #e8e8ed;
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.slideshow-toggle:hover { background: #dcdce1; }
.slideshow-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.slideshow-toggle .icon-play { display: none; }
.slideshow.is-paused .slideshow-toggle .icon-play { display: block; }
.slideshow.is-paused .slideshow-toggle .icon-pause { display: none; }

/* ================= Tiles grid ================= */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--bg);
}

.tile {
  position: relative;
  min-height: 580px;
  padding: 56px 32px 0;
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Tile color themes — each tile reads these variables */
.tile-teal {   /* white text, white button */
  --tile-bg: var(--brand);
  --tile-fg: #fff;
  --tile-muted: rgba(255, 255, 255, 0.88);
  --tile-btn-bg: #fff;
  --tile-btn-fg: #1f6f7a;
  --tile-btn-hover: #f0fafb;
}
.tile-yellow { /* dark text, dark button */
  --tile-bg: var(--brand-yellow);
  --tile-fg: var(--text);
  --tile-muted: rgba(29, 29, 31, 0.75);
  --tile-btn-bg: var(--text);
  --tile-btn-fg: #fff;
  --tile-btn-hover: #000;
}
.tile { background: var(--tile-bg); color: var(--tile-fg); }
.tile .eyebrow,
.tile .tile-sub { color: var(--tile-muted); }
.tile .btn-primary { background: var(--tile-btn-bg); color: var(--tile-btn-fg); }
.tile .btn-primary:hover { background: var(--tile-btn-hover); }
.tile .link-arrow,
.tile .tile-icon { color: var(--tile-fg); }

.tile-title,
.section-title {
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.tile-sub {
  font-size: 19px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.tile-icon {
  margin-top: auto;
  padding: 48px 0 64px;
  opacity: 0.9;
}
.tile-icon svg {
  width: 150px;
  height: 150px;
  transition: transform 0.6s var(--ease);
}
.tile:hover .tile-icon svg { transform: scale(1.06); }

/* Two phrase-lines: short on top, longer below — each line stays whole */
.tile-sub-phrases span { display: inline-block; } /* wrap between phrases, not inside them */
.tile-sub-balanced span { display: inline-block; }
.tile-sub-balanced span:first-child { display: block; }

/* Photo tile: image fills the whole tile, white text on a dark top scrim.
   Extra `article` raises specificity above the mobile odd/even color swap. */
.tiles > article.tile.tile-photo {
  --tile-bg: #2b2b2b;
  --tile-fg: #fff;
  --tile-muted: rgba(255, 255, 255, 0.9);
  --tile-btn-bg: #fff;
  --tile-btn-fg: var(--text);
  --tile-btn-hover: #f0f0f2;
}
.tile-photo > *:not(.tile-bg) { position: relative; z-index: 1; }
.tile-photo .eyebrow,
.tile-photo .tile-title,
.tile-photo .tile-sub,
.tile-photo .link-arrow { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }

.tile-bg { position: absolute; inset: 0; z-index: 0; }
.tile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transition: transform 0.8s var(--ease);
}
.tile-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 34%, rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0) 68%);
}
.tile-photo:hover .tile-bg img { transform: scale(1.04); }

/* ================= Inner pages (shared) ================= */
.page-hero {
  padding: 64px 22px 36px;
  text-align: center;
  background: var(--bg);
}
.page-hero .eyebrow { font-size: 14px; margin-bottom: 8px; }
.page-heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.page-heading-note {
  display: inline-block;
  font-weight: 400;
  color: var(--text-secondary);
}
.page-sub {
  max-width: 640px;
  margin: 10px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.page-sub span { display: inline-block; } /* wrap between address parts, not inside them */
.page-hero .cta-links { margin-top: 20px; }
.page-hero .btn,
.page-hero .link-arrow { font-size: 15px; }
.page-hero .btn { padding: 9px 18px; }

.section-heading {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.2;
}
.section-note {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ================= Map page ================= */
.map-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 12px;
}
.map-figure {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.map-figure img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease);
}
.map-figure:hover img { transform: scale(1.015); }
.map-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.call-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 12px 40px;
  text-align: center;
  scroll-margin-top: var(--nav-height);
}
.call-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* compact row card: icon on the left, label + number stacked beside it */
.call-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  text-align: left;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.2s var(--ease);
}
.call-card:hover {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}
.call-card:active { transform: scale(0.98); }
.call-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.call-icon svg { width: 18px; height: 18px; fill: currentColor; }
.call-text { display: flex; flex-direction: column; line-height: 1.35; }
.call-label { font-size: 13px; color: var(--text-secondary); }
.call-number {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ----- LINE Official Account ----- */
.line-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 12px 96px;
}
.line-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 44px 56px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.line-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #06C755; /* LINE green */
  color: #fff;
}
.line-badge svg { width: 26px; height: 26px; fill: currentColor; }

.line-id {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 24px;
  padding: 12px 12px 12px 18px;
  border-radius: 14px;
  background: #fff;
}
.line-id-label { font-size: 13px; color: var(--text-secondary); }
.line-id-value {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.line-copy {
  padding: 6px 14px;
  border: 0;
  border-radius: 980px;
  background: var(--bg-alt);
  font: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.line-copy:hover { background: #e8e8ed; }
.line-copy.is-copied { background: #06C755; color: #fff; }

.line-add {
  display: block;
  width: fit-content;
  margin-top: 20px;
  transition: opacity 0.2s var(--ease);
}
.line-add:hover { opacity: 0.85; }
.line-add img { display: block; height: 36px; width: auto; }

.line-qr {
  margin: 0;
  padding: 16px 16px 12px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}
.line-qr img { display: block; width: 200px; height: 200px; }
.line-qr figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ================= Support page ================= */
.support-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 12px 96px;
}
.support-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}

/* ----- left: info panel ----- */
.support-info {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.info-block + .info-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.info-title { font-size: 19px; font-weight: 600; line-height: 1.35; }
.info-address {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.info-address span { display: block; }
.info-link { display: inline-block; margin-top: 10px; font-size: 15px; }
.info-heading {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.info-list { display: grid; gap: 6px; }
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.2s var(--ease);
}
.info-row:hover { background: #fff; }
.info-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.info-icon svg { width: 16px; height: 16px; fill: currentColor; }
.info-row-text {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.info-row-text small { font-size: 12px; font-weight: 400; color: var(--text-secondary); }

.info-line-body { display: flex; align-items: center; gap: 16px; }
.info-line-qr {
  flex: none;
  width: 104px;
  height: 104px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
}
.info-line-id { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.info-line .line-copy { background: #fff; }
.info-line .line-copy:hover { background: #e8e8ed; }
.info-line .line-add { margin-top: 12px; }

/* ----- right: form ----- */
.support-form {
  padding: 36px 40px 40px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #e8e8ed;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}
.form-title { font-size: 22px; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 4px 0 24px; font-size: 13px; color: var(--text-secondary); }
.req { color: #d70015; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label:not(.consent) {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px; /* 16px stops iOS from zooming in on focus */
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input[type="tel"] {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }

/* resume upload (careers.html): the real file input is visually hidden, the label is the drop box */
.file-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field label.file-drop { /* beats the generic `.field label` block style */
  display: flex;
  margin: 0;
  font-weight: 400;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px dashed #c7c7cc;
  border-radius: 14px;
  background: var(--bg-alt);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-drop:hover { border-color: var(--brand); background: rgba(55, 170, 186, 0.06); }
.field-file:focus-within .file-drop { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(55, 170, 186, 0.2); }
.file-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
}
.file-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.file-text { flex: 1; min-width: 0; }
.file-name { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-text small { font-size: 12.5px; color: var(--text-secondary); }
.file-btn {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.field-file.has-file .file-drop { border-style: solid; border-color: var(--brand); background: rgba(55, 170, 186, 0.08); }
.field-file.has-file .file-btn { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.field-file.is-invalid .file-drop { border-color: #d70015; }

.career-map { display: block; margin-top: 16px; overflow: hidden; border-radius: 14px; border: 1px solid #e8e8ed; }
.career-map img { display: block; width: 100%; height: auto; transition: transform 0.5s var(--ease); }
.career-map:hover img { transform: scale(1.03); }
.field input:focus,
.field input[type="tel"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(55, 170, 186, 0.2);
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #d70015;
}
.field.is-invalid .field-error { display: block; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #d70015; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-alt);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}
.field-consent.is-invalid .consent { box-shadow: inset 0 0 0 1px #d70015; }

.form-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 22px;
  border: 0;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.form-submit:disabled { opacity: 0.6; cursor: default; }
.form-status { margin-top: 14px; font-size: 15px; text-align: center; }
.form-status.is-success { color: #1a7f37; }
.form-status.is-error { color: #d70015; }

/* ================= Dealer benefits page ================= */
.benefits-hero { padding-bottom: 56px; }
.hero-brands {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 980px;
  background: #fff;
  border: 1px solid #e8e8ed;
}
.hero-brands img { display: block; width: auto; }
.hero-brands-divider { width: 1px; height: 24px; background: var(--border); }
.benefits-intro {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}
/* event photo closing the privileges hero (same width as the history page cover) */
.benefits-photo {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 32px auto 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.benefits-invite {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--text);
}

.benefits-section {
  padding: 64px 22px;
}
.benefits-section-alt { background: var(--bg-alt); }
.benefits-section > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

.benefits-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.benefits-num {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
.benefits-section-alt .benefit-card { background: #fff; }
.benefit-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(55, 170, 186, 0.12);
  color: var(--brand);
}
.benefit-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit-note { color: var(--text-secondary); }

.benefits-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 201, 48, 0.22);
  font-size: 15px;
  line-height: 1.6;
}
.benefits-callout-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-yellow);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
}

.doc-list {
  list-style: none;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  padding: 8px 24px;
}
.doc-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  font-size: 16px;
  line-height: 1.6;
}
.doc-list li + li { border-top: 1px solid var(--border); }
.doc-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.doc-check svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefits-cta {
  padding: 72px 22px 96px;
  text-align: center;
  border-top: 1px solid #e8e8ed;
}
.benefits-cta .cta-links { margin-top: 22px; }
.benefits-cta .btn { font-size: 15px; padding: 10px 20px; }
.benefits-cta .link-arrow { font-size: 15px; }
.cta-lead > span { display: inline-block; } /* each phrase wraps as a unit */
.cta-apply { margin-top: 22px; }
.benefits-cta .cta-apply .btn { padding: 13px 32px; font-size: 17px; font-weight: 600; box-shadow: 0 8px 22px rgba(0, 113, 227, 0.25); }
.cta-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  margin: 40px auto 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.cta-divider::before,
.cta-divider::after { content: ""; flex: 1; height: 1px; background: #e3e3e8; }
.cta-divider + .cta-phones { margin-top: 18px; }
.cta-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  list-style: none;
}
.phone-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 12px;
  border-radius: 980px;
  background: var(--bg-alt);
  text-align: left;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.phone-pill:hover { background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.phone-pill svg {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--brand);
  fill: #fff;
}
.phone-pill span {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.phone-pill small { font-size: 12px; font-weight: 400; color: var(--text-secondary); }

.btn-line { background: #06C755; color: #fff; }
.btn-line:hover { background: #05b34c; }

/* ================= Apply (AD Program) page ================= */
.apply-hero { padding-bottom: 56px; }
.apply-hero .page-sub strong { color: var(--text); }
.apply-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.apply-line .btn { font-size: 15px; padding: 10px 20px; }
.doc-list-white { background: #fff; }

.apply-steps { list-style: none; }
.apply-step {
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: center;
  gap: 56px;
  padding: 40px 0;
}
.apply-step + .apply-step { border-top: 1px solid #e8e8ed; }
.apply-step-num {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 980px;
  background: rgba(55, 170, 186, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: #23808d;
}
.apply-step h3 { font-size: 22px; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
.apply-step-text > p { font-size: 16px; line-height: 1.75; color: var(--text-secondary); }
.apply-step-text > p strong { color: var(--text); font-weight: 600; }
.apply-step-text > * + * { margin-top: 12px; }
.apply-tip { font-size: 14px !important; }

.brand-text { color: #23808d; }

/* step 4: the STV option shown like the selected answer in the Michelin form */
.apply-highlight {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(55, 170, 186, 0.08);
}
.apply-highlight-label,
.apply-highlight-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.dealer-choice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 10px 20px 10px 12px;
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(55, 170, 186, 0.18);
}
.dealer-choice strong { font-size: 19px; font-weight: 600; color: var(--text); }
.dealer-choice-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.dealer-choice-check svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* tappable LINE ID: LINE green + underline so it reads as a link */
.line-link {
  color: #06a849;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease);
}
.line-link:hover { color: #048a3b; }

.apply-points { list-style: none; display: grid; gap: 6px; }
.apply-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.6;
}
.apply-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.bib-table {
  width: 100%;
  max-width: 440px;
  border-collapse: collapse;
  font-size: 15px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}
.bib-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.bib-table th,
.bib-table td { padding: 9px 14px; text-align: left; }
.bib-table tr + tr th,
.bib-table tr + tr td { border-top: 1px solid #e3e3e8; }
.bib-table th { width: 72px; font-weight: 600; color: #23808d; }
.bib-table small { color: var(--text-secondary); }

.apply-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apply-types > div { padding: 16px 18px; border-radius: 14px; background: var(--bg-alt); }
.apply-types h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.apply-types h4 small { font-weight: 400; color: var(--text-secondary); }
.apply-types .apply-points li { font-size: 14px; }

/* screenshot in a simple phone frame */
.apply-shot {
  margin: 0;
  justify-self: center;
  padding: 8px;
  border-radius: 28px;
  background: #1d1d1f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}
.apply-shot img {
  display: block;
  width: 224px;
  height: auto;
  border-radius: 20px;
}

/* ================= Price inquiry page ================= */
.price-id {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px 12px 12px 18px;
  border-radius: 14px;
  background: #fff;
}
.price-id-label { font-size: 13px; color: var(--text-secondary); }
.price-id-value { font-size: 19px; font-weight: 600; }

.price-formats { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.price-formats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fff;
}
.price-formats small { font-size: 12px; color: var(--text-secondary); }
.price-formats code {
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #23808d;
  font-variant-numeric: tabular-nums;
}
.price-formats-or { font-size: 14px; color: var(--text-secondary); }

.price-info { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.price-info li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  border-radius: 980px;
  background: #fff;
  font-size: 14px;
}
.price-info li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #06C755 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* last step has no screenshot: use the full row */
.apply-step-wide { grid-template-columns: 1fr; }
.price-phones { justify-content: flex-start; margin-top: 4px; }
.price-phones .phone-pill { background: #fff; }
.phone-pill-line svg { background: #06C755; }

/* ================= Warranty pages ================= */
.warranty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 4 brands → 2×2, equal size */
  gap: 16px;
  align-items: stretch;
}
.warranty-checks { list-style: none; display: grid; gap: 8px; margin-top: 6px; }
.warranty-checks li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }
.warranty-checks li::before { content: "✓"; position: absolute; left: 4px; top: 0; font-weight: 700; color: #23808d; }
.warranty-checks strong { color: var(--text); }
.warranty-example { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--bg-alt); font-size: 13.5px !important; }
.warranty-card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
}

.warranty-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ececf0;
}
.warranty-brand img { flex: none; display: block; height: 48px; width: auto; }
.warranty-brand .warranty-logo-wide { height: 22px; }
/* Michelin card: LINE OA note + hotline row (number on its own line, never split) */
.warranty-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 199, 85, 0.1);
  font-size: 13.5px;
  line-height: 1.6;
}
.warranty-line p { margin: 0; }
.warranty-line-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.warranty-line-add {
  padding: 6px 14px;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s;
}
.warranty-line-add:hover { background: #05b34c; }

/* collapsible "ไม่ครอบคลุม" list */
.warranty-more { margin-top: 20px; border-top: 1px solid #ececf0; }
.warranty-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.warranty-more summary::-webkit-details-marker { display: none; }
.warranty-more summary::after {
  content: "แสดง ▾";
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.warranty-more[open] summary::after { content: "ซ่อน ▴"; }
.warranty-more summary:hover::after { text-decoration: underline; }
.warranty-more .warranty-tags { margin-top: 10px; }
.warranty-line-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #06c755; }
.warranty-line-icon svg { width: 16px; height: 16px; fill: #fff; }
.warranty-line strong { color: #05a346; }
.warranty-hotline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-alt);
  transition: background 0.2s;
}
.warranty-hotline:hover { background: #e6f4f6; }
.warranty-hotline-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); }
.warranty-hotline-icon svg { width: 18px; height: 18px; fill: #fff; }
.warranty-hotline > span:last-child { font-size: 18px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.warranty-hotline small { display: block; font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.warranty-brand h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.warranty-brand p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.warranty-stat {
  display: flex;
  flex-direction: column;
  padding: 24px 0 4px;
}
.warranty-stat-split {
  flex-direction: row;
  align-items: flex-end;
  gap: 18px;
}
.warranty-stat-split > div { display: flex; flex-direction: column; }
.warranty-years {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #23808d;
  font-variant-numeric: tabular-nums;
}
.warranty-years small { margin-left: 6px; font-size: 22px; font-weight: 600; letter-spacing: 0; }
.warranty-years-text { font-size: 34px; line-height: 1.55; letter-spacing: 0; } /* aligns with the 56px digits */
.warranty-from { margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
.warranty-from sup { color: #23808d; font-weight: 600; }
.warranty-or {
  padding-bottom: 30px;
  font-size: 14px;
  color: var(--text-secondary);
}
.warranty-first {
  display: inline-block;
  align-self: flex-start;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 980px;
  background: rgba(255, 201, 48, 0.28);
  font-size: 13px;
  font-weight: 500;
}

.warranty-body { margin-top: 20px; }
.warranty-body h4 {
  margin: 18px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.warranty-body h4:first-child { margin-top: 0; }
.warranty-body p { font-size: 15px; line-height: 1.7; }
.warranty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  list-style: none;
}
.warranty-tags li {
  padding: 5px 12px;
  border-radius: 980px;
  background: var(--bg-alt);
  font-size: 13px;
}

.warranty-notes {
  margin-top: auto; /* notes sit at the bottom so both cards line up */
  padding-top: 20px;
  list-style: none;
  display: grid;
  gap: 8px;
}
.warranty-card .warranty-body + .warranty-notes { margin-top: 20px; }
.warranty-notes li {
  display: flex;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #ececf0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.warranty-notes li + li { border-top: 0; padding-top: 0; }
.note-mark { flex: none; min-width: 16px; font-weight: 600; color: #23808d; }

.tread-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: #fff;
}
.tread-figure {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #b25000;
}
.tread-figure svg { width: 96px; height: auto; }
.tread-rib { fill: #3a3a3c; }
.tread-bar { fill: #8e8e93; }
.tread-line { stroke: #ff9f0a; stroke-width: 2; stroke-dasharray: 4 3; fill: none; }
.tread-callout h3 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.tread-callout p { margin-top: 4px; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

/* short numbered steps inside a warranty card */
.mini-steps { list-style: none; counter-reset: mini; display: grid; gap: 8px; }
.mini-steps li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  line-height: 1.65;
  counter-increment: mini;
}
.mini-steps li::before {
  content: counter(mini);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.warranty-tags-muted li { background: #fff2f0; color: #9f2a1a; }
#conti-quality, #structure { scroll-margin-top: calc(var(--nav-height) + 12px); }
/* ----- Continental warranty page ----- */
.conti-hero { padding-bottom: 48px; }
.conti-banner {
  display: block;
  width: 100%;
  max-width: 1080px;
  height: auto;
  margin: 32px auto 0;
  border-radius: var(--radius-md);
}
/* prominent registration block under the banner (Continental black + orange) */
.conti-register-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1080px;
  margin: 12px auto 0;
  padding: 20px 20px 20px 28px;
  border-radius: var(--radius-md);
  background: #111;
  color: #fff;
  text-align: left;
}
.conti-register-title { font-size: 19px; font-weight: 600; }
.conti-register-note { margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.conti-register-note strong { color: #ffa500; font-weight: 600; }
.conti-register-big {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 980px;
  background: #ffa500;
  color: #111;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.35);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.conti-register-big:hover { background: #ffb42e; box-shadow: 0 8px 26px rgba(255, 165, 0, 0.45); }
.conti-register-big:active { transform: scale(0.98); }
.conti-register-big svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.conti-register-inline { margin-top: 22px; }

.conti-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.conti-jump a {
  padding: 7px 16px;
  border-radius: 980px;
  background: var(--bg-alt);
  font-size: 14px;
  transition: background 0.2s var(--ease);
}
.conti-jump a:hover { background: #e8e8ed; }
#replace, #register, #roadside, #quality { scroll-margin-top: var(--nav-height); }

/* section 04: short 7-year quality intro */
.quality-teaser {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.quality-teaser .warranty-stat { flex: none; padding: 0; }
.quality-teaser-text p { font-size: 15px; line-height: 1.7; }
.quality-teaser-text p + p { margin-top: 6px; color: var(--text-secondary); }
.quality-teaser-text .link-arrow { display: inline-block; margin-top: 14px; font-size: 15px; }

/* block-level wrapper keeps the section's centred column; the pill is the inner span */
.conti-condition { margin-bottom: 20px; font-size: 15px; }
.conti-condition span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(255, 201, 48, 0.3);
}

.conti-regions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.conti-region {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
}
.conti-region h3 { font-size: 17px; font-weight: 600; }
.conti-region-stats {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 18px;
}
.conti-region-stats > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.conti-num {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #23808d;
  font-variant-numeric: tabular-nums;
}
.conti-unit { font-size: 19px; font-weight: 600; color: #23808d; }
.conti-region-stats small {
  flex-basis: 100%;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.conti-or { padding-bottom: 26px; font-size: 14px; color: var(--text-secondary); }
.conti-first {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--bg-alt);
  font-size: 13px;
}

.conti-rules {
  margin-top: 16px;
  padding: 24px 28px 28px;
  border-radius: var(--radius-md);
  background: #fff;
}
.conti-rules h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.conti-rules .apply-points li { font-size: 15px; }

/* section 01 sits on white (sections alternate white / grey / white), so its cards go grey */
.conti-section-white { border-top: 1px solid #e8e8ed; }
.conti-section-white .conti-region,
.conti-section-white .conti-rules { background: var(--bg-alt); }

/* registration steps inside section 01 */
.conti-steps-block {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #e8e8ed;
}
.conti-subhead { font-size: 22px; font-weight: 600; line-height: 1.35; margin-bottom: 14px; }
.conti-steps-block .conti-lead { margin-top: 0; }

.conti-lead { margin-top: -8px; margin-bottom: 8px; font-size: 16px; line-height: 1.7; color: var(--text-secondary); }
.conti-link { color: var(--accent); font-weight: 600; }
.conti-link:hover { text-decoration: underline; }

/* roadside assistance */
.rsa-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; margin-bottom: 22px; }
.rsa-badges span {
  padding: 6px 14px;
  border-radius: 980px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}
/* emergency hotline card */
.rsa-hotline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px 20px 18px 18px;
  border-radius: var(--radius-lg);
  background: #111;
  color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rsa-hotline:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }
.rsa-hotline:active { transform: scale(0.99); }
.rsa-hotline-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffa500;
  color: #111;
}
.rsa-hotline-icon svg { width: 26px; height: 26px; fill: currentColor; }
.rsa-hotline-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rsa-hotline-label { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.rsa-hotline-number {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.rsa-hotline-cta {
  flex: none;
  padding: 12px 26px;
  border-radius: 980px;
  background: #ffa500;
  color: #111;
  font-size: 17px;
  font-weight: 600;
  transition: background 0.2s var(--ease);
}
.rsa-hotline:hover .rsa-hotline-cta { background: #ffb42e; }

.rsa-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  list-style: none;
}
.rsa-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px;
  border-radius: var(--radius-md);
  background: #fff;
}
.rsa-card h3 { font-size: 16px; font-weight: 600; line-height: 1.45; }
.rsa-card p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }
.rsa-card p strong { color: var(--text); }
.rsa-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.rsa-notes p {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(55, 170, 186, 0.1);
  font-size: 14px;
  line-height: 1.65;
}
.rsa-terms {
  margin-top: 12px;
  border-radius: var(--radius-md);
  background: #fff;
}
.rsa-terms summary {
  position: relative;
  padding: 18px 48px 18px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.rsa-terms summary::-webkit-details-marker { display: none; }
.rsa-terms summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.rsa-terms[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.rsa-terms .apply-points { padding: 0 22px; }
.rsa-terms .apply-points li { font-size: 14px; color: var(--text-secondary); }
.rsa-terms-note { padding: 14px 22px 20px; font-size: 13px; color: var(--text-secondary); }

/* ================= History page ================= */
.history-hero { padding-bottom: 56px; }
.history-cover {
  display: block;
  width: 100%;
  max-width: 1080px;
  height: auto;
  aspect-ratio: 21 / 9;
  margin: 32px auto 0;
  object-fit: cover;
  object-position: center 45%;
}
/* company statement (legacy page): plain text closing the story, after the closing photo */
.history-mission .history-subhead { margin-top: 40px; }

/* company story (history page) */
.history-story .why-head { margin-bottom: 28px; }
.history-text { max-width: 760px; margin-left: auto; margin-right: auto; }
.history-text p {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text-secondary);
  text-align: justify;
  text-justify: inter-character; /* Thai has few spaces: spread by character where supported */
}
.history-text p + p { margin-top: 14px; }
.history-text strong { color: var(--text); }
/* supporting photo inside the story text — smaller than the cover */
/* floats right beside the first paragraph; the text wraps around it */
.history-figure { float: right; width: 42%; max-width: 340px; margin: 6px 0 16px 28px; }
.history-text::after { content: ""; display: block; clear: both; }
.history-figure-left { float: left; margin: 6px 28px 16px 0; } /* zig-zag: 2nd photo on the left */
/* a photo + its paragraph form one block, so the next paragraph never wraps around the previous photo */
.history-para { display: flow-root; }
/* short paragraph: sit it beside the photo, vertically centred, instead of wrapping (avoids a gap under the text) */
.history-para-center { display: flex; align-items: center; gap: 28px; }
.history-para-center > p { flex: 1; }
.history-para-center > .history-figure { float: none; flex: none; margin: 0; }
.history-para + .history-para,
.history-para + p { margin-top: 14px; }
.history-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1); }
.history-figure figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--text-secondary); }
.history-subhead { margin: 48px 0 12px; font-size: 24px; font-weight: 600; }
.history-gens {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 40px auto 0;
  counter-reset: gen;
}
.history-gens li {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border-top: 4px solid #c7e6ea;
}
.history-gens li.is-now { background: var(--brand); color: #fff; border-top-color: var(--brand-yellow); }
/* arrow between generations */
.history-gens li + li::before {
  content: "›";
  position: absolute;
  left: -14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: #fff;
  color: #23808d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.history-gen-num { display: block; font-size: 13px; font-weight: 600; color: #23808d; }
.history-gen-year { display: block; margin-top: 2px; font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--text); }
.history-gens h3 { margin-top: 12px; font-size: 18px; font-weight: 600; }
.history-gens p { margin-top: 4px; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }
.history-gens .is-now .history-gen-num { color: var(--brand-yellow); }
.history-gens .is-now .history-gen-year,
.history-gens .is-now h3 { color: #fff; }
.history-gens .is-now p { color: rgba(255, 255, 255, 0.85); }
.history-tech {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 28px auto 36px;
}
.history-tech li { padding: 22px 20px; border-radius: var(--radius-md); background: #fff; border: 1px solid #e8e8ed; }
.history-tech .why-icon { width: 44px; height: 44px; border-radius: 12px; }
.history-tech .why-icon svg { width: 22px; height: 22px; }
.history-tech h4 { margin-top: 10px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.history-tech p { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.history-quote {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border-left: 5px solid var(--brand-yellow);
  text-align: center;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  color: #23808d;
}
.history-quote span { display: inline-block; }
.history-closing { margin-top: 40px; } /* closing photo, same size as the page cover */

/* old group photo: show it whole (no 21:9 crop, which would cut heads and feet) */
.history-cover.history-cover-photo {
  aspect-ratio: auto;
  max-width: 900px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.why-head { text-align: center; margin-bottom: 36px; }
.why-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
}
.why-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.why-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07); }
.why-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
}
.why-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-card h3 { font-size: 21px; font-weight: 600; }
.why-card p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.why-card p strong { color: var(--text); }

/* ================= Brand pages (michelin.html …) ================= */
.brand-michelin { --brand-accent: #27509b; --brand-accent-2: #fce500; }
.brand-continental { --brand-accent: #111111; --brand-accent-2: #ffa500; }
/* Continental's photo has its own white frame + orange logo tab: show it as-is */
.brand-continental .brand-hero-media img { border-radius: 0; box-shadow: none; }
.brand-page.brand-continental .why-icon { background: #ffa500; color: #111; } /* beats the generic .brand-page .why-icon below */
.brand-hero-logo-round { width: 84px !important; }
.brand-bfg { --brand-accent: #1d3c8f; --brand-accent-2: #e30613; }
.brand-dunlop { --brand-accent: #111111; --brand-accent-2: #f7d800; }
.brand-page.brand-dunlop .why-icon { background: #f7d800; color: #111; }
/* temporary hero panel until the Dunlop photo arrives */
.brand-hero-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1; /* same square box as the other brand pages */
  padding: 12%;
  border-radius: var(--radius-lg);
  background: #f7d800;
}
.brand-hero-media.brand-hero-placeholder img { border-radius: 0; box-shadow: none; aspect-ratio: auto; object-fit: contain; }
/* portrait photo: cap the height so the hero stays compact */
.brand-bfg .brand-hero-media img { object-position: center 60%; } /* portrait photo → square crop, keep the tyre in view */
/* Continental's artwork has its own white frame: fit it whole inside the square instead of cropping the frame */
.brand-continental .brand-hero-media img { object-fit: contain; background: #fff; }

/* tyres-by-lifestyle cards */
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
}
.style-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border-top: 4px solid var(--brand-accent-2, var(--brand));
}
.style-tag { font-size: 13px; font-weight: 600; color: var(--brand-accent-2, var(--brand)); }
.style-card h3 { font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--brand-accent, var(--text)); }
.style-card p:not(.style-tag) { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }

.brand-hero { padding: 56px 22px 64px; }
.brand-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.brand-hero .eyebrow { font-size: 14px; margin-bottom: 18px; }
.brand-hero-logo { display: block; width: 240px; height: auto; }
.brand-hero-title {
  margin-top: 26px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--brand-accent, var(--text));
}
.brand-hero-sub { margin-top: 16px; font-size: 16px; line-height: 1.85; color: var(--text-secondary); }
.brand-stats { display: flex; gap: 12px; margin-top: 28px; }
.brand-stats div {
  flex: 1;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border-top: 4px solid var(--brand-accent-2, var(--brand));
}
.brand-stats div > span { /* only the big number — not spans nested in the caption */
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-accent, var(--text));
  font-variant-numeric: tabular-nums;
}
.brand-stats small { font-size: 13px; color: var(--text-secondary); }
.brand-hero-media { margin: 0; }
/* every brand page uses the same square artwork box (Michelin's image is square) */
.brand-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

/* brand essentials grid (brand icons take the brand colour) */
.brand-page .why-icon { background: var(--brand-accent, var(--brand)); }
.essence-grid .why-card h3 { font-size: 19px; line-height: 1.4; }
.essence-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1080px;
  margin: 16px auto 0;
}
.essence-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: #fff;
  border-left: 4px solid var(--brand-accent-2, var(--brand));
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.essence-note strong { font-size: 16px; color: var(--brand-accent, var(--text)); }
.essence-link { transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.essence-link:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07); }

/* closing statement */
.brand-statement {
  padding: 72px 22px;
  background: var(--brand-accent, var(--text));
  color: #fff;
  text-align: center;
  border-bottom: 6px solid var(--brand-accent-2, var(--brand));
}
.brand-statement blockquote { max-width: 820px; margin: 0 auto; }
.brand-statement-lead { font-size: 18px; color: rgba(255, 255, 255, 0.85); }
.brand-statement-quote {
  margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
/* each phrase stays whole; lines only break between phrases */
.brand-statement-quote span { display: inline-block; margin: 0 0.12em; white-space: nowrap; }
.brand-statement-sub { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, 0.8); }

/* ================= Articles (list + post) ================= */
.post-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(55, 170, 186, 0.14);
  color: #23808d;
  font-size: 12.5px;
  font-weight: 600;
}
.post-tag.tag-review { background: var(--brand); color: #fff; } /* รีวิวยาง: solid company teal (knowledge posts use the light teal) */

/* article list filter */
.article-filter { justify-content: flex-start; margin-bottom: 20px; }
.article-filter .filter-count {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 12px;
  font-weight: 600;
}
.article-filter button[aria-pressed="true"] .filter-count { background: rgba(255, 255, 255, 0.25); }
.article-item[hidden] { display: none; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* list page */
.article-list { list-style: none; display: grid; gap: 16px; }
.article-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08); }
.article-thumb { overflow: hidden; }
.article-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.article-card:hover .article-thumb img { transform: scale(1.04); }
.article-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 34px;
}
.article-info h2 { font-size: 23px; font-weight: 600; line-height: 1.4; }
.article-excerpt { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.article-info .link-arrow { margin-top: auto; font-size: 15px; }

/* single post */
.post { padding: 56px 22px 24px; }
.post-header,
.post-body { max-width: 760px; margin: 0 auto; }
.post-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}
.post-breadcrumb a { color: var(--accent); }
.post-breadcrumb a:hover { text-decoration: underline; }
.post-title {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.post-header .post-meta { margin-top: 16px; }
.post-cover { max-width: 1080px; margin: 36px auto 0; }
.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.post-cover figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.post-body { padding-top: 16px; }
.post-body > h2 {
  margin: 48px 0 18px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
}
.post-lead { margin: -6px 0 22px; font-size: 17px; line-height: 1.75; color: var(--text-secondary); }

.post-factors { list-style: none; counter-reset: factor; display: grid; gap: 12px; }
.post-factors li {
  position: relative;
  padding: 20px 22px 20px 70px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  counter-increment: factor;
}
.post-factors li::before {
  content: counter(factor);
  position: absolute;
  left: 22px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.post-factors h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.post-factors p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.post-factors strong { color: var(--text); }

/* tire type block: cropped third of the cover photo + text */
.tire-type {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  align-items: start;
  padding: 26px 0;
}
.tire-type + .tire-type { border-top: 1px solid #e8e8ed; }
.tire-type-media {
  overflow: hidden;
  aspect-ratio: 341 / 559; /* one third of the 1024×559 cover */
  border-radius: var(--radius-md);
}
.tire-type-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.crop-left { object-position: 0% 50%; }
.crop-center { object-position: 50% 50%; }
.crop-right { object-position: 100% 50%; }
.tire-type h3 { font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.tire-code {
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tire-type-text p { margin-top: 12px; font-size: 15.5px; line-height: 1.8; color: var(--text-secondary); }
.tire-con {
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff2f0;
  color: #7a2a1f !important;
}
.tire-con strong { color: #b3261e; margin-right: 6px; }

.road-split {
  display: flex;
  margin-top: 14px;
  height: 30px;
  overflow: hidden;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 30px;
  white-space: nowrap;
}
.road-on {
  flex: 0 1 var(--pct); /* may shrink so a small off-road share keeps room for its label */
  padding: 0 10px;
  background: #3a3a3c;
  color: #fff;
  overflow: hidden;
}
.road-off {
  flex: 1;
  min-width: 42px;
  padding: 0 8px;
  background: #c8a46a; /* earthy "dirt" tone */
  color: #3b2a10;
  text-align: right;
  overflow: hidden;
}

/* lifespan article */
.post-body > p { font-size: 16px; line-height: 1.85; color: var(--text-secondary); }
.life-stats { display: grid; grid-template-columns: 0.8fr 0.8fr 1.4fr; gap: 12px; }
.life-stat {
  padding: 20px 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}
.life-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: #23808d;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.life-num small { font-size: 16px; font-weight: 600; }
.life-stat p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.life-stat strong { color: var(--text); }
.post-note {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 201, 48, 0.22);
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: var(--text) !important;
}
.post-figure { margin: 28px 0 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.post-figure figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--text-secondary); }

.stv-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(55, 170, 186, 0.1);
}
.stv-callout-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}
.stv-callout-logo svg { width: 28px; height: 20px; }
.stv-callout p { font-size: 15px; line-height: 1.8; }
.stv-callout .stv-callout-title { margin-bottom: 4px; font-size: 16px; font-weight: 600; line-height: 1.5; color: #1f6f7a; }

.wear-list { display: grid; gap: 12px; }
.wear-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}
.wear-diagram { width: 100%; height: auto; padding: 12px; border-radius: 14px; background: #fff; }
.wear-tread { fill: #3a3a3c; }
.wear-ideal { stroke: #aeaeb2; stroke-width: 1.2; stroke-dasharray: 3 3; fill: none; }
.wear-mark { stroke: #ff3b30; stroke-width: 3; stroke-linecap: round; fill: none; }
.wear-item h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.wear-cause { margin: 6px 0 8px; font-size: 14px; color: #b3261e; }
.wear-cause strong { font-weight: 600; }
.wear-item p:not(.wear-cause) { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.wear-item p strong { color: var(--text); }

.tip-list { list-style: none; display: grid; gap: 12px; }
.tip-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}
.tip-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(55, 170, 186, 0.14);
  color: #23808d;
}
.tip-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tip-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.tip-card p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.tip-card strong { color: var(--text); }

/* tire size article */
.post-intro { font-size: 17px !important; line-height: 1.85; }
:root {
  --seg-1: #23808d;  /* width */
  --seg-2: #d18a00;  /* series */
  --seg-3: #7a5cc7;  /* construction */
  --seg-4: #d1453b;  /* rim */
}
.size-anatomy {
  margin-top: 24px;
  padding: 32px 24px 26px;
  border-radius: var(--radius-lg);
  background: #1d1d1f;
  color: #fff;
  text-align: center;
}
.size-code {
  font-size: clamp(44px, 9vw, 72px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.seg { padding-bottom: 6px; border-bottom: 5px solid; }
.seg-sep { margin: 0 2px; color: #8e8e93; }
.size-code .seg-1 { border-color: var(--seg-1); }
.size-code .seg-2 { border-color: var(--seg-2); }
.size-code .seg-3 { border-color: var(--seg-3); margin: 0 4px; }
.size-code .seg-4 { border-color: var(--seg-4); }
.size-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 26px;
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.size-legend li { display: flex; align-items: center; gap: 8px; }
.size-legend strong { color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-1 { background: var(--seg-1); } .dot-2 { background: var(--seg-2); }
.dot-3 { background: var(--seg-3); } .dot-4 { background: var(--seg-4); }

.size-parts { display: grid; gap: 12px; }
.size-part {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}
.size-part-code {
  display: grid;
  place-items: center;
  height: 56px;
  border-radius: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.size-part-code.seg-1 { background: var(--seg-1); }
.size-part-code.seg-2 { background: var(--seg-2); }
.size-part-code.seg-3 { background: var(--seg-3); }
.size-part-code.seg-4 { background: var(--seg-4); }
.size-part h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.size-part h3 small { display: block; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.size-part p { margin-top: 8px; font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.size-part p strong { color: var(--text); }
.size-note { padding: 10px 14px; border-radius: 10px; background: #fff; font-size: 14px !important; }
.size-formula {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  font-variant-numeric: tabular-nums;
  color: var(--text) !important;
}
.size-formula-block {
  display: block;
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-alt);
  font-size: 15.5px !important;
  line-height: 1.8 !important;
}

.size-calc {
  margin-top: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--brand);
  background: rgba(55, 170, 186, 0.06);
}
.size-calc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.size-calc-title { font-size: 17px; font-weight: 600; color: #1f6f7a; }

/* segmented mm / cm switch */
.unit-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 980px;
  background: #e3eef0;
}
.unit-toggle label { position: relative; cursor: pointer; }
.unit-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.unit-toggle span {
  display: block;
  padding: 7px 16px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.unit-toggle input:checked + span {
  background: #fff;
  color: #1f6f7a;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.unit-toggle input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.size-calc-inputs { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.size-calc-inputs label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 110px;
  font-size: 13px;
  color: var(--text-secondary);
}
.size-calc-inputs input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.size-calc-inputs input::placeholder { color: #b8bcc4; font-size: 12px; font-weight: 300; opacity: 1; } /* light "เช่น 205" hint */
.size-calc-inputs input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(55, 170, 186, 0.2); }
/* sidewall guide picture next to the inputs */
.size-calc-body { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.size-calc-guide { margin: 0; }
.size-calc-guide img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; }
.size-calc-guide figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); text-align: center; }
.size-calc-sep { padding-bottom: 12px; font-size: 22px; font-weight: 600; color: var(--text-secondary); }
.size-calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.size-calc-results div { padding: 14px 16px; border-radius: 14px; background: #fff; }
.size-calc-results dt { font-size: 13px; color: var(--text-secondary); }
.size-calc-results dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; color: #23808d; font-variant-numeric: tabular-nums; }

.index-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.index-box { padding: 22px; border-radius: var(--radius-md); background: var(--bg-alt); }
.index-box h3 { font-size: 18px; font-weight: 600; }
.index-box h3 small { font-size: 13px; font-weight: 400; color: var(--text-secondary); margin-left: 6px; }
.index-box > p { margin: 4px 0 14px; font-size: 14px; color: var(--text-secondary); }
.index-box .post-table-wrap { background: #fff; }
.index-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.index-table th, .index-table td { padding: 7px 12px; text-align: left; }
.index-table thead th { font-size: 12px; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid #e3e3e8; }
.index-table td:nth-child(odd) { font-weight: 700; color: #23808d; }
.index-table td:nth-child(3), .index-table th:nth-child(3) { border-left: 1px solid #e3e3e8; }
.speed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  list-style: none;
}
.speed-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}
.speed-list span { font-size: 20px; font-weight: 700; color: #23808d; }
.index-unit { margin-top: 10px; font-size: 12.5px; color: var(--text-secondary); }

.dot-box {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}
.dot-code {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #1d1d1f;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dot-label { margin-right: 8px; font-size: 14px; color: #8e8e93; }
.dot-week { padding-bottom: 2px; border-bottom: 4px solid var(--seg-1); }
.dot-year { padding-bottom: 2px; border-bottom: 4px solid var(--seg-2); }
.dot-box p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.dot-box strong { color: var(--text); }
.dot-box .dot-hl-week { color: var(--seg-1); } /* match the underline colors on the DOT code */
.dot-box .dot-hl-year { color: var(--seg-2); }

.size-examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.size-example { padding: 22px 20px; border-radius: var(--radius-md); background: var(--bg-alt); }
.size-example-type { font-size: 13px; font-weight: 600; color: #23808d; }
.size-example-code {
  margin: 4px 0 14px;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.size-example dl { display: grid; gap: 8px; }
.size-example dl div { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; }
.size-example dt { font-weight: 700; font-size: 15px; }
.size-example dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.size-example-note { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e3e3e8; font-size: 13px; color: var(--text-secondary); }
/* longer code (brand + model + dual load index) */
.size-example-long .size-example-code { white-space: normal; font-size: 19px; line-height: 1.35; }
.size-example-long dl div { grid-template-columns: 84px 1fr; }
.size-example-note strong { color: var(--text); }
.size-example-why { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.size-example-why strong { display: block; margin-bottom: 2px; font-size: 14px; color: var(--text); }

.post-table-wrap { overflow-x: auto; border-radius: var(--radius-md); background: var(--bg-alt); }
.post-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-table th,
.post-table td { padding: 14px 18px; text-align: left; vertical-align: top; line-height: 1.6; }
.post-table thead th { font-size: 13px; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid #e3e3e8; }
.post-table tbody tr + tr th,
.post-table tbody tr + tr td { border-top: 1px solid #e3e3e8; }
.post-table tbody th { font-weight: 700; white-space: nowrap; }
.post-table tbody th small { display: block; font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.post-table td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.post-table thead th:nth-child(2) { white-space: nowrap; }

/* brand pages: models in stock */
.lineup-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.lineup-filter button {
  padding: 8px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lineup-filter button:hover { border-color: var(--brand-accent, var(--brand)); }
.lineup-filter button[aria-pressed="true"] {
  background: var(--brand-accent, var(--brand));
  border-color: var(--brand-accent, var(--brand));
  color: #fff;
}
.lineup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.lineup-group {
  padding: 22px 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border-top: 4px solid var(--brand-accent-2, var(--brand));
}
.lineup-grid-2 { grid-template-columns: repeat(2, 1fr); } /* brands with 4 groups: 2×2 */
.lineup-group-wide { grid-column: span 2; }
.lineup-group h3 small { display: block; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.lineup-group[hidden] { display: none; }
.lineup-group header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lineup-group .why-icon { flex: none; width: 40px; height: 40px; margin: 0; border-radius: 12px; }
.lineup-group .why-icon svg { width: 22px; height: 22px; }
.lineup-group h3 { flex: 1; font-size: 17px; font-weight: 600; line-height: 1.35; }
.lineup-count {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.lineup-group ul { list-style: none; display: grid; gap: 8px; }
.lineup-group-wide ul { grid-template-columns: 1fr 1fr; }
.lineup-group li {
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-accent, var(--text));
}
.lineup-more { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--accent); }
.lineup-more:hover { text-decoration: underline; }
.lineup-note { margin-top: 28px; text-align: center; font-size: 15px; color: var(--text-secondary); }
.lineup-note .link-arrow { margin-left: 6px; }

/* UC7 review article (Continental black + orange) */
.uc7-highlights { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.uc7-highlights li {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #111;
  color: #c9c9ce;
  font-size: 14px;
  line-height: 1.55;
}
.uc7-highlights strong { display: block; margin-bottom: 2px; font-size: 17px; color: #ffa500; }
.uc7-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.uc7-shots img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: var(--radius-md); background: #fff; box-shadow: inset 0 0 0 1px #ececf0; }

.uc7-dna { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.uc7-dna section { padding: 20px; border-radius: var(--radius-md); background: #111; color: #fff; }
.uc7-dna-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #ffa500;
  border-radius: 12px;
  color: #ffa500;
}
.uc7-dna-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.uc7-dna h3 { margin: 12px 0 4px; font-size: 16.5px; font-weight: 600; color: #ffa500; }
.uc7-dna p { font-size: 14px; line-height: 1.65; color: #c9c9ce; }

.uc7-feature { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; padding: 20px 0; }
.uc7-feature + .uc7-feature { border-top: 1px solid #e8e8ed; }
.uc7-feature img { display: block; width: 100%; height: auto; border-radius: 14px; }
.uc7-feature-tag { font-size: 13px; font-weight: 600; color: #c47f00; }
.uc7-feature h3 { margin: 2px 0 6px; font-size: 20px; font-weight: 600; }
.uc7-feature p:last-child { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }

.uc7-compare {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-md);
  background: #000;
  color: #fff;
}
.uc7-compare figure { margin: 0; }
.uc7-compare img { display: block; width: 100%; height: auto; }
.uc7-compare figcaption { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.uc7-key::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.uc7-key-uc6::before { background: #1fa6e0; }
.uc7-key-uc7::before { background: #ffa500; }
.uc7-compare p { font-size: 14.5px; line-height: 1.75; color: #c9c9ce; }
.uc7-compare p strong { color: #fff; }
.uc7-compare-list { list-style: none; display: grid; gap: 8px; margin: 14px 0; }
.uc7-compare-list li { padding: 10px 14px; border-radius: 10px; background: #1c1c1e; font-size: 14px; color: #c9c9ce; }
.uc7-compare-list strong { display: block; color: #ffa500; }
.uc7-compare-note { font-size: 12.5px !important; color: #8e8e93 !important; }

/* CC7 review: its chart sits on a light background */
.review-compare-light { background: var(--bg-alt); color: var(--text); }
.review-compare-light img { border-radius: 12px; }
.review-compare-light p { color: var(--text-secondary); }
.review-compare-light p strong { color: var(--text); }
.review-compare-light .uc7-compare-list li { background: #fff; color: var(--text-secondary); }
.review-compare-light .uc7-compare-list strong { color: #c47f00; }
.review-compare-light .uc7-compare-note { color: var(--text-secondary) !important; }
.cc7-key-cc6::before { background: #3a5fa8; }
.cc7-letter { font-size: 1.15em; font-weight: 700; }
.cc7-cars tbody th { width: 30%; color: #c47f00; }
.cc7-cars td:nth-child(2) { white-space: normal; }

/* MC7 review: 4 technology cards in a 2×2 grid */
.mc7-dna { grid-template-columns: repeat(2, 1fr); }
.mc7-key-mc6::before { background: #2ec4f0; }

/* run-flat article */
.rf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rf-stats div { padding: 22px 24px; border-radius: var(--radius-md); background: var(--bg-alt); border-top: 4px solid var(--brand); }
.rf-stats strong { display: block; font-size: 44px; font-weight: 700; line-height: 1.1; color: #23808d; }
.rf-stats strong small { margin-left: 6px; font-size: 18px; font-weight: 600; }
.rf-stats span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.rf-table tbody th { color: #23808d; }
.rf-table td:nth-child(2) { white-space: normal; }
.rf-table td:last-child { white-space: nowrap; }
.rf-pros section { border-top-color: var(--brand); }
.rf-pros .repair-verdict { background: #e6f4f6; color: #23808d; }
.rf-pros .repair-verdict::before { content: "✓"; }

/* FAQ article: accordion Q&A */
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.faq-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.2s;
}
.faq-jump a:hover { background: #e6f4f6; }
.faq-jump span { padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; }
.post-body h2[id] { scroll-margin-top: 80px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius-md); background: var(--bg-alt); overflow: hidden; }
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 56px 18px 22px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: #fff;
  color: #23808d;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-item summary:hover { color: #23808d; }
.faq-num { flex: none; font-size: 13px; font-weight: 700; color: #23808d; }
.faq-answer { padding: 0 22px 20px; font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.faq-answer p + p,
.faq-answer ul + p,
.faq-answer p + ul { margin-top: 10px; }
.faq-answer ul { padding-left: 20px; }
.faq-answer li + li { margin-top: 4px; }
.faq-answer strong { color: var(--text); }
.faq-tip { padding: 10px 14px; border-radius: 10px; background: #fff; font-size: 14px; }
.faq-source { font-size: 12.5px; }
.faq-list + .uc7-verdict,
.post-body > .uc7-verdict:last-child { margin-top: 32px; border-left-color: var(--brand); }

/* Michelin LTX TRAIL review: Michelin blue + yellow instead of Continental black + orange */
.review-michelin .uc7-highlights li { background: #27509b; color: #dbe4f5; }
.review-michelin .uc7-highlights strong { color: #fce500; }
.review-michelin .uc7-feature-tag { color: #27509b; }
.review-michelin .uc7-verdict { border-left-color: #27509b; }
.ltx-feature img { border-radius: 50%; max-width: 200px; justify-self: center; }
.ltx-points { display: grid; gap: 6px; padding-left: 18px; font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.uc7-feature h3 sup { font-size: 0.55em; color: var(--text-secondary); }

.ltx-brake { margin: 6px 0 12px; padding: 22px; border-radius: var(--radius-md); background: #27509b; color: #fff; }
.ltx-brake-title { font-size: 17px; font-weight: 700; }
.ltx-brake-title span { display: block; font-size: 13px; font-weight: 400; color: #c7d3ee; }
.ltx-brake-group { margin-top: 18px; }
.ltx-brake-label { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #fce500; }
.ltx-brake ul { list-style: none; display: grid; gap: 6px; }
.ltx-brake li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(var(--m) / 40 * 100%); /* bar length = braking distance (scale 0–40 m) */
  min-width: 240px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: #8e9bb8;
  font-size: 13.5px;
  font-weight: 600;
}
.ltx-brake li.is-ltx { background: #fce500; color: #1d1d1f; }
.ltx-brake li b { margin-left: 12px; white-space: nowrap; }
.ltx-brake-diff { margin-top: 8px; font-size: 14px; color: #c7d3ee; }
.ltx-brake-diff strong { color: #fce500; font-size: 17px; }

.ltx-rating { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 22px 24px; border-radius: var(--radius-md); background: var(--bg-alt); }
.ltx-score { text-align: center; }
.ltx-score strong { font-size: 52px; font-weight: 700; line-height: 1; color: #27509b; }
.ltx-score > span { font-size: 20px; color: var(--text-secondary); }
.ltx-stars { margin-top: 4px; font-size: 22px; letter-spacing: 2px; color: #f5b301; }
.ltx-score small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-secondary); }
.ltx-bars { list-style: none; display: grid; gap: 8px; }
.ltx-bars li { display: grid; grid-template-columns: 48px 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; }
.ltx-bars i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #27509b calc(var(--p) * 1%), #dfe3ec 0); }
.ltx-bars b { text-align: right; font-weight: 600; color: var(--text-secondary); }
.ltx-quotes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; }
.ltx-quotes li { position: relative; padding: 18px 18px 18px 20px; border-radius: 14px; background: #fff; border: 1px solid #e3e3e8; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.ltx-quotes li::before { content: "“"; position: absolute; top: -6px; right: 14px; font-size: 48px; font-weight: 700; color: #fce500; }
.ltx-quotes strong { display: block; margin-bottom: 4px; font-size: 15px; color: #27509b; }

.ltx-fit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.ltx-fit section { padding: 20px 22px; border-radius: var(--radius-md); background: var(--bg-alt); }
.ltx-fit h3 { display: inline-block; margin-bottom: 14px; padding: 4px 14px; border-radius: 8px; background: #27509b; color: #fff; font-size: 15px; font-weight: 600; }
.ltx-sizes { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ltx-sizes li { padding: 9px 12px; border-radius: 10px; background: #fff; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ltx-cars { list-style: none; display: grid; gap: 8px; }
.ltx-cars li { padding: 10px 14px; border-radius: 10px; background: #fff; font-size: 15px; }
.ltx-cars strong { display: inline-block; min-width: 72px; color: #27509b; }
.ltx-product { display: block; width: 130px; height: auto; margin: 16px auto 0; border-radius: 12px; }
.ltx-foot { margin-top: 32px; padding-left: 18px; font-size: 12px; line-height: 1.7; color: var(--text-secondary); }
.ltx-foot li + li { margin-top: 6px; }

/* Michelin Pilot Sport 5 energy review */
.ps5e-fit { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; margin-top: 24px; padding: 22px 24px; border-radius: var(--radius-md); background: var(--bg-alt); }
.ps5e-fit img { display: block; width: 100%; height: auto; }
.ps5e-fit h3 { display: inline-block; margin-bottom: 12px; padding: 4px 14px; border-radius: 8px; background: #27509b; color: #fff; font-size: 15px; font-weight: 600; }
.ps5e-fit .ltx-cars strong { min-width: 100px; }
.ps5e-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #27509b;
  color: #fce500;
  font-size: 22px;
  font-weight: 700;
}
.review-michelin .uc7-feature:has(.ps5e-num) { grid-template-columns: 64px 1fr; align-items: start; }
.review-michelin .uc7-feature:has(.ps5e-cut) { grid-template-columns: 64px 1fr 150px; align-items: center; }
.ps5e-cut { margin: 0; }
.ps5e-cut img { border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.p5e-specs { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 16px; border-radius: var(--radius-md); background: #27509b; color: #fff; overflow: hidden; }
.p5e-specs li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.p5e-specs li + li { border-left: 1px solid rgba(255,255,255,.18); }
.p5e-specs span { font-size: 12.5px; color: rgba(255,255,255,.75); }
.p5e-specs strong { font-size: 20px; font-weight: 700; color: #fce500; line-height: 1.3; }
.p5e-specs small { font-size: 12px; font-weight: 500; color: #fff; }
.p5e-specs-note { margin-top: 8px; font-size: 12.5px; color: var(--text-secondary); }
.ps5e-record { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.ps5e-record div { border-top-color: #27509b; }
.ps5e-record strong { font-size: 36px; color: #27509b; }
.ps5e-velvet { margin-top: 20px; }
.ps5e-velvet img { border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.ps5e-velvet p { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.p5-awards strong { font-size: 18px; line-height: 1.35; }
.p5-rr { grid-template-columns: 1fr 1fr; }
.p5-wet { grid-template-columns: 260px 1fr; align-items: center; }
.p5-wet img { border-radius: var(--radius-md); }
.p5-wet p { margin-bottom: 12px; }
.p5-wet + h3 { margin-top: 32px; }
.post-body .post-figure + h3 { margin-top: 18px; }
.p5e-vs th:not(:first-child),
.p5e-vs td { text-align: center; }
.p5e-vs thead th:last-child { color: #27509b; }
.p5e-vs td b { color: #27509b; }
.p5e-vs tbody th { white-space: normal; }
@media (max-width: 600px) {
  .p5e-vs th, .p5e-vs td { padding: 12px 10px; }
  .p5e-vs thead th { font-size: 11.5px; }
}.ps5e-test ul { margin-top: 16px; }
.ps5e-test li { width: calc(var(--m) * 1%); } /* bar length = longevity % (scale 0–100) */
.p5e-wet li { width: calc(var(--m) / 112 * 100%); } /* values go past 100%: scale to 112 */
.ps5e-test + .ps5e-test { margin-top: 12px; }
.ltx-brake-title sup { font-size: 0.6em; color: #fce500; }

/* UX7 review */
.ux7-icon { display: block; width: auto; height: 54px; }
.ux7-key-uc6::before { background: #1d1d1f; }
.ux7-feature-tread { aspect-ratio: 3 / 2; object-fit: cover; background: #fff; box-shadow: inset 0 0 0 1px #e8e8ed; }
.ux7-needs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 18px; }
.ux7-needs section { padding: 20px 22px; border-radius: var(--radius-md); background: var(--bg-alt); border-top: 4px solid #ffa500; }
.ux7-needs h3 { margin-bottom: 10px; font-size: 16px; font-weight: 600; color: #c47f00; }
.ux7-needs ul { list-style: none; display: grid; gap: 8px; }
.ux7-needs li { padding: 9px 14px; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 500; }
.ux7-needs-arrow { font-size: 28px; font-weight: 700; color: #ffa500; }

/* SC7 review */
.sc7-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sc7-videos figure { margin: 0; overflow: hidden; border-radius: var(--radius-md); background: #111; }
.sc7-videos video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000; } /* source clips are square */
.sc7-videos figcaption { padding: 14px 18px 18px; font-size: 14px; line-height: 1.65; color: #c9c9ce; }
.sc7-videos figcaption strong { display: block; margin-bottom: 2px; font-size: 16px; color: #ffa500; }

.sc7-perf { grid-template-columns: 1.5fr 1fr; align-items: start; }
.sc7-perf-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: #fff !important; }
.sc7-key-sc6::before { background: #fff; }
.sc7-bars { list-style: none; display: grid; gap: 10px; margin-bottom: 12px; }
.sc7-bars li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #1c1c1e;
  font-size: 13.5px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* bar: SC6 (100%) sits at 5/6 of the width, so 120% fills the row */
.sc7-bars li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) / 120 * 100%);
  background: linear-gradient(90deg, rgba(255, 165, 0, 0.25), rgba(255, 165, 0, 0.6));
  z-index: -1;
}
.sc7-bars li::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100 / 120 * 100%);
  width: 2px;
  background: #fff;
  opacity: 0.8;
}
.sc7-bars b { font-size: 15px; color: #ffa500; margin-left: 12px; }
.sc7-eu { padding: 18px 20px; border: 1px solid #3a3a3c; border-radius: 14px; }
.sc7-eu-title { font-size: 15px !important; font-weight: 700; color: #ffa500 !important; }
.sc7-eu dl { display: grid; gap: 10px; margin-top: 12px; }
.sc7-eu dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #2c2c2e; }
.sc7-eu dt { font-size: 13.5px; color: #c9c9ce; }
.sc7-eu dd { margin: 0; font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap; }
.sc7-eu dd small { font-size: 12px; color: #c9c9ce; }
.sc7-eu-link { display: inline-block; margin-top: 12px; font-size: 13px; color: #ffa500; }
.sc7-eu-link:hover { text-decoration: underline; }

.sc7-dims { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sc7-dims li { padding: 18px; border-radius: var(--radius-md); background: var(--bg-alt); border-top: 4px solid #ffa500; }
.sc7-dims span { display: block; font-size: 13px; color: var(--text-secondary); }
.sc7-dims strong { display: block; margin-top: 4px; font-size: 26px; font-weight: 700; line-height: 1.2; }
.sc7-dims small { font-size: 12.5px; color: var(--text-secondary); }

.uc7-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; margin-top: 28px; }
.uc7-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.uc7-gallery img:first-child { grid-row: span 2; }
.uc7-verdict {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border-left: 4px solid #ffa500;
}
.uc7-verdict p { font-size: 15.5px; line-height: 1.8; color: var(--text-secondary); }
.uc7-verdict strong { color: var(--text); }
.uc7-verdict .link-arrow { display: inline-block; margin-top: 10px; }

/* share buttons (top of post + end of post) */
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.post-share-label { margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-fb svg { fill: #1877f2; }
.share-line svg { fill: #06c755; }
.share-fb:hover { background: #1877f2; color: #fff; }
.share-line:hover { background: #06c755; color: #fff; }
.share-fb:hover svg,
.share-line:hover svg { fill: #fff; }
.share-copy:hover,
.share-copy.is-copied { background: var(--brand); color: #fff; }
.post-share-end {
  max-width: 760px;
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid #e8e8ed;
}

/* ECO sticker article */
/* portrait label: taken out of flow so it can't make its card taller than the others */
.article-thumb:has(.thumb-eco) { position: relative; min-height: 230px; }
.article-thumb img.thumb-eco { position: absolute; inset: 0; min-height: 0; object-position: 50% 30%; }
.eco-anatomy { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; margin-top: 20px; }
.eco-label { margin: 0; }
.eco-label img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.eco-label figcaption { margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--text-secondary); }
.eco-values { list-style: none; display: grid; gap: 12px; }
.eco-values li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}
.eco-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}
.eco-icon svg { width: 24px; height: 24px; fill: currentColor; }
.eco-values h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.eco-values h3 small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-secondary); }
.eco-values p { margin-top: 6px; font-size: 14.5px; line-height: 1.7; color: var(--text-secondary); }
.eco-example { display: inline-block; padding: 3px 10px; border-radius: 8px; background: #fff; font-size: 13.5px !important; }
.eco-example strong { color: #23808d; }

.eco-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.eco-chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 14.5px;
  font-weight: 500;
}

.eco-classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.eco-classes section { padding: 18px 20px; border-radius: var(--radius-md); background: var(--bg-alt); }
.eco-classes span { font-size: 28px; font-weight: 700; color: #23808d; }
.eco-classes p { margin-top: 4px; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.eco-tis tbody th { white-space: nowrap; }
.eco-tis td:nth-child(2) { white-space: normal; color: var(--text-secondary); }

.eco-case {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}
.eco-case figure { margin: 0; overflow: hidden; border-radius: 14px; background: #fff; }
.eco-case img { display: block; width: 100%; height: auto; }
.eco-case-title { font-size: 18px; font-weight: 700; }
.eco-case-list { display: grid; gap: 12px; margin-top: 14px; }
.eco-case-list div { display: flex; gap: 14px; align-items: center; }
.eco-grade {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}
.eco-grade small { display: block; font-size: 10px; font-weight: 600; }
.grade-a { background: #2e9d5b; color: #fff; }
.grade-c { background: #ffe34d; color: #1d1d1f; }
.grade-db { background: #1d1d1f; color: #fff; font-size: 16px; }
.eco-case-list dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.eco-case-list dd strong { display: block; color: var(--text); }
.eco-case-sum { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e3e3e8; font-size: 14.5px; line-height: 1.7; }

/* tire repair article */
.repair-zones,
.repair-special { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.repair-special { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.repair-zone,
.repair-special section {
  padding: 22px 22px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border-top: 4px solid #2e9d5b;
}
.repair-zone.is-no { border-top-color: #d84a3a; }
.repair-special .is-once { border-top-color: var(--brand-yellow); }
.repair-verdict {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: #e3f4e9;
  color: #1f7a45;
  font-size: 13px;
  font-weight: 700;
}
.repair-verdict::before { content: "✓"; }
.is-no .repair-verdict { background: #fde8e5; color: #b3261e; }
.is-no .repair-verdict::before { content: "✕"; }
.is-once .repair-verdict { background: rgba(255, 201, 48, 0.28); color: #7a5a00; }
.is-once .repair-verdict::before { content: "1×"; }
.repair-zone h3,
.repair-special h3 { margin: 12px 0 6px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.repair-zone p:not(.repair-verdict),
.repair-special p:not(.repair-verdict) { font-size: 14.5px; line-height: 1.75; color: var(--text-secondary); }
.repair-special-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e3e3e8; font-size: 13.5px !important; }

.repair-methods h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.repair-methods p + p { margin-top: 10px; }
.repair-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d9e9ec;
  color: #23808d;
  font-size: 12px;
  font-weight: 600;
}
.repair-tag.is-quick { background: var(--brand); color: #fff; box-shadow: none; }
.repair-split { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.post-factors .repair-split li { counter-increment: none; } /* nested inside a numbered step */
.post-factors .repair-split li::before { content: none; }
.post-factors .repair-split li { padding: 10px 14px; border-radius: 12px; background: #fff; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.repair-split strong { display: block; color: var(--text); }
.repair-methods .tire-con strong { display: block; margin: 0 0 2px; }

.repair-emergency {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 201, 48, 0.22);
}
.repair-emergency-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-yellow);
}
.repair-emergency-icon svg { width: 20px; height: 20px; fill: #1d1d1f; }
.repair-emergency h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.repair-emergency p { font-size: 14.5px; line-height: 1.75; color: var(--text); }

/* OE marking article */
/* cover is two photos side by side: size the img to 2× the thumb so only the left photo shows */
.article-thumb img.thumb-oe { width: 202%; max-width: none; object-position: 0 50%; transform-origin: 25% 50%; }
.oe-brands { padding: 10px 22px 14px; border-radius: var(--radius-md); background: var(--bg-alt); }
/* list flows into 2 columns; the header repeats its labels over each column */
.oe-brands-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  border-bottom: 1px solid #e3e3e8;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.oe-brands-head > div,
.oe-brands dl div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; }
.oe-brands-head > div { padding: 8px 0; }
.oe-brands dl { columns: 2; column-gap: 40px; }
.oe-brands dl div { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid #e8e8ed; }
.oe-brands dt { font-size: 15px; font-weight: 600; }
.oe-brands dd { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }

.oe-brands code,
.oe-table code,
.rf-marks code,
.load-table code {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d9e9ec;
  color: #23808d;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.oe-brands code i { font-weight: 500; color: var(--text-secondary); }
.oe-star { color: #1d1d1f !important; }

.oe-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; align-items: start; }
.oe-grid,
.rf-marks { margin-top: 20px; }
.oe-box { padding: 22px; border-radius: var(--radius-md); background: var(--bg-alt); }
.oe-box h3 { margin-bottom: 12px; font-size: 18px; font-weight: 600; }
.oe-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.oe-table th,
.oe-table td { padding: 9px 10px 9px 0; text-align: left; vertical-align: top; line-height: 1.55; }
.oe-table thead th { font-size: 12px; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid #e3e3e8; }
.oe-table tbody tr + tr td { border-top: 1px solid #e3e3e8; }
.oe-table td:first-child { width: 1%; white-space: nowrap; padding-right: 14px; }
.oe-table td:last-child { color: var(--text-secondary); }

.rf-marks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.rf-marks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-alt);
}
.rf-marks code { flex: none; min-width: 58px; padding: 6px 8px; text-align: center; font-size: 16px; background: var(--brand); color: #fff; box-shadow: none; }
.rf-marks span { font-size: 15px; font-weight: 600; line-height: 1.35; }
.rf-marks small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-secondary); }

.load-table td:has(> code) { width: 1%; }
.load-table td:last-child { color: var(--text-secondary); white-space: normal; } /* the row under a rowspan shifts columns */
.load-table tbody th[rowspan] { vertical-align: middle; }

/* ================= Footer ================= */
.footer {
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 12px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 22px 24px;
}

.footer-cols {
  display: flex;
  justify-content: space-between; /* equal gaps between columns, like the nav */
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-col h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a:hover { text-decoration: underline; color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
}
.footer-logo { color: var(--text-secondary); }
.footer-logo svg { width: 24px; height: 17px; }

/* ================= Scroll reveal ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ================= Responsive ================= */
@media (max-width: 833px) {
  .globalnav-toggle { display: block; }

  .globalnav-list {
    /* header has backdrop-filter → it becomes the containing block, so size explicitly */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    margin: 0;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--brand);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .globalnav-list > li {
    transform: translateY(-8px);
    transition: transform 0.4s var(--ease);
  }
  .globalnav-list > li > a {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    padding: 10px 0 6px;
    color: #fff;
  }

  /* flyouts become plain sub-link lists under each heading */
  .nav-flyout,
  .has-flyout:hover > .nav-flyout,
  .has-flyout:focus-within > .nav-flyout {
    position: static;
    visibility: inherit; /* NOT visible — that would leave invisible, clickable links over the page when the menu is closed */
    opacity: 1;
    background: none;
    box-shadow: none;
    transition: none;
  }
  .nav-flyout-inner { max-width: none; margin: 0; padding: 0 0 8px; }
  .nav-flyout-inner > * { transform: none; }
  .flyout-label { display: none; }
  .nav-flyout li a {
    font-size: 17px;
    font-weight: 400;
    padding: 4px 0 4px 2px;
    color: rgba(255, 255, 255, 0.82);
  }
  .nav-scrim { display: none; }

  .nav-open .globalnav { background: var(--brand); }
  .nav-open .globalnav-list { visibility: visible; opacity: 1; }
  .nav-open .globalnav-list li { transform: none; }
  .nav-open .globalnav-toggle span:first-child { top: 23px; transform: rotate(45deg); }
  .nav-open .globalnav-toggle span:last-child  { top: 23px; transform: rotate(-45deg); }
  .nav-open { overflow: hidden; }

  .product-row { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
  .call-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .page-hero { padding: 48px 20px 28px; }
  .call-section { padding: 48px 16px 32px; }
  /* LINE card stacks: info (with add-friend button) first, QR below */
  .line-section { padding: 0 16px 72px; }
  .line-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 28px;
    padding: 36px 24px;
    text-align: center;
  }
  .line-info { display: flex; flex-direction: column; align-items: center; }
  .line-id { justify-content: center; }
  .line-qr img { width: 168px; height: 168px; }

  /* brand pages */
  .brand-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .brand-hero-media { order: -1; max-width: 520px; }
  .style-grid { grid-template-columns: 1fr; }
  .brand-hero-placeholder { display: none; } /* logo already sits in the text column; avoid showing it twice */

  /* tire size article */
  .index-grid { grid-template-columns: 1fr; }
  .size-examples { grid-template-columns: 1fr; }
  .oe-grid { grid-template-columns: 1fr; }
  .uc7-highlights,
  .uc7-dna,
  .uc7-compare { grid-template-columns: 1fr; }
  .uc7-feature { grid-template-columns: 1fr; gap: 12px; }
  .sc7-videos { grid-template-columns: 1fr; }
  .ux7-needs { grid-template-columns: 1fr; }
  .rf-stats strong { font-size: 34px; }
  .ps5e-fit { grid-template-columns: 1fr; }
  .ps5e-fit img { max-width: 200px; margin: 0 auto; }
  .review-michelin .uc7-feature:has(.ps5e-num) { grid-template-columns: 48px 1fr; gap: 14px; }
  .review-michelin .uc7-feature:has(.ps5e-cut) { align-items: start; }
  .ps5e-cut { grid-column: 2; max-width: 140px; }
  .p5e-specs { grid-template-columns: repeat(2, 1fr); }
  .ps5e-record { grid-template-columns: 1fr; }
  .ps5e-record strong { font-size: 32px; }
  .p5-awards strong { font-size: 17px; }
  .p5-rr { grid-template-columns: 1fr 1fr; }
  .p5-wet { grid-template-columns: 1fr; }
  .p5-wet img { max-width: none; }
  .p5e-specs li + li { border-left: 0; }
  .p5e-specs li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .p5e-specs li:nth-child(even) { border-left: 1px solid rgba(255,255,255,.18); }
  .p5e-specs li:last-child { grid-column: 1 / -1; border-left: 0; }  .ps5e-num { width: 48px; height: 48px; border-radius: 14px; font-size: 17px; }
  .ltx-rating,
  .ltx-quotes,
  .ltx-fit { grid-template-columns: 1fr; }
  .ltx-brake li { min-width: 0; font-size: 12.5px; padding: 8px 10px; }
  .ux7-needs-arrow { justify-self: center; transform: rotate(90deg); }
  .sc7-dims { grid-template-columns: 1fr 1fr; }
  .uc7-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .uc7-gallery img:first-child { grid-row: auto; grid-column: span 2; }
  .uc7-gallery img { height: auto; aspect-ratio: 3 / 2; }
  .lineup-grid { grid-template-columns: 1fr; }
  .lineup-group-wide { grid-column: auto; }  .lineup-filter { justify-content: flex-start; }
  .eco-anatomy,
  .eco-case { grid-template-columns: 1fr; }
  .eco-label { max-width: 260px; margin: 0 auto; }
  .eco-case figure { max-width: 220px; margin: 0 auto; }
  .eco-classes { grid-template-columns: 1fr; }
  .repair-zones,
  .repair-special,
  .repair-split { grid-template-columns: 1fr; }
  .oe-brands dl { columns: 1; }
  .oe-brands-head { grid-template-columns: 1fr; }
  .oe-brands-head > div + div { display: none; }

  /* articles */
  .article-card { grid-template-columns: 1fr; }
  .article-thumb img { min-height: 0; aspect-ratio: 16 / 9; }
  .article-thumb img.thumb-oe { aspect-ratio: 32 / 9; }
  .article-thumb:has(.thumb-eco) { min-height: 0; aspect-ratio: 16 / 9; } /* 2× wide img, same 16:9 visible area */
  .article-info { padding: 22px 22px 26px; }

  /* history */
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .history-cover { aspect-ratio: 16 / 9; }
  .history-cover.history-cover-photo { aspect-ratio: auto; }
  .history-gens { grid-template-columns: 1fr; }
  .history-gens li + li::before { left: 50%; top: -14px; margin: 0 0 0 -12px; transform: rotate(90deg); }
  .history-tech { grid-template-columns: 1fr 1fr; }
  .history-text p { font-size: 15.5px; }
  .history-figure { float: none; width: auto; max-width: 460px; margin: 0 auto 20px; } /* phone: too narrow to wrap text, stack instead */
  .history-para-center { flex-direction: column-reverse; align-items: stretch; gap: 0; } /* phone: photo above the text, like the others */
  .history-para-center > .history-figure { width: auto; margin: 0 auto 20px; }
  .history-para-center-left { flex-direction: column; } /* photo is already first in the markup */

  /* continental warranty */
  .conti-regions { grid-template-columns: 1fr; }
  .rsa-grid { grid-template-columns: repeat(2, 1fr); }
  .rsa-notes { grid-template-columns: 1fr; }
  .quality-teaser { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 20px; }

  /* warranty: brand cards stack */
  .warranty-grid { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }
  .tread-callout { max-width: 600px; margin-left: auto; margin-right: auto; }

  /* apply page: text first, screenshot below */
  .apply-step { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .apply-shot img { width: 200px; }

  /* benefits page */
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-section { padding: 48px 16px; }
  .benefits-cta { padding: 56px 16px 72px; }

  /* support page: info panel on top, form below */
  .support-section { padding: 0 16px 72px; }
  .support-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .support-form { padding: 28px 22px 30px; }
  .tiles { grid-template-columns: 1fr; }
  /* single column: alternate every tile (teal, yellow, teal, yellow) */
  .tiles > .tile:nth-child(odd) {
    --tile-bg: var(--brand);
    --tile-fg: #fff;
    --tile-muted: rgba(255, 255, 255, 0.88);
    --tile-btn-bg: #fff;
    --tile-btn-fg: #1f6f7a;
    --tile-btn-hover: #f0fafb;
  }
  .tiles > .tile:nth-child(even) {
    --tile-bg: var(--brand-yellow);
    --tile-fg: var(--text);
    --tile-muted: rgba(29, 29, 31, 0.75);
    --tile-btn-bg: var(--text);
    --tile-btn-fg: #fff;
    --tile-btn-hover: #000;
  }
  .tile { min-height: 520px; padding: 48px 24px 0; }}

@media (max-width: 480px) {
  .banner { padding: 72px 16px 40px; }
  .product-row { grid-template-columns: 1fr; max-width: 420px; }
  .tiles { padding: 12px 0; gap: 12px; }
  .slideshow { padding: 12px 0 0; }
  .slideshow-viewport { border-radius: 0; }
  .slide-caption { max-width: 80%; gap: 3px; }
  .slide-cta { margin-top: 4px; padding: 6px 14px; }
  .tile { border-radius: 0; }
  .tile-sub br { display: none; }
  .footer-cols { flex-direction: column; gap: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .apply-types { grid-template-columns: 1fr; }
  .warranty-card { padding: 24px 20px 20px; }
  .rsa-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 24px 22px; }
  .post { padding: 40px 16px 16px; }
  .post-body > h2 { font-size: 22px; margin-top: 40px; }
  .tire-type { grid-template-columns: 1fr; gap: 16px; }
  /* wide frame on phones: show the image at 3× width so only this type's third is visible */
  .tire-type-media { position: relative; aspect-ratio: 16 / 10; }
  .tire-type-media img {
    position: absolute;
    top: 50%;
    width: 300%;
    height: auto;
    transform: translateY(-45%);
  }
  .tire-type-media .crop-left { left: 0; }
  .tire-type-media .crop-center { left: -100%; }
  .tire-type-media .crop-right { left: -200%; }
  .post-factors li { padding: 18px 18px 18px 62px; }
  .life-stats { grid-template-columns: 1fr; }
  .brand-hero { padding: 32px 16px 48px; }
  .brand-hero-logo { width: 190px; }
  .essence-footer { grid-template-columns: 1fr; }
  .brand-statement { padding: 56px 20px; }
  /* scale with the screen so the longest phrase always fits on one line */
  .brand-statement-quote { font-size: 5.5vw; }
  .brand-statement-lead { font-size: 16px; }
  .size-part { grid-template-columns: 52px 1fr; gap: 14px; padding: 18px; }
  .size-part-code { height: 44px; font-size: 18px; border-radius: 12px; }
  .size-calc { padding: 18px; }
  .size-calc-results { grid-template-columns: 1fr; }
  .size-calc-body { grid-template-columns: 1fr; gap: 14px; }
  .size-calc-guide { max-width: 260px; margin: 0 auto; }
  .size-calc-inputs label { flex-basis: 80px; }
  .dot-box { flex-direction: column; align-items: flex-start; gap: 14px; }
  .size-legend { justify-content: flex-start; text-align: left; }
  .wear-item { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .wear-diagram { max-width: 220px; }
  .tip-card { padding: 18px; }
  .post-factors li::before { left: 18px; top: 18px; }
  .article-info h2 { font-size: 20px; }
  .rsa-hotline { flex-wrap: wrap; gap: 14px; padding: 18px; }
  .rsa-hotline-icon { width: 48px; height: 48px; }
  .rsa-hotline-number { font-size: 28px; }
  .rsa-hotline-cta { flex-basis: 100%; text-align: center; }
  .conti-region { padding: 22px 20px; }
  .conti-num { font-size: 40px; }
  .conti-region-stats { flex-direction: column; align-items: flex-start; gap: 4px; }
  .conti-or { padding: 2px 0; }
  .conti-rules { padding: 20px; }
  .conti-register-cta { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; text-align: center; }
  .conti-register-big { justify-content: center; width: 100%; }
  .warranty-years { font-size: 48px; }
  .warranty-years-text { font-size: 28px; line-height: 1.6; }
  .warranty-stat-split { gap: 12px; }
  .tread-callout { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .apply-step h3 { font-size: 20px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { flex-direction: row; align-items: flex-start; padding: 20px; }
  .benefit-icon { flex: none; width: 40px; height: 40px; }
  .benefits-intro, .benefits-invite { text-align: left; }
  .doc-list { padding: 4px 18px; }
  .footer-inner { padding: 32px 16px 24px; }
}
