/* BreathCare: the blog, its index, the help pages and the 404 (tools/theme.mjs). The homepage,
   privacy and terms keep their own inline styles. Tokens match the homepage. */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FAFAF8; --bg-alt: #F0EDE6; --card: #FFFFFF; --ink: #10273F; --ink-soft: #384C63; --muted: #6B7A8D;
  --accent: #3E6B8C; --rule: rgba(16,39,63,0.10); --nav: rgba(250,250,248,0.9);
  --font-body: "Inter", system-ui, -apple-system, sans-serif; --font-heading: "Space Grotesk", "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark; --bg: #0B1220; --bg-alt: #101B2C; --card: #152238; --ink: #EDE9E0; --ink-soft: #B8C4D4;
    --muted: #7A8A9E; --accent: #7AAAC8; --rule: rgba(237,233,224,0.12); --nav: rgba(11,18,32,0.9);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark; --bg: #0B1220; --bg-alt: #101B2C; --card: #152238; --ink: #EDE9E0; --ink-soft: #B8C4D4;
  --muted: #7A8A9E; --accent: #7AAAC8; --rule: rgba(237,233,224,0.12); --nav: rgba(11,18,32,0.9);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 200; }

/* header and footer */
.nav { position: sticky; top: 0; z-index: 100; background: var(--nav); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--rule); }
.nav-inner { max-width: 880px; margin: 0 auto; padding: 0 20px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 20px; font-size: 14px; list-style: none; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links .cta-link { color: var(--ink); font-weight: 600; }
.foot { border-top: 1px solid var(--rule); margin-top: 40px; }
.foot-inner { max-width: 880px; margin: 0 auto; padding: 28px 20px 40px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot a { color: var(--muted); }
.foot ul { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; }
.disclaimer { max-width: 880px; margin: 0 auto; padding: 0 20px 32px; font-size: 12px; color: var(--muted); }

/* page and article */
main { display: block; }
.wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 24px; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); margin: 28px 0 10px; }
h1 { font-family: var(--font-heading); font-weight: 700; font-size: 38px; line-height: 1.12; letter-spacing: -0.5px; margin-bottom: 14px; }
.lede { font-size: 18px; color: var(--ink-soft); margin-bottom: 16px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.post h2, .page h2 { font-family: var(--font-heading); font-weight: 700; font-size: 25px; line-height: 1.25; margin: 40px 0 14px; scroll-margin-top: 72px; }
.post h3, .page h3 { font-family: var(--font-heading); font-weight: 600; font-size: 19px; margin: 28px 0 10px; }
.post p, .page p { margin-bottom: 18px; color: var(--ink-soft); }
.post ul, .post ol, .page ul, .page ol { margin: 0 0 18px 24px; color: var(--ink-soft); }
.post li, .page li { margin-bottom: 6px; }
.post strong, .page strong { color: var(--ink); }
.post blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 24px 0; background: var(--bg-alt); border-radius: 0 10px 10px 0; font-style: italic; }
.post blockquote p { margin-bottom: 8px; }

/* table of contents */
.toc { background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 22px; margin: 8px 0 32px; }
.toc b { display: block; font-family: var(--font-heading); font-size: 15px; margin-bottom: 8px; }
.toc ol { margin: 0 0 0 20px; font-size: 15px; }
.toc li { margin-bottom: 4px; }

/* tables */
.mini { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--rule); border-radius: 12px; }
.mini table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mini caption { text-align: left; font-size: 13px; color: var(--muted); padding: 10px 14px; caption-side: bottom; }
.mini th, .mini td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.mini thead th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }

/* sources, call to action, related */
.sources { margin: 36px 0 8px; font-size: 14px; }
.sources h2 { font-size: 18px; margin: 0 0 10px; }
.sources ol { margin-left: 20px; }
.sources li { color: var(--muted); }
.cta { background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 18px; padding: 28px; margin: 40px 0; text-align: center; }
.cta h2 { margin: 0 0 10px; font-size: 22px; }
.cta p { margin-bottom: 16px; }
.btn { display: inline-block; padding: 12px 26px; background: var(--ink); color: var(--bg); border-radius: 100px; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn:hover { opacity: 0.9; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0 !important; }
.safety { font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 28px; }
.related { margin-top: 36px; }
.related h2 { font-size: 20px; margin: 0 0 10px; }
.related ul { margin-left: 20px; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; padding: 8px 20px 24px; }
.faq > h2 { font-family: var(--font-heading); font-size: 25px; margin: 24px 0 14px; }
.qa details { border: 1px solid var(--rule); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: var(--card); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 16px; font-weight: 600; font-family: var(--font-body); margin: 0; }
.qa details[open] .chev { transform: rotate(180deg); }
.qa .chev { display: inline-flex; transition: transform .2s; color: var(--muted); }
.qa details p { color: var(--ink-soft); padding-bottom: 14px; }

/* blog index */
.list { list-style: none; margin: 8px 0 0; padding: 0; }
.list li { border-top: 1px solid var(--rule); }
.list a { display: block; padding: 20px 0; text-decoration: none; color: inherit; }
.list time { font-size: 13px; color: var(--muted); }
.list h2 { font-family: var(--font-heading); font-size: 21px; line-height: 1.3; margin: 4px 0 6px; color: var(--ink); }
.list p { color: var(--ink-soft); margin: 0; font-size: 15px; }
.list a:hover h2 { color: var(--accent); }

/* help pages (pricing, support) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 8px 0 28px; }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.plan h2 { margin: 0 0 6px !important; font-size: 20px !important; }
.plan .amount { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }

@media (max-width: 600px) { h1 { font-size: 30px; } .wrap { padding-top: 20px; } }
