/* =============================================================================
   SoloDrive Front CSS — THE MANAGED FRAME (WO-2026-3905, Design; R8 step 5)

   LOAD SLOT: 24. NEW partial. Enqueue LAST in the $files list, after
   '22-compare.css' (23-video-slots is appended after the list on non-prod only and
   touches nothing here, so either order is safe).

   WHAT IT DOES: the TEMPLATES that are not yet in the home-v2 grammar are brought
   into it, so paid traffic reads ONE site from the first click to the legal page.
   Every selector is a TEMPLATE class the renderers already emit. No page is styled
   by its slug or ID, so a 2nd hub, a 40th authority page or a new topic needs ZERO
   new CSS (README § "Marketing adds data").

     .sd-managed-page--guides     /guides/ index           (WO-2026-3824)
     .sd-managed-page--hub        /guides/<topic>/         (WO-2026-3824)
     .sd-managed-page--authority  every authority page + /tools-for-uber-and-lyft-drivers/
     .sd-breadcrumb               hubs + authority pages   (WO-2026-3824)
     .sd-related-guides           "More in <Topic>"        (WO-2026-3824)
     .sd-related-pages            the related-pages card
     .sd-final-cta                the synced final-CTA pattern
     .sd-managed-template--trust  /about/ /contact/ /f-a-q/ /privacy/ /legal-disclaimer/
     .sd-hero--trust (no wrapper) /terms/ — FOS-HANDOFF H4 asks for the wrapper

   NOT TOUCHED: .sd-home-v2 pages (home, pillars, how-it-works, pricing, compare,
   meet-marcus: already the grammar), /demo/ (its own slide-deck grammar), and
   /start/ (.sd-r26-start — ON HOLD, WO-2026-3904; nothing here can match it).

   WHY CSS AND NOT CONFIG: the "second system" is CSS — 02-base.css sets every
   `.entry-content h1-h3` to Inter 850 at -0.055em, and 09-authority / 04-components
   restate it per template. No WP or Astra setting reaches those rules. The ONE
   config-first item (Astra's content-link underline, which is what underlines every
   button on the site) is FOS-HANDOFF C1; the button reset below is the fallback.

   TOKENS: identical VALUES to the `.sd-home-v2` block in 16-home-v2.css, restated
   on this scope the way 17/18/19/21/22 each already do. No new colour enters the
   system here. (Lifting one token block to :root is FOS-HANDOFF L1, a follow-on.)
   ============================================================================= */

