/* RechevCheck — identity built around the Israeli plate.
   Palette: plate yellow #F7C325, digit black #16150F, asphalt #2A2A28,
   paper #FBFAF6, road-sign green #1E7A46 (positive), warning red #B2321E. */

:root {
  --yellow: #F7C325;
  --ink: #16150F;
  --asphalt: #2A2A28;
  --paper: #FBFAF6;
  --line: #E4E0D4;
  --green: #1E7A46;
  --red: #B2321E;
  --blue-band: #2A4D9B;
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  font-family: 'Heebo', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; }
h1, h2 { line-height: 1.2; font-weight: 900; }
main { max-width: 880px; margin: 0 auto; padding: 0 1rem 3rem; }

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--asphalt); color: var(--paper);
  padding: .6rem 1rem;
}
.brand { font-weight: 900; text-decoration: none; font-size: 1.05rem; }
.mini-search { display: flex; gap: .4rem; }
.mini-search input {
  width: 9.5rem; border: 0; border-radius: 3px; padding: .35rem .6rem;
  font: inherit; direction: ltr; text-align: center;
}
.mini-search button {
  border: 0; border-radius: 3px; background: var(--yellow); color: var(--ink);
  font: inherit; font-weight: 700; padding: .35rem .8rem; cursor: pointer;
}

