:root {
  --ink: #14212d;
  --muted: #5d6873;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --navy: #17324d;
  --teal: #087f86;
  --amber: #d99a2b;
  --red: #b42318;
  --green: #4c7a55;
  --line: rgba(20, 33, 45, 0.14);
  --shadow: 0 18px 50px rgba(23, 50, 77, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 245, 239, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand strong {
  display: block;
  font-size: 1.03rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.brand-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 22%, transparent 23%),
    conic-gradient(from 40deg, var(--teal), var(--amber), var(--navy), var(--teal));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.85);
  flex: 0 0 auto;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.top-nav a:hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 12px;
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #101f2e;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(16, 31, 46, 0.92) 0%, rgba(16, 31, 46, 0.78) 34%, rgba(16, 31, 46, 0.28) 70%),
    url("assets/images/disc-surgery-hero.png");
  background-size: cover;
  background-position: center right;
}

.hero-copy {
  position: relative;
  width: min(780px, 100%);
  padding: clamp(70px, 10vw, 132px) clamp(20px, 6vw, 72px) clamp(34px, 7vw, 82px);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: #9ee3df;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 760px;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.2rem;
}

.lede {
  max-width: 710px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.hero-actions,
.finder-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--amber);
  color: #1e1608;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.finder-tool .button.secondary {
  background: var(--navy);
  border-color: var(--navy);
}

.safety-strip {
  max-width: 740px;
  margin-top: 26px;
  padding: 14px 16px;
  border-left: 5px solid var(--red);
  background: rgba(180, 35, 24, 0.2);
  color: #fff2ef;
}

.quick-grid,
.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  transform: translateY(-24px);
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-grid article {
  background: var(--panel);
  padding: 24px;
}

.quick-grid span {
  color: var(--amber);
  font-weight: 900;
}

.quick-grid h2 {
  margin: 10px 0;
  font-size: 1.15rem;
}

.quick-grid p,
.panel p,
.option-list p,
.warning-grid p,
.note-card p {
  color: var(--muted);
}

.section {
  padding: 70px 0;
}

.stats-section {
  width: 100%;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: #ffffff;
}

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

.stats-grid article {
  padding: 22px;
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 50, 77, 0.05);
}

.stats-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.stats-grid h3 {
  margin-bottom: 10px;
}

.stats-grid p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.two-col,
.diagnosis-grid,
.fusion-layout,
.warning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.diagnosis-grid,
.warning-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.panel,
.warning-grid article,
.option-list article,
.note-card,
.finder-tool {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(23, 50, 77, 0.06);
}

.panel.dark {
  background: var(--navy);
  color: #ffffff;
}

.panel.dark p,
.panel.dark dd {
  color: rgba(255, 255, 255, 0.78);
}

.check-list,
.compact-list {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.compact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.check-list li:last-child,
.compact-list li:last-child {
  border-bottom: 0;
}

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

.mini-defs div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.mini-defs dt {
  font-weight: 900;
}

.mini-defs dd {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.warning-section {
  width: 100%;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: #fff3ef;
}

.warning-grid article {
  border-color: rgba(180, 35, 24, 0.25);
}

.warning-grid h3 {
  color: var(--red);
}

.classic-mri,
.mri-example {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
}

.classic-copy,
.mri-copy,
.classic-mri figure,
.mri-example figure {
  margin: 0;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 50, 77, 0.06);
}

.classic-copy p,
.mri-copy p,
.classic-mri figcaption,
.mri-example figcaption {
  color: var(--muted);
}

.classic-mri img,
.mri-example img {
  display: block;
  width: 100%;
  aspect-ratio: 1.06;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #101010;
}

.classic-mri figcaption,
.mri-example figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
}

.classic-mri figcaption a {
  color: var(--navy);
  font-weight: 800;
}

.split-band {
  width: 100%;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: #eaf4f3;
}

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

.specimen-card {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(23, 50, 77, 0.06);
}

.specimen-card summary {
  min-height: 52px;
  padding: 15px 18px;
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
}

.specimen-content {
  display: grid;
  grid-template-columns: minmax(260px, 440px) 1fr;
  gap: 22px;
  padding: 0 22px 22px;
  align-items: start;
}

.specimen-content figure {
  margin: 0;
}

.specimen-content img {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.specimen-content figcaption,
.specimen-content p {
  color: var(--muted);
}

.specimen-content figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
}

.tech-grid,
.future-grid,
.injection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.tech-grid article,
.future-grid article,
.injection-grid article {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 50, 77, 0.06);
}

.tech-grid p,
.future-grid p,
.injection-grid p {
  color: var(--muted);
}

.future-section {
  width: 100%;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: #f4efe5;
}

.future-grid article:nth-child(3),
.future-grid article:nth-child(4) {
  border-color: rgba(217, 154, 43, 0.34);
}

.development-note {
  margin-top: 16px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(217, 154, 43, 0.4);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 50, 77, 0.06);
}

.development-note p {
  max-width: 980px;
  color: var(--muted);
}

.injections-section {
  width: 100%;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: #edf4ee;
}

.pain-section {
  width: 100%;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: #fbf8ef;
}

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

.pain-grid article {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 50, 77, 0.06);
}

