:root {
  --ink: #172126;
  --ink-soft: #354349;
  --muted: #66747a;
  --paper: #ffffff;
  --ground: #f4f7f6;
  --line: #d8e1de;
  --teal: #087f73;
  --teal-dark: #05655d;
  --teal-soft: #dcefeb;
  --coral: #c94f3d;
  --coral-soft: #f6e5e1;
  --amber: #a76b08;
  --amber-soft: #f4ead7;
  --blue: #2e6593;
  --blue-soft: #e3edf5;
  --green: #39764f;
  --green-soft: #e1eee5;
  --dark: #1d282c;
  --dark-line: #3d4a4e;
  --max-width: 1320px;
  --shadow: 0 12px 32px rgba(23, 33, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.topbar-inner,
.section-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.25;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.primary-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 4px;
}

.primary-nav a,
.index-link {
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.index-link:hover,
.index-link:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.index-link {
  border: 1px solid var(--line);
}

.language-switch {
  display: inline-flex;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--ground);
}

.language-button {
  min-width: 42px;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.language-button:last-child {
  border-right: 0;
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--teal-dark);
  outline: 2px solid var(--teal-soft);
  outline-offset: -2px;
}

.language-button.active {
  color: #fff;
  background: var(--ink);
}

.band {
  padding: 84px 0;
}

.band-muted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}

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

.overview {
  padding-top: 74px;
  overflow: hidden;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 70px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
blockquote,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: 52px;
  font-weight: 760;
}

h2 {
  margin-bottom: 0;
  font-size: 36px;
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 800px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.78;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--muted);
  font-size: 15px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.direct {
  background: var(--teal);
}

.legend-dot.adjacent {
  background: var(--amber);
}

.legend-dot.workflow {
  background: var(--blue);
}

.thesis-panel {
  border-top: 5px solid var(--coral);
  padding: 24px 26px 20px;
  background: var(--ground);
  box-shadow: var(--shadow);
}

.panel-label {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
}

.thesis-panel blockquote {
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.65;
}

.thesis-panel dl {
  margin-bottom: 0;
}

.thesis-panel dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.thesis-panel dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.thesis-panel dd {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 650;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 68px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 142px;
  padding: 24px 24px 20px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong,
.metric span,
.metric small {
  display: block;
}

.metric strong {
  color: var(--teal-dark);
  font-size: 36px;
  line-height: 1;
}

.metric span {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 750;
}

.metric small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.metric-alert strong {
  color: var(--coral);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 0.7fr);
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 46px;
}

.section-heading > p {
  align-self: end;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 16px;
}

.section-heading.light .eyebrow {
  color: #65d0c1;
}

