/* Carsultant4u — EV Cheat Sheet page */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ev-meta { font-size: 14px; color: var(--navy-2); margin-top: 14px; }
.ev-wrap { max-width: 1180px; }

.ev-tools { position: sticky; top: 76px; z-index: 6; background: var(--mist); padding: 12px 0 10px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.ev-tools input { width: 100%; padding: 12px 14px; font: 16px var(--sans); color: var(--navy); border: 1px solid var(--field); border-radius: 10px; background: var(--paper); }
.ev-tools input:focus { border-color: var(--navy); outline: 3px solid var(--gulf); outline-offset: 0; }
.ev-count { font-size: 13px; font-weight: 600; color: var(--muted); margin: 8px 0 8px; }
.ev-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ev-chips a { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; }
.ev-chips a:hover { border-color: var(--navy); }

.ev-sec { margin: 0 0 44px; scroll-margin-top: 200px; }
.ev-sec h2 { font-size: 26px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 3px solid var(--navy); position: relative; }
.ev-sec h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 56px; height: 3px; background: var(--orange); }
.ev-sec > p { max-width: 860px; }
.ev-sec > p strong:only-child { font-family: var(--serif); font-size: 17px; }
.ev-sec ul { padding-left: 20px; max-width: 860px; }
.ev-sec li { margin-bottom: 6px; }

.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; margin: 10px 0 22px; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.table-wrap th { background: var(--navy); color: var(--paper); text-align: left; font-size: 12.5px; letter-spacing: .02em; padding: 10px 12px; white-space: nowrap; position: sticky; top: 0; }
.table-wrap td { padding: 10px 12px; border-top: 1px solid var(--rule); vertical-align: top; line-height: 1.45; }
.table-wrap tbody tr:nth-child(even) td { background: #F6F8F9; }
.table-wrap td:first-child { font-weight: 700; white-space: nowrap; }
.table-wrap td:nth-child(2) { white-space: nowrap; }
.table-wrap td:nth-child(3), .table-wrap td:nth-child(4) { min-width: 120px; max-width: 220px; }
.table-wrap td:last-child { white-space: normal; min-width: 320px; width: 42%; }

.ev-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: -18px 0 44px; }
.ev-cta { display: block; background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: var(--navy); box-shadow: 6px 6px 0 var(--gulf); transition: transform .15s; }
.ev-cta:hover { transform: translateY(-2px); }
.ev-cta strong { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.ev-cta span { font-size: 15px; color: var(--muted); }
.ev-none { font-weight: 600; color: var(--muted); }
.ev-tail h2 { font-size: 22px; }
.ev-tail li { font-size: 14px; }

@media (max-width: 760px) {
  .ev-ctas { grid-template-columns: 1fr; margin-top: 0; }
  .ev-sec h2 { font-size: 22px; }
  .ev-tools { top: 76px; }
}

/* Phones: each trim becomes a card instead of a sideways-scrolling table */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; background: none; border: 0; border-radius: 0; }
  .table-wrap table { min-width: 0; display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tbody { display: grid; gap: 12px; }
  .table-wrap tr { display: block; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--gulf); border-radius: 10px; padding: 12px 14px; }
  .table-wrap tbody tr:nth-child(even) td { background: none; }
  .table-wrap td { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 4px 0; border-top: 0; white-space: normal !important; min-width: 0 !important; max-width: none !important; width: auto !important; }
  .table-wrap td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding-top: 2px; }
  .table-wrap td:first-child { display: block; font-family: var(--serif); font-size: 16px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
  .table-wrap td:first-child::before { content: none; }
  .table-wrap td[hidden], .table-wrap tr[hidden] { display: none; }
}

.ev-ctas[hidden], .ev-sec[hidden], .ev-sec p[hidden], .table-wrap[hidden] { display: none !important; }
