/* Filterence premium commerce direction */
:root {
  color-scheme: light;
  --ink-950: #13211c;
  --ink-925: #182923;
  --ink-900: #20332c;
  --ink-850: #294039;
  --ink-800: #355149;
  --ink-750: #45635a;
  --line: rgba(26, 48, 40, 0.12);
  --line-strong: rgba(26, 48, 40, 0.22);
  --paper: #fffefa;
  --text: #17231f;
  --text-soft: #52615b;
  --text-muted: #748079;
  --navy-text: #17231f;
  --aqua: #237a66;
  --aqua-light: #2f927a;
  --aqua-deep: #176451;
  --coral: #e36f52;
  --coral-light: #ef8e74;
  --amber: #c79035;
  --green: #287c5c;
  --mint-wash: rgba(35, 122, 102, 0.09);
  --coral-wash: rgba(227, 111, 82, 0.1);
  --amber-wash: rgba(199, 144, 53, 0.08);
  --shadow-sm: 0 8px 28px rgba(30, 48, 40, 0.07);
  --shadow-md: 0 24px 70px rgba(30, 48, 40, 0.13);
  --shadow-glow: 0 0 0 1px rgba(35, 122, 102, 0.08), 0 22px 60px rgba(35, 122, 102, 0.1);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --radius-xl: 1.75rem;
  --container: 80rem;
  --container-wide: 92rem;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  background: #f5f4ef;
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(35, 122, 102, 0.09), transparent 30rem),
    radial-gradient(circle at 92% 24%, rgba(227, 111, 82, 0.055), transparent 32rem),
    linear-gradient(180deg, #fbfaf6 0%, #f5f4ef 48%, #f8f7f2 100%);
  color: var(--text);
  font-size: 1rem;
}

.footer-privacy-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-privacy-button:hover,
.footer-privacy-button:focus-visible {
  color: var(--aqua-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.consent-panel {
  position: fixed;
  z-index: 1000;
  left: max(0.75rem, env(safe-area-inset-left));
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  width: auto;
  max-width: 46rem;
  margin-left: auto;
  padding: 1.25rem;
  border: 1px solid rgba(35, 122, 102, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 250, 0.98);
  box-shadow: 0 24px 80px rgba(20, 44, 36, 0.22);
  backdrop-filter: blur(20px) saturate(140%);
  animation: consent-in 260ms ease-out both;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.menu-open .consent-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
}

.consent-panel__copy strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1.05rem;
}

.consent-panel__copy p {
  margin: 0 0 0.45rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.consent-panel__copy a {
  font-size: 0.9rem;
  font-weight: 700;
}

.consent-panel__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

@keyframes consent-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 50rem) {
  .consent-panel {
    grid-template-columns: 1fr;
  }

  .consent-panel__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .consent-panel__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-panel { animation: none; }
}

body::before {
  background-image:
    radial-gradient(rgba(35, 122, 102, 0.13) 0.65px, transparent 0.7px),
    repeating-linear-gradient(135deg, rgba(26, 48, 40, 0.018) 0 1px, transparent 1px 13px);
  background-size: 24px 24px, auto;
  opacity: 0.32;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.55) 46%, transparent 88%);
}

a {
  color: var(--aqua-deep);
}