/* hero */
.hero { text-align: center; padding: 3.2rem 0 2rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 .4rem; }
.hero-sub { font-size: 1.1rem; margin: 0 0 1.8rem; color: #4c4a42; }

/* the plate — the one bold element on the page */
.plate-form { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.plate {
  display: flex; align-items: stretch; direction: ltr;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 3px 0 var(--ink);
  overflow: hidden;
  width: min(420px, 92vw);
}
.plate-band {
  background: var(--blue-band); color: #fff;
  display: flex; align-items: flex-end; justify-content: center;
  font-size: .7rem; font-weight: 700; padding: .3rem .45rem;
}
.plate input, .plate-num {
  flex: 1; border: 0; background: transparent;
  font-family: 'Heebo', monospace;
  font-weight: 900; font-size: clamp(1.7rem, 6vw, 2.4rem);
  letter-spacing: .08em; text-align: center; direction: ltr;
  padding: .35rem .5rem; min-width: 0;
  font-variant-numeric: tabular-nums;
}
.plate input:focus { outline: 3px solid var(--blue-band); outline-offset: -3px; }
.plate-static { box-shadow: none; width: auto; }
.plate-num { padding: .25rem .9rem; }
.mini-plate {
  display: inline-block; direction: ltr; background: var(--yellow);
  border: 1.5px solid var(--ink); border-radius: 4px;
  padding: 0 .4rem; font-weight: 700; font-variant-numeric: tabular-nums;
  margin-inline-end: .4rem;
}

.cta {
  border: 0; border-radius: 6px; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 700; font-size: 1.05rem;
  padding: .65rem 2.4rem;
}
.cta:hover { background: #000; }
.form-err { color: var(--red); font-weight: 500; }

.hero-points {
  list-style: none; padding: 0; margin: 2.2rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem;
  color: #4c4a42; font-size: .95rem;
}
.hero-points li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* result page */
.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.8rem 0 .6rem; }
.result-head h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 0; }
.result-head .year { color: #6a675c; font-weight: 500; }

.alert { border-radius: 6px; padding: .7rem 1rem; font-weight: 500; }
.alert-recall { background: #FBE9E5; color: var(--red); border: 1px solid var(--red); }
.alert-test   { background: #FBE9E5; color: var(--red); }
.alert-soon   { background: #FFF6DC; color: #7a5b00; }

.specs h2, .recalls h2, .importer h2, .faq h2, .recent h2, .year-nav h2, .cta-block h2 {
  font-size: 1.15rem; border-bottom: 2px solid var(--yellow);
  display: inline-block; padding-bottom: .15rem; margin: 2rem 0 .9rem;
}
.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0;
}
.spec { background: #fff; padding: .55rem .8rem; }
.spec dt { font-size: .78rem; color: #6a675c; }
.spec dd { margin: 0; font-weight: 700; }

.recall-list { list-style: none; padding: 0; }
.recall-list li { background: #fff; border-inline-start: 4px solid var(--red); padding: .7rem 1rem; margin-bottom: .6rem; }
.recall-list time { color: #6a675c; font-size: .85rem; margin-inline-start: .6rem; }
.tag-import { display: inline-block; background: var(--blue-band); color: #fff; border-radius: 4px; padding: .15rem .7rem; font-size: .85rem; margin-top: .8rem; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: .5rem; padding: .55rem .9rem; }
.faq summary { font-weight: 700; cursor: pointer; }

.recent-list, .year-list, .model-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.recent-list a, .year-list a { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .35rem .7rem; text-decoration: none; }
.recent-list a:hover, .year-list a:hover { border-color: var(--ink); }
.model-list { flex-direction: column; }
.model-list a { display: flex; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .5rem .9rem; text-decoration: none; }
.model-list .cnt { color: #6a675c; }

.crumbs { font-size: .85rem; color: #6a675c; padding-top: 1.2rem; }
.crumbs a { color: inherit; }
.model-link, .updated { color: #6a675c; font-size: .9rem; }
.cta-block { text-align: center; margin-top: 2.5rem; }

.editorial .body { max-width: 42rem; }
.editorial .body img { max-width: 100%; height: auto; }

.footer {
  border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.4rem 1rem 2.2rem;
  max-width: 880px; margin-inline: auto; color: #6a675c; font-size: .85rem;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: .8rem; }
.footer a { color: inherit; }

@media (max-width: 560px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .mini-search input { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .plate input:focus { transition: outline-color .15s; }
}

/* v2: history sections */
.km-history h2, .ownership h2, .changes h2, .flags h2 {
  font-size: 1.15rem; border-bottom: 2px solid var(--yellow);
  display: inline-block; padding-bottom: .15rem; margin: 2rem 0 .9rem;
}
.km-table { border-collapse: collapse; width: 100%; max-width: 30rem; background: #fff; }
.km-table th, .km-table td { border: 1px solid var(--line); padding: .45rem .8rem; text-align: right; }
.km-table th { font-size: .8rem; color: #6a675c; font-weight: 500; }
.km-table .km-drop td { background: #FBE9E5; color: var(--red); font-weight: 700; }
.km-avg { color: #4c4a42; }
.own-list { list-style: none; padding: 0; max-width: 30rem; }
.own-list li { background: #fff; border-inline-start: 4px solid var(--yellow); padding: .5rem .9rem; margin-bottom: .45rem; display: flex; justify-content: space-between; gap: 1rem; }
.own-list time { color: #6a675c; font-size: .85rem; }
.src-mini { color: #6a675c; font-size: .8rem; }

/* v3: recall subsections */
.recalls h3 { font-size: 1rem; margin: 1.4rem 0 .5rem; }

/* v4: legal pages, skip link, cookie consent */
.skip-link {
  position: absolute; top: -100px; right: 1rem;
  background: var(--ink); color: var(--paper);
  padding: .5rem 1rem; border-radius: 0 0 6px 6px; z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 0; }
.legal h2 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; }
.legal p { max-width: 42rem; }
#cookie-consent {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 90;
  background: var(--asphalt); color: var(--paper);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .6rem 1.4rem; padding: .8rem 1rem; font-size: .9rem;
}
#cookie-consent p { margin: 0; max-width: 40rem; }
#cookie-consent a { color: var(--yellow); }
.cc-actions { display: flex; gap: .6rem; }
#cookie-consent button {
  border: 0; border-radius: 5px; cursor: pointer; font: inherit;
  padding: .45rem 1rem;
}
#cc-accept { background: var(--yellow); color: var(--ink); font-weight: 700; }
#cc-essential { background: transparent; color: var(--paper); border: 1px solid #6a675c; }
#cookie-consent button:focus-visible, .cc-actions button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
