/* 3D Medical Universe — design system v2, "atlas celeste" (2026-11-16)
 * The curriculum is a night sky; each topic is a star. Colour carries meaning, never decoration:
 *   --solid  ponto forte (acertou com certeza)      --engine  onde o motor está olhando / acerto frágil
 *   --trap   equívoco, armadilha                     --gap     lacuna (estrela apagada)
 * Type: Bricolage Grotesque (display, light weights at large sizes) + Atkinson Hyperlegible Next (text,
 * designed for legibility) + Atkinson Hyperlegible Mono only for numbers. Same font files as fonts.css,
 * declared here with their full variable weight range. Arabic/Hebrew faces come from the page's rtl-css. */

@font-face { font-family: "MU Display"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/a972324267.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "MU Display"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/a4fe79f7ca.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "MU Text"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/cc63ecbb63.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "MU Text"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/4f13e8a433.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "MU Mono"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/4c3ac72870.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "MU Mono"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/41c65a0c3d.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  /* sky */
  --sky: #060b18;
  --sky-2: #0b1530;
  --sky-3: #13204a;
  --glass: rgba(12, 22, 46, 0.74);
  --glass-2: rgba(17, 30, 62, 0.9);
  /* light */
  --star: #f4f7fd;
  --haze: #b0bcd2;
  --haze-2: #8693ad;
  --dust: rgba(170, 186, 214, 0.15);
  --dust-2: rgba(170, 186, 214, 0.32);
  /* meaning (from the three nodes of the logo) */
  --solid: #3ddc97;
  --trap: #ff8a4c;
  --engine: #6cb1ff;
  --gap: #5b6883;
  /* type */
  --f-display: "MU Display", "Bricolage Grotesque", system-ui, sans-serif;
  --f-text: "MU Text", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "MU Mono", "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-h1: clamp(2.55rem, 1.35rem + 5.4vw, 5.4rem);
  --t-h2: clamp(1.85rem, 1.25rem + 2.7vw, 3.25rem);
  --t-h3: 1.2rem;
  --t-lead: clamp(1.08rem, 1rem + 0.42vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-sm: 0.875rem;
  --t-xs: 0.78rem;
  /* shape */
  --r-pill: 999px;
  --r-panel: 22px;
  --r-ctl: 14px;
  --gutter: clamp(20px, 4vw, 40px);
  --measure: 36rem;
  /* compatibility: names used by mu-conta.js, mu-langmenu.js and the older page CSS */
  --bg: var(--sky);
  --surface: var(--sky-2);
  --panel-solid: var(--sky-2);
  --ink: var(--star);
  --ink-2: var(--haze);
  --ink-3: var(--haze-2);
  --line: var(--dust);
  --line-2: var(--dust-2);
  --wash: rgba(170, 186, 214, 0.08);
  --accent: var(--engine);
  --accent-ink: #061024;
  --good: var(--solid);
  --warn: var(--trap);
  --on-ink: var(--sky);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 22px 60px rgba(0, 0, 0, 0.5);
  --f-body: var(--f-text);
  --f-mono: var(--f-num);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sky); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--star); background: var(--sky);
  font-family: var(--f-text); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--engine); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(108, 177, 255, 0.35); color: var(--star); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--star); color: var(--sky); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- type */
