/* ==========================================================================
   process.html-only rules. Everything else (header, footer, buttons, cards,
   hero shell, related-links, CTA, back-to-top, global typography, dark-mode
   colors) comes from css/*.css and must not be redefined here.
   Requires the full shared foundation to be loaded first.
   ========================================================================== */

/* ---- hero: page-scoped headline size ----
   The shared h1 scale (base.css/hero.css, clamp 2.75-5.7rem) is tuned for
   short headlines and a wide text column. This page's hero uses the
   narrower "balanced" 1.28fr column (hero.css), so the default scale's
   widest word forced the grid's auto-min column sizing to blow out column
   1 and starve the hero card down to ~284px instead of its fair ~485px
   share (confirmed empirically - fixing the h1 size alone restored the
   grid to hero.css's own documented 620.9/485.1px split). */

.hero h1 {
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  line-height: 1.15;
}

/* ---- hero summary card ----
   Uses the shared .hero-card--icon.hero-card--icon-lg family (hero.css) -
   no page-specific rules needed here. This is now the same component
   family used across every rebuilt service page's hero card, rather than
   the page-specific diagram layouts tried in earlier rounds (a 3-column
   stage row, then a process-path-with-arrows) - both read as too
   diagram-like next to the plain-prose cards on every other page. No
   process steps or arrows live here, since the Step by Step section
   already covers them. */

/* ---- process principles: 3-card row + centered 2-card row ----
   Reuses the shared .card-base.icon-card.process-icon-card semantic
   subtype (cards.css already documents this exact class as one of the two
   intended icon-card subtypes). ---- */

.process-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-icon-grid.two-bottom {
  grid-template-columns: repeat(2, 1fr);
  max-width: 765px;
  margin: 24px auto 0;
}

@media (max-width: 900px) {
  .process-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-icon-grid.two-bottom {
    max-width: none;
    margin-top: 18px;
  }
}

@media (max-width: 640px) {
  .process-icon-grid,
  .process-icon-grid.two-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: none;
  }
}

/* ---- step-by-step: vertical connected timeline ----
   Replaces the prior flat full-width editorial rows (number | kicker+title
   | copy+bullets across three wide columns), which read as a spreadsheet
   and required too much horizontal eye movement. Each step is now a single
   compact content card next to its own numbered marker; markers are
   visually chained by a continuous vertical line running through the
   marker column, giving the section an obvious top-to-bottom sequence
   instead of five independent rows. */

.process-timeline {
  max-width: 960px;
  margin: 0 auto;
}

.process-timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.process-timeline-step:last-child {
  margin-bottom: 0;
}

/* Bridges the exact 28px gap between one step and the next (matches
   .process-timeline-step's own margin-bottom above) so the line stays
   visually unbroken, without pulling that gap into the row's own height -
   see the .process-timeline-connector comment for why that separation
   matters for exact marker centering. */
.process-timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  bottom: -28px;
  width: 2px;
  height: 28px;
  background: var(--border-color);
}

.process-timeline-marker-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-timeline-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid var(--accent-color);
  background: var(--surface-bg);
  color: var(--accent-color);
  font-weight: 800;
  font-size: 0.88rem;
}

/* ---- marker centering: two equal flex segments around the marker ----
   .process-timeline-marker-col is stretched by the grid's default
   align-items:stretch to exactly the row's height, which is now exactly
   the card's own height (spacing between steps lives on
   .process-timeline-step's margin-bottom, outside the row, so it can no
   longer skew this calculation the way it did in an earlier version).
   Splitting that height into two equal flex:1 segments above and below
   the marker puts the marker exactly at the card's vertical center,
   regardless of how tall any given card is - confirmed empirically
   (0px offset from card center at every step, every desktop width). The
   ::after bridge above carries the line across the gap between cards. */
.process-timeline-connector {
  flex: 1;
  width: 2px;
  background: var(--border-color);
}

.process-timeline-step:first-child .process-timeline-connector-top {
  background: transparent;
}

.process-timeline-step:last-child .process-timeline-connector-bottom {
  background: transparent;
}

.process-timeline-card {
  padding: 26px 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background: var(--surface-bg);
  box-shadow: var(--shadow-card);
}

.process-timeline-card h3 {
  margin: 10px 0 14px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.process-timeline-card > p {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: var(--fs-secondary);
  line-height: 1.6;
}

.process-timeline-card .process-detail-list {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .process-timeline-step {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }

  .process-timeline-step:not(:last-child)::after {
    left: 17px;
    bottom: -20px;
    height: 20px;
  }

  .process-timeline-marker {
    width: 36px;
    height: 36px;
    font-size: 0.76rem;
  }

  /* Below 640px, cards get much taller (bullets wrap to more lines), so a
     vertically-centered marker would drift far from the step heading it
     labels. Switch from "equal flex above/below" to a fixed top offset
     that keeps the marker beside the kicker/heading instead: 14px of fixed
     line + half the 36px marker = ~32px to the marker's center, within
     the requested 28-36px range. The line still stays continuous, since
     connector-bottom (flex:1) picks up all remaining stretched height. */
  .process-timeline-connector-top {
    flex: 0 0 14px;
  }

  .process-timeline-card {
    padding: 20px;
  }
}

.process-row-kicker {
  margin-bottom: 6px;
  color: var(--accent-label-color);
  font-size: var(--fs-label-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-detail-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.process-detail-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: var(--fs-secondary);
  line-height: 1.5;
}

.process-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent-color);
}
