:root {
  --paper: #f7faf9;
  --white: #ffffff;
  --soft: #eef4f1;
  --ink: #132c36;
  --body: #33464d;
  --muted: #65757b;
  --line: #d5e0dc;
  --teal: #087f83;
  --teal-dark: #075258;
  --mint: #d8eeea;
  --coral: #c94b3c;
  --gold: #e7b24d;
  --dark: #102c35;
  --shadow: 0 18px 48px rgba(18, 44, 53, 0.12);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--body);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

main {
  max-width: 100%;
  overflow-x: clip;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(8, 127, 131, 0.42);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
strong {
  color: var(--ink);
}

h1 {
  margin: 0 0 14px;
  font-family: "Source Sans 3", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.95rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 2.55rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-band {
  padding: 44px max(24px, calc((100vw - var(--content)) / 2));
}

.section-shell {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

.soft-band {
  background: var(--soft);
}

.hero {
  display: flex;
  align-items: center;
  min-height: auto;
  padding-top: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.venue-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid rgba(8, 127, 131, 0.26);
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.venue-icon,
.resource-icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.venue-icon,
.venue-icon svg {
  width: 15px;
  height: 15px;
}

.venue-icon svg,
.resource-icon svg,
.copy-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.venue-icon svg,
.resource-icon svg {
  stroke-width: 1.9;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 12px;
  max-width: 1040px;
  margin: 0 auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

.author {
  white-space: nowrap;
}

.author-markers {
  margin-left: 2px;
  color: var(--teal-dark);
  font-size: 0.68em;
  font-weight: 800;
  line-height: 0;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  max-width: 1000px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.affiliation {
  display: inline-flex;
  gap: 3px;
}

.hero-summary {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.resource-row,
.todo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
}

.todo-row:empty {
  display: none;
}

.resource-link,
.resource-disabled,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.resource-icon,
.resource-icon svg,
.resource-icon img {
  width: 16px;
  height: 16px;
}

.resource-icon img {
  display: block;
  object-fit: cover;
}

.resource-link {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(18, 44, 53, 0.08);
  transition: border-color 150ms ease, transform 150ms ease;
}

.resource-link:hover {
  border-color: #b7c6c1;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-1px);
}

.resource-disabled {
  background: #f2f4f3;
  color: #7b8582;
  cursor: not-allowed;
}

.resource-paper .resource-icon {
  color: #c62828;
}

.resource-arxiv .resource-icon {
  color: #b31b1b;
}

.resource-poster .resource-icon {
  color: var(--teal-dark);
}

.resource-code .resource-icon {
  color: #59615f;
}

.motivation-band {
  background: var(--white);
}

.section-intro {
  max-width: 790px;
  margin-bottom: 22px;
}

.centered-intro {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.lead {
  max-width: 850px;
  margin: 0;
  color: #3b4d53;
  font-size: 1.06rem;
  line-height: 1.65;
}

.centered-intro .lead {
  margin: 0 auto;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.hero-contribution {
  position: relative;
  min-height: 160px;
  padding: 20px 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.hero-contribution::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--teal);
  content: "";
}

.hero-contribution:nth-child(2)::after {
  background: var(--coral);
}

.hero-contribution:nth-child(3)::after {
  background: var(--gold);
}

.contribution-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-contribution h3 {
  font-size: 1.02rem;
}

.hero-contribution p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.feature-figure,
.evidence-figure,
.case-figure,
.result-table-figure {
  margin: 0;
}

.feature-figure a,
.evidence-figure a,
.case-figure a,
.result-table-figure a {
  display: block;
  cursor: zoom-in;
}

.feature-figure img,
.evidence-figure img,
.case-figure img,
.result-table-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.feature-figure img {
  box-shadow: var(--shadow);
}

.teaser-figure {
  width: min(560px, 100%);
  margin: 0 auto;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

figcaption strong {
  color: var(--teal-dark);
}

.content-grid {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 42px;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

.content-grid > * {
  min-width: 0;
}

.section-label {
  padding-top: 7px;
}

.section-label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.section-body > p:last-child {
  margin-bottom: 0;
}

#abstract-text {
  max-width: 900px;
  margin-top: 0;
  color: #415158;
  font-size: 0.94rem;
  line-height: 1.72;
}

.method-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 22px;
}

.action-item {
  min-height: 150px;
  padding: 16px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.action-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 850;
}

.action-item:nth-child(3) .action-index {
  background: #f4ddd8;
  color: #873429;
}

.action-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.method-figure {
  width: min(656px, 100%);
  margin: 0 auto;
}

.dark-band {
  background: var(--dark);
  color: #d4e2e4;
}

.dark-band h2,
.dark-band strong {
  color: var(--white);
}

.dark-band .section-kicker {
  color: #8ed4ce;
}

.results-heading-row {
  margin-bottom: 18px;
}

.results-heading-row h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 2.04rem;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(896px, 100%);
  margin: 0 auto;
}

.result-table-figure {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: var(--white);
  color: var(--body);
}

.result-table-figure img {
  border: 0;
  border-radius: 2px;
}

.result-table-figure figcaption {
  padding: 0 3px 2px;
}

.graph-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(940px, 100%);
  margin: 20px auto 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.graph-stat {
  min-height: 108px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.graph-stat:last-child {
  border-right: 0;
}

.graph-stat strong {
  display: block;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.1;
}

.graph-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.analysis-visuals {
  width: 80%;
  display: grid;
  gap: 16px;
  margin-top: 22px;
  margin-right: auto;
  margin-left: auto;
}

.analysis-figure {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.analysis-figure img {
  border: 0;
  box-shadow: none;
}

.analysis-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.analysis-grid {
  width: 100%;
  gap: 16px;
  margin-top: 0;
}

.evidence-figure,
.case-figure {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.evidence-figure img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 0;
}

.case-grid {
  margin-top: 0;
  width: min(940px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.case-figure img {
  aspect-ratio: 1.12 / 1;
  object-fit: contain;
  border: 0;
}

.citation-band {
  background: var(--white);
}

#apa-citation {
  max-width: 900px;
  color: var(--muted);
  font-size: 0.88rem;
}

.citation-box {
  position: relative;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #1d3a42;
  border-radius: 6px;
  background: #0d1c21;
  color: #ecf4f3;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.copy-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

pre {
  margin: 0;
  padding: 58px 20px 20px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 0.77rem;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 22px max(24px, calc((100vw - var(--content)) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.74rem;
}

.site-footer > div {
  display: grid;
  gap: 3px;
}

.site-footer strong {
  font-size: 0.82rem;
}

.noscript-message {
  margin: 0;
  padding: 12px 20px;
  background: #ffe9e5;
  color: #7d2d24;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .section-band {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  h2 {
    font-size: 2.15rem;
  }

  .content-grid {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 34px;
  }

  .method-actions,
  .graph-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .graph-stat:nth-child(2) {
    border-right: 0;
  }

  .graph-stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .graph-stat:nth-child(-n + 2) {
    border-bottom-color: var(--line);
  }

}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 20px;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.8rem;
    line-height: 1.22;
  }

  h2 {
    font-size: 1.85rem;
  }

  .results-heading-row h2 {
    font-size: 1.48rem;
  }

  .section-band {
    padding: 34px 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
    padding-bottom: 32px;
  }

  .authors {
    gap: 3px 8px;
    font-size: 0.78rem;
  }

  .affiliations {
    gap: 2px 8px;
    font-size: 0.64rem;
  }

  .hero-summary {
    margin-top: 12px;
    font-size: 0.86rem;
  }

  .resource-row {
    gap: 7px;
    margin-top: 14px;
  }

  .resource-link,
  .resource-disabled {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .contribution-grid,
  .tables-grid,
  .analysis-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .hero-contribution {
    min-height: auto;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0;
  }

  .section-label > span {
    margin: 0;
    font-size: 1.55rem;
  }

  .section-label .section-kicker {
    margin: 0;
  }

  .lead {
    font-size: 0.98rem;
  }

  .method-actions {
    grid-template-columns: 1fr;
  }

  .action-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
    min-height: auto;
    padding: 14px;
  }

  .action-index {
    grid-row: 1 / 3;
    margin: 0;
  }

  .action-item h3 {
    margin: 2px 0 4px;
  }

  .graph-stat {
    min-height: 108px;
    padding: 17px 12px;
  }

  .result-table-figure {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .result-table-figure a {
    width: 600px;
  }

  .analysis-figure {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .analysis-visuals {
    width: 100%;
  }

  .analysis-figure a {
    width: 720px;
  }

  .site-footer {
    flex-direction: column;
    padding: 18px;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 1.8rem;
  }

  .hero {
    min-height: auto;
  }

  .resource-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resource-link,
  .resource-disabled {
    min-width: 0;
    padding-right: 7px;
    padding-left: 7px;
  }

  .graph-stats {
    grid-template-columns: 1fr;
  }

  .graph-stat,
  .graph-stat:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .graph-stat,
  .graph-stat:nth-child(2) {
    border-bottom-color: var(--line);
  }

  .graph-stat:last-child {
    border-bottom: 0;
  }

  pre {
    padding-top: 64px;
    font-size: 0.7rem;
  }
}
