/* ==========================================================================
   The South Carolina Forum — Phase Two Report
   Implementation of "SC Phase Two Report.dc.html".

   Design tokens come from the imported design system in _scds/tokens/*.css.
   This sheet only adds page-level composition. Values that look arbitrary
   (1cm rule offset, 42px label gutter, 104px label shelf) are carried over
   from the design source deliberately.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Type overrides
   The design system falls back to system serif/sans because the licensed
   Freight families were never supplied. The design pins the webfont stand-ins,
   so they are re-declared here after the token sheets load.
   -------------------------------------------------------------------------- */
:root {
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Open Sans', system-ui, sans-serif;
  --font-script: 'Caveat', cursive;
  --tracking-display: -0.015em;
  --tracking-heading: -0.005em;

  /* Per-issue accents. Index 1-4 maps to the four priority issues and is
     reused by the section 1 rules, the issue tabs, chips and survey bars. */
  --issue-1: var(--sc-forum-blue);
  --issue-2: var(--sc-pine);
  --issue-3: var(--sc-clay);
  --issue-4: var(--sc-harvest);

  --nav-h: 86px;
  --page-gutter: 50px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
}

a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--text-link-hover); }
* { box-sizing: border-box; }

.shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--surface-page);
  min-height: 100vh;
  font-family: var(--font-sans);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--sc-palmetto-blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   2. Shared primitives lifted out of the design system components
   -------------------------------------------------------------------------- */

/* Eyebrow (rule variant) */
.eyebrow { margin-bottom: 20px; }
.eyebrow::before {
  content: "";
  display: block;
  width: 48px;
  height: var(--rule-heavy);
  background: var(--sc-palmetto-blue);
  margin-bottom: var(--space-3);
}
.eyebrow--on-dark::before { background: #fff; }

.label,
.eyebrow > span {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text-muted);
}
.eyebrow--on-dark > span { color: var(--text-on-dark-muted); }

/* Card (design system Card, padded / unpadded) */
.card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-default);
  transition: border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.card--padded { padding: var(--space-6); }

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: var(--tracking-button);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-size: 17px;
  padding: 14px 28px;
  transition: background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard);
}
.btn--primary-on-dark { background: #fff; color: var(--sc-palmetto-blue); border-color: #fff; }
.btn--primary-on-dark:hover { background: var(--sc-water); border-color: var(--sc-water); color: var(--sc-palmetto-blue); }
.btn--secondary-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--secondary-on-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* Rules that sit above a label or a stat */
.rule { height: var(--rule-heavy); }
.rule--48 { width: 48px; }
.rule--40 { width: 40px; margin-bottom: 12px; }
.rule--36 { width: 36px; margin: 12px 0; }

/* Focus is the design system's: sky outline, 2px offset */
a:focus-visible,
button:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.section--dark a:focus-visible,
.section--dark button:focus-visible,
.issue-tab:focus-visible { outline-color: var(--sc-harvest-mid); }

/* --------------------------------------------------------------------------
   3. Masthead navigation
   -------------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-default);
}
.masthead__inner {
  width: 100%;
  padding: 13px var(--page-gutter);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}
.masthead__logo { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.masthead__logo img { display: block; height: clamp(34px, 3.4vw, 46px); width: auto; }

.navlist {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  margin-left: auto;
}
.navlist a {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--text-muted);
}
.navlist a .num { font-size: 11px; opacity: .55; }
.navlist a[aria-current="true"] { background: var(--sc-palmetto-blue); color: #fff; }
.navlist a[aria-current="true"] .num { opacity: .8; }

/* --------------------------------------------------------------------------
   4. Section shell
   -------------------------------------------------------------------------- */
.report { width: 100%; padding: 0 var(--page-gutter); }

.section {
  scroll-margin-top: var(--nav-h);
  margin: 32px 0;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--surface-card);
}
.section--dark {
  background: var(--sc-palmetto-blue);
  border: 0;
  padding-left: clamp(24px, 4vw, 48px);
  padding-right: clamp(24px, 4vw, 48px);
}
.section--water { background: var(--sc-water-300); }
.section--khaki { background: var(--sc-khaki-300); }
.section--bare { padding: 0; border: 0; background: none; margin: 32px 0 48px; }