:is(.sd-managed-page, .entry-content:has(> .sd-hero--trust)) {
  --paper: #f4f1ea; --paper-2: #efeadf; --surface: #ffffff;
  --ink: #14182b; --muted: #5b6076; --faint: #8a90a4;
  --line: rgba(20, 24, 43, .10); --line-2: rgba(20, 24, 43, .16);
  --navy: #121b36; --navy-2: #0d1428;
  --clay: #c2613d; --clay-cta: #b8583a; --clay-hover: #a84e2e; --clay-ink: #9c4a2c;
  --teal-on-navy: #5ad6c0;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 12px; --r-md: 18px; --r-lg: 26px;
  --shadow-card: 0 10px 30px rgba(20, 24, 43, .06);
  --measure: 720px;
  font-family: var(--sans);
  color: var(--ink);
}
body:has(.sd-managed-page),
body:has(.entry-content > .sd-hero--trust) { background: #f4f1ea; }

/* ---------------------------------------------------------------- type, one grammar
   Specificity is held DELIBERATELY LOW here (0-1-1, via :where) so it beats
   02-base.css's `.entry-content h1` by load order only, and every template rule
   further down (final CTA on navy, "More in", the trust hero) wins without a fight. */
.entry-content:where(:has(.sd-managed-page), :has(> .sd-hero--trust)) :is(h1, h2, h3, h4) {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; color: var(--ink);
}
.entry-content:where(:has(.sd-managed-page), :has(> .sd-hero--trust)) h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; }
.entry-content:where(:has(.sd-managed-page), :has(> .sd-hero--trust)) h2 { font-size: clamp(27px, 3.4vw, 40px); }
.entry-content:where(:has(.sd-managed-page), :has(> .sd-hero--trust)) h3 { font-size: clamp(20px, 2.1vw, 25px); line-height: 1.2; }
.entry-content:where(:has(.sd-managed-page), :has(> .sd-hero--trust)) :is(p, li) { font-size: 17px; line-height: 1.65; color: var(--muted); }
.entry-content:where(:has(.sd-managed-page), :has(> .sd-hero--trust)) strong { color: var(--ink); font-weight: 650; }
.entry-content:where(:has(.sd-managed-page), :has(> .sd-hero--trust)) .sd-eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--clay-ink); margin: 0 0 12px;
}
/* prose links: visible underline (WCAG 1.4.1), quiet until hover */
.entry-content:where(:has(.sd-managed-page), :has(> .sd-hero--trust)) :is(p, li) a {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.entry-content:where(:has(.sd-managed-page), :has(> .sd-hero--trust)) :is(p, li) a:hover { color: var(--clay-ink); text-decoration-color: currentColor; }
.entry-content:where(:has(.sd-managed-page), :has(> .sd-hero--trust)) a:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- buttons
   One lead-action look site-wide: the clay pill. Beats Astra's content-link
   underline (.ast-single-post .entry-content a, 0-2-1) without !important. */
body .entry-content a.sd-button {
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--clay-cta, #b8583a); color: #fff;
  font-family: var(--sans); font-size: 16px; font-weight: 650; letter-spacing: 0;
  text-decoration: none; box-shadow: 0 8px 22px rgba(194, 97, 61, .26);
}
body .entry-content a.sd-button:hover { background: var(--clay-hover, #a84e2e); color: #fff; }
body .entry-content a.sd-button.sd-button--light { background: #fff; color: var(--ink, #14182b); box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
body .entry-content a.sd-button.sd-button--light:hover { background: var(--paper, #f4f1ea); color: var(--ink, #14182b); }

/* ---------------------------------------------------------------- page column */
.sd-managed-page:is(.sd-managed-page--guides, .sd-managed-page--hub, .sd-managed-page--authority) {
  display: block; max-width: 1160px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) 24px clamp(48px, 7vw, 96px);
}
.sd-managed-page:is(.sd-managed-page--guides, .sd-managed-page--hub, .sd-managed-page--authority) > * + * { margin-top: 0; }

/* ---------------------------------------------------------------- breadcrumb
   The SAME look as the pillar pages' .pl-crumb (18-pillars.css): one breadcrumb
   site-wide. The <ol> stays an <ol> for machines; the numbers go. */
.sd-breadcrumb { margin: 0 0 20px; }
.sd-breadcrumb__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
body .sd-managed-page .sd-breadcrumb__item { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
body .sd-managed-page .sd-breadcrumb__item + .sd-breadcrumb__item::before { content: "/"; padding: 0 9px; color: var(--faint); }
body .sd-managed-page .sd-breadcrumb__item a { display: inline-block; padding: 6px 0; color: var(--muted); font-weight: 500; text-decoration: none; }
body .sd-managed-page .sd-breadcrumb__item a:hover { color: var(--clay-ink); }
body .sd-managed-page .sd-breadcrumb__item[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- shared card
   One card for a topic, a hub entry and a related guide. The WHOLE card is the tap
   target (stretched link), the title is the only link in the DOM. */
.sd-guides__topic,
.sd-hub__query__list > li,
.sd-related-guides__query__list > li {
  position: relative; margin: 0; padding: 24px 56px 24px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.sd-guides__topic:hover,
.sd-hub__query__list > li:hover,
.sd-related-guides__query__list > li:hover {
  border-color: var(--line-2); box-shadow: 0 16px 38px rgba(20, 24, 43, .10); transform: translateY(-1px);
}
.sd-guides__topic::after,
.sd-hub__query__list > li::after,
.sd-related-guides__query__list > li::after {
  content: "→"; position: absolute; right: 22px; top: 24px;
  font-family: var(--sans); font-size: 20px; line-height: 1; color: var(--clay);
}
body .sd-managed-page .sd-guides__topic-link,
body .sd-managed-page .sd-hub__query__title a,
body .sd-managed-page .sd-related-guides__query__title a {
  font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.22; letter-spacing: -0.005em;
  color: var(--ink); text-decoration: none;
}
.sd-guides__topic-link::before,
.sd-hub__query__title a::before,
.sd-related-guides__query__title a::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
body .sd-managed-page .sd-guides__topic-link:focus-visible::before,
body .sd-managed-page .sd-hub__query__title a:focus-visible::before,
body .sd-managed-page .sd-related-guides__query__title a:focus-visible::before { outline: 2px solid var(--clay); outline-offset: 2px; }
body .sd-managed-page .sd-guides__topic-link:focus-visible,
body .sd-managed-page .sd-hub__query__title a:focus-visible,
body .sd-managed-page .sd-related-guides__query__title a:focus-visible { outline: none; }
.sd-guides__topic:hover .sd-guides__topic-link,
.sd-hub__query__list > li:hover a,
.sd-related-guides__query__list > li:hover a { color: var(--clay-ink); }
body .sd-managed-page :is(.sd-hub__query__title, .sd-related-guides__query__title) { margin: 0; font-size: inherit; }
body .sd-managed-page .sd-guides__topic-description { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; }

.sd-guides__list,
.sd-hub__query__list,
.sd-related-guides__query__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px;
}
/* WP's flow-layout margins on the post template would double the grid gap */
.sd-hub__query__list > li, .sd-related-guides__query__list > li { margin-block: 0 !important; }

/* ---------------------------------------------------------------- /guides/ index */
.sd-guides__header { margin: 0 0 clamp(28px, 4vw, 48px); max-width: var(--measure); }
.sd-guides__body { display: grid; gap: clamp(36px, 5vw, 64px); }
.sd-guides__group { padding-top: 22px; border-top: 1px solid var(--line-2); }
body .sd-managed-page .sd-guides__group-heading {
  display: flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-size: clamp(22px, 2.4vw, 28px);
}
/* the audience marker: drivers clay, riders teal. Keyed off the group MODIFIER the
   renderer already emits, so a rider topic is marked the day it is tagged. */
.sd-guides__group-heading::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--clay); flex: 0 0 10px; }
.sd-guides__group--rider .sd-guides__group-heading::before { background: #2b9a86; }

/* ---------------------------------------------------------------- topic hub */
.sd-hub__header { max-width: 880px; margin: 0 0 16px; }
.sd-hub__body { display: grid; gap: clamp(32px, 5vw, 56px); }
body .sd-managed-page .sd-hub__intro p { max-width: var(--measure); font-size: clamp(18px, 1.8vw, 20px); line-height: 1.55; margin: 0; }

/* ---------------------------------------------------------------- authority page */
.sd-managed-page--authority .sd-authority__header,
.sd-managed-page--authority .sd-authority__body { max-width: var(--measure); }
body .sd-managed-page--authority .sd-authority__title { margin: 0 0 20px; font-size: clamp(36px, 5vw, 58px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; }
/* the short answer is the snippet machines quote: give it the lead treatment */
body .sd-managed-page--authority .sd-authority__answer {
  max-width: none; padding-left: 18px; border-left: 3px solid var(--clay);
  font-size: clamp(18px, 1.9vw, 20px); line-height: 1.55; color: var(--ink);
}
.sd-managed-page--authority .sd-authority__body { gap: clamp(36px, 4.4vw, 52px); margin-bottom: clamp(40px, 6vw, 72px); }
body .sd-managed-page--authority .sd-authority__section h2.sd-authority__section-heading {
  font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 14px;
}
body .sd-managed-page--authority .sd-authority__section :is(h3, h4, h5, h6).sd-authority__section-heading {
  font-size: clamp(19px, 2vw, 22px); font-weight: 600; letter-spacing: 0; line-height: 1.25;
}
body .sd-managed-page--authority .sd-authority__section-body :is(p, li) { font-size: 17px; line-height: 1.7; }
body .sd-managed-page--authority .sd-authority__section-body ul { list-style: none; padding-left: 0; }
body .sd-managed-page--authority .sd-authority__section-body ul > li { position: relative; padding-left: 22px; margin-bottom: 8px; }
body .sd-managed-page--authority .sd-authority__section-body ul > li::before {
  content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 999px; background: var(--clay);
}
body .sd-managed-page--authority .sd-authority__section-body strong { font-weight: 650; }

/* related pages: a quiet card, two columns where there is room */
.sd-managed-page .sd-related-pages {
  max-width: var(--measure); margin: 0 0 clamp(36px, 5vw, 56px); padding: 22px 24px;
  background: var(--paper-2); border-radius: var(--r-md);
}
.sd-managed-page .sd-related-pages__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2px 24px; margin-top: 8px; }
body .sd-managed-page .sd-related-pages__list li { margin: 0; font-size: 15.5px; }
body .sd-managed-page .sd-related-pages__list li a { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.sd-managed-page .sd-related-pages__list li a::before { content: "→"; color: var(--clay); font-size: 14px; }
body .sd-managed-page .sd-related-pages__list li a:hover { color: var(--clay-ink); }

/* "More in <Topic>": a section label, not a page-sized h2 */
.sd-managed-page .sd-related-guides { margin: 0 0 clamp(40px, 6vw, 72px); }
body .sd-managed-page .sd-related-guides__heading {
  margin: 0 0 16px; font-size: clamp(20px, 2vw, 24px); line-height: 1.25;
}
body .sd-managed-page .sd-related-guides__heading a { color: var(--clay-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- final CTA (synced pattern)
   The home's closing band, as a card: navy, serif, one clay action. */
body .sd-managed-page .sd-final-cta {
  margin: 0; padding: clamp(32px, 5vw, 56px);
  background: var(--navy-2); border-radius: var(--r-lg);
  box-shadow: 0 28px 70px rgba(20, 24, 43, .18);
}
body .sd-managed-page .sd-final-cta__heading { margin: 0 0 10px; color: #fff; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.01em; }
body .sd-managed-page .sd-final-cta__body { margin: 0 0 24px; color: rgba(244, 241, 234, .74); font-size: 17px; }

/* ---------------------------------------------------------------- TRUST template
   about / contact / faq / privacy / legal-disclaimer / terms. Same structure as
   today (photo hero card, white section cards, navy CTA); the grammar changes. */
body :is(.sd-managed-template--trust, .entry-content:has(> .sd-hero--trust)) .sd-section {
  max-width: 920px; margin-left: auto !important; margin-right: auto !important;
  /* 10-premium-marketing.css sets .sd-section padding with !important; this is the
     only way back to a card-sized inset without editing that legacy sheet */
  padding: clamp(28px, 4vw, 48px) !important;
}
body :is(.sd-managed-template--trust, .entry-content:has(> .sd-hero--trust)) .sd-card {
  border-radius: var(--r-md); box-shadow: var(--shadow-card); border-color: var(--line);
}
body :is(.sd-managed-template--trust, .entry-content:has(> .sd-hero--trust)) .sd-hero {
  border-radius: var(--r-lg);
  /* deeper scrim on the left: the lead sat on the photo at ~2:1. Same photo. */
  background:
    linear-gradient(90deg, rgba(13, 20, 40, .94) 0%, rgba(13, 20, 40, .86) 46%, rgba(13, 20, 40, .35) 100%),
    var(--sd-premium-hero-image);
  background-size: cover; background-position: center right;
}
body :is(.sd-managed-template--trust, .entry-content:has(> .sd-hero--trust)) .sd-hero :is(h1, h2) { color: #fff; max-width: 16ch; }
body :is(.sd-managed-template--trust, .entry-content:has(> .sd-hero--trust)) .sd-hero .sd-eyebrow { background: none; padding: 0; color: var(--teal-on-navy); }
body :is(.sd-managed-template--trust, .entry-content:has(> .sd-hero--trust)) .sd-hero :is(.sd-hero__lead, .sd-lede, p) {
  background: none; border: 0; padding: 0; color: rgba(244, 241, 234, .86); font-weight: 400; font-size: clamp(17px, 1.8vw, 20px);
}
body :is(.sd-managed-template--trust, .entry-content:has(> .sd-hero--trust)) .sd-panel {
  border-radius: var(--r-sm); box-shadow: none; background: var(--paper); border-color: var(--line);
}
body :is(.sd-managed-template--trust, .entry-content:has(> .sd-hero--trust)) .sd-cta--blue {
  background: var(--navy-2); border-radius: var(--r-lg);
}
body :is(.sd-managed-template--trust, .entry-content:has(> .sd-hero--trust)) .sd-cta--blue :is(h2, h3) { color: #fff; }
body :is(.sd-managed-template--trust, .entry-content:has(> .sd-hero--trust)) .sd-cta--blue p { color: rgba(244, 241, 234, .74); }

/* ---------------------------------------------------------------- phone */
@media (max-width: 600px) {
  .sd-managed-page:is(.sd-managed-page--guides, .sd-managed-page--hub, .sd-managed-page--authority) { padding-left: 20px; padding-right: 20px; }
  .sd-guides__topic, .sd-hub__query__list > li, .sd-related-guides__query__list > li { padding: 20px 48px 20px 20px; }
  body .sd-managed-page :is(.sd-guides__topic-link, .sd-hub__query__title a, .sd-related-guides__query__title a) { font-size: 19.5px; }
  body .sd-managed-page :is(p, li) { font-size: 16.5px; }
  body .sd-managed-page .sd-final-cta a.sd-button { width: 100%; }
  body :is(.sd-managed-template--trust, .entry-content:has(> .sd-hero--trust)) .sd-section { padding: 24px 20px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-guides__topic, .sd-hub__query__list > li, .sd-related-guides__query__list > li { transition: none; }
  .sd-guides__topic:hover, .sd-hub__query__list > li:hover, .sd-related-guides__query__list > li:hover { transform: none; }
}
