/* Better Health for Life — lightweight editorial design system. */
:root {
  color-scheme: light;
  --ink: #1e302b;
  --body: #354640;
  --muted: #63736d;
  --line: #d8e1dc;
  --paper: #fff;
  --canvas: #f6f8f5;
  --tint: #edf4ef;
  --brand: #1c5b49;
  --brand-dark: #144437;
  --accent: #bc6b3c;
  --focus: #e3933d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--body); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; overflow-wrap: anywhere; }
a:visited { color: #5b4774; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }
a:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
::selection { background: #d6e9dd; color: var(--ink); }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 10px 14px; background: var(--paper); color: var(--ink); border: 2px solid var(--brand); }
.skip-link:focus { left: 12px; }
.site-header { position: relative; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 28px; }
.brand { color: var(--ink); font: 700 1.27rem/1.1 var(--serif); letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand:visited { color: var(--ink); }
.brand span { color: var(--brand); font-weight: 400; }
nav, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-header nav a { color: var(--body); font-size: .92rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--brand); text-decoration: underline; text-underline-offset: 5px; }
h1, h2, h3 { color: var(--ink); line-height: 1.22; }
h1, h2 { font-family: var(--serif); letter-spacing: -.025em; }
h1 { margin: 12px 0 17px; font-size: clamp(2.2rem, 5vw, 3.65rem); line-height: 1.08; }
h2 { margin: 36px 0 13px; font-size: clamp(1.45rem, 2.8vw, 1.95rem); }
h3 { margin: 0 0 7px; font-size: 1.07rem; }
p { margin: 0 0 16px; }
.eyebrow, .card-label { margin: 0 0 8px; color: var(--brand); font-size: .76rem; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; }
.hero { position: relative; margin: 28px 0 36px; padding: clamp(30px, 6vw, 68px); overflow: hidden; border: 1px solid #dbe8de; border-radius: 22px; background: linear-gradient(120deg, #edf5ef 0%, #f7f8f2 65%, #f7eee5 100%); }
.hero::after { position: absolute; right: -90px; bottom: -180px; width: 440px; height: 440px; border: 1px solid rgba(28,91,73,.12); border-radius: 50%; content: ""; box-shadow: 0 0 0 34px rgba(28,91,73,.025), 0 0 0 68px rgba(28,91,73,.025); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 780px; }
.hero-copy { max-width: 730px; color: #465850; font-size: clamp(1.03rem, 1.8vw, 1.18rem); }
.search-panel { margin: 28px 0 0; padding: 17px 19px 14px; max-width: 780px; border: 1px solid #d7e2db; border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 8px 30px rgba(30,48,43,.045); }
.search-panel label { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #aebeb5; border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; }
.search-row button { min-height: 48px; padding: 9px 22px; border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.search-row button:hover { background: var(--brand-dark); }
.search-help { margin: 9px 0 0; color: var(--muted); font-size: .86rem; }
.section { padding-block: 12px 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-heading h2 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.card { min-width: 0; padding: 20px 21px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card:hover { transform: translateY(-2px); border-color: #a9c4b4; box-shadow: 0 10px 26px rgba(30,48,43,.07); }
.card-label { margin-bottom: 10px; font-size: .68rem; }
.card h3 { font: 700 1.14rem/1.35 var(--serif); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.card p:last-child { margin: 9px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.58; }
.callout { margin-block: 14px 44px; padding: 24px 27px; border: 1px solid #d5e3d8; border-radius: 12px; background: var(--tint); }
.callout h2 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.check-list { padding-left: 1.3em; }
.site-footer { margin-top: 36px; border-top: 1px solid var(--line); background: var(--canvas); }
.footer-inner { padding-block: 25px 32px; }
.footer-links { margin-block: 10px 14px; }
.footer-links a { font-size: .9rem; }
.footer-inner p { margin-block: 6px; }
.note, .fine-print, .last-reviewed { color: var(--muted); font-size: .88rem; }
.fine-print { max-width: 850px; }

/* Article pages */
.breadcrumbs { padding-top: 20px; color: var(--muted); font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 5px 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #92a098; }
.article-layout { display: grid; grid-template-columns: minmax(0, 790px) minmax(190px, 245px); align-items: start; justify-content: space-between; gap: clamp(28px, 6vw, 78px); max-width: 1160px; padding-block: 8px 52px; }
.article-layout--index { display: block; max-width: 850px; }
.article { min-width: 0; }
.article h1 { max-width: 790px; margin-top: 15px; }
.dek { max-width: 760px; color: #52635b; font-size: 1.12rem; line-height: 1.65; }
.byline { margin-block: 22px; padding-block: 11px; border-block: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.article h2 { margin-top: 34px; }
.article h3 { margin-top: 25px; }
.article-layout > aside:not(.ad-placement) { position: sticky; top: 20px; margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); font-size: .9rem; }
.article-layout > aside:not(.ad-placement) h2 { margin: 0 0 10px; font: 700 .93rem var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.article-layout > aside:not(.ad-placement) ul { margin: 0; padding-left: 1.1em; }
.article-layout > aside:not(.ad-placement) li + li { margin-top: 8px; }
.notice { margin-block: 22px; padding: 15px 18px; border: 1px solid #d9e3dd; border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; background: #faf8f4; }
.references { padding-left: 1.45em; }
.references li { padding-left: 5px; margin-block: 12px; }
.ad-placement[hidden] { display: none !important; }
.ad-placement { width: 100%; max-width: 100%; margin: 28px auto; color: var(--muted); text-align: center; }
.ad-placement__label { margin: 0 0 7px; font: 600 .7rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ad-placement__mount { display: grid; width: 100%; min-width: 0; place-items: center; }
.ad-placement--display .ad-placement__mount { min-height: 250px; }
.ad-placement--banner .ad-placement__mount { min-height: 90px; }
.ad-placement--feed { grid-column: 1 / -1; padding-block: 4px; }
.ad-placement--feed .ad-placement__mount { min-height: 160px; }
.ad-placement--native .ad-placement__mount { min-height: 250px; }
.article-layout > .ad-placement { grid-column: 1 / -1; }
.button { display: inline; padding: 0; border: 0; background: transparent; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }
.button:visited { color: #5b4774; }
hr { height: 0; border: 0; border-top: 1px solid var(--line); margin-block: 28px; }
table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
th, td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--canvas); color: var(--ink); }
code { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-layout > aside:not(.ad-placement) { position: static; grid-row: 1; margin-top: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { width: min(100% - 32px, 560px); }
  .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 15px; gap: 12px; }
  nav { gap: 8px 17px; }
  .site-header nav a { font-size: .87rem; }
  .hero { margin-block: 18px 28px; padding: 28px 22px 24px; border-radius: 15px; }
  .hero::after { right: -230px; bottom: -230px; }
  h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .hero-copy, .dek { font-size: 1rem; }
  .search-panel { margin-top: 22px; padding: 15px; }
  .search-row { flex-direction: column; }
  .search-row button { width: 100%; }
  .cards { grid-template-columns: 1fr; gap: 11px; }
  .card { padding: 17px 18px; }
  .section { padding-bottom: 20px; }
  .callout { padding: 20px; }
  .article-layout { padding-bottom: 36px; }
  .article-layout > aside:not(.ad-placement) { margin-bottom: 12px; }
  .article h2 { margin-top: 29px; }
  .ad-placement { margin-block: 22px; }
  .ad-placement--banner .ad-placement__mount { min-height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
