:root {
  --ink: #172033;
  --muted: #586273;
  --soft: #f6f7f2;
  --paper: #ffffff;
  --line: #dce1e7;
  --red: #ef1740;
  --red-dark: #bc1231;
  --teal: #0f766e;
  --gold: #b88723;
  --blue: #234b6d;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 225, 231, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
  background: #05080d;
}

.brand strong {
  display: block;
  font-family: "Lexend", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.05;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a {
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 8px;
  color: #263248;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--red-dark);
  background: #fff1f3;
}

.site-nav .nav-cta {
  color: white;
  background: var(--red);
  padding-inline: 16px;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus,
.site-nav .nav-cta[aria-current="page"] {
  color: white;
  background: var(--red-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    url("/wp-content/uploads/2025/01/Cartoon-Tab-Thumbnail-2.jpg") center/cover;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: 48px;
  padding: 78px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Lexend", Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

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

h2 {
  font-size: clamp(2rem, 3.8vw, 3.35rem);
}

h3 {
  font-size: 1.24rem;
}

p {
  margin: 0;
}

.hero-lede,
.page-hero p,
.section-intro,
.stacked-copy,
.large-list {
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-lede {
  max-width: 660px;
  margin-top: 22px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
}

.button.primary {
  color: white;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(239, 23, 64, 0.22);
}

.button.primary:hover,
.button.primary:focus {
  background: var(--red-dark);
}

.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-media {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.hero-media > img {
  width: min(100%, 430px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: #070a0f;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: absolute;
  right: 0;
  bottom: 48px;
  width: min(330px, 88%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: white;
  background: rgba(23, 32, 51, 0.88);
  box-shadow: var(--shadow);
}

.panel-kicker {
  display: block;
  margin-bottom: 8px;
  color: #ffccd5;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 24px 0;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.08);
  transform: translateY(-54px);
  overflow: hidden;
}

.metric-strip div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

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

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  margin-bottom: 4px;
  font-family: "Lexend", Arial, sans-serif;
}

.metric-strip span {
  color: var(--muted);
  font-size: 0.94rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
}

.section-intro {
  align-self: end;
}

.card-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

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

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.path-card,
.case-card,
.contact-panel,
.contact-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
}

.feature-card,
.path-card,
.case-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
}

.feature-card .card-index,
.path-card .card-index,
.case-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h2,
.path-card h2 {
  font-size: 1.45rem;
}

.feature-card h3,
.path-card h2,
.case-card h3 {
  margin-bottom: 12px;
}

.feature-card p,
.path-card p,
.case-card p,
.contact-list p {
  color: var(--muted);
}

.feature-card a:not(.button) {
  margin-top: auto;
  padding-top: 22px;
  color: var(--red-dark);
  font-weight: 800;
  text-decoration: none;
}

.feature-card a:not(.button):hover,
.feature-card a:not(.button):focus,
.text-link:hover,
.text-link:focus {
  text-decoration: underline;
}

.path-card .button {
  width: fit-content;
  margin-top: auto;
}

.check-list,
.large-list {
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.check-list li,
.large-list li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
}

.check-list li::before,
.large-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.band {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.case-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: center;
}

.case-preview p {
  margin-top: 18px;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--red-dark);
  font-weight: 800;
  text-decoration: none;
}

.workflow-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-left: 3px solid var(--red);
}

.workflow-list li {
  position: relative;
  padding: 18px 0 18px 28px;
}

.workflow-list li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 26px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--soft);
}

.workflow-list strong,
.workflow-list span {
  display: block;
}

.workflow-list span {
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head.narrow {
  max-width: 680px;
  text-align: center;
}

.section-head.narrow .eyebrow {
  justify-content: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink);
}

.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 12px 14px;
  color: white;
  font-weight: 800;
}

.about-band {
  background: #fbfbf8;
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.about-grid.reverse {
  grid-template-columns: minmax(250px, 0.52fr) minmax(0, 1fr);
}

.about-grid.reverse img {
  background: white;
  object-fit: contain;
}

.about-grid img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-grid p {
  margin-top: 18px;
  color: var(--muted);
}

.about-grid .button {
  margin-top: 26px;
}

.final-cta {
  padding: 76px 0;
}

.cta-panel {
  padding: 44px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  overflow: hidden;
}

.cta-panel .eyebrow {
  color: #ffccd5;
}

.cta-panel p:not(.eyebrow) {
  max-width: 660px;
  margin: 16px 0 26px;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: 82px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
}

.page-hero p {
  max-width: 680px;
  margin-top: 22px;
}

.page-hero img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-hero img {
  object-fit: contain;
  background: #06080d;
}

.guidelines-hero img {
  object-fit: contain;
  background: #06080d;
}

.guideline-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
}

