:root {
  --ink: #102129;
  --muted: #5d6c72;
  --paper: #f4f7f6;
  --white: #fff;
  --line: #d8e2df;
  --teal: #0e3440;
  --blue: #286aa5;
  --red: #b7373d;
  --gold: #b4872c;
  --green: #26745d;
  --shadow: 0 18px 50px rgba(16, 33, 41, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px clamp(14px, 4vw, 44px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  font-weight: 900;
}
.brand strong, .brand small { display: block; letter-spacing: 0; }
.brand strong { line-height: 1.05; }
.brand small { color: var(--red); font-weight: 850; font-size: .72rem; text-transform: uppercase; }
.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 780;
}
.top-nav a { text-decoration: none; }
.top-nav a:hover { color: var(--teal); }
.nav-primary {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff !important;
}
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(720px, calc(100vh - 64px));
  padding: clamp(38px, 7vw, 92px) clamp(18px, 6vw, 84px);
  overflow: hidden;
  color: #fff;
}
.hero-image, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image { object-fit: cover; }
.hero-shade {
  background: linear-gradient(90deg, rgba(8,30,38,.90), rgba(8,30,38,.62) 52%, rgba(8,30,38,.14));
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #ffcad0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  color: var(--teal);
  line-height: 1.08;
  letter-spacing: 0;
}
h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.45rem, 6vw, 5.5rem);
  max-width: 1000px;
}
h2 { font-size: clamp(1.75rem, 3vw, 3rem); }
h3 { font-size: 1.05rem; }
.lede {
  max-width: 780px;
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
}
.hero-actions, .treatment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.button, .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.hero .button {
  border-color: rgba(255,255,255,.56);
  background: rgba(255,255,255,.14);
  color: #fff;
}
.hero .button.primary { background: #fff; color: var(--teal); }
.notice {
  padding: 14px clamp(18px, 6vw, 84px);
  background: #fff4df;
  border-top: 1px solid #ebd6a9;
  border-bottom: 1px solid #ebd6a9;
}
.quick-grid, .section {
  padding: clamp(34px, 5vw, 72px) clamp(18px, 6vw, 84px);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: var(--teal);
  color: #d8eef2;
}
.quick-grid article {
  padding: 18px;
  border-left: 3px solid #78d0df;
}
.quick-grid p { margin-bottom: 0; }
.metric {
  display: block;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 920;
  line-height: 1;
}
.section { background: #fff; border-bottom: 1px solid var(--line); }
.section.band { background: var(--paper); }
.section-head {
  max-width: 920px;
  margin-bottom: 28px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
}
.callout, .chart-card, .framed-image, .story-grid article, .pathway article, .compare-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.callout { padding: 22px; }
.callout.wide { margin-top: 24px; }
.risk-benefit .risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.risk-benefit article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}
.risk-benefit b, .risk-benefit span {
  display: block;
}
.risk-benefit b { color: var(--teal); }
.risk-benefit span {
  margin-top: 6px;
  color: var(--muted);
  font-size: .92rem;
}
.tight-list { padding-left: 20px; margin-bottom: 0; }
.tight-list li { margin: 8px 0; }
.chart-card { padding: 20px; }
.bar-row {
  display: grid;
  grid-template-columns: 120px minmax(120px, 1fr) 88px;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.bar-row span { color: var(--muted); font-weight: 750; }
.bar-row div {
  height: 18px;
  border-radius: 999px;
  background: #e8efed;
  overflow: hidden;
}
.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.bar-row.danger i { background: linear-gradient(90deg, var(--red), var(--gold)); }
.bar-row b { text-align: right; }
.caption { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.pathway {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.biomarker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.biomarker-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
}
.biomarker-grid b, .biomarker-grid span { display: block; }
.biomarker-grid b { color: var(--teal); }
.biomarker-grid span { margin-top: 5px; color: var(--muted); font-size: .93rem; }
.score-tool {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.35fr) minmax(240px, .75fr);
  gap: 18px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.score-copy h3 { margin-top: 0; }
.score-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.score-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}
.score-form input, .score-form select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--ink);
  font: inherit;
}
.score-form .check-label {
  grid-template-columns: 18px 1fr;
  grid-column: 1 / -1;
  align-items: center;
}
.score-form .check-label input { min-height: auto; }
.score-result {
  padding: 18px;
  border-radius: 8px;
  background: #0e3440;
  color: #fff;
}
.score-result span {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}
.score-result strong {
  display: block;
  margin: 4px 0 10px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .95;
}
.score-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}
.score-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #62c58d;
  transition: width .2s ease, background .2s ease;
}
.score-result h4 { margin: 16px 0 6px; font-size: 1.1rem; }
.score-result p { margin-bottom: 0; color: rgba(255,255,255,.86); }
.pathway article { padding: 20px; }
.pathway b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
}
.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.metastasis-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
figure { margin: 0; }
.image-pair figure, .metastasis-gallery figure, .framed-image {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.image-pair img, .metastasis-gallery img, .framed-image img {
  display: block;
  width: 100%;
  height: auto;
}
.metastasis-gallery img {
  height: 260px;
  object-fit: contain;
  background: #f8fbfb;
}
.anatomy-figure { margin-top: 24px; }
.tab-image {
  max-width: 520px;
  margin-top: 18px;
  box-shadow: none;
}
figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { background: #e9f0ee; color: var(--teal); }
tr:last-child td { border-bottom: 0; }
.story { background: #f9fbfb; }
.story-grid, .compare-grid, .graph-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.compare-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.story-grid article, .compare-grid article { padding: 20px; }
.psa-card {
  display: grid;
  grid-template-columns: auto 1fr 70px 1fr 70px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 18px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
}
.psa-card span { color: #b7e6ef; font-weight: 900; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.psa-card i {
  height: 2px;
  background: #b7e6ef;
}
.psa-card p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: #d9eef2;
}
.tab {
  background: #e8efed;
  color: var(--teal);
}
.tab.active {
  background: var(--teal);
  color: #fff;
}
.tab-panel {
  display: none;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.tab-panel.active { display: block; }
.surgical-gallery {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.surgical-gallery h3 {
  margin: 0;
  padding: 16px 18px;
  background: #fff0f0;
  color: var(--red);
  font-weight: 900;
}
.surgical-gallery .graphic-note {
  padding: 16px 18px 0;
  margin: 0;
  font-weight: 700;
}
.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.reference-grid a {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}
.reference-grid b, .reference-grid span { display: block; }
.reference-grid span { margin-top: 6px; color: var(--muted); font-size: .92rem; }
footer {
  padding: 28px clamp(18px, 6vw, 84px);
  background: var(--teal);
  color: #d7ecef;
}
footer p { margin-bottom: 0; max-width: 1000px; }
footer a { color: #fff; font-weight: 850; }
@media (max-width: 980px) {
  .quick-grid, .pathway, .story-grid, .compare-grid, .graph-grid, .reference-grid, .biomarker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .score-tool {
    grid-template-columns: 1fr;
  }
  .risk-benefit .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  .top-nav { justify-content: flex-start; }
  .hero { min-height: 620px; }
  .quick-grid, .pathway, .story-grid, .compare-grid, .graph-grid, .reference-grid, .image-pair, .metastasis-gallery, .biomarker-grid {
    grid-template-columns: 1fr;
  }
  .risk-benefit .risk-grid {
    grid-template-columns: 1fr;
  }
  .score-form {
    grid-template-columns: 1fr;
  }
  .bar-row {
    grid-template-columns: 86px minmax(70px, 1fr) 70px;
    font-size: .9rem;
  }
  .psa-card { grid-template-columns: 1fr; }
  .psa-card i { width: 80px; }
}
