/* Browser-based technical paper, scoped to the public research report. */
.research-report-page {
  background: #f3f3f1;
  color: #272a27;
}

.research-report-page::before,
.research-report-page::after {
  display: none;
}

.research-report {
  flex: 1;
  width: 100%;
  padding: calc(var(--nav-h, 60px) + 38px) 24px 68px;
  background: #f3f3f1;
  color: #272a27;
}

.research-paper {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 64px 68px 48px;
  border: 1px solid #e6e7e3;
  background: #fffefc;
  box-shadow: 0 2px 4px rgb(25 30 26 / 3%), 0 18px 48px rgb(25 30 26 / 5%);
  color: #292b29;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

.research-paper *,
.research-paper *::before,
.research-paper *::after {
  box-sizing: border-box;
}

.research-paper a {
  color: #526e5c;
  text-decoration-color: rgb(82 110 92 / 45%);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.research-paper a:hover {
  color: #354d3d;
  text-decoration-color: currentColor;
}

.research-paper a:focus-visible {
  outline: 2px solid #607c6a;
  outline-offset: 3px;
}

.paper-header {
  margin: 0;
}

.running-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid #d9dcd7;
  color: #6c716d;
  font: 500 10px/1.4 var(--font, system-ui, sans-serif);
  letter-spacing: .095em;
}

.title-block {
  max-width: 764px;
  padding: 33px 0 29px;
}

.title-block h1 {
  max-width: 760px;
  margin: 0;
  color: #262a27;
  font-family: inherit;
  font-size: clamp(37px, 4vw, 43px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.report-subtitle {
  margin: 14px 0 0;
  color: #565d58;
  font-size: 19px;
  line-height: 1.45;
}

.author-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 15px;
  margin: 18px 0 0;
  color: #5d635f;
  font: 400 13px/1.5 var(--font, system-ui, sans-serif);
}

.author-line strong {
  color: #333834;
  font-weight: 600;
}

.study-metadata {
  margin: 13px 0 0;
  color: #6a706b;
  font: 400 12px/1.65 var(--font, system-ui, sans-serif);
  font-variant-numeric: tabular-nums;
}

.abstract {
  max-width: 764px;
  padding: 24px 0 25px;
  border-top: 1px solid #d9dcd7;
  border-bottom: 1px solid #d9dcd7;
}

.abstract h2,
.key-findings h2 {
  margin: 0 0 11px;
  color: #313632;
  font-family: inherit;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
}

.abstract p {
  margin: 0;
  color: #333733;
  font-size: 16.5px;
  line-height: 1.65;
}

.abstract .measurement-caveat {
  margin-top: 8px;
}

.abstract .keywords {
  margin-top: 13px;
  color: #686e69;
  font-size: 14px;
}

.abstract .keywords strong {
  color: #4a504b;
  font-weight: 600;
}

.key-findings {
  max-width: 764px;
  padding: 26px 0 27px;
  border-bottom: 1px solid #d9dcd7;
}

.key-findings h2 {
  margin-bottom: 9px;
}

.key-findings ol,
.paper-section > ol {
  margin: 0;
  padding-left: 25px;
}

.key-findings li,
.paper-section > ol li {
  padding-left: 4px;
  color: #343834;
  font-size: 16px;
  line-height: 1.58;
}

.key-findings li + li,
.paper-section > ol li + li {
  margin-top: 7px;
}

.key-findings li::marker,
.paper-section > ol li::marker {
  color: #62796a;
  font-variant-numeric: tabular-nums;
}

.key-findings em {
  color: #606761;
}

.paper-section {
  max-width: 764px;
  margin: 38px 0 0;
  scroll-margin-top: calc(var(--nav-h, 60px) + 24px);
}

.paper-section h2 {
  margin: 0 0 14px;
  color: #292d2a;
  font-family: inherit;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.22;
  text-wrap: balance;
}

.paper-section h3 {
  margin: 25px 0 10px;
  color: #303531;
  font-family: inherit;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.3;
  text-wrap: balance;
}

.paper-section p {
  max-width: 740px;
  margin: 0 0 13px;
  color: #343834;
  font-size: 16.5px;
  line-height: 1.67;
}

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

.results-section > h2 {
  margin-bottom: 18px;
}

.result-subsection {
  margin-top: 24px;
}

.result-subsection + .result-subsection {
  margin-top: 35px;
  padding-top: 2px;
}

.result-subsection h3 {
  margin-top: 0;
}

.paper-figure {
  width: 100%;
  margin: 22px 0 24px;
  padding: 0;
  background: transparent;
}

.paper-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  background: #fffefc;
}

.paper-figure picture {
  display: block;
}

.paper-figure figcaption {
  margin: 8px 0 0;
  color: #525954;
  font-size: 14px;
  line-height: 1.5;
}

.paper-figure--secondary {
  max-width: 680px;
}

.paper-table {
  width: 100%;
  margin: 23px 0 18px;
  border-top: 1px solid #747b75;
  border-bottom: 1px solid #747b75;
  border-collapse: collapse;
  background: transparent;
  color: #303531;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}

.table-scroll {
  max-width: 100%;
}

.paper-table caption {
  padding: 0 0 9px;
  color: #353a36;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.paper-table th,
.paper-table td {
  padding: 8px 12px 8px 0;
  border: 0;
  vertical-align: top;
}

.paper-table thead {
  border-bottom: 1px solid #aeb4ae;
}

.paper-table thead th {
  color: #555c57;
  font: 600 12px/1.45 var(--font, system-ui, sans-serif);
}

.paper-table tbody th {
  width: 34%;
  color: #353a36;
  font-weight: 600;
}

.paper-table td {
  color: #444a45;
  font-variant-numeric: tabular-nums;
}

.variance-table th,
.variance-table td {
  padding-right: 10px;
}

.variance-table tbody th {
  width: 35%;
}

.full-scale-table tbody th {
  width: 70%;
}

.interpretation-subsection {
  margin-top: 22px;
}

.interpretation-subsection h3 {
  margin: 0 0 7px;
  font-size: 19px;
}

.limitations-section {
  padding-top: 1px;
}

.limitations-section > p {
  margin-top: 14px;
  color: #565d58;
}

.artifact-links {
  margin: 9px 0 14px;
  padding-left: 22px;
  color: #333834;
}

.artifact-links li {
  padding-left: 3px;
  font-size: 16px;
  line-height: 1.65;
}

.artifact-links li + li {
  margin-top: 3px;
}

.artifact-links li::marker {
  color: #747a75;
}

.citation-section {
  margin-top: 32px;
}

.citation-section h2 {
  font-size: 22px;
}

.citation-section blockquote {
  margin: 0;
  padding: 0 0 0 17px;
  border-left: 1px solid #aeb5af;
  color: #4c534e;
}

.citation-section blockquote p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.citation-section cite {
  font-style: italic;
}

.conclusion-section {
  margin-top: 34px;
  padding-bottom: 27px;
  border-bottom: 1px solid #d9dcd7;
}

.research-tools {
  max-width: 764px;
  margin: 21px 0 0;
  color: #626963;
}

.research-tools p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.research-tools a + a {
  margin-left: 7px;
}

.paper-footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 26px;
  padding-top: 15px;
  border-top: 1px solid #d9dcd7;
  color: #747a75;
  font: 400 12px/1.55 var(--font, system-ui, sans-serif);
}

.paper-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 15px;
  margin: 0;
}

.paper-footer strong {
  color: #4d544e;
  font-weight: 600;
}

@media (max-width: 960px) {
  .research-report {
    padding-right: 20px;
    padding-left: 20px;
  }

  .research-paper {
    padding-right: 52px;
    padding-left: 52px;
  }
}

@media (max-width: 767px) {
  .research-report-page,
  .research-report {
    background: #fffefc;
  }

  .research-report {
    padding: calc(var(--nav-h, 60px) + 15px) 0 0;
  }

  .research-paper {
    width: 100%;
    padding: 25px 22px 38px;
    border: 0;
    box-shadow: none;
    font-size: 16px;
    line-height: 1.62;
  }

  .running-header {
    gap: 8px;
    padding-bottom: 10px;
    font-size: 9px;
    letter-spacing: .07em;
  }

  .title-block {
    padding: 26px 0 22px;
  }

  .title-block h1 {
    font-size: clamp(32px, 8.2vw, 38px);
    line-height: 1.11;
  }

  .report-subtitle {
    margin-top: 11px;
    font-size: 17px;
  }

  .author-line {
    margin-top: 15px;
    font-size: 12px;
  }

  .study-metadata {
    margin-top: 11px;
    font-size: 11px;
    line-height: 1.6;
  }

  .abstract {
    padding: 20px 0 21px;
  }

  .abstract h2,
  .key-findings h2 {
    font-size: 20px;
  }

  .abstract p,
  .paper-section p {
    font-size: 16px;
  }

  .abstract .keywords {
    font-size: 13px;
  }

  .key-findings {
    padding: 21px 0 23px;
  }

  .key-findings li,
  .paper-section > ol li,
  .artifact-links li {
    font-size: 15.5px;
  }

  .paper-section {
    margin-top: 31px;
  }

  .paper-section h2 {
    font-size: 25px;
  }

  .paper-section h3 {
    margin-top: 22px;
    font-size: 19px;
  }

  .result-subsection + .result-subsection {
    margin-top: 29px;
  }

  .paper-figure {
    margin: 17px 0 20px;
  }

  .paper-figure figcaption {
    margin-top: 7px;
    font-size: 13px;
  }

  .paper-table {
    margin: 19px 0 16px;
    font-size: 13.5px;
  }

  .paper-table th,
  .paper-table td {
    padding: 7px 6px 7px 0;
  }

  .paper-table caption {
    font-size: 14px;
  }

  .paper-table thead th {
    font-size: 11px;
  }

  .variance-table {
    min-width: 520px;
  }

  .conversion-table {
    min-width: 560px;
  }

  .table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .interpretation-subsection {
    margin-top: 18px;
  }

  .interpretation-subsection h3 {
    font-size: 18px;
  }

  .paper-footer p {
    gap: 3px 10px;
  }
}

@media (max-width: 380px) {
  .research-paper {
    padding-right: 19px;
    padding-left: 19px;
  }

  .running-header {
    font-size: 8px;
  }
}

@media print {
  @page {
    size: auto;
    margin: 16mm 15mm;
  }

  html,
  body,
  .research-report-page,
  .research-report {
    width: auto;
    min-height: 0;
    background: #fff;
    color: #111;
  }

  .site-nav,
  .research-tools {
    display: none !important;
  }

  .research-report {
    display: block;
    padding: 0;
  }

  .research-paper {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #111;
  }

  .key-findings,
  .abstract,
  .paper-figure,
  .paper-table,
  .paper-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .paper-section h2,
  .paper-section h3,
  .paper-table caption,
  .paper-figure figcaption {
    break-after: avoid;
    page-break-after: avoid;
  }

  .result-subsection {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .paper-figure img {
    background: #fff;
  }

  .research-paper a {
    color: #111;
    text-decoration: underline;
  }

  .running-header,
  .paper-footer {
    color: #444;
  }
}

/* Keep the Research index on its existing site layout. */
.research-hub {
  flex: 1;
  width: 100%;
  padding: var(--nav-h) 24px 90px;
}

.hub-wrap {
  width: min(100%, 920px);
  margin: 0 auto;
}

.hub-hero {
  margin: 64px 0 48px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--card-border);
}

.hub-eyebrow {
  margin: 0 0 16px;
  color: var(--accent-text);
  font: 400 0.7rem/1.5 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hub-hero h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(3rem, 7vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hub-hero p:last-child {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.research-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 25px 27px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.research-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.research-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.research-card-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-text);
  font: 400 0.62rem/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-card strong {
  display: block;
  color: var(--heading);
  font-size: clamp(1.25rem, 2.5vw, 1.72rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.research-card p {
  max-width: 650px;
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.research-card-meta {
  display: block;
  margin-top: 11px;
  color: var(--text-muted);
  font: 400 0.66rem/1.5 var(--mono);
  letter-spacing: 0.045em;
}

.research-card-arrow {
  color: var(--accent-text);
  font-size: 1.35rem;
}

@media (max-width: 700px) {
  .hub-wrap {
    width: 100%;
  }

  .research-hub {
    padding: var(--nav-h) 18px 60px;
  }

  .hub-hero {
    margin: 45px 0 32px;
    padding-bottom: 29px;
  }

  .hub-hero p:last-child {
    font-size: 1rem;
  }

  .research-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 20px 18px;
  }

  .research-card p {
    font-size: 0.83rem;
  }
}
