/* ============================================================
   sector.css: the three Who We Serve sector pages
   (template-parts/sector-page.php). Class prefix sc-.
   Builds on marketing.css (mk-), which loads first; read its header
   for the shared hero band, section headers, buttons, cards, demo band
   and animation classes. Enqueued for is_page( tektome_sector_slugs() )
   in functions.php.

   Design: Sector-Contractors / -OwnerOperators / -Housebuilders.dc.html
   (Homepage v0.5). Layout, colours, borders and radii follow the design;
   type sizes follow the site scale (marketing.css header):
     row and list titles 17px / 600 (as .cc-card__t), small body 15px / 1.6
     (as .mk-card__x), stat line 14.5px (as .cc-stat__t), mono labels
     11-12px.

   Sections (see sector-page.php; hooks .sc-hero, .sc-problem, .sc-value,
   .sc-outcome sit on the section elements next to .mk-hero / .mk-sec):
     .sc-meta__i        #hero: one entry of the mono sector list, kept whole.
     .sc-split          Two columns that wrap: heading (.mk-head) on the left,
                         content on the right (the design's flex 1 : 1.5, with
                         23rem / 30rem bases). Used by #problem and #outcome.
     .sc-list            #problem: white numbered list (ol > li.sc-list__item).
     .sc-stat            #problem: sourced figure line, mono source under it.
     .sc-cards           #value: auto-fit card grid of .mk-card.mk-card--top,
                         each closing on a "Measured in" line (.sc-card__measure).
     .sc-rows / .sc-row  #outcome: white rows, sky border, arch-purple left rule,
                         mono label (.sc-row__k) beside the title and text.
     .sc-t / .sc-x       Title and text inside a list item or row.

   Animation: the #problem column (.sc-split__main), the card grid and the
   row stack each carry data-mk-anim; their items .mk-rise with the
   design's .05/.15/.25s stagger when the block scrolls into view
   (marketing.js). The framed .sc-list is .mk-fade with no delay, so its
   white card never shows empty while its rows are still armed.
   ============================================================ */


/* ---------- #hero (the band itself is .mk-hero--interior) ---------- */

/* One sector-list entry and its trailing dot: lines break between entries. */
.sc-meta__i { white-space: nowrap; }


/* ---------- Two-column split (#problem, #outcome) ---------- */

.sc-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 48px;
}
/* The design's bases are 20rem / 30rem. The heading column starts at 23rem
   here because the site's h2 is larger than the design's (44px, not 40px):
   at 20rem "and your programme." no longer fits one line at 1440. */
.sc-split > .sc-split__head {
  flex: 1 1 23rem;
  min-width: 0;
  margin: 0;
}
.sc-split__main {
  flex: 1.5 1 30rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Shared title / text pair (list items, rows). */
.sc-t {
  font-size: 17px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  color: var(--color-data-black);
  text-wrap: pretty;
}
.sc-x {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-secondary);
  text-wrap: pretty;
}


/* ---------- #problem ---------- */

/* Grey band straight under the dark hero: the design rules its bottom edge only. */
.sc-problem { border-top: 0; }

.sc-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--color-draft-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}
.sc-list__item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
}
.sc-list__item + .sc-list__item { border-top: 1px solid var(--border-subtle); }
.sc-list__n {
  flex: none;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--purple-800);
}
.sc-list__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sc-stat {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-secondary);
  text-wrap: pretty;
}
.sc-stat strong { font-weight: var(--fw-semibold); color: var(--color-data-black); }
.sc-stat__src {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}


/* ---------- #value ---------- */

.sc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 24px;
}
.sc-card__measure {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-data-black);
}
.sc-card__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-800);
}


/* ---------- #outcome ---------- */

.sc-rows { gap: 12px; }
.sc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  padding: 18px 20px;
  background: var(--color-draft-white);
  border: 1px solid var(--color-sky-300);
  border-left: 3px solid var(--color-arch-purple);
  border-radius: var(--radius-lg);
}
.sc-row__k {
  flex: 0 0 10rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-800);
}
.sc-row__body {
  flex: 1 1 18rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Two-column split (from 976px: 23rem head + 48px gap + 30rem main + 80px
   gutters; keep in step with .sc-split). The site's wider heading column
   leaves the rows narrower than the design's, so with the design's 18rem
   basis the label dropped above the title from 976px to 1035px. 15rem keeps
   it beside the title at every two-column width, as in the design. Single
   column (phones, tablets) keeps 18rem, so the rows stack where the
   design's do. */
@media (min-width: 976px) {
  .sc-row__body { flex-basis: 15rem; }
}


/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .sc-list__item,
  .sc-row { padding: 16px; }
  .sc-list__item { gap: 12px; }
}
