:root {
  --clinical-bg: #e5f1f9;
  --clinical-navy: #0f2f4c;
  --clinical-teal: #1f8a9c;
  --clinical-text: #22313f;
  --clinical-panel: #f6fbfd;
  --clinical-border: #b8d8e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #e5f1f9;
  color: #22313f;
  font-family: Inter, "Noto Sans", Arial, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Merriweather, Georgia, serif;
  color: #0f2f4c;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 80;
  transform: translateY(-150%);
  background: #f6fbfd;
  color: #0f2f4c;
  border: 2px solid #1f8a9c;
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0f2f4c;
  color: #fff;
  border-bottom: 1px solid rgba(184, 216, 232, .45);
  box-shadow: 0 10px 28px rgba(15, 47, 76, .12);
}

.site-header__inner {
  max-width: 1180px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
}

.site-brand span:last-child {
  overflow-wrap: anywhere;
}

.site-mark {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid #b8d8e8;
  color: #b8d8e8;
  font-family: Inter, Arial, sans-serif;
  font-weight: 700;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a,
.nav-details summary {
  color: rgba(255, 255, 255, .86);
  cursor: pointer;
  white-space: nowrap;
}

.top-nav a:hover,
.nav-details summary:hover {
  color: #8feafe;
}

.nav-details {
  position: relative;
}

.nav-menu {
  position: absolute;
  right: 0;
  top: 130%;
  display: grid;
  min-width: 220px;
  background: #f6fbfd;
  color: #22313f;
  border: 1px solid #b8d8e8;
  box-shadow: 0 18px 40px rgba(15, 47, 76, .16);
}

.nav-menu a {
  padding: 10px 12px;
}

.site-frame {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.site-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow: auto;
  padding: 28px 22px;
  background: #edf7fc;
  border-right: 1px solid #b8d8e8;
}

.sidebar-title strong,
.sidebar-title span {
  display: block;
}

.sidebar-title strong {
  font-family: Merriweather, Georgia, serif;
  color: #0f2f4c;
  font-size: 18px;
  line-height: 1.35;
}

.sidebar-title span {
  margin-top: 6px;
  color: #5f7283;
  font-size: 12px;
}

.side-nav {
  display: grid;
  gap: 3px;
  margin-top: 24px;
}

.side-nav a,
.side-details summary,
.utility-nav a {
  display: block;
  padding: 10px 12px;
  border-left: 3px solid transparent;
  color: #22313f;
  font-size: 14px;
}

.side-nav a:hover,
.side-details summary:hover {
  color: #1f8a9c;
  background: #f6fbfd;
  border-left-color: #1f8a9c;
}

.side-details a {
  margin-left: 12px;
}

.utility-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #b8d8e8;
}

.content-canvas {
  background: #fff;
  border-left: 1px solid #d6e5ee;
  border-right: 1px solid #d6e5ee;
  padding: 48px clamp(24px, 5vw, 64px);
  min-width: 0;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 310px);
  gap: 32px;
  align-items: start;
  padding: 24px 24px 34px;
  margin-bottom: 34px;
  border-bottom: 4px solid #b8d8e8;
  background: #b8d8e8;
  min-width: 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
}

.page-hero p {
  margin: 16px 0 0;
  max-width: 680px;
  color: #4a5c6a;
  font-size: 18px;
  line-height: 1.7;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #b8d8e8;
  box-shadow: 0 18px 42px rgba(15, 47, 76, .10);
}

.article-shell {
  max-width: 830px;
  min-width: 0;
}

.site-prose {
  font-size: 17px;
  line-height: 1.78;
}

.site-prose p,
.site-prose ul,
.site-prose ol,
.site-prose figure,
.site-prose blockquote,
.site-prose table {
  margin: 0 0 1.35rem;
}

.site-prose h1,
.site-prose h2,
.site-prose h3 {
  margin: 2.1rem 0 1rem;
}

.site-prose a,
.site-block--paragraph a,
.category-grid a {
  color: #0f6474;
  text-decoration: underline;
  text-decoration-color: rgba(31, 138, 156, .35);
  text-underline-offset: 3px;
}

.site-prose a:hover,
.site-block--paragraph a:hover,
.category-grid a:hover {
  color: #1f8a9c;
  text-decoration-color: #1f8a9c;
}

.media-frame {
  display: inline-block;
  max-width: min(100%, 360px);
  padding: 8px;
  background: #f6fbfd;
  border: 1px solid #b8d8e8;
  box-shadow: 0 14px 30px rgba(15, 47, 76, .08);
}

.media-frame img {
  display: block;
}

.content-list {
  padding-left: 1.3rem;
}

.content-list li::marker {
  color: #1f8a9c;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #b8d8e8;
}

.table-wrap table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

.table-wrap th,
.table-wrap td {
  padding: 12px;
  border-bottom: 1px solid #d8e8ef;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.link-card,
.category-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #f6fbfd;
  border: 1px solid #b8d8e8;
}

.link-card:hover,
.category-card:hover {
  transform: translateY(-2px);
  border-color: #1f8a9c;
}

.breadcrumbs {
  grid-column: 1 / -1;
  margin-bottom: 18px;
  color: #607584;
  font-size: 13px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #9fb8c7;
}

.toc {
  max-width: 830px;
  margin-bottom: 28px;
  padding: 16px;
  background: #f6fbfd;
  border: 1px solid #b8d8e8;
}

.toc a {
  display: inline-block;
  margin: 6px 12px 0 0;
  color: #0f6474;
  text-decoration: underline;
}

.article-meta {
  color: #607584;
  font-size: 14px;
}

.main-image {
  float: right;
  max-width: 32%;
  margin: 0 0 18px 24px;
  border: 1px solid #b8d8e8;
}

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

.category-intro {
  max-width: 830px;
  margin-bottom: 34px;
}

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

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
}

.site-footer {
  background: #0f2f4c;
  color: rgba(255, 255, 255, .82);
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
}

.site-footer a:hover {
  color: #8feafe;
}

@media (max-width: 900px) {
  .top-nav {
    display: none;
  }

  .site-frame {
    display: block;
  }

  .site-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #b8d8e8;
  }

  .side-nav {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .page-hero {
    grid-template-columns: 1fr;
    padding: 20px 16px 26px;
  }

  .hero-image {
    max-width: 420px;
  }

  .category-grid,
  .category-grid--2 {
    grid-template-columns: 1fr;
  }

  .content-canvas {
    padding: 30px 16px;
  }

  .main-image {
    float: none;
    max-width: 100%;
    margin: 0 0 18px;
  }
}
