/* ============================================================
   YEEDERCAR — Editorial Blog (Dark Cinematic)
   Loaded ONLY on single post pages (is_single).
   Uses its own --ed-* tokens; does NOT touch --wde-* vars.
   Scoped under .wde-editorial so it never leaks to the rest
   of the (light) site.
   ============================================================ */
.wde-editorial {
  --ed-green: #43B02A;
  --ed-green-d: #54c43a;
  --ed-bg: #0b0d10;
  --ed-panel: #121519;
  --ed-panel-2: #161a1f;
  --ed-line: rgba(255, 255, 255, .10);
  --ed-line-2: rgba(255, 255, 255, .06);
  --ed-text: #c7ccd1;
  --ed-head: #ffffff;
  --ed-muted: #8b929a;
  --ed-sans: 'Montserrat', Arial, sans-serif;
  --ed-body: 'Lato', Arial, sans-serif;

  background: var(--ed-bg);
  color: var(--ed-text);
  font-family: var(--ed-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* room for sticky bar */
  overflow-x: hidden;
}

/* HERO */
.ed-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ed-bg);
}
.ed-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ed-hero-img, none);
  background-size: cover;
  background-position: center;
  filter: saturate(.9) contrast(1.05);
}
.ed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 13, 16, .45) 0%,
    rgba(11, 13, 16, .25) 35%,
    rgba(11, 13, 16, .85) 78%,
    var(--ed-bg) 100%);
}
.ed-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 36px 72px;
}
.ed-kick {
  font-family: var(--ed-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--ed-green);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ed-kick::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--ed-green);
}
.ed-hero-title {
  font-family: var(--ed-sans);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -1.2px;
  color: var(--ed-head);
  max-width: 22ch;
  margin: 0 0 24px;
}
.ed-hero-sub {
  font-weight: 300;
  font-size: clamp(17px, 2vw, 21px);
  max-width: 50ch;
  color: rgba(255, 255, 255, .78);
  margin: 0 0 34px;
}
.ed-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ed-green);
  color: #fff;
  font-family: var(--ed-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 17px 36px;
  border-radius: 4px;
  text-decoration: none;
  transition: .25s;
}
.ed-cta:hover {
  background: var(--ed-green-d);
  transform: translateY(-2px);
  color: #fff;
}
.ed-scroll {
  position: absolute;
  bottom: 30px;
  right: 36px;
  z-index: 2;
  font-family: var(--ed-sans);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ed-scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, .35);
}

/* LAYOUT */
.wde-editorial .wrap {
  max-width: 820px;
  margin: 0;
  padding: 0;
}
.wde-editorial section {
  padding: 0;
  margin: 44px 0;
}
.ed-eyebrow {
  font-family: var(--ed-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ed-green);
  margin-bottom: 16px;
}
.wde-editorial h2 {
  font-family: var(--ed-sans);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.8px;
  color: var(--ed-head);
  margin: 0 0 22px;
  max-width: 20ch;
}
.ed-lede {
  font-weight: 300;
  font-size: 20px;
  color: var(--ed-text);
  max-width: 54ch;
}

/* STATS (shortcode) */
.ed-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ed-line);
  border-bottom: 1px solid var(--ed-line);
  margin-top: 54px;
}
.ed-stats div {
  padding: 26px 20px;
  text-align: center;
  border-right: 1px solid var(--ed-line-2);
}
.ed-stats div:last-child { border-right: none; }
.ed-stats b {
  display: block;
  font-family: var(--ed-sans);
  font-weight: 800;
  font-size: 40px;
  color: var(--ed-head);
  letter-spacing: -1px;
}
.ed-stats span {
  font-size: 12px;
  color: var(--ed-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--ed-sans);
}

