.model-page {
  /* Design tokens measured 2026-08-18 from subaru.com and the live
     fairfieldsubaru.com theme. The dealer site publishes its own
     --website-primary-theme-color (#1971d4, identical to subaru.com's
     rgb(25,113,212)), so we consume it and fall back to the measured
     value. If the retailer re-themes, these pages follow automatically. */
  --subaru-blue: var(--website-primary-theme-color, #1971d4);
  --subaru-blue-dark: #051840;   /* --black; 調色盤沒有第二種藍 */
  --ink: #111;
  --muted: #393937;   /* --subaru-black */
  --line: #e3e7ee;    /* --gray-200 */
  --paper: #ffffff;
  /* 官方調色盤,和 dealer 樣式表同名同值。自己宣告一份,這樣就不依賴
     客戶網站是否定義了同名變數(2026-09-09 稽核)。 */
  --white: #fff;
  --black: #051840;
  --gray-100: #f8f5f7;
  --gray-200: #e3e7ee;
  --gray-400: #b3b5b5;
  --gray-600: #393937;
  --radius-button: 4px; /* dealer theme uses 4px, subaru.com 5px */
  /* Typography follows the dealer site rather than a font of our own: the
     Subaru theme resolves to Arial / the system stack and loads no brand
     webfont, so importing one would break the OEM design system. */
  --font-stack:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-stack);
}

.model-page,
.model-page * {
  box-sizing: border-box;
}

.model-page a {
  color: inherit;
}

