/* =====================================================================
   Blog post — BLOCK layout (2026-10-01, Richie on the car-pulls post:
   "Some small text, a lot of words people aren't going to read all this...
   Maybe add some boxes in there, or make the font headings bigger.")

   Built ONLY from components the service pages already use, so the article
   reads like the rest of the site:
     - Barlow Condensed 800 italic caps headings + the short red rule
       (page-header / CTA)
     - Oswald italic caps titles + red line icons (service tiles, checklist)
     - the dark tile plate with ghost numbers (Repairs / Maintenance grids)
     - white cards, radius 14, soft shadow (DESIGN.md card spec)
     - the red band (stat band) for the one line that matters most
     - split text + photo with the red seam (split-dark)
   Scoped to .post-blocks so the two older posts are untouched until we
   choose to move them over. Loaded after styles.css.
   ===================================================================== */

.post-blocks {
  hyphens: manual; -webkit-hyphens: manual;
  font-size: clamp(1.125rem, 0.35vw + 1.02rem, 1.25rem); /* 18px floor, ~19.5 at 1440 */
  line-height: 1.65;
}
.post-blocks p { color: #4a4b4f; }               /* darker than --grey: 8.9:1 on white */
.post-blocks .post-meta { font-size: 1rem; }

/* ---- Headings: the site's display face, at service-page size ---- */
.post-blocks > h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  color: var(--charcoal);
  font-size: clamp(2rem, 1.9vw + 1.1rem, 3rem);
  margin-block: var(--space-6) 0;
}
.post-blocks > h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--red);
  margin-block: var(--space-2) var(--space-3);
}
.post-blocks h3 {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
  font-size: clamp(1.2rem, 0.5vw + 1rem, 1.4rem);
  color: var(--charcoal);
  margin: 0 0 0.45em;
}
.post-blocks .nw { white-space: nowrap; }

/* ---- Quick answer: a dark plate, same surface as the rail cards ---- */
.pb-quick {
  background: linear-gradient(150deg, var(--charcoal) 0%, var(--black) 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
  padding: var(--space-4);
  margin-block: var(--space-2) var(--space-5);
  border-bottom: 3px solid var(--red);
}
.pb-quick .pb-label {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-accent); font-style: italic; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: 1rem;
  color: #ff5a52;                                  /* --red on black is 2.6:1; this is 5.6:1 */
  margin: 0 0 var(--space-1);
}
.pb-quick .pb-label::before { content: ""; width: 28px; height: 3px; background: var(--red); }

/* Checklist rows: the Repairs page "Expert Technicians" rows */
.pb-checks { list-style: none; margin: 0; padding: 0; }
.pb-checks li {
  display: flex; align-items: flex-start; gap: .85em;
  padding-block: var(--space-2);
}
.pb-checks li + li { border-top: 1px solid rgba(0,0,0,.09); }
.pb-checks svg { width: 30px; height: 30px; flex: none; color: var(--red); margin-top: .1em; }
.pb-checks strong {
  display: block;
  font-family: var(--font-accent); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: clamp(1.1rem, .4vw + .95rem, 1.3rem);
  line-height: 1.2; color: var(--charcoal);
}
.pb-checks span { display: block; color: #4a4b4f; margin-top: .2em; }
.pb-checks a { color: var(--red-dark); }
.pb-quick .pb-checks li + li { border-top-color: rgba(255,255,255,.12); }
.pb-quick .pb-checks strong { color: var(--white); }
.pb-quick .pb-checks span { color: var(--grey-lede); }
.pb-quick .pb-checks li:last-child { padding-bottom: 0; }

/* ---- White cards in a row (DESIGN.md card spec) ---- */
.pb-cards {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--space-3) var(--space-3);
}
@media (min-width: 760px) { .pb-cards { grid-template-columns: repeat(3, 1fr); } }
.pb-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  border: 1px solid #ecebe9;
  padding: var(--space-3);
  display: flex; flex-direction: column;
}
.pb-card .pb-icon { color: var(--red); margin-bottom: var(--space-2); }
.pb-card .pb-icon svg { width: 36px; height: 36px; display: block; }
.pb-card p { margin: 0; }
/* The verdict always sits on the card's bottom line, so the row lines up
   across all three cards whatever the title length. */
.pb-card .pb-verdict {
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid #ecebe9;
  font-family: var(--font-accent); font-style: italic; font-weight: 600;
  text-transform: uppercase; font-size: 1rem; letter-spacing: .03em;
  color: var(--red-dark);
}
.pb-card h3 { margin-bottom: var(--space-2); }