.guideline-jump a {
  padding: 10px 13px;
  border-radius: 8px;
  color: #263248;
  font-weight: 800;
  text-decoration: none;
  background: #f7f8fa;
}

.guideline-jump a:hover,
.guideline-jump a:focus {
  color: var(--red-dark);
  background: #fff1f3;
}

.stacked-copy p + p {
  margin-top: 18px;
}

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

.workflow-board article,
.guideline-card,
.documentation-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
}

.workflow-board article {
  padding: 24px;
}

.workflow-board span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-board h3 {
  margin-bottom: 14px;
}

.workflow-board ul,
.guideline-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.workflow-board li,
.guideline-card li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
  color: var(--muted);
}

.workflow-board li::before,
.guideline-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

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

.guideline-card {
  padding: 24px;
}

.guideline-card h3 {
  margin-bottom: 14px;
}

.red-flag-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 52px;
  align-items: start;
}

.red-flag-panel p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
}

.documentation-list {
  display: grid;
  gap: 14px;
}

.documentation-list article {
  padding: 20px;
}

.documentation-list strong,
.documentation-list span {
  display: block;
}

.documentation-list strong {
  margin-bottom: 6px;
  font-family: "Lexend", Arial, sans-serif;
}

.documentation-list span {
  color: var(--muted);
}

.guideline-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.08);
  overflow: hidden;
}

.guideline-stats div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.guideline-stats div:last-child {
  border-right: 0;
}

.guideline-stats strong,
.guideline-stats span {
  display: block;
}

.guideline-stats strong {
  color: var(--red-dark);
  font-family: "Lexend", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.guideline-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.diagnosis-toolbar {
  position: sticky;
  top: 88px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
  backdrop-filter: blur(14px);
}

.diagnosis-search {
  flex: 1 1 340px;
}

.diagnosis-filter {
  flex: 0 1 280px;
}

.diagnosis-search input,
.diagnosis-filter select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 700;
}

.button.compact {
  min-height: 44px;
  padding: 9px 13px;
}

.diagnosis-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.diagnosis-list {
  display: grid;
  gap: 12px;
}

.diagnosis-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
  overflow: hidden;
}

.diagnosis-item[hidden] {
  display: none;
}

.diagnosis-item > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto) 34px;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.diagnosis-item > summary::-webkit-details-marker {
  display: none;
}

.diagnosis-item > summary::after {
  content: "+";
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--red);
  font-family: "Lexend", Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.diagnosis-item[open] > summary::after {
  content: "-";
  background: var(--ink);
}

.diagnosis-title {
  min-width: 0;
}

.diagnosis-title strong,
.diagnosis-title small {
  display: block;
}

.diagnosis-title strong {
  font-family: "Lexend", Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.18;
}

.diagnosis-title small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.diagnosis-meta {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  text-align: right;
}

.diagnosis-content {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}

.diagnosis-brief {
  margin: 18px 0;
  color: var(--muted);
  font-weight: 700;
}

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

.wiki-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.wiki-section.wide {
  grid-column: 1 / -1;
}

.wiki-section h3 {
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.wiki-section ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.wiki-section li {
  position: relative;
  padding-left: 20px;
  margin-top: 9px;
  color: var(--muted);
}

.wiki-section li:first-child {
  margin-top: 0;
}

.wiki-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.reference-method,
.evidence-panel,
.image-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reference-method {
  display: grid;
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
}

.reference-method strong {
  color: var(--red-dark);
  font-family: "Lexend", Arial, sans-serif;
  font-size: 1rem;
}

.reference-method span {
  color: var(--muted);
  font-weight: 700;
}

.evidence-panel,
.image-panel {
  margin-top: 14px;
  padding: 18px;
  background: #f8fafc;
}

.evidence-panel h3,
.image-panel h3 {
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.evidence-panel ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.evidence-panel li {
  position: relative;
  margin-top: 9px;
  padding-left: 20px;
  color: var(--muted);
}

.evidence-panel li:first-child {
  margin-top: 0;
}

.evidence-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.reference-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 128, 128, 0.28);
  border-radius: 8px;
  color: var(--teal-dark);
  background: white;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.reference-links a:hover,
.reference-links a:focus-visible {
  border-color: var(--teal);
  color: var(--ink);
}

.diagnosis-image-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0;
}

