/* ==================================================================================================
 * about.css — /about in Candidate B ("the living board").
 * Uses b-foundation.css tokens (--b-*) and primitives (.b-btn, .b-board, .b-wash, .b-tab) only.
 *
 * The page: a light reading page, hairlines for structure, no card shadows, no side stripes.
 *   head    — wash, eyebrow, h1, lead, three actions, the five facts as a hairline ledger
 *   body    — [sticky numbered TOC | main column] from 1024
 *   ONE dark object: the price board in #employers (the only numbers a visitor acts on)
 *   close   — quiet band, navy brand button
 * Red: once — the "Post a job" primary in the head. Eyebrows are ink, not theme.css's red.
 * ================================================================================================= */

/* ---------- head ---------- */
.ab-head { padding: 28px 0 32px; border-bottom: var(--b-hair); }
.ab-head__in { display: grid; gap: 0; }
.ab-crumb { margin-bottom: 18px; font-size: var(--b-t-md); }
.ab-crumb a { min-height: 24px; color: var(--b-ink-2); }
.ab-eyebrow.eyebrow { font: 700 var(--b-t-sm)/1 var(--b-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--b-ink-3); margin: 0 0 14px; }
.ab-head h1 { margin: 0; max-width: 22ch; font-size: var(--b-t-h1); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--b-navy); }
.ab-lead { margin: 16px 0 0; max-width: 62ch; font-size: var(--b-t-body); line-height: 1.6; color: var(--b-ink-2); }
.ab-lead strong { color: var(--b-ink); }
.ab-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.ab-actions .b-btn { flex: 1 1 auto; }
@media (min-width: 560px) { .ab-actions .b-btn { flex: 0 0 auto; } }

/* facts: the .b-now ledger from home-b — 1px gaps over the line colour, white cells, tabular figures */
.about-facts {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--b-line); border: var(--b-hair); border-radius: 12px; overflow: hidden;
}
.about-facts li { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.about-facts li:last-child { grid-column: 1 / -1; }
.about-facts strong { font: 800 1.25rem/1.15 var(--b-disp); letter-spacing: -.02em; color: var(--b-navy); }
.about-facts span { font-size: var(--b-t-md); color: var(--b-ink-3); }
.about-facts a { color: var(--b-navy); font-weight: 600; }
@media (min-width: 768px) {
  .ab-head { padding: 40px 0 44px; }
  .about-facts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .about-facts li:last-child { grid-column: auto; }
  .about-facts li { padding: 18px 18px 16px; }
  .about-facts strong { font-size: 1.375rem; }
}

/* ---------- layout ---------- */
.ab-body { padding: 40px 0 56px; }
.about-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.about-toc { display: none; }
.about-main { min-width: 0; display: grid; gap: 48px; align-content: start; }
.about-main > * { min-width: 0; }
@media (min-width: 768px) { .ab-body { padding: 56px 0 72px; } .about-main { gap: 64px; } }
@media (min-width: 1024px) {
  .about-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
  .about-toc { display: block; position: sticky; top: calc(var(--cc-header-h) + 28px); align-self: start; }
  .about-toc__title { font: 700 var(--b-t-xs)/1 var(--b-sans); letter-spacing: var(--b-track-caps); text-transform: uppercase; color: var(--b-ink-3); margin: 0 0 10px; }
  .about-toc ol { list-style: none; margin: 0; padding: 0; border-top: var(--b-hair); }
  .about-toc li { border-bottom: var(--b-hair); }
  .about-toc ol a {
    display: flex; align-items: center; gap: 12px; min-height: var(--b-tap); padding: 0 8px;
    text-decoration: none; font-size: var(--b-t-base); font-weight: 500; color: var(--b-ink-2);
    transition: color .14s var(--b-e), background .14s var(--b-e);
  }
  .about-toc__n { font-size: var(--b-t-sm); color: var(--b-ink-3); }
  .about-toc ol a:hover { color: var(--b-navy); background: var(--b-navy-50); }
}
@media (min-width: 1200px) { .about-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; } }

/* ---------- sections + prose ---------- */
.about-section { scroll-margin-top: calc(var(--cc-header-h) + 16px); }
.about-section > h2,
.about-section.prose > h2 { margin: 0 0 16px; font-size: var(--b-t-h2); font-weight: 800; letter-spacing: -.026em; line-height: 1.12; color: var(--b-navy); }
.about-section h3 { font-size: var(--b-t-h3); letter-spacing: -.012em; color: var(--b-navy); }
.about-main .prose { max-width: 70ch; }
.about-main .prose p { color: var(--b-ink); line-height: 1.65; }
.about-main .prose strong { color: var(--b-ink); font-weight: 650; }
.about-main .prose a { color: var(--b-navy); font-weight: 500; text-decoration-color: var(--b-line-2); }
.about-main .prose a:hover { color: var(--b-navy-700); text-decoration-color: currentColor; }
.ab-more { margin-top: 4px; }
.ab-more a { display: inline-flex; align-items: center; min-height: var(--b-tap); font-weight: 600 !important; text-decoration: none; }

