/* CTF V2 — Vehicle Page Contract / P4.2 / 0.7.97
 * One visual system for all editorial-v2 vehicle pages (Ranger, Everest, Territory,
 * Transit, Mustang Mach-E). Loaded last, vehicle pages only. Theme-only: no Core data
 * or markup contract is changed except removal of inline !important styles.
 *
 * 1. Hero: the navy fact strip + matched-height configurator (formerly Everest-only).
 * 2. Dark surfaces carry explicit light text (CTA band, lead metrics panel).
 * 3. Cards: one card language for story cards, capability cards and subgroup tiles.
 * 4. Count-aware grids: vehicle-contract-p42.js sets --ctf-span so a row never ends
 *    with an orphan card, whatever number of cards a variant shows.
 * 5. Block heads: subgroup heads match capability block heads.
 */

/* ---- Everest hero system generalised to every editorial-v2 vehicle (copied verbatim from style.css L1861-2250 and L4117-4141; selector only changed) ---- */
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage::before{
  inset:auto 6% 0 12%;
  height:22%;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--under-stage{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin:0;
  padding:0;
  background:#fff;
  border:1px solid var(--golden-line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 12px 34px rgba(7,26,51,.045);
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--under-stage>div{
  min-height:72px;
  padding:14px 18px;
  border:0;
  border-right:1px solid var(--golden-line);
  border-radius:0;
  background:transparent;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--under-stage>div:last-child{border-right:0}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--under-stage span{
  font-size:9px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#8191a2;
  font-weight:800;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--under-stage strong{
  font-size:13px;
  color:var(--golden-ink);
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-config{
  align-self:start;
  padding:24px 24px 20px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-signature--compact{
  margin-top:14px;
  font-size:11.5px;
  line-height:1.55;
}
@media(max-width:1080px){
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-hero-grid{grid-template-columns:1fr}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage{height:430px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car-wrap{height:352px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car{height:312px}
}
@media(max-width:680px){
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-visual-column{gap:9px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage{height:310px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car-wrap{height:254px;padding:46px 0 8px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car{width:96%;max-width:96%;height:212px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--under-stage{grid-template-columns:1fr 1fr}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--under-stage>div{min-height:62px;padding:11px 13px;border-bottom:1px solid var(--golden-line)}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--under-stage>div:nth-child(2){border-right:0}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--under-stage>div:nth-child(3),
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--under-stage>div:nth-child(4){border-bottom:0}
}

/* =========================================================
   v0.7.21 — Everest integrated configurator hero
   Approved concept: preserve one complete vehicle canvas and
   integrate the four key facts into the bottom of the stage.
   ========================================================= */
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-hero{
  padding-top:22px;
  padding-bottom:34px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-hero-grid{
  grid-template-columns:minmax(0,1.58fr) minmax(360px,.60fr);
  gap:16px;
  align-items:start;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage{
  height:548px;
  min-height:0;
  align-self:start;
  border-radius:24px;
  background:
    radial-gradient(circle at 72% 24%,rgba(88,171,229,.24),transparent 30%),
    radial-gradient(ellipse at 50% 96%,rgba(49,94,130,.13),transparent 43%),
    linear-gradient(145deg,#fbfdff 0%,#edf5fb 54%,#e4eef6 100%);
  box-shadow:0 20px 55px rgba(7,26,51,.075);
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage::before{
  inset:auto 10% 84px 14%;
  height:18%;
  opacity:.78;
  filter:blur(17px);
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage-head{
  left:30px;
  right:30px;
  top:25px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage-head strong{
  font-size:35px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car-wrap{
  height:455px;
  padding:72px 22px 88px;
  align-items:center;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car{
  width:min(92%,1050px);
  max-width:92%;
  height:354px;
  object-position:center 57%;
  filter:drop-shadow(0 28px 28px rgba(8,31,53,.18));
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage-gallery-link{
  left:28px;
  bottom:112px;
  background:rgba(255,255,255,.88);
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay{
  position:absolute;
  z-index:5;
  left:18px;
  right:18px;
  bottom:16px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin:0;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  background:linear-gradient(115deg,rgba(7,26,51,.90),rgba(18,53,88,.84));
  box-shadow:0 18px 38px rgba(6,22,41,.18);
  backdrop-filter:blur(16px);
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay>div{
  min-height:78px;
  padding:15px 20px 14px;
  border:0;
  border-right:1px solid rgba(255,255,255,.16);
  border-radius:0;
  background:transparent;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay>div:last-child{border-right:0}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay span{
  color:#aebed0;
  font-size:9px;
  font-weight:850;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay strong{
  color:#fff;
  font-size:14px;
  line-height:1.2;
}

/* Compact the Everest configurator so it reads as the paired right-hand panel. */
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-config{
  align-self:start;
  padding:22px 22px 18px;
  border-radius:24px;
  box-shadow:0 20px 55px rgba(7,26,51,.075);
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-config h1{
  margin-top:4px;
  font-size:34px;
  line-height:1;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-tagline{
  margin-top:7px;
  font-size:14px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-config-block{
  margin-top:14px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-config-label{
  margin-bottom:7px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-variant-family{
  gap:7px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-variant-family__name{
  min-height:42px;
  padding:8px 10px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-variant{
  min-height:42px;
  padding:8px 10px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-price{
  margin-top:13px;
  padding:13px 15px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-price strong{
  font-size:27px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-colors{
  padding:2px 1px 0;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-signature--compact{
  margin-top:11px;
  font-size:11px;
  line-height:1.48;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-actions{
  margin-top:13px;
}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-hotline{
  margin-top:8px;
}

@media(max-width:1080px){
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-hero-grid{grid-template-columns:1fr}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage{height:520px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car-wrap{height:430px;padding:66px 16px 88px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car{height:338px}
}
@media(max-width:680px){
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage{height:408px;border-radius:18px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage-head{left:18px;right:18px;top:17px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage-head strong{font-size:27px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car-wrap{height:326px;padding:52px 4px 98px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car{width:96%;max-width:96%;height:236px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage-gallery-link{left:16px;bottom:98px;padding:8px 10px;font-size:10px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay{left:10px;right:10px;bottom:10px;grid-template-columns:1fr 1fr;border-radius:14px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay>div{min-height:47px;padding:8px 11px;border-bottom:1px solid rgba(255,255,255,.14)}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay>div:nth-child(2){border-right:0}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay>div:nth-child(3),
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay>div:nth-child(4){border-bottom:0}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay span{font-size:7.5px}
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay strong{font-size:11.5px}
}

/* =========================================================
   v0.7.22 — Everest matched-height studio configurator
   Approved concept: both desktop hero panels share one height.
   The vehicle stays on a transparent color-switched layer while
   a lightweight CSS studio/floor backdrop provides depth.
   ========================================================= */
@media (min-width:1081px){
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-hero-grid{
    grid-template-columns:minmax(0,1.62fr) minmax(360px,.60fr);
    grid-auto-rows:620px;
    gap:18px;
    align-items:stretch;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage,
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-config{
    height:620px;
    min-height:620px;
    align-self:stretch;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage{
    isolation:isolate;
    background:
      radial-gradient(circle at 74% 18%,rgba(115,188,238,.30),transparent 30%),
      radial-gradient(circle at 20% 34%,rgba(255,255,255,.92),transparent 33%),
      linear-gradient(150deg,#fbfdff 0%,#eff7fd 46%,#dceaf5 100%);
  }
  /* architectural studio sweep */
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
    background:
      linear-gradient(160deg,transparent 0 35%,rgba(255,255,255,.72) 35.2% 45%,transparent 45.2%),
      radial-gradient(110% 48% at 50% 105%,rgba(255,255,255,.96) 0 43%,rgba(210,228,241,.72) 44%,rgba(187,211,229,.18) 58%,transparent 59%);
    opacity:.92;
  }
  /* soft vehicle grounding; keep it behind the transparent PNG */
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage::before{
    z-index:1;
    inset:auto 14% 120px 18%;
    height:16%;
    background:radial-gradient(ellipse,rgba(7,26,51,.20),rgba(7,26,51,.08) 36%,transparent 68%);
    filter:blur(16px);
    opacity:.82;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage-head,
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage-gallery-link,
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay{
    z-index:5;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car-wrap{
    position:relative;
    z-index:2;
    height:514px;
    padding:76px 18px 112px;
    align-items:end;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-car{
    width:min(92%,1060px);
    max-width:92%;
    height:378px;
    object-position:center 60%;
    filter:drop-shadow(0 28px 26px rgba(8,31,53,.18));
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage-gallery-link{
    left:30px;
    bottom:126px;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay{
    left:24px;
    right:24px;
    bottom:22px;
    border-radius:18px;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-facts--stage-overlay>div{
    min-height:82px;
    padding:16px 22px 15px;
  }

  /* right panel uses the same 620px visual frame */
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-config{
    display:flex;
    flex-direction:column;
    overflow:hidden;
    padding:22px 22px 17px;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-config-block{
    margin-top:12px;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-variant-family{
    gap:6px;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-variant-family__name,
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-variant{
    min-height:39px;
    padding-top:7px;
    padding-bottom:7px;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-price{
    margin-top:11px;
    padding:12px 15px;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-price strong{
    font-size:26px;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-signature--compact{
    margin-top:9px;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-actions{
    margin-top:auto;
    padding-top:10px;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-hotline{
    margin-top:7px;
  }
}

/* =========================================================
   v0.7.23 — Everest soft studio background refinement
   Keep the approved matched-height configurator, but remove
   the graphic diagonal sweep. The background now behaves like
   a quiet showroom cyclorama with a soft floor and ambient glow.
   ========================================================= */
@media (min-width:1081px){
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage{
    background:
      radial-gradient(ellipse 58% 46% at 72% 18%,rgba(133,196,236,.20) 0%,rgba(133,196,236,.08) 45%,rgba(133,196,236,0) 76%),
      radial-gradient(ellipse 54% 48% at 18% 30%,rgba(255,255,255,.98) 0%,rgba(255,255,255,.62) 48%,rgba(255,255,255,0) 82%),
      linear-gradient(180deg,#fbfdff 0%,#f3f9fd 56%,#e6f0f7 100%);
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage::after{
    background:
      radial-gradient(ellipse 96% 46% at 50% 112%,rgba(255,255,255,.98) 0%,rgba(248,251,253,.92) 38%,rgba(224,236,244,.56) 68%,rgba(207,225,237,.12) 88%,rgba(207,225,237,0) 100%),
      radial-gradient(ellipse 60% 62% at 108% 26%,rgba(255,255,255,.62) 0%,rgba(255,255,255,.22) 50%,rgba(255,255,255,0) 82%);
    opacity:1;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage::before{
    inset:auto 16% 120px 18%;
    height:15%;
    background:radial-gradient(ellipse,rgba(7,26,51,.20) 0%,rgba(7,26,51,.09) 34%,rgba(7,26,51,.025) 56%,rgba(7,26,51,0) 74%);
    filter:blur(15px);
    opacity:.78;
  }
}
@media(min-width:1081px){
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-hero-grid{
    grid-auto-rows:auto!important;
    align-items:stretch!important;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage,
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-config{
    height:auto!important;
    min-height:620px!important;
    align-self:stretch!important;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-config{
    overflow:visible!important;
    box-sizing:border-box;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-colors{
    flex-wrap:wrap!important;
    row-gap:10px!important;
    min-height:38px;
  }
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-actions,
  .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-hotline{
    flex-shrink:0;
  }
}

/* Mobile: the "Xem thư viện ảnh" chip sat 19px inside the two-row fact strip. */
@media (max-width:680px){
  body .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-stage-gallery-link{bottom:124px}
}

/* ---------- 2. Dark surfaces ---------- */
/* Rewritten product URLs no longer get body.home/blog (see functions.php); these
 * keep the approved look of the CTA band that previously relied on that leakage. */
body .ctf-detail-cta.ctf-detail-cta{padding-top:76px;padding-bottom:76px}
body .ctf-detail-cta.ctf-detail-cta .ctf-subtitle{font-size:15px;line-height:1.75}
.ctf-detail-page .ctf-section--soft{background-color:#f5f7fa}
/* Lead capability card carries a navy metrics panel: numbers must be white there.
 * Legacy rule colours every .ctf-performance-metrics strong near-black with !important. */
body .ctf-detail-page.ctf-detail-page.ctf-detail-page.ctf-detail-page[data-detail-presentation="editorial-v2"]
  .ctf-golden-story-card.is-capability-lead .ctf-performance-metrics strong{color:#fff!important}
body .ctf-detail-page.ctf-detail-page.ctf-detail-page.ctf-detail-page[data-detail-presentation="editorial-v2"]
  .ctf-golden-story-card.is-capability-lead .ctf-performance-metrics span{color:#c4d4e4!important}

/* ---------- 3a. Variant-specific cards stay hidden ----------
 * main.js hides cards that belong to other variants with the [hidden] attribute, but
 * `.is-recipe-* .ctf-golden-story-card:not(.is-lead){display:flex!important}` (style.css)
 * out-ranked the UA/theme [hidden] rule, so e.g. Raptor/XLS-only cards were shown while
 * Wildtrak was selected -> orphan and empty-looking cards. (0,9,1) beats the legacy (0,6,0)..(0,8,0) display rules, incl. the data-visible-feature-count ones. */
body .ctf-detail-page.ctf-detail-page.ctf-detail-page.ctf-detail-page.ctf-detail-page.ctf-detail-page[data-detail-presentation="editorial-v2"] :is(.ctf-golden-story-card,.ctf-story-tile,.ctf-capability-block)[hidden]{display:none!important}

/* The performance section styles `.ctf-golden-story-card:first-child` as the navy lead card
 * (white index label). In the flat capability grid the first card is an ordinary white
 * card, so its "02"/"01" label was white on white. Restore the shared blue label. */
body .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-capability-grid .ctf-golden-story-card:first-child .ctf-golden-story-copy small{color:var(--golden-blue,#0b5bd3)}

/* ---------- 3. One card language ---------- */
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-story-tile{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #cdd9e4;border-radius:16px;overflow:hidden}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-story-tile-media{display:block;width:100%;aspect-ratio:16/10;overflow:hidden;background:#eaf0f4}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-story-tile-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-story-tile-copy{display:block;padding:18px 20px 22px}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-story-tile-copy h3{margin:0 0 8px;color:var(--ctf-ink-strong,#151515);font-size:18px;font-weight:600;line-height:1.25;letter-spacing:-.01em}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-story-tile-copy p{margin:0;color:var(--ctf-ink-muted,#565656);font-size:13.5px;line-height:1.58}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-story-tile[hidden]{display:none}

/* ---------- 5. Block heads ---------- */
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.is-subgroup-tiles .ctf-story-subgroup{border-top:1px solid #cbd9e4;padding-top:30px}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.is-subgroup-tiles .ctf-story-subgroup:first-child{border-top:0;padding-top:0}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.is-subgroup-tiles .ctf-story-subgroup-head{border-bottom:0;padding-bottom:0}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.is-subgroup-tiles .ctf-story-subgroup-head h3{color:var(--ctf-ink-strong,#151515);font-size:clamp(24px,2.2vw,32px);font-weight:700;line-height:1.08;letter-spacing:-.035em}
.ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.is-subgroup-tiles .ctf-story-subgroup-description{margin:8px 0 0;max-width:700px;color:var(--ctf-ink-muted,#565656);font-size:14.5px}

/* ---------- 4. Count-aware grids (desktop; tablet/mobile keep the legacy 2/1-column flow) ----------
 * Out-ranks the per-model !important grid rules that style.css carries for Transit/Territory
 * (e.g. repeat(4)/repeat(2) forced on subgroup and capability grids). */
@media (min-width:1025px){
  body .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.ctf-golden-story-section.ctf-golden-story-section [data-balanced][data-balanced]{
    display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:18px!important;align-items:stretch;width:100%!important;
  }
  body .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.ctf-golden-story-section.ctf-golden-story-section [data-balanced][data-balanced]>.ctf-golden-story-card.ctf-golden-story-card:not([data-ctf-full]),
  body .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.ctf-golden-story-section.ctf-golden-story-section [data-balanced][data-balanced]>.ctf-story-tile.ctf-story-tile:not([data-ctf-full]){grid-column:span var(--ctf-span,4)!important}
}
/* ---------- 4b. Lead banner ----------
 * The lead card of a product-story / capability chapter is a banner: its photo is cropped to a fixed
 * 1920:841 frame (the ratio the Territory lead was authored at) instead of following the source photo.
 * Ford's photos are not uniform (3:2, 16:9, 1920x841...), so this is what keeps five vehicles level. */
@media (min-width:1025px){
  body .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.ctf-golden-story-section.is-recipe-product-story .ctf-golden-story-card.ctf-golden-story-card.is-lead .ctf-golden-story-media.ctf-golden-story-media{
    position:relative;align-self:start!important;height:auto!important;min-height:365px!important;aspect-ratio:1920/841!important;
  }
  body .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.ctf-golden-story-section.is-recipe-product-story .ctf-golden-story-card.ctf-golden-story-card.is-lead .ctf-golden-story-media.ctf-golden-story-media img{
    position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover;
  }
}
/* ---------- 4c. Text-only cards keep one shape ----------
 * style.css turns the LAST text-only card of any #performance section into a 3-column strip
 * (number | title | text) and the 4th card into a split card. Those rules assumed a full-row slot;
 * in a count-aware grid the card can be 4 columns wide, where the strip collapses into a sliver.
 * Inside a product-story chapter every non-lead text card is the same stacked card. */
body .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.ctf-golden-story-section.is-recipe-product-story .ctf-golden-story-card.ctf-golden-story-card:not(.is-lead){
  grid-template-columns:none!important;gap:0!important;
}
body .ctf-detail-page[data-detail-presentation="editorial-v2"] .ctf-golden-story-section.ctf-golden-story-section.is-recipe-product-story .ctf-golden-story-card.ctf-golden-story-card.is-text-only .ctf-golden-story-copy.ctf-golden-story-copy{
  display:flex!important;flex-direction:column!important;justify-content:center!important;grid-template-columns:none!important;gap:0!important;padding:28px!important;
}
/* Tablet: a lone last card spans the row instead of leaving a hole. */
@media (min-width:621px) and (max-width:1024px){
  body .ctf-detail-page[data-detail-presentation="editorial-v2"] [data-balanced]>:last-child:nth-child(odd):not(:only-child){grid-column:1/-1}
}

/* ---------- 0.8.8: colour picker under the car stage on single-column layouts ---------- */
@media(max-width:1080px){
  .ctf-detail-page .ctf-golden-hero-grid>.ctf-golden-config-block.is-under-stage{
    margin:-6px 0 0;padding:14px 18px 16px;border:1px solid var(--ctf-line,#dbe4ee);border-radius:18px;background:#fff;
    box-shadow:0 10px 26px rgba(7,26,51,.06);
  }
  .ctf-detail-page .ctf-golden-config-block.is-under-stage .ctf-config-label{margin-bottom:10px}
  .ctf-detail-page .ctf-golden-config-block.is-under-stage .ctf-golden-colors{flex-wrap:wrap!important;row-gap:10px!important}
}