.h1, .h2, .h3 { margin: 0; font-family: var(--f-display); color: var(--star); text-wrap: balance; }
.h1 { font-size: var(--t-h1); font-weight: 300; line-height: 0.98; letter-spacing: -0.035em; font-variation-settings: "opsz" 96; }
.h2 { font-size: var(--t-h2); font-weight: 380; line-height: 1.04; letter-spacing: -0.028em; font-variation-settings: "opsz" 96; }
.h3 { font-size: var(--t-h3); font-weight: 620; line-height: 1.25; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
.lead { margin: 0; font-size: var(--t-lead); line-height: 1.55; color: var(--haze); max-width: var(--measure); text-wrap: pretty; }
.prose { color: var(--haze); max-width: var(--measure); text-wrap: pretty; }
.prose p { margin: 0 0 0.9em; }
.prose strong, .prose b { color: var(--star); font-weight: 650; }
.ev { margin: 18px 0 0; max-width: var(--measure); padding-inline-start: 14px; border-inline-start: 1px solid var(--dust-2); font-size: var(--t-sm); line-height: 1.55; color: var(--haze-2); text-wrap: pretty; }
:lang(zh) :is(.h1, .h2, .h3) { letter-spacing: 0; font-weight: 500; line-height: 1.18; }
:lang(zh) .h1 { font-weight: 600; }
:is(:lang(ar), :lang(he)) :is(.h1, .h2) { letter-spacing: 0; line-height: 1.22; font-weight: 600; }
:lang(ar) :is(.lead, .prose, .ev) { line-height: 1.75; }

/* ---------------------------------------------------------------- brand lockup + header */
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.top {
  position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(6, 11, 24, 0.86), rgba(6, 11, 24, 0));
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.top.solid, .top.is-solid { background: rgba(6, 11, 24, 0.82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--dust); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--star); font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 18; white-space: nowrap; }
.mark svg { width: 26px; height: 26px; flex: none; }
.top-acts { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang { display: inline-flex; flex-wrap: wrap; gap: 2px; border: 1px solid var(--dust-2); border-radius: 10px; padding: 2px; }
.lang button { border: 0; background: none; font: inherit; font-size: 0.8rem; font-weight: 600; padding: 5px 8px; color: var(--haze); cursor: pointer; border-radius: 8px; }
.lang button[aria-pressed="true"] { background: var(--star); color: var(--sky); }
/* account button injected by js/mu-conta.js */
.top .mu-acc { --mu-acc-bg: transparent; }
@media (max-width: 420px) { .mark .wm { font-size: 0.95rem; } }
@media (max-width: 360px) { .mark .wm { display: none; } }

/* ---------------------------------------------------------------- actions */
.btn {
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  font: 650 1rem/1.15 var(--f-text); text-decoration: none; text-align: center; cursor: pointer;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn.go { background: var(--star); color: #07122b; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 10px 34px rgba(108, 177, 255, 0.28), 0 0 70px rgba(108, 177, 255, 0.12); }
.btn.go:hover { box-shadow: 0 0 0 1px #fff, 0 12px 40px rgba(108, 177, 255, 0.42), 0 0 90px rgba(108, 177, 255, 0.2); }
.btn.line { background: rgba(6, 11, 24, 0.35); color: var(--star); border-color: var(--dust-2); }
.btn.line:hover { border-color: var(--star); background: rgba(244, 247, 253, 0.06); }
.btn.quiet { min-height: 44px; padding: 0 16px; background: transparent; color: var(--haze); border-color: var(--dust); font-weight: 600; font-size: 0.94rem; }
.btn.quiet:hover { color: var(--star); border-color: var(--dust-2); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.link { color: var(--star); text-decoration: underline; text-decoration-color: var(--dust-2); text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 600; }
.link:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; z-index: 2; border-top: 1px solid var(--dust); background: var(--sky); padding-block: 34px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: var(--t-sm); color: var(--haze-2); }
.foot a { color: var(--haze); text-decoration: underline; text-decoration-color: var(--dust-2); text-underline-offset: 3px; }
.foot a:hover { color: var(--star); }
.foot .row { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: baseline; }
.foot .legal-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.foot p { margin: 0; }
.foot .fine { margin-top: 18px; display: grid; gap: 6px; font-size: var(--t-xs); line-height: 1.55; max-width: 60rem; }
.foot .cai { display: inline-flex; align-items: center; gap: 0.22em; text-decoration: none; color: var(--haze); }
.foot .cai svg { width: 1.15em; height: 1.15em; }

/* ---------------------------------------------------------------- legal + reading pages */
.reading { background: radial-gradient(90% 60% at 80% -10%, rgba(30, 58, 120, 0.35), transparent 60%), var(--sky); }
.page { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 56px; padding-block: 40px 72px; }
.side { position: sticky; top: 84px; align-self: start; font-size: var(--t-sm); }
.side .back { display: inline-block; margin-bottom: 20px; color: var(--haze); text-decoration: none; }
.side .back:hover { color: var(--star); }
.side p { margin: 0 0 10px; font-size: var(--t-sm); font-weight: 650; color: var(--haze-2); }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side li a { display: block; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--haze); border: 1px solid transparent; }
.side li a:hover { color: var(--star); background: rgba(170, 186, 214, 0.06); }
.side li a[aria-current="page"] { color: var(--star); border-color: var(--dust-2); background: rgba(108, 177, 255, 0.08); font-weight: 650; }
.doc { max-width: 42rem; min-width: 0; }
.doc h1 { margin: 0 0 12px; font-family: var(--f-display); font-weight: 340; font-size: clamp(2.1rem, 1.5rem + 3vw, 3.3rem); line-height: 1.02; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; text-wrap: balance; hyphens: auto; }
.doc .meta { margin: 0 0 26px; font-size: var(--t-sm); color: var(--haze-2); }
.doc .transl { margin: 0 0 26px; padding: 12px 16px; border-inline-start: 2px solid var(--engine); background: rgba(108, 177, 255, 0.07); border-radius: 0 12px 12px 0; font-size: var(--t-sm); color: var(--haze); }
[dir="rtl"] .doc .transl { border-radius: 12px 0 0 12px; }
.doc h2 { margin: 40px 0 12px; font-family: var(--f-display); font-weight: 560; font-size: 1.32rem; line-height: 1.25; letter-spacing: -0.01em; font-variation-settings: "opsz" 28; color: var(--star); hyphens: auto; }
.doc h3 { margin: 26px 0 8px; font-size: 1.05rem; font-weight: 650; color: var(--star); }
.doc p, .doc li { color: var(--haze); overflow-wrap: anywhere; }
.doc p { margin: 0 0 14px; }
.doc strong { color: var(--star); }
.doc ul, .doc ol { margin: 0 0 14px; padding-inline-start: 1.3em; display: grid; gap: 7px; }
.doc a { color: var(--star); text-decoration: underline; text-decoration-color: rgba(108, 177, 255, 0.55); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: var(--t-sm); display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--dust); padding: 8px 10px; text-align: start; vertical-align: top; color: var(--haze); }
.doc th { color: var(--star); background: rgba(170, 186, 214, 0.05); }
.doc .callout { margin-top: 28px !important; padding: 16px 18px; border: 1px solid rgba(255, 138, 76, 0.45); border-radius: 16px; background: rgba(255, 138, 76, 0.08); color: var(--star) !important; font-weight: 600; }
.doc :target { scroll-margin-top: 90px; }
@media (max-width: 820px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 18px 48px; }
  .side { position: static; }
  .side ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .side li a { border-color: var(--dust); padding: 7px 12px; }
}

/* ---------------------------------------------------------------- cookie notice from js/mu-ads.js, in the new identity */
html body .mu-ck { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-width: 560px; padding: 14px 16px; border-radius: 18px; background: rgba(11, 21, 48, 0.97); color: var(--haze); border: 1px solid var(--dust-2); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); font: 0.86rem/1.5 var(--f-text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html body .mu-ck p { margin: 0 0 10px; }
html body .mu-ck a { color: var(--star); }
html body .mu-ck button { font: 650 0.9rem/1 var(--f-text); padding: 11px 16px; min-height: 42px; border-radius: 999px; border: 1px solid var(--dust-2); background: transparent; color: var(--star); }
html body .mu-ck button.ok { background: var(--star); color: #07122b; border-color: transparent; }
@media (max-width: 520px) { html body .mu-ck { font-size: 0.8rem; padding: 12px 14px; } html body .mu-ck-row { justify-content: stretch; } html body .mu-ck-row button { flex: 1 1 0; } }

/* ---------------------------------------------------------------- motion + print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media print {
  :root { color-scheme: light; }
  html, body, .reading { background: #fff !important; color: #111 !important; }
  .top, .side, .foot, .skip { display: none !important; }
  .page { display: block; padding: 0; }
  .doc { max-width: none; }
  .doc h1, .doc h2, .doc h3, .doc strong { color: #000 !important; }
  .doc p, .doc li, .doc td, .doc th, .doc .meta, .doc .transl { color: #222 !important; }
  .doc .callout { border-color: #999; background: none; color: #000 !important; }
}