.diagnosis-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: white;
}

.diagnosis-image-card figcaption {
  display: grid;
  gap: 6px;
}

.diagnosis-image-card figcaption strong {
  color: var(--ink);
  font-family: "Lexend", Arial, sans-serif;
}

.diagnosis-image-card figcaption span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.diagnosis-image-card figcaption a {
  color: var(--red-dark);
  font-weight: 900;
}

.case-card dl {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.case-card dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.case-card dt {
  color: var(--ink);
  font-weight: 800;
}

.case-card dd {
  margin: 0;
  color: var(--muted);
}

.pathology-tree {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.pathology-branch {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
  overflow: hidden;
}

.pathology-branch summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: "Lexend", Arial, sans-serif;
  font-weight: 800;
}

.pathology-branch summary::after {
  content: "+";
  color: var(--red-dark);
  font-size: 1.4rem;
  line-height: 1;
}

.pathology-branch[open] summary::after {
  content: "-";
}

.pathology-branch summary span {
  display: block;
  color: var(--muted);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
}

.pathology-case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.pathology-case-link {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fbfcfd;
}

.pathology-case-link:hover,
.pathology-case-link:focus-visible {
  border-color: rgba(239, 23, 64, 0.45);
  box-shadow: 0 14px 26px rgba(23, 32, 51, 0.08);
}

.pathology-case-link strong {
  font-family: "Lexend", Arial, sans-serif;
  font-size: 1.05rem;
}

.pathology-case-link span {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.pathology-case-number {
  width: fit-content;
  min-width: 38px;
  padding: 4px 8px;
  border-radius: 6px;
  color: white;
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--red-dark);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  text-decoration: underline;
}

.case-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 22px;
  align-items: start;
}

.case-detail-main,
.case-fact-panel {
  display: grid;
  gap: 18px;
}

.case-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.case-kicker span {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  color: white;
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-section,
.case-fact-panel article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
}

.case-section {
  padding: 24px;
}

.case-section h2,
.case-fact-panel h2,
.case-fact-panel h3 {
  margin-bottom: 12px;
}

.case-section p,
.case-fact-panel p {
  color: var(--muted);
}

.case-section ul,
.case-fact-panel ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.case-section li,
.case-fact-panel li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
  color: var(--muted);
}

.case-section li::before,
.case-fact-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.case-fact-panel article {
  padding: 20px;
}

.case-question-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 700;
}

.case-question-list li {
  padding-left: 4px;
  margin: 0;
}

.case-question-list li::before {
  display: none;
}

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

.answer-card {
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfd;
}

.answer-card h3 {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 1rem;
}

.answer-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

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

.lens-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

.lens-table th {
  color: white;
  background: var(--teal);
  font-family: "Lexend", Arial, sans-serif;
  font-size: 0.9rem;
}

.lens-table tr:last-child td {
  border-bottom: 0;
}

.lens-table td {
  color: var(--muted);
  font-weight: 700;
}

.lens-table strong {
  color: var(--ink);
}

.lens-order-callout {
  border-left: 8px solid var(--gold);
  color: white;
  background: #101725;
}

.lens-order-callout h2,
.lens-order-callout p,
.lens-order-callout li {
  color: white;
}

.lens-order-callout li::before {
  background: var(--gold);
}

.protected-hero img {
  object-fit: contain;
  background: #06080d;
}

.unlock-panel {
  max-width: 760px;
  margin-inline: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.unlock-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.unlock-form input,
.qbank-search,
.qbank-filter {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 700;
}

.unlock-form input {
  flex: 1;
}

.unlock-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--red-dark);
  font-weight: 800;
}

.protected-summary {
  display: none;
}

.protected-summary.is-visible {
  display: grid;
}

.qbank-toolbar {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
}

.qbank-toolbar.is-visible {
  display: flex;
}

.qbank-search {
  flex: 1 1 300px;
}

