:root {
  --ink: #202636;
  --muted: #677084;
  --line: #e5e8ee;
  --soft: #f8f9fb;
  --link: #3565b8;
  --page-width: 1400px;
  --reading-width: 760px;
}

html {
  background: #fff;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
}

a:hover {
  color: #244b8e;
}

.project-container {
  max-width: var(--page-width) !important;
}

.prose-container {
  max-width: var(--reading-width) !important;
}

.figure-container {
  max-width: var(--page-width) !important;
}

.scope-container {
  max-width: 1180px !important;
}

.results-container {
  max-width: 1240px !important;
}

.project-hero {
  padding: 5.6rem 1.5rem 2.3rem;
}

.project-hero__inner {
  margin: 0 auto;
}

.project-title {
  max-width: 1050px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(2.25rem, 4.15vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1.08;
}

.project-title span {
  display: block;
}

.project-authors {
  max-width: 920px;
  margin: 1.55rem auto 0;
}

.author-names,
.author-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

.author-names {
  gap: 0.2rem 0.15rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
}

.author-names a {
  color: inherit;
  text-decoration: none;
}

.author-names a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.author-block:not(:last-child)::after {
  content: ",";
  margin-right: 0.45rem;
  font-weight: 500;
}

.author-names sup,
.author-affiliations sup {
  font-size: 0.68em;
  font-weight: 600;
  line-height: 0;
}

.author-affiliations {
  gap: 0.35rem 1.15rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.15rem;
}

.project-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.58rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #242c3c;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}

.project-button .icon {
  margin: 0;
}

.project-button--disabled {
  background: #f5f6f8;
  border-color: #e7e9ee;
  color: #727b8c;
  cursor: default;
}

a.project-button {
  text-decoration: none;
}

a.project-button:hover {
  color: #fff;
  background: #1a2230;
}

.dataset-sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 0.78rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.dataset-sources a {
  color: #315b9d;
  font-weight: 700;
  text-decoration: none;
}

.dataset-sources a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.research-question {
  padding: 2.4rem 1.5rem 3.35rem;
}

.research-question h2,
.section-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.research-question p {
  max-width: 670px;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.workflow-section {
  padding: 0 1.5rem 4.8rem;
}

.section-intro {
  margin-bottom: 1.8rem;
}

.section-label {
  margin: 0 0 0.45rem;
  color: #64739a;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.115em;
  line-height: 1.2;
  text-transform: uppercase;
}

.workflow-figure {
  margin: 0;
}

.workflow-scroll {
  max-width: 1280px;
  margin: 0 auto;
}

.workflow-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.workflow-caption {
  max-width: 740px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.workflow-mobile-hint {
  display: none;
}

.study-summary {
  padding: 4.6rem 1.5rem 5.25rem;
  border-top: 1px solid var(--line);
}

.study-summary .section-intro {
  margin-bottom: 1.25rem;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.45fr 1.55fr;
  margin: 1.85rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.scope-group {
  min-width: 0;
  padding: 0 1.35rem;
}

.scope-group:first-child {
  padding-left: 0;
}

.scope-group:last-child {
  padding-right: 0;
}

.scope-group + .scope-group {
  border-left: 1px solid var(--line);
}

.scope-group h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.35;
}

.scope-group p,
.scope-list {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.scope-group p + p {
  margin-top: 0.85rem;
}

.scope-group .scope-detail {
  color: #858d9d;
}

.scope-list {
  padding: 0;
  list-style: none;
}

.scope-list li + li {
  margin-top: 0.22rem;
}

.scope-list strong,
.scope-group--outcomes strong {
  color: #475064;
  font-weight: 700;
}

.key-findings {
  padding: 5rem 1.5rem 5.5rem;
  border-top: 1px solid var(--line);
}

.key-findings .section-intro {
  margin-bottom: 2.35rem;
}

.finding-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finding {
  min-width: 0;
  padding: 1.5rem 1.65rem 1.55rem;
}

.finding:first-child {
  padding-left: 0;
}

.finding:last-child {
  padding-right: 0;
}

.finding + .finding {
  border-left: 1px solid var(--line);
}

.finding-number {
  margin: 0 0 0.8rem;
  color: #64739a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.115em;
  line-height: 1;
}

.finding h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.finding p:last-child {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.56;
}

.findings-viewer {
  margin-top: 4rem;
}

.findings-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.findings-tab {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 1rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.findings-tab::after {
  position: absolute;
  right: 1rem;
  bottom: -1px;
  left: 1rem;
  height: 2px;
  background: transparent;
  content: "";
}

.findings-tab[aria-selected="true"] {
  color: var(--ink);
}

.findings-tab[aria-selected="true"]::after {
  background: var(--ink);
}

.findings-tab:focus-visible {
  outline: 2px solid #98abd2;
  outline-offset: -2px;
}

.findings-panel {
  padding-top: 1.6rem;
}

.findings-panel[hidden] {
  display: none !important;
}

.findings-panel__intro {
  max-width: 760px;
  margin: 0 auto;
  color: #4f586b;
  font-size: 1.01rem;
  line-height: 1.65;
  text-align: center;
}

.result-figure {
  margin: 2.4rem auto 0;
}

.result-figure--tradeoffs,
.result-figure--table {
  max-width: 1180px;
}

.result-figure--categories {
  max-width: 1080px;
}

.result-figure--subsets {
  max-width: 1180px;
}

.result-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.result-caption {
  max-width: 820px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.result-mobile-hint {
  display: none;
}

.interpretation-note {
  max-width: 760px;
  margin: 4.6rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.interpretation-note h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.interpretation-note p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.citation {
  padding: 3.6rem 1.5rem 0;
  border-top: 1px solid var(--line);
}

.citation .section-intro {
  margin-bottom: 1.1rem;
}

.citation p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.bibtex-placeholder {
  margin: 0.9rem 0 0;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.acknowledgments {
  padding: 3.6rem 1.5rem 0;
  border-top: 1px solid var(--line);
}

.acknowledgments .section-intro {
  margin-bottom: 1.1rem;
}

.acknowledgments p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.acknowledgments p + p {
  margin-top: 0.9rem;
}

.contact {
  padding: 3.6rem 1.5rem 4.2rem;
  border-top: 1px solid var(--line);
}

.contact .section-intro {
  margin-bottom: 1.1rem;
}

.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.contact a {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #4f5d7e;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .project-hero {
    padding: 3.6rem 1.25rem 1.85rem;
  }

  .project-title {
    max-width: 660px;
    font-size: clamp(2rem, 9.2vw, 2.65rem);
    letter-spacing: -0.05em;
  }

  .project-authors {
    margin-top: 1.25rem;
  }

  .author-names {
    font-size: 0.95rem;
  }

  .project-actions {
    margin-top: 1.75rem;
  }

  .research-question {
    padding: 2.1rem 1.25rem 2.75rem;
  }

  .research-question h2 {
    font-size: 1.45rem;
  }

  .research-question p {
    font-size: 1rem;
  }

  .workflow-section {
    padding: 0 1rem 3.5rem;
  }

  .section-intro {
    margin-bottom: 1.35rem;
  }

  .workflow-caption {
    padding: 0 0.35rem;
    font-size: 0.84rem;
  }

  .study-summary {
    padding: 3.65rem 1.25rem 4rem;
  }

  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.6rem;
  }

  .scope-group {
    padding: 0 1.15rem;
  }

  .scope-group:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .scope-group:nth-child(3),
  .scope-group:nth-child(4) {
    padding-top: 1.45rem;
    border-top: 1px solid var(--line);
  }

  .key-findings {
    padding: 4rem 1.25rem 4.5rem;
  }

  .finding {
    padding-right: 1.15rem;
    padding-left: 1.15rem;
  }

  .acknowledgments {
    padding: 3rem 1.25rem 0;
  }

  .contact {
    padding: 3rem 1.25rem 3.4rem;
  }
}

@media screen and (max-width: 520px) {
  .project-title span {
    display: inline;
  }

  .project-title span + span::before {
    content: " ";
  }

  .project-actions {
    gap: 0.5rem;
  }

  .project-button {
    min-height: 2.45rem;
    padding: 0.56rem 0.8rem;
    font-size: 0.87rem;
  }

  .dataset-sources {
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.84rem;
  }

  .workflow-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-color: #cbd0da transparent;
    scrollbar-width: thin;
  }

  .workflow-figure {
    width: 1000px;
    margin: 0 auto;
    padding: 0 0.45rem 0.65rem;
    scroll-snap-align: start;
  }

  .workflow-figure img {
    width: 100%;
  }

  .workflow-mobile-hint {
    display: block;
    margin: 0 0 0.65rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: italic;
    text-align: center;
  }

  .scope-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .scope-group,
  .scope-group:first-child,
  .scope-group:last-child,
  .scope-group:nth-child(3) {
    padding: 1.2rem 0 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .scope-group:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .scope-group + .scope-group {
    margin-top: 1.2rem;
    border-left: 0;
  }

  .scope-group:nth-child(3),
  .scope-group:nth-child(4) {
    padding-top: 1.2rem;
  }

  .finding-list {
    grid-template-columns: 1fr;
  }

  .finding,
  .finding:first-child,
  .finding:last-child {
    padding: 1.3rem 0;
  }

  .finding + .finding {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .findings-viewer {
    margin-top: 3.2rem;
  }

  .findings-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-color: #cbd0da transparent;
    scrollbar-width: thin;
  }

  .findings-tab {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .findings-tab:first-child {
    padding-left: 0;
  }

  .findings-tab:first-child::after {
    left: 0;
  }

  .findings-panel {
    padding-top: 1.25rem;
  }

  .findings-panel__intro {
    font-size: 0.99rem;
    text-align: left;
  }

  .interpretation-note {
    margin-top: 3.5rem;
  }

  .result-figure-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-color: #cbd0da transparent;
    scrollbar-width: thin;
  }

  .result-figure {
    width: 920px;
    max-width: none;
    margin-top: 0;
    padding: 0 0.45rem 0.65rem;
    scroll-snap-align: start;
  }

  .result-figure--table {
    width: 1020px;
  }

  .result-figure--categories {
    width: 1080px;
  }

  .result-figure--subsets {
    width: 1040px;
  }

  .result-caption {
    margin-top: 0.85rem;
    font-size: 0.81rem;
    text-align: left;
  }

  .result-mobile-hint {
    display: block;
    margin: 1.55rem 0 0.65rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: italic;
    text-align: center;
  }

}
