/* findmyev.ca — "Charge" yellow, Daylight layout */
:root {
  --y: #FFD23F; --y-d: #F5C518;
  --ink: #141414; --body: #3D3A33; --muted: #57534A;
  --g1: #EFECE6; --g2: #E7E3DA; --g3: #D6D1C4; --soft: #FAF9F6;
  --head: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: #000; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: 34px; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* header */
header.site { background: #fff; border-bottom: 1px solid var(--g2); }
header.site .bar { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--head); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.mainnav { display: flex; flex-wrap: wrap; gap: 26px; font-weight: 600; font-size: 15px; }
.mainnav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.mainnav a.on { border-bottom-color: var(--y); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--ink); color: #fff; }
.btn:hover { background: #000; color: #fff; }
.btn-pill { border-radius: 999px; }
.btn-yellow, .btn-lime { background: var(--y); color: var(--ink); font-weight: 800; }
.btn-yellow:hover, .btn-lime:hover { background: var(--y-d); color: var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--g1); color: var(--ink); }
.btn-danger { background: #B42318; }
.btn-danger:hover { background: #8F1D14; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; border-radius: 999px; }
.linkbtn { background: none; border: 0; padding: 0; min-height: 36px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; align-self: flex-start; }
.linkbtn:disabled { opacity: .6; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
input[type=text], input[type=email], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 48px; border: 1.5px solid var(--g3); border-radius: 12px; padding: 0 14px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: #fff;
}
textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--y); outline-offset: 0; border-color: var(--ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; min-height: 34px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: 0 0 auto; }
.hint { font-size: 13px; font-weight: 500; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
fieldset.panel { margin: 0; }
fieldset.panel legend { font-family: var(--head); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; padding: 0 6px; }

/* home hero */
.hero { background: var(--y); }
.hero .wrap { max-width: 1040px; padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.035em; }
.hero p.lead { margin: 14px auto 0; font-size: 19px; line-height: 1.55; max-width: 620px; }
.searchcard { width: 100%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: #F3F1EC; border-radius: 999px; padding: 5px; align-self: flex-start; border: 0; margin: 0; min-width: 0; max-width: 100%; }
.tabs legend { position: absolute; left: -9999px; }
.tabs label { position: relative; cursor: pointer; }
.tabs input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tabs span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--body); }
.tabs input:checked + span { background: var(--ink); color: #fff; font-weight: 700; }
.tabs input:focus-visible + span { outline: 3px solid var(--y); }
.searchrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.searchrow .field { flex: 1 1 140px; }
.searchrow .btn { flex: 0 0 auto; min-height: 48px; padding: 0 28px; font-size: 16px; }
.popular { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; }
.popular strong { align-self: center; }
.popular a { background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-weight: 600; }
.popular a:hover { background: var(--ink); color: #fff; }

.page-hero { background: var(--y); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 48px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); }
.page-hero p { margin: 12px 0 0; font-size: 18px; max-width: 680px; }

/* sections + cards */
.section { padding: 64px 0 8px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.section-head a { font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: #fff; border: 1.5px solid var(--g2); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.card .photo { position: relative; aspect-ratio: 16 / 10; background: var(--g1); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.card .title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.meta { font-size: 14px; color: var(--muted); }
.meta strong { color: var(--ink); }
.price { font-family: var(--head); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.battery { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--g1); }
.battery-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.battery-row span:first-child { color: var(--muted); }
.battery-bar { height: 6px; border-radius: 999px; background: var(--g1); overflow: hidden; }
.battery-bar div { height: 6px; border-radius: 999px; background: var(--ink); }
.card-tag { font-size: 13px; font-weight: 600; color: var(--muted); }
.type-badge { position: absolute; top: 12px; left: 12px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; }
.type-badge.inline { position: static; display: inline-block; }
.type-ev { background: var(--y); color: var(--ink); }
.type-phev { background: var(--ink); color: var(--y); }
.type-hev { background: #fff; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 11px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); }
.chip-mint, .chip-amber { background: var(--y); }
.chip-blue { background: var(--ink); color: var(--y); }
.chip-violet, .chip-grey { background: var(--g1); border-color: var(--g1); }
.type-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile { border-radius: 22px; padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.tile h3 { font-size: 26px; }
.tile p { margin: 0; font-size: 15px; line-height: 1.55; }
.tile span { font-weight: 700; margin-top: 6px; }
.tile-ev { background: var(--y); }
.tile-phev { background: var(--ink); color: #fff; }
.tile-phev h3, .tile-phev span { color: var(--y); }
.tile-phev p { color: #E6E2D8; }
.tile-hev { background: var(--g1); }
.tile:hover { color: inherit; transform: translateY(-2px); }
.tile-phev:hover { color: #fff; }
.guide-card { padding: 22px; gap: 10px; }
.guide-card .chip { align-self: flex-start; }
.guide-card h3 { font-size: 20px; line-height: 1.2; }
.guide-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.band { border-radius: 28px; padding: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin: 32px 0; }
.band h2 { font-size: 36px; }
.band p { margin: 8px 0 0; font-size: 17px; line-height: 1.55; max-width: 620px; }
.band-dark, .band-violet { background: var(--ink); color: #fff; }
.band-dark p, .band-violet p { color: #E6E2D8; }
.band-yellow, .band-lime { background: var(--y); }
.panel { background: #fff; border: 1.5px solid var(--g2); border-radius: 18px; padding: 22px; }
.empty { text-align: center; padding: 40px 22px; }

/* browse */
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding: 32px 0 64px; }
.side { flex: 1 1 270px; max-width: 100%; }
.content { flex: 999 1 560px; min-width: 0; }
.filters { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.filters-sum { font-family: var(--head); font-size: 22px; font-weight: 800; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.filter-group { border: 0; margin: 0; padding: 0 0 18px; border-bottom: 1px solid var(--g1); display: flex; flex-direction: column; gap: 12px; }
.filter-group legend { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 4px; }
.clear-link { text-align: center; font-weight: 700; }
.row2 { display: flex; gap: 10px; }
.row2 .field { flex: 1 1 0; min-width: 0; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.results-head h1 { font-size: clamp(24px, 3vw, 32px); }
.sortform { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.sortform select { width: auto; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 24px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; border: 1.5px solid var(--g3); font-weight: 700; text-decoration: none; }
.pager .on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* listing */
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; padding-top: 20px; }
.gallery-main { height: 460px; background: var(--g1); border-radius: 22px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; height: 72px; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--g1); }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.spec { background: var(--soft); border: 1px solid var(--g1); border-radius: 14px; padding: 14px 16px; }
.spec .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.spec .v { font-family: var(--head); font-size: 20px; font-weight: 800; margin-top: 4px; letter-spacing: -0.01em; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 24px; font-size: 15px; margin-top: 12px; }
.facts span { color: var(--muted); }
.desc { white-space: pre-line; font-size: 16px; line-height: 1.65; color: var(--body); margin: 12px 0 0; }
.big-price { font-family: var(--head); font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.price-card { border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.safety { background: #FFF6D1; border: 1.5px solid var(--y); border-radius: 18px; padding: 20px; color: var(--body); }
.safety h2 { font-size: 18px; color: var(--ink); }
.safety ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.small { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }

/* misc */
.narrow { max-width: 800px; margin: 0 auto; padding: 40px 24px 64px; }
.narrow h1 { font-size: clamp(30px, 4vw, 42px); }
.prose { font-size: 16px; line-height: 1.7; color: var(--body); }
.prose h2 { font-size: 24px; color: var(--ink); margin-top: 28px; }
.notice { border-radius: 14px; padding: 14px 18px; font-weight: 600; margin: 18px 0; }
.notice-ok { background: #FFF6D1; border: 1.5px solid var(--y); }
.notice-err { background: #FDECEA; color: #8F1D14; }
.notice ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin th, table.admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--g2); vertical-align: top; }
.tablebox { overflow-x: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.actions .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }

/* footer */
footer.site { border-top: 1px solid var(--g2); background: var(--soft); margin-top: 48px; }
footer.site .foot { padding-top: 36px; padding-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--muted); }
footer.site .logo span { font-size: 19px; }
footer.site p { margin: 10px 0 0; max-width: 420px; line-height: 1.5; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.credit { font-size: 12px; color: var(--muted); padding-bottom: 28px; }
.credit a { color: var(--muted); }

input::placeholder { text-transform: none; color: #8A857A; }

@media (max-width: 640px) {
  header.site .bar { padding: 10px 16px; gap: 8px 12px; }
  header.site .logo span { font-size: 21px; }
  header.site .btn-pill { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .mainnav { order: 3; width: 100%; gap: 20px; font-size: 14px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .tabs span { white-space: nowrap; padding: 0 14px; }
  .hero .wrap { padding-top: 44px; padding-bottom: 44px; }
  .band { padding: 28px; }
  .band h2 { font-size: 28px; }
  .gallery-main { height: 260px; }
  .mainnav { gap: 18px; }
  .searchrow .btn { width: 100%; }
}