/* Scroll reveal. Only armed when JS is running, so the report is fully
   readable with scripting off. */
.js .section[data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(18px);
}
.js .section[data-reveal] {
  transition: opacity 620ms cubic-bezier(.22,.61,.36,1),
              transform 620ms cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-size: clamp(32px, 4.6vw, 52px);
  color: #fff;
  margin: 0;
  max-width: 20ch;
  text-wrap: pretty;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--text-strong);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.lede {
  font-size: var(--size-body);
  line-height: var(--leading-body);
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0 0 32px;
}
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose p { font-size: var(--size-body); line-height: var(--leading-body); margin: 0; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   5. Section 01 — Overview
   -------------------------------------------------------------------------- */
.overview__prose { display: grid; gap: 18px; margin-top: 28px; max-width: 68ch; }
.overview__prose p { margin: 0; text-wrap: pretty; line-height: var(--leading-body); }
.overview__prose p:first-child { font-size: var(--size-body-lg); color: #fff; }
.overview__prose p:last-child { font-size: var(--size-body-sm); color: var(--text-on-dark-muted); }

.quadrant {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(10px, 1.8vw, 20px);
}
.quadrant--stats { margin-top: 48px; align-items: stretch; }
.quadrant--rules { margin-top: 1cm; }
.quadrant--issues { margin-top: 12px; }

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: clamp(14px, 1.8vw, 22px);
}
.stat-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.stat-card__label {
  font-family: var(--font-sans);
  font-size: var(--size-body-sm);
  line-height: 1.45;
  color: var(--text-muted);
  text-wrap: pretty;
  margin-top: 16px;
}
.quadrant--rules > .rule { width: auto; }
/* Desktop lays the four issue names out as their own row under the rules.
   Below 1000px that row is replaced by a copy inside each stat card. */
.stat-card__issue { display: none; }

.issue-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
  color: #fff;
}

/* --------------------------------------------------------------------------
   6. Section 02 — Process
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 0;
  align-items: stretch;
  margin-top: 40px;
}
.process__step { padding: 0 clamp(14px, 1.8vw, 24px); border-left: 2px solid var(--sc-palmetto-blue); }
.process__step:first-child { padding-left: 0; border-left: 0; }
.process__step:last-child { padding-right: 0; }
.process__step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text-strong);
  margin: 10px 0;
  text-wrap: pretty;
}
.process__hint { font-size: 13px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }

.callout {
  margin-top: 32px;
  background: var(--surface-accent);
  border: 1px solid var(--sc-water);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: clamp(12px, 1.08vw, 13px);
  line-height: 1.5;
  color: var(--text-strong);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   7. Section 03 — Who took part
   -------------------------------------------------------------------------- */
.section--water .lede { margin-bottom: 40px; }

.participants {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 20px);
  align-items: stretch;
}
.participant-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: clamp(14px, 1.8vw, 22px);
}
.participant-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.participant-card__label { font-family: var(--font-sans); font-size: 13px; line-height: 1.45; color: var(--text-muted); text-wrap: pretty; }

.demographics {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: clamp(16px, 2vw, 24px);
}
.demo {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: clamp(16px, 2vw, 24px);
}
.demo h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h5);
  letter-spacing: -0.005em;
  color: var(--text-strong);
  margin: 12px 0 4px;
}
.demo__source { margin-bottom: 20px; }
.demo__chart { padding: 0 26px; }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 240px;
  border-bottom: 1px solid var(--border-default);
}
.bars__col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; }
.bars__pct { flex: 0 0 42px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; }
.bars__pct span {
  transform: rotate(-45deg);
  transform-origin: bottom left;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  color: var(--text-strong);
}
.bars__track { flex: 1 1 auto; display: flex; align-items: flex-end; }
.bars__bar {
  width: 100%;
  flex: 0 0 auto;
  border-radius: 2px 2px 0 0;
  background: var(--demo-color);
  height: 0;
  transition: height 820ms cubic-bezier(.22,.61,.36,1) var(--bar-delay, 0ms);
}
.demo.is-charted .bars__bar { height: var(--bar-h); }
/* With scripting off the bars are drawn at full height immediately. */
html:not(.js) .bars__bar { height: var(--bar-h); }