.qbank-filter {
  flex: 0 1 240px;
}

.qbank-count {
  margin-left: auto;
  color: var(--muted);
  font-weight: 900;
}

.qbank-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.qbank-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
  overflow: hidden;
}

.qbank-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.qbank-card summary::-webkit-details-marker {
  display: none;
}

.qbank-number,
.qbank-answer-key {
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qbank-number {
  color: white;
  background: var(--teal);
}

.qbank-answer-key {
  color: var(--red-dark);
  background: #fff1f3;
}

.qbank-question {
  display: grid;
  gap: 6px;
}

.qbank-question strong {
  font-family: "Lexend", Arial, sans-serif;
}

.qbank-question span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.qbank-body {
  display: grid;
  gap: 16px;
  padding: 0 18px 18px;
}

.qbank-options {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.qbank-options li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
  background: #fbfcfd;
}

.qbank-options li.correct {
  border-color: rgba(0, 128, 128, 0.45);
  color: var(--teal-dark);
  background: #eefafa;
}

.qbank-explanation {
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--muted);
  background: #fbfcfd;
  font-weight: 700;
}

.qbank-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.teaching-pearl {
  border-left: 8px solid var(--gold);
  color: white;
  background: #17172e;
}

.teaching-pearl h2,
.teaching-pearl p {
  color: white;
}

.source-transcript summary {
  cursor: pointer;
  color: var(--ink);
  font-family: "Lexend", Arial, sans-serif;
  font-weight: 800;
}

.source-transcript pre {
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 8px;
  color: var(--muted);
  background: #f5f7fa;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
}

.case-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 128, 128, 0.28);
  border-radius: 8px;
  color: var(--teal-dark);
  background: white;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.case-source-links a:hover,
.case-source-links a:focus-visible {
  border-color: var(--teal);
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 24px;
}

.contact-panel {
  padding: 30px;
  background: var(--ink);
  color: white;
}

.contact-panel .eyebrow {
  color: #ffccd5;
}

.contact-panel h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  word-break: break-word;
}

.contact-panel p {
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-list article {
  padding: 24px;
}

.contact-list h3 {
  margin-bottom: 8px;
}

.site-footer {
  padding: 48px 0;
  color: white;
  background: #101725;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, 0.6fr);
  gap: 34px;
  align-items: start;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p,
.footer-note span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus {
  color: white;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero-grid,
  .page-hero-grid,
  .split,
  .case-preview,
  .about-grid,
  .about-grid.reverse,
  .contact-grid,
  .red-flag-panel,
  .wiki-grid,
  .case-detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-media {
    min-height: 420px;
  }

  .card-grid.four,
  .card-grid.three,
  .answer-card-grid,
  .workflow-board,
  .guideline-grid,
  .pathology-case-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-grid img {
    height: 360px;
  }

  .reference-method,
  .diagnosis-image-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
    left: 14px;
    right: 14px;
  }

  .brand small {
    display: none;
  }

  .hero-grid,
  .page-hero {
    padding-block: 54px;
  }

  .hero-media {
    min-height: 330px;
  }

  .hero-panel {
    position: static;
    width: 100%;
    margin-top: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .section-tight {
    padding: 18px 0;
  }

  .metric-strip,
  .guideline-stats,
  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .answer-card-grid,
  .workflow-board,
  .guideline-grid,
  .pathology-case-list {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    transform: none;
  }

  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guideline-stats div,
  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guideline-stats div:last-child,
  .metric-strip div:last-child {
    border-bottom: 0;
  }

  .diagnosis-toolbar {
    position: static;
  }

  .diagnosis-search,
  .diagnosis-filter,
  .diagnosis-toolbar .button {
    flex-basis: 100%;
    width: 100%;
  }

  .diagnosis-count {
    width: 100%;
    margin-left: 0;
  }

  .diagnosis-item > summary {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .diagnosis-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .gallery-grid img {
    height: 260px;
  }

  .cta-panel {
    padding: 30px 22px;
  }

  .case-card dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .unlock-form,
  .qbank-card summary {
    grid-template-columns: 1fr;
  }

  .unlock-form {
    display: grid;
  }

  .qbank-count {
    width: 100%;
    margin-left: 0;
  }

  .qbank-search,
  .qbank-filter {
    flex-basis: 100%;
    width: 100%;
  }
}