/* Angle cards: the angle's name is the big word */
.pb-card .pb-word {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.2rem, 1.6vw + 1.4rem, 3rem); line-height: 1;
  color: var(--red); margin: 0 0 var(--space-1);
}
/* The longest angle name ("Convergencia" on the Spanish page) has to fit
   its card in one piece, so the word also scales with the card's width
   (layout check 2026-10-27: it split "CONVERGENCI / A" on tablet + desktop). */
.pb-card:has(.pb-word) { container-type: inline-size; }
.pb-card .pb-word { font-size: min(clamp(2.2rem, 1.6vw + 1.4rem, 3rem), 14.5cqi); }
.pb-card .pb-word small {
  display: block; font-family: var(--font-accent); font-weight: 600;
  font-size: .95rem; letter-spacing: .04em; color: var(--grey); margin-top: .25em;
}

.pb-note { font-size: 1rem; color: var(--grey); margin-block: 0 var(--space-3); }
.pb-note strong { color: var(--charcoal); }

/* ---- The four causes: the service-page tile plate, on the white page ---- */
.pb-tiles {
  counter-reset: svc;
  background: linear-gradient(150deg, var(--charcoal) 0%, var(--black) 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
  overflow: hidden;
  display: grid;
  margin-block: var(--space-3);
}
@media (min-width: 760px) { .pb-tiles { grid-template-columns: repeat(2, 1fr); } }
.pb-tile {
  position: relative;
  counter-increment: svc;
  padding: var(--space-4) var(--space-4) var(--space-3);
}
.pb-tile + .pb-tile { border-top: 1px solid rgba(255,255,255,.10); }
@media (min-width: 760px) {
  .pb-tile + .pb-tile { border-top: 0; }
  .pb-tile:nth-child(even) { border-left: 1px solid rgba(255,255,255,.10); }
  .pb-tile:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.10); }
}
.pb-tile::after {                                 /* ghost index, as on the service grids */
  content: counter(svc, decimal-leading-zero);
  position: absolute; top: .3em; right: .45em;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic; font-weight: 800; font-size: 3rem; line-height: 1;
  color: rgba(255,255,255,.08); pointer-events: none;
}
.pb-tile .pb-icon { color: #ff5a52; margin-bottom: var(--space-2); }
.pb-tile .pb-icon svg { width: 38px; height: 38px; display: block; }
.pb-tile h3 { color: var(--white); }
.pb-tile p { color: var(--grey-lede); margin: 0; }

/* ---- Light callout (road slope, tire cost) ---- */
.pb-callout {
  display: flex; gap: var(--space-2); align-items: flex-start;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-block: var(--space-3);
}
.pb-callout svg { width: 32px; height: 32px; flex: none; color: var(--red); margin-top: .1em; }
.pb-callout h3 { margin-bottom: .3em; }
.pb-callout p { margin: 0; }

/* ---- The red band: the one line to remember (site stat band) ---- */
.pb-band {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-block: var(--space-4);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.7rem, 1.6vw + 1rem, 2.6rem); line-height: 1.05;
}
.post-blocks p.pb-band { color: var(--white); }

/* ---- Split: text + the shop's own photo, with the red seam ---- */
.pb-split { display: grid; gap: var(--space-4); align-items: center; margin-block: var(--space-2) var(--space-3); }
@media (min-width: 900px) { .pb-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.pb-split p:first-child { margin-top: 0; }
.pb-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  border-bottom: 3px solid var(--red);
  aspect-ratio: 4 / 5;
  max-width: 460px;
  justify-self: center;
  width: 100%;
}
.pb-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
@media (max-width: 899.98px) { .pb-photo { aspect-ratio: 4 / 3; max-width: none; } }

/* ---- When to bring it in: checklist card ---- */
.pb-checkcard {
  background: var(--white);
  border: 1px solid #ecebe9;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  padding: var(--space-1) var(--space-4);
  margin-block: var(--space-3);
}
.pb-checkcard .pb-checks li { align-items: center; }
.pb-checkcard .pb-checks span { margin: 0; color: var(--charcoal); font-weight: 600; }

/* Visit line: hours + address as a compact row */
.pb-visit {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  font-size: 1.05rem; color: var(--charcoal); margin-block: 0 var(--space-3);
}

/* Photo figure keeps its own width (no upscaling past the file) */
.post-blocks .post-figure { max-width: 1200px; }

