/* myRTdose — calm, large-type, mobile-first (patients are often older) */
:root {
  --bg: #f4f7fa;
  --card: #ffffff;
  --ink: #172331;
  --ink-soft: #5d6d7e;
  --line: #dde6ee;
  --accent: #076d78;
  --accent-dark: #04515a;
  --accent-soft: #e5f3f3;
  --good: #1e8e5a;
  --warn: #b26a00;
  --bad: #c0392b;
  --radius: 18px;
  font-size: 17px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(7, 109, 120, .08), transparent 26rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px 72px; }

header.site {
  min-height: 76px;
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
header.site .logo { font-size: 1.48rem; font-weight: 850; letter-spacing: -.035em; color: var(--accent); text-decoration: none; }
header.site .tag { color: var(--ink-soft); font-size: .95rem; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { color: var(--ink-soft); font-size: .88rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr);
  align-items: center;
  gap: 58px;
  min-height: 480px;
  padding: 52px 34px 68px;
  text-align: left;
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  line-height: 1.14;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.75;
  margin: 0;
  max-width: 590px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.trust-row span { color: var(--ink-soft); font-size: .76rem; }
.trust-row span::before { content: "✓"; color: var(--good); font-weight: 900; margin-right: 5px; }

.hero-visual { position: relative; min-height: 340px; display: grid; place-items: center; }
.scan-frame {
  position: relative;
  width: 300px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 48%, #b8bec5 0 8%, #6e767f 9% 15%, #b3bac1 16% 28%, #5e6871 29% 34%, #171d23 35% 46%, #080c10 47% 100%);
  box-shadow: 0 26px 65px rgba(28, 54, 75, .18), 0 4px 12px rgba(28, 54, 75, .08);
}
.scan-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 57% 43%, rgba(255, 64, 23, .72), rgba(255, 177, 30, .5) 11%, rgba(44, 195, 212, .26) 24%, transparent 42%);
  mix-blend-mode: screen;
}
.scan-ring { position: absolute; z-index: 2; border: 1.5px solid rgba(255,255,255,.7); border-radius: 50%; }
.ring-one { width: 125px; height: 92px; left: 95px; top: 93px; transform: rotate(-12deg); }
.ring-two { width: 172px; height: 132px; left: 63px; top: 73px; transform: rotate(8deg); border-color: rgba(255,202,56,.8); }
.dose-core { position: absolute; z-index: 3; width: 18px; height: 18px; border-radius: 50%; left: 169px; top: 124px; background: #ffdd4a; box-shadow: 0 0 25px #ff6a24; }
.scan-cross { position: absolute; z-index: 3; background: rgba(70,223,229,.6); }
.cross-x { height: 1px; width: 100%; top: 50%; }
.cross-y { width: 1px; height: 100%; left: 50%; }
.scan-label { position: absolute; z-index: 4; left: 14px; bottom: 10px; color: rgba(255,255,255,.7); font: 700 .58rem ui-monospace, monospace; letter-spacing: .12em; }
.visual-stat {
  position: absolute;
  z-index: 5;
  min-width: 122px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 13px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(29,54,72,.14);
  backdrop-filter: blur(10px);
}
.visual-stat small { display: block; color: var(--ink-soft); font-size: .67rem; }
.visual-stat strong { font-size: .96rem; }
.stat-dose { left: -6px; top: 54px; }
.stat-plan { right: -8px; bottom: 46px; }
.journey {
  position: relative;
  height: 420vh;
  margin: 18px calc(50% - 50vw) 54px;
  color: #fff;
}
.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: #07151d;
}
.journey-media, .journey-frame, .journey-shade { position: absolute; inset: 0; }
.journey-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .7s ease, transform 1.4s ease;
}
.journey-frame.active { opacity: 1; transform: scale(1); }
.journey-shade {
  background: linear-gradient(90deg, rgba(3,17,24,.96) 0%, rgba(3,17,24,.82) 31%, rgba(3,17,24,.2) 66%, rgba(3,17,24,.1) 100%),
    linear-gradient(0deg, rgba(3,17,24,.5), transparent 38%);
}
.journey-copy {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.journey-kicker {
  position: absolute;
  top: 9vh;
  color: #74ded9;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.journey-step {
  position: absolute;
  width: min(470px, 48vw);
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity .55s ease, transform .7s ease;
}
.journey-step.active { opacity: 1; transform: translateY(0); }
.journey-step > span { color: #78dfda; font-size: .76rem; font-weight: 800; letter-spacing: .06em; }
.journey-step h2 {
  margin: 10px 0 18px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.journey-step p { margin: 0; color: rgba(235,246,249,.8); font-size: 1rem; line-height: 1.75; text-wrap: pretty; }
.journey-progress {
  position: absolute;
  left: 0;
  bottom: 11vh;
  width: min(470px, 48vw);
  height: 2px;
  background: rgba(255,255,255,.22);
}
.journey-progress i { display: block; width: 0; height: 100%; background: #78dfda; }
.journey-note { position: absolute; bottom: 5.5vh; margin: 0; color: rgba(255,255,255,.55); font-size: .68rem; }
.hero:not(.landing-hero) {
  display: block;
  min-height: 0;
  padding: 34px 0 10px;
  text-align: center;
}
.hero:not(.landing-hero) h1 {
  max-width: 650px;
  margin: 0 auto 12px;
  font-size: 1.75rem;
  line-height: 1.38;
  letter-spacing: -.03em;
}
.hero:not(.landing-hero) p {
  margin: 0 auto;
  max-width: 680px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin: 20px 0;
  box-shadow: 0 10px 35px rgba(35, 61, 80, .045);
}
.card h2 { font-size: 1.15rem; margin: 0 0 12px; }
.card h3 { font-size: 1.02rem; margin: 18px 0 6px; }
.card h2, .card h3 { text-wrap: balance; }
.card p, .card li, .disclaimer { text-wrap: pretty; }
.muted { color: var(--ink-soft); font-size: .95rem; }
.small { font-size: .85rem; }

ol.steps { padding-left: 22px; margin: 8px 0; }
ol.steps li { margin: 6px 0; }
.section-heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.section-heading h2 { margin: 0 0 3px; }
.section-heading p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.step-number {
  flex: none;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .06em;
  padding-top: 4px;
}

/* upload dropzone */
.dropzone {
  border: 1.5px dashed #9fc3c7;
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 48px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #d9eeee; transform: translateY(-1px); }
.dropzone .big { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.dropzone .sub { color: var(--ink-soft); }
.dropzone input { display: none; }
.upload-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(7, 109, 120, .12);
}
.privacy-inline { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; color: var(--ink-soft); }
.privacy-inline span { color: var(--good); font-weight: 850; }
.privacy-inline p { margin: 0; font-size: .78rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); text-decoration: none; }
.btn.danger { background: #fbeaea; color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.feature-section { padding: 64px 0 28px; }
.section-intro { max-width: 620px; margin-bottom: 24px; }
.section-intro h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.035em; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.feature-grid article {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}
.feature-grid article > span { color: var(--accent); font-size: .7rem; font-weight: 850; }
.feature-grid h3 { margin: 24px 0 7px; font-size: 1rem; }
.feature-grid p { margin: 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.65; }

/* progress */
.progress-outer { background: #e8edf3; border-radius: 8px; height: 14px; overflow: hidden; margin: 14px 0; }
.progress-inner { background: var(--accent); height: 100%; width: 0; transition: width .4s; }
#progress-log { list-style: none; padding: 0; margin: 0; }
#progress-log li { padding: 3px 0; color: var(--ink-soft); }
#progress-log li:last-child { color: var(--ink); font-weight: 600; }

.issue { border-left: 4px solid var(--warn); background: #fff9ef; padding: 8px 12px; border-radius: 6px; margin: 6px 0; font-size: .95rem; }
.issue.error { border-color: var(--bad); background: #fdf1f0; }
.issue.info { border-color: var(--accent); background: var(--accent-soft); }

.disclaimer {
  text-align: center;
  color: var(--ink-soft);
  font-size: .88rem;
  padding: 22px 10px 0;
}

.creator {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--ink-soft);
  font-size: .78rem;
  padding: 18px 10px 8px;
}
.creator a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.creator a:hover { color: var(--accent); text-decoration: underline; }

.ad-slot {
  position: relative;
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px 8px 8px;
  margin: 18px 0;
  overflow: hidden;
}
.ad-slot[hidden] { display: none; }
.ad-label {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  color: #8c98a8;
  font-size: .68rem;
  letter-spacing: .04em;
  text-align: center;
}

/* ---------------- result view ---------------- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  min-width: 0;
}
.summary-grid .item {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
}
.summary-grid .item .k { font-size: .82rem; color: var(--ink-soft); margin-bottom: 2px; }
.summary-grid .item .v {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 0;
  overflow: hidden;
  border: 1px solid #172430;
  border-radius: 16px;
  background: #070b0f;
}
.viewer-main { flex: 1 1 380px; min-width: 300px; }
.viewer-side {
  min-width: 0;
  padding: 14px;
  border-left: 1px solid #1d2a36;
  background: #0c1218;
  color: #e6edf3;
}
.viewer-side-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 2px 10px;
  border-bottom: 1px solid #1d2a36;
}
.viewer-side-title span { font-size: .82rem; font-weight: 750; }
.viewer-side-title small { color: #718193; font-size: .65rem; }
.viewer-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-bottom: 1px solid #1d2a36;
  color: #79899a;
  background: #0c1218;
}
.viewer-tools > span {
  margin-right: auto;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.viewer-tools .chip {
  padding: 4px 10px;
  border-color: #273544;
  background: #111a22;
  color: #8fa0b2;
  font-size: .72rem;
}
.viewer-tools .chip.on { border-color: #29b8b4; color: #56ddd6; background: #102625; }
.viewer-stage { position: relative; background: #000; }

#slice-img {
  width: 100%;
  background: #000;
  display: block;
  touch-action: none;
  user-select: none;
}
.slice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 11px;
  border-top: 1px solid #1d2a36;
  background: #0c1218;
}
.slice-bar input[type="range"] { flex: 1; accent-color: #36c8c1; }
#slice-label { min-width: 72px; text-align: right; font: .72rem ui-monospace, monospace; color: #7f90a1; }
.viewer-overlay-actions {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}
.viewer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #2a3744;
  border-radius: 8px;
  padding: 6px 9px;
  background: rgba(8, 13, 18, .84);
  color: #8596a7;
  font: 650 .68rem inherit;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.viewer-toggle span { width: 7px; height: 7px; border-radius: 2px; background: #516170; pointer-events: none; }
.viewer-toggle.on { color: #7ce5df; border-color: rgba(54, 200, 193, .7); }
.viewer-toggle.on span { background: #36c8c1; box-shadow: 0 0 8px rgba(54, 200, 193, .7); }

.toggle-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .92rem;
  cursor: pointer;
  font-family: inherit;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.struct-list { list-style: none; padding: 7px 0 0; margin: 0; max-height: 510px; overflow-y: auto; }
.struct-list li { display: flex; align-items: center; gap: 7px; padding: 6px 2px; font-size: .78rem; }
.struct-list .dot { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.struct-list label { cursor: pointer; display: flex; align-items: center; gap: 8px; flex: 1; }
.struct-list .orig { color: #718193; font-size: .66rem; }
.struct-list input { accent-color: #36c8c1; }
.struct-list .chip { border-color: #273544; background: #111a22; color: #98a8b8; }

.dose-legend {
  position: absolute;
  z-index: 4;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(8, 13, 18, .78);
  color: #9baabb;
  font-size: .65rem;
  backdrop-filter: blur(8px);
}
.dose-legend[hidden] { display: none; }
.dose-legend .bar {
  flex: 1; height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, #30123b, #4145ab, #26bce1, #95fb51, #f9ba38, #d93806, #7a0403);
}

table.metrics { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.metrics th, table.metrics td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.metrics th:first-child, table.metrics td:first-child { text-align: left; }
table.metrics th { color: var(--ink-soft); font-weight: 600; font-size: .85rem; }
table.metrics tr.target td:first-child { font-weight: 700; color: var(--accent); }
.table-scroll { overflow-x: auto; }

#dvh-holder svg, [data-dvh-demo] svg { width: 100%; height: auto; }
.dvh-interactive-wrap { position: relative; touch-action: none; }
.interactive-dvh { display: block; }
.interactive-dvh .dvh-curve { transition: opacity .14s, stroke-width .14s; }
.interactive-dvh.is-reading .dvh-curve { opacity: .24; }
.interactive-dvh.is-reading .dvh-curve.active { opacity: 1; stroke-width: 4; }
.dvh-crosshair { stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 4; opacity: .42; pointer-events: none; }
.dvh-dot { stroke: #fff; stroke-width: 2; pointer-events: none; }
.dvh-tooltip {
  position: absolute;
  z-index: 5;
  width: min(250px, calc(100% - 20px));
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  background: rgba(8, 16, 23, .94);
  color: #edf6fa;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  font-size: .76rem;
  line-height: 1.45;
  pointer-events: none;
}
.dvh-tooltip strong { display: block; margin-bottom: 3px; color: #fff; }
.dvh-tooltip .reading { color: #8de5df; font-weight: 700; }
.dvh-tooltip .meaning { display: block; margin-top: 4px; color: #b5c2cc; }

#explain-text { white-space: pre-wrap; }

.footer-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.language-switch {
  margin-left: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,.72);
  color: var(--ink-soft);
  font: 700 .72rem inherit;
  cursor: pointer;
}

.file-inventory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}
.file-item > span:last-child { min-width: 0; }
.file-item strong, .file-item small { overflow-wrap: anywhere; }
.file-item small { display: block; color: var(--ink-soft); }
.file-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}
.file-item.ok .file-mark { color: var(--good); background: #e6f5ee; }
.file-item.missing .file-mark { color: var(--warn); background: #fff3df; }

.beam-layout {
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 14px;
}
.gantry-diagram {
  border: 1px solid #1d2a36;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, #18242d 0 20%, #0c1319 58%, #080d12 100%);
  overflow: hidden;
}
.gantry-diagram svg { display: block; width: 100%; height: auto; }
.beam-track { fill: none; stroke: #263744; stroke-width: 4; }
.beam-arc { fill: none; stroke-width: 5; stroke-linecap: round; opacity: .9; }
.beam-axis { stroke-width: 2; stroke-dasharray: 5 6; opacity: .45; }
.beam-machine { filter: drop-shadow(0 0 7px currentColor); }
.beam-patient { fill: #526473; stroke: #90a0ac; stroke-width: 1.5; }
.beam-angle-label { fill: #778896; font: 11px ui-monospace, monospace; }
.beam-center-label { fill: #b8c4cd; font: 600 11px inherit; text-anchor: middle; }
.beam-list { display: grid; gap: 10px; }
.beam-row {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.beam-swatch { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; }
.beam-row strong { display: block; overflow-wrap: anywhere; }
.beam-row small { display: block; margin-top: 3px; color: var(--ink-soft); line-height: 1.5; }
.beam-empty { padding: 18px; border-radius: 10px; background: var(--surface-soft); }
.treatment-process {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.process-heading h3 { margin: 4px 0 14px; font-size: 1.08rem; }
.process-heading .eyebrow { color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .06em; }
.treatment-process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.treatment-process li {
  position: relative;
  min-width: 0;
  padding: 14px;
  border-radius: 11px;
  background: var(--surface-soft);
}
.process-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 11px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}
.treatment-process li strong { font-size: .9rem; }
.treatment-process li p { margin: 6px 0 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.6; }
.process-note { margin: 12px 2px 0; }

.paper {
  border-top: 1px solid var(--line);
  padding: 16px 0 8px;
}
.paper:first-child { border-top: 0; padding-top: 2px; }
.paper h3 { margin-bottom: 2px; }
.paper-citation { color: var(--ink-soft); margin: 0 0 10px; font-size: .88rem; }
.paper-cohort,
.paper-limit {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--line);
  background: rgba(0, 0, 0, .02);
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.paper-cohort strong,
.paper-limit strong {
  display: block;
  color: var(--ink);
  font-size: .82rem;
  margin-bottom: 3px;
}
.paper-summary { margin: 10px 0; line-height: 1.75; }
.paper dl { margin: 0; }
.paper dl div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; margin: 7px 0; }
.paper dt { color: var(--ink-soft); font-size: .85rem; }
.paper dd { margin: 0; font-weight: 600; }
.paper a { color: var(--accent); }
.technique-figure {
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid #1d2a36;
  border-radius: var(--radius);
  background: #07111f;
  color: #eef7fa;
  box-shadow: 0 16px 42px rgba(9, 27, 43, .13);
}
.technique-figure img { display: block; width: 100%; height: auto; }
.technique-caption-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #263648;
}
.technique-caption-grid span { padding: 14px 18px; color: #aebdca; font-size: .78rem; line-height: 1.5; }
.technique-caption-grid span:nth-child(odd) { border-right: 1px solid #263648; }
.technique-caption-grid span:nth-child(n+3) { border-top: 1px solid #263648; }
.technique-caption-grid b { display: block; margin-bottom: 2px; color: #76ded9; font-size: .9rem; }
.technique-caption-grid.two span { border-top: 0; }
.technique-figure > small { display: block; padding: 10px 18px 13px; border-top: 1px solid #263648; color: #718494; font-size: .68rem; }

@media (max-width: 560px) {
  :root { font-size: 16px; }
  .wrap { padding: 0 16px 54px; }
  header.site { min-height: 64px; }
  .site-nav a:not(:first-child) { display: none; }
  .landing-hero { grid-template-columns: 1fr; gap: 24px; padding: 42px 4px 46px; min-height: 0; }
  .landing-hero h1 { font-size: 2.35rem; }
  .hero-visual { display: none; }
  .journey { height: 400vh; margin-top: 0; }
  .journey-sticky { min-height: 560px; }
  .journey-copy { width: calc(100% - 36px); justify-content: flex-end; padding-bottom: 22vh; }
  .journey-kicker { top: 8vh; }
  .journey-frame { object-position: 64% center; }
  .journey-shade { background: linear-gradient(0deg, rgba(3,17,24,.98) 0%, rgba(3,17,24,.82) 44%, rgba(3,17,24,.1) 78%); }
  .journey-step { width: 100%; }
  .journey-step h2 { font-size: 2rem; }
  .journey-step p { font-size: .88rem; }
  .journey-progress { width: 100%; bottom: 15vh; }
  .journey-note { bottom: 8vh; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .trust-row { gap: 6px 12px; }
  .card { padding: 16px 16px; }
  .section-heading { gap: 10px; }
  .feature-section { padding-top: 48px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid article { padding: 18px 15px; }
  .feature-grid h3 { margin-top: 18px; }
  .viewer-layout { grid-template-columns: 1fr; }
  .viewer-main { min-width: 0; }
  .viewer-side { border-left: 0; border-top: 1px solid #1d2a36; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beam-layout { grid-template-columns: 1fr; }
  .treatment-process ol { grid-template-columns: 1fr; }
  .treatment-process li { display: grid; grid-template-columns: 30px 1fr; gap: 9px; }
  .process-number { margin-bottom: 0; }
  .paper dl div { grid-template-columns: 1fr; gap: 0; }
  .technique-caption-grid { grid-template-columns: 1fr; }
  .technique-caption-grid span:nth-child(odd) { border-right: 0; }
  .technique-caption-grid span + span { border-top: 1px solid #263648; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-frame, .journey-step { transition: none; }
}

@media print {
  @page { margin: 12mm; }
  body { background: #fff; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  header.site .tag, .footer-actions, .creator, #research-card, .chip,
  .slice-bar, .toggle-row, .viewer-side, #explain-btn { display: none !important; }
  .card { break-inside: avoid; border-color: #cfd6de; box-shadow: none; }
  .viewer-main { max-width: 145mm; margin: auto; }
  .disclaimer { padding-top: 8px; }
}
