/* iHealthOne blog preview.
   Palette "Juniper and Sun" from the logo: juniper greens, one sun orange accent (AA on paper).
   Type: Bricolage Grotesque (display) + Figtree (text), self hosted.
   Radius: controls 6px, photos and panels 10px. */
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --paper: #f1f4ee;
  --surface: #fbfcf9;
  --sand: #efe6d7;
  --ink: #13231b;
  --muted: #475a4f;
  --line: #d3dbd1;
  --juniper: #173d2c;
  --juniper-2: #22523c;
  --on-dark: #eef3ec;
  --on-dark-muted: #bccbbf;
  --sun: #a8421a;
  --sun-hover: #8d3613;
  --on-sun: #ffffff;
  --ok: #1f6b3d;
  --warn: #8a5a00;
  --gap: #a3261c;
  --focus: #0b57d0;
  --error: #a3261c;
  --r-ctl: 6px;
  --r-img: 10px;
  --shadow: 0 1px 2px rgb(23 61 44 / .08), 0 14px 34px -12px rgb(23 61 44 / .22);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1813;
    --surface: #16221b;
    --sand: #211f19;
    --ink: #e7eee6;
    --muted: #a9b9ae;
    --line: #2a392f;
    --juniper: #0b1510;
    --juniper-2: #17281f;
    --sun: #ee8f5c;
    --sun-hover: #f5a57a;
    --on-sun: #1b0f07;
    --ok: #7fd09a;
    --warn: #f0c26a;
    --gap: #ff9b91;
    --focus: #9dbcff;
    --error: #ff9b91;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.foot-wrap :focus-visible { outline-color: #ffd08a; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.03em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
section { padding: 56px 0; }
@media (min-width: 1024px) { section { padding: 80px 0; } }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: var(--r-ctl); z-index: 40; }
.skip:focus { left: 8px; }
.ribbon { background: var(--ink); color: var(--paper); font-size: .875rem; text-align: center; padding: 6px 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-chip { background: #fff; border-radius: 8px; padding: 3px 5px; display: grid; place-items: center; }
.brand img { width: 40px; }
.nav { display: none; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 550; font-size: .98rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.top-actions .btn { display: none; }
.top-phone { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 650; white-space: nowrap; font-size: .95rem; }
.menu { padding-bottom: 10px; }
.menu summary { cursor: pointer; font-weight: 600; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: "+"; color: var(--sun); font-size: 1.3rem; line-height: 1; }
.menu[open] summary::before { content: "\2212"; }
.menu-links { display: grid; gap: 2px; padding: 8px 0 4px; }
.menu-links a { text-decoration: none; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 550; }
@media (min-width: 640px) { .top-actions .btn { display: inline-flex; } .top-phone { display: none; } }
@media (min-width: 1080px) { .nav { display: flex; } .menu { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r-ctl); padding: 13px 22px; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.25; text-align: center; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s cubic-bezier(.16,1,.3,1), background-color .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 14px; font-size: .92rem; white-space: nowrap; }
.btn-sun { background: var(--sun); color: var(--on-sun); }
.btn-sun:hover { background: var(--sun-hover); }
.btn-line-dark { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-line-dark:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

/* intro and chips */
.intro { padding: 40px 0 28px; }
@media (min-width: 1024px) { .intro { padding: 64px 0 36px; } }
.kicker { font-weight: 650; color: var(--sun); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.intro h1 { max-width: 18ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { text-decoration: none; border: 1.5px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current] { background: var(--juniper); border-color: var(--juniper); color: #fff; }

/* featured */
.featured { padding-top: 8px; }
.feat { display: grid; gap: 24px; align-items: center; }
.feat-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-img); }
.feat-body h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.feat-body h2 a { text-decoration: none; }
.feat-body h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.feat-body > p:not(.tag):not(.meta) { color: var(--muted); font-size: 1.08rem; }
@media (min-width: 1024px) { .feat { grid-template-columns: 7fr 5fr; gap: 56px; } }
.tag { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag a { color: var(--sun); text-decoration: none; }
.tag a:hover { text-decoration: underline; }
.tag-new { background: var(--sand); color: var(--ink); padding: 2px 8px; border-radius: 4px; }
.meta { color: var(--muted); font-size: .92rem; }

/* card grid */
.latest h2, .related h2, .topics h2, .more-posts h2 { margin-bottom: 24px; }
.grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-img); overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.card-img { overflow: hidden; }
.card:hover .card-img img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card:hover .card-img img { transform: none; } }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.3rem; line-height: 1.2; margin-bottom: 8px; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-desc { color: var(--muted); font-size: .98rem; }
.card .meta { margin: auto 0 0; }

/* topics */
.topics { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topic-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .topic-grid { grid-template-columns: repeat(4, 1fr); } }
.topic-box { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r-img); background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.topic-box:hover { border-color: var(--juniper-2); }
.tb-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.tb-blurb { color: var(--muted); font-size: .96rem; }
.tb-count { margin-top: auto; color: var(--sun); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }

/* CTA */
.band { padding-top: 0; }
.cta-box { background: var(--juniper); color: var(--on-dark); border-radius: var(--r-img); padding: 26px 24px; margin: 40px 0 0; }
.cta-box p { color: var(--on-dark-muted); }
.cta-kicker { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #f3a574 !important; margin-bottom: 6px; }
.cta-title { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.02em; color: #fff !important; }
.cta-price { font-size: .95rem; border-left: 3px solid #f3a574; padding-left: 12px; }
.cta-box .btn-sun { background: #b4481d; color: #fff; }
.cta-box .btn-sun:hover { background: #973b16; }
.cta-box :focus-visible { outline-color: #ffd08a; }
.cta-wide { margin: 0; }
@media (min-width: 900px) { .cta-wide { padding: 40px 48px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: end; } .cta-wide .cta-kicker, .cta-wide .cta-title { grid-column: 1; } .cta-wide .btn { justify-self: start; } }

/* post */
.post-head { padding-top: 36px; }
.post-head h1 { max-width: 22ch; }
@media (min-width: 1024px) { .post-head { padding-top: 56px; } }
.post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-img); }
@media (min-width: 1024px) { .post-hero img { aspect-ratio: 21 / 9; } }
.post-grid { display: grid; gap: 40px; padding-top: 36px; padding-bottom: 56px; }
@media (min-width: 1024px) { .post-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }
.prose { max-width: 720px; min-width: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--sun); text-underline-offset: 3px; }
.bite { background: var(--sand); border-radius: var(--r-img); padding: 22px 22px 8px; border-left: 5px solid var(--sun); }
.bite h2, .snack h2 { font-size: 1rem !important; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px !important; font-family: var(--text); font-weight: 800; }
.bite p { font-size: 1.12rem; }
.snack { margin-top: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-img); padding: 20px 22px; }
.snack dl { margin: 0; display: grid; }
.snack dl div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.snack dl div:first-child { border-top: 0; padding-top: 0; }
.snack dt { font-weight: 700; font-size: .92rem; color: var(--muted); }
.snack dd { margin: 0; font-weight: 600; }
@media (min-width: 640px) { .snack dl div { grid-template-columns: 11rem 1fr; gap: 16px; } }
.inline-fig { margin: 28px 0; }
.inline-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-img); }
.inline-fig figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--sun); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); }
.sources ol { font-size: .95rem; }
.sources li { overflow-wrap: anywhere; }
.legal { font-size: .92rem; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); padding: 12px 14px; border-radius: var(--r-ctl); }
.side { display: none; }
@media (min-width: 1024px) {
  .side { display: block; }
  .side > * { position: sticky; top: 96px; }
  .toc { position: static !important; margin-bottom: 24px; }
}
.side-title { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; text-decoration: none; color: var(--muted); font-size: .95rem; line-height: 1.35; }
.toc li a:hover { color: var(--ink); }
.cta-side { margin: 0; padding: 22px 20px; }
.cta-side .cta-title { font-size: 1.2rem; }
.cta-side .btn { width: 100%; }
.related { background: var(--surface); border-top: 1px solid var(--line); }