/* ---- Rail: nothing under 15px ---- */
.post-toc a { font-size: 1rem; }
.post-toc h2 { font-size: 1rem; color: #ff5a52; }
.post-aside-card p, .post-aside-hours { font-size: 1rem; }

/* ---- CTA band: the homepage plate. The article page set every section
   transparent, which turned the dark plate white and hid its white heading
   (the "broken strip" Richie saw). Give the band its own ground back. ---- */
body.theme-article section.cta-banner {
  background:
    linear-gradient(210deg, rgba(12,12,13,0) 35%, var(--black) 85%),
    linear-gradient(180deg, var(--charcoal) 0%, var(--black) 100%);
}
body.theme-article .cta-banner .cta-lede { color: var(--grey-lede); margin: 0; }
body.theme-article .cta-banner h2 { color: var(--white); }

@media (max-width: 759.98px) {
  .pb-quick, .pb-band { padding: var(--space-3); }
  .pb-tile { padding: var(--space-3); }
  .pb-checkcard { padding: var(--space-1) var(--space-3); }
  .post-blocks > h2 { margin-block-start: var(--space-5); }
}

/* ---- Card rows line up row for row (Richie, 2026-09-29: side-by-side
   cards must match). Subgrid shares the icon / title / verdict rows. ---- */
@media (min-width: 760px) {
  .pb-cards { grid-auto-rows: auto; }
  .pb-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .pb-card .pb-verdict { margin-top: 0; align-self: start; }
  .pb-card:has(.pb-word) { grid-row: span 2; }
}

/* ---- The rail owns the right edge on desktop: the floating hours/reviews
   badge hid the contents list, so it steps aside here and the rail card
   carries the reviews row instead (DESIGN-STANDARDS blog rail rule). ---- */
@media (min-width: 1080px) {
  body.theme-article .trust-fab { display: none !important; }
}
.post-aside-reviews {
  display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--charcoal-2);
  border-radius: var(--radius);
  padding: .6rem .8rem;
  margin: 0 0 var(--space-2);
  color: var(--white); cursor: pointer; text-align: left;
  font: inherit;
  transition: border-color .3s var(--ease);
}
.post-aside-reviews:hover, .post-aside-reviews:focus-visible { border-color: var(--red); }
.post-aside-reviews .par-num {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-style: italic; font-weight: 800;
  font-size: 2rem; line-height: 1;
}
.post-aside-reviews .par-meta { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 1rem; color: var(--grey-light); line-height: 1.25; }
.post-aside-reviews .par-stars { color: #f5b301; letter-spacing: .1em; font-size: .95rem; }

/* Sticky rail on shorter desktop screens: shed the card's paragraph first,
   then the hours, never the buttons (measured at 1080 / 900 / 768). */
@media (min-width: 1080px) and (max-height: 1000px) {
  .post-aside-card > p { display: none; }
}
@media (min-width: 1080px) and (max-height: 960px) {
  .post-aside-hours { display: none; }
}
@media (min-width: 1080px) and (max-height: 800px) {
  .post-aside-reviews { display: none; }
}

/* Spanish pages turn on auto-hyphens sitewide (long words on narrow phones).
   In the article blocks that split "FRE-NOS" in a card label; break whole
   words instead (overflow-wrap still catches a word too long for the box). */
html[lang="es"] .post-blocks :is(h2, h3, p, span, strong, a, li) { hyphens: manual; -webkit-hyphens: manual; }

/* "All posts" link: was --grey-light on white (2.77:1). */
body.theme-article .post-back a { color: var(--charcoal); font-size: 1rem; font-weight: 600; }
body.theme-article .post-back a:hover { color: var(--red-dark); }

/* .nw spans sit inside checklist spans; keep them inline. */
.post-blocks .pb-checks span.nw { display: inline; margin: 0; }

/* Below the two-column width the rail card repeated the CTA plate right
   under it (hours, Call, Schedule twice, then hours again in the footer).
   The phone has the sticky call bar and the CTA plate; the rail goes. */
@media (max-width: 1079.98px) {
  body.theme-article .post-rail { display: none; }
}
.post-meta .nw { white-space: nowrap; }

/* No lone last word on any heading line (Richie, 2026-10-01, on the CTA
   "...WHAT IS CAUSING THE / PULL."). Balance splits the lines evenly; the
   build also glues the last two words as a fallback. */
body.theme-article .page-header h1,
body.theme-article .post-body h2,
body.theme-article .post-body h3,
body.theme-article .pb-band,
body.theme-article .pb-checks strong,
body.theme-article .post-aside-card h3,
body.theme-article .cta-banner h2 { text-wrap: balance; }