.bars__labels { display: flex; gap: 6px; height: 104px; }
.bars__labels > div { flex: 1 1 0; min-width: 0; position: relative; }
.bars__labels span {
  position: absolute;
  top: 6px;
  right: 50%;
  transform: rotate(-45deg);
  transform-origin: top right;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1;
  color: var(--text-muted);
}

.footnote { font-size: 12px; line-height: 1.55; color: var(--text-subtle); margin: 20px 0 0; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   8. Section 04 — Proposals
   -------------------------------------------------------------------------- */
.section--proposals .lede { color: var(--text-body); font-size: var(--size-body-lg); margin-bottom: 40px; }

.issue-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
  margin-bottom: 36px;
}
.issue-tab {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  border: 0;
  background: var(--issue-ink);
}
.issue-tab[aria-selected="true"] { box-shadow: 0 0 0 3px var(--sc-harvest-mid); }
.issue-tab__eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  color: #fff;
}
.issue-tab__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(11px, 1.15vw, 14px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  color: #fff;
}

.issue-panel__meta { margin-bottom: 10px; }
.issue-panel h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.005em;
  color: var(--text-strong);
  margin: 0 0 16px;
}
.issue-panel__summary { font-size: var(--size-body); line-height: var(--leading-body); max-width: 70ch; margin: 0 0 32px; }

.proposals { display: flex; flex-direction: column; gap: 12px; }

.disclosure__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.disclosure__trigger:hover { background: var(--sc-forum-blue-100); }
.disclosure__chip {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  line-height: 1.2;
  color: #fff;
  background: var(--issue-ink);
}
.disclosure__title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h5);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text-strong);
  text-wrap: pretty;
}
.disclosure__glyph {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  color: var(--sc-forum-blue);
  width: 18px;
  text-align: center;
}
.disclosure__trigger[aria-expanded="true"] .disclosure__glyph::before { content: "\2212"; }
.disclosure__trigger[aria-expanded="false"] .disclosure__glyph::before { content: "+"; }

.disclosure__panel { border-top: 1px solid var(--border-default); padding: 24px; }
.proposal__detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.proposal__detail .label { margin-bottom: 8px; }
.proposal__detail p { font-size: var(--size-body-sm); line-height: var(--leading-body); text-wrap: pretty; margin: 0; }

.survey { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--border-default); }
.survey > .label { margin-bottom: 14px; }
.survey__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin-bottom: 28px;
}
.survey__group > .label { margin-bottom: 14px; }
.survey__rows { display: flex; flex-direction: column; gap: 12px; }
.survey__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}
.survey__label { font-size: var(--size-body-sm); line-height: 1.35; color: var(--text-strong); text-wrap: pretty; }
.survey__pct {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--size-body-sm);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.survey__track { height: 8px; border-radius: 99px; background: var(--sc-khaki-300); overflow: hidden; }
.survey__fill {
  height: 100%;
  border-radius: 99px;
  background: var(--issue-ink);
  width: 0;
  transition: width 680ms cubic-bezier(.22,.61,.36,1);
}
.survey.is-charted .survey__fill,
html:not(.js) .survey__fill { width: var(--fill-w); }
.survey__summary { font-size: var(--size-body-sm); line-height: var(--leading-body); max-width: 70ch; margin: 0; }

/* --------------------------------------------------------------------------
   9. Section 05 — In the room
   -------------------------------------------------------------------------- */
.photos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(148px, 15vw, 224px);
  gap: 14px;
}
.photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  grid-column: span var(--span);
  /* Brand-tinted ground so a tile still reads as intentional before the
     photograph loads (or if it is missing from uploads/). */
  background: linear-gradient(160deg, var(--sc-palmetto-blue), var(--sc-forum-blue));
}
.photo__img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.photo__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 11px;
  background: linear-gradient(to top, rgba(12,26,45,0.72), rgba(12,26,45,0));
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  color: #fff;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. Section 06 — In their words
   -------------------------------------------------------------------------- */
.script-line { font-family: var(--font-script); font-size: 26px; color: var(--sc-forum-blue); margin-bottom: 32px; }
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  font-style: italic;
}
.pullquote { margin: 0; border-left: var(--rule-heavy) solid var(--sc-forum-blue); padding-left: var(--space-6); }
.pullquote__body {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--size-h4);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--sc-palmetto-blue);
}
.pullquote footer {
  margin-top: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--size-body-sm);
  color: var(--text-muted);
  font-style: normal;
}

