/* Blue Earth Community Market case study. Builds on site.css: frame, peg, breadcrumb, slab, closing. */

/* Title slide */
.market-top {
  padding-top: clamp(16px, 3vw, 40px);
}
.market-hero-slab {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(36px, 6vw, 88px);
  border-radius: var(--radius-xl);
  background: var(--green);
  box-shadow: 0 8px 0 var(--green-deep);
}
.market-hero-slab.pi-grain::after {
  opacity: 0.35;
}
.market-hero-copy {
  position: relative;
  z-index: 1;
}
.market-kicker {
  color: var(--ink);
  margin-bottom: 20px;
}
.market-hero h1 {
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 11em;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  text-wrap: balance;
}
.market-hero .lead {
  max-width: 28ch;
}
.market-hero-roles {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid #221c1733;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
}
.market-illustration {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  padding: clamp(12px, 2vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow: 0 6px 0 var(--green-deep);
  rotate: 2deg;
}

/* Opening and the facts board */
.market-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(64px, 8vw, 112px);
}
.market-opening {
  max-width: 42rem;
}
.market-opening .lead {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.45;
  margin-bottom: 24px;
}
.market-opening p:not(.lead) {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.market-facts {
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--edge-2);
  overflow: hidden;
}
.market-facts > div {
  padding: 22px 28px;
}
.market-facts > div + div {
  border-top: 1px solid var(--line);
}
.market-facts dt {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.market-facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Chapter strip */
.market-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 10px;
  border-radius: var(--radius-pill);
}
.market-jump-links.frame {
  width: fit-content;
  max-width: min(var(--frame), calc(100% - 2 * var(--gutter)));
  background: var(--birch);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 4px 0 var(--birch-edge);
}
.market-jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 8px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color var(--pi-dur-quick) var(--pi-ease-out);
}
.market-jump-links a:hover {
  background: var(--paper-raised);
}
.jump-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper-raised);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* Chapters */
.market-section {
  padding-top: clamp(80px, 10vw, 144px);
  scroll-margin-top: 24px;
}
.chapter-peg {
  margin-bottom: 20px;
}
.market-section h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.market-section-intro {
  max-width: 46rem;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.market-section-intro p,
.market-prose p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.market-prose p + p {
  margin-top: 16px;
}
.market-prose strong {
  color: var(--ink);
}
.market-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.market-prose {
  max-width: 40rem;
}
.market-small-note {
  max-width: 50rem;
  margin-top: 28px;
  font-size: 16px;
  color: var(--ink-muted);
}

/* 1. Related facts, different evidence */
.fact-illustration {
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--edge-2);
}
.fact-piece {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
}
.fact-blue {
  background: var(--blue-soft);
}
.fact-sunflower {
  background: var(--sunflower-soft);
}
.fact-orchid {
  background: var(--orchid-soft);
}
.fact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--blue-deep);
}
.fact-sunflower .fact-icon {
  background: var(--sunflower);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--sunflower-deep);
}
.fact-orchid .fact-icon {
  background: var(--orchid);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--orchid-deep);
}
.fact-icon svg {
  width: 26px;
  height: 26px;
}
.fact-piece strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}
.fact-piece div > span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-muted);
}
.fact-not-equal {
  display: block;
  padding-block: 2px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.3;
  text-align: center;
  color: var(--ink-muted);
}
.fact-illustration figcaption {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-muted);
}

/* 2. The handoff map */
.handoff-map {
  margin: 0;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--paper-sunk);
}
.map-sources,
.map-outputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.map-sources > div {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.map-sources strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.map-sources span {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.map-connector {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 14px auto;
  border-radius: 50%;
  background: var(--birch);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 3px 0 var(--birch-edge);
  font-size: 22px;
  font-weight: 700;
}
.map-record {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--blue-deep);
}
.map-record h3 {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  margin-bottom: 10px;
}
.map-record p {
  font-size: 18px;
  max-width: 40em;
  margin-bottom: 14px;
}
.map-record span {
  font-size: 15px;
  font-weight: 600;
}
.record-symbol {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  flex: none;
  width: 80px;
  height: 100px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 6px 0 var(--blue-deep);
}
.record-symbol i {
  display: block;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--blue-deep);
}
.record-symbol i:last-child {
  width: 70%;
}
.map-outputs > div {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.map-outputs h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.map-outputs p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.map-outputs strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 16px;
}
.map-outputs p + strong {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.map-outputs strong::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 2px var(--green-deep);
}
.handoff-map figcaption {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-muted);
}
.market-design-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: 36px;
}
.market-design-notes p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.market-design-notes strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

