.project-hero {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.25rem, 7vw, 5.5rem);
}

.back-link {
  display: inline-block;
  margin-bottom: 4rem;
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible { color: var(--blue); }

.project-hero h1 {
  max-width: none;
  margin-bottom: 2rem;
  font-size: clamp(3.4rem, 10vw, 8.8rem);
  letter-spacing: -.075em;
}

.project-hero h1 span {
  color: var(--green);
  font-family: var(--serif);
  font-weight: 400;
}

.project-deck {
  max-width: 760px;
  margin-bottom: 3.5rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.7vw, 1.95rem);
  line-height: 1.35;
}

.review-top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: -1rem 0 3rem;
}

.reviewer-hero { padding-top: 3rem; padding-bottom: 3rem; }
.reviewer-hero .back-link { margin-bottom: 1.5rem; }
.reviewer-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); margin-bottom: 1.5rem; }
.reviewer-hero .project-deck { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 2rem; }
.reviewer-hero .review-top-actions { margin-top: 0; margin-bottom: 2rem; }

.public-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: -1rem 0 3rem;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.project-meta div { display: flex; flex-direction: column; gap: .35rem; }

.project-meta span,
.project-meta strong {
  font-size: .78rem;
}

.project-meta span { color: var(--muted); }

.project-meta strong { font-weight: 550; }

.statement-section,
.content-section,
.references-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.statement-section { background: var(--blue-dark); color: var(--white); }

.statement-section .eyebrow { color: #b7d4cc; }

.statement-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 9vw, 10rem);
}

.statement-grid h2,
.two-column h2 { max-width: 680px; }

.statement-section h2 { color: var(--white); }

.large-copy {
  max-width: 700px;
  color: #ced9d5;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.large-copy + .large-copy { margin-top: 1.4rem; }

.figure-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, .72);
}

.figure-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  min-height: 48px;
  overflow-x: auto;
  white-space: nowrap;
}

.figure-nav-inner > span {
  color: var(--blue);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.figure-nav a {
  color: var(--muted);
  font-size: .75rem;
  text-decoration: none;
}

.figure-nav a:hover,
.figure-nav a:focus-visible { color: var(--blue-dark); }

.figure-note {
  margin-top: .65rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: .72rem;
}

.figure-section {
  padding: clamp(2.8rem, 5vw, 4.8rem) 0;
}

.figure-section-first { background: var(--paper-deep); }

.research-figure {
  margin: 0;
}

.research-figure-inline {
  margin-top: 2.2rem;
}

.research-figure-wide { margin-top: 2.8rem; }

.figure-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.figure-media {
  min-width: 700px;
  min-height: 240px;
}

.figure-media img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 240px;
  object-fit: contain;
}

.research-figure figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .35rem 1rem;
  max-width: 900px;
  padding-top: .95rem;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.figure-number {
  color: var(--blue);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.research-figure figcaption strong { color: var(--ink); }

.figure-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  margin-top: .15rem;
  font-size: .75rem;
}

.figure-links a {
  color: var(--blue-dark);
  font-weight: 650;
  text-underline-offset: .18em;
}

.intervention-figure,
.result-figure { margin-top: 2.8rem; }

.prose {
  max-width: 680px;
  color: #56615d;
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose p:last-child { margin-bottom: 0; }

.equation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 2.2rem 0;
  padding: 1.35rem;
  color: var(--blue-dark);
  background: var(--paper-deep);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  letter-spacing: .01em;
}

.equation b { color: var(--green); font-weight: 400; }

.equation span { overflow-wrap: anywhere; }

.equation-note {
  margin-top: -1.3rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.featured-card .equation { color: var(--white); }

.featured-card .equation b { color: #b7d4cc; }

.contrast-section { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper-deep); }

.public-method-section { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper-deep); }

.compact-heading { max-width: 850px; margin-bottom: 3rem; }

.public-card-grid,
.public-finding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.public-card,
.public-finding {
  min-height: 250px;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  background: var(--paper);
}

.public-card h3,
.public-finding h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.08;
}

.public-card p,
.public-finding p:not(.card-label) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}

.public-finding-grid { background: var(--line); }

.public-finding { background: var(--white); }

.access-section .report-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }

.access-request {
  color: #d3e0dc;
  font-size: .8rem;
  text-underline-offset: .18em;
}

.intervention-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.intervention-card {
  min-height: 250px;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper);
}

.featured-card { background: var(--blue-dark); color: var(--white); }

