/*
 * Unlayered brand CSS for posts (functions.php enqueues it on single posts): Gravity's form CSS is unlayered, so the
 * theme's layered bundles lose to it whatever their specificity. The post-end quote form.
 */
/*
 * The quote form at the end of every post (`.read__quote`, review 4 P1-1): the hero's sign card — white plate, the ink
 * rule inset — with the lane chips three across (the chosen one ink, the car teal), the select kept for the CRM but
 * hidden, the ZIP pair side by side, the privacy link underlined.
 */
.read .read__quote {
  position: relative;
  padding: calc(0.5rem + var(--wp--preset--spacing--50));
  border: 0;
  border-radius: var(--wp--custom--radius--lg, 18px);
  background: var(--wp--preset--color--card, #fff);
  box-shadow: var(--wp--custom--shadow--lift, 0 30px 60px -30px rgba(0, 0, 0, 0.6));
}
.read .read__quote::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 2px solid var(--wp--preset--color--ink);
  border-radius: var(--wp--custom--radius--md, 12px);
  pointer-events: none;
}
.read__quote .hero__lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-block-end: 0;
}
.read__quote .hero__lane {
  justify-content: center;
  cursor: pointer;
}
.read__quote .hero__lane[aria-checked='true'] {
  border-color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--card, #fff);
}
.read__quote .hero__lane--car[aria-checked='true'] {
  border-color: var(--wp--preset--color--second, #0F5C5A);
  background: var(--wp--preset--color--second, #0F5C5A);
}
.read__quote .hero__lanefield {
  position: relative;
}
.read__quote .hero__lanefield :is(.gfield_label, .ginput_container) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.read .read__quote.umv-gform .gform_fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Room for the From → To arrow between the ZIP pair (design pass 14 Nov 2026, below). */
  column-gap: 2rem;
}
.read .read__quote.umv-gform .gform_fields > .gfield {
  grid-column: 1 / -1;
}
.read .read__quote.umv-gform .gform_fields > :is([id$='_8'], [id$='_9'], [id$='_15'], [id$='_16'], [id$='_17'], [id$='_18']) {
  grid-column: auto;
  align-self: end;
}
.read__quote .gform_fields > :is([id$='_8'], [id$='_9']) .gfield_label {
  font-size: 0.8125rem;
  white-space: nowrap;
}
.read__quote .gfield_required {
  display: none;
}
.read__quote .formnote {
  margin-block-start: var(--wp--preset--spacing--40);
  color: var(--wp--preset--color--ink-secondary);
  font-size: var(--wp--preset--font-size--meta);
  text-wrap: pretty;
}
.read__quote .formnote a {
  color: var(--wp--preset--color--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/*
 * The post-end form on a phone (UX review 14 Nov 2026; the calendar, focus ring and busy state are site-wide:
 * assets/css/unlayered/forms.css).
 * A8 — year/trailer stop pairing: "Open Trailer" / "Enclosed Trailer" do not fit a half column beside the chevron.
 * A1 — the calendar runs from rule to rule across the sign (a day 43–47px wide, 44px tall).
 * A3 — the ZIP pair's messages keep to one line each, run under the whole pair ("from" from the left edge, "to" ending
 *      at the right one, the second a line lower when both fail), the inputs level.
 * A13 — under 24rem the ZIP labels break in balance instead of running into each other.
 */
@media (width < 40rem) {
  .read .read__quote.umv-gform .gform_fields > :is([id$='_17'], [id$='_18']) {
    grid-column: 1 / -1;
  }
  .read .read__quote .gform_fields > :is([id$='_8'], [id$='_9']) > :is(.validation_message, .gfield_validation_message) {
    white-space: nowrap;
  }
  .read .read__quote .gform_fields > [id$='_8'] > :is(.validation_message, .gfield_validation_message) {
    margin-inline-end: calc(-100% - 2rem); /* the pair's column gap (below) */
  }
  .read .read__quote .gform_fields > [id$='_9'] > :is(.validation_message, .gfield_validation_message) {
    margin-inline-start: calc(-100% - 2rem);
    text-align: end;
  }
  .read .read__quote .gform_fields > [id$='_8'].gfield_error:has(~ [id$='_9'].gfield_error) > :is(.validation_message, .gfield_validation_message) {
    padding-block-end: 1.35em;
  }
  .read .read__quote .gform_fields > [id$='_8'].gfield_error ~ [id$='_9'].gfield_error > :is(.validation_message, .gfield_validation_message) {
    margin-block-start: calc(var(--wp--preset--spacing--20, 0.75rem) + 1.35em);
  }
  .read .read__quote.umv-gform .gform_fields:has(> :is([id$='_8'], [id$='_9']).gfield_error) > :is([id$='_8'], [id$='_9']) {
    align-self: start;
  }
}
@media (width < 24rem) {
  .read__quote .gform_fields > :is([id$='_8'], [id$='_9']) .gfield_label {
    line-height: 1.25;
    white-space: normal;
    text-wrap: balance;
  }
}

/* A post's accordion questions in the site FAQ's face (review 4, P2: Albert Sans 600 against the FAQ's Newsreader). */
.read__body details > summary {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--title-sm, 1.25rem);
  font-weight: var(--wp--custom--font-weight--heading, 500);
}

/*
 * A wide screen (90rem+, review 4 P2): the post's "On this page" moves into the empty left rail as a sticky, open list
 * — a float pulled out of the 720px column, so the text flows exactly as before; the section being read is marked
 * (assets/js/chrome.js). Narrower screens keep the closed card above the text.
 */
@media (width >= 90rem) {
  .read .read__body > .toc {
    float: left;
    clear: left;
    position: sticky;
    inset-block-start: 7rem;
    /* 12rem + a 2.5rem gap (was 15 + 4): the column is 50em since 25 Nov 2026 (owner: "make it wider" — 900px at
       1440), and the rail must still fit in the margin left of it at 90rem. */
    inline-size: 12rem;
    margin: 0 0 0 -14.5rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .read .read__body > .toc .toc__box {
    padding: 0;
    border: 0;
    background: none;
  }
  .read .read__body > .toc .toc__label {
    pointer-events: none;
    padding: 0 0 var(--wp--preset--spacing--30);
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--title-sm, 1.25rem);
  }
  .read .read__body > .toc .toc__label::after,
  .read .read__body > .toc .toc__count {
    display: none;
  }
  .read .read__body > .toc .toc__list {
    columns: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    border-inline-start: 2px solid var(--wp--preset--color--hairline);
  }
  .read .read__body > .toc .toc__list li {
    margin: 0;
    padding: 0;
  }
  .read .read__body > .toc .toc__list a {
    display: block;
    margin-inline-start: -2px;
    padding: 0.35rem 0 0.35rem 0.875rem;
    border-inline-start: 2px solid transparent;
    color: var(--wp--preset--color--ink-secondary);
    font-size: var(--wp--preset--font-size--meta);
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
  }
  .read .read__body > .toc .toc__list a:is(:hover, :focus-visible) {
    color: var(--wp--preset--color--ink);
  }
  .read .read__body > .toc .toc__list a[aria-current='true'] {
    border-inline-start-color: var(--wp--preset--color--mark, #F2C230);
    color: var(--wp--preset--color--ink);
  }
}

/*
 * Accordions in a post (review 8, P1-2 / P2-1). Core's details block is `is-layout-flow`, and WordPress's unlayered
 * `:root :where(.is-layout-flow) > *` gives every child a 32px top margin — it beats the layered article CSS, so the
 * answer sat 80px under its question and an open sub-section's title floated away from its text. Here, unlayered: the
 * answer starts right under the question, an open title sits on its own text, in ink.
 */
.read .read__body details:not(.toc__box) > summary + * {
  margin-block-start: 0;
}
.read .read__body details:not(.toc__box) > :not(summary) {
  color: var(--wp--preset--color--ink);
}
.read .read__body details:not(.toc__box) > :not(summary) + :not(summary) {
  margin-block-start: var(--wp--preset--spacing--40);
}
.read .article__body .wp-block-details--open > .wp-block-details__title + * {
  margin-block-start: 0;
}
.read .article__body .wp-block-details--open > :not(.wp-block-details__title) + * {
  margin-block-start: var(--wp--preset--spacing--40);
}

/* The post-end form's inner rhythm (review 8, C P2-9): the hero card's stacked steps — title → chips, the last field →
   Continue and Continue → the note on one tighter step (they were 48 / 40 / 44px and read looser than the card it
   copies). */
.read .read__quote.umv-gform {
  row-gap: var(--wp--preset--spacing--40);
}
.read .read__quote.umv-gform :is(.gform_page_footer, .gform_footer) {
  margin-block-start: var(--wp--preset--spacing--40);
}
.read .read__quote.umv-gform .formnote {
  margin-block-start: 0;
}
/* The card's own gap is the only space between the title and the form (Gravity's wrapper added 24px to it). */
.read .read__quote.umv-gform > .gform_wrapper {
  margin-block-start: 0;
}

/*
 * The section bar on posts (chrome.js builds it from the contents list; review 8, C P1-5): below 90rem it replaces the
 * closed grey box above the text; from 90rem the left rail is the contents and the bar is not drawn. The bar's own
 * look is fprice-road.critical.css `.onpage`. On the rail, the lane's language: the hairline and the yellow mark on the
 * section being read — no 1–11 numerals (no numbered ledgers on this brand).
 */
@media (width < 90rem) {
  .has-post-onpage .read .read__body > .toc {
    display: none;
  }
  /* `.read` is an inline-size container, so `.bleed`'s max-inline-size (100cqw) resolved to the reading column and the
     bar stopped 40–77px short of the right edge (UX review 14 Nov 2026, C1). */
  .read > .onpage--post {
    margin-block-start: var(--wp--preset--spacing--60);
    margin-inline: calc(50% - 50vw);
    max-inline-size: none;
  }
  /* Open, the bar's disc is ink, not the toggle's red (red is for actions; the FAQ block, which carries that rule on
     service pages, is not on a post). */
  .read > .onpage--post summary:hover .toggle-disc {
    border-color: var(--wp--preset--color--ink);
  }
  .read > .onpage--post details[open] > summary .toggle-disc {
    border-color: var(--wp--preset--color--ink);
    background: var(--wp--preset--color--ink);
    color: var(--wp--preset--color--card, #fff);
  }
}
@media (width >= 90rem) {
  .read > .onpage--post {
    display: none;
  }
  .read .read__body > .toc .toc__list li {
    display: block;
  }
  .read .read__body > .toc .toc__list li::before {
    content: none;
  }
}

/*
 * The post-end form is the hero card's three steps, drawn as the hero draws them (design pass 14 Nov 2026). It had
 * neither the step counter nor the lane bar (assets/js/hero-steps.js now finds this card's title too, and names each
 * step), and its footer was the skin's: Back a full-width outlined rectangle stacked over Continue on a phone, and on
 * the last step the submit a short pill under it. Here, as in the hero (hero/variants/cover.css): the title with
 * "Step 2 of 3" on its right, the three-segment bar, Back a quiet underlined word beside the pill, the pill taking the
 * rest of the row on every step.
 */
.read__quote .hero__steps {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--30);
}
.read__quote .hero__step {
  flex: none;
  color: var(--wp--preset--color--ink-secondary);
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--reading, 1.125rem);
}
.read__quote .hero__bar {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.read__quote .hero__bar li {
  block-size: 3px;
  background: var(--wp--preset--color--hairline);
}
.read__quote .hero__bar li.is-done {
  background: var(--wp--preset--color--accent);
}
.read .read__quote.umv-gform .gform_page_footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--wp--preset--spacing--30);
}
.read .read__quote.umv-gform .gform_page_footer .gform_previous_button {
  flex: 0 0 auto;
  inline-size: auto;
  min-inline-size: 0;
  padding-inline: var(--wp--preset--spacing--30);
  border: 0;
  background: none;
  color: var(--wp--preset--color--ink-secondary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.read .read__quote.umv-gform .gform_page_footer .gform_previous_button:is(:hover, :focus-visible) {
  background: none;
  color: var(--wp--preset--color--ink);
}
.read .read__quote.umv-gform .gform_page_footer :is(.gform_next_button, .gform_button) {
  flex: 1 1 auto;
  justify-content: center;
}
@media (width < 40rem) {
  .read__quote .hero__step {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--meta);
  }
}
/* From → To, as in the hero: the red arrow between the two ZIP fields, centred on the inputs (on the input's own box,
   so a message under either field never moves it); the pair's column gap is 2rem to hold it (above). */
.read__quote .ginput_container:has(> input[name='input_8']) {
  position: relative;
}
.read__quote .ginput_container:has(> input[name='input_8'])::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: -1.5rem;
  inline-size: 1rem;
  block-size: 1rem;
  translate: 0 -50%;
  background: var(--wp--preset--color--accent, #C7382A);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Off while either ZIP shows a message: the message lifts that field's input and the pair no longer shares a line (as
   the hero, 14 Nov 2026). */
.read__quote .gform_fields:has(> .gfield_error:is([id$='_8'], [id$='_9'])) .ginput_container:has(> input[name='input_8'])::after {
  content: none;
}
/* The card's title on a phone at the hero card's phone size, so it keeps one line beside "Step 1 of 3". */
@media (width < 40rem) {
  .read__quote .hero__steps .read__quote-title {
    font-size: 1.375rem;
    line-height: 1.1;
  }
}