a:hover {
  color: #0d5141;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 19ch;
  margin-bottom: 1.1rem;
  font-size: clamp(2.45rem, 4.4vw, 3.85rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.section {
  padding-block: clamp(3.5rem, 6vw, 5.75rem);
}

.section--paper {
  border-block: 1px solid rgba(26, 48, 40, 0.08);
  background:
    radial-gradient(circle at 10% 12%, rgba(35, 122, 102, 0.07), transparent 24rem),
    radial-gradient(circle at 92% 78%, rgba(227, 111, 82, 0.055), transparent 26rem),
    linear-gradient(180deg, #eff4ef, #eaf0eb);
}

.section--paper > .container > .eyebrow,
.eyebrow {
  color: var(--aqua);
}

.lead {
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

/* Header */
.site-header {
  border-color: rgba(26, 48, 40, 0.1);
  background: rgba(255, 254, 250, 0.9);
  box-shadow: 0 7px 30px rgba(30, 48, 40, 0.045);
  backdrop-filter: blur(18px) saturate(145%);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(26, 48, 40, 0.14);
  background: rgba(255, 254, 250, 0.97);
  box-shadow: 0 12px 36px rgba(30, 48, 40, 0.09);
}

.brand span {
  color: var(--text);
  font-weight: 820;
  letter-spacing: -0.025em;
}

.nav-link,
.nav-trigger {
  color: #4f5f58;
  font-size: 0.88rem;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
  border-color: rgba(35, 122, 102, 0.14);
  background: #edf4f0;
  color: var(--text);
}

.nav-dropdown {
  display: grid;
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100svh - var(--header-height) - 1.25rem));
  overflow-y: auto;
  border-color: rgba(26, 48, 40, 0.13);
  background: rgba(255, 254, 250, 0.98);
  box-shadow: 0 24px 65px rgba(30, 48, 40, 0.14);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overscroll-behavior: contain;
}

@media (hover: hover) and (pointer: fine) {
  .nav-item--dropdown::after {
    position: absolute;
    z-index: 1;
    top: 100%;
    right: 0;
    left: 0;
    height: 0.8rem;
    content: "";
  }
}

.dropdown-link {
  color: var(--text);
}

.dropdown-link:hover,
.dropdown-link[aria-current="page"] {
  background: #edf4f0;
  color: var(--text);
}

.dropdown-link small {
  color: var(--text-muted);
}

.language-switcher,
.nav-toggle {
  border-color: rgba(26, 48, 40, 0.15);
  background: #fff;
}

.language-switcher a {
  color: #53635b;
}

.nav-toggle span:not(.visually-hidden) {
  background: var(--text);
}

/* Buttons */
.button,
.btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-950), #24483c);
  color: #fff;
  box-shadow: 0 10px 28px rgba(19, 33, 28, 0.14);
}

.button:hover,
.btn:hover {
  background: linear-gradient(135deg, #203b32, #2b5d4d);
  color: #fff;
  box-shadow: 0 14px 34px rgba(19, 33, 28, 0.18);
}

.button--secondary,
.btn--secondary {
  border-color: rgba(26, 48, 40, 0.18);
  background: #fff;
  color: var(--text);
}

.button::after,
.btn::after {
  position: absolute;
  inset: -70% auto -70% -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-18deg) translateX(-240%);
  transition: transform 520ms ease;
}

.button:hover::after,
.btn:hover::after {
  transform: skewX(-18deg) translateX(620%);
}

.button--secondary:hover,
.btn--secondary:hover {
  border-color: rgba(35, 122, 102, 0.34);
  background: #edf4f0;
  color: var(--text);
}

