/* ==========================================================================
   VehicleSev news and guides (uses directory.css + reviews.css components)
   ========================================================================== */

/* ---------- Listing ---------- */
.articlesearch { max-width: 720px; margin: 0; }
.acard__topic { margin-bottom: 2px; }
.acard__excerpt { font-size: 15px; line-height: 1.55; }
.acard__meta { margin-top: auto; padding-top: var(--s-2); font-size: 13px; display: flex; gap: 6px; flex-wrap: wrap; }
.acard .vcard__noimg svg { fill: none; stroke: var(--c-accent); stroke-width: 1.6; }

.leadgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.leadgrid--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) { .leadgrid { grid-template-columns: 1fr; } }
.acard--lead .vcard__title { font-size: clamp(22px, 2.4vw, 30px); }
.acard--lead .vcard__body { padding: var(--s-5) var(--s-6) var(--s-6); gap: var(--s-3); }
.mostread { padding: var(--s-5); background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-sm); }
.mostread h2 { margin-bottom: var(--s-4); }
.mostread ol { list-style: none; counter-reset: mr; display: flex; flex-direction: column; gap: var(--s-4); }
.mostread li { counter-increment: mr; display: grid; grid-template-columns: 32px 1fr; gap: var(--s-2); align-items: start; }
.mostread li::before { content: counter(mr); color: var(--c-accent); font-family: var(--f-heading); font-weight: 700; font-size: 22px; line-height: 1.1; }
.mostread a { color: var(--c-text); font-weight: 600; text-decoration: none; line-height: 1.4; }
.mostread a:hover { color: var(--c-accent); }

/* ---------- Article ---------- */
.article__head { padding-block: var(--s-7) var(--s-6); background: radial-gradient(ellipse at 15% 0%, rgba(163, 255, 18, 0.06) 0%, rgba(163, 255, 18, 0) 50%), var(--c-surface); border-bottom: 1px solid var(--c-border); }
.article__narrow { max-width: calc(860px + 2 * var(--gutter)); display: flex; flex-direction: column; gap: var(--s-4); }
.article__narrow .eyebrow a { color: inherit; text-decoration: none; }
.article__title { font-size: clamp(32px, 4vw, 52px); }
.article__standfirst { color: var(--c-text); opacity: 0.9; }
.article__hero { margin: var(--s-6) auto 0; }
.article__img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--c-border); }
.article__hero figcaption { margin-top: var(--s-2); }

.article__grid { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: var(--s-8); justify-content: center; align-items: start; }
.article__grid--notoc { grid-template-columns: minmax(0, 760px); }
@media (max-width: 1024px) { .article__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }
.article__main { display: flex; flex-direction: column; gap: var(--s-7); min-width: 0; }
.article__main .entry-content { max-width: none; }
.article__main .entry-content figure { margin: 1.6em 0; }
.article__main .entry-content figcaption { font-size: 13px; color: var(--c-text-muted); margin-top: var(--s-2); }
.article__main .entry-content h2, .article__main .entry-content h3 { scroll-margin-top: 100px; }

.toc { position: sticky; top: 96px; padding: var(--s-4) var(--s-5); background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-sm); }
.toc__title { color: var(--c-text); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-3); }
.toc ol { display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 6px 0 6px var(--s-3); border-left: 2px solid var(--c-border); color: var(--c-text-muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc a:hover, .toc a[aria-current] { color: var(--c-text); border-left-color: var(--c-accent); }
.toc .toc__l3 a { padding-left: var(--s-5); font-size: 13px; }
@media (max-width: 1024px) { .toc { position: static; } }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding-block: var(--s-4); border-block: 1px solid var(--c-border); }
.share__label { color: var(--c-text); font-weight: 700; font-size: 14px; }
.share__list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.share__btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-3);
  background: transparent; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm);
  color: var(--c-text); font: 600 14px/1 var(--f-body); text-decoration: none; cursor: pointer;
}
.share__btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.share__status { font-size: 13px; color: var(--c-accent); }
.article__faq h2 { margin-bottom: var(--s-4); }

/* Articles without a featured image: a slim placeholder instead of a large empty frame */
.acard .vcard__media:has(.vcard__noimg) { aspect-ratio: 4 / 1; }
.acard--lead .vcard__media:has(.vcard__noimg) { aspect-ratio: 5 / 1; }

/* Supporting pages: notes the site owner must complete before publishing (drafts only). */
.vs-todo { padding: var(--s-3) var(--s-4); border: 1px dashed #FFC857; border-radius: var(--r-sm); background: rgba(255, 200, 87, 0.08); color: #FFC857; }
.page-article__updated { margin-top: var(--s-6); }
