@font-face { font-family: 'Crimson Pro'; src: url('/assets/fonts/crimson-pro-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Crimson Pro'; src: url('/assets/fonts/crimson-pro-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Crimson Pro'; src: url('/assets/fonts/crimson-pro-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/assets/fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/assets/fonts/atkinson-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Azeret Mono'; src: url('/assets/fonts/azeret-mono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Azeret Mono'; src: url('/assets/fonts/azeret-mono-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --tint: #F3F6F6;
  --ink: #141B1D;
  --secondary: #4A585E;
  --rule: #D6DFE2;
  --brand: #0B4F59;
  --brand-dark: #072E35;
  --brand-soft: #E9F2F3;
  --terra: #8C2D19;
  --urgent: #B42318;
  --urgent-bg: #FEF6F5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.66;
  font-variant-numeric: tabular-nums;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brand-dark);
  color: #FFFFFF;
  padding: 10px 16px;
  z-index: 999;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 12px; }

/* Institutional Masthead */
.masthead {
  background: var(--brand-dark);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.masthead-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-id {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  text-decoration: none;
}
.site-id:hover { color: #FFFFFF; }
.site-id-text strong {
  display: block;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.site-id-text span {
  display: block;
  font-size: 12.5px;
  color: #B8D8DD;
}
.mast-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 14.5px;
}
.mast-right a { color: #E4F2F4; text-decoration: none; }
.mast-right a:hover, .mast-right a.active-nav { color: #FFFFFF; text-decoration: underline; }
.langbar {
  border-left: 1px solid rgba(255,255,255,0.24);
  padding-left: 14px;
  font-size: 13.5px;
  color: #B8D8DD;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.langbar strong { color: #FFFFFF; }

/* Wide Documentary Editorial Lead Banner */
.hero-banner {
  background: #0B2227;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.hero-banner-grid {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr 1.16fr;
  min-height: 390px;
}
.hero-copy {
  padding: 38px 36px 38px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.breadcrumb {
  font-size: 13px;
  color: #9EC5CC;
  margin-bottom: 12px;
}
.breadcrumb a { color: #C2DFE4; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.hero-copy h1 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 43px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: #FFFFFF;
}
.hero-copy p {
  font-size: 17px;
  line-height: 1.58;
  color: #D5E7EA;
  max-width: 54ch;
}
.hero-meta {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 13px;
  color: #A7CBD1;
}
.hero-photo-wrap {
  position: relative;
  min-height: 300px;
}
.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0B2227 0%, rgba(11,34,39,0.2) 26%, rgba(11,34,39,0) 100%);
  pointer-events: none;
}

/* 4-Situation Direct Clinical Router Strip */
.pathway-bar {
  background: var(--tint);
  border-bottom: 1px solid var(--rule);
}
.pathway-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pathway-item {
  padding: 17px 22px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
}
.pathway-item:last-child { border-right: 0; }
.pathway-item:hover { background: var(--brand-soft); }
.pw-num {
  font-family: 'Azeret Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
}
.pathway-item strong { font-size: 15.8px; line-height: 1.3; }
.pathway-item span { font-size: 13.5px; color: var(--secondary); line-height: 1.42; }

/* 3-Column NHS / Mayo Clinical Reference Grid */
.manual-layout {
  max-width: 1260px;
  margin: 0 auto;
  padding: 38px 24px 76px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 250px;
  gap: 40px;
  align-items: start;
}

.chapter-nav { position: sticky; top: 24px; }
.chapter-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 8px;
}
.chapter-list { list-style: none; }
.chapter-list li { border-bottom: 1px solid var(--rule); }
.chapter-list a {
  display: block;
  padding: 8.5px 6px 8.5px 10px;
  font-size: 13.8px;
  line-height: 1.35;
  color: var(--secondary);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.chapter-list a:hover { color: var(--ink); background: var(--tint); }
.chapter-list a.current {
  color: var(--brand);
  font-weight: 700;
  border-left-color: var(--brand);
  background: var(--brand-soft);
}

/* Main Clinical Prose */
.prose section + section {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}
.prose h2 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600;
  font-size: 29px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--ink);
}
.prose h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.32;
  margin: 22px 0 8px;
  color: var(--ink);
}
.prose p { margin-bottom: 15px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li + li { margin-top: 7px; }

/* GEO Link-Free Answer Capsule */
.answer-box {
  background: var(--tint);
  border-left: 4px solid var(--brand);
  padding: 15px 18px;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.58;
}

/* Urgent Care Callout */
.care-callout {
  background: var(--urgent-bg);
  border-left: 4px solid var(--urgent);
  padding: 15px 18px;
  margin: 18px 0 24px;
}
.care-callout-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #7A140D;
  margin-bottom: 4px;
}
.care-callout p { font-size: 15px; margin-bottom: 0; color: #38100D; }

/* Open Hairline Interactive Checklist */
.criteria-list {
  border-top: 2px solid var(--ink);
  margin: 16px 0;
}
.crit-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  font-size: 15.8px;
}
.crit-row:hover { background: var(--tint); }
.crit-row input {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.crit-note { display: block; font-size: 13.8px; color: var(--secondary); }
.criteria-readout {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 16px;
}

/* Figures */
figure.clinical-fig {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
figure.clinical-fig figcaption {
  margin-top: 10px;
  font-size: 13.8px;
  color: var(--secondary);
  line-height: 1.5;
}

/* Three-Line Academic Table */
table.three-line {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: 14.8px;
  margin: 16px 0 22px;
}
.three-line th {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  color: var(--secondary);
}
.three-line td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.three-line tr:last-child td { border-bottom: 0; }

/* FAQ Section */
.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.faq-q {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.faq-a {
  font-size: 15.8px;
  color: var(--secondary);
}

/* References List */
.ref-list {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.55;
}
.ref-list li + li { margin-top: 8px; }

/* Right Metadata Rail */
.meta-rail {
  font-size: 13.8px;
  color: var(--secondary);
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}
.meta-rail dl { display: grid; gap: 12px; }
.meta-rail dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.meta-rail dd {
  color: var(--ink);
  line-height: 1.45;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.mono-sm { font-family: 'Azeret Mono', monospace; font-size: 12px; }

/* Site Footer */
.site-footer {
  background: var(--brand-dark);
  color: #C7E0E4;
  border-top: 3px solid var(--brand);
  font-size: 14px;
}
.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}
.footer-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}
.footer-links { list-style: none; }
.footer-links li + li { margin-top: 6px; }
.footer-links a { color: #C7E0E4; text-decoration: none; }
.footer-links a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-disclaimer {
  max-width: 1260px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 12.8px;
  color: #9CC0C6;
  line-height: 1.55;
}

@media (max-width: 1020px) {
  .hero-banner-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap::after { display: none; }
  .pathway-inner { grid-template-columns: 1fr 1fr; }
  .pathway-item:nth-child(2) { border-right: 0; }
  .pathway-item:nth-child(1), .pathway-item:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .manual-layout { grid-template-columns: 1fr; gap: 28px; }
  .chapter-nav { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .pathway-inner { grid-template-columns: 1fr; }
  .pathway-item { border-right: 0; border-bottom: 1px solid var(--rule); }
  table.three-line, .three-line tbody, .three-line tr, .three-line td { display: block; width: 100%; }
  .three-line thead { display: none; }
  .three-line tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .three-line td { padding: 3px 0; border-bottom: 0; }
  .three-line td[data-col]::before { content: attr(data-col) ": "; font-weight: 700; color: var(--secondary); }
}
