:root {
  color-scheme: dark;
  --bg: #080e18; --surface: #101a28; --line: #263343;
  --ink: #ecf2f7; --muted: #abbaca; --mint: #82e1cd;
  font: 15px/1.9 Tahoma, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 90% 0%, #12303855, transparent 38%), var(--bg); }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; border-radius: 5px; }
a:hover { color: var(--mint); }
p { overflow-wrap: anywhere; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
.site-header { border-bottom: 1px solid #263343a0; background: #080e18db; }
.header-inner { max-width: 1200px; margin: auto; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand strong { display: block; font: 800 14px/1.6 Arial, sans-serif; letter-spacing: .13em; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.brand img { border-radius: 12px; }
.public-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.public-nav a { color: var(--muted); font-size: 13px; padding: 8px 0; position: relative; }
.public-nav a:hover, .public-nav a[aria-current="page"] { color: var(--ink); }
.public-nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: 0; inset-inline: 0; height: 2px; border-radius: 2px; background: var(--mint); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--line); padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 13px; transition: background .2s, border-color .2s; }
.button:hover { border-color: var(--mint); }
.button.primary { background: var(--mint); color: #0b2726; border-color: var(--mint); }
.button.primary:hover { background: #a7f0df; }
.button.secondary { background: #162432; color: var(--ink); }
.header-login { padding: 9px 15px; font-size: 12px; }
.public-main { max-width: 1160px; margin: auto; padding: 0 28px 64px; }
.editorial-hero { padding: 68px 0 48px; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--mint); font-size: 11px; font-weight: 700; letter-spacing: .035em; }
.eyebrow i { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 5px #82e1cd10; }
h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -.035em; margin-top: 16px; }
.hero-lead { color: var(--muted); font-size: 15px; line-height: 2.25; margin-top: 16px; }
.hero-copy .button { margin-top: 26px; }
.hero-note { border-inline-start: 1px solid #37545c; padding-inline-start: 34px; }
.note-icon { display: block; color: var(--mint); font-size: 36px; line-height: 1; margin-bottom: 15px; }
.hero-note p { font-size: 19px; color: var(--muted); line-height: 2; }
.hero-note strong { color: var(--ink); font-weight: 500; }
.note-caption { display: block; color: var(--muted); font-size: 11px; margin-top: 14px; }
.editorial-values { display: flex; flex-wrap: wrap; gap: 18px 40px; padding: 19px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.editorial-values i { color: var(--mint); font-style: normal; margin-inline-end: 7px; }
.guides-section { padding-top: 42px; scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 15px; margin-bottom: 22px; }
.section-heading h2 { font-size: 23px; margin-top: 5px; }
.article-count { color: var(--muted); font-size: 11px; background: #14202e; border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; }
.article-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 24px; }
.article-cover { position: relative; display: block; overflow: hidden; background: #122734; }
.article-cover img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform .35s; }
.article-cover:hover img { transform: scale(1.025); }
.cover-label { position: absolute; bottom: 20px; inset-inline-start: 20px; font-size: 11px; background: #08131ce8; border: 1px solid #507575; border-radius: 100px; padding: 6px 13px; color: #d5eee9; }
.article-card-body { padding: 34px; display: flex; flex-direction: column; align-items: start; justify-content: center; min-width: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: 11px; }
.category { color: var(--mint); background: #82e1cd10; border-radius: 6px; padding: 4px 9px; }
.article-card h3 { margin-top: 18px; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.8; }
.article-card-body > p { color: var(--muted); font-size: 13px; line-height: 2.2; margin-top: 14px; }
.article-card-bottom { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.author { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.author-mark { width: 28px; height: 28px; display: grid; place-items: center; background: #244348; border-radius: 50%; color: #bde9e1; font: 700 12px Arial, sans-serif; }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: var(--mint); font-size: 12px; font-weight: 700; }
.resource-section { padding-top: 24px; }
.resource-section > h2 { font-size: 17px; margin-bottom: 18px; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.resource-card { display: flex; align-items: start; gap: 17px; border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: border-color .2s, background .2s; }
.resource-card:hover { background: var(--surface); border-color: #4e7976; color: var(--ink); }
.resource-card > span:last-child { margin-inline-start: auto; color: var(--mint); }
.resource-icon { color: var(--mint); font-size: 25px; line-height: 1.5; }
.resource-card h3 { font-size: 14px; }
.resource-card p { color: var(--muted); font-size: 12px; margin-top: 7px; line-height: 2; }
.practice-cta { margin-top: 48px; padding: 32px 36px; background: linear-gradient(110deg, #152b37, #12252c); border: 1px solid #2d4d52; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.practice-cta h2 { font-size: 25px; margin-top: 5px; }
.practice-cta p { font-size: 12px; color: #bdd0d5; margin-top: 8px; }
.practice-cta .button { flex-shrink: 0; }
.site-footer { max-width: 1104px; margin: auto; padding: 30px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.footer-brand { font: 700 12px Arial, sans-serif; letter-spacing: .12em; }
.site-footer p { font-size: 11px; color: var(--muted); margin-top: 8px; }
.site-footer nav { display: flex; gap: 22px; color: var(--muted); font-size: 12px; }
.site-footer .medical-note { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 16px; font-size: 10px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); padding-top: 28px; }
.breadcrumbs [aria-current] { color: var(--ink); }
.article-heading { max-width: 820px; margin: 42px auto 30px; }
.article-heading h1 { font-size: clamp(27px, 3.5vw, 42px); }
.byline { color: var(--muted); font-size: 12px; margin-top: 20px; }
.reading-cover { margin: 0 auto 38px; max-width: 820px; }
.reading-cover img { width: 100%; max-height: 370px; object-fit: cover; object-position: center; border: 1px solid var(--line); border-radius: 20px; }
.reading-cover figcaption { color: var(--muted); font-size: 10px; padding-top: 10px; text-align: center; }
.reading-grid { display: grid; grid-template-columns: minmax(180px, 245px) minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 24px; border: 1px solid var(--line); background: var(--surface); padding: 23px; border-radius: 16px; }
.toc h2 { font-size: 14px; }
.toc ol { padding-inline-start: 18px; font-size: 12px; color: var(--muted); line-height: 2; }
.toc li { padding-block: 6px; }
.toc .text-link { margin-top: 12px; }
.reading-body > section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.section-number { color: var(--mint); font: 500 12px Tahoma, sans-serif; letter-spacing: .08em; display: block; margin-bottom: 10px; }
.reading-body h2 { font-size: 22px; margin-bottom: 16px; }
.reading-body p { color: #c6d2df; line-height: 2.5; font-size: 15px; }
.reading-end { text-align: center; padding: 25px 12px; }
.reading-end > span { color: var(--mint); font-size: 32px; }
.reading-end .button { margin-top: 24px; }
.info-hero { max-width: 780px; padding: 60px 0 40px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.info-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.info-card h2 { font-size: 20px; margin-bottom: 14px; }
.info-card p { color: var(--muted); font-size: 14px; line-height: 2.3; }
.skip { position: absolute; top: -200px; right: 16px; padding: 8px 16px; background: #142c36; z-index: 10; }
.skip:focus { top: 8px; }
/* Also keep the standalone error page readable. */
body > main:not(.public-main) { max-width: 900px; margin: 10vh auto; padding: 24px; }
body > main:not(.public-main) a { color: var(--mint); text-decoration: underline; }
@media (max-width: 1150px) { .site-footer { margin-inline: 28px; } }
@media (max-width: 800px) {
  .header-inner { gap: 16px; padding: 16px 20px; }
  .public-nav { order: 3; flex: 1 0 100%; justify-content: center; gap: 24px; border-top: 1px solid var(--line); padding-top: 8px; }
  .editorial-hero { gap: 28px; padding-top: 40px; }
  .hero-note { padding-inline-start: 20px; }
  .hero-note p { font-size: 15px; }
  .article-card { grid-template-columns: 1fr; }
  .article-cover img { max-height: 340px; min-height: 0; aspect-ratio: 1.7; }
  .reading-grid { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 28px; }
  .resource-card { padding: 20px; }
}
@media (max-width: 540px) {
  .public-main { padding: 0 18px 40px; }
  .header-inner { padding-inline: 18px; gap: 12px; }
  .brand strong { font-size: 11px; }
  .brand small { font-size: 10px; }
  .brand img { width: 34px; height: 34px; }
  .brand { gap: 8px; }
  .header-login { padding: 8px 10px; font-size: 11px; gap: 7px; }
  .public-nav { gap: 22px; }
  .editorial-hero { grid-template-columns: 1fr; gap: 25px; padding-block: 34px 28px; }
  .hero-note { display: none; }
  .hero-lead { font-size: 14px; }
  .editorial-values { gap: 9px; flex-direction: column; font-size: 11px; }
  .section-heading h2 { font-size: 19px; }
  .guides-section { padding-top: 30px; }
  .article-card-body { padding: 23px; }
  .article-card h3 { font-size: 21px; }
  .article-meta { gap: 8px 12px; font-size: 10px; }
  .article-card-bottom { margin-top: 22px; }
  .resource-grid, .info-grid { grid-template-columns: 1fr; }
  .practice-cta { padding: 25px; flex-direction: column; align-items: stretch; margin-top: 30px; }
  .practice-cta h2 { font-size: 23px; }
  .practice-cta .button { align-self: start; }
  .site-footer { margin-inline: 18px; }
  .article-heading { margin-top: 28px; }
  .reading-body p { font-size: 14px; }
  .reading-body h2 { font-size: 20px; }
  .reading-cover img { max-height: 300px; }
  .toc ol { columns: 1; }
  .info-hero { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
