/* ==========================================================================
   EV Powered — Redesign Prototype
   Shared design system
   ========================================================================== */

:root {
  /* Brand — EV Powered "EV Spark Green" (from logo) */
  --green: #27862b;          /* brand green */
  --green-deep: #1f6e23;     /* darker green for text/hover */
  --green-bright: #3aa831;   /* brighter green for UI pops */
  --lime: #dedc00;           /* EV Spark yellow */
  --spark: linear-gradient(120deg, #dedc00 0%, #6aa314 42%, #27862b 100%);
  --ink: #0c1116;            /* near-black */
  --ink-2: #161d24;
  --ink-3: #1f2932;
  --slate: #5b6772;
  --mute: #8a96a1;
  --line: #e6e9ec;
  --line-dark: #29333d;
  --paper: #ffffff;
  --paper-2: #f5f7f8;
  --paper-3: #eef1f3;

  /* Type */
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --wrap: 1240px;
  --gap: 28px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(12, 17, 22, 0.08);
  --shadow-lg: 0 18px 50px rgba(12, 17, 22, 0.16);
  --t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Reserve the vertical scrollbar gutter permanently so the centered layout
   never jumps sideways when async content (ads, lazy images) grows the page
   and the scrollbar appears/disappears. overflow-y:scroll = universal fallback;
   scrollbar-gutter:stable = modern browsers (no greyed track on short pages). */
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
li { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }

/* ---- Eyebrow / kicker ---- */
.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-deep);
}
.kicker::before {
  content: ""; width: 18px; height: 2px; background: var(--green); border-radius: 2px;
}

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.utility {
  background: var(--ink); color: #c4ccd3;
  font-size: 0.78rem; border-bottom: 1px solid var(--line-dark);
}
.utility .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.utility .date { color: var(--mute); }
.utility .socials { display: flex; gap: 16px; }
.utility .socials a { color: #c4ccd3; transition: color var(--t); }
.utility .socials a:hover { color: var(--green); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--spark);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(39, 134, 43, 0.35);
}
.brand .mark svg { width: 22px; height: 22px; }
.brand .name { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.03em; }
.brand .name b { color: var(--green-deep); }
.footer-about .brand-logo { height: 34px; }

.menu { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.menu > li > a {
  display: block; padding: 9px 8px; border-radius: 8px;
  font-size: 0.84rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.menu > li > a:hover { background: var(--paper-3); color: var(--green-deep); }

/* Dropdown submenus (desktop) */
.menu li { position: relative; }
.menu .sub-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 300;
  min-width: 215px; margin: 0; padding: 8px 0; list-style: none;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu .sub-menu li { display: block; }
.menu .sub-menu a { display: block; padding: 9px 16px; white-space: nowrap; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.menu .sub-menu a:hover { background: var(--paper-3); color: var(--green-deep); }
.menu > li.menu-item-has-children > a { display: flex; align-items: center; gap: 5px; }
.menu > li.menu-item-has-children > a::after {
  content: ""; width: 6px; height: 6px; flex-shrink: 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px); opacity: 0.55;
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--paper); display: grid; place-items: center; cursor: pointer;
  color: var(--ink-2); transition: var(--t);
}
.icon-btn:hover { border-color: var(--green); color: var(--green-deep); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 0.9rem;
  padding: 11px 20px; border-radius: 10px; cursor: pointer; border: none;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 169, 79, 0.3); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 213, 99, 0.4); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.burger { display: none; }
/* The full menu needs the 1240px container; below that, switch to the hamburger
   (the desktop nav has more/longer items than the original 8-item mockup). */
@media (max-width: 1240px) {
  .site-header .menu { display: none; }
  .burger { display: grid; }
}

/* ==========================================================================
   Breaking ticker
   ========================================================================== */
