:root {
  --bg: #edf3ef;
  --bg-strong: #dce7e0;
  --paper: #fffdfa;
  --paper-soft: #f6f4ef;
  --ink: #16312b;
  --muted: #60756e;
  --line: rgba(22, 49, 43, 0.14);
  --brand: #1e6b5b;
  --brand-deep: #15453b;
  --accent: #bddfd3;
  --shadow: 0 16px 44px rgba(18, 49, 42, 0.09);
  --radius: 28px;
  --radius-sm: 18px;
  --shell: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(170, 206, 192, 0.5), transparent 28rem),
    linear-gradient(180deg, #f5f8f6 0%, var(--bg) 52%, #f7f4ee 100%);
  color: var(--ink);
  line-height: 1.7;
}

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

a {
  color: var(--brand-deep);
  text-decoration-color: rgba(21, 69, 59, 0.35);
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-color: currentColor;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 7vw, 4.8rem);
}

h2 {
  font-size: clamp(1.65rem, 4.8vw, 2.5rem);
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

.shell {
  width: min(calc(100% - 1.4rem), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(245, 248, 246, 0.82);
  border-bottom: 1px solid rgba(22, 49, 43, 0.08);
}

.shell-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 30% 30%, #e7f4ee, transparent 45%),
    linear-gradient(135deg, #2a7c69, #183f38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.83rem;
}

.top-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}

.top-nav a,
.footer-nav a {
  text-decoration: none;
  font-size: 0.94rem;
}

.hero {
  padding: 2rem 0 1.4rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.hero-copy,
.intro-card,
.feature-card,
.topic-section,
.editorial-note,
.sidebar-card,
.prose-card {
  background: rgba(255, 253, 250, 0.82);
  border: 1px solid rgba(22, 49, 43, 0.1);
  box-shadow: var(--shadow);
}

.hero-copy,
.intro-card,
.editorial-note,
.feature-card,
.topic-section,
.sidebar-card,
.prose-card {
  border-radius: var(--radius);
}

.hero-copy {
  padding: 1.5rem;
}

.hero-home .hero-copy {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 236, 0.94)),
    var(--paper);
}

.hero-visual {
  padding: 0.5rem;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 0.5rem);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-lead,
.section-heading p,
.intro-card p,
.editorial-note p,
.footer-note,
.card-meta,
.article-meta,
.breadcrumbs,
.toc-list a,
.ad-slot span {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.35rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand-deep);
  color: #f9f7f3;
}

.button-secondary {
  background: rgba(30, 107, 91, 0.08);
  color: var(--brand-deep);
}

.hero-facts,
.article-meta {
  display: grid;
  gap: 0.45rem;
  padding-left: 1rem;
}

.intro-band,
.page-shell {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.intro-card,
.editorial-note,
.prose-card {
  padding: 1.5rem;
}

.feature-grid,
.section-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.feature-card {
  padding: 1.3rem;
}

.feature-card a,
.article-card a,
.mini-card a {
  text-decoration: none;
  color: inherit;
}

.topic-section {
  padding: 1.3rem;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.article-grid,
.mini-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.article-card a,
.mini-card a {
  display: block;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(247, 250, 248, 0.9);
  border: 1px solid rgba(22, 49, 43, 0.08);
  min-height: 100%;
}

.card-meta,
.mini-card span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
}

.article-card strong,
.mini-card strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.35;
}

.editorial-note {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.breadcrumbs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.article-shell {
  margin-top: 1rem;
}

.article-layout {
  display: grid;
  gap: 1rem;
}

.article-main,
.article-sidebar {
  display: grid;
  gap: 1rem;
}

.article-body,
.faq-section,
.related-section {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid rgba(22, 49, 43, 0.08);
  box-shadow: var(--shadow);
}

.article-body p,
.article-body li,
.prose-card p,
.prose-card li {
  font-size: 1.05rem;
}

.article-body > p:first-child {
  font-size: 1.16rem;
  color: #26423b;
}

.article-body h2 {
  margin-top: 2rem;
  padding-top: 0.4rem;
}

.article-body h3 {
  margin-top: 1.35rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-card {
  padding: 1rem 1rem 0.2rem;
  border-radius: var(--radius-sm);
  background: rgba(244, 248, 245, 0.95);
  border: 1px solid rgba(22, 49, 43, 0.08);
}

.faq-card summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.toc-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.sidebar-card {
  padding: 1.2rem;
}

.ad-slot {
  border-radius: var(--radius);
  border: 1px dashed rgba(21, 69, 59, 0.28);
  background:
    linear-gradient(145deg, rgba(230, 241, 236, 0.92), rgba(248, 244, 236, 0.92));
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: left;
  padding: 1.1rem;
}

.ad-slot div {
  max-width: 20rem;
}

.ad-slot strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.03rem;
  line-height: 1.45;
}

.ad-slot-inline {
  min-height: 150px;
}

.site-footer {
  padding: 2rem 0 2.4rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  border-top: 1px solid rgba(22, 49, 43, 0.1);
  padding-top: 1.25rem;
}

.footer-title {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.theme-diagnostic,
.theme-urgent,
.theme-insulin,
.theme-devices,
.theme-lifestyle,
.theme-monitoring,
.theme-foundation,
.theme-family,
.theme-nutrition,
.theme-support,
.theme-casework {
  position: relative;
  overflow: hidden;
}

.theme-diagnostic::before,
.theme-urgent::before,
.theme-insulin::before,
.theme-devices::before,
.theme-lifestyle::before,
.theme-monitoring::before,
.theme-foundation::before,
.theme-family::before,
.theme-nutrition::before,
.theme-support::before,
.theme-casework::before {
  content: "";
  position: absolute;
  inset: -30% auto auto 65%;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(10px);
}

.theme-diagnostic::before { background: #dcefeb; }
.theme-urgent::before { background: #f0d6c9; }
.theme-insulin::before { background: #cfe3ef; }
.theme-devices::before { background: #d9e9dc; }
.theme-lifestyle::before { background: #efe0cd; }
.theme-monitoring::before { background: #d8e3f1; }
.theme-foundation::before { background: #d8ebe0; }
.theme-family::before { background: #eadfef; }
.theme-nutrition::before { background: #ece1cf; }
.theme-support::before { background: #e4ded6; }
.theme-casework::before { background: #dbe8e4; }

@media (min-width: 720px) {
  .hero {
    padding-top: 2.6rem;
  }

  .hero-grid,
  .intro-band,
  .page-shell,
  .footer-grid,
  .section-heading,
  .feature-grid,
  .article-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hero-copy {
    grid-column: span 7;
    padding: 2rem;
  }

  .hero-visual {
    grid-column: span 5;
  }

  .intro-card,
  .prose-card {
    grid-column: span 8;
  }

  .intro-band > .ad-slot,
  .page-shell > .ad-slot {
    grid-column: span 4;
  }

  .feature-card {
    grid-column: span 6;
  }

  .section-heading > div {
    grid-column: span 5;
  }

  .section-heading > p {
    grid-column: span 7;
    align-self: end;
    justify-self: end;
    max-width: 38rem;
  }

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

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

  .article-main {
    grid-column: span 8;
  }

  .article-sidebar {
    grid-column: span 4;
    align-content: start;
    position: sticky;
    top: 5.4rem;
  }
}

@media (min-width: 1040px) {
  .feature-card {
    grid-column: span 3;
  }

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