/* ---------- quick answers (AEO) — a 1px ledger, not cards ---------- */
.about-quick {
  margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px;
  background: var(--b-line); border: var(--b-hair); border-radius: var(--b-r); overflow: hidden;
}
.about-quick__item { background: #fff; padding: 18px 20px; }
.about-quick dt { font: 700 var(--b-t-ui)/1.3 var(--b-disp); color: var(--b-navy); margin-bottom: 6px; letter-spacing: -.008em; }
.about-quick dd { margin: 0; font-size: var(--b-t-base); line-height: 1.55; color: var(--b-ink-2); }
/* an odd last answer takes the whole row rather than leaving an empty grey cell */
@media (min-width: 640px) and (max-width: 1279px) {
  .about-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-quick__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .about-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-quick__item:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .about-quick__item:last-child:nth-child(3n+2) { grid-column: span 2; }
}

/* ---------- audiences — hairline grid, 1 → 2 → 3 → 5 ---------- */
.about-aud {
  list-style: none; margin: 20px 0 32px; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px;
  background: var(--b-line); border: var(--b-hair); border-radius: var(--b-r); overflow: hidden;
}
.about-aud__card { position: relative; background: #fff; padding: 18px; display: grid; gap: 8px; align-content: start; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; transition: background .16s var(--b-e); }
.about-aud__card:hover { background: var(--b-bg-2); }
.about-aud__card > :not(.about-aud__icon) { grid-column: 2; }
.about-aud__icon { grid-row: 1 / span 3; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--b-navy)) 12%, #fff); }
.about-aud__icon::before { content: ""; width: 22px; height: 22px; background: color-mix(in srgb, var(--c, var(--b-navy)) 78%, #000); -webkit-mask: var(--ico) center/22px no-repeat; mask: var(--ico) center/22px no-repeat; }
.about-aud__card--professionals  { --c: var(--b-aud-professionals); }
.about-aud__card--new_immigrants { --c: var(--b-aud-new_immigrants); }
.about-aud__card--indigenous     { --c: var(--b-aud-indigenous); }
.about-aud__card--refugees       { --c: var(--b-aud-refugees); }
.about-aud__card--youth          { --c: var(--b-aud-youth); }
.about-aud__card h3 { margin: 0; font-size: var(--b-t-h3); }
.about-aud__card h3 a { color: var(--b-navy); text-decoration: none; }
.about-aud__card h3 a::after { content: ""; position: absolute; inset: 0; }
.about-aud__card h3 .b-arr { margin-left: 6px; font-weight: 500; color: var(--b-ink-3); }
.about-aud__card p { margin: 0; font-size: var(--b-t-base); line-height: 1.5; color: var(--b-ink-2); }
.about-aud__tag.aud { justify-self: start; margin-top: 2px; border-color: var(--b-line); color: var(--b-ink-2); font-size: var(--b-t-sm); }
@media (min-width: 640px) { .about-aud { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .about-aud { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) {
  .about-aud { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .about-aud__card { display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; }
  .about-aud__icon { margin-bottom: 6px; }
  .about-aud__tag.aud { margin-top: auto; align-self: flex-start; }
}

/* ---------- the price board: the one dark object on the page ---------- */
.ab-price { margin: 24px 0 12px; }
.ab-price .b-board__bar { padding: 14px 20px; }
.about-section .ab-price .b-board__h { margin: 0; font-size: var(--b-t-ui); color: var(--b-bd-fg); }
.about-price { width: 100%; border-collapse: collapse; font-size: var(--b-t-ui); color: var(--b-bd-fg); }
.about-price th, .about-price td { text-align: left; padding: 14px 20px; border-top: var(--b-hair-on); }
.about-price thead th { border-top: 0; padding-top: 12px; padding-bottom: 10px; font: 600 var(--b-t-xs)/1.2 var(--b-sans); text-transform: uppercase; letter-spacing: var(--b-track-caps); color: var(--b-bd-fg-3); }
.about-price thead th:not(:first-child), .about-price tbody td { text-align: right; }
.about-price tbody th { font-weight: 600; color: var(--b-bd-fg); }
.about-price td { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; color: var(--b-bd-fg-2); white-space: nowrap; }
.about-price tbody td:last-child { color: var(--b-bd-fg); font-weight: 700; font-size: var(--b-t-body); }
.about-price tbody tr { transition: background .16s var(--b-e); }
.about-price tbody tr:hover { background: var(--b-bd-2); }
.ab-price__note { font-size: var(--b-t-base); color: var(--b-ink-2) !important; }
/* phone: each payer is a row, the three figures share one tabular line beneath it */
@media (max-width: 559px) {
  .about-price thead { display: none; }
  .about-price tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 16px; border-top: var(--b-hair-on); }
  .about-price tbody tr:first-child { border-top: 0; }
  .about-price tbody th { grid-column: 1 / -1; padding: 0 0 8px; border: 0; }
  .about-price tbody td { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; text-align: left; }
  .about-price tbody td:last-child { text-align: right; align-items: flex-end; }
  .about-price tbody td:nth-child(3) { align-items: center; }
  .about-price tbody td::before { content: attr(data-label); font: 600 var(--b-t-xs)/1.2 var(--b-sans); text-transform: uppercase; letter-spacing: var(--b-track-caps); color: var(--b-bd-fg-3); }
  .ab-price .b-board__bar { padding: 12px 16px; }
}

/* ---------- how it works — two ruled columns, tabular step numbers ---------- */
.ab-steps { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .ab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.about-steps { border-top: 2px solid var(--b-navy); padding-top: 16px; }
.about-steps h3 { margin: 0 0 8px; }
.about-steps__list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.about-steps__list li { position: relative; padding: 14px 0 14px 44px; border-bottom: var(--b-hair); counter-increment: step; font-size: var(--b-t-ui); line-height: 1.55; color: var(--b-ink-2); }
.about-steps__list li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 15px; font: 700 var(--b-t-base)/1.4 var(--b-sans); font-variant-numeric: tabular-nums; color: var(--b-ink-3); }
.about-steps__list strong { color: var(--b-ink); }
.about-steps__list a { color: var(--b-navy); }

/* ---------- commitment — 2×2 ledger + the citation ---------- */
.ab-commits {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px;
  background: var(--b-line); border: var(--b-hair); border-radius: var(--b-r); overflow: hidden;
}
@media (min-width: 640px) { .ab-commits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-commit { background: #fff; padding: 20px; }
.about-commit h3 { margin: 0 0 6px; }
.about-commit p { margin: 0; font-size: var(--b-t-base); line-height: 1.55; color: var(--b-ink-2); }
.about-cite { margin-top: 16px; padding: 16px 20px; border: var(--b-hair); border-radius: var(--b-r-md); background: var(--b-bg-2); max-width: 72ch; }
.about-cite h3 { margin: 0 0 6px; font: 600 var(--b-t-xs)/1.2 var(--b-sans); text-transform: uppercase; letter-spacing: var(--b-track-caps); color: var(--b-ink-3); }
.about-cite p { margin: 0; font-size: var(--b-t-base); color: var(--b-ink-2); overflow-wrap: anywhere; }
.about-cite q { font-style: italic; }

/* ---------- FAQ — ruled <details> rows, not cards ---------- */
.about-section#faq > .prose { margin: 0 0 20px; color: var(--b-ink-2); }
.about-section#faq > .prose a { color: var(--b-navy); font-weight: 500; }
.faq { max-width: 80ch; border-top: var(--b-hair); }
.faq__item { border-bottom: var(--b-hair); }
.faq__item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 12px 4px; font: 600 var(--b-t-body)/1.4 var(--b-sans); letter-spacing: -.008em; color: var(--b-ink);
  transition: color .14s var(--b-e), background .14s var(--b-e);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { flex: 1 1 auto; }
/* the disclosure mark: a drawn chevron, rotates when open */
.faq__item summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin: 0 6px 4px 0;
  border-right: 2px solid var(--b-ink-3); border-bottom: 2px solid var(--b-ink-3);
  transform: rotate(45deg); transition: transform .18s var(--b-e), border-color .14s var(--b-e);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; border-color: var(--b-navy); }
.faq__item summary:hover { color: var(--b-navy); background: var(--b-bg-2); }
.faq__item[open] summary { color: var(--b-navy); }
.faq__body { padding: 0 4px 18px; }
.faq__body p { margin: 0 0 .5em; max-width: 70ch; font-size: var(--b-t-ui); line-height: 1.6; color: var(--b-ink-2); }
.faq__more { font-size: var(--b-t-base); }
.faq__more a { display: inline-flex; align-items: center; min-height: var(--b-tap); color: var(--b-navy); font-weight: 600; text-decoration: none; }

/* ---------- closing band ---------- */
.ab-close { background: var(--b-bg-2); border-top: var(--b-hair); padding: 48px 0; }
.cta-band { display: grid; gap: 20px; align-items: center; }
.cta-band h2 { margin: 0; font-size: var(--b-t-h2); font-weight: 800; letter-spacing: -.026em; color: var(--b-navy); }
.ab-close__p { margin: 10px 0 0; max-width: 60ch; color: var(--b-ink-2); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band__actions .b-btn { flex: 1 1 auto; }
@media (min-width: 640px) { .cta-band__actions .b-btn { flex: 0 0 auto; } }
@media (min-width: 900px) { .ab-close { padding: 64px 0; } .cta-band { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }

/* print: the board prints as a plain ruled table (b-foundation §12 resets the panel colours) */
@media print {
  .about-price, .about-price th, .about-price td { color: #000 !important; }
  .about-toc, .ab-actions, .ab-close { display: none; }
}