.ticker {
  background: var(--ink-2); color: #fff; overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.ticker .wrap { display: flex; align-items: center; gap: 18px; height: 46px; }
.ticker .tag {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  background: var(--green); color: var(--ink); font-family: var(--display);
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 6px;
}
.ticker .tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.ticker-track { overflow: hidden; flex: 1; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 44px; animation: marquee 34s linear infinite; }
.ticker-move a { font-size: 0.88rem; color: #d7dde2; transition: color var(--t); }
.ticker-move a:hover { color: var(--green); }
.ticker-move a::before { content: "▸"; color: var(--green); margin-right: 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 40px 0 16px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--gap); }

.lead {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 520px; display: flex; align-items: flex-end;
  color: #fff; box-shadow: var(--shadow);
}
.lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.6s ease; }
.lead:hover img { transform: scale(1.04); }
.lead::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12,17,22,0) 30%, rgba(12,17,22,0.55) 62%, rgba(12,17,22,0.92) 100%);
}
.lead-body { position: relative; z-index: 2; padding: 38px; }
.lead-body .kicker { color: var(--lime); }
.lead-body .kicker::before { background: var(--lime); }
.lead-body h1 { font-size: 2.7rem; margin: 14px 0 12px; max-width: 16ch; }
.lead-body p { color: #d7dde2; max-width: 52ch; font-size: 1.02rem; }
.lead-meta { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 0.85rem; color: #b6bfc7; }
.lead-meta .by { color: #fff; font-weight: 600; }

.side-stack { display: grid; grid-template-rows: repeat(3, 1fr); gap: 18px; }
.side-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: var(--t);
}
.side-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.side-card .thumb { position: relative; overflow: hidden; }
.side-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-card .sc-body { padding: 14px 16px 14px 0; display: flex; flex-direction: column; justify-content: center; }
.side-card .cat { font-family: var(--display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); }
.side-card h3 { font-size: 1rem; margin: 6px 0; line-height: 1.22; }
.side-card .date { font-size: 0.78rem; color: var(--mute); }

/* ==========================================================================
   Section headers
   ========================================================================== */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 20px; }
.section-head h2 { font-size: 1.85rem; }
.section-head .sub { color: var(--slate); font-size: 0.95rem; margin-top: 4px; }
.section-head a.more { font-family: var(--display); font-weight: 600; font-size: 0.88rem; color: var(--green-deep); display: inline-flex; align-items: center; gap: 6px; transition: gap var(--t); }
.section-head a.more:hover { gap: 11px; }
.section.alt { background: var(--paper-2); }

/* ==========================================================================
   Card grid
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; display: flex; flex-direction: column; transition: var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dce1; }
.card .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .ph img { transform: scale(1.05); }
.card .cat-pill {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(12,17,22,0.82); backdrop-filter: blur(4px); color: #fff;
  font-family: var(--display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 6px;
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body h3 { font-size: 1.15rem; line-height: 1.25; }
.card:hover .card-body h3 { color: var(--green-deep); }
.card-body p { color: var(--slate); font-size: 0.9rem; }
.card-meta { margin-top: auto; display: flex; align-items: center; gap: 9px; font-size: 0.8rem; color: var(--mute); padding-top: 4px; }
.card-meta .by { color: var(--ink-2); font-weight: 600; }
.card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--mute); }

/* ---- list-style compact card ---- */
.list-card { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-card:last-child { border-bottom: none; }
.list-card .thumb { aspect-ratio: 16/11; border-radius: 8px; overflow: hidden; }
.list-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-card h3 { font-size: 1.05rem; line-height: 1.25; margin: 4px 0 6px; }
.list-card:hover h3 { color: var(--green-deep); }
.list-card .cat { font-family: var(--display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); }
.list-card .date { font-size: 0.78rem; color: var(--mute); }

/* ---- rating stars ---- */
.stars { display: inline-flex; gap: 2px; color: var(--green); align-items: center; }
.stars .num { font-family: var(--display); font-weight: 700; color: var(--ink); margin-left: 6px; font-size: 0.85rem; }

/* ==========================================================================
   Feature split (interview)
   ========================================================================== */
.feature-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.feature-split .fs-img { position: relative; min-height: 420px; }
.feature-split .fs-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-split .fs-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.feature-split .fs-body .kicker { color: var(--lime); }
.feature-split .fs-body .kicker::before { background: var(--lime); }
.feature-split .fs-body h2 { font-size: 2rem; margin: 16px 0 14px; }
.feature-split .fs-body p { color: #c4ccd3; font-size: 1.02rem; }
.feature-split .fs-body .lead-meta { color: #97a2ab; }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats { background: var(--ink); color: #fff; padding: 52px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .n { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--green); letter-spacing: -0.03em; }
.stat .l { color: #aeb8c0; font-size: 0.92rem; margin-top: 4px; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter { background: var(--spark); color: var(--ink); border-radius: var(--radius); padding: 46px 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { font-size: 2rem; }
.newsletter p { margin-top: 8px; max-width: 46ch; color: #053a1f; }
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-form input { width: 100%; padding: 14px 16px; border-radius: 10px; border: none; font-size: 0.95rem; font-family: var(--body); }
.nl-form .row { display: flex; gap: 10px; }
.nl-form button { white-space: nowrap; }
.nl-note { font-size: 0.78rem; color: #074226; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #aeb8c0; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-about .brand .name { color: #fff; }
.footer-about p { margin-top: 16px; font-size: 0.9rem; max-width: 40ch; }
.footer-about .socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-about .socials a { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-dark); display: grid; place-items: center; color: #aeb8c0; transition: var(--t); overflow: hidden; }
.footer-about .socials a svg { width: 18px; height: 18px; display: block; }
.footer-about .socials a:hover { background: var(--green); color: var(--ink); border-color: var(--green); }
.footer-col h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; transition: color var(--t); }
.footer-col a:hover { color: var(--green); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; font-size: 0.83rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom .group { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .group a:hover { color: var(--green); }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero { background: var(--ink); color: #fff; padding: 52px 0; }
.page-hero .crumbs { font-size: 0.82rem; color: var(--mute); margin-bottom: 14px; }
.page-hero .crumbs a:hover { color: var(--green); }
.page-hero h1 { font-size: 2.6rem; }
.page-hero p { color: #c4ccd3; margin-top: 12px; max-width: 60ch; }

/* ==========================================================================
   Article
   ========================================================================== */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 0; }
.article-wrap .cat { color: var(--green-deep); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
.article-wrap h1 { font-size: 2.5rem; margin: 12px 0 16px; }
.article-wrap .standfirst { font-size: 1.2rem; color: var(--slate); line-height: 1.5; }
.article-byline { display: flex; align-items: center; gap: 12px; margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.article-byline .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-deep)); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; }
.article-byline .who b { display: block; color: var(--ink); }
.article-byline .who span { color: var(--mute); }
.article-hero-img { border-radius: var(--radius); overflow: hidden; margin: 0 auto 30px; max-width: 850px; }
.article-hero-img img { width: 100%; height: auto; display: block; }
.article-body { max-width: 720px; margin: 0 auto; padding: 0 24px 40px; font-size: 1.08rem; line-height: 1.75; color: #283038; }
.article-body p { margin-bottom: 22px; }
/* In-article links must read as links again — green + underline (client 2026-07:
   "make anchor text green … different and visible as a link"). Ad links excluded. */
.article-body a { color: #3f7a4d; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--green-deep); }
.article-body .blogkit-ad a { text-decoration: none; }
.article-body h2 { font-size: 1.6rem; margin: 36px 0 14px; }
.article-body blockquote { border-left: 4px solid var(--green); padding: 6px 0 6px 22px; margin: 28px 0; font-family: var(--display); font-size: 1.3rem; line-height: 1.4; color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split .fs-img { min-height: 280px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .newsletter { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .menu, .nav-right .btn { display: none; }
  .burger { display: grid; }
  .mag-hero-grid { grid-template-columns: 1fr; gap: 36px; max-width: 460px; margin: 0 auto; }
  .review-verdict { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 620px) {
  .lead-body h1 { font-size: 1.9rem; }
  .lead-body { padding: 26px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .side-card { grid-template-columns: 110px 1fr; }
  .article-wrap h1 { font-size: 1.9rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .utility .date { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Magazine page
   ========================================================================== */
.mag-hero { background: radial-gradient(120% 120% at 80% 0%, #18222b 0%, var(--ink) 60%); color: #fff; padding: 56px 0; }
.mag-hero-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.mag-cover {
  position: relative; aspect-ratio: 1 / 1.414; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #0c1116;
}
.mag-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92; z-index: 0; }
.mag-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,17,22,0.75) 0%, rgba(12,17,22,0.15) 38%, rgba(12,17,22,0.85) 100%); }
.mag-cover .mc-top, .mag-cover .mc-bottom { position: relative; z-index: 2; padding: 22px; }
.mag-cover .mc-logo { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; }
.mag-cover .mc-logo b { color: var(--green); }
.mag-cover .mc-strap { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); margin-top: 4px; }
.mag-cover .mc-headline { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; }
.mag-cover .mc-issue { font-size: 0.78rem; color: #cdd5db; margin-top: 8px; letter-spacing: 0.04em; }
.mag-cover .mc-flag { position: absolute; top: 22px; right: 22px; z-index: 3; background: var(--green); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }

.mag-intro .kicker { color: var(--lime); }
.mag-intro .kicker::before { background: var(--lime); }
.mag-intro h1 { font-size: 2.8rem; margin: 14px 0 16px; }
.mag-intro p { color: #c4ccd3; font-size: 1.08rem; max-width: 56ch; }
.mag-figs { display: flex; gap: 40px; margin: 28px 0; }
.mag-figs .f .n { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--green); }
.mag-figs .f .l { font-size: 0.82rem; color: #aeb8c0; letter-spacing: 0.04em; }
.mag-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Flipbook reader */
.flipbook { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.flipbook .frame { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #11181f, #1f2b35); border-radius: 10px; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.flipbook .frame .play { width: 76px; height: 76px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,213,99,0.4); cursor: pointer; transition: var(--t); }
.flipbook .frame .play:hover { transform: scale(1.08); }
.flipbook .frame .lbl { position: absolute; bottom: 18px; font-size: 0.85rem; color: #aeb8c0; }

/* Inside this issue */
.issue-row { display: grid; grid-template-columns: 92px 130px 1fr auto; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); transition: var(--t); }
.issue-row:hover { background: var(--paper-2); padding-left: 12px; padding-right: 12px; border-radius: 10px; }
.issue-row:last-child { border-bottom: none; }
.issue-row .pg { font-family: var(--display); }
.issue-row .pg span { display: block; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.issue-row .pg b { font-size: 1.8rem; color: var(--ink); }
.issue-row .thumb { aspect-ratio: 16/11; border-radius: 8px; overflow: hidden; }
.issue-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.issue-row .type { font-family: var(--display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); }
.issue-row h3 { font-size: 1.15rem; margin: 5px 0; line-height: 1.25; }
.issue-row:hover h3 { color: var(--green-deep); }
.issue-row .meta { font-size: 0.8rem; color: var(--mute); }
.issue-row .arrow { color: var(--mute); }
@media (max-width: 760px) { .issue-row { grid-template-columns: 64px 1fr; } .issue-row .thumb, .issue-row .arrow { display: none; } }

/* Back issues */
.backissue { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); transition: var(--t); }
.backissue:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.backissue .cv { aspect-ratio: 1 / 1.414; position: relative; overflow: hidden; background: var(--ink); }
.backissue .cv img { width: 100%; height: 100%; object-fit: cover; }
.backissue .bi-body { padding: 14px 16px; }
.backissue .bi-body b { font-family: var(--display); display: block; }
.backissue .bi-body span { font-size: 0.8rem; color: var(--mute); }

/* ==========================================================================
   Single review — verdict, pros/cons, fact file, rivals
   ========================================================================== */
.review-verdict {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px 34px; margin: 8px 0 34px;
}
.score-badge { text-align: center; }
.score-badge .ring {
  width: 116px; height: 116px; border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--score) * 1%), #2a3742 0);
  display: grid; place-items: center;
}
.score-badge .ring .inner { width: 92px; height: 92px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex-direction: column; }
.score-badge .ring .inner b { font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.score-badge .ring .inner small { font-size: 0.72rem; color: var(--mute); }
.review-verdict .v-body .kicker { color: var(--lime); }
.review-verdict .v-body .kicker::before { background: var(--lime); }
.review-verdict .v-body h3 { font-size: 1.3rem; margin: 8px 0 6px; }
.review-verdict .v-body p { color: #c4ccd3; font-size: 0.96rem; }
.review-verdict .v-stars { color: var(--green); font-size: 1.1rem; margin-top: 8px; letter-spacing: 2px; }
.review-verdict .v-stars .dim { color: #3a4750; }

/* Pros / cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
.pc-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; background: var(--paper); }
.pc-box h4 { font-family: var(--display); font-size: 0.95rem; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.pc-box.pros h4 { color: var(--green-deep); }
.pc-box.cons h4 { color: #d93838; }
.pc-box ul { display: flex; flex-direction: column; gap: 10px; }
.pc-box li { position: relative; padding-left: 26px; font-size: 0.94rem; line-height: 1.45; color: #2b333b; }
.pc-box.pros li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-deep); font-weight: 700; }
.pc-box.cons li::before { content: "✕"; position: absolute; left: 0; top: 0; color: #d93838; font-weight: 700; }
@media (max-width: 620px) { .proscons { grid-template-columns: 1fr; } }

/* Fact file / spec box-out */
.factfile { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 30px 0; }
.factfile .ff-head { background: var(--paper-3); padding: 14px 22px; display: flex; align-items: center; gap: 10px; }
.factfile .ff-head .kicker { margin: 0; }
.factfile .ff-head b { font-family: var(--display); font-size: 1.05rem; margin-left: auto; }
.factfile dl { display: grid; grid-template-columns: 1fr 1fr; }
.factfile dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 22px; border-top: 1px solid var(--line); }
.factfile dl > div:nth-child(odd) { border-right: 1px solid var(--line); }
.factfile dt { color: var(--slate); font-size: 0.9rem; }
.factfile dd { font-family: var(--display); font-weight: 600; font-size: 0.92rem; text-align: right; }
@media (max-width: 620px) { .factfile dl { grid-template-columns: 1fr; } .factfile dl > div:nth-child(odd) { border-right: none; } }

/* Rivals box-out */
.rivals { background: var(--paper-2); border-radius: var(--radius); padding: 26px; margin: 34px 0; }
.rivals > .kicker { margin-bottom: 4px; }
.rivals h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 18px; }
.rival-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rival { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: var(--t); }
.rival:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.rival .rv-img { aspect-ratio: 16/10; overflow: hidden; }
.rival .rv-img img { width: 100%; height: 100%; object-fit: cover; }
.rival .rv-body { padding: 13px 15px; }
.rival .rv-body b { font-family: var(--display); display: block; font-size: 1rem; }
.rival .rv-body p { font-size: 0.84rem; color: var(--slate); margin-top: 4px; line-height: 1.4; }
.rival .rv-body .rv-stars { color: var(--green); font-size: 0.82rem; margin-top: 6px; }
@media (max-width: 760px) { .rival-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Watch & Listen / media
   ========================================================================== */
.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0c1116; box-shadow: var(--shadow); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-tall { aspect-ratio: auto; min-height: 480px; }
.embed-tall iframe { position: static; height: 480px; }

/* Platform buttons row */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platform {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); font-family: var(--display); font-weight: 600; font-size: 0.88rem;
  transition: var(--t);
}
.platform:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.platform .ico { width: 20px; height: 20px; display: grid; place-items: center; }
.platform.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.platform.dark:hover { background: var(--ink-2); }

/* Channel banner (YouTube) */
.channel-banner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 26px;
}
.channel-banner .yt-mark { width: 56px; height: 40px; border-radius: 10px; background: #ff0000; display: grid; place-items: center; flex-shrink: 0; }
.channel-banner .yt-mark svg { width: 26px; height: 26px; }
.channel-banner .cb-text b { font-family: var(--display); font-size: 1.15rem; display: block; }
.channel-banner .cb-text span { color: #aeb8c0; font-size: 0.88rem; }
@media (max-width: 620px) { .channel-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* Video card play overlay */
.card .ph .play-badge {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: rgba(12,17,22,0.18); transition: var(--t);
}
.card:hover .ph .play-badge { background: rgba(12,17,22,0.34); }
.card .ph .play-badge .pb {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: grid; place-items: center; transition: var(--t);
}
.card:hover .ph .play-badge .pb { transform: scale(1.12); background: var(--green); }
.card .ph .duration {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  background: rgba(12,17,22,0.85); color: #fff; font-size: 0.74rem; font-weight: 600;
  padding: 3px 8px; border-radius: 5px;
}

/* Podcast episode row */
.ep-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ep-row:last-child { border-bottom: none; }
.ep-row .ep-num { width: 44px; height: 44px; border-radius: 10px; background: var(--paper-3); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--green-deep); }
.ep-row h3 { font-size: 1.02rem; line-height: 1.3; }
.ep-row:hover h3 { color: var(--green-deep); }
.ep-row .ep-meta { font-size: 0.8rem; color: var(--mute); margin-top: 3px; }
.ep-row .ep-play { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--green-deep); transition: var(--t); }
.ep-row .ep-play:hover { background: var(--green); color: var(--ink); border-color: var(--green); }

/* Homepage media strip */
.media-strip { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: stretch; }
.media-strip .ms-pod { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.media-strip .ms-pod .kicker { color: var(--lime); }
.media-strip .ms-pod .kicker::before { background: var(--lime); }
.media-strip .ms-pod h3 { font-size: 1.4rem; margin: 12px 0 6px; }
.media-strip .ms-pod p { color: #aeb8c0; font-size: 0.92rem; }
/* Platform pills sit on the dark podcast card — translucent bg + white text. */
.media-strip .ms-pod .platform { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.media-strip .ms-pod .platform:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.32); }
@media (max-width: 980px) { .media-strip { grid-template-columns: 1fr; } }

/* ==========================================================================
   Buying guides (Used EVs)
   ========================================================================== */
/* Guide card = card + pages badge + read link footer */
.guide .ph .pages-badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(255,255,255,0.94); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 0.7rem;
  padding: 5px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px;
}
.guide .ph .pages-badge svg { width: 13px; height: 13px; }
.guide .guide-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.guide .guide-foot .rd { font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--green-deep); display: inline-flex; align-items: center; gap: 6px; transition: gap var(--t); }
.guide:hover .guide-foot .rd { gap: 11px; }
.guide .guide-foot .mins { font-size: 0.78rem; color: var(--mute); }

/* Featured guide band */
.guide-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.guide-feature .gf-img { position: relative; min-height: 360px; }
.guide-feature .gf-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-feature .gf-img .pages-badge { position: absolute; bottom: 16px; left: 16px; background: var(--green); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 0.74rem; padding: 6px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; }
.guide-feature .gf-img .pages-badge svg { width: 14px; height: 14px; }
.guide-feature .gf-body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.guide-feature .gf-body .kicker { color: var(--lime); }
.guide-feature .gf-body .kicker::before { background: var(--lime); }
.guide-feature .gf-body h2 { font-size: 2rem; margin: 14px 0 12px; }
.guide-feature .gf-body p { color: #c4ccd3; font-size: 1rem; }
.guide-feature .gf-body .gf-cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 980px) { .guide-feature { grid-template-columns: 1fr; } .guide-feature .gf-img { min-height: 240px; } }

/* Filter chip row (reused) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 15px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); font-family: var(--display); font-weight: 600; font-size: 0.82rem; color: var(--ink-2); cursor: pointer; transition: var(--t); }
.chip:hover { border-color: var(--green); color: var(--green-deep); }
.chip.active { background: var(--green); border-color: var(--green); color: var(--ink); }

/* ==========================================================================
   Image carousel / gallery  (reusable — see carousel.js)
   ========================================================================== */
.carousel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #0c1116; box-shadow: var(--shadow); margin: 30px 0;
  --cap-h: 0px;
}
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
.carousel-slide { position: relative; min-width: 100%; aspect-ratio: 16 / 9; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 22px 16px; color: #fff; font-size: 0.88rem;
  background: linear-gradient(180deg, rgba(12,17,22,0) 0%, rgba(12,17,22,0.82) 100%);
}
.carousel-slide figcaption b { font-family: var(--display); }

/* Arrows */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.92); color: var(--ink); display: grid; place-items: center;
  transition: var(--t); box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.carousel-btn:hover { background: var(--green); transform: translateY(-50%) scale(1.08); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn[disabled] { opacity: 0.35; cursor: default; }
.carousel-btn[disabled]:hover { background: rgba(255,255,255,0.92); transform: translateY(-50%); }

/* Counter */
.carousel-count {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  background: rgba(12,17,22,0.78); color: #fff; font-family: var(--display);
  font-weight: 600; font-size: 0.78rem; padding: 5px 11px; border-radius: 20px;
}

/* Dots */
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 4; display: flex; justify-content: center; gap: 7px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,0.5); padding: 0; transition: var(--t); }
.carousel-dots button.active { background: var(--green); width: 22px; border-radius: 4px; }

/* Thumbnail strip variant: add class "carousel--thumbs" */
.carousel--thumbs .carousel-dots { position: static; background: var(--ink-2); padding: 10px; gap: 8px; }
.carousel--thumbs .carousel-dots button { width: 56px; height: 38px; border-radius: 6px; background-size: cover; background-position: center; opacity: 0.55; }
.carousel--thumbs .carousel-dots button.active { width: 56px; opacity: 1; outline: 2px solid var(--green); }

@media (max-width: 620px) {
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-slide figcaption { font-size: 0.8rem; }
}

/* ==========================================================================
   Advertising slots (IAB standard sizes)
   --------------------------------------------------------------------------
   Markup:
   <div class="ad-strip">
     <div class="wrap">
       <div class="ad ad-leaderboard">
         <span class="ad-label">Advertisement</span>
         <div class="ad-slot">Leaderboard<span class="sz">728 × 90</span></div>
       </div>
     </div>
   </div>
   Size classes: ad-leaderboard 728×90 · ad-billboard 970×250 · ad-mpu 300×250
                 ad-halfpage 300×600 · ad-mobile 320×100
   Drop a real ad tag / <img> / <iframe> inside .ad-slot to go live.
   ========================================================================== */
.ad-strip { padding: 24px 0; }
.ad-strip--band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ad-label { font-family: var(--display); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.ad-slot {
  width: 100%; max-width: 100%; overflow: hidden;
  background: var(--paper-3);
  border: 1px dashed #c0c9cf; border-radius: 8px;
  display: grid; place-items: center; align-content: center; gap: 2px;
  color: var(--slate); font-family: var(--display); font-weight: 600; font-size: 0.82rem; text-align: center;
  background-image: linear-gradient(135deg, rgba(12,17,22,0.018) 25%, transparent 25%, transparent 50%, rgba(12,17,22,0.018) 50%, rgba(12,17,22,0.018) 75%, transparent 75%, transparent);
  background-size: 16px 16px;
}
.ad-slot .sz { font-family: var(--body); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.04em; color: var(--mute); }
.ad-slot img, .ad-slot iframe { width: 100%; height: 100%; border: 0; object-fit: contain; }

/* Standard sizes */
.ad-leaderboard .ad-slot { width: 728px; height: 90px; }
.ad-billboard   .ad-slot { width: 970px; height: 250px; }
.ad-mpu         .ad-slot { width: 300px; height: 250px; }
.ad-halfpage    .ad-slot { width: 300px; height: 600px; }
.ad-mobile      .ad-slot { width: 320px; height: 100px; }

/* In-article unit (sits inside narrow body, centred with breathing room) */
.ad-inarticle { margin: 30px auto; }

/* Sidebar sticky unit */
.ad-sticky { position: sticky; top: 96px; }

/* Responsive: collapse big banners to a mobile banner on small screens */
@media (max-width: 780px) {
  .ad-leaderboard .ad-slot,
  .ad-billboard .ad-slot { width: 320px; height: 100px; }
}

/* ---- Mobile menu drawer ---- */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(12,17,22,0.5); opacity: 0; transition: opacity var(--t); }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: 300px; max-width: 84vw; background: var(--paper); transform: translateX(100%); transition: transform var(--t); padding: 24px; overflow-y: auto; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel .close { margin-left: auto; display: block; }
.drawer-panel ul { margin-top: 20px; }
.drawer-panel li a { display: block; padding: 14px 0; font-family: var(--display); font-weight: 600; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
.drawer-panel li a:hover { color: var(--green-deep); }
/* Drawer menu must stay visible even if the menu carries the desktop-nav .menu class (hidden on mobile). */
.drawer-panel ul, .drawer-panel .menu { display: block !important; }
/* Drawer scrolls internally; lock the page behind it (and the search overlay). */
.drawer-panel { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html.evp-scroll-lock, html.evp-scroll-lock body { overflow: hidden !important; height: 100%; }
/* Size the panel to the *visible* viewport (handles mobile browser chrome) so the
   last item (Subscribe) is always reachable, with breathing room at the bottom. */
.drawer-panel { height: 100vh; height: 100dvh; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
/* Drawer sub-items: indented, lighter (not a desktop dropdown) */
.drawer-panel .sub-menu { position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; box-shadow: none; border: 0; background: none; padding: 0 0 0 16px; min-width: 0; }
.drawer-panel .sub-menu li a { font-size: 0.98rem; opacity: 0.8; padding: 11px 0; }
.drawer-panel .brand-logo { height: 26px; }

/* ==========================================================================
   MOBILE REFINEMENTS (Android + iOS) — appended last so these win
   ========================================================================== */

/* Never allow sideways scrolling on phones */
html, body { max-width: 100%; overflow-x: hidden; }
/* Honour iOS notches / safe areas */
.wrap { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }

/* Section headers (with filter chips / "more" links) wrap cleanly */
@media (max-width: 880px) {
  .section-head { flex-wrap: wrap; }
}

/* ---- Phones (≤640px) ---- */
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .section { padding: 32px 0; }

  /* Header: shorter bar, smaller logo so it fits ~360px screens; bigger tap targets */
  .nav { height: 60px; }
  .brand-logo { height: 25px; }
  .icon-btn { width: 44px; height: 44px; }

  /* Utility bar: keep the date, drop the row of text socials (they live in the footer) */
  .utility .wrap { justify-content: center; }
  .utility .date { display: inline; }
  .utility .socials { display: none; }

  /* Ticker tightened */
  .ticker .wrap { gap: 12px; }

  /* Headings scale down */
  .page-hero { padding: 32px 0; }
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero p { font-size: 0.95rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head h2 { font-size: 1.5rem; }

  /* Hero / lead / feature spotlight — inline font-sizes need !important to override */
  .lead { min-height: 400px; }
  .lead-body { padding: 22px; }
  .lead-body h1,
  .feature-split .fs-body h2 { font-size: 1.55rem !important; }
  .lead-meta { flex-wrap: wrap; gap: 6px 10px; }

  /* Roomy desktop paddings trimmed */
  .feature-split .fs-body { padding: 28px 22px; }
  .guide-feature .gf-body { padding: 28px 22px; }
  .newsletter { padding: 30px 22px; }
  .newsletter h2 { font-size: 1.6rem; }

  /* Cards: slightly shorter images, comfortable type */
  .card .ph { aspect-ratio: 16 / 9; }
  .card-body h3 { font-size: 1.08rem; }
  .side-card { grid-template-columns: 96px 1fr; }
  .side-card h3 { font-size: 0.95rem; }

  /* Stats band */
  .stat .n { font-size: 2.1rem; }

  /* Magazine */
  .mag-hero { padding: 34px 0; }
  .mag-intro h1 { font-size: 2rem; }
  .mag-figs { gap: 22px; flex-wrap: wrap; }
  .mag-cover .mc-headline { font-size: 1.4rem; }

  /* Watch & Listen embeds */
  .embed-tall, .embed-tall iframe { min-height: 420px; height: 420px; }

  /* Article body */
  .article-wrap { padding: 30px 18px 0; }
  .article-wrap h1 { font-size: 1.7rem; }
  .article-byline { font-size: 0.84rem; }
  .article-body { padding: 0 18px 30px; font-size: 1.04rem; }
  .article-body h2 { font-size: 1.4rem; }
  .article-body blockquote { font-size: 1.14rem; padding-left: 16px; }

  /* In-article MPU centred */
  .ad-inarticle { margin: 24px auto; }

  /* Carousel: drop the counter chip to cut clutter (dots + swipe remain) */
  .carousel-count { display: none; }
  .carousel-slide figcaption { padding: 24px 16px 14px; }
}

/* ---- Small phones (≤400px) ---- */
@media (max-width: 400px) {
  .brand-logo { height: 22px; }
  .lead-body h1,
  .feature-split .fs-body h2 { font-size: 1.4rem !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { padding: 11px 16px; }
}

/* =================================================================
   WORDPRESS INTEGRATION — styles for dynamic/WP-only markup the static
   mockups didn't include. Appended to the client design system; uses the
   same design tokens (--green, --ink, --line, --spark, etc.).
   ================================================================= */

/* Accessibility */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* Sticky header shadow (added by main.js on scroll) */
.site-header.scrolled { box-shadow: var(--shadow, 0 4px 20px rgba(0,0,0,.08)); }

/* Featured-image fallback for posts with no thumbnail */
.ph, .thumb, .fs-img, .gf-img, .rv-img, .cv, .article-hero-img, .mag-cover { position: relative; }
.thumb-fallback { position: absolute; inset: 0; display: block; background: var(--spark, linear-gradient(120deg,#dedc00,#6aa314,#27862b)); }
.thumb-fallback::after { content: "EV"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: rgba(255,255,255,.85); }

/* the_content extras (WordPress core output) */
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm, 6px); }
.article-body figure { margin: 24px 0; }
.article-body figcaption, .image-caption, .wp-caption .wp-caption-text { font-size: .85rem; color: var(--mute); margin-top: 8px; }
.article-body .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
.article-body .alignright { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
.article-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.article-body .alignwide { margin-left: calc(50% - 47vw); margin-right: calc(50% - 47vw); max-width: 94vw; }
.article-body .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption { max-width: 100%; }
.page-links { margin: 24px 0; font-weight: 600; display: flex; gap: 8px; }
.back-to-issue { margin-top: 32px; font-weight: 600; }
.guide-pdf { margin: 28px 0; }

/* Pagination */
.pagination { margin: 48px 0 0; display: flex; justify-content: center; }
.pagination .page-numbers { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.pagination .page-numbers a, .pagination .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.pagination .page-numbers .current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .page-numbers a:hover { border-color: var(--green); color: var(--green); }

.no-results { color: var(--slate); font-size: 1.05rem; padding: 24px 0; }
.page-hero-desc { color: var(--slate); max-width: 680px; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(12,17,22,.92); backdrop-filter: blur(6px); z-index: 1500; display: none; align-items: center; justify-content: center; padding: 24px; }
.search-overlay.open { display: flex; }
.search-overlay__inner { width: min(640px, 100%); position: relative; }
.search-overlay .close { position: fixed; top: 18px; right: 18px; width: 46px; height: 46px; padding: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); border: 0; border-radius: 50%; color: #fff; cursor: pointer; }
.search-overlay .close:hover { background: rgba(255,255,255,.26); color: #fff; }
.search-overlay .close svg { width: 24px; height: 24px; }
/* Base search form (also used on the search results page) */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 200px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 1.05rem; }
/* Overlay-specific form styling */
.search-overlay .search-form { flex-wrap: nowrap; gap: 10px; }
.search-overlay .search-field { border: 0; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.search-overlay .search-field:focus { outline: 3px solid var(--green); outline-offset: 2px; }
.search-overlay .search-submit { white-space: nowrap; }

/* Author bio */
.author-bio { max-width: var(--wrap, 1180px); margin: 40px auto; padding: 0 20px; display: flex; gap: 20px; align-items: flex-start; }
.author-bio .ab-img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.author-bio .ab-name a { color: var(--ink); text-decoration: none; }
.author-bio .ab-role { display: block; color: var(--green-deep); font-size: .85rem; font-weight: 600; margin: 2px 0 8px; }
.author-bio .ab-link { font-weight: 600; color: var(--green); }

/* Guide meta strip + FAQ accordion */
.guide-meta-strip { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 14px 0 0; font-size: .9rem; color: var(--slate); }
.updated-pill { background: var(--green); color: #fff; border-radius: 999px; padding: 3px 12px; font-weight: 600; font-size: .8rem; }
.faq-list { margin: 18px 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; font-family: var(--display); }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary .icon { transition: transform .2s; color: var(--green); }
.faq-item[open] .faq-summary .icon { transform: rotate(45deg); }
.faq-body { padding: 0 0 16px; color: var(--slate); }

/* "Feature" SEO block — sold content, kept on the homepage for SEO but de-emphasised */
.feature-seo { border-top: 1px solid var(--line); background: var(--paper-2, #f6f6f4); }
.feature-seo .wrap { padding: 16px 20px; }
.feature-seo__title { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); margin: 0 0 8px; }
.feature-seo__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; }
.feature-seo__list a { color: var(--mute); font-size: .82rem; text-decoration: none; }
.feature-seo__list a:hover { color: var(--slate); text-decoration: underline; }
.feature-seo__more { display: inline-block; margin-top: 8px; font-size: .8rem; color: var(--mute); }

/* Mobile drawer subscribe button */
.drawer-subscribe { display: block; margin-top: 16px; background: var(--green); color: #fff; text-align: center; padding: 12px; border-radius: 10px; font-weight: 600; }

/* Inline newsletter message error state */
.nl-note.is-error, .nl-msg.is-error { color: #c0392b; }
.comments-wrap { max-width: 760px; margin: 40px auto; padding: 0 20px; }
/* Comments — native fallback styling (Disqus replaces this region when active) */
.comments-title, .comment-reply-title { font-family: var(--display); font-size: 1.4rem; margin: 0 0 14px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .comment { border-top: 1px solid var(--line); padding: 18px 0; }
.comment-list .children { list-style: none; margin: 0 0 0 24px; padding: 0; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-metadata, .comment-meta { font-size: .82rem; color: var(--mute); }
.comment-respond { margin-top: 8px; }
.comment-notes, .logged-in-as { color: var(--slate); font-size: .9rem; margin: 0 0 16px; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; box-sizing: border-box;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; color: var(--slate); }
.comment-form-cookies-consent input { width: auto; margin-top: 3px; }
.comment-form .form-submit { margin: 0; }
.comment-form input#submit, .comment-form .submit {
  background: var(--green); color: var(--ink); border: 0; border-radius: 999px;
  padding: 12px 28px; font-weight: 700; font-family: var(--display); cursor: pointer;
}
.comment-form input#submit:hover { box-shadow: 0 8px 22px rgba(0,213,99,.3); transform: translateY(-1px); }

/* BlogKit (Custom Newsletter Kit) ad styling — matched to the EVP design.
   Scoped under .article-body so it wins over the plugin's default blue. */
.blogkit-ad { margin: 28px 0; }
.blogkit-ad__label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); text-align: center; margin-bottom: 6px; }
.article-body .blogkit-ad--text { background: var(--spark, linear-gradient(120deg,#dedc00,#6aa314,#27862b)); border-radius: var(--radius, 12px); padding: 22px 24px; text-align: center; }
.article-body .blogkit-ad--text .blogkit-ad__text { margin: 0; font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.article-body .blogkit-ad--text .blogkit-ad__text a { color: var(--ink); text-decoration: none; }
.article-body .blogkit-ad--text .blogkit-ad__text a::after { content: " →"; }
.blogkit-ad--image img { display: block; margin: 0 auto; height: auto; max-width: 100%; border-radius: var(--radius-sm, 6px); }
.blogkit-ad__code, .blogkit-ad-zone { text-align: center; }
.blogkit-ad-placeholder { border: 1px dashed var(--line); border-radius: 10px; padding: 18px; color: var(--mute); font-size: .85rem; text-align: center; }
.blogkit-ad-placeholder__link { display: inline-block; margin: 6px 0; color: var(--green); font-weight: 600; }

/* Issuu flipbook embed (magazine / guides) */
.flipbook iframe { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: var(--radius, 12px); }

/* Responsive polish for the WordPress-only pieces (phones) */
@media (max-width: 640px) {
	.author-bio { flex-direction: column; gap: 14px; }
	.search-overlay { align-items: flex-start; padding: 16vh 16px 16px; }
	.search-overlay .search-form { flex-direction: column; }
	.search-overlay .search-submit { width: 100%; justify-content: center; }
	.feature-seo__list { gap: 4px 14px; }
	.guide-meta-strip { font-size: .82rem; }
	.pagination .page-numbers a, .pagination .page-numbers span { min-width: 38px; height: 38px; }
}
img, iframe, .embed, .flipbook { max-width: 100%; }
* { -webkit-text-size-adjust: 100%; } /* stop iOS auto-zooming text */

/* Autoload-next-post separator + appended items */
.evp-autoload-sep { display: flex; align-items: center; gap: 14px; max-width: var(--wrap, 1180px); margin: 52px auto 6px; padding: 0 24px; color: var(--mute); font-family: var(--display); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.evp-autoload-sep::before, .evp-autoload-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#evp-autoload-sentinel { height: 1px; width: 100%; }


/* ==========================================================================
   CLIENT TWEAKS 2026-07 — ads without the grey box, centred in-article ads
   ========================================================================== */

/* Keep the .ad-strip--band grey band; remove the darker grey behind the ad
   unit itself (was a placeholder aesthetic). */
.ad-slot { background: none; border: none; background-image: none; }

/* Centre the in-article ad (code-type banners render a block img). */
.blogkit-ad__code img, .blogkit-ad--image img { display: block; margin-left: auto; margin-right: auto; }
.blogkit-ad__code > * { margin-left: auto; margin-right: auto; }
.blogkit-ad__code { display: flow-root; }

/* Feature block: single-post line with a muted date. */
.feature-seo__date { color: var(--mute); font-size: 0.78rem; margin-left: 8px; }

/* Inline sold-"Feature" card under Motorsport — same style as the rest but rendered
   distinctly SMALLER, so the column reads as 3 motorsport + one minor extra, not 4
   (client 2026-07: "look like all the rest but in a really small way"). */
.feature-inline { margin-top: 4px; }
.feature-inline .list-card { border-bottom: none; grid-template-columns: 76px 1fr; gap: 12px; padding: 6px 0; align-items: center; }
.feature-inline .list-card .thumb { border-radius: 6px; }
.feature-inline .list-card .cat { font-size: 0.56rem; }
.feature-inline .list-card h3 { font-size: 0.8rem; line-height: 1.2; margin: 2px 0 3px; }
.feature-inline .list-card .date { font-size: 0.68rem; }
.feature-inline__more { display: inline-block; margin: 2px 0 0; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.feature-inline__more:hover { color: var(--slate); text-decoration: underline; }