.model-hero {
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

.model-nav {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.model-nav__inner {
  width: min(1440px, calc(100% - 64px));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  align-items: center;
  gap: 24px;
}

.model-nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-stack);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.model-nav__brand-year {
  color: var(--subaru-blue);
  font-size: 15px;
  letter-spacing: 0.14em;
}

.model-nav__links {
  height: 82px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(22px, 3.4vw, 54px);
}

.model-nav__links a {
  position: relative;
  display: grid;
  place-items: center;
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.model-nav__links a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--subaru-blue);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.model-nav__links a:hover::after,
.model-nav__links .model-nav__link--active::after {
  transform: scaleX(1);
}

.model-nav__links a[href="#specials"] {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.model-nav__links a[href="#specials"]::before {
  content: "NEW";
  position: absolute;
  top: 4px;
  right: -24px;
  padding: 2px 5px;
  color: var(--paper);
  background: var(--subaru-blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.model-nav__cta,
.model-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  text-decoration: none;
  /* 16px / normal tracking matches the live dealer theme's buttons.
     Weight stays 700: the host loads no Helvetica Neue Medium face, so
     Subaru's 400-on-65Medium would render thin in the Arial fallback. */
  font-size: 16px;
  font-weight: 700;
  letter-spacing: normal;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.model-nav__cta {
  color: var(--paper);
  background: var(--subaru-blue);
}

.model-page .model-nav__cta,
.model-page .model-nav__cta:visited,
.model-page .model-nav__cta:hover,
.model-page .model-nav__cta:focus-visible,
.model-page .model-button--primary,
.model-page .model-button--primary:visited,
.model-page .model-button--primary:hover,
.model-page .model-button--primary:focus-visible,
.model-page .model-button--lease,
.model-page .model-button--lease:visited,
.model-page .model-button--lease:hover,
.model-page .model-button--lease:focus-visible,
.model-page .trim-card__build,
.model-page .trim-card__build:visited,
.model-page .trim-card__build:hover,
.model-page .trim-card__build:focus-visible,
.model-page .special-card__button,
.model-page .special-card__button:visited,
.model-page .special-card__button:hover,
.model-page .special-card__button:focus-visible {
  color: var(--paper);
}

.model-hero__intro {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(52px, 5vw, 76px) 0 clamp(46px, 4vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 72px;
}

.model-hero__copy {
  max-width: 910px;
}

.model-hero__eyebrow {
  margin: 0 0 18px;
  color: var(--subaru-blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.model-hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-stack);
  font-size: clamp(26px, 2.6vw, 32px) !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em;
}

.model-hero__lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.65;
}

.model-hero__actions {
  min-width: 240px;
  display: grid;
  gap: 10px;
}

.model-button {
  min-height: 56px;
  padding: 0 26px;
}

.model-button--primary {
  color: var(--paper);
  background: var(--subaru-blue);
}

.model-button--secondary {
  border-color: var(--ink);
  background: var(--ink);
}

.model-button--lease {
  color: var(--paper);
  background: var(--subaru-blue);
}

.model-hero__media {
  position: relative;
  width: calc(100% - 32px);
  min-height: clamp(520px, 58vw, 600px);
  margin: 0 16px 16px;
  overflow: hidden;
  background: var(--black, #051840);
}

.model-hero__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
  animation: hero-reveal 900ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.model-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(5, 24, 64, 0.68) 100%
  );
  pointer-events: none;
}

.model-hero__location {
  position: absolute;
  top: 32px;
  right: 32px;
  max-width: 310px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--paper);
  background: rgba(5, 24, 64, 0.76);
  backdrop-filter: blur(12px);
}

/* 定位圓點改用 ::before 產生,不再用空的 <span>。CKEditor 4(Apollo 後台)會清掉
   空的 inline 元素,實測 <span class="model-hero__pin"></span> 整個被刪,線上 80 頁
   的圓點因此全部消失。用偽元素就不經過編輯器的 HTML 過濾。2026-09-09 */
.model-hero__location::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.model-hero__location div {
  display: grid;
  gap: 3px;
}

.model-hero__location-label {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.model-hero__location strong {
  font-size: 17px;
}

.model-hero__location span:last-child {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.5;
}

.model-hero__specials {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(760px, calc(100% - 64px));
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  text-align: center;
}

.model-hero__specials-offer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(26px, 4vw, 54px);
}

.model-hero__specials-figure {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.model-hero__specials-figure + .model-hero__specials-figure {
  padding-left: clamp(26px, 4vw, 54px);
  border-left: 1px solid rgba(255, 255, 255, 0.42);
}

.model-hero__specials-unit {
  color: rgba(255, 255, 255, 0.86);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 10px rgba(5, 24, 64, 0.45);
}

.model-hero__specials-label {
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 10px rgba(5, 24, 64, 0.45);
}

.model-hero__specials-price {
  font-family: var(--font-stack);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(5, 24, 64, 0.45);
}

.model-hero__specials-price span {
  font-size: 0.44em;
}

.model-hero__specials-terms {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(5, 24, 64, 0.55);
}

.model-hero__specials-link {
  flex-shrink: 0;
  padding: 14px 22px;
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: var(--subaru-blue);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.model-hero__specials-link:hover,
.model-hero__specials-link:focus-visible {
  background: var(--subaru-blue-dark);
}

.model-trims {
  --trim-gap: 32px;
  --trim-shell: min(1440px, calc(100vw - 64px));
  padding: 78px 0 96px;
  overflow: hidden;
  background: var(--paper);
}

.model-trims__header {
  width: var(--trim-shell);
  margin: 0 auto 34px;
}

.model-trims__eyebrow {
  margin: 0 0 10px;
  color: var(--subaru-blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.model-trims h2 {
  margin: 0;
  font-family: var(--font-stack);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 0.96;
}

.model-trims__header p:last-child {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.model-trims__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 0 max(32px, calc((100vw - 1440px) / 2 + 32px)) 28px;
  scroll-padding-left: max(32px, calc((100vw - 1440px) / 2 + 32px));
  scroll-snap-type: x proximity;
  scrollbar-color: var(--gray-600, #393937) var(--gray-200, #e3e7ee);
  scrollbar-width: auto;
}

.model-trims__viewport:focus-visible {
  outline: 3px solid rgba(25, 113, 212, 0.35);
  outline-offset: -3px;
}

.model-trims__viewport::-webkit-scrollbar {
  height: 14px;
}

.model-trims__viewport::-webkit-scrollbar-track {
  background: var(--gray-200, #e3e7ee);
}

.model-trims__viewport::-webkit-scrollbar-thumb {
  border: 3px solid var(--gray-200, #e3e7ee);
  border-radius: 8px;
  background: var(--gray-600, #393937);
}

.model-trims__source {
  width: min(1440px, calc(100% - 64px));
  margin: 8px auto 0;
  color: var(--gray-600, #393937);
  font-size: 13px;
  line-height: 1.5;
}

.model-trims__source a {
  color: var(--subaru-blue);
  font-weight: 800;
  text-underline-offset: 3px;
}

.model-trims__track {
  width: max-content;
  display: flex;
  align-items: stretch;
  gap: var(--trim-gap);
}

.trim-card {
  flex: 0 0
    clamp(300px, calc((var(--trim-shell) - (var(--trim-gap) * 3)) / 4), 360px);
  min-height: 760px;
  padding: 22px 30px 30px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border-radius: 8px;
  background: var(--gray-100, #f8f5f7);
}

.trim-card__index {
  color: #111;
  font-size: 13px;
}

.trim-card__image {
  min-height: 178px;
  margin: 10px 0 18px;
  display: grid;
  place-items: center;
}

.trim-card__image img {
  width: min(100%, 286px);
  height: auto;
  display: block;
}

.trim-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.trim-card__year {
  margin: 0;
  color: var(--gray-600, #393937);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.trim-card h3 {
  margin: 4px 0 0;
  color: #111;
  font-size: 21px;
  line-height: 1;
}

.trim-card__rule {
  height: 1px;
  margin: 24px 0 20px;
  background: var(--gray-200, #e3e7ee);
}

.trim-card__metric {
  margin: 0 0 9px;
  color: var(--gray-600, #393937);
  font-size: 16px;
  line-height: 1.35;
}

.trim-card__metric strong {
  color: #111;
  font-weight: 800;
}

.trim-card sup {
  color: var(--subaru-blue);
  font-size: 0.72em;
  font-weight: 800;
  line-height: 0;
}

.trim-card__features {
  height: 124px;
  margin: 0;
  padding: 0 10px 0 17px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--gray-600, #393937);
  font-size: 15px;
  line-height: 1.55;
  scrollbar-color: var(--gray-600, #393937) var(--gray-200, #e3e7ee);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.trim-card__features::-webkit-scrollbar {
  width: 8px;
}

.trim-card__features::-webkit-scrollbar-track {
  background: var(--gray-200, #e3e7ee);
}

.trim-card__features::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: var(--gray-600, #393937);
}

.trim-card__features li + li {
  margin-top: 10px;
}

.trim-card__features-link {
  width: fit-content;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--subaru-blue);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.trim-card__features-link span {
  font-size: 29px;
  font-weight: 400;
  line-height: 0.6;
}

.trim-card__footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200, #e3e7ee);
}

.trim-card__available {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-600, #393937);
  font-size: 13px;
}

.trim-card__available > span:first-child {
  width: 100%;
}

.trim-tag {
  position: relative;
  padding: 5px 8px 5px 22px;
  border-radius: 4px;
  color: #111;
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
}

.trim-tag::before {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 9px;
  height: 13px;
  border-radius: 0;
  background: var(--subaru-blue, #1971d4);
  content: "";
  transform: translateY(-50%);
}

.trim-tag::after {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 5px;
  height: 2px;
  background: var(--paper);
  content: "";
}

.trim-card__build {
  min-height: 60px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: var(--subaru-blue, #1971d4);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.model-specials {
  padding: 88px 0;
  background: var(--paper);
  color: var(--ink);
}

.model-specials__inner {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.model-specials__header {
  max-width: 820px;
  margin-bottom: 34px;
}

.model-specials__eyebrow {
  margin: 0 0 10px;
  color: var(--subaru-blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.model-specials h2 {
  margin: 0;
  font-family: var(--font-stack);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 0.96;
}

.model-specials__header p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.specials-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
}

.specials-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.special-card {
  min-height: 470px;
  padding: clamp(28px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
}

.special-card--lease {
  background: linear-gradient(135deg, var(--subaru-blue) 0%, var(--subaru-blue-dark) 100%);
  color: var(--paper);
}

.special-card--buy {
  background: var(--gray-100, #f8f5f7);
}

.special-card--contact {
  min-height: 340px;
  border: 1px solid var(--gray-200, #e3e7ee);
  background: var(--gray-100, #f8f5f7);
}

.special-card__topline {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: inherit;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.special-card--lease .special-card__topline,
.special-card--lease .special-card__term,
.special-card--lease .special-card__due {
  color: rgba(255, 255, 255, 0.82);
}

.special-card h3 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.15;
}

.special-card__label {
  margin: 38px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 700;
}

.special-price {
  margin-top: 2px;
  display: flex;
  align-items: flex-start;
  font-family: var(--font-stack);
  line-height: 0.84;
}

.special-price span {
  margin-top: 13px;
  font-size: 36px;
  font-weight: 700;
}

.special-price strong {
  font-size: clamp(102px, 10vw, 156px);
  font-weight: 700;
}

.special-card__term {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 800;
}

.special-card__due {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.special-card__disclosure {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  color: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.special-card__disclosure > summary {
  width: fit-content;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.special-card__disclosure > summary::-webkit-details-marker {
  display: none;
}

.special-card__disclosure > summary::marker {
  content: "";
}

.special-card__disclosure > summary::after {
  content: " +";
}

.special-card__disclosure[open] > summary::after {
  content: " -";
}

.special-card__disclosure p {
  margin: 12px 0 0;
}

.special-card--lease .special-card__disclosure {
  border-color: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.76);
}

.special-card--buy .special-card__disclosure {
  border-color: var(--line);
  color: var(--muted);
}

.special-card__contact-copy {
  max-width: 760px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.special-card__link {
  width: fit-content;
  margin-top: auto;
  color: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}

.special-card--lease .special-card__link {
  color: var(--paper);
}

.special-card__price-list {
  margin: 34px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.special-card__price-list div {
  padding: 22px 22px 22px 0;
  display: grid;
  gap: 8px;
}

.special-card__price-list div + div {
  padding-left: 22px;
}

.special-card__price-list span,
.special-card__details dt {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.special-card__price-list strong {
  color: var(--ink);
  font-family: var(--font-stack);
  font-size: 44px;
  line-height: 1;
}

.special-card__details {
  /* dt/dd 直接當 grid 子元素,不用 <div> 包裝。CKEditor 4(Apollo 後台的編輯器)
     不接受 <dl> 裡有 <div>,會破壞性重組:把每組 dt/dd 各自包成一個沒有 class 的
     <dl>,原本帶 class 的 <dl> 變成空殼,樣式整段失效。2026-09-09 實測確認。
     grid-auto-flow: column + 兩列 rows,讓 dt/dd 依序填成 3 欄。 */
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  column-gap: 16px;
  row-gap: 7px;
}

.special-card__details dt,
.special-card__details dd {
  min-width: 0;
}

.special-card__details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.special-card__actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.special-card__button {
  min-height: 56px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: var(--subaru-blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.model-specials__note {
  margin: 28px 0 0;
  padding: 18px 22px;
  color: var(--gray-600, #393937);
  background: var(--white, #fff);
  border: 1px solid var(--gray-200, #e3e7ee);
  font-size: 14px;
  line-height: 1.6;
}

.model-specials__note a {
  color: var(--subaru-blue);
  font-weight: 800;
  text-underline-offset: 4px;
}

.model-specials__source {
  margin: 12px 0 0;
  color: var(--gray-600, #393937);
  font-size: 13px;
  line-height: 1.5;
}

.model-specials__source a {
  color: var(--subaru-blue);
  font-weight: 800;
  text-underline-offset: 3px;
}

.why-us {
  padding: 88px 0;
  background: var(--gray-100, #f8f5f7);
  color: var(--ink);
}

.why-us__inner {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.why-us__header {
  max-width: 820px;
  margin-bottom: 34px;
}

.why-us__eyebrow {
  margin: 0 0 10px;
  color: var(--subaru-blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.why-us h2 {
  margin: 0;
  font-family: var(--font-stack);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 0.96;
}

.why-us__header p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.why-card {
  display: flex;
  flex-direction: column;
  background: var(--black, #051840);
  color: var(--paper);
}

.why-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--black, #051840);
}

.why-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why-us__note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.why-card__body {
  flex: 1;
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
}

.why-card__eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.4;
}

.why-card h3 {
  margin: 0 0 16px;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 800;
  line-height: 1.16;
}

.why-card__body p:last-of-type {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
}

.why-card__link {
  margin-top: 22px;
  align-self: flex-start;
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-bottom: 2px solid var(--subaru-blue);
  padding-bottom: 5px;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.why-card__link:hover,
.why-card__link:focus-visible {
  color: var(--gray-200, #e3e7ee);
  border-color: var(--gray-200, #e3e7ee);
}

.local-stories {
  background: var(--gray-100, #f8f5f7);
}

.local-story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 720px;
}

.local-story--reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.local-story__copy {
  padding: clamp(64px, 7vw, 112px) clamp(34px, 5vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--gray-100, #f8f5f7);
}

.local-story__eyebrow {
  margin: 0 0 22px;
  color: var(--gray-600, #393937);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.local-story h2 {
  max-width: 720px;
  margin: 0;
  color: #111;
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 800;
  line-height: 1.12;
}

.local-story__text {
  max-width: 740px;
  margin: 30px 0 0;
  color: var(--gray-600, #393937);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.58;
}

.local-story__cta {
  width: fit-content;
  min-height: 54px;
  margin-top: 34px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: var(--subaru-blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.local-story__cta:visited,
.local-story__cta:hover,
.local-story__cta:focus-visible {
  color: var(--paper);
}

.local-story__media {
  min-height: 720px;
  margin: 0;
  overflow: hidden;
  background: var(--gray-200, #e3e7ee);
}

.local-story__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.model-faq {
  padding: 92px 0 112px;
  background: var(--paper);
}

.model-faq h2 {
  margin: 0 0 42px;
  color: #111;
  text-align: center;
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 400;
  line-height: 1.12;
}

.model-faq__list {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--gray-200, #e3e7ee);
  border-radius: 8px;
  background: var(--paper);
}

.faq-item {
  border-bottom: 1px solid var(--gray-200, #e3e7ee);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  min-height: 112px;
  padding: 30px 64px 30px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: #111;
  cursor: pointer;
  list-style: none;
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 400;
  line-height: 1.18;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background:
    linear-gradient(var(--subaru-blue), var(--subaru-blue)) center / 36px 5px
      no-repeat,
    linear-gradient(var(--subaru-blue), var(--subaru-blue)) center / 5px 36px
      no-repeat;
  content: "";
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 130px 34px 48px;
  color: var(--gray-600, #393937);
  font-size: 16px;
  line-height: 1.65;
}

.faq-item__answer p {
  max-width: 820px;
  margin: 0;
}

.model-related {
  padding: 72px 0 88px;
  background: var(--gray-100, #f8f5f7);
}

.model-related__inner {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

.model-related h2 {
  margin: 0 0 34px;
  color: #111;
  font-family: var(--font-stack);
  font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 600;
}

.model-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.model-related__group h3 {
  margin: 0 0 16px;
  color: var(--subaru-blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.model-related__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.model-related__group a {
  color: #111;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-200, #e3e7ee);
  padding-bottom: 2px;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.model-related__group a:hover,
.model-related__group a:focus-visible {
  color: var(--subaru-blue);
  border-color: var(--subaru-blue);
}

.model-compare {
  padding: 96px 0 108px;
  background: var(--gray-100, #f8f5f7);
}

.model-compare__header {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto 34px;
}

.model-compare__eyebrow {
  margin: 0 0 12px;
  color: var(--subaru-blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.model-compare h2 {
  max-width: 880px;
  margin: 0;
  color: #111;
  font-family: var(--font-stack);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 0.98;
}

.model-compare__header p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--gray-600, #393937);
  font-size: 17px;
  line-height: 1.6;
}

.compare-table-wrap {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--gray-200, #e3e7ee);
  background: var(--paper);
  scrollbar-color: var(--gray-600, #393937) var(--gray-200, #e3e7ee);
  scrollbar-width: auto;
}

.compare-table-wrap:focus-visible {
  outline: 3px solid rgba(25, 113, 212, 0.35);
  outline-offset: 3px;
}

.compare-table-wrap::-webkit-scrollbar {
  height: 14px;
}

.compare-table-wrap::-webkit-scrollbar-track {
  background: var(--gray-200, #e3e7ee);
}

.compare-table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid var(--gray-200, #e3e7ee);
  border-radius: 8px;
  background: var(--gray-600, #393937);
}

.compare-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  color: #111;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--gray-200, #e3e7ee);
  border-left: 1px solid var(--gray-200, #e3e7ee);
  vertical-align: top;
  text-align: left;
}

.compare-table th:first-child,
.compare-table td:first-child {
  border-left: 0;
}

.compare-table thead th {
  padding: 24px 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.compare-table thead th:first-child {
  width: 180px;
}

.compare-table tbody th {
  width: 180px;
  padding: 24px 22px;
  background: var(--gray-100, #f8f5f7);
  color: var(--gray-600, #393937);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.compare-table td {
  width: 220px;
  padding: 24px 22px;
  color: var(--gray-600, #393937);
  font-size: 15px;
  line-height: 1.55;
}

.compare-table .compare-table__highlight {
  background: var(--gray-100, #f8f5f7);
  color: #111;
  font-weight: 800;
}

.compare-table thead .compare-table__highlight {
  background: var(--subaru-blue);
  color: var(--paper);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.model-compare__note {
  width: min(1280px, calc(100% - 64px));
  margin: 18px auto 0;
  color: var(--gray-600, #393937);
  font-size: 13px;
  line-height: 1.55;
}

.route-section {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 98px 0 112px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(40px, 6vw, 86px);
  align-items: stretch;
  color: var(--ink);
}

.route-section__copy {
  align-self: center;
}

.route-section__eyebrow {
  margin: 0 0 12px;
  color: var(--subaru-blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.route-section h2 {
  margin: 0;
  font-family: var(--font-stack);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 0.96;
}

.route-section__copy > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--gray-600, #393937);
  font-size: 17px;
  line-height: 1.65;
}

.route-points {
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

.route-points div {
  padding-top: 20px;
  border-top: 1px solid var(--gray-200, #e3e7ee);
}

.route-points h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: 18px;
  line-height: 1.25;
}

.route-points p {
  margin: 0;
  color: var(--gray-600, #393937);
  font-size: 15px;
  line-height: 1.6;
}

.route-points a {
  color: var(--subaru-blue);
  font-weight: 800;
  text-underline-offset: 3px;
}

.route-section__map {
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--gray-200, #e3e7ee);
  background: var(--gray-200, #e3e7ee);
}

.route-section__map iframe {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: block;
  border: 0;
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: scale(1.035);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-hero__media > img {
    animation: none;
  }
}

@media (max-width: 1040px) {
  .model-nav__inner {
    grid-template-columns: 1fr auto;
  }

  .model-nav__links {
    display: none;
  }

  .model-hero__intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
  }

  .model-hero__actions {
    width: min(100%, 560px);
    grid-template-columns: repeat(2, 1fr);
  }

  .trim-card {
    flex-basis: min(420px, 72vw);
  }

  .specials-grid {
    grid-template-columns: 1fr;
  }

  .special-card {
    min-height: auto;
  }

  .why-us__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .local-story,
  .local-story--reverse {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .local-story--reverse .local-story__media {
    order: 2;
  }

  .local-story--reverse .local-story__copy {
    order: 1;
  }

  .local-story__media {
    min-height: 480px;
  }

  .model-faq__list {
    width: min(940px, calc(100% - 48px));
  }

  .faq-item summary {
    min-height: 96px;
    padding: 26px 40px;
    font-size: 22px;
  }

  .faq-item__answer {
    padding-right: 92px;
    padding-left: 44px;
  }

  .compare-table-wrap,
  .model-compare__header,
  .model-compare__note {
    width: calc(100% - 48px);
  }

  .route-section {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
  }

  .route-section__map,
  .route-section__map iframe {
    min-height: 480px;
  }
}

@media (max-width: 680px) {
  .model-related {
    padding: 56px 0 64px;
  }

  .model-related__inner {
    width: calc(100% - 36px);
  }

  .model-related__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .model-trims {
    --trim-shell: calc(100vw - 36px);
    --trim-gap: 18px;
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .model-trims__viewport {
    padding-right: 18px;
    padding-left: 18px;
    scroll-padding-left: 18px;
  }

  .model-trims__source {
    width: calc(100% - 36px);
  }

  .trim-card {
    flex-basis: min(340px, 86vw);
    min-height: 760px;
    padding: 20px 22px 26px;
  }

  .trim-card__image {
    min-height: 154px;
  }

  .trim-card h3 {
    font-size: 20px;
  }

  .model-specials {
    padding: 62px 0;
  }

  .model-specials__inner {
    width: calc(100% - 36px);
  }

  .special-card {
    padding: 26px 22px;
  }

  .why-us {
    padding: 62px 0;
  }

  .why-us__inner {
    width: calc(100% - 36px);
  }

  .why-us__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .why-card__body {
    padding: 24px 22px 26px;
  }

  .special-card__topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .special-card__price-list {
    grid-template-columns: 1fr;
  }

  /* 單欄時要改回 row 流向,否則 grid-auto-flow: column 會往右開新欄而不是往下堆疊。 */
  .special-card__details {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    row-gap: 4px;
  }

  .special-card__price-list div {
    padding-right: 0;
  }

  .special-card__price-list div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .special-price strong {
    font-size: 112px;
  }

  .local-story__copy {
    padding: 54px 24px 58px;
  }

  .local-story__eyebrow {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .local-story h2 {
    font-size: 24px;
    line-height: 1.12;
  }

  .local-story__text {
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.55;
  }

  .local-story__cta {
    width: 100%;
    margin-top: 28px;
  }

  .local-story__media {
    min-height: 330px;
  }

  .model-faq {
    padding: 62px 0 76px;
  }

  .model-faq h2 {
    margin-bottom: 28px;
    padding: 0 20px;
    font-size: 24px;
  }

  .model-faq__list {
    width: calc(100% - 28px);
  }

  .faq-item summary {
    min-height: 82px;
    padding: 20px 18px;
    gap: 18px;
    font-size: 18px;
  }

  .faq-item summary::after {
    width: 28px;
    height: 28px;
    background:
      linear-gradient(var(--subaru-blue), var(--subaru-blue)) center / 28px 4px
        no-repeat,
      linear-gradient(var(--subaru-blue), var(--subaru-blue)) center / 4px 28px
        no-repeat;
  }

  .faq-item__answer {
    padding: 0 18px 24px;
    font-size: 15px;
  }

  .model-compare {
    padding: 64px 0 78px;
  }

  .model-compare__header,
  .compare-table-wrap,
  .model-compare__note {
    width: calc(100% - 28px);
  }

  .model-compare h2 {
    font-size: 24px;
  }

  .model-compare__header p:last-child {
    font-size: 16px;
  }

  .compare-table {
    min-width: 980px;
  }

  .compare-table thead th,
  .compare-table tbody th,
  .compare-table td {
    padding: 18px 16px;
    font-size: 14px;
  }

  .route-section {
    width: calc(100% - 28px);
    padding: 64px 0 78px;
    gap: 32px;
  }

  .route-section h2 {
    font-size: 24px;
  }

  .route-section__copy > p {
    font-size: 16px;
  }

  .route-section__map,
  .route-section__map iframe {
    min-height: 360px;
  }

  .model-nav__inner {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .model-hero__intro {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .model-nav__inner {
    min-height: 70px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .model-nav__brand {
    gap: 6px;
    font-size: 20px;
  }

  .model-nav__brand-year {
    font-size: 12px;
  }

  .model-nav__cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 11px;
  }

  .model-hero__intro {
    padding-top: 48px;
    padding-bottom: 42px;
  }

  .model-hero h1 {
    font-size: clamp(24px, 7vw, 30px) !important;
    line-height: 1.1 !important;
  }

  .model-hero__lead {
    margin-top: 20px;
    line-height: 1.55;
  }

  .model-hero__actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .model-hero__media {
    width: 100%;
    min-height: 600px;
    margin: 0;
  }

  .model-hero__media > img {
    object-position: 57% center;
  }

  .model-hero__location {
    top: 18px;
    right: 18px;
    left: 18px;
    max-width: none;
  }

  .model-hero__specials {
    width: calc(100% - 24px);
    margin-bottom: 24px;
    gap: 12px;
  }

  .model-hero__specials-price {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .model-nav__inner {
    grid-template-columns: 1fr;
  }

  .model-nav__cta {
    display: none;
  }
}

.special-card__vehicle {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.85;
}

.model-hero__specials-terms a {
  color: inherit;
  text-decoration: underline;
}

/* Buttons: white label on the Subaru blue fill, no underline, no hover change.
   !important is deliberate. These pages are pasted into the dealer CMS, whose
   theme stylesheet loads *after* ours in the document, so an equal-specificity
   rule there wins on cascade order every time. This is the only reliable way to
   hold the button colours in a page we do not own.
   :focus-visible is left alone — that is keyboard focus, not hover. */
.model-page .model-button,
.model-page .model-nav__cta,
.model-page .model-hero__specials-link,
.model-page .trim-card__build,
.model-page .special-card__button,
.model-page .local-story__cta,
.model-page .model-button:hover,
.model-page .model-nav__cta:hover,
.model-page .model-hero__specials-link:hover,
.model-page .trim-card__build:hover,
.model-page .special-card__button:hover,
.model-page .local-story__cta:hover {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: none !important;
  transform: none !important;
}

.model-page .model-button--primary,
.model-page .model-button--lease,
.model-page .model-nav__cta,
.model-page .model-hero__specials-link,
.model-page .trim-card__build,
.model-page .special-card__button,
.model-page .local-story__cta,
.model-page .model-button--primary:hover,
.model-page .model-button--lease:hover,
.model-page .model-nav__cta:hover,
.model-page .model-hero__specials-link:hover,
.model-page .trim-card__build:hover,
.model-page .special-card__button:hover,
.model-page .local-story__cta:hover {
  background: var(--subaru-blue) !important;
}

.model-page .model-button--secondary,
.model-page .model-button--secondary:hover {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
}

/* Source note after a competitor column heading. Plain inline text rather than
   a disclosure widget: the host theme overrode the <details> marker, and a
   always-visible line is easier to scan anyway. */
.model-page .compare-src {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.75;
}

.model-page .compare-src a {
  color: inherit;
  text-decoration: underline;
}

/* Source note under a FAQ answer that rests on published figures. Answers that
   are guidance rather than data carry none, so the marker stays meaningful. */
.model-page .faq-item__source {
  margin: 8px 0 0;
  font-size: 12px;
  opacity: 0.7;
}

.model-page .faq-item__source a {
  color: inherit;
  text-decoration: underline;
}

/* Hover geometry lock. The colour rules above stopped the host theme from
   repainting the buttons, but nothing stopped it from resizing them: on the
   live site a button ballooned on hover, and since the theme stylesheet loads
   after ours it wins any equal-specificity contest.
   Each button's own measurements are restated on :hover only, so the base and
   responsive rules (full-width buttons on mobile, for instance) are untouched
   and hover simply cannot change the box. */
.model-page .model-button:hover {
  font-size: 15px !important;
  min-height: 56px !important;
  padding: 0 26px !important;
  letter-spacing: 0.025em !important;
  transform: none !important;
  transition: none !important;
}

.model-page .model-nav__cta:hover {
  font-size: 15px !important;
  min-height: 48px !important;
  letter-spacing: 0.025em !important;
  transform: none !important;
  transition: none !important;
}

.model-page .model-hero__specials-link:hover {
  font-size: 13px !important;
  padding: 14px 22px !important;
  letter-spacing: 0.05em !important;
  transform: none !important;
  transition: none !important;
}

.model-page .trim-card__build:hover {
  font-size: 15px !important;
  min-height: 60px !important;
  transform: none !important;
  transition: none !important;
}

.model-page .special-card__button:hover {
  font-size: 15px !important;
  min-height: 56px !important;
  padding: 0 30px !important;
  transform: none !important;
  transition: none !important;
}

.model-page .local-story__cta:hover {
  font-size: 15px !important;
  min-height: 54px !important;
  padding: 0 28px !important;
  letter-spacing: 0.02em !important;
  transform: none !important;
  transition: none !important;
}