/* COMPARISON (shortcode) */
.ed-cmp {
  margin-top: 54px;
  border-top: 1px solid var(--ed-line);
}
.ed-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--ed-line);
}
.ed-row .n {
  font-family: var(--ed-sans);
  font-weight: 300;
  font-size: 48px;
  color: rgba(255, 255, 255, .18);
}
.ed-row h3 {
  font-family: var(--ed-sans);
  font-weight: 700;
  font-size: 23px;
  color: var(--ed-head);
  margin: 0 0 8px;
}
.ed-row .a {
  color: var(--ed-muted);
  font-size: 15.5px;
  font-weight: 300;
}
.ed-row .b {
  font-family: var(--ed-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ed-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ed-row .b span {
  display: block;
  font-weight: 300;
  font-family: var(--ed-body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--ed-muted);
  font-size: 15.5px;
  margin-top: 6px;
}

/* IMAGE BREAK (shortcode) */
.ed-break {
  position: relative;
  height: 46vh;
  min-height: 320px;
  overflow: hidden;
  margin: 40px 0;
  border-radius: 12px;
}
.ed-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
}
.ed-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, .55), rgba(11, 13, 16, .2) 50%, var(--ed-bg));
}
.ed-break .ed-cap {
  position: absolute;
  z-index: 2;
  bottom: 40px;
  left: 36px;
  right: 36px;
  max-width: 1080px;
  margin: 0 auto;
  font-family: var(--ed-sans);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 30px);
  color: #fff;
  letter-spacing: -.3px;
}

/* SHOWCASE GALLERY (shortcode) */
.ed-show {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.ed-show figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ed-panel);
  border: 1px solid var(--ed-line-2);
}
.ed-show img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: .5s;
}
.ed-show figure:hover img { transform: scale(1.06); }
.ed-show figcaption {
  font-family: var(--ed-sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ed-muted);
  padding: 16px 18px;
}

/* FAQ (shortcode) */
.ed-faq {
  max-width: 780px;
  margin-top: 46px;
}
.ed-faq details {
  border-bottom: 1px solid var(--ed-line);
  padding: 18px 0;
}
.ed-faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--ed-sans);
  font-weight: 500;
  font-size: 19px;
  color: var(--ed-head);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary::after {
  content: "+";
  color: var(--ed-green);
  font-size: 26px;
  font-weight: 300;
}
.ed-faq details[open] summary::after { content: "\2212"; }
.ed-faq details p {
  margin: 16px 0 0;
  color: var(--ed-text);
  font-size: 16px;
  font-weight: 300;
  max-width: 64ch;
}

/* FINAL BAND (shortcode) */
/* Scoped with .wde-editorial: the plain `.wde-editorial section { padding: 0 }`
   rule (0,1,1) otherwise outranks `.ed-band` (0,1,0) and strips the padding. */
.wde-editorial .ed-band {
  background: linear-gradient(160deg, #121519, #0b0d10);
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  text-align: center;
  padding: 56px 40px;
}
/* Everything inside the band needs the .ed-entry prefix too: the generic
   `.wde-editorial .ed-entry h2/p` rules (0,2,1) otherwise win over the
   `.ed-band h2/p` rules (0,1,1) and put 44px / 20px of dead space back. */
.wde-editorial .ed-entry .ed-band h2 {
  color: var(--ed-head);
  max-width: none;
  margin: 0 auto 16px;
}
.wde-editorial .ed-entry .ed-band p {
  font-weight: 300;
  color: var(--ed-muted);
  max-width: 48ch;
  margin: 0 auto 24px;
  font-size: 18px;
}
/* Posts that carry the band as raw HTML get wpautop wrapping the bare <a>
   in a <p>; that paragraph must not add space under the button. */
.wde-editorial .ed-entry .ed-band p:last-child,
.wde-editorial .ed-entry .ed-band p:has(> .ed-cta) {
  margin-bottom: 0;
  max-width: none;
}

/* STICKY BUY BAR */
.ed-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(11, 13, 16, .92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ed-line);
  padding: 12px 24px;
  transition: transform .28s ease, opacity .28s ease;
}
/* Retracts before the site footer scrolls in, so it never covers it. */
.ed-bar.ed-bar-hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.ed-bar-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ed-bar p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 300;
  max-width: none;
}
.ed-bar p b { color: inherit; font-weight: 400; }
.ed-bar .ed-cta {
  padding: 11px 22px;
  font-size: 13px;
  letter-spacing: .8px;
  flex: 0 0 auto;
}

/* ===== BODY CONTENT OVERRIDE (the_content output) =====
   Force dark typography over the light main.css base. */