.section--paper > .container > p > .button--secondary {
  border-color: var(--ink-950);
  background: var(--ink-950);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: auto;
  padding-block: clamp(4rem, 7vw, 6.5rem);
  border-bottom: 1px solid rgba(26, 48, 40, 0.08);
  background:
    radial-gradient(circle at 12% 24%, rgba(35, 122, 102, 0.14), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(227, 111, 82, 0.17), transparent 26rem),
    radial-gradient(circle at 54% 95%, rgba(199, 144, 53, 0.07), transparent 22rem),
    linear-gradient(135deg, #eef5f0 0%, #fffdf8 48%, #f8eee8 100%);
}

.hero::before {
  top: -18rem;
  right: -10rem;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(35, 122, 102, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 35%, rgba(35, 122, 102, 0.055) 35.3% 35.7%, transparent 36% 57%, rgba(35, 122, 102, 0.04) 57.3% 57.7%, transparent 58%);
  filter: none;
  animation: hero-orbit 16s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  background-image:
    linear-gradient(rgba(35, 122, 102, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 122, 102, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 46%, rgba(0, 0, 0, 0.18));
  opacity: 0.5;
  animation: texture-drift 26s linear infinite alternate;
}

.hero-grid {
  position: relative;
  z-index: 1;
  gap: clamp(2.75rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 0.98fr) minmax(24rem, 1.02fr);
}

.hero-copy h1 {
  max-width: 15ch;
  font-size: clamp(2.75rem, 4.35vw, 3.95rem);
}

.hero-copy .lead {
  max-width: 38rem;
  margin-bottom: 1.65rem;
}

.search-panel,
.finder-panel {
  padding: 1.1rem;
  border-color: rgba(26, 48, 40, 0.13);
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 20px 55px rgba(30, 48, 40, 0.09), 0 0 0 1px rgba(35, 122, 102, 0.035);
}

.search-label {
  color: #48574f;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.search-box,
.search-field {
  border-color: rgba(26, 48, 40, 0.14);
  background: #f5f7f3;
  box-shadow: none;
}

.search-box input,
.search-field input {
  color: var(--text);
}

.search-box input::placeholder,
.search-field input::placeholder {
  color: #78857f;
}

.search-box:focus-within,
.search-field:focus-within {
  border-color: rgba(35, 122, 102, 0.65);
  box-shadow: 0 0 0 4px rgba(35, 122, 102, 0.11);
}

.search-submit {
  flex: 0 0 auto;
  background: var(--aqua);
  color: #fff;
  box-shadow: none;
}

.search-submit:hover {
  background: var(--aqua-deep);
}

.search-help {
  color: var(--text-muted);
}

.autocomplete,
.autocomplete-results {
  border-color: rgba(26, 48, 40, 0.14);
  background: #fffefa;
  box-shadow: 0 22px 60px rgba(30, 48, 40, 0.16);
}

.autocomplete-item,
.autocomplete a,
.autocomplete button,
.autocomplete-results .search-option {
  color: var(--text);
}

.autocomplete-item:hover,
.autocomplete-item[aria-selected="true"],
.autocomplete a:hover,
.autocomplete button:hover,
.autocomplete-results .search-option:hover,
.autocomplete-results .search-option[aria-selected="true"],
.autocomplete-results .search-option.is-active {
  background: #e9f3ee;
  color: var(--text);
}

.hero-visual {
  isolation: isolate;
  min-height: 0;
  aspect-ratio: 1.34 / 1;
  border: 1px solid rgba(26, 48, 40, 0.1);
  border-radius: 1.6rem;
  background-image:
    linear-gradient(180deg, transparent 50%, rgba(19, 33, 28, 0.15)),
    url("/assets/compatibility-parts-hero.webp?v=718701c73680");
  background-position: calc(50% + var(--hero-x, 0px)) calc(50% + var(--hero-y, 0px));
  background-size: cover;
  box-shadow: 0 28px 75px rgba(40, 52, 45, 0.14);
  transition: background-position 220ms ease-out, transform 260ms ease-out, box-shadow 260ms ease-out;
}

.hero-visual::before {
  position: absolute;
  z-index: 1;
  top: -28%;
  right: -10%;
  left: -10%;
  display: block;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.72), rgba(35, 122, 102, 0.15), transparent);
  content: "";
  opacity: 0.52;
  pointer-events: none;
  transform: rotate(-5deg);
  animation: hero-scan 7.5s ease-in-out infinite;
}

.hero-visual:hover {
  box-shadow: 0 34px 90px rgba(40, 52, 45, 0.18);
}

.hero-match {
  position: absolute;
  z-index: 2;
  top: 7%;
  left: 6%;
  display: flex;
  width: min(78%, 21rem);
  padding: 0.9rem 1rem;
  border: 1px solid rgba(26, 48, 40, 0.13);
  border-radius: 1rem;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 254, 250, 0.91);
  box-shadow: 0 16px 38px rgba(30, 48, 40, 0.14);
  color: var(--text);
  backdrop-filter: blur(14px);
  transform: translate(var(--card-x, 0), var(--card-y, 0));
  transition: transform 220ms ease-out;
}

.hero-match-icon {
  position: relative;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: 50%;
  place-items: center;
  background: var(--aqua);
  box-shadow: 0 0 0 7px rgba(35, 122, 102, 0.1);
  color: #fff;
  font-weight: 850;
}

.hero-match strong,
.hero-match small {
  display: block;
}

.hero-match strong {
  font-size: 0.93rem;
}

.hero-match small {
  margin-top: 0.12rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.hero-source {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 5%;
  display: flex;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(26, 48, 40, 0.12);
  border-radius: 999px;
  align-items: center;
  gap: 0.48rem;
  background: rgba(19, 33, 28, 0.88);
  box-shadow: 0 12px 30px rgba(19, 33, 28, 0.2);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 760;
  backdrop-filter: blur(12px);
}

.hero-source span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #71d4b8;
  box-shadow: 0 0 0 5px rgba(113, 212, 184, 0.13);
  animation: source-pulse 2.4s ease-in-out infinite;
}

@keyframes hero-orbit {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-2rem, 1.5rem, 0) rotate(7deg); }
}

@keyframes hero-scan {
  0%, 20% { transform: translateY(-40%) rotate(-5deg); opacity: 0; }
  35% { opacity: 0.5; }
  72% { opacity: 0.4; }
  88%, 100% { transform: translateY(590%) rotate(-5deg); opacity: 0; }
}

@keyframes source-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(113, 212, 184, 0.11); }
  50% { box-shadow: 0 0 0 8px rgba(113, 212, 184, 0.02); }
}

@keyframes texture-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 24px 12px, -18px 9px; }
}

