:root {
  --ink: #13262a;
  --ink-2: #44575b;
  --muted: #6a7b7e;
  --bg: #f6f5f1;
  --card: #fff;
  --line: #e3e1d9;
  --brand: #0f766e;
  --brand-dark: #0f3d3e;
  --accent: #f0a020;
  --red: #c2352b;
  --red-bg: #fdecea;
  --amber-bg: #fff4dc;
  --green: #1d7a46;
  --green-bg: #e6f4ec;
  --blue: #2257a8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 38, 42, .06), 0 6px 20px rgba(19, 38, 42, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); margin: .4em 0 .3em; }
h2 { font-size: 1.35rem; margin: 1.8em 0 .7em; }
h3, .h3 { font-size: 1.08rem; margin: 0 0 .35em; }
code { background: #eeece5; padding: .1em .35em; border-radius: 5px; font-size: .92em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9; }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); text-decoration: none; font-size: 1.08rem; }
.logo-mark { width: 30px; height: 30px; color: var(--brand); flex: none; }
.nav { display: flex; gap: 4px; overflow-x: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current="page"] { background: #e3f1ef; color: var(--brand-dark); }

/* hero */
.hero {
  background: radial-gradient(1200px 400px at 85% -10%, rgba(240, 160, 32, .22), transparent 60%), var(--brand-dark);
  color: #fff; padding: 46px 0 40px;
}
.hero h1 { margin-top: 0; }
.hero .lead { color: #d3e4e1; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: 7px 14px; border-radius: 999px; font-size: .93rem; }
.chip:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-food { background: #7bd389; } .dot-prod { background: var(--accent); } .dot-car { background: #8fc3ff; }

/* picker */
.picker {
  display: grid; grid-template-columns: 1.3fr .8fr 1.5fr auto; gap: 10px; align-items: end;
  background: #fff; color: var(--ink); padding: 14px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); margin-top: 22px;
}
.picker-compact { box-shadow: var(--shadow); border: 1px solid var(--line); margin: 18px 0 8px; }
.picker label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); min-width: 0; }
select, input[type="search"] {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fbfaf7; border: 1px solid #d6d3c9; border-radius: 10px;
  padding: 11px 12px; width: 100%; min-width: 0; text-transform: none; letter-spacing: 0;
}
select:disabled { color: var(--muted); background: #f1efe9; }
select:focus, input:focus, .btn:focus-visible { outline: 3px solid rgba(15, 118, 110, .35); outline-offset: 1px; border-color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-go { background: var(--accent); color: #2b1a00; padding: 12px 22px; }
.btn-go:hover { background: #e08f0b; color: #2b1a00; }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); }
.btn-ghost:hover { background: #eef6f5; color: var(--brand-dark); }

.search { display: flex; gap: 8px; margin: 16px 0 6px; max-width: 560px; }

/* sections & cards */
.section { padding-top: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-makes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.grid-years { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 18px; }
.grid-models { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-link { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--brand); transform: translateY(-1px); color: var(--ink); }
.card-link h2, .card-link h3 { color: var(--brand-dark); }
.card p { margin: .3em 0 0; }
.make { font-weight: 700; padding: 14px; display: flex; flex-direction: column; }
.make small { color: var(--muted); font-weight: 500; }
.year, .model { padding: 11px 12px; font-weight: 650; text-align: center; }
.model { text-align: left; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e3f1ef; color: var(--brand-dark); font-weight: 800; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; color: var(--ink); font-size: .93rem; }
.pill:hover { border-color: var(--brand); color: var(--brand-dark); }

/* list items */
.items { display: grid; gap: 12px; margin: 14px 0; }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.items .item { margin: 0; }
.item h3 { margin: 4px 0; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item h3 a:hover { color: var(--brand); text-decoration: underline; }
.item p { margin: .25em 0; color: var(--ink-2); font-size: .95rem; }
.item .reason { font-size: .9rem; }
.item-product { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.item-product img, .thumb-ph { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #eeece5; border: 1px solid var(--line); }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.badge, .tag, .flag { display: inline-block; font-size: .76rem; font-weight: 750; padding: 2px 9px; border-radius: 999px; letter-spacing: .02em; }
.badge-1 { background: var(--red-bg); color: var(--red); }
.badge-2 { background: var(--amber-bg); color: #8a5300; }
.badge-3 { background: #eceff1; color: #47545a; }
.tag { background: #e3f1ef; color: var(--brand-dark); }

/* vehicle recall page */
.crumbs { font-size: .86rem; color: var(--muted); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { opacity: .5; }
.page { padding-bottom: 30px; }
.summary { display: flex; align-items: center; gap: 16px; border-radius: var(--radius); padding: 16px 18px; margin: 8px 0; border: 1px solid; }
.summary .big { font-size: 2.4rem; line-height: 1; font-weight: 800; }
.summary span { display: block; color: var(--ink-2); font-size: .95rem; }
.summary-red { background: var(--red-bg); border-color: #f3c2bd; } .summary-red .big { color: var(--red); }
.summary-amber { background: var(--amber-bg); border-color: #f3dca6; } .summary-amber .big { color: #a86400; }
.summary-green { background: var(--green-bg); border-color: #bfe0cc; } .summary-green .big { color: var(--green); }
.data-note { margin: 6px 0 16px; }
.recalls { display: grid; gap: 14px; }
.recall { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.recall-top { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.campaign { font-weight: 750; color: var(--ink-2); font-family: ui-monospace, Consolas, monospace; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; }
.flag-red { background: var(--red); color: #fff; }
.flag-blue { background: #e4ecfa; color: var(--blue); }
.recall h3 { margin-top: 8px; }
.recall p { margin: .4em 0; }
.recall dl, .facts { margin: 10px 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.recall dt, .facts dt { font-weight: 750; color: var(--ink-2); font-size: .9rem; }
.recall dd, .facts dd { margin: 0; overflow-wrap: anywhere; }
.ext { font-weight: 650; font-size: .92rem; }

/* prose */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin: .35em 0; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #f1efe9; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.gallery figcaption { font-size: .82rem; color: var(--muted); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.notice { border-radius: 12px; padding: 12px 16px; margin: 12px 0; border: 1px solid; }
.notice-warn { background: var(--amber-bg); border-color: #f3dca6; }
.notice-info { background: #eef6f5; border-color: #cfe5e2; }
.notice-error { background: var(--red-bg); border-color: #f3c2bd; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0; }
.contact-card { max-width: 480px; }
.contact-card h2 { margin-top: 0; }

/* footer */
.foot { background: #fff; border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 22px; }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-in > div { max-width: 460px; }
.brand-sm { font-size: 1rem; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 28px; align-content: start; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; }
.foot-note { margin-top: 16px; }

/* ads (AdSense auto ads) shouldn't cause horizontal scroll */
ins.adsbygoogle { max-width: 100%; }

@media (max-width: 860px) {
  .picker { grid-template-columns: 1fr 1fr; }
  .picker label:nth-child(3) { grid-column: 1 / -1; }
  .picker .btn-go { grid-column: 1 / -1; }
  .two-col, .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  .top-in { padding: 8px 0; min-height: 0; }
  .nav { width: 100%; margin: 0 -6px; }
  .hero { padding: 30px 0 28px; }
  .recall dl, .facts { grid-template-columns: 1fr; gap: 2px; }
  .recall dd, .facts dd { margin-bottom: 8px; }
  .item-product { grid-template-columns: 64px 1fr; gap: 10px; }
  .item-product img, .thumb-ph { width: 64px; height: 64px; }
  .summary .big { font-size: 2rem; }
}

/* home search tabs */
.tabs { margin-top: 22px; }
.tablist { display: none; gap: 6px; }
.tabs-on .tablist { display: flex; }
.tablist button {
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; color: #d3e4e1;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-bottom: 0;
  border-radius: 12px 12px 0 0; padding: 9px 18px;
}
.tablist button:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.tablist button[aria-selected="true"] { background: #fff; color: var(--brand-dark); border-color: #fff; }
.tablist button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tabpanel + .tabpanel { margin-top: 14px; }
.tabs-on .tabpanel + .tabpanel { margin-top: 0; }
.tabs .picker { margin-top: 0; }
.tabs-on .picker, .tabs-on .hero-search { border-top-left-radius: 0; }
.hero-search {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end;
  background: #fff; color: var(--ink); padding: 14px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.hero-search label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hero-search input { text-transform: none; letter-spacing: 0; font-weight: 400; }
.hint { color: #d3e4e1; font-size: .92rem; margin: 10px 2px 0; }
.hint a { color: #fff; }
@media (max-width: 520px) {
  .tablist { gap: 4px; }
  .tablist button { flex: 1; padding: 9px 6px; font-size: .9rem; }
  .hero-search { grid-template-columns: 1fr; }
  .tabs-on .picker, .tabs-on .hero-search { border-top-right-radius: 0; }
}
