/* MidSouth Health Access Guide — Editorial Clinical Design System */
:root {
  --navy-950: #091a2b;
  --navy-900: #0f2942;
  --navy-800: #183b5c;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --white: #ffffff;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-900: #78350f;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 41, 66, 0.08);
  --max-w: 1120px;
  --article-w: 760px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy-900);
  background-color: var(--slate-50);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--navy-900);
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: var(--radius-sm);
}

/* Top Non-Affiliation Banner */
.top-notice {
  background: var(--navy-950);
  color: #cbd5e1;
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 0.5rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-notice strong {
  color: var(--white);
  font-weight: 600;
}
.top-notice a {
  color: #5eead4;
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy-900);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-700);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--slate-700);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--teal-50);
  color: var(--teal-700);
}

/* Containers */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.article-container {
  max-width: var(--article-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 3.75rem 1.25rem 3.5rem;
  border-bottom: 4px solid var(--teal-600);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #5eead4;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1.1rem;
  max-width: 820px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 720px;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--teal-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-700);
  color: var(--white);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

/* Trust Bar */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 1.1rem 1.25rem;
}

.trust-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.trust-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal-600);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.trust-item strong {
  color: var(--navy-900);
  display: block;
  font-size: 0.9rem;
}

/* Sections & Cards */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--teal-700);
  margin-bottom: 0.35rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  margin: 0 0 0.5rem;
  color: var(--navy-900);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--slate-600);
  max-width: 680px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--teal-600);
  box-shadow: var(--shadow-md);
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.6rem;
  color: var(--navy-900);
}

.card h3 a {
  color: var(--navy-900);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--teal-700);
}

.card p {
  margin: 0 0 1.1rem;
  color: var(--slate-600);
  font-size: 0.94rem;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-700);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Breadcrumbs & Article Header */
.article-hero {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 2.25rem 0 2rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--slate-300);
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  color: var(--slate-600);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--teal-700);
  text-decoration: underline;
}

.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 0.85rem;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.article-dek {
  font-size: 1.08rem;
  color: var(--slate-600);
  margin: 0 0 1.25rem;
  line-height: 1.65;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  font-size: 0.84rem;
  color: var(--slate-600);
  padding-top: 1rem;
  border-top: 1px solid var(--slate-200);
}

.meta-bar strong {
  color: var(--navy-900);
}

/* Article Body Typography */
.article-main {
  padding: 2.5rem 0 3.5rem;
}

.prose {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.28;
  color: var(--navy-900);
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--slate-200);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.35;
  color: var(--navy-800);
  margin: 1.65rem 0 0.5rem;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--slate-700);
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--slate-700);
}

.prose li {
  margin-bottom: 0.45rem;
}

/* Callout & Citation Boxes */
.callout {
  background: var(--teal-50);
  border-left: 4px solid var(--teal-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
}

.callout-title {
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-700);
  margin: 0 0 0.4rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.notice-box {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-left: 4px solid #d97706;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  color: var(--amber-900);
  font-size: 0.94rem;
}

.notice-box strong {
  color: var(--amber-900);
}

.citation-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  margin-top: 2.25rem;
}

.citation-box h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy-900);
}

.citation-box ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--slate-600);
}

.citation-box li {
  margin-bottom: 0.5rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
}

th, td {
  text-align: left;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}

th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:nth-child(even) {
  background: var(--slate-50);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Related Links */
.related-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.related-box h3 {
  font-family: var(--font-serif);
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  color: var(--navy-900);
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.related-list a {
  display: block;
  padding: 0.75rem 0.9rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-900);
}

.related-list a:hover {
  border-color: var(--teal-600);
  color: var(--teal-700);
  background: var(--teal-50);
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 3.25rem 1.25rem 2.25rem;
  margin-top: 3rem;
  border-top: 4px solid var(--teal-600);
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.65rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5eead4;
  margin: 0 0 0.85rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: var(--max-w);
  margin: 2.25rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-disclaimer strong {
  color: #e2e8f0;
}

/* Responsive */
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .prose {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.5rem;
    border-top: 1px solid var(--slate-200);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
