/* OKC BATTERY — /vehicles/ and /vehicles/<model>/. Builds on styles.css + area.css (ap-hero, ap-local rows, faq). */

/* hero art: a line drawing of the body type */
.vh-art { margin: 0; display: grid; place-items: center; gap: .8rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 40%, rgba(255,176,0,.10), transparent 65%), var(--surface); }
.vh-art__svg { width: min(100%, 360px); height: auto; fill: none; stroke: var(--amber); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(255,176,0,.25)); }
.vh-art--photo { padding: 0; overflow: hidden; background: var(--ink-2); }
.vh-art--photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.vh-art figcaption { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); text-transform: uppercase;
  letter-spacing: .02em; color: var(--paper-2); text-align: center; }

/* the battery table */
.vh-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.vh-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.vh-table th, .vh-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .97rem; }
.vh-table thead th { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  background: var(--ink-2); }
.vh-table tbody th { font-family: var(--font-cond); font-weight: 700; font-size: 1.08rem; color: var(--paper); white-space: nowrap; }
.vh-table tbody tr:last-child th, .vh-table tbody tr:last-child td { border-bottom: 0; }
.vh-table td b { color: var(--amber); font-weight: 700; }
.vh-note { margin-top: .8rem; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.vh-skip { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; padding: .8rem 1rem; border: 1px solid rgba(255,90,78,.35);
  border-radius: var(--radius); background: rgba(255,90,78,.06); color: var(--paper-2); font-size: .95rem; }
.vh-skip .ico { flex: none; width: 18px; height: 18px; color: var(--red); margin-top: .15rem; }

/* where the battery is, per generation */
.vh-gens { display: grid; gap: .8rem; }
.vh-gen { padding: 1rem 1.15rem; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); background: var(--surface); }
.vh-gen h3 { font-family: var(--font-cond); font-weight: 700; font-size: 1.12rem; letter-spacing: .02em; text-transform: uppercase; }
.vh-gen p { margin-top: .4rem; color: var(--paper-2); }
.vh-gen b { color: var(--paper); }

/* more models */
.vh-more .ap-h2 { margin-top: 1.6rem; }
.vh-more .ap-h2:first-child { margin-top: 0; }
.vh-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.vh-links a { display: inline-block; padding: .55rem .95rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--paper-2);
  font-size: .95rem; transition: border-color .2s, color .2s; }
.vh-links a:hover { border-color: var(--amber); color: var(--amber); }
.vh-all { margin-top: 1.6rem; color: var(--muted); }
.vh-all a { color: var(--amber); font-weight: 600; }

/* directory */
.vh-jump { margin-top: 1.2rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.vh-jump a { color: var(--amber); }
.vh-dirs { padding-top: 0; }
.vh-dir + .vh-dir { margin-top: clamp(2rem, 5vw, 3rem); }
.vh-dir { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.vh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: .8rem; margin-top: 1rem; }
.vh-cards > li { display: flex; }
.vh-card { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: .15rem .6rem; padding: .6rem .6rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .2s, transform .2s; }
.vh-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.vh-card__img { grid-column: 1 / -1; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px;
  margin-bottom: .55rem; background: var(--ink-2); }
.vh-card__img--art { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(255,176,0,.09), transparent 70%), var(--ink-2); }
.vh-card__img--art svg { width: 62%; height: auto; fill: none; stroke: var(--amber); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vh-card__name { grid-column: 1; padding: 0 .35rem; font-family: var(--font-cond); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; color: var(--paper); }
.vh-card__meta { grid-column: 1; padding: 0 .35rem; font-size: .82rem; color: var(--muted); }
.vh-card__chip { grid-column: 2; grid-row: 2 / 4; align-self: center; padding: .15rem .55rem; border: 1px solid rgba(255,176,0,.45); border-radius: 999px;
  font-family: var(--font-mono); font-size: .7rem; color: var(--amber); white-space: nowrap; }

@media (max-width: 960px) {
  .vh-hero .ap-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .vh-art:not(.vh-art--photo) { max-width: 420px; }
}
@media (max-width: 600px) {
  .vh-art:not(.vh-art--photo) { display: none; }   /* phones: the facts + button matter more than the drawing (photos stay) */
  .vh-table { min-width: 0; }
  .vh-table thead { display: none; }
  .vh-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .8rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
  .vh-table tbody tr:last-child { border-bottom: 0; }
  .vh-table th, .vh-table td { padding: 0; border: 0; }
  .vh-table tbody th { grid-column: 1 / -1; }
  .vh-table td::before { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
  .vh-table td:nth-of-type(1)::before { content: "Battery size"; }
  .vh-table td:nth-of-type(2)::before { content: "Cold-cranking amps"; }
  .vh-table td:nth-of-type(3)::before { content: "Type"; }
  .vh-table td[colspan]::before { content: none; }
  .vh-table td[colspan] { grid-column: 1 / -1; }
}