.wde-editorial .ed-entry {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 36px 48px;
}
.wde-editorial .ed-entry > * { max-width: 820px; }
.wde-editorial .ed-entry > p,
.wde-editorial .ed-entry > blockquote,
.wde-editorial .ed-entry > ul,
.wde-editorial .ed-entry > ol { max-width: 720px; }
.wde-editorial .ed-entry > * { color: var(--ed-text); }
.wde-editorial .ed-entry p {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 20px;
}
.wde-editorial .ed-entry h2 {
  font-size: clamp(25px, 3vw, 34px);
  margin: 44px 0 16px;
}
.wde-editorial .ed-entry h3 {
  font-family: var(--ed-sans);
  font-weight: 700;
  font-size: 24px;
  color: var(--ed-head);
  margin: 32px 0 12px;
}
.wde-editorial .ed-entry a { color: var(--ed-green); }
.wde-editorial .ed-entry a:hover { color: var(--ed-green-d); }
/* 正文里的 CTA 按钮必须保持白字：上面的 .ed-entry a 规则（0,2,1）会盖掉 .ed-cta 的 #fff（0,1,0），
   绿底配绿字就看不见了。-- Codex 2026-10-16 */
.wde-editorial .ed-entry a.ed-cta,
.wde-editorial .ed-entry a.ed-cta:hover { color: #fff; }
.wde-editorial .ed-entry img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 28px 0;
}
/* The generic .ed-entry img rule above outranks .ed-break img / .ed-show img,
   which left the full-bleed photo at its natural square height and cropped
   the bottom half inside the 46vh break. Restore the crop-to-fill behaviour. */
.wde-editorial .ed-entry .ed-break img {
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}
.wde-editorial .ed-entry .ed-show img { margin: 0; }
.wde-editorial .ed-entry blockquote {
  margin: 32px 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--ed-green);
  color: var(--ed-head);
  font-family: var(--ed-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.5;
}
.wde-editorial .ed-entry ul,
.wde-editorial .ed-entry ol {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.wde-editorial .ed-entry ul li,
.wde-editorial .ed-entry ol li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 12px;
  font-weight: 300;
  font-size: 17px;
}
.wde-editorial .ed-entry ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--ed-green);
  border-radius: 50%;
}
.wde-editorial .ed-entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 15.5px;
}
.wde-editorial .ed-entry th,
.wde-editorial .ed-entry td {
  border: 1px solid var(--ed-line);
  padding: 14px 16px;
  text-align: left;
}
.wde-editorial .ed-entry th {
  background: var(--ed-panel);
  color: var(--ed-head);
  font-family: var(--ed-sans);
}
/* Drop cap on first paragraph */
.wde-editorial .ed-entry > p:first-of-type::first-letter {
  font-family: var(--ed-sans);
  font-weight: 800;
  float: left;
  font-size: 64px;
  line-height: .82;
  padding: 6px 12px 0 0;
  color: var(--ed-head);
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .ed-stats { grid-template-columns: repeat(2, 1fr); }
  .ed-stats div:nth-child(2) { border-right: none; }
  .ed-row { grid-template-columns: 54px 1fr; gap: 18px; }
  .ed-row .b { grid-column: 1 / -1; }
  .ed-show { grid-template-columns: 1fr; }
  .wde-editorial section { padding: 0; margin: 32px 0; }
  .ed-hero { min-height: 68vh; }
  .ed-hero-inner { padding-bottom: 56px; }
  .wde-editorial .ed-entry { padding: 40px 24px 32px; }
  .ed-break { height: 34vh; min-height: 240px; border-radius: 10px; margin: 32px 0; }
  .wde-editorial .ed-band { padding: 40px 22px; }
  .ed-bar { padding: 10px 16px; }
  .ed-bar p { font-size: 12.5px; line-height: 1.4; }
  .ed-bar .ed-cta { padding: 10px 18px; font-size: 12px; }
}

/* Phones: two lines of copy plus a second-row button ate ~115px of a 844px
   screen. Keep only the button, full width, so the sticky bar stays ~60px. */
@media (max-width: 600px) {
  .ed-bar p { display: none; }
  .ed-bar .ed-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 12.5px;
  }
}