/* The weekly rhythm: pegs on a birch rail */
.weekly-board {
  border-radius: var(--radius-xl);
  background: var(--sunflower);
  box-shadow: 0 8px 0 var(--sunflower-deep);
  overflow: hidden;
}
.weekly-board-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px) 0;
}
.calendar-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  box-shadow: 0 4px 0 var(--sunflower-deep);
}
.calendar-symbol svg {
  width: 34px;
  height: 34px;
}
.weekly-board-heading p {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
}
.weekly-board-heading strong {
  font-weight: 400;
}
.weekly-steps {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 4vw, 56px) clamp(28px, 4vw, 56px);
}
.weekly-steps::before {
  content: '';
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  right: clamp(24px, 4vw, 56px);
  top: calc(clamp(28px, 3vw, 40px) + 13px);
  height: 10px;
  border-radius: 5px;
  background: var(--paper-raised);
  opacity: 0.7;
}
.weekly-steps li {
  position: relative;
  padding-top: 52px;
}
.weekly-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-raised);
  box-shadow:
    inset 0 0 0 3px var(--ink),
    0 3px 0 var(--sunflower-deep);
}
.weekly-steps h3 {
  font-size: clamp(24px, 2vw, 28px);
  margin-bottom: 8px;
}
.weekly-steps p {
  font-size: 16px;
  line-height: 1.55;
}

/* 3. Scenario switch: a birch tray with a raised selected piece */
.scenario-panel {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--paper-raised);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--edge-2);
}
.scenario-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 24px;
}
.scenario-heading h3 {
  font-size: clamp(26px, 2.4vw, 32px);
}
.scenario-heading p {
  font-size: 15px;
  color: var(--ink-muted);
}
.scenario-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 28px;
  padding: 6px;
  border-radius: var(--radius-pill);
}
.scenario-switch:not([hidden]) {
  background: var(--birch);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.scenario-switch button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color var(--pi-dur-quick) var(--pi-ease-out),
    box-shadow var(--pi-dur-quick) var(--pi-ease-out);
}
.scenario-switch button:hover {
  background: #faf5ec99;
}
.scenario-switch button[aria-pressed='true'] {
  background: var(--paper-raised);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 3px 0 var(--birch-edge);
}
.scenario-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}
.scenario-cards li {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.scenario-cards li > span {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink-muted);
}
.scenario-cards li > span::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--blue);
}
.scenario-cards li:nth-child(2) > span::before {
  background: var(--orchid);
}
.scenario-cards li:nth-child(3) > span::before {
  background: var(--green);
}
.scenario-cards h4 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 8px;
}
.scenario-cards p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.scenario-outcome {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 17px;
  font-weight: 650;
}
.scenario-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--green-deep);
  font-weight: 800;
}
.scenario-panel[data-state='held'] .scenario-outcome {
  background: var(--sunflower-soft);
  color: var(--sunflower-deep);
}
.scenario-panel[data-state='held'] .scenario-dot {
  background: var(--sunflower);
  box-shadow: inset 0 0 0 2px var(--sunflower-deep);
}
.boundary-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}
.boundary-rules li {
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: var(--paper-sunk);
}
.boundary-rules strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}
.boundary-rules span {
  display: block;
  font-size: 16px;
  color: var(--ink-muted);
}

/* 4. Subtraction */
.subtraction-figure {
  margin: 0;
}
.subtraction-before {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--paper-sunk);
  margin-bottom: 20px;
}
.subtraction-figure h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.subtraction-before div {
  padding-block: 8px;
  font-size: 17px;
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--line-strong);
}
.subtraction-before div + div {
  border-top: 1px solid var(--line);
}
.subtraction-after {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--orchid);
  box-shadow: 0 6px 0 var(--orchid-deep);
}
.subtraction-after div {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  box-shadow: 0 3px 0 var(--orchid-deep);
  font-size: 18px;
  font-weight: 650;
}
.subtraction-after > span {
  display: block;
  padding: 6px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}
.subtraction-after > strong {
  display: block;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--green);
  box-shadow: 0 3px 0 var(--green-deep);
  text-align: center;
  font-size: 18px;
}
.subtraction-figure figcaption {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-muted);
}

