/* Daniel Thamm — Apple Design, shared by all public pages.
   Institutional blue, gold, wordmark and all content remain Daniel Thamm's. */
html.apple-theme {
  --lab-bg: #f5f5f7;
  --lab-surface: #fff;
  --lab-ink: #24272c;
  --lab-muted: #555b65;
  --lab-line: #dce0e6;
  --lab-blue: #004da1;
  --lab-glass: rgb(245 245 247 / .92);
  --lab-shadow: 0 12px 40px rgb(0 43 87 / .045);
  font-size: 100%;
  scroll-padding-top: 6rem;
}
html.apple-theme[data-theme="dark"] {
  --lab-bg: #111820;
  --lab-surface: #1b2530;
  --lab-ink: #f2f0ed;
  --lab-muted: #c6cbd3;
  --lab-line: #3a4652;
  --lab-blue: #8fc1fa;
  --lab-glass: rgb(17 24 32 / .94);
  --lab-shadow: 0 12px 40px rgb(0 0 0 / .12);
}
@media (prefers-color-scheme: dark) {
  html.apple-theme:not([data-theme]) {
    --lab-bg: #111820; --lab-surface: #1b2530; --lab-ink: #f2f0ed;
    --lab-muted: #c6cbd3; --lab-line: #3a4652; --lab-blue: #8fc1fa;
    --lab-glass: rgb(17 24 32 / .94); --lab-shadow: 0 12px 40px rgb(0 0 0 / .12);
  }
}
html.apple-theme body, html.apple-theme body .pg {
  background: var(--lab-bg) !important; color: var(--lab-ink) !important;
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-optical-sizing: auto; letter-spacing: 0;
}
html.apple-theme body :is(h1,h2,h3,h4,.serif,.label,.num,.n,.slogan,summary,button,select) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
html.apple-theme body :is(main,section,article,footer,details) {
  background-color: transparent !important; color: var(--lab-ink) !important;
  border-color: var(--lab-line) !important;
}
html.apple-theme body .wrap { max-width: 80rem; padding-inline: clamp(1.25rem, 4vw, 4rem); }
html.apple-theme body .hd {
  background: var(--lab-glass) !important; border: 0;
  backdrop-filter: saturate(150%) blur(24px); -webkit-backdrop-filter: saturate(150%) blur(24px);
  box-shadow: 0 1px 0 rgb(125 135 150 / .12); transition: box-shadow 180ms ease;
}
html.apple-theme body .hd.is-scrolled { box-shadow: 0 6px 24px rgb(0 25 55 / .08); }
html.apple-theme body .hd-in, html.apple-theme body .hd.is-scrolled .hd-in {
  height: 5.5rem; gap: 1.25rem;
}
html.apple-theme body .hd .brand, html.apple-theme body .hd.is-scrolled .brand { margin-left: -.3rem; }
html.apple-theme body .hd .brand-box, html.apple-theme body .hd.is-scrolled .brand-box { width: 11rem; height: 2.6rem; }
html.apple-theme body .hd .brand-box img, html.apple-theme body .hd.is-scrolled .brand-box img { width: 15.75rem; height: 15.75rem; }
html.apple-theme body .nav { gap: 1.125rem; }
html.apple-theme body .nav a { font-size: .8125rem; font-weight: 500; letter-spacing: 0; }
html.apple-theme body :is(.nav a,.mnav li a,.menu-btn,.hd-cta) { color: var(--lab-ink) !important; }
html.apple-theme body .theme-select {
  min-height: 2.75rem; max-width: 7rem; border-radius: .8rem;
  background: var(--lab-surface) !important; color: var(--lab-ink) !important;
  border-color: var(--lab-line); font-size: .75rem;
}
html.apple-theme body .hd-cta { border-radius: 2rem; padding-inline: 1.125rem; border-color: var(--lab-line) !important; }
html.apple-theme body .hd-cta:hover { background: var(--lab-ink) !important; color: var(--lab-bg) !important; }
html.apple-theme body :is(.label,.n,.num,.slogan) { color: var(--lab-blue) !important; }
html.apple-theme body .label { font-size: .75rem; font-weight: 650; letter-spacing: .12em; }
html.apple-theme body .label::after { width: 2rem; margin-top: .85rem; background: #c9a961; }
html.apple-theme body :is(.muted,.aside,.meta,.pm,.scope,.crumb,.crumb a,.ft-bottom,.facts dt) { color: var(--lab-muted) !important; }
html.apple-theme body :is(.h1B,.h1P) {
  font-weight: 600; font-size: clamp(2.5rem,5.8vw,5.25rem); line-height: 1.06;
  letter-spacing: -.045em; text-wrap: balance; color: var(--lab-ink) !important;
}
html.apple-theme body :is(.h1B,.h1P) em { font-weight: inherit; font-style: normal; color: var(--lab-blue) !important; }
html.apple-theme body .heroB { padding-top: clamp(4.5rem,8vw,7.5rem); text-align: center; }
html.apple-theme body .heroB .label::after { margin-inline: auto; }
html.apple-theme body .h1B { margin: 1.75rem auto 0; }
html.apple-theme body .h1B .l2 { padding-left: 0; }
html.apple-theme body .heroB-row { display: flex; flex-direction: column; align-items: center; border: 0; margin-top: 2rem; padding: 0; gap: 2rem; }
html.apple-theme body .heroB-row .lead { max-width: 42rem; font-size: clamp(1.125rem,1.5vw,1.3125rem); color: var(--lab-muted); }
html.apple-theme body .heroB-row .actions { justify-content: center; }
html.apple-theme body .meta { justify-content: center; gap: .5rem 2rem; margin-top: 4.5rem; padding: 1.5rem 0; border-color: var(--lab-line); font-size: .75rem; }
html.apple-theme body .phero { padding-block: 2rem 5.5rem; border: 0; }
html.apple-theme body .crumb { margin-bottom: 3.5rem; }
html.apple-theme body .phero .h1P { max-width: 15em; }
html.apple-theme body .phero .lead { max-width: 39rem; color: var(--lab-muted); font-size: 1.25rem; }
html.apple-theme body .sec { padding-block: clamp(4rem,7.5vw,7rem); scroll-margin-top: 6rem; }
html.apple-theme body :is(.alt,.ext) { background: var(--lab-surface) !important; }
html.apple-theme body .h2 { font-size: clamp(2rem,3.4vw,3rem); font-weight: 550; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
html.apple-theme body .sec-head { margin-bottom: 2.75rem; align-items: center; }
html.apple-theme body :is(.areas,.posts3) { border: 0; gap: 1.25rem; }
html.apple-theme body .areas { grid-template-columns: repeat(2,minmax(0,1fr)); }
html.apple-theme body :is(.area,.p3,.point,.step,.ccard) {
  padding: clamp(1.5rem,3vw,2.5rem); border: 1px solid var(--lab-line) !important;
  border-radius: 1.75rem; background: var(--lab-surface) !important; box-shadow: var(--lab-shadow);
}
html.apple-theme body :is(.area:first-child,.area:last-child,.p3:first-child,.p3:last-child) { padding: clamp(1.5rem,3vw,2.5rem); }
html.apple-theme body .area h3 { font-size: 1.625rem; font-weight: 550; letter-spacing: -.025em; }
html.apple-theme body :is(.topic,.step,.point) h3 { font-size: 1.25rem; font-weight: 550; letter-spacing: -.02em; }
html.apple-theme body :is(.area .n,.step .num,.point .n) { font-size: 2rem; font-weight: 500; letter-spacing: -.04em; }
html.apple-theme body :is(.area ul,.area li,.topic,.topics,.facts,.facts div,.also,.note,.about,.ft-bottom) { border-color: var(--lab-line); }
html.apple-theme body .topics { border: 0; gap: 1.5rem; }
html.apple-theme body .topic { padding: 1.25rem 0; }
html.apple-theme body :is(.steps,.points) { gap: 1.25rem; }
html.apple-theme body .step h3 { margin-top: 1.5rem; }
html.apple-theme body .p3 h3 { font-size: 1.375rem; font-weight: 550; letter-spacing: -.025em; }
html.apple-theme body .p3 h3 a { color: var(--lab-ink); }
html.apple-theme body .p3img { border: 0; border-radius: 1rem; }
html.apple-theme body .ccard h3 { font-weight: 550; font-size: 1.75rem; letter-spacing: -.025em; }
html.apple-theme body .ccard { border-top: 3px solid var(--lab-blue) !important; }
html.apple-theme body :is(.also,.note) { border: 0; border-left: 2px solid #c9a961; padding: .75rem 1.5rem; }
html.apple-theme body .faq { border: 0; }
html.apple-theme body .faq details { border-bottom-color: var(--lab-line); }
html.apple-theme body .faq summary { padding-block: 1.5rem; font-size: 1.125rem; font-weight: 500; letter-spacing: -.015em; }
html.apple-theme body .faq .ans { padding-right: 2rem; }
html.apple-theme body .faq summary:hover { color: var(--lab-blue); }
html.apple-theme body .btn {
  padding: .9rem 1.5rem; min-height: 3.25rem; border-radius: 2rem;
  background: #004da1 !important; color: #fff !important; font-size: .9375rem; font-weight: 600;
  letter-spacing: 0; transition: background-color 160ms ease, box-shadow 160ms ease;
}
html.apple-theme body .btn:hover { background: #002b57 !important; color: #fff !important; box-shadow: 0 4px 16px rgb(0 43 87 / .14); }
html.apple-theme body :is(.btn,.hd-cta,.menu-btn,summary):active { opacity: .78; }
html.apple-theme body .tlink { color: var(--lab-blue); font-weight: 550; font-size: .9375rem; text-decoration: none; }
html.apple-theme body .tlink:hover { text-decoration: underline; text-underline-offset: .3em; }
html.apple-theme body .cta { background: #002b57 !important; color: #fff !important; scroll-margin-top: 6rem; }
html.apple-theme body .cta :is(.h2,.label) { color: #fff !important; }
html.apple-theme body .cta-side p { color: #dce7f5 !important; }
html.apple-theme body .cta .btn-light { background: #fff !important; color: #002b57 !important; }
html.apple-theme body .cta .btn-light:hover { background: #e8f0fa !important; }
html.apple-theme body .ft { padding-block: 4rem 2rem; }
html.apple-theme body .ft-col a { color: var(--lab-ink); }
html.apple-theme body .ft-col a:hover { color: var(--lab-blue); }
html.apple-theme body .slogan { font-size: 1.125rem; font-style: normal; font-weight: 500; letter-spacing: -.015em; }
html.apple-theme body :focus-visible { outline: 3px solid var(--lab-blue); outline-offset: 5px; }
html.apple-theme body .cta :focus-visible { outline-color: #fff; }
html.apple-theme body :is(a,button,summary,select) { touch-action: manipulation; }
html.apple-theme body .mnav { background: var(--lab-bg) !important; max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; }
html.apple-theme body .mnav li a { font-size: 1.25rem; font-weight: 500; }
@media (max-width: 1200px) {
  html.apple-theme body .hd-in { gap: 1rem; }
  html.apple-theme body .nav { gap: .8rem; }
  html.apple-theme body .nav a { font-size: .75rem; }
}
@media (max-width: 1120px) {
  html.apple-theme body .nav, html.apple-theme body .hd-cta { display: none; }
  html.apple-theme body .menu-btn { display: inline-flex; }
  html.apple-theme body .mnav:not([hidden]) { display: block; }
  html.apple-theme body .hd .theme-select { display: block; margin-left: auto; }
  html.apple-theme body .menu-btn { margin-left: 0; }
  html.apple-theme body :is(.steps,.points) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  html.apple-theme body .hd-in, html.apple-theme body .hd.is-scrolled .hd-in { height: 4.75rem; gap: .4rem; }
  html.apple-theme body .hd .brand-box, html.apple-theme body .hd.is-scrolled .brand-box { width: 8.5rem; height: 2.1rem; }
  html.apple-theme body .hd .brand-box img, html.apple-theme body .hd.is-scrolled .brand-box img { width: 12.2rem; height: 12.2rem; }
  html.apple-theme body .hd .theme-select { max-width: 6.1rem; font-size: .6875rem; padding-left: .4rem; }
  html.apple-theme body .menu-btn { font-size: .75rem; padding-left: .3rem; gap: .25rem; }
  html.apple-theme body .heroB { padding-top: 3.5rem; }
  html.apple-theme body :is(.h1B,.h1P) { font-size: clamp(2.25rem,9vw,3.5rem); letter-spacing: -.04em; }
  html.apple-theme body .heroB-row .actions { width: 100%; }
  html.apple-theme body .meta { margin-top: 3rem; }
  html.apple-theme body :is(.areas,.steps,.points,.posts3) { grid-template-columns: 1fr; }
  html.apple-theme body .step { display: block; }
  html.apple-theme body :is(.area,.p3,.point,.step,.ccard) { border-radius: 1.25rem; }
  html.apple-theme body .phero { padding-bottom: 3.5rem; }
  html.apple-theme body .crumb { margin-bottom: 2.5rem; }
  html.apple-theme body .mnav { max-height: calc(100dvh - 4.75rem); }
}
@media (prefers-reduced-motion: reduce) {
  html.apple-theme { scroll-behavior: auto !important; }
  html.apple-theme body *, html.apple-theme body *::before, html.apple-theme body *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  html.apple-theme body .hd { background: var(--lab-bg) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  html.apple-theme body .hd { background: var(--lab-bg) !important; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid currentColor; }
  html.apple-theme body :is(.area,.p3,.point,.step,.ccard) { border-color: var(--lab-ink) !important; }
}

/* Remaining institutional pages, articles and interactive components. */
html.apple-theme body .brand-box,
html.apple-theme body .brand-picture,
html.apple-theme body .brand-box img { background: transparent !important; }
html.apple-theme body .mnav[hidden] { display: none !important; }
html.apple-theme body .sitewrap { max-width: 80rem; padding-inline: clamp(1.25rem,4vw,4rem); }
html.apple-theme body :is(.h1Art) { font-size: clamp(2.25rem,4.6vw,4.25rem); font-weight:600; line-height:1.1; letter-spacing:-.04em; text-wrap:balance; }
html.apple-theme body .ahero { padding-block:2rem 4rem; border-color:var(--lab-line); }
html.apple-theme body .alead { max-width:42rem; color:var(--lab-muted); font-size:1.25rem; }
html.apple-theme body :is(.ameta,.ameta strong,.hint,.fnote,.bigcap,.ref) { color:var(--lab-muted); }
html.apple-theme body :is(.blk-h h2,.formcol h2,.feature h2) { font-weight:550; line-height:1.15; letter-spacing:-.03em; }
html.apple-theme body .blk { border-color:var(--lab-line); }
html.apple-theme body :is(.blk-h .n,.bignum) { color:var(--lab-blue); }
html.apple-theme body :is(.ticks li,.jump,.jump li,.jump a,.bio,.author,.toc ol,.toc li,.posts,.post,.rel) { border-color:var(--lab-line); }
html.apple-theme body :is(.jump a,.toc a) { color:var(--lab-ink); }
html.apple-theme body .jump a:hover,html.apple-theme body .toc a:hover { color:var(--lab-blue); }
html.apple-theme body .points.c3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
html.apple-theme body .feature { background:var(--lab-surface) !important; border:1px solid var(--lab-line); border-radius:1.75rem; box-shadow:var(--lab-shadow); }
html.apple-theme body .feature h2 a,html.apple-theme body .post h3 a,html.apple-theme body .rcard h3 a { color:var(--lab-ink); }
html.apple-theme body :is(.fimg,.cover img,.prose figure img) { border-radius:1.25rem; border-color:var(--lab-line); }
html.apple-theme body .post h3 { font-weight:550; letter-spacing:-.025em; }
html.apple-theme body .chip { background:var(--lab-surface); color:var(--lab-ink); border-color:var(--lab-line); font-weight:550; }
html.apple-theme body .chip.is-on { background:#004da1; color:#fff; border-color:#004da1; }
html.apple-theme body :is(.chip,.sbtn):active { opacity:.78; }
html.apple-theme body .toc { top:7rem; }
html.apple-theme body .prose { max-width:45rem; }
html.apple-theme body .prose h2 { font-weight:550; letter-spacing:-.025em; line-height:1.2; }
html.apple-theme body .prose p { font-size:1.125rem; line-height:1.8; }
html.apple-theme body .prose li { font-size:1.0625rem; line-height:1.75; }
html.apple-theme body .prose blockquote { border-color:var(--lab-line); }
html.apple-theme body .prose blockquote p { color:var(--lab-blue); font-family:inherit; font-weight:500; font-style:normal; }
html.apple-theme body .prose a { color:var(--lab-blue); }
html.apple-theme body .disclaimer { background:var(--lab-surface); border:1px solid var(--lab-line); border-radius:1rem; }
html.apple-theme body .rel { border:0; gap:1.25rem; }
html.apple-theme body .rcard,html.apple-theme body .rcard:first-child,html.apple-theme body .rcard:last-child { border:1px solid var(--lab-line); border-radius:1.25rem; background:var(--lab-surface); padding:1.5rem; }
html.apple-theme body .rcard h3 { font-weight:550; letter-spacing:-.025em; }
html.apple-theme body .sbtn { border:1px solid var(--lab-line); color:var(--lab-ink); border-radius:2rem; background:var(--lab-surface); }
html.apple-theme body .direct { padding:2rem; border-radius:1.75rem; background:#002b57 !important; color:#fff !important; }
html.apple-theme body .direct :is(h2,.label,.num) { color:#fff !important; }
html.apple-theme body .direct p { color:#dce7f5; }
html.apple-theme body .direct .btn-light { color:#002b57 !important; background:#fff !important; }
html.apple-theme body .direct :focus-visible { outline-color:#fff; }
html.apple-theme body .field :is(input,select,textarea) { background:var(--lab-surface) !important; color:var(--lab-ink) !important; border:1px solid var(--lab-line); border-radius:.875rem; font-family:inherit; }
html.apple-theme body .btn[disabled] { color:var(--lab-muted) !important; background:var(--lab-line) !important; box-shadow:none; }

/* Dividendos: maintain the simulator and original section sequence. */
html.apple-theme.dividendos { --tinta:var(--lab-ink); --papel:var(--lab-bg); --grafite:var(--lab-muted); --linha:var(--lab-line); --branco:var(--lab-surface); --lacre:var(--lab-blue); --verde:var(--lab-blue); }
html.apple-theme.dividendos body { line-height:1.7; }
html.apple-theme.dividendos body main > section { padding-block:clamp(3.5rem,6vw,5rem); }
html.apple-theme.dividendos body main .wrap,html.apple-theme.dividendos body footer .wrap { max-width:64rem; }
html.apple-theme.dividendos body .hero h1 { font-size:clamp(2.25rem,4.6vw,4rem); font-weight:600; letter-spacing:-.04em; line-height:1.1; text-wrap:balance; }
html.apple-theme.dividendos body h2 { font-size:clamp(1.75rem,3vw,2.5rem); font-weight:550; letter-spacing:-.03em; line-height:1.2; }
html.apple-theme.dividendos body .hero .lead { font-size:1.1875rem; max-width:44rem; }
html.apple-theme.dividendos body :is(.ref,.val,.rot,.valor-slider,.demo-cab,.demo-conclusao,.etapa::before,.data,.tag,.marca-crit,.nome) { font-family:inherit !important; }
html.apple-theme.dividendos body :is(.fato,.demo,.simu,.crit,.teses,.res-box) { background:var(--lab-surface) !important; color:var(--lab-ink) !important; border:1px solid var(--lab-line); border-radius:1.25rem; box-shadow:var(--lab-shadow); }
html.apple-theme.dividendos body :is(.demo-col,.demo-conclusao,.res-box.ano) { background:var(--lab-surface) !important; color:var(--lab-ink) !important; }
html.apple-theme.dividendos body .fatos { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
html.apple-theme.dividendos body .fato { padding:1.5rem; }
html.apple-theme.dividendos body .eyebrow { color:var(--lab-blue) !important; font-size:.75rem; font-weight:650; }
html.apple-theme.dividendos body .btn { border-color:transparent; }
html.apple-theme.dividendos body .btn-vazado { background:var(--lab-surface) !important; color:var(--lab-blue) !important; border-color:var(--lab-line); }
html.apple-theme.dividendos body .crit .marca-crit { background:#004da1; color:#fff; border-radius:.6rem; }
html.apple-theme.dividendos body .final { background:#002b57 !important; color:#fff !important; }
html.apple-theme.dividendos body .final :is(h2,.eyebrow) { color:#fff !important; }
html.apple-theme.dividendos body .final p { color:#dce7f5; }
html.apple-theme.dividendos body .final .btn-cheio { background:#fff !important; color:#002b57 !important; }
html.apple-theme.dividendos body .final .btn-vazado { background:transparent !important; color:#fff !important; border-color:#dce7f5; }
html.apple-theme.dividendos body .zap-float { background:#004da1; }
html.apple-theme.dividendos body .zap-float svg { fill:#fff; }
html.apple-theme.dividendos body input[type=range] { accent-color:var(--lab-blue); }
html.apple-theme.dividendos body details summary { min-height:3rem; font-weight:500; font-size:1.0625rem; }
@media(max-width:1120px) {
  html.apple-theme body .points.c3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:680px) {
  html.apple-theme body .points.c3 { grid-template-columns:1fr; }
  html.apple-theme.dividendos body .fatos { grid-template-columns:1fr; }
  html.apple-theme body .feature,html.apple-theme body .direct { border-radius:1.25rem; }
  html.apple-theme body .toc { position:static; }
  html.apple-theme.dividendos body .simu-res { grid-template-columns:1fr; }
}
