/* =========================================================================
   EVs Mirror Editorial - homepage component library
   Scoped under .evh so it cannot collide with the sitewide .evs-page system.
   Design contract: saved DESIGN.md "evs-mirror-editorial".
   ========================================================================= */

:root{
  --e-bg:#FBFAF8;
  --e-surface:#FFFFFF;
  --e-ink:#14181D;
  --e-accent:#0B4FD9;
  --e-accent-soft:#EAF0FE;
  --e-accent2:#C2410C;
  --e-muted:#5B6672;
  --e-line:#E3E1DC;
  --e-dark:#101418;
  --e-dark-ink:#F4F5F6;

  --e-r-sm:6px; --e-r-md:10px; --e-r-lg:16px;

  --e-xs:8px; --e-sm:16px; --e-md:28px; --e-lg:56px; --e-xl:96px;

  --e-head:'Clash Grotesk','Helvetica Neue',Arial,sans-serif;
  --e-body:'General Sans','Helvetica Neue',Arial,sans-serif;

  --e-shadow:0 6px 22px -10px rgba(20,24,29,.20);
  --e-shadow-sm:0 2px 8px -4px rgba(20,24,29,.16);
}

/* ---------- Base ---------- */
.evh{
  background:var(--e-bg);
  color:var(--e-ink);
  font-family:var(--e-body);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
.evh *{ box-sizing:border-box; }
.evh h1,.evh h2,.evh h3,.evh h4{
  font-family:var(--e-head);
  font-weight:600;
  color:var(--e-ink);
  margin:0;
  letter-spacing:-.015em;
}
.evh h1{ font-size:clamp(34px,4.6vw,54px); line-height:1.06; }
.evh h2{ font-size:clamp(24px,2.9vw,34px); line-height:1.1; }
.evh h3{ font-size:19px; line-height:1.22; }
.evh h4{ font-size:16px; line-height:1.28; }
.evh p{ margin:0; color:var(--e-muted); }
.evh a{ color:inherit; text-decoration:none; }
.evh img{ max-width:100%; display:block; }
.evh ul{ margin:0; padding:0; list-style:none; }

.evh-wrap{ max-width:1240px; margin:0 auto; padding:0 20px; }
@media(min-width:768px){ .evh-wrap{ padding:0 32px; } }

.evh-section{ padding:var(--e-lg) 0; }
@media(min-width:900px){ .evh-section{ padding:var(--e-xl) 0; } }
.evh-section-tight{ padding:var(--e-md) 0 var(--e-lg); }

.evh-rule{ border:0; border-top:1px solid var(--e-line); margin:0; }

/* ---------- Section headers ---------- */
.evh-shead{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:16px; flex-wrap:wrap; margin-bottom:var(--e-md);
  padding-bottom:14px; border-bottom:2px solid var(--e-ink);
}
.evh-shead h2{ font-size:clamp(21px,2.4vw,28px); }
.evh-shead-note{ font-size:14px; color:var(--e-muted); }
.evh-more{
  font-size:14px; font-weight:500; color:var(--e-accent);
  border-bottom:1px solid transparent; transition:border-color .2s ease;
}
.evh-more:hover{ border-bottom-color:var(--e-accent); }

.evh-eyebrow{
  display:inline-block; font-family:var(--e-body); font-size:12px; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase; color:var(--e-accent);
}

/* ---------- Buttons ---------- */
.evh-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--e-body); font-weight:500; font-size:15px;
  padding:13px 24px; border-radius:var(--e-r-md);
  border:1px solid transparent; cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.evh-btn-primary{ background:var(--e-accent); color:#fff; }
.evh-btn-primary:hover{ transform:translateY(-2px); box-shadow:var(--e-shadow); background:#0942B8; }
.evh-btn-outline{ background:transparent; border-color:var(--e-ink); color:var(--e-ink); }
.evh-btn-outline:hover{ transform:translateY(-2px); box-shadow:var(--e-shadow-sm); }
.evh-btn-light{ background:#fff; color:var(--e-ink); }
.evh-btn-light:hover{ transform:translateY(-2px); }
.evh-btn-sm{ padding:9px 16px; font-size:14px; }
.evh-btn-block{ width:100%; }

/* ---------- Badges / labels ---------- */
.evh-cat{
  display:inline-block; font-size:11.5px; font-weight:600; letter-spacing:.07em;
  text-transform:uppercase; color:var(--e-accent);
}
.evh-badge{
  display:inline-block; font-size:12px; font-weight:600;
  padding:4px 10px; border-radius:var(--e-r-sm);
  background:var(--e-accent-soft); color:var(--e-accent);
}
.evh-badge-com{ background:#FDF0E8; color:var(--e-accent2); }
.evh-meta{ font-size:13px; color:var(--e-muted); }

/* =========================================================================
   HERO - asymmetric lead split
   ========================================================================= */
.evh-hero{ padding:36px 0 var(--e-lg); }
.evh-hero-top{ max-width:60ch; margin-bottom:var(--e-md); }
.evh-hero-top h1{ margin-top:10px; }
.evh-hero-top p{ margin-top:14px; font-size:18px; max-width:56ch; }

.evh-search{ display:flex; gap:10px; margin-top:22px; max-width:520px; }
.evh-search input[type=search]{
  flex:1; font-family:var(--e-body); font-size:15px; color:var(--e-ink);
  padding:13px 16px; border:1px solid var(--e-line); border-radius:var(--e-r-md);
  background:var(--e-surface);
}
.evh-search input[type=search]::placeholder{ color:var(--e-muted); opacity:1; }
.evh-search input[type=search]:focus{
  outline:2px solid var(--e-accent); outline-offset:1px; border-color:var(--e-accent);
}

.evh-lead{ display:grid; gap:28px; grid-template-columns:1fr; }
@media(min-width:900px){ .evh-lead{ grid-template-columns:1.55fr 1fr; gap:40px; } }

.evh-lead-main{ display:block; }
.evh-lead-media{
  position:relative; aspect-ratio:16/9; overflow:hidden;
  border-radius:var(--e-r-lg); background:var(--e-accent-soft);
}
.evh-lead-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.evh-lead-main:hover .evh-lead-media img{ transform:scale(1.03); }
.evh-lead-body{ margin-top:18px; }
.evh-lead-body h2{ font-size:clamp(24px,3.1vw,36px); margin-top:8px; line-height:1.08; }
.evh-lead-body p{ margin-top:12px; font-size:16.5px; max-width:60ch; }
.evh-lead-byline{ margin-top:14px; display:flex; align-items:center; gap:10px; }

.evh-lead-side{ display:flex; flex-direction:column; }
.evh-side-item{
  display:grid; grid-template-columns:88px 1fr; gap:14px;
  padding:18px 0; border-top:1px solid var(--e-line); align-items:start;
}
.evh-side-item:first-child{ border-top:0; padding-top:0; }
@media(min-width:900px){ .evh-side-item:first-child{ padding-top:4px; } }
.evh-side-thumb{
  aspect-ratio:1/1; overflow:hidden; border-radius:var(--e-r-md);
  background:var(--e-accent-soft);
}
.evh-side-thumb img{ width:100%; height:100%; object-fit:cover; }
.evh-side-item h3{ font-size:16px; margin-top:6px; }
.evh-side-item:hover h3{ color:var(--e-accent); }

/* ---------- Trust strip ---------- */
.evh-trust{
  display:grid; gap:0; grid-template-columns:1fr;
  border-top:1px solid var(--e-line); border-bottom:1px solid var(--e-line);
}
@media(min-width:640px){ .evh-trust{ grid-template-columns:repeat(4,1fr); } }
.evh-trust-item{ padding:22px 20px; }
@media(min-width:640px){ .evh-trust-item + .evh-trust-item{ border-left:1px solid var(--e-line); } }
@media(max-width:639px){ .evh-trust-item + .evh-trust-item{ border-top:1px solid var(--e-line); } }
.evh-trust-num{ font-family:var(--e-head); font-weight:600; font-size:26px; line-height:1; display:block; }
.evh-trust-label{ display:block; margin-top:6px; font-size:13.5px; color:var(--e-muted); }

/* =========================================================================
   ARTICLE CARDS
   ========================================================================= */
.evh-grid{ display:grid; gap:26px; grid-template-columns:1fr; }
@media(min-width:600px){ .evh-grid-2{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:900px){
  .evh-grid-3{ grid-template-columns:repeat(3,1fr); }
  .evh-grid-4{ grid-template-columns:repeat(4,1fr); }
}

.evh-card{
  background:var(--e-surface); border:1px solid var(--e-line);
  border-radius:var(--e-r-md); overflow:hidden; display:flex; flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.evh-card:hover{ transform:translateY(-2px); box-shadow:var(--e-shadow); border-color:#D2D0CA; }
.evh-card-media{ aspect-ratio:16/10; overflow:hidden; background:var(--e-accent-soft); }
.evh-card-media img{ width:100%; height:100%; object-fit:cover; }
.evh-card-body{ padding:16px 18px 18px; display:flex; flex-direction:column; flex:1; }
.evh-card h3{ margin-top:7px; font-size:17.5px; }
.evh-card-deck{ margin-top:9px; font-size:14.5px; line-height:1.55; }
.evh-card-foot{
  margin-top:auto; padding-top:14px; font-size:13px; color:var(--e-muted);
  display:flex; align-items:center; gap:8px;
}

/* ---------- Horizontal scroll rail ---------- */
.evh-rail{
  display:grid; grid-auto-flow:column; grid-auto-columns:78%;
  gap:18px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:10px; margin:0 -20px; padding-left:20px; padding-right:20px;
  scrollbar-width:thin;
}
@media(min-width:768px){ .evh-rail{ grid-auto-columns:34%; margin:0; padding-left:0; padding-right:0; } }
@media(min-width:1100px){ .evh-rail{ grid-auto-columns:25%; } }
.evh-rail > *{ scroll-snap-align:start; }

/* ---------- Numbered ranked list ---------- */
.evh-ranked{ display:grid; gap:0; grid-template-columns:1fr; }
@media(min-width:768px){ .evh-ranked{ grid-template-columns:1fr 1fr; column-gap:44px; } }
.evh-rank{
  display:grid; grid-template-columns:44px 1fr; gap:16px; align-items:start;
  padding:18px 0; border-top:1px solid var(--e-line);
}
.evh-rank-n{
  font-family:var(--e-head); font-weight:600; font-size:22px;
  color:var(--e-accent); line-height:1.1;
}
.evh-rank h3{ font-size:16.5px; }
.evh-rank:hover h3{ color:var(--e-accent); }
.evh-rank p{ margin-top:5px; font-size:14px; }

/* =========================================================================
   CATEGORY SHOWCASE - dense tile grid
   ========================================================================= */
.evh-cats{ display:grid; gap:1px; background:var(--e-line); border:1px solid var(--e-line); border-radius:var(--e-r-md); overflow:hidden; grid-template-columns:1fr; }
@media(min-width:520px){ .evh-cats{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:860px){ .evh-cats{ grid-template-columns:repeat(4,1fr); } }
.evh-cat-tile{
  background:var(--e-surface); padding:20px 18px; display:block;
  transition:background-color .2s ease;
}
.evh-cat-tile:hover{ background:var(--e-accent-soft); }
.evh-cat-tile strong{ font-family:var(--e-head); font-weight:600; font-size:15.5px; display:block; line-height:1.25; }
.evh-cat-tile span{ display:block; margin-top:6px; font-size:13px; color:var(--e-muted); }

/* =========================================================================
   AFFILIATE / PRODUCT CARDS
   ========================================================================= */
.evh-pick{
  background:var(--e-surface); border:1px solid var(--e-line);
  border-radius:var(--e-r-md); padding:20px; display:flex; flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease;
}
.evh-pick:hover{ transform:translateY(-2px); box-shadow:var(--e-shadow); }
.evh-pick-role{ font-size:11.5px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--e-accent2); }
.evh-pick h3{ margin-top:9px; font-size:17px; }
.evh-pick p{ margin-top:9px; font-size:14.5px; flex:1; }
.evh-pick-cta{ margin-top:16px; }

.evh-disclose{
  margin-top:18px; font-size:13px; color:var(--e-muted);
  background:#FDF0E8; border-left:3px solid var(--e-accent2);
  padding:12px 16px; border-radius:0 var(--e-r-sm) var(--e-r-sm) 0;
}
.evh-disclose a{ color:var(--e-accent2); font-weight:500; text-decoration:underline; }

/* ---------- Deals strip ---------- */
.evh-deal{
  display:grid; grid-template-columns:1fr; gap:14px;
  background:var(--e-surface); border:1px solid var(--e-line);
  border-radius:var(--e-r-md); padding:20px;
}
@media(min-width:700px){ .evh-deal{ grid-template-columns:auto 1fr auto; align-items:center; gap:22px; } }
.evh-deal h3{ font-size:16.5px; }
.evh-deal p{ margin-top:5px; font-size:14px; }

/* =========================================================================
   TOOLS
   ========================================================================= */
.evh-tool{
  display:block; background:var(--e-surface); border:1px solid var(--e-line);
  border-radius:var(--e-r-md); padding:22px 20px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.evh-tool:hover{ transform:translateY(-2px); box-shadow:var(--e-shadow); border-color:var(--e-accent); }
.evh-tool-ico{
  width:38px; height:38px; border-radius:var(--e-r-sm);
  background:var(--e-accent-soft); color:var(--e-accent);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--e-head); font-weight:600; font-size:17px;
}
.evh-tool h3{ margin-top:14px; font-size:16.5px; }
.evh-tool p{ margin-top:7px; font-size:14px; }

/* =========================================================================
   BRANDS STRIP
   ========================================================================= */
.evh-brands{
  display:flex; flex-wrap:wrap; gap:10px;
}
.evh-brand{
  font-family:var(--e-head); font-weight:600; font-size:14.5px;
  color:var(--e-ink); background:var(--e-surface);
  border:1px solid var(--e-line); border-radius:var(--e-r-sm);
  padding:10px 16px; transition:border-color .2s ease, color .2s ease;
}
.evh-brand:hover{ border-color:var(--e-accent); color:var(--e-accent); }

/* =========================================================================
   NEWSLETTER - the one inverted band
   ========================================================================= */
.evh-news{ background:var(--e-dark); color:var(--e-dark-ink); }
.evh-news .evh-wrap{ padding-top:var(--e-lg); padding-bottom:var(--e-lg); }
.evh-news-grid{ display:grid; gap:28px; grid-template-columns:1fr; align-items:center; }
@media(min-width:860px){ .evh-news-grid{ grid-template-columns:1.1fr .9fr; gap:56px; } }
.evh-news h2{ color:var(--e-dark-ink); }
.evh-news p{ color:#AFB7C0; margin-top:12px; font-size:16px; max-width:52ch; }
.evh-news-form{ display:flex; flex-direction:column; gap:12px; }
@media(min-width:520px){ .evh-news-form{ flex-direction:row; } }
.evh-news-form input[type=email]{
  flex:1; font-family:var(--e-body); font-size:15px; color:var(--e-ink);
  padding:14px 16px; border:1px solid #2A3138; border-radius:var(--e-r-md); background:#fff;
}
.evh-news-form input[type=email]:focus{ outline:2px solid #fff; outline-offset:1px; }
.evh-news-fine{ margin-top:14px; font-size:13px; color:#8B939C; }
.evh-news-fine a{ color:#CBD2D9; text-decoration:underline; }

/* =========================================================================
   AUTHOR / TRUST
   ========================================================================= */
.evh-author{ display:grid; gap:28px; grid-template-columns:1fr; }
@media(min-width:860px){ .evh-author{ grid-template-columns:1fr 1fr; gap:56px; } }
.evh-author-card{
  background:var(--e-surface); border:1px solid var(--e-line);
  border-radius:var(--e-r-md); padding:26px;
}
.evh-author-head{ display:flex; align-items:center; gap:16px; }
.evh-author-avatar{
  width:60px; height:60px; border-radius:50%; overflow:hidden;
  background:var(--e-accent-soft); flex:none;
}
.evh-author-avatar img{ width:100%; height:100%; object-fit:cover; }
.evh-author-card p{ margin-top:16px; font-size:15px; }
.evh-principles li{
  padding:14px 0; border-top:1px solid var(--e-line);
  font-size:15px; color:var(--e-muted); display:grid;
  grid-template-columns:22px 1fr; gap:12px; align-items:start;
}
.evh-principles li:first-child{ border-top:0; padding-top:0; }
.evh-principles strong{ color:var(--e-ink); font-weight:600; }
.evh-check{ color:var(--e-accent); font-weight:600; }

/* =========================================================================
   FAQ - native details, works without JS
   ========================================================================= */
.evh-faq details{
  border-top:1px solid var(--e-line); padding:18px 0;
}
.evh-faq details:last-of-type{ border-bottom:1px solid var(--e-line); }
.evh-faq summary{
  font-family:var(--e-head); font-weight:600; font-size:17px;
  cursor:pointer; list-style:none; display:flex; justify-content:space-between;
  gap:16px; align-items:start; color:var(--e-ink);
}
.evh-faq summary::-webkit-details-marker{ display:none; }
.evh-faq summary::after{
  content:"+"; font-size:20px; color:var(--e-accent); flex:none; line-height:1;
}
.evh-faq details[open] summary::after{ content:"\2212"; }
.evh-faq details p{ margin-top:12px; font-size:15.5px; max-width:70ch; }
.evh-faq summary:focus-visible{ outline:2px solid var(--e-accent); outline-offset:3px; }

/* =========================================================================
   A11y + motion
   ========================================================================= */
.evh a:focus-visible,.evh button:focus-visible{
  outline:2px solid var(--e-accent); outline-offset:3px; border-radius:2px;
}
.evh-sr{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.evh-reveal{ opacity:0; transform:translateY(14px); transition:opacity .5s ease, transform .5s ease; }
.evh-reveal.is-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  .evh *,.evh *::before,.evh *::after{
    transition:none !important; animation:none !important;
  }
  .evh-card:hover,.evh-btn:hover,.evh-tool:hover,.evh-pick:hover{ transform:none !important; }
  .evh-reveal{ opacity:1 !important; transform:none !important; }
}

/* ---------- Astra container break-out: let the homepage run full width ---------- */
.evh-fullbleed .site-content > .ast-container{ max-width:100%; padding:0; display:block; }
.evh-fullbleed #primary{ margin:0; padding:0; width:100%; max-width:100%; }
.evh-fullbleed .site-content{ background:var(--e-bg); }
.evh-fullbleed .ast-container{ display:block; }

/* ---------- Footer disclosure (carried over: sitewide sheet is dequeued here) ---------- */
.evs-footer-disclosure{ font-size:13px; color:#C9D3DB; max-width:900px; margin:0 auto; text-align:center; padding:16px 20px; line-height:1.6; }
.evs-footer-disclosure a{ color:#fff; text-decoration:underline; }
.evs-legal-bar a:hover{ color:#fff; }