.trust-badge,
.evidence-badge,
.status-badge,
.badge {
  border-color: rgba(26, 48, 40, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #4f6159;
}

.status-badge--verified,
.badge--verified,
.status--verified {
  border-color: rgba(35, 122, 102, 0.2);
  background: #e9f3ee;
  color: #176451;
}

/* Cards and content surfaces */
.card,
.model-card,
.part-card,
.guide-card,
.result-card,
.panel,
.detail-panel,
.spec-panel,
.compatibility-panel,
.toc {
  border-color: rgba(26, 48, 40, 0.1);
  background:
    radial-gradient(circle at var(--pointer-x, 92%) var(--pointer-y, 8%), rgba(35, 122, 102, 0.095), transparent 12rem),
    radial-gradient(circle at 4% 102%, rgba(227, 111, 82, 0.045), transparent 10rem),
    rgba(255, 254, 250, 0.97);
  box-shadow: var(--shadow-sm);
}

.card::before,
.model-card::before,
.part-card::before,
.guide-card::before,
.result-card::before {
  height: 3px;
  background: linear-gradient(90deg, var(--aqua), rgba(227, 111, 82, 0.55), transparent 80%);
  opacity: 0.8;
}

.card:hover,
.model-card:hover,
.part-card:hover,
.guide-card:hover,
.result-card:hover {
  border-color: rgba(35, 122, 102, 0.24);
  box-shadow: 0 20px 55px rgba(30, 48, 40, 0.12);
  transform: translateY(-4px);
}

.card-header {
  flex-wrap: wrap;
}

.card-header > * {
  max-width: 100%;
}

.card p,
.model-card p,
.part-card p,
.guide-card p,
.article p,
.article li,
.guide-content p,
.guide-content li {
  color: var(--text-soft);
}

.card-link {
  color: var(--aqua-deep);
}

.card-icon,
.category-icon,
.model-monogram,
.part-monogram {
  border-color: rgba(35, 122, 102, 0.16);
  background: #e9f3ee;
  color: var(--aqua-deep);
}

.page-header {
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
  border-color: rgba(26, 48, 40, 0.09);
  background:
    radial-gradient(circle at 12% 20%, rgba(35, 122, 102, 0.08), transparent 22rem),
    radial-gradient(circle at 88% 0%, rgba(227, 111, 82, 0.075), transparent 24rem),
    linear-gradient(135deg, rgba(238, 243, 237, 0.9), rgba(250, 248, 242, 0.82));
}

.page-header h1 {
  max-width: 24ch;
  font-size: clamp(2.15rem, 4vw, 3.55rem);
}

.breadcrumbs {
  border-color: rgba(26, 48, 40, 0.08);
  background: rgba(255, 254, 250, 0.74);
}

.breadcrumbs li,
.breadcrumbs a {
  color: #708078;
}

.breadcrumbs a:hover {
  color: var(--aqua-deep);
}

.breadcrumbs li:not(:last-child)::after {
  color: #9ca7a2;
}

.compatibility-item,
.part-item,
.seller-item,
.guide-step,
.steps > li {
  border-color: rgba(26, 48, 40, 0.1);
  background: #f7f8f5;
}

.compatibility-item strong,
.part-item strong,
.seller-item strong,
.guide-step strong,
.steps > li strong,
.fact-list dd,
.spec-list dd {
  color: var(--text);
}

.compatibility-mark {
  background: #e4f2e9;
  color: #287c5c;
}

.source-box {
  border-color: rgba(35, 122, 102, 0.16);
  background: #edf5f1;
}

.part-hero {
  border-color: rgba(26, 48, 40, 0.1);
  background: linear-gradient(135deg, #edf4ef, #fffefa 52%, #f8eee8);
  box-shadow: var(--shadow-sm);
}

.part-reference {
  border-color: rgba(26, 48, 40, 0.16);
  background: #f2f5f1;
  color: var(--text);
}

.diagnostic-box {
  border-color: rgba(227, 111, 82, 0.17);
  background: linear-gradient(140deg, #fff6f1, #fffefa 60%);
}

.diagnostic-option {
  border-color: rgba(26, 48, 40, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-soft);
}

.notice,
.callout,
.evidence-note {
  border-color: rgba(35, 122, 102, 0.18);
  border-left-color: var(--aqua);
  background: #edf5f1;
  color: var(--text-soft);
}

.notice--warning,
.callout--warning {
  border-color: rgba(199, 144, 53, 0.22);
  border-left-color: var(--amber);
  background: #fbf4e6;
}

.notice--danger,
.callout--danger {
  border-color: rgba(227, 111, 82, 0.22);
  border-left-color: var(--coral);
  background: #fff0eb;
}

.guide-content h2 {
  margin-top: 2.3rem;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
}

.guide-content .diagnostic-box h2,
.guide-content .notice h2,
.source-box h2 {
  margin-top: 0;
}

.toc a {
  color: var(--text-soft);
}

.toc a:hover,
.toc a[aria-current="true"] {
  background: #e9f3ee;
  color: var(--aqua-deep);
}

.fact-list > div,
.spec-list > div,
.compatibility-table th,
.compatibility-table td,
.data-table th,
.data-table td {
  border-color: rgba(26, 48, 40, 0.1);
}

.compatibility-table th,
.data-table th {
  background: #f1f4f0;
  color: #596861;
}

/* Footer */
.site-footer {
  border-color: rgba(255, 255, 255, 0.08);
  background: #15231e;
  color: #fff;
}

.site-footer .brand span,
.footer-heading {
  color: #fff;
}

.footer-brand p,
.footer-links a,
.footer-links .footer-privacy-button,
.footer-bottom {
  color: #aab7b1;
}

.footer-links .footer-privacy-button {
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-links a:hover,
.footer-links .footer-privacy-button:hover,
.footer-links .footer-privacy-button:focus-visible {
  color: #fff;
}

.footer-bottom {
  border-color: rgba(255, 255, 255, 0.09);
}

/* Motion is progressive enhancement */
.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 650ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 52rem) {
  .primary-nav {
    border-color: rgba(26, 48, 40, 0.11);
    background: rgba(255, 254, 250, 0.985);
  }

  .nav-dropdown {
    display: none;
    width: auto;
    max-height: none;
    overflow: visible;
    border-left-color: rgba(35, 122, 102, 0.25);
    background: #f2f5f1;
    grid-template-columns: 1fr;
  }

  .nav-item--dropdown:hover .nav-dropdown.is-open,
  .nav-item--dropdown:focus-within .nav-dropdown.is-open,
  .nav-dropdown.is-open {
    display: block;
  }

  .hero-grid {
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .search-box input,
  .search-field input {
    font-size: 1rem;
  }

  .hero-copy {
    max-width: 44rem;
  }

  .hero-visual {
    width: min(100%, 44rem);
    margin-inline: auto;
    justify-self: center;
  }

  .hero-visual {
    min-height: 0;
    aspect-ratio: 1.4 / 1;
  }
}

@media (min-width: 40.01rem) and (max-width: 52rem) {
  .page-header h1 {
    font-size: clamp(2.2rem, 5vw, 2.55rem);
  }
}

@media (max-width: 40rem) {
  .section {
    padding-block: 2.9rem;
  }

  h1 {
    font-size: clamp(1.95rem, 8.6vw, 2.55rem);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .hero {
    padding-block: 2.65rem 3.15rem;
  }

  .hero-copy h1 {
    max-width: 17ch;
    font-size: clamp(2.05rem, 9.2vw, 2.8rem);
  }

  .hero-visual {
    aspect-ratio: 4 / 3;
  }

  .hero-match {
    top: 5%;
    left: 4%;
    width: 88%;
    padding: 0.75rem 0.8rem;
  }

  .hero-source {
    right: 4%;
    bottom: 4%;
    padding: 0.52rem 0.65rem;
  }

  .page-header h1 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }

  .page-header {
    padding-block: 2.25rem;
  }

  .search-panel,
  .finder-panel {
    padding: 0.85rem;
  }

  .card,
  .model-card,
  .part-card,
  .guide-card,
  .result-card,
  .part-hero {
    border-radius: 1rem;
  }

}

@media (max-width: 28rem) {
  .consent-panel {
    left: max(0.65rem, env(safe-area-inset-left));
    right: 0.65rem;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100svh - 1.3rem);
    padding: 1rem;
    overflow-y: auto;
  }

  .consent-panel__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 23.5rem) {
  .search-submit {
    padding-inline: 0.75rem;
    font-size: 0.82rem;
    white-space: normal;
  }
}

@media (min-width: 110rem) {
  :root {
    --container: 96rem;
    --container-wide: 112rem;
  }

  body {
    font-size: 1.04rem;
  }

  .hero-grid {
    gap: clamp(6rem, 8vw, 9rem);
  }

  .hero-copy h1 {
    font-size: 4.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal-item {
    opacity: 1;
    transform: none;
  }

  .hero-visual,
  .hero-match {
    transform: none !important;
    background-position: center !important;
  }

  .hero::before,
  .hero::after,
  .hero-visual::before,
  .hero-source span {
    animation: none !important;
  }
}
