  :root {
    --ink: #0d2342;
    --ink-soft: #3f5573;
    --paper: #f5f8fc;
    --surface: #ffffff;
    --line: #d5e0ec;
    --tint: #e7eef7;
    --blue: #2c5f97;
    --amber: #c9861a;
    --amber-ink: #8a5a0b;
    --wa: #157a4c;
    --wa-ink: #ffffff;
    --alert: #a3261b;
    --alert-bg: #fbecea;
    /* OCT layers: reflectivity mapped to ink on a light page */
    --oct-hi: #2c5f97;
    --oct-mid: #7fa0c4;
    --oct-lo: #cbd9e9;
    --oct-rpe: #c9861a;
    --oct-ch: #9fb6d1;
    --focus: #c9861a;
    --font: "Lexend", system-ui, sans-serif;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ink: #e8eff8; --ink-soft: #a9bbd2; --paper: #08142a; --surface: #0e1d38;
      --line: #20345a; --tint: #112443; --blue: #8db7e6; --amber: #e6a940; --amber-ink: #f0c071;
      --wa: #3fbf83; --wa-ink: #04170e; --alert: #ff9b8f; --alert-bg: #2a1418;
      --oct-hi: #e9f1fb; --oct-mid: #7d9cc2; --oct-lo: #1f3963; --oct-rpe: #f0b54d; --oct-ch: #4b6b96;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --ink: #e8eff8; --ink-soft: #a9bbd2; --paper: #08142a; --surface: #0e1d38;
    --line: #20345a; --tint: #112443; --blue: #8db7e6; --amber: #e6a940; --amber-ink: #f0c071;
    --wa: #3fbf83; --wa-ink: #04170e; --alert: #ff9b8f; --alert-bg: #2a1418;
    --oct-hi: #e9f1fb; --oct-mid: #7d9cc2; --oct-lo: #1f3963; --oct-rpe: #f0b54d; --oct-ch: #4b6b96;
    color-scheme: dark;
  }

  html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  html[data-size="s"] { font-size: 100%; }
  html[data-size="l"] { font-size: 125%; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  *, *::before, *::after { box-sizing: border-box; }
  body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--font); font-size: 1rem; line-height: 1.6;
    -webkit-font-smoothing: antialiased; touch-action: manipulation;
  }
  img { max-width: 100%; height: auto; display: block; }
  h1, h2, h3 { line-height: 1.12; margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -0.015em; overflow-wrap: break-word; hyphens: auto; }
  p { margin: 0; text-wrap: pretty; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
  [id] { scroll-margin-top: 96px; }
  .wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
  .skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 50; }
  .skip:focus { top: 12px; }

  /* Header */
  .top {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
  .brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; margin-right: auto; }
  .brand strong { font-size: 1.12rem; font-weight: 700; white-space: nowrap; }
  .brand span { font-size: .8rem; color: var(--ink-soft); }
  .nav { display: flex; gap: 4px; }
  .nav a { white-space: nowrap; text-decoration: none; padding: 8px 11px; border-radius: 999px; font-size: .95rem; color: var(--ink-soft); transition: color .15s, background-color .15s; }
  .nav a:hover { color: var(--ink); background: var(--tint); }
  .tools { display: flex; align-items: center; gap: 6px; }
  .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
  .seg button {
    appearance: none; border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 700;
    width: 34px; height: 30px; border-radius: 999px; cursor: pointer; line-height: 1; transition: background-color .15s, color .15s;
  }
  .seg button:hover { color: var(--ink); }
  .seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .seg .s { font-size: 13px; } .seg .m { font-size: 16px; } .seg .l { font-size: 19px; }
  .icon-btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
  .icon-btn:hover { background: var(--tint); }
  .icon-btn svg { width: 18px; height: 18px; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; white-space: nowrap;
    padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent; font-size: 1rem; line-height: 1.2;
    transition: background-color .15s, border-color .15s, transform .15s;
  }
  .btn:active { transform: translateY(1px); }
  .btn svg { width: 20px; height: 20px; flex: none; }
  .btn-wa { background: var(--wa); color: var(--wa-ink); }
  .btn-wa:hover { background: color-mix(in srgb, var(--wa) 85%, #000); }
  .btn-ghost { border-color: var(--line); background: var(--surface); }
  .btn-ghost:hover { border-color: var(--ink-soft); }
  .top .btn { padding: 10px 16px; font-size: .92rem; }

  /* Hero */
  .hero { padding-top: clamp(40px, 7vw, 88px); }
  .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
  .hero h1 { font-size: clamp(1.95rem, 4.8vw, 3.9rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; }
  .hero h1 b { font-weight: 700; display: block; }
  .hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; margin-top: 24px; }
  .hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
  .reg { margin-top: 28px; font-size: .85rem; color: var(--ink-soft); }
  .portrait { position: relative; }
  .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
  .portrait figcaption {
    position: absolute; left: 16px; bottom: 16px; background: var(--surface); color: var(--ink);
    padding: 10px 14px; border-radius: 12px; font-size: .85rem; line-height: 1.35; box-shadow: 0 6px 24px rgba(8, 20, 42, .14);
  }
  .portrait figcaption strong { display: block; font-size: .95rem; }

  /* OCT band: the signature element */
  .oct { position: relative; border-top: 1px solid var(--line); background: var(--surface); }
  .oct svg { display: block; width: 100%; height: clamp(110px, 16vw, 200px); }
  .oct .nfl, .oct .ipl, .oct .opl, .oct .ez { fill: var(--oct-hi); }
  .oct .gcl, .oct .inl { fill: var(--oct-mid); }
  .oct .onl { fill: var(--oct-lo); }
  .oct .rpe { fill: var(--oct-rpe); }
  .oct .ch { fill: var(--oct-ch); opacity: .55; }
  .oct .reveal { transform-origin: 50% 50%; transform-box: fill-box; animation: scan 1.6s cubic-bezier(.2,.7,.1,1) .2s both; }
  @keyframes scan { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @media (prefers-reduced-motion: reduce) { .oct .reveal { animation: none; } }
  .oct-note { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; font-size: .85rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
  .oct-note span:first-child { color: var(--ink); }

  /* Credentials */
  .creds { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .creds div { padding: 24px 20px 24px 0; }
  .creds div + div { padding-left: 20px; border-left: 1px solid var(--line); }
  .creds strong { display: block; font-size: 1.05rem; }
  .creds span { font-size: .9rem; color: var(--ink-soft); }

  /* Sections */
  section.block { padding-block: clamp(64px, 9vw, 120px); }
  .head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 44px; }
  .head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
  .head p { color: var(--ink-soft); max-width: 46ch; font-size: 1.08rem; }

  /* Doenças: indexed list */
  .conditions { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
  .conditions li { border-bottom: 1px solid var(--line); }
  .conditions a {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 24px; align-items: baseline;
    padding: 26px 8px; text-decoration: none; transition: background-color .15s;
  }
  .conditions a:hover { background: var(--tint); }
  .conditions h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; }
  .conditions p { color: var(--ink-soft); }
  .conditions p b { color: var(--ink); font-weight: 600; }
  .conditions .go { font-size: .92rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
  .conditions a:hover .go { text-decoration: underline; text-underline-offset: 4px; }
  .more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; color: var(--ink-soft); }
  .more a { font-weight: 700; color: var(--blue); text-underline-offset: 4px; }

  .urgent {
    margin-top: 48px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
    background: var(--alert-bg); border: 1px solid color-mix(in srgb, var(--alert) 35%, transparent);
    border-radius: 18px; padding: 24px 26px;
  }
  .urgent svg { width: 28px; height: 28px; color: var(--alert); }
  .urgent strong { display: block; font-size: 1.15rem; color: var(--alert); margin-bottom: 4px; }

  /* Sobre */
  .about { --paper: #f5f8fc; background: #0d2342; color: var(--paper); }
  .about .head p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
  .about-text p + p { margin-top: 18px; }
  .about-text p { font-size: 1.08rem; color: color-mix(in srgb, var(--paper) 86%, transparent); max-width: 52ch; }
  .about a.link { display: inline-block; margin-top: 28px; font-weight: 700; color: var(--paper); text-underline-offset: 5px; }
  .timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid color-mix(in srgb, var(--paper) 25%, transparent); }
  .timeline li { position: relative; padding: 0 0 28px 28px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }
  .timeline .when { font-size: .88rem; color: color-mix(in srgb, var(--paper) 65%, transparent); font-variant-numeric: tabular-nums; }
  .timeline strong { display: block; font-size: 1.15rem; }
  .timeline span.d { color: color-mix(in srgb, var(--paper) 78%, transparent); }

  /* Tratamentos */
  .treat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
  .treat a { display: block; padding: 28px 28px 32px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
  .treat a:nth-child(3n+2), .treat a:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--line); }
  .treat h3 { font-size: 1.3rem; margin-bottom: 10px; }
  .treat p { color: var(--ink-soft); }
  .treat a:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
  .treat .wide { grid-column: span 1; }
  .treat-note { background: var(--tint); border-radius: 0 0 18px 18px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; border-bottom: 0 !important; }
  .treat-note p { color: var(--ink); font-size: 1.05rem; }
  .treat-note a { padding: 0; border: 0; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

  /* Exames */
  .exams { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .exam { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; grid-template-columns: 76px 1fr; gap: 22px; text-decoration: none; transition: border-color .15s; }
  .exam:hover { border-color: var(--blue); }
  .exam svg { width: 76px; height: 76px; }
  .exam h3 { font-size: 1.25rem; margin-bottom: 8px; }
  .exam p { color: var(--ink-soft); }
  .exam .go { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--blue); font-size: .95rem; }
  .exams-foot { margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-soft); }
  .exams-foot a { font-weight: 700; color: var(--blue); text-underline-offset: 4px; }

  /* Agendar */
  .book { background: var(--surface); border-top: 1px solid var(--line); }
  .book-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); }
  .book h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 300; letter-spacing: -0.03em; }
  .book h2 b { font-weight: 700; }
  .book .lede { color: var(--ink-soft); font-size: 1.12rem; margin-top: 18px; max-width: 40ch; }
  .book .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .units { display: grid; gap: 16px; align-content: start; }
  .unit { border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--paper); }
  .unit h3 { font-size: 1.15rem; margin-bottom: 6px; }
  .unit address { font-style: normal; color: var(--ink-soft); }
  .unit a { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--blue); text-underline-offset: 4px; }
  .units .fine { font-size: .88rem; color: var(--ink-soft); }

  /* Footer */
  footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 56px 120px; font-size: .92rem; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
  footer h2 { font-size: .95rem; font-weight: 700; margin-bottom: 12px; letter-spacing: 0; }
  footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  footer a { color: var(--ink-soft); text-decoration: none; }
  footer a:hover { color: var(--ink); text-decoration: underline; }
  .legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); display: grid; gap: 6px; }

  /* Mobile sticky booking bar */
  .dock { display: none; }

  @media (max-width: 1140px) { .nav { display: none; } }
  @media (max-width: 980px) {
    .hero-grid, .head, .about-grid, .book-grid { grid-template-columns: minmax(0, 1fr); }
    .portrait { max-width: 460px; }
    .creds { grid-template-columns: repeat(2, 1fr); }
    .creds div:nth-child(3) { padding-left: 0; border-left: 0; }
    .creds div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .treat { grid-template-columns: 1fr 1fr; }
    .treat a:nth-child(n) { padding-left: 0; border-left: 0; padding-right: 20px; }
    .treat a:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 680px) {
    .top .btn { display: none; }
    .conditions a { grid-template-columns: 1fr; gap: 6px; padding: 22px 4px; }
    .treat, .exams { grid-template-columns: 1fr; }
    .treat a:nth-child(n) { padding: 24px 0; border-left: 0; }
    .treat-note { border-radius: 18px; margin-top: 16px; }
    .exam { grid-template-columns: 1fr; gap: 14px; }
    .exam svg { width: 56px; height: 56px; }
    .urgent { grid-template-columns: 1fr; padding: 20px; }
    .foot-grid { grid-template-columns: 1fr; }
    .dock {
      display: flex; position: fixed; z-index: 30; left: 12px; right: 12px;
      bottom: calc(12px + env(safe-area-inset-bottom)); justify-content: center;
    }
    .dock .btn { width: 100%; justify-content: center; box-shadow: 0 10px 30px rgba(8, 20, 42, .28); }
    .seg button { width: 30px; }
  }

  /* ---------- Shared header: mobile menu ---------- */
  .menu-btn { display: none; appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .92rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
  .nav a[aria-current="page"] { color: var(--ink); background: var(--tint); }
  @media (max-width: 1140px) {
    .menu-btn { display: inline-block; }
    .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; box-shadow: 0 18px 30px rgba(8, 20, 42, .12); }
    .nav.open { display: flex; }
    .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
    .nav a:last-child { border-bottom: 0; }
  }
  @media (max-width: 420px) { .top .wrap { gap: 10px; } .brand span { display: none; } .brand strong { font-size: 1rem; } .tools { gap: 4px; } .seg button { width: 27px; } .icon-btn { width: 34px; height: 34px; } .menu-btn { padding: 8px 11px; } }

  /* ---------- Internal pages ---------- */
  .page-hero { padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px); }
  .page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; max-width: 20ch; margin-top: 10px; }
  .page-hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; margin-top: 20px; }
  .breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--ink-soft); margin-bottom: 28px; }
  .breadcrumb a { color: var(--blue); text-underline-offset: 3px; }
  .breadcrumb span[aria-current] { color: var(--ink-soft); }
  .eyebrow { font-size: .95rem; font-weight: 600; color: var(--amber-ink); }
  .page-hero .eyebrow { font-size: 1.02rem; }
  .oct.slim svg { height: clamp(56px, 7vw, 84px); }

  .section { padding-block: clamp(48px, 7vw, 88px); }
  .section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
  .section .wrap > .eyebrow + h2, .section .eyebrow + h2 { margin-top: 6px; }

  .text-link { color: var(--blue); font-weight: 700; text-underline-offset: 4px; }
  .link-row, .related-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 34px; }
  .link-row a, .related-links a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .15s, background-color .15s; }
  .link-row a:hover, .related-links a:hover { border-color: var(--blue); background: var(--tint); }

  /* Article */
  .article-section-wrap { padding-top: 8px; }
  .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 88px); align-items: start; }
  .article-copy { max-width: 70ch; }
  .article-copy > h2 { font-size: 1.35rem; margin-top: 40px; }
  .article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .article-meta span { font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--ink-soft); }
  .content-byline, .article-credit { font-size: .92rem; color: var(--ink-soft); }
  .content-byline time { display: block; }
  .content-byline a { color: var(--blue); }
  .article-credit { margin-top: 8px; }
  .article-toc { margin: 32px 0 8px; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
  .article-toc ol { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
  .article-toc li::marker { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
  .article-toc a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 4px; }
  .article-toc a:hover { text-decoration-color: var(--blue); }
  .article-section { padding-top: 40px; }
  .article-section h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 14px; }
  .article-section h3 { font-size: 1.15rem; margin: 22px 0 8px; }
  .article-section p + p, .article-copy p + p { margin-top: 14px; }
  .article-section ul, .article-section ol { padding-left: 1.3em; display: grid; gap: 6px; margin: 12px 0; }
  .article-copy p { font-size: 1.06rem; }

  .notice, .preparation { margin: 40px 0; border-radius: 18px; padding: 22px 24px; }
  .notice { display: grid; grid-template-columns: auto 1fr; gap: 16px; background: var(--alert-bg); border: 1px solid color-mix(in srgb, var(--alert) 35%, transparent); }
  .notice svg { width: 26px; height: 26px; color: var(--alert); }
  .notice strong { display: block; color: var(--alert); font-size: 1.08rem; margin-bottom: 4px; }
  .preparation { background: var(--tint); border-left: 4px solid var(--amber); }
  .preparation h2 { font-size: 1.25rem; margin-bottom: 8px; }

  .source-disclosure { margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .source-disclosure summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style-position: outside; }
  .sources { display: grid; gap: 8px; padding-bottom: 22px; font-size: .92rem; color: var(--ink-soft); }
  .sources a { color: var(--blue); text-underline-offset: 3px; overflow-wrap: anywhere; }
  .back-to-library { display: inline-block; margin-top: 28px; }

  .article-sidebar { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
  .article-sidebar h3 { font-size: 1.4rem; margin: 6px 0 10px; }
  .article-sidebar p { color: var(--ink-soft); margin-bottom: 18px; }
  .article-sidebar .btn { width: 100%; justify-content: center; }
  .sidebar-links { display: grid; margin-top: 18px; border-top: 1px solid var(--line); }
  .sidebar-links a { padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
  .sidebar-links a:last-child { border-bottom: 0; }
  .sidebar-links a:hover { color: var(--blue); }

  /* Hubs: treatments + exams */
  .treatment-cards, .exam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .treatment-card, .exam-tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; transition: border-color .15s; }
  .treatment-card:hover, .exam-tile:hover { border-color: var(--blue); }
  .treatment-card h2, .exam-tile h2 { font-size: 1.45rem; margin-bottom: 10px; }
  .treatment-card h2 a, .exam-tile h2 a { text-decoration: none; }
  .treatment-card h2 a::after, .exam-tile h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
  .treatment-card p, .exam-tile p { color: var(--ink-soft); }
  .treatment-card .text-link, .exam-tile .text-link { display: inline-block; margin-top: 14px; }
  .content-context-note { margin-top: 24px; color: var(--ink-soft); }

  /* Disease library */
  .library-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 32px; }
  .library-intro p { color: var(--ink-soft); font-size: 1.06rem; }
  .library-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); position: sticky; top: 80px; z-index: 5; }
  .search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); }
  .search:focus-within { border-color: var(--blue); }
  .search-icon { font-size: 1.3rem; color: var(--ink-soft); }
  .search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; padding: 13px 0; outline: none; }
  .library-subnav { display: flex; gap: 6px; flex-wrap: wrap; }
  .library-subnav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
  .library-subnav a.current, .library-subnav a:hover { background: var(--tint); color: var(--ink); }
  .library-subnav a span { font-variant-numeric: tabular-nums; color: var(--ink-soft); margin-left: 4px; }
  .result-count { margin: 18px 4px 8px; font-size: .92rem; color: var(--ink-soft); }
  .library-group, .secondary-library { margin-top: 36px; }
  .library-group-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
  .library-group-heading h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
  .library-group-heading p { color: var(--ink-soft); max-width: 52ch; }
  .condition-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .condition-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .15s; }
  .condition-card:hover { background: var(--tint); }
  .condition-category { grid-column: 1 / -1; font-size: .85rem; color: var(--amber-ink); font-weight: 600; }
  .condition-card h3 { font-size: 1.25rem; grid-column: 1; }
  .condition-card p { grid-column: 1 / -1; color: var(--ink-soft); font-size: .98rem; }
  .condition-read { grid-column: 1 / -1; font-weight: 700; color: var(--blue); font-size: .92rem; margin-top: 6px; }
  .secondary-group { border-bottom: 1px solid var(--line); }
  .secondary-group summary { cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 6px; font-weight: 700; font-size: 1.12rem; list-style: none; }
  .secondary-group summary::-webkit-details-marker { display: none; }
  .secondary-group summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); }
  .secondary-group[open] summary::after { content: "−"; }
  .group-count { margin-left: auto; font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
  .secondary-group-content { padding: 0 6px 22px; }
  .secondary-group-content > p { color: var(--ink-soft); margin-bottom: 14px; }
  .secondary-link-grid { display: flex; flex-wrap: wrap; gap: 10px; }
  .condition-secondary-link { text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; }
  .condition-secondary-link:hover { border-color: var(--blue); background: var(--tint); }
  .no-results { margin-top: 24px; padding: 22px; border-radius: 18px; background: var(--tint); }
  .library-attribution { margin-top: 40px; font-size: .9rem; color: var(--ink-soft); max-width: 70ch; }
  [hidden] { display: none !important; }

  /* Profile */
  .profile-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
  .full-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; border-bottom: 1.5px solid var(--line); }
  .source-note { font-size: .88rem; color: var(--ink-soft); }
  .profile-grid article h2 { margin: 6px 0 18px; }
  .profile-grid article > p { font-size: 1.08rem; max-width: 60ch; }
  .profile-grid article > p + p { margin-top: 14px; }
  ul.timeline { list-style: none; margin: 32px 0; padding: 0; border-left: 2px solid var(--line); }
  ul.timeline li { position: relative; padding: 0 0 22px 26px; color: var(--ink-soft); }
  ul.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }
  ul.timeline strong { display: block; color: var(--ink); font-size: 1.1rem; }
  .social-row { display: flex; flex-wrap: wrap; gap: 10px; }
  .social-row a { text-decoration: none; font-weight: 600; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; }
  .social-row a:hover { border-color: var(--blue); }

  /* Contact block */
  #agendamento { background: var(--surface); border-top: 1px solid var(--line); }
  .contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); }
  .contact-grid h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.03em; margin: 6px 0 14px; }
  .contact-grid > div > p { color: var(--ink-soft); font-size: 1.08rem; max-width: 40ch; }
  .contact-cta { margin: 26px 0 16px; }
  .address-list { display: grid; gap: 14px; margin-top: 14px; }
  .address { display: grid; grid-template-columns: auto 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: var(--paper); }
  .address svg { width: 22px; height: 22px; color: var(--amber-ink); margin-top: 3px; }
  .address h3 { font-size: 1.12rem; margin-bottom: 4px; }
  .address address { font-style: normal; color: var(--ink-soft); }
  .address .text-link { display: inline-block; margin-top: 8px; }
  .contact-note { margin-top: 14px; font-size: .88rem; color: var(--ink-soft); }

  /* FAQ + editorial pages */
  .faq { max-width: 820px; }
  .faq h2 { margin: 6px 0 20px; }
  .faq details, .editorial details { border-top: 1px solid var(--line); }
  .faq details:last-of-type { border-bottom: 1px solid var(--line); }
  .faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.1rem; }
  .faq details p { padding-bottom: 18px; color: var(--ink-soft); max-width: 65ch; }
  .editorial { max-width: 760px; }
  .editorial h2 { font-size: 1.5rem; margin: 36px 0 12px; }
  .editorial p + p { margin-top: 12px; }
  .editorial ul { padding-left: 1.3em; display: grid; gap: 6px; }
  .editorial a { color: var(--blue); overflow-wrap: anywhere; }

  @media (max-width: 980px) {
    .article-layout, .profile-grid, .contact-grid, .library-intro { grid-template-columns: minmax(0, 1fr); }
    .article-sidebar { position: static; }
    .profile-grid > div:first-child { max-width: 420px; }
    .library-controls { position: static; }
  }
  @media (max-width: 680px) {
    .treatment-cards, .exam-grid, .condition-grid { grid-template-columns: 1fr; }
    .notice { grid-template-columns: 1fr; }
  }
  .article-copy > section:not(.article-section) { padding-top: 36px; }
  .article-copy > section:not(.article-section) h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 14px; }
  @media (max-width: 359px) { #theme { display: none; } }