/* illustrative scorecard */
.scorecard { background: #fffefb; color: #1a2620; border-radius: 4px; padding: 20px; margin: 24px 0; box-shadow: 0 1px 1px rgb(23 61 44 / .06), 0 20px 40px -18px rgb(23 61 44 / .35); }
.sc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 2px solid #173d2c; padding-bottom: 10px; margin-bottom: 6px; }
.sc-brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.sc-brand img { width: 26px; }
.sc-tag { font-size: .8rem; font-weight: 700; color: #7a2f10; border: 1.5px solid #a8421a; padding: 1px 8px; border-radius: 3px; }
.scorecard table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.scorecard th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #4d5d54; padding: 8px 0; }
.scorecard td { padding: 9px 0; border-top: 1px dashed #cfd6cc; vertical-align: top; }
.scorecard td + td, .scorecard th + th { text-align: right; padding-left: 12px; }
.st { font-weight: 700; font-size: .9rem; }
.st-ok { color: #1f6b3d; }
.st-warn { color: #8a5a00; }
.st-gap { color: #a3261c; }
.scorecard figcaption { margin-top: 12px; padding-top: 10px; border-top: 2px solid #173d2c; font-size: .88rem; font-weight: 600; }

/* lists */
.link-list { padding-left: 1.2em; display: grid; gap: 8px; }
.link-list a { color: var(--sun); font-weight: 600; text-underline-offset: 3px; }
.more-posts { padding-top: 0; }

/* about */
.about { padding-top: 0; }
.about-grid { display: grid; gap: 32px; align-items: start; }
.about-fig img { border-radius: var(--r-img); width: 100%; max-width: 440px; }
.bio { border-left: 3px solid var(--juniper-2); padding-left: 16px; margin-top: 18px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 7fr 4fr; gap: 64px; } .about-fig { position: sticky; top: 110px; } }

/* ask form */
.ask { background: var(--surface); border-top: 1px solid var(--line); }
.ask-grid { display: grid; gap: 28px; }
.ask-copy p { color: var(--muted); max-width: 44ch; font-size: 1.08rem; }
@media (min-width: 1024px) { .ask-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
.form { display: grid; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-img); padding: 22px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid #7d8c83; border-radius: var(--r-ctl); padding: 11px 12px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: .92rem; font-weight: 600; }
.err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--juniper-2); }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; padding: 30px; } .full { grid-column: 1 / -1; } .form .btn { width: auto; } }

/* footer */
.foot-wrap { background: var(--juniper); color: var(--on-dark); padding: 56px 0 40px; }
.foot { display: grid; gap: 28px; }
.foot h2 { font-size: 1.1rem; margin-bottom: 10px; }
.foot p { color: var(--on-dark-muted); margin: 0 0 8px; }
.foot a { color: #fff; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .15); }
.foot-base p { color: var(--on-dark-muted); font-size: .92rem; margin: 0 0 4px; }
@media (min-width: 768px) { .foot { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; } }

/* simple pages (thanks, 404) */
.simple { padding-top: 64px; padding-bottom: 88px; max-width: 760px; }