.section-heading.light > p {
  color: #b8c4c6;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}

.band-hardware {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.hardware-caveat {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 54px;
  padding: 18px 20px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
}

.hardware-caveat strong {
  color: var(--teal-dark);
  font-size: 15px;
}

.hardware-caveat p,
.hardware-footnote {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.hardware-stack {
  display: grid;
  gap: 56px;
}

.hardware-panel {
  min-width: 0;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}

.hardware-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.hardware-panel-heading .eyebrow {
  margin-bottom: 7px;
  font-size: 12px;
}

.hardware-panel-heading h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.hardware-chip {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  text-align: right;
}

.hardware-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.hardware-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.non-apple-hardware-table {
  min-width: 760px;
}

.hardware-table th,
.hardware-table td {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.hardware-table tr > *:last-child {
  border-right: 0;
}

.hardware-table tbody tr:last-child > * {
  border-bottom: 0;
}

.hardware-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--ink-soft);
  background: #edf3f1;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hardware-table tbody th {
  min-width: 172px;
  color: var(--ink);
  font-weight: 760;
}

.hardware-table tbody tr:hover {
  background: #f7fbfa;
}

.airpods-hardware-table td:nth-child(2) {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.airpods-hardware-table td:nth-child(4) {
  min-width: 260px;
}

.airpods-hardware-table td:nth-child(5) {
  min-width: 260px;
}

.sensor-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 760;
  white-space: nowrap;
}

.sensor-status > span:first-child {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.sensor-status.is-supported {
  color: var(--green);
}

.sensor-status.is-supported > span:first-child {
  background: var(--green);
}

.sensor-status.is-not-supported {
  color: var(--coral);
}

.sensor-status.is-not-supported > span:first-child {
  background: var(--coral);
}

.hardware-footnote {
  margin-top: 14px;
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 46px;
  align-items: stretch;
}

.evidence-ladder {
  border-top: 1px solid var(--line);
}

.ladder-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.ladder-index {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.ladder-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.ladder-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.state {
  min-width: 46px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.ladder-row.current .state {
  color: var(--coral);
}

.ladder-row.emerging .state {
  color: var(--amber);
}

.opportunity-map {
  margin-bottom: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.opportunity-map figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.opportunity-map figcaption strong {
  font-size: 16px;
}

.opportunity-map figcaption span {
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.matrix {
  position: relative;
  min-height: 440px;
  margin: 24px 30px 40px 54px;
  border-left: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 50% 50%;
}

.axis-label {
  position: absolute;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.axis-y {
  top: 50%;
  left: -48px;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.axis-x {
  right: 0;
  bottom: -30px;
}

.quadrant {
  position: absolute;
  color: #a7b0b2;
  font-size: 12px;
  font-weight: 750;
}

.q1 { top: 10px; right: 10px; }
.q2 { top: 10px; left: 10px; }
.q3 { bottom: 10px; left: 10px; }
.q4 { right: 10px; bottom: 10px; }

.map-point {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 3px;
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 3px 10px rgba(23, 33, 38, 0.18);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transform: translate(-50%, 50%);
}

.map-point:hover,
.map-point:focus-visible {
  z-index: 3;
  outline: 3px solid rgba(8, 127, 115, 0.22);
  transform: translate(-50%, 50%) scale(1.06);
}

.point-gait { left: 82%; bottom: 84%; }
.point-fall { left: 74%; bottom: 72%; background: var(--green); }
.point-neck { left: 90%; bottom: 64%; background: var(--blue); }
.point-scoliosis { left: 50%; bottom: 80%; background: var(--coral); }
.point-feedback { left: 78%; bottom: 51%; background: var(--amber); }
.point-load { left: 67%; bottom: 39%; background: var(--blue); }
.point-lumbar { left: 53%; bottom: 58%; background: var(--coral); }
.point-tmj { left: 57%; bottom: 28%; background: var(--ink-soft); }

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.direction-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-top-width: 4px;
  border-radius: 6px;
  background: #fff;
}

.direction-card.priority-a {
  border-top-color: var(--teal);
}

.direction-card.priority-a-minus {
  border-top-color: var(--coral);
}

.direction-card.priority-b {
  border-top-color: var(--amber);
}

.direction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.priority {
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 850;
}

.priority-a-minus .priority {
  color: var(--coral);
}

.priority-b .priority {
  color: var(--amber);
}

.readiness {
  padding: 2px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--ground);
  font-size: 12px;
  font-weight: 750;
}

.direction-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.direction-card > p {
  min-height: 78px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 16px;
}

.study-design {
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
}

.study-design div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.study-design dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.study-design dd {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 620;
}

.score-set {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.score-set span {
  color: var(--muted);
  font-size: 12px;
}

.score-set i {
  display: block;
  height: 5px;
  margin-top: 5px;
  background: var(--line);
  overflow: hidden;
}

.score-set i::after {
  display: block;
  width: var(--score);
  height: 100%;
  background: var(--teal);
  content: "";
}

.evidence-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.evidence-link:hover,
.evidence-link:focus-visible {
  color: var(--coral);
}

.band-audit {
  border-top: 1px solid var(--line);
  background: #edf2f0;
}

.search-protocol {
  display: grid;
  grid-template-columns: 0.65fr 1.5fr 1.25fr 1.25fr;
  margin-bottom: 30px;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid #cbd6d2;
  background: #fff;
}

.search-protocol > div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.search-protocol > div:nth-child(4) {
  border-right: 0;
}

.search-protocol span,
.search-protocol strong {
  display: block;
}

.search-protocol span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.search-protocol strong {
  font-size: 14px;
  line-height: 1.55;
}

.search-protocol > p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.audit-list {
  display: grid;
  gap: 22px;
}

.audit-card {
  scroll-margin-top: 86px;
  border: 1px solid #cbd6d2;
  border-top: 5px solid var(--teal);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(23, 33, 38, 0.05);
}

.audit-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(190px, 0.35fr);
  gap: 18px;
  align-items: start;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
}

.audit-priority {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.audit-header h3 {
  margin-bottom: 8px;
  font-size: 26px;
}

.audit-header div > p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.audit-status {
  justify-self: end;
  padding: 7px 9px;
  border: 1px solid currentColor;
  color: var(--coral);
  background: var(--coral-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.audit-status.direct {
  color: var(--green);
  background: var(--green-soft);
}

.audit-status.adjacent {
  color: var(--amber);
  background: var(--amber-soft);
}

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

.audit-block {
  min-width: 0;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

.audit-block:last-child {
  border-right: 0;
}

.audit-label {
  margin-bottom: 13px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.audit-study + .audit-study {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.audit-study strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.audit-study p,
.vision-conclusion {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.audit-gaps ul,
.audit-vision ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

.audit-gaps li + li,
.audit-vision li + li {
  margin-top: 8px;
}

.vision-conclusion {
  margin-bottom: 13px;
  padding-left: 10px;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-weight: 700;
}

.research-need {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 20px 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f5f8f7;
}

.research-need .audit-label,
.research-need > p:last-child {
  margin-bottom: 0;
}

.research-need > p:last-child {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 620;
}

.proposed-study {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1.35fr);
  gap: 28px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.proposed-study-title strong {
  display: block;
  font-size: 15px;
  line-height: 1.55;
}

.proposed-study dl {
  margin-bottom: 0;
  border-top: 1px solid var(--line);
}

.proposed-study dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.proposed-study dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.proposed-study dd {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.audit-sources {
  padding: 20px 26px 22px;
}

.audit-sources ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-sources li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  font-size: 12px;
}

.audit-sources a {
  color: var(--teal-dark);
  font-weight: 750;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.audit-sources li span {
  color: var(--muted);
  font-size: 11px;
}

.library-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dark-line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-button {
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--dark-line);
  border-radius: 3px;
  color: #cbd4d5;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: #76d7ca;
  color: #fff;
}

.filter-button.active {
  border-color: #76d7ca;
  color: var(--dark);
  background: #76d7ca;
}

.search-field {
  display: grid;
  min-width: 280px;
  gap: 5px;
}

.search-field span {
  color: #9eacad;
  font-size: 12px;
  font-weight: 750;
}

.search-field input {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--dark-line);
  border-radius: 3px;
  outline: 0;
  color: #fff;
  background: #263337;
  font-size: 15px;
}

.search-field input:focus {
  border-color: #76d7ca;
  box-shadow: 0 0 0 3px rgba(118, 215, 202, 0.13);
}

.search-field input::placeholder {
  color: #879698;
}

.result-count {
  margin-bottom: 18px;
  color: #aebabc;
  font-size: 14px;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.paper-card {
  display: grid;
  min-width: 0;
  grid-template-rows: 176px 1fr;
  border: 1px solid var(--dark-line);
  border-radius: 6px;
  overflow: hidden;
  background: #263337;
}

.paper-cover {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--dark-line);
  background: #edf1ef;
}

.paper-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 180ms ease;
}

.paper-card:hover .paper-cover img {
  transform: scale(1.02);
}

.paper-cover.text-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: var(--ink);
  background: #e8eeec;
}

.text-cover strong {
  max-width: 300px;
  font-size: 19px;
  line-height: 1.35;
}

.text-cover span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.paper-evidence {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  background: rgba(5, 101, 93, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.paper-evidence.adjacent {
  background: rgba(167, 107, 8, 0.95);
}

.paper-evidence.workflow {
  background: rgba(46, 101, 147, 0.95);
}

.paper-evidence.registry {
  background: rgba(201, 79, 61, 0.95);
}

.paper-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
}

.paper-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #9fadaf;
  font-size: 12px;
  font-weight: 750;
}

.paper-content h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.paper-summary {
  margin-bottom: 12px;
  color: #bdc8ca;
  font-size: 14px;
}

.paper-finding {
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 2px solid #76d7ca;
  color: #eef4f3;
  font-size: 13px;
  font-weight: 650;
}

.paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 0 16px;
}

.paper-tags span {
  padding: 2px 6px;
  border: 1px solid var(--dark-line);
  color: #aebabc;
  font-size: 11px;
}

.paper-actions {
  display: flex;
  gap: 8px;
}

.paper-actions a {
  flex: 1;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid #58676a;
  color: #f5f7f7;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.paper-actions a:first-child {
  border-color: #76d7ca;
  color: #102e2a;
  background: #76d7ca;
}

.paper-actions a:hover,
.paper-actions a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty-state {
  padding: 50px 20px;
  border: 1px solid var(--dark-line);
  color: #b8c4c6;
  text-align: center;
}

.roadmap {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.roadmap li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(170px, 0.32fr);
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.roadmap-step {
  color: var(--teal-dark);
  font-size: 26px;
  font-weight: 850;
}

.roadmap-meta {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.roadmap h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.roadmap div > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.roadmap li > strong {
  align-self: center;
  padding-left: 20px;
  border-left: 3px solid var(--teal);
  font-size: 15px;
}

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

.boundary-grid article {
  padding: 28px 30px;
}

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

.boundary-grid h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.boundary-do h3 {
  color: var(--teal-dark);
}

.boundary-dont h3 {
  color: var(--coral);
}

.boundary-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 15px;
}

.boundary-grid li + li {
  margin-top: 8px;
}

body > footer {
  padding: 30px 0;
  color: #c2ccce;
  background: #11191c;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  display: flex;
  gap: 14px;
  margin-bottom: 0;
  font-size: 13px;
}

.footer-inner a {
  color: #76d7ca;
}

@media (max-width: 1040px) {
  .primary-nav {
    display: none;
  }

  .overview-grid,
  .evidence-layout {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    gap: 42px;
  }

  .thesis-panel {
    max-width: 680px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .evidence-layout {
    gap: 36px;
  }

  .search-protocol {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-protocol > div:nth-child(2) {
    border-right: 0;
  }

  .search-protocol > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .audit-columns {
    grid-template-columns: 1fr;
  }

  .audit-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .audit-block:last-child {
    border-bottom: 0;
  }

  .paper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .section-inner {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .topbar-inner {
    min-height: 60px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .index-link {
    padding: 7px 8px;
    font-size: 13px;
  }

  .band {
    padding: 58px 0;
  }

  .overview {
    padding-top: 50px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 18px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .hardware-caveat {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 38px;
    padding: 16px;
  }

  .hardware-stack {
    gap: 42px;
  }

  .hardware-panel {
    padding-top: 20px;
  }

  .hardware-panel-heading {
    display: block;
    margin-bottom: 16px;
  }

  .hardware-panel-heading h3 {
    font-size: 22px;
  }

  .hardware-chip {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  .hardware-table {
    font-size: 13px;
  }

  .hardware-table th,
  .hardware-table td {
    padding: 11px 12px;
  }

  .metrics {
    margin-top: 46px;
  }

  .metric {
    min-height: 126px;
    padding: 20px 14px;
  }

  .metric strong {
    font-size: 30px;
  }

  .metric span {
    font-size: 14px;
  }

  .metric small {
    font-size: 12px;
  }

  .evidence-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .opportunity-map figcaption {
    display: block;
  }

  .opportunity-map figcaption span {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .matrix {
    min-height: 370px;
    margin: 20px 18px 38px 48px;
  }

  .map-point {
    max-width: 84px;
    font-size: 11px;
    text-align: center;
  }

  .direction-grid,
  .paper-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    padding: 22px 20px;
  }

  .direction-card > p {
    min-height: auto;
  }

  .search-protocol {
    grid-template-columns: 1fr;
  }

  .search-protocol > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .search-protocol > div:nth-child(4) {
    border-bottom: 0;
  }

  .audit-header {
    grid-template-columns: 44px 1fr;
    padding: 22px 20px;
  }

  .audit-header h3 {
    font-size: 23px;
  }

  .audit-status {
    grid-column: 2;
    justify-self: start;
  }

  .audit-block,
  .audit-sources {
    padding: 20px;
  }

  .research-need,
  .proposed-study {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }

  .proposed-study dl div {
    grid-template-columns: 62px 1fr;
  }

  .library-toolbar {
    display: grid;
    align-items: stretch;
  }

  .filter-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-button {
    width: 100%;
  }

  .search-field {
    min-width: 0;
  }

  .paper-card {
    grid-template-rows: 190px 1fr;
  }

  .roadmap li {
    grid-template-columns: 48px 1fr;
    gap: 18px;
  }

  .roadmap li > strong {
    grid-column: 2;
    justify-self: start;
  }

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

  .footer-inner,
  .footer-inner p {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 14px;
  }

  .language-switch {
    margin-left: auto;
  }

  .language-button {
    min-width: 38px;
  }

  h1 {
    font-size: 34px;
  }

  .overview-grid {
    gap: 32px;
  }

  .thesis-panel {
    padding: 20px;
  }

  .thesis-panel dl div,
  .study-design div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .legend {
    display: grid;
    gap: 8px;
  }

  .score-set {
    gap: 6px;
  }
}

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

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

@media print {
  .topbar,
  .library-toolbar,
  .paper-actions {
    display: none;
  }

  .band,
  .band-dark {
    padding: 30px 0;
    color: #000;
    background: #fff;
  }

  .paper-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .paper-card {
    break-inside: avoid;
    color: #000;
    background: #fff;
  }

  .paper-content h3,
  .paper-summary,
  .paper-finding {
    color: #000;
  }
}