/* Engineering */
.engineering-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.engineering-cards > div {
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--edge-2);
}
.engineering-cards h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
  margin-bottom: 10px;
}
.engineering-cards p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.engineering-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
}
.engineering-symbol svg {
  width: 28px;
  height: 28px;
}
.symbol-blue {
  background: var(--blue);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--blue-deep);
}
.symbol-orchid {
  background: var(--orchid);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--orchid-deep);
}
.symbol-vermilion {
  background: var(--vermilion);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--vermilion-deep);
}
.market-details {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.market-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-block: 16px;
  font-size: 19px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.market-details summary::-webkit-details-marker {
  display: none;
}
.market-details summary::after {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--birch)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23221C17' d='M10.6 5h2.8v5.6H19v2.8h-5.6V19h-2.8v-5.6H5v-2.8h5.6z'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: rotate var(--pi-dur-calm) var(--pi-ease-out);
}
.market-details[open] summary::after {
  rotate: 45deg;
}
.market-details > div {
  max-width: 46rem;
  padding-bottom: 28px;
}
.market-details h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.market-details h3:not(:first-child) {
  margin-top: 28px;
}
.market-details p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* 5. The evidence: one stacked bar, labeled directly */
.reconciliation-figure {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin: 0;
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--paper-raised);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--edge-2);
}
.reconciliation-main {
  min-width: 0;
}
.reconciliation-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
}
.reconciliation-title > strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.reconciliation-title p {
  font-size: 20px;
  font-weight: 650;
}
.reconciliation-rail {
  height: 48px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: var(--birch);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  overflow: hidden;
}
.reconciliation-rail > div {
  height: 100%;
  width: 55.384615%;
  border-radius: var(--radius-pill);
  background: var(--green);
  box-shadow:
    inset 0 0 0 2px var(--green-deep),
    4px 0 0 var(--paper-raised);
}
.reconciliation-labels {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}
.reconciliation-labels p {
  font-size: 16px;
}
.reconciliation-labels p:last-child {
  text-align: right;
}
.reconciliation-labels strong {
  display: block;
  font-weight: 700;
}
.reconciliation-labels span {
  display: block;
  max-width: 240px;
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-muted);
}
.reconciliation-labels p:last-child span {
  margin-left: auto;
}
.reconciliation-zero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--green);
  box-shadow: 0 6px 0 var(--green-deep);
}
.reconciliation-zero > span {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-raised);
  color: var(--green-deep);
  font-weight: 800;
  font-size: 20px;
}
.reconciliation-zero > strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 7vw, 104px);
  line-height: 0.95;
}
.reconciliation-zero p {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
}
.reconciliation-figure figcaption {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--ink-muted);
}
.validation-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 40px 0;
  padding: 0;
}
.validation-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.validation-list li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 2px var(--green-deep);
  font-weight: 800;
}
.validation-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}
.validation-list p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.measurement-note {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--sunflower-soft);
}
.measurement-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--sunflower);
  box-shadow: 0 3px 0 var(--sunflower-deep);
}
.measurement-note h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  margin-bottom: 8px;
}
.measurement-note p {
  max-width: 50rem;
  font-size: 17px;
  line-height: 1.6;
}

/* Next: the closing statement in brackets */
.market-next-section .market-prose {
  max-width: 44rem;
}
.market-takeaway {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  width: fit-content;
  max-width: 100%;
  margin: clamp(48px, 6vw, 80px) 0;
}
.market-takeaway::before,
.market-takeaway::after {
  content: '[';
  flex: none;
  font-family: var(--font-mono);
  font-size: clamp(64px, 9vw, 128px);
  line-height: 1;
  color: var(--green-deep);
}
.market-takeaway::after {
  content: ']';
}
.market-takeaway p {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 22em;
  text-wrap: balance;
}
.evidence-basis {
  max-width: 50rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
}

@media (max-width: 1100px) {
  .weekly-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
  .weekly-steps::before {
    display: none;
  }
  .engineering-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 860px) {
  .market-hero-slab,
  .market-intro,
  .market-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .market-illustration {
    max-width: 460px;
    rotate: 0deg;
  }
  .market-jump-links.frame {
    border-radius: var(--radius-lg);
  }
  .map-sources,
  .map-outputs,
  .scenario-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .subtraction-figure {
    max-width: 560px;
  }
  .reconciliation-figure,
  .validation-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .market-hero-slab {
    border-radius: 40px;
    padding: 32px 24px;
  }
  .market-hero h1 {
    font-size: clamp(40px, 11.5vw, 56px);
  }
  .market-jump-links a {
    flex: 1 1 auto;
  }
  .map-record {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .record-symbol {
    width: 64px;
    height: 76px;
    padding: 12px;
    gap: 8px;
  }
  .record-symbol i {
    height: 9px;
  }
  .market-design-notes,
  .boundary-rules {
    grid-template-columns: minmax(0, 1fr);
  }
  .weekly-board {
    border-radius: 40px;
  }
  .weekly-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .scenario-switch {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
  }
  .scenario-switch button {
    width: 100%;
  }
  .reconciliation-labels {
    flex-direction: column;
    gap: 14px;
  }
  .reconciliation-labels p:last-child {
    text-align: left;
  }
  .reconciliation-labels p:last-child span {
    margin-left: 0;
  }
  .measurement-note {
    flex-direction: column;
  }
  .market-takeaway::before,
  .market-takeaway::after {
    font-size: 56px;
  }
}
