:root {
  --green-900: #111111;
  --green-700: #d02111;
  --green-100: #f7eded;
  --gold: #d02111;
  --ink: #18211c;
  --muted: #627066;
  --line: #d9e1db;
  --paper: #ffffff;
  --wash: #f5f7f2;
  --shadow: 0 14px 35px rgba(24, 33, 28, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--green-900);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.public-site-loading .site-header,
.public-site-loading main,
.public-site-loading .compare-tray {
  visibility: hidden;
}

.preview-mode::before {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  padding: 9px 18px;
  color: #3c3108;
  background: #f4c430;
  border-bottom: 1px solid #d7aa18;
  content: "Staged preview";
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.access-message {
  width: min(760px, 90vw);
  margin: 12vh auto;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.access-message h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.access-message p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.access-message-actions {
  margin: 24px 0 0;
}

.access-message-actions .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

main {
  padding-bottom: 76px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 28px 5vw;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  gap: 28px;
}

.site-footer a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green-700);
}

.placeholder-page {
  display: grid;
  min-height: 46vh;
  place-items: center;
  padding: 80px 5vw;
}

.legal-content-page {
  place-items: start center;
}

.legal-body {
  width: min(920px, 100%);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-body h2,
.legal-body h3,
.legal-body h4 {
  margin: 0 0 16px;
  color: var(--green-900);
  line-height: 1.15;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
  margin: 0 0 18px;
}

.legal-body a {
  color: var(--green-900);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.placeholder-page h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(2.5rem, 6vw, 5rem);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 5vw;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-900);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--green-700);
  border-radius: 6px;
}

.brand-mark.has-logo {
  width: 112px;
  height: 52px;
  padding: 4px;
  background: #fff;
}

.brand-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 1.5rem;
}

.trademark-mark {
  position: relative;
  top: -0.18em;
  margin-left: 0.02em;
  font-size: 0.62em;
  line-height: 0;
  vertical-align: baseline;
}

.brand-name .trademark-mark {
  top: -0.28em;
  font-size: 0.5em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.distributed-by {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.distributed-by:empty {
  display: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a.active {
  color: var(--green-900);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.top-nav .social-link {
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--green-900);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.top-nav .social-link:hover {
  background: var(--green-700);
}

.hero {
  position: relative;
  display: grid;
  min-height: 360px;
  margin-top: 0;
  overflow: hidden;
  background: #17261b;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.92), rgba(208, 33, 17, 0.22));
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: start;
  width: min(760px, 90vw);
  margin: clamp(32px, 5vw, 64px) 0 48px 5vw;
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  display: none;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.6;
}

.category-tabs {
  display: flex;
  gap: 8px;
  padding: 18px 5vw;
  overflow-x: auto;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.category-tabs button,
.filters button,
.compare-head button {
  min-height: 40px;
  padding: 0 16px;
  color: var(--green-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 750;
}

.category-tabs .active {
  color: #fff;
  background: var(--green-700);
  border-color: var(--green-700);
}

.comparison-shell {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 28px;
  width: min(1460px, 90vw);
  margin: 36px auto 90px;
}

.filter-toggle-button {
  display: none;
}

.filter-toggle-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.filters,
.results,
.compare-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 22px;
}

.filter-head,
.results-toolbar,
.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.range-field {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  font-weight: 750;
}

.range-field output {
  color: var(--green-700);
  font-size: 0.92rem;
}

input[type="range"] {
  accent-color: var(--green-700);
}

.dual-range {
  position: relative;
  height: 34px;
}

.dual-range input[type="range"] {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  background: var(--green-700);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--green-700);
  pointer-events: auto;
  appearance: none;
}

.dual-range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--green-700);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--green-700);
  pointer-events: auto;
}

.dual-range input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.dual-range input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
}

.range-track {
  position: absolute;
  top: 13px;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
}

.range-track span {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--green-700);
  border-radius: 999px;
}

fieldset {
  margin: 0;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

legend {
  margin-bottom: 12px;
  font-weight: 800;
}

.option-list {
  display: grid;
  gap: 10px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: var(--muted);
  font-size: 0.94rem;
}

.check-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--green-700);
}

.results {
  padding: 24px;
}

.primary-action {
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--green-700);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.product-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  min-height: 245px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 33, 28, 0.06);
}

.product-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.product-title-row > div {
  flex: 1 1 auto;
  min-width: 0;
}