.card-label {
  margin-bottom: 1.7rem;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.featured-card .card-label { color: #b7d4cc; }

.equation-small {
  justify-content: flex-start;
  margin: 0 0 1.6rem;
  padding: 0;
  background: transparent;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.loss-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: .65rem;
  margin: 2.2rem 0 0;
}

.flow-step {
  display: flex;
  min-height: 128px;
  flex-direction: column;
  justify-content: space-between;
  padding: .9rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.flow-step span {
  color: var(--blue);
  font-family: var(--serif);
  font-size: .9rem;
}

.flow-step strong { font-size: .83rem; line-height: 1.2; }

.flow-step small { color: var(--muted); font-size: .68rem; line-height: 1.35; }

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 1.2rem;
}

.loss-flow figcaption {
  grid-column: 1 / -1;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .75rem;
}

.table-heading { margin: 4.5rem 0 2rem; }

.table-heading h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.table-heading .section-intro { margin-top: 1rem; }

.intervention-card p { max-width: 460px; margin-bottom: 0; color: var(--muted); }

.featured-card p { color: #cbd8d4; }

.section-heading { margin-bottom: 2.8rem; }

.section-intro {
  max-width: 650px;
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  text-align: left;
}

caption {
  padding: 1rem 1.2rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  text-align: left;
}

th,
td { padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }

thead th {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

tbody th { font-weight: 600; }

td strong { color: var(--blue-dark); font-weight: 650; }

.table-note {
  max-width: 650px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.data-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: .78rem;
}

.data-links a {
  color: var(--blue-dark);
  font-weight: 650;
  text-underline-offset: .18em;
}

.historical-details {
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.historical-details summary {
  cursor: pointer;
  padding: 1.15rem 0;
  color: var(--blue-dark);
  font-weight: 650;
  list-style-position: outside;
}

.historical-details summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.details-intro {
  max-width: 850px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
}

.historical-details .table-wrap { margin: 1.2rem 0 1.6rem; }

.historical-details code {
  padding: .1rem .25rem;
  color: var(--blue-dark);
  background: var(--paper-deep);
  font-size: .8rem;
}

.data-details {
  margin-top: 1.7rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.data-details summary {
  cursor: pointer;
  padding: 1rem 0;
  color: var(--blue-dark);
  font-size: .86rem;
  font-weight: 650;
}

.data-details summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.data-details .table-wrap { margin-bottom: 1rem; }

.data-details .table-note { margin-bottom: 1.1rem; }

.data-details .data-links { margin-bottom: 1.2rem; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 3.8rem;
}

.result-card {
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.result-card .card-label { margin-bottom: 1.3rem; }

.result-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.05;
}

.result-card p:not(.card-label):not(.metric):not(.metric-caption) { color: var(--muted); }

.metric {
  margin: 1.8rem 0 .15rem;
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
}

.metric span { color: var(--muted); font-family: var(--sans); font-size: .85rem; }

.metric-caption { color: var(--muted); font-size: .74rem; }

.muted-section { background: var(--paper-deep); }

.contribution-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.callout {
  margin-top: 2rem;
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--green);
  color: #46534e;
  background: rgba(255, 255, 255, .35);
  font-size: .95rem;
  line-height: 1.6;
}

.report-section { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--blue); }

.report-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(200px, .8fr);
  align-items: end;
  gap: 4rem;
  color: var(--white);
}

.report-panel .eyebrow { color: #c6ddd7; }

.report-panel h2 { max-width: 700px; }

.report-panel p:not(.eyebrow):not(.report-actions p) { max-width: 650px; margin: 1.5rem 0 0; color: #d3e0dc; }

.report-actions { justify-self: end; text-align: left; }

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-light:hover,
.button-light:focus-visible { background: #e3eee8; }

.report-actions p { margin: .75rem 0 0; color: #c6ddd7; font-size: .75rem; }

.reference-list a { color: var(--blue-dark); font-weight: 650; text-decoration-thickness: .08em; text-underline-offset: .18em; }

.reference-list span { color: var(--muted); font-size: .88rem; }

@media (max-width: 760px) {
  .project-meta,
  .statement-grid,
  .two-column,
  .intervention-grid,
  .result-grid,
  .public-card-grid,
  .public-finding-grid,
  .report-panel { grid-template-columns: 1fr; }
  .project-meta { gap: 1.2rem; }
  .statement-grid,
  .two-column { gap: 2.5rem; }
  .report-actions { justify-self: start; }
  .loss-flow { grid-template-columns: 1fr; gap: .5rem; }
  .flow-arrow { min-height: 1.3rem; transform: rotate(90deg); }
  .loss-flow figcaption { margin-top: .5rem; }
  .research-figure figcaption { grid-template-columns: 1fr; }
  .figure-links { grid-column: 1; }
}

@media (max-width: 480px) {
  .equation { gap: .55rem; padding-inline: .7rem; font-size: 1rem; }
  th, td { padding: .9rem .7rem; }
}
