:root {
  color-scheme: light;
  --ink: #152633;
  --muted: #4d6170;
  --navy: #0c1a25;
  --accent: #ffb53f;
  --canvas: #f4f6f8;
  --line: #dee5ea;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #d18115; outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.accent { color: var(--accent); }

.site-header { background: #101e29; color: white; border-bottom: 1px solid #2a3944; }
.header-inner, .footer-inner { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; font-size: 1.5rem; font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.mark { display: grid; place-content: center; gap: 3px; width: 34px; height: 34px; margin-right: 10px; border-radius: 9px; background: var(--accent); }
.mark i { display: block; margin-inline: auto; height: 2px; border-radius: 2px; background: var(--navy); }
.mark i:first-child { width: 16px; }
.mark i:nth-child(2) { width: 12px; }
.mark i:last-child { width: 7px; }
nav { display: flex; align-items: center; gap: 27px; }
nav a { padding-block: 5px; color: #bac8d3; font-size: .875rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: #fff; }

.hero { background: #0d1c27; color: #fff; }
.hero-inner { position: relative; isolation: isolate; min-height: 446px; display: flex; align-items: center; padding-block: 49px; }
.hero-inner::before { content: ''; position: absolute; z-index: -1; inset: 0 -20px 0 37%; background: linear-gradient(90deg, #0d1c27 0%, #0d1c2700 28%, #0d1c2700 88%, #0d1c27 100%), url('filters.jpg') center right / cover no-repeat; }
.hero-content { width: min(100%, 635px); }
.kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: #f6c675; font-size: .875rem; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
.kicker span { width: 13px; height: 2px; background: currentColor; display: inline-block; }
.kicker.light { color: #88601e; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(3rem, 6vw, 5.1rem); font-weight: 800; letter-spacing: -.067em; }
h1 em { color: var(--accent); font-style: normal; }
.hero-copy { color: #d2dee6; margin: 17px 0 24px; max-width: 415px; font-size: 1.12rem; }
.search-box { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; max-width: 568px; width: 100%; padding: 6px 6px 6px 18px; background: white; border-radius: 12px; box-shadow: 0 10px 28px #0003; }
.search-box:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.search-icon { display: block; flex: 0 0 15px; position: relative; width: 15px; height: 15px; margin-right: 4px; border: 2px solid #526575; border-radius: 50%; }
.search-icon::after { content: ''; position: absolute; right: -5px; bottom: -3px; width: 7px; height: 2px; border-radius: 2px; background: #526575; transform: rotate(45deg); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: none; color: var(--ink); background: white; padding: 0; }
.search-box input::placeholder { color: #536778; opacity: 1; }
.search-box button { align-self: stretch; border: 0; border-radius: 8px; padding: 12px 20px; background: var(--accent); color: #17222b; font-weight: 800; }
.search-box button:hover { background: #ffd078; }
.input-error { color: #ffe0a3; font-weight: 650; margin: 9px 0 0; }
.examples { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.examples span { margin-right: 4px; color: #bdccd6; font-size: .875rem; }
.examples button { border: 1px solid #445560; border-radius: 6px; padding: 4px 10px; color: #edf4f8; background: #172833; font-size: .875rem; }
.examples button:hover { border-color: var(--accent); color: var(--accent); }

.results { padding-block: 42px 49px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
h2 { font-size: clamp(1.9rem, 3.7vw, 2.7rem); font-weight: 800; letter-spacing: -.055em; }
#summary, .catalogs p:not(.kicker) { color: var(--muted); margin: 9px 0 0; }
.filters { display: flex; align-items: center; align-self: end; flex-wrap: wrap; gap: 3px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #eaf0f3; }
.filters button { padding: 6px 12px; border: 1px solid transparent; background: transparent; color: #415869; font-weight: 650; font-size: .875rem; border-radius: 6px; }
.filters button[aria-pressed='true'] { background: white; border-color: #dbe3e9; color: var(--ink); box-shadow: 0 1px 2px #15263310; }
.filters button:hover { color: #101e29; }
.table-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: white; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; }
th, td { padding: 12px 20px; text-align: left; overflow-wrap: anywhere; }
th { font-size: .875rem; color: #455c6d; line-height: 1.35; background: #edf2f6; }
th:nth-child(1), th:nth-child(2) { width: 23%; }
th:nth-child(3) { width: 15%; }
th:nth-child(5) { width: 15%; }
td { border-top: 1px solid var(--line); }
.selected-row { background: #fff8ea; }
.group-row th { border-top: 1px solid var(--line); }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 7px; background: #e9eef2; color: #344b5a; font-size: .875rem; font-weight: 800; }
.brand-mark[data-brand='MANN-FILTER'] { background: #f9e6a7; color: #534802; }
.brand-mark[data-brand='Donaldson'] { background: #e1effc; color: #135287; }
.brand-mark[data-brand='HIFI FILTER'] { background: #fbe9e6; color: #a4382c; }
.brand-mark[data-brand='Hengst'] { background: #e3eff0; color: #205d62; }
.copy { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: 700 1rem/1.35 ui-monospace, Consolas, monospace; text-align: left; }
.copy:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy-icon { position: relative; width: 9px; height: 11px; flex: 0 0 9px; border: 1px solid #596c7b; border-radius: 2px; margin-right: 3px; }
.copy-icon::after { content: ''; position: absolute; inset: -4px -4px 2px 2px; border: 1px solid #596c7b; border-radius: 2px; }
.row-note { display: block; color: #596371; font-size: .8rem; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; background: #fbefd1; color: #73510d; font-size: .875rem; font-weight: 650; }
.badge.fuel { background: #e0eefb; color: #205179; }
.badge.air { background: #e0f0e8; color: #255d45; }
td a, .empty a { display: block; color: #284d6b; font-size: .875rem; text-underline-offset: 3px; }
td a + a { margin-top: 4px; }
.kramp-status { display: inline-block; width: max-content; max-width: 100%; border-radius: 6px; padding: 3px 8px; font-weight: 750; text-decoration: none; }
.kramp-status:hover { text-decoration: underline; }
.kramp-found { background: #e0f0e8; color: #255d45; }
.kramp-unverified { background: #fbe9e6; color: #9b3428; }
.notice { display: flex; align-items: baseline; gap: 8px; color: var(--muted); margin: 14px 0 0; font-size: .875rem; }
.notice span { display: inline-grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 50%; font-size: .69rem; line-height: 1; font-weight: 750; }
.empty { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 26px 22px; }
.empty p { color: var(--muted); margin: 10px 0; }

.catalogs { padding-block: 35px 48px; background: #fff; border-top: 1px solid var(--line); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.catalog-card { display: flex; flex-direction: column; gap: 4px; min-height: 80px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; font-weight: 750; text-decoration: none; }
.catalog-card span { font-size: .875rem; font-weight: 500; color: var(--muted); }
.catalog-card:hover { border-color: #b98a3f; background: #fff9ef; }
footer { background: #101e29; color: #eaf0f4; }
.footer-inner span { color: #b9c8d3; font-size: .875rem; }
.footer-inner .accent { color: var(--accent); }
.toast { position: fixed; z-index: 2; inset: auto 20px 20px auto; padding: 12px 18px; border-radius: 8px; background: var(--navy); color: white; box-shadow: 0 5px 22px #0003; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 38px); }
  .hero-inner { min-height: 388px; }
  .hero-inner::before { inset: 0 -19px 0 27%; opacity: .38; }
  .results-heading { align-items: start; flex-direction: column; gap: 16px; }
  .filters { align-self: start; }
  th, td { padding-inline: 11px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  nav { gap: 12px; }
  .header-inner { min-height: 61px; }
  .wordmark { font-size: 1.3rem; }
  .mark { width: 28px; height: 28px; margin-right: 7px; }
  .hero-inner { padding-block: 41px; }
  .search-box { padding-left: 12px; gap: 8px; }
  .search-box button { padding-inline: 11px; }
  .filters { gap: 0; }
  .filters button { padding-inline: 9px; }
  th, td { padding-inline: 7px; }
  td:first-child, td a, .copy { font-size: .875rem; }
  .badge { font-size: .8rem; padding-inline: 4px; }
  .brand-mark { display: none; }
  .copy { gap: 4px; }
  .copy-icon { display: none; }
  .table-card { overflow-x: auto; }
  table { min-width: 550px; }
}