/* --------------------------------------------------------------------------
   11. Section 07 — What's next
   -------------------------------------------------------------------------- */
.timeline { display: flex; flex-direction: column; gap: 16px; }
.timeline__row { display: flex; gap: 24px; align-items: flex-start; }
.timeline__n {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h3);
  line-height: 1;
  color: var(--sc-palmetto-blue);
}
.timeline__body { flex: 1 1 auto; min-width: 0; }
.timeline__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-h5);
  letter-spacing: -0.005em;
  color: var(--text-strong);
  margin: 8px 0;
}
.timeline__hint { font-size: var(--size-body-sm); line-height: var(--leading-body); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   12. Section 08 — Join us
   -------------------------------------------------------------------------- */
.join { background: var(--surface-inverse); border-radius: var(--radius-lg); padding: 25px; }
.join__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 44px;
  margin: 0 0 32px;
}
.join__logo img { height: 72px; width: auto; display: block; }
.join__body { padding: 0 clamp(8px, 3vw, 47px) clamp(16px, 3vw, 47px); }
.join__body .h2 { font-size: clamp(30px, 4vw, 44px); color: #fff; margin-bottom: 18px; }
.join__body p {
  font-size: var(--size-body-lg);
  line-height: var(--leading-body);
  max-width: 58ch;
  margin: 0 0 32px;
  color: var(--text-on-dark-muted);
}
.join__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.colophon { margin-top: 28px; }

/* --------------------------------------------------------------------------
   13. Responsive
   The design source computed two breakpoints in JS (stack < 860, tight < 1120).
   Those are reproduced here, plus the column collapses the fixed 4-up grids
   need below tablet width.
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .navlist a .num { font-size: 10.5px; }
}

@media (max-width: 1000px) {
  :root { --page-gutter: 32px; }
  .quadrant,
  .participants,
  .issue-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quadrant--stats,
  .participants { row-gap: clamp(10px, 1.8vw, 20px); }
  .quadrant--rules,
  .quadrant--issues { display: none; }
  .stat-card__issue { display: block; margin-top: 16px; padding-top: 12px; border-top: var(--rule-heavy) solid var(--stat-rule); }

  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .process__step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .process__step:nth-child(even) { padding-right: 0; }
}

@media (max-width: 860px) {
  :root { --nav-h: 120px; }
  .masthead__inner {
    padding: 15px var(--page-gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .masthead__logo img { height: 40px; }
  .navlist { justify-content: flex-start; margin-left: 0; }
  .photos { grid-auto-rows: clamp(140px, 30vw, 200px); }
  .photo { grid-column: span 3; }
}

@media (max-width: 620px) {
  :root { --page-gutter: 16px; }
  .section { padding: 32px 20px; }
  .quadrant,
  .participants,
  .issue-tabs,
  .process { grid-template-columns: minmax(0, 1fr); }
  .process { row-gap: 0; }
  .process__step {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 2px solid var(--sc-palmetto-blue);
  }
  .process__step:first-child { padding-top: 0; border-top: 0; }

  .demo__chart { padding: 0 18px; }
  .bars { height: 180px; }

  .disclosure__trigger { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .disclosure__title { font-size: 17px; flex-basis: 100%; order: 3; }
  .disclosure__panel { padding: 16px; }
  .photo { grid-column: span 6; }
  .join { padding: 14px; }
  .join__logo { padding: 20px; }
  .join__logo img { height: 48px; }
  .join__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .section[data-reveal]:not(.is-revealed) { opacity: 1; transform: none; }
  /* Charts are drawn at full size rather than grown into place. */
  .bars__bar { height: var(--bar-h); }
  .survey__fill { width: var(--fill-w); }
}

/* --------------------------------------------------------------------------
   14. Utilities
   -------------------------------------------------------------------------- */
[hidden] { display: none !important; }

/* Text equivalent of the demographic bar charts. Reachable by screen readers
   and by anyone reading the page without CSS; never painted. */
.visually-hidden-table {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Square off the trigger's bottom corners once its panel is showing, so the
   hover tint meets the panel divider cleanly. */
.disclosure__trigger[aria-expanded="true"] { border-radius: var(--radius-md) var(--radius-md) 0 0; }
