/* cv.danilo.solutions — paleta "Preto e esmeralda".
   Fontes: Roboto Slab (nome e títulos) + Roboto (todo o resto). Modo claro e escuro com botão. */
@font-face { font-family: "Roboto Slab"; src: url(/fonts/RobotoSlab.woff) format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Roboto"; src: url(/fonts/Roboto.woff) format("woff"); font-weight: 100 900; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Roboto"; src: url(/fonts/Roboto-Italic.woff) format("woff"); font-weight: 100 900; font-stretch: 75% 100%; font-style: italic; font-display: swap; }

:root {
  --paper: #ffffff;
  --band: #eff1f1;
  --ink: #0e0f0f;
  --muted: #5c6262;
  --line: #d9dddd;
  --pri: #0a6b4f;
  --pri-soft: #e4f1ec;
  --acc: #2fb37b;
  --graf: #3b4140;
  --tile: #ffffff;
  --slab: "Roboto Slab", Georgia, serif;
  --sans: "Roboto", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0d1010; --band: #151a19; --ink: #e9eeec; --muted: #9ba5a2; --line: #273030;
  --pri: #43d39b; --pri-soft: #133126; --acc: #2fb37b; --graf: #aab3b0;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1010; --band: #151a19; --ink: #e9eeec; --muted: #9ba5a2; --line: #273030;
    --pri: #43d39b; --pri-soft: #133126; --acc: #2fb37b; --graf: #aab3b0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.03rem/1.6 var(--sans); }
a { color: var(--pri); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: .5rem .75rem; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- botão de tema ---------- */
.tema { position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .45rem;
  font: 500 .85rem/1 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: .45rem .8rem; cursor: pointer; }
.tema:hover { border-color: var(--muted); }
.tema svg { width: 1rem; height: 1rem; }
.tema .sol { display: none; }
:root[data-theme="dark"] .tema .lua { display: none; }
:root[data-theme="dark"] .tema .sol { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tema .lua { display: none; }
  :root:not([data-theme="light"]) .tema .sol { display: inline; }
}

/* ---------- topo ---------- */
.hero { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; border-bottom: 1px solid var(--line); background: var(--band); }
.hero-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem clamp(1.5rem, 4vw, 3rem); align-items: center; }
.foto { width: clamp(7.5rem, 18vw, 12rem); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 5px var(--band), 0 0 0 7px var(--pri); }
h1 { font: 700 clamp(2.5rem, 7vw, 4.6rem)/1 var(--slab); letter-spacing: -0.015em; margin: 0 0 .7rem; }
.roles { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; margin: 0 0 1rem; font: 400 clamp(1.1rem, 2.2vw, 1.35rem)/1.3 var(--slab); color: var(--pri); }
.role small { font: 500 .78rem/1 var(--sans); color: var(--muted); margin-left: .35rem; letter-spacing: .02em; }
.lede { max-width: 42rem; color: var(--muted); margin: 0 0 1.1rem; font-size: 1.08rem; }
.contact { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; padding: 0; margin: 0 0 1.4rem; font: 500 .95rem/1.4 var(--sans); }
.contact li:last-child { color: var(--muted); font-weight: 400; }
.btn { display: inline-block; background: var(--pri); color: var(--paper); padding: .72rem 1.15rem; border-radius: 6px; font: 600 .95rem/1 var(--sans); letter-spacing: .01em; }
.btn:hover { color: var(--paper); filter: brightness(1.1); }
@media (max-width: 40rem) { .hero-grid { grid-template-columns: 1fr; } }

/* linha do tempo */
.trail { margin-top: 2.5rem; }
.lanes { --row: 1.15rem; position: relative; display: grid; grid-template-columns: 10rem 1fr; }
.lane-name { grid-column: 1; grid-row: 1; margin-top: calc(var(--lane) * var(--row)); font: 500 .8rem/var(--row) var(--sans); color: var(--muted); }
.track { grid-column: 2; grid-row: 1; position: relative; height: calc(var(--rows) * var(--row) + 1.6rem); border-left: 1px solid var(--line); }
.tick { position: absolute; bottom: 0; font: 500 .74rem/1 var(--sans); color: var(--muted); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.tick::before { content: ""; position: absolute; left: 50%; bottom: 1.1rem; height: calc(var(--rows) * var(--row)); border-left: 1px dashed var(--line); }
.bar { position: absolute; top: calc(var(--lane) * var(--row) + .15rem); height: calc(var(--row) - .3rem); border-radius: 2px; background: var(--muted); }
.bar:hover, .bar:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.a-medicina { background: var(--pri) !important; }
.a-engenharia { background: var(--graf) !important; }
.a-gestao { background: repeating-linear-gradient(45deg, var(--acc) 0 3px, transparent 3px 6px) !important; box-shadow: inset 0 0 0 1px var(--acc); }
.a-formacao_geral { background: var(--muted) !important; opacity: .45; }
.trail figcaption { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font: 400 .8rem/1.3 var(--sans); color: var(--muted); margin-top: .6rem; }
.key i { display: inline-block; width: .8rem; height: .55rem; border-radius: 2px; margin-right: .35rem; }
@media (max-width: 40rem) {
  .lanes { grid-template-columns: 1fr; }
  .lane-name { display: none; }
  .track { grid-column: 1; }
}

/* navegação */
.toc { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.toc .wrap { display: flex; gap: 1.3rem; overflow-x: auto; padding-top: .75rem; padding-bottom: .75rem; font: 500 .92rem/1 var(--sans); white-space: nowrap; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--pri); }

/* ---------- conteúdo ---------- */
main section { padding: 3rem 0 1rem; scroll-margin-top: 3rem; }
h2 { font: 700 clamp(1.6rem, 3.4vw, 2.1rem)/1.15 var(--slab); color: var(--ink); margin: 0 0 1.4rem; display: flex; align-items: center; gap: .6rem; }
h2::before { content: ""; width: 1.1rem; height: .4rem; border-radius: .2rem; background: var(--acc); flex: none; }
h3 { font: 600 1.08rem/1.35 var(--sans); margin: 0; }
.quals { max-width: 46rem; padding-left: 1.1rem; margin: 0; }
.quals li { margin: .3rem 0; }
li::marker { color: var(--pri); }

.item { display: grid; grid-template-columns: 11rem minmax(0, 46rem); gap: .4rem 2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); scroll-margin-top: 3.5rem; }
.side { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.tile { width: 3.3rem; height: 3.3rem; border-radius: 10px; background: var(--tile); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.tile.cheio { border: 0; }
.tile.cheio img { padding: 0; object-fit: cover; }
.tile.sigla { font: 700 .7rem/1 var(--sans); font-stretch: 80%; color: var(--pri); background: var(--pri-soft); border-color: transparent; text-align: center; padding: 2px; }
.item .when { margin: 0; font: 500 .86rem/1.35 var(--sans); font-stretch: 90%; color: var(--muted); font-variant-numeric: tabular-nums; }
.item.is-current .when { color: var(--ink); }
.item.is-current .when::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--acc); margin-right: .4rem; vertical-align: .05rem; }
.org { margin: .15rem 0 .5rem; font-style: italic; }
.place { color: var(--muted); }
.desc { color: var(--muted); font-size: .97rem; margin: 0 0 .6rem; }
.what ul { margin: .35rem 0; padding-left: 1.1rem; }
.what li { margin: .2rem 0; }
.sub { margin: .7rem 0 0; font: 600 .85rem/1.2 var(--sans); color: var(--muted); }
.results li::marker { color: var(--acc); }
.facts { margin: .3rem 0 .4rem; display: grid; gap: .15rem; font-size: .97rem; }
.facts div { display: flex; flex-wrap: wrap; gap: .35rem; }
.facts dt { font-weight: 500; color: var(--muted); }
.facts dt::after { content: ":"; }
.facts dd { margin: 0; }
details { margin-top: .6rem; border-left: 2px solid var(--pri-soft); padding-left: .9rem; }
summary { cursor: pointer; font: 600 .93rem/1.4 var(--sans); color: var(--pri); }
details p { margin: .4rem 0; }
@media (max-width: 46rem) {
  .item { grid-template-columns: 1fr; }
  .side { flex-direction: row; align-items: center; }
}

.events { width: 100%; max-width: 61rem; border-collapse: collapse; }
.events th { text-align: left; font: 600 .85rem/1.2 var(--sans); color: var(--muted); padding: 0 1rem .5rem 0; }
.events td { border-top: 1px solid var(--line); padding: .6rem 1rem .6rem 0; vertical-align: top; }
.events td:first-child { white-space: nowrap; font-size: .9rem; font-stretch: 90%; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) { .events td:first-child { white-space: normal; } }

.group { margin-bottom: 1.5rem; }
.group h3 { margin-bottom: .4rem; }
.group ul { margin: 0; padding-left: 1.1rem; }
.group li { margin: .2rem 0; }
.plain { list-style: none; padding: 0 !important; }
.plain li { padding: .35rem 0; border-top: 1px solid var(--line); }
.plain .t { font-weight: 600; }
.plain .d { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0 2.5rem; }

.foot { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.25rem; padding-bottom: 2.5rem; color: var(--muted); font-size: .9rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.foot p { margin: 0; }
.assina { display: flex; align-items: center; gap: .9rem; }
.assina svg { width: 8.5rem; height: auto; color: var(--pri); }

@media print {
  .toc, .btn, .trail, .skip, .tema { display: none; }
  .hero { background: none; }
  details { border: 0; }
}