.product-card h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.meta-item {
  min-width: 0;
  min-height: 60px;
  padding: 10px;
  overflow-wrap: anywhere;
  background: var(--green-100);
  border-radius: 6px;
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-value {
  display: block;
  max-width: 100%;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 6px 8px;
  color: var(--green-900);
  background: #f8e4e1;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.compare-toggle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--green-900);
  font-weight: 800;
  white-space: nowrap;
}

.compare-toggle input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--green-700);
}

.empty-state {
  margin-top: 24px;
  padding: 42px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.compare-panel {
  margin-top: 28px;
  padding: 22px;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--green-900);
  background: var(--green-100);
  font-size: 0.92rem;
}

tbody th {
  width: 180px;
  background: #fff;
}

.compare-tray {
  position: sticky;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: fit-content;
  margin: 18px 0 0 auto;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.compare-tray[hidden] {
  display: none;
}

.dealers-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
  width: min(1460px, 90vw);
  margin: 36px auto 90px;
}

.dealer-panel,
.dealer-map-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dealer-panel {
  overflow: hidden;
}

.dealer-filter-bar {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.dealer-filter-bar label,
.dealer-range-field {
  display: grid;
  gap: 8px;
  color: var(--green-900);
  font-weight: 800;
}

.dealer-filter-bar input[type="text"] {
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.dealer-filter-bar button {
  min-height: 40px;
  color: var(--green-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.dealer-range-field output {
  color: var(--green-700);
  font-size: 0.92rem;
}

.dealer-list {
  display: grid;
  max-height: 640px;
  overflow: auto;
}

.dealer-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.dealer-card strong {
  display: block;
  color: var(--green-900);
  font-size: 1.05rem;
}

.dealer-card span,
.dealer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dealer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dealer-actions a,
.dealer-actions span {
  padding: 6px 8px;
  color: var(--green-900);
  background: var(--green-100);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.dealer-map-panel {
  min-height: 640px;
  overflow: hidden;
}

.dealer-map {
  width: 100%;
  height: 100%;
  min-height: 640px;
}

.leaflet-container {
  font: inherit;
}

@media (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .comparison-shell {
    grid-template-columns: 1fr;
  }

  .filter-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-height: 44px;
    padding: 0 16px;
    color: #fff;
    background: var(--green-700);
    border: 1px solid var(--green-700);
    border-radius: 6px;
    font-weight: 850;
  }

  .dealers-shell {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .comparison-shell.filters-collapsible .filters {
    display: none;
  }

  .comparison-shell.filters-collapsible .filters.is-open {
    display: block;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dealer-list {
    max-height: none;
  }

  .dealer-map-panel,
  .dealer-map {
    min-height: 460px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 18px 5vw;
  }

  .brand {
    align-items: flex-start;
    width: 100%;
    min-height: 76px;
  }

  .brand-mark.has-logo {
    flex: 0 0 auto;
  }

  .brand-copy {
    padding-top: 6px;
  }

  .top-nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
  }

  .hero {
    min-height: 430px;
  }

  .hero-copy {
    margin: clamp(48px, 14vw, 84px) auto 48px;
  }

  .results-toolbar,
  .compare-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .dealers-shell {
    width: min(100% - 24px, 90vw);
  }

  .dealer-map-panel,
  .dealer-map {
    min-height: 360px;
  }

  .compare-tray {
    bottom: 12px;
    justify-content: space-between;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .cookie-notice {
    grid-template-columns: 1fr;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .cookie-notice-actions {
    justify-content: stretch;
  }

  .cookie-notice-actions button {
    flex: 1 1 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .brand-mark,
  .top-nav .social-link,
  .category-tabs .active,
  .category-tabs button[aria-pressed="true"],
  .primary-action,
  .record-badge,
  .tag,
  .cookie-notice,
  .cookie-notice-actions button {
    forced-color-adjust: none;
    color: CanvasText;
    background: Canvas;
    border: 1px solid CanvasText;
  }
}

.cookie-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(980px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cookie-notice h2 {
  margin: 0 0 6px;
  color: var(--green-900);
  font-size: 1.05rem;
  line-height: 1.2;
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-notice a {
  color: var(--green-900);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cookie-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-notice-actions button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--green-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 850;
}

.cookie-notice-actions .primary-action {
  color: #fff;
  background: var(--green-700);
  border-color: var(--green-700);
}
