:root {
  --text: #191a20;
  --blue: #293fe5;
  --secondary: #5b5e6d;
  --line: #d9dbe3;
  --wash: #f1f3ff;
  --frame: min(1280px, 90vw);
  color: var(--text);
  background: white;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.58;
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0 }
header, main, footer { width: var(--frame); margin-inline: auto }
header { display: flex; justify-content: space-between; align-items: center; min-height: 76px; border-bottom: 1px solid var(--line); gap: 20px }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 1rem; font-weight: 720; letter-spacing: -.035em }
.brandmark { width: 22px; height: 22px; color: var(--blue) }
header nav { display: flex; gap: clamp(12px, 3vw, 42px) }
header a { text-decoration: none }
header nav a { position: relative; font-size: .88rem; color: var(--secondary) }
.cv header nav a:first-child { color: var(--blue); font-weight: bold }
a { color: var(--blue); text-underline-offset: .22em }
a:hover { text-decoration: underline }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px }
.skip { position: absolute; transform: translateY(-150%); background: white }
.skip:focus { transform: none }
h1, h2, h3, p, figure, dl { margin: 0 }
h1, h2, h3 { line-height: 1.06 }
.masthead { display: grid; grid-template-columns: 1fr; align-items: center; padding-block: clamp(50px, 6vw, 96px); column-gap: 2vw }
.kicker, .meta, .affiliation, .axis, .time-row small, .legend, .prior strong {
  font: .78rem/1.55 Consolas, "Courier New", monospace;
}
.kicker { color: var(--blue); border-left: 28px solid var(--blue); padding-left: 10px; line-height: .95 }
h1 { font-size: clamp(3.9rem, 8.4vw, 8.1rem); font-weight: 620; letter-spacing: -.085em }
.masthead h1 { margin: 20px 0 16px }
.cv .mast-copy { container-type: inline-size }
.cv .masthead h1 { font-size: clamp(.7rem, 4cqw, 2.5rem); letter-spacing: -.045em; white-space: nowrap }
.masthead h1 span { color: var(--blue) }
.byline { max-width: 40ch; font-size: clamp(1.15rem, 2vw, 1.65rem); line-height: 1.32; letter-spacing: -.035em }
.affiliation { margin-top: 15px; color: var(--secondary) }
.cv-actions, .cv-actions > div, .jump { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px }
.cv-actions, .jump { justify-content: space-between }
.cv-actions { border-block: 1px solid var(--text); padding-block: 13px; font-size: .89rem }
.cv-actions a { color: var(--text) }
button { border: 0; background: var(--blue); color: white; padding: 10px 17px; font: inherit; cursor: pointer }
button:hover { background: #1b2ba9 }
.jump { position: relative; background: var(--wash); padding: 10px 16px; font-size: .87rem }
.jump details nav { position: absolute; z-index: 1; left: 0; top: 100%; background: white; padding: 16px 20px; border: 1px solid var(--line); display: grid; gap: 8px; max-width: 100% }
summary { cursor: pointer }
.jump a { text-decoration: none }
.medical-summary { max-width: 78ch; margin: 0 0 28px; color: var(--secondary); font-size: 1.05rem }
.medical-summary p + p { margin-top: 12px }
.academic-status { display: flex; flex-wrap: wrap; gap: 18px 64px; padding: 20px 0 24px; border-top: 1px solid var(--line) }
.academic-status dt { font-size: .78rem; font-weight: 500; color: var(--secondary) }
.academic-status dd { margin: 4px 0 0; font-weight: 600; font-size: 1.12rem }
.academic-status dd span { color: var(--secondary); font-weight: 400; font-size: .85rem; margin-left: 8px }
.entries section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: clamp(20px, 5vw, 85px); padding-block: clamp(35px, 5vw, 74px); border-bottom: 1px solid var(--line); scroll-margin: 12px }
h2 { font-weight: 550; font-size: clamp(1.95rem, 3.5vw, 3.55rem); letter-spacing: -.065em; text-wrap: balance }
h3 { font-weight: 620; font-size: 1.14rem; letter-spacing: -.03em; margin-top: 1.5rem }
.prose { max-width: 68ch }
.prose p, .prose dl { margin-bottom: 1em }
.prose h3 { margin-bottom: .65em }
.prose ul { list-style: none; padding: 0; margin: 1rem 0 }
.prose li { padding: .55rem 0 .55rem 1rem; border-top: 1px solid var(--line); position: relative }
.prose li::before { content: ""; width: 4px; height: 4px; background: var(--blue); position: absolute; top: 1.2rem; left: 0 }
.prose .section-intro { font-size: 1.08rem; color: var(--text) }
.prose .experience { padding: 22px 0; border-top: 1px solid var(--line) }
.prose .experience:first-child { border-top: 0; padding-top: 0 }
.prose .experience h3, .prose .experience-list h3 { margin: 0 0 7px; font-size: 1.22rem; line-height: 1.25 }
.prose .entry-meta { color: var(--secondary); font-size: .86rem; line-height: 1.55; margin-bottom: 10px }
.prose .entry-note { color: var(--secondary); font-size: .88rem }
.prose .experience > :last-child, .prose li > :last-child { margin-bottom: 0 }
.prose .experience-list > li { padding: 20px 0 }
.prose .experience-list > li::before { display: none }
.prose .compact-list { margin-top: 0 }
.prose .compact-list > li { padding-block: 12px }
.prose .cv-details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; font-size: .93rem }
.cv-details > summary { font-weight: 600; color: var(--blue); line-height: 1.5 }
.cv-details[open] > summary { margin-bottom: 14px }
.practice-periods > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-top: 8px }
.practice-periods dt { color: var(--text); font-size: .9rem }
.practice-periods dd { margin: 0; font-size: .9rem }
.certified-hours { display: flex; flex-wrap: wrap; gap: 16px 30px }
.certified-hours dt { color: var(--secondary); font-size: .85rem; font-weight: 400 }
.certified-hours dd { margin: 3px 0 0; font-weight: 600 }
dt { color: var(--blue); font-weight: 650 }
dd { margin: 0 0 1rem }
.row { border-top: 1px solid var(--line); padding: 20px 0 }
.row h3 { margin: .35rem 0 }
.meta, .legend, .time-row small { color: var(--secondary) }
.timeline { padding: clamp(24px, 4vw, 68px) 0 }
.timeline h2 { font-size: clamp(2.8rem, 6vw, 6rem); position: sticky; top: 0; z-index: 4; background: white; padding-block: 10px }
.timeline-axis { position: sticky; top: var(--timeline-title-height, 100px); z-index: 3; background: white; border-block: 2px solid var(--text) }
.timeline-axis-scroll { overflow-x: hidden }
.timeline > p { margin: 14px 0; max-width: 75ch }
.legend { display: flex; flex-wrap: wrap; gap: 7px 20px; margin: 20px 0 }
.prior { border-left: 3px solid var(--blue); padding-left: 14px }
.prior strong { color: var(--blue) }
.timeline-scroll { overflow-x: auto; border-bottom: 2px solid var(--text) }
.timeline-grid { min-width: 1000px; padding-right: 5px }
.axis, .time-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 2vw }
.axis { background: var(--wash); padding-block: 8px; color: var(--blue) }
.axis b { width: max-content; transform: translateX(-50%) }
.axis > div { display: grid; grid-template-columns: repeat(8, 1fr); text-align: left }
.time-row { border-bottom: 1px solid var(--line) }
.time-row:nth-child(even) { background-color: #fafbff }
.time-row:hover { background-color: var(--wash) }
.time-row > span { padding: 5px 8px; font-size: .84rem }
.time-row small { display: none }
.track { position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 8) 100%; border-right: 1px solid var(--line) }
.bar { position: absolute; top: 50%; left: calc(var(--start)*100%/8); width: calc(var(--length)*100%/8); height: 0; border-top: 2px solid var(--blue) }
.bar::before, .bar::after { content: ""; position: absolute; background: var(--blue); border: 1.5px solid var(--blue); width: 8px; height: 8px; border-radius: 100%; top: -5px }
.bar::before { left: 0; transform: translateX(-50%) }
.bar::after { right: 0; transform: translateX(50%) }
.ongoing::after { background: white }
.event::before { display: none }
.event { border: 0 }
.event::after { right: 50%; border-radius: 0; transform: rotate(45deg) }
.site main { padding-block: clamp(48px,7vw,96px); max-width: 880px }
.site main > * + * { margin-top: 1.3rem }
.site main > h2 { margin-top: 3rem }
.site .intro { font-size: 1.3rem; max-width: 56ch }
.actions { display: flex; flex-wrap: wrap; gap: 16px }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0; border-top: 1px solid var(--text); font-size: .85rem }
@media (max-width: 700px) {
  header { min-height: 62px; gap: 6px }
  header nav { gap: 10px }
  header nav a { font-size: .8rem }
  .masthead { grid-template-columns: 1fr; gap: 16px; padding-block: 32px 20px }
  .entries section { display: block }
  .entries section h2 { margin-bottom: 1.4rem }
  .timeline .axis, .timeline .time-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px }
  .axis { font-size: clamp(.53rem, 1.8vw, .73rem) }
  .time-row > span { font-size: .82rem; overflow-wrap: anywhere }
  .time-row small { font-size: .65rem }
}
@media print {
  @page { margin: 15mm }
  :root { --frame: 100%; color: black }
  header, footer, .jump, button, .skip { display: none }
  .masthead, .entries section { display: block; padding: 10pt 0 }
  h1 { font-size: 35pt } h2 { font-size: 21pt; margin-bottom: 8pt }
  .cv .masthead h1 { font-size: 18pt }
  .timeline { break-before: page; padding: 0 }
  .timeline h2, .timeline-axis { position: static }
  .timeline h2 { font-size: 24pt; padding: 0; margin-bottom: 8pt }
  .timeline > p { font-size: 10pt; margin: 8pt 0 }
  .timeline .legend { font-size: 8pt; margin: 10pt 0 }
  .timeline-axis-scroll { overflow: visible }
  .timeline-scroll { overflow: visible }
  .timeline-grid { min-width: 0 }
  .axis { font-size: 8pt }
  .time-row > span { font-size: 8pt; line-height: 1.2; padding: 3px 5px }
  .time-row small { font-size: 6pt }
  h2, h3, .axis { break-after: avoid }
  li, .time-row, .row { break-inside: avoid }
  .bar, .track { print-color-adjust: exact }
  .cv-actions a[href="/curriculo/resumo/"] { display: none }
  .cv-details { break-inside: avoid }
  .cv-details > summary { color: black; list-style: none }
  .experience { break-inside: avoid }
}