.pain-grid p {
  color: var(--muted);
}

.opioid-card {
  grid-column: span 3;
  border-left: 5px solid var(--red) !important;
}

.adjunct-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.adjunct-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

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

.adjunct-table th {
  background: #284a38;
  color: #ffffff;
}

.adjunct-table td {
  color: var(--muted);
}

.adjunct-table td:first-child {
  color: var(--ink);
  font-weight: 900;
}

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

.fusion-layout .wide {
  grid-column: 1 / -1;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.pros-cons div {
  padding: 14px;
  background: #f2f6f4;
  border-radius: 6px;
}

.pros-cons strong,
.pros-cons span {
  display: block;
}

.pros-cons span {
  margin-top: 6px;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline div {
  padding: 22px;
  background: var(--panel);
}

.timeline span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 900;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.note-card {
  margin-top: 18px;
  border-left: 5px solid var(--amber);
}

.decision-section {
  width: 100%;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: #152738;
  color: #ffffff;
}

.decision-section .eyebrow {
  color: #f1b64f;
}

.decision-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

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

.decision-grid article,
.question-board {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 22px;
}

.decision-grid article:nth-child(3) {
  border-color: rgba(255, 149, 135, 0.45);
  background: rgba(180, 35, 24, 0.18);
}

.decision-grid p,
.question-board li {
  color: rgba(255, 255, 255, 0.76);
}

.question-board {
  margin-top: 16px;
}

.anesthesia-note {
  margin-top: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 5px solid #f1b64f;
  border-radius: 8px;
}

.anesthesia-note p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.anesthesia-note a {
  color: #ffe2a6;
  font-weight: 900;
}

.question-board ol {
  margin: 0;
  padding-left: 24px;
}

.question-board li {
  padding: 7px 0;
}

.finder-section {
  width: 100%;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: #f0eee7;
}

.finder-tool label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.finder-row input {
  flex: 1 1 280px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.finder-caution {
  margin: 14px 0 0;
  padding: 14px 16px;
  color: #65320f;
  background: #fff3db;
  border: 1px solid rgba(217, 154, 43, 0.45);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  font-weight: 650;
}

.finder-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.finder-buttons button,
.language-tabs button {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.finder-buttons button.active,
.language-tabs button.active {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.finder-links,
.directory-links,
.reference-grid {
  display: grid;
  gap: 10px;
}

.finder-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.finder-links-top {
  margin-top: 12px;
  margin-bottom: 14px;
}

.finder-links a,
.directory-links a,
.reference-grid a {
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
}

.finder-links a:first-child {
  background: #1267d8;
  border-color: #1267d8;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 103, 216, 0.25);
}

.directory-panel {
  margin-top: 16px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.directory-panel p {
  color: var(--muted);
}

.directory-links,
.community-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.directory-links a:nth-child(3),
.directory-links a:nth-child(4),
.directory-links a:nth-child(6),
.directory-links a:nth-child(7) {
  border-color: rgba(8, 127, 134, 0.35);
  background: #f0fbfa;
}

.community-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.community-links {
  display: grid;
  gap: 10px;
}

.community-links a {
  padding: 12px 14px;
  background: #fff7eb;
  border: 1px solid rgba(217, 154, 43, 0.35);
  border-radius: 6px;
  color: #6b4a12;
  text-decoration: none;
  font-weight: 800;
}

.cost-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.cost-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

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

.cost-table th {
  background: var(--navy);
  color: #ffffff;
}

.cost-table td {
  color: var(--muted);
}

.cost-table td:first-child {
  color: var(--ink);
  font-weight: 900;
}

.language-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

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

.language-panel div {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.language-panel strong {
  display: block;
  margin-bottom: 8px;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 4vw, 54px);
  background: var(--navy);
  color: #ffffff;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.anonamed {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.anonamed img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
}

@media (max-width: 980px) {
  .quick-grid,
  .diagnosis-grid,
  .classic-mri,
  .mri-example,
  .stats-grid,
  .tech-grid,
  .future-grid,
  .injection-grid,
  .pain-grid,
  .option-list,
  .timeline,
  .directory-links,
  .community-links,
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opioid-card {
    grid-column: auto;
  }

  .warning-grid,
  .finder-links,
  .language-panel,
  .specimen-content,
  .decision-grid,
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .top-nav {
    display: none;
    position: absolute;
    inset: 65px 18px auto;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    justify-content: flex-start;
  }

  .top-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 760px;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .hero-image {
    background-image:
      linear-gradient(180deg, rgba(16, 31, 46, 0.92) 0%, rgba(16, 31, 46, 0.76) 52%, rgba(16, 31, 46, 0.5) 100%),
      url("assets/images/disc-surgery-hero.png");
    background-position: 72% top;
  }

  .hero-copy {
    padding-top: 120px;
  }

  .quick-grid,
  .two-col,
  .diagnosis-grid,
  .classic-mri,
  .mri-example,
  .stats-grid,
  .tech-grid,
  .future-grid,
  .injection-grid,
  .pain-grid,
  .fusion-layout,
  .option-list,
  .timeline,
  .directory-links,
  .community-links,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .mini-defs {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 50px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero-image {
    background-position: 78% top;
  }
}
