/* flairbird.com — folha de estilo principal */
@font-face { font-family: 'Red Hat Display'; src: url('../fonts/red-hat-display-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Serif'; src: url('../fonts/noto-serif-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Serif'; src: url('../fonts/noto-serif-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --ocean: #1565C0; --ocean-deep: #0D47A1; --ocean-ink: #0B2E59; --ocean-tint: #E2EEF9;
  --land: #66A06B; --land-deep: #2F6B38; --land-tint: #E4EFE3;
  --pin: #E53935; --pin-deep: #B71C1C; --pin-tint: #FDE9E8;
  --chart: #F1F6FA; --paper: #FFFFFF; --line: #D3DFEA; --line-strong: #B4C7D9;
  --ink: #12263F; --muted: #475E75;
  --c-maps: #1565C0; --c-cont: #2F6B38; --c-ctry: #B71C1C; --c-relief: #9A5B00; --c-travel: #00697A;
  --ui: 'Red Hat Display', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --wrap: 1200px; --read: 44rem;
  --r: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
body { margin: 0; background: var(--chart); color: var(--ink); font: 400 1.0625rem/1.7 var(--serif); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--ocean-deep); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--ocean-ink); }
:focus-visible { outline: 3px solid var(--ocean-ink); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 5px #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ocean-ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--r) var(--r); z-index: 100; font-family: var(--ui); font-weight: 700; }
.skip:focus { top: 0; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.ui { font-family: var(--ui); }

/* ---------- cabeçalho ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 800 1.35rem/1 var(--ui); letter-spacing: -.01em; color: var(--ocean-ink); text-decoration: none; padding: .35rem 0; }
.brand svg { width: 1.7rem; height: 1.7rem; flex: none; }
.brand .tld { color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; flex-wrap: wrap; font-family: var(--ui); }
.nav a, .nav summary { color: var(--ink); text-decoration: none; font-weight: 600; padding: .55rem .8rem; border-radius: var(--r); cursor: pointer; list-style: none; font-size: 1rem; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ''; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.nav a:hover, .nav summary:hover, .nav a[aria-current="page"] { background: var(--ocean-tint); color: var(--ocean-ink); }
.nav .cta { background: var(--ocean); color: #fff; padding-inline: 1.1rem; }
.nav .cta:hover, .nav .cta[aria-current="page"] { background: var(--ocean-deep); color: #fff; }
.nav details { position: relative; }
.nav details[open] > .menu { display: block; }
.menu { display: none; position: absolute; right: 0; top: calc(100% + .35rem); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .4rem; min-width: 17rem; z-index: 30; box-shadow: 0 10px 28px rgba(11, 46, 89, .14); }
.menu a { display: block; }
.nav-toggle { display: none; margin-left: auto; font: 700 1rem var(--ui); background: var(--paper); border: 1.5px solid var(--ocean); color: var(--ocean-deep); border-radius: var(--r); padding: .5rem .9rem; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; margin: 0 0 .75rem; flex-direction: column; align-items: stretch; }
  .nav[data-open="true"] { display: flex; }
  .nav a, .nav summary { padding: .8rem .9rem; }
  .menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 .8rem; }
}

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1rem/1.2 var(--ui); padding: .8rem 1.25rem; border-radius: var(--r); border: 2px solid var(--ocean); background: var(--ocean); color: #fff; text-decoration: none; cursor: pointer; min-height: 2.75rem; }
.btn:hover { background: var(--ocean-deep); border-color: var(--ocean-deep); color: #fff; }
.btn.ghost { background: var(--paper); color: var(--ocean-deep); }
.btn.ghost:hover { background: var(--ocean-tint); color: var(--ocean-ink); }
.btn.small { padding: .5rem .85rem; font-size: .92rem; min-height: 2.35rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- tipografia geral ---------- */
h1, h2, h3, h4 { font-family: var(--ui); color: var(--ocean-ink); line-height: 1.18; letter-spacing: -.012em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-weight: 800; font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 2.2em; }
h3 { font-weight: 700; font-size: 1.2rem; margin-top: 1.7em; }
p, ul, ol { margin: 0 0 1.15em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.kicker { font: 700 .95rem/1.2 var(--ui); color: var(--muted); margin: 0 0 .6rem; }
.kicker a { color: inherit; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section > .wrap > h2:first-child, .section h2.first { margin-top: 0; }
.section-head { max-width: 40rem; margin-bottom: 1.8rem; }
.section-head p { color: var(--muted); margin: 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); }

/* ---------- breadcrumbs ---------- */
.crumbs { font: 600 .92rem/1.4 var(--ui); color: var(--muted); padding: 1.2rem 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .5rem; }
.crumbs li + li::before { content: '/'; margin-right: .5rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- rodapé ---------- */
.site-footer { background: var(--ocean-ink); color: #D6E4F3; margin-top: 4rem; font-family: var(--ui); }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-grid .fh { font: 800 1rem var(--ui); margin: 0 0 .8rem; color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-grid p { margin: .6rem 0 0; max-width: 24rem; line-height: 1.55; }
.footer-brand { font: 800 1.35rem var(--ui); color: #fff; display: inline-flex; gap: .5rem; align-items: center; }
.footer-brand svg { width: 1.6rem; height: 1.6rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.18); padding: 1.1rem 0 1.6rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- página inicial ---------- */
.hero { padding: clamp(1.8rem, 4vw, 3rem) 0 0; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 1.5rem; }
.hero-head h1 { margin: 0; }
.hero-head .side { display: grid; gap: 1rem; justify-items: start; }
.hero-head .side p { margin: 0; color: var(--muted); font-size: 1.1rem; }
@media (max-width: 860px) { .hero-head { grid-template-columns: 1fr; } }
.privacy-note { font: 600 .92rem/1.5 var(--ui); color: var(--muted); margin: .8rem 0 0; }

.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.cat-list li { border-bottom: 1px solid var(--line-strong); }
.cat-list a { display: grid; grid-template-columns: .6rem minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 1.2rem; align-items: center; padding: 1.2rem .2rem; text-decoration: none; color: var(--ink); }
.cat-list a:hover { background: var(--paper); }
.cat-list .dot { width: .6rem; height: 2.4rem; border-radius: 3px; background: var(--dot, var(--ocean)); }
.cat-list .name { font: 800 1.35rem/1.2 var(--ui); color: var(--ocean-ink); }
.cat-list .blurb { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.cat-list .n { font: 700 .95rem var(--ui); color: var(--muted); white-space: nowrap; }
@media (max-width: 820px) { .cat-list a { grid-template-columns: .5rem 1fr; } .cat-list .blurb, .cat-list .n { grid-column: 2; } }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); height: 100%; }
.card:hover { border-color: var(--ocean); }
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: .08em; }
.card img { display: block; width: 100%; aspect-ratio: 1200 / 520; object-fit: cover; background: var(--ocean-tint); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-meta { font: 700 .88rem/1.3 var(--ui); color: var(--tone, var(--muted)); }
.card-title { font: 800 1.2rem/1.25 var(--ui); color: var(--ocean-ink); margin: 0; }
.card-text { font-size: .98rem; line-height: 1.55; color: var(--muted); margin: 0; }

.count-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
@media (max-width: 860px) { .count-block { grid-template-columns: 1fr; } }
.count-eq { font: 800 clamp(2rem, 4vw, 2.8rem)/1.1 var(--ui); color: var(--ocean-ink); margin: 0 0 1rem; }
.count-eq span { color: var(--muted); font-weight: 600; }
.count-table { width: 100%; border-collapse: collapse; font-family: var(--ui); }
.count-table caption { text-align: left; font-weight: 700; color: var(--muted); padding-bottom: .5rem; }
.count-table th, .count-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.count-table td:last-child, .count-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.count-table tfoot td, .count-table tfoot th { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ocean-ink); }

/* ---------- artigos e páginas de texto ---------- */
.page-head { padding: 1.2rem 0 0; }
.article-head { max-width: var(--read); margin-inline: auto; padding-top: .8rem; }
.article-head h1 { margin-bottom: .7rem; }
.byline { font: 600 .95rem/1.5 var(--ui); color: var(--muted); display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; margin: 0 0 1.4rem; }
.cover { margin: 0 auto 2rem; max-width: 62rem; }
.cover img { display: block; width: 100%; border-radius: 14px; aspect-ratio: 1200 / 520; background: var(--ocean-tint); }
.prose { max-width: var(--read); margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
.prose h2 { scroll-margin-top: 1rem; }
.prose h3 { scroll-margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ocean); }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2rem; border-left: 4px solid var(--land); color: var(--muted); }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin: 0 0 2rem; font-family: var(--ui); }
.toc strong { display: block; margin-bottom: .4rem; color: var(--ocean-ink); }
.toc ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .2rem; }
.toc a { color: var(--ink); text-decoration-color: var(--line-strong); }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.table-wrap table { border-collapse: collapse; width: 100%; font: 400 .98rem/1.5 var(--ui); min-width: 30rem; }
.table-wrap caption { text-align: left; font-weight: 700; padding: .8rem 1rem .4rem; color: var(--ocean-ink); caption-side: top; }
.table-wrap th, .table-wrap td { text-align: left; padding: .65rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--ocean-tint); color: var(--ocean-ink); font-weight: 700; border-top: 0; }
.table-wrap tbody tr:nth-child(even) td { background: #F8FBFD; }
.note { border-left: 5px solid var(--land); background: var(--land-tint); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.6em 0; }
.note.example { border-color: var(--ocean); background: var(--ocean-tint); }
.note .note-title { display: block; font: 800 1rem var(--ui); color: var(--ocean-ink); margin-bottom: .3rem; }
.note p:last-child { margin-bottom: 0; }
.checklist { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.6em 0; }
.checklist .note-title { display: block; font: 800 1rem var(--ui); color: var(--ocean-ink); margin-bottom: .6rem; }
.checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 2rem; margin: 0; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border: 2px solid var(--ocean); border-radius: 4px; background: #fff; }
.checklist li::after { content: ''; position: absolute; left: .4rem; top: .52em; width: .35rem; height: .65rem; border-right: 2.5px solid var(--land-deep); border-bottom: 2.5px solid var(--land-deep); transform: rotate(40deg); }
.mistakes { counter-reset: m; list-style: none; padding: 0; display: grid; gap: 1rem; }
.mistakes li { position: relative; padding: 1rem 1.2rem 1rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--pin); border-radius: 0 12px 12px 0; margin: 0; }
.mistakes strong { display: block; font: 800 1.05rem var(--ui); color: var(--ocean-ink); margin-bottom: .25rem; }
.mistakes p { margin: 0; }
.faq h3 { margin-top: 1.4em; font-size: 1.12rem; }
.faq p { margin-bottom: 0; }
.sources ol { padding-left: 1.3rem; display: grid; gap: .6rem; font-family: var(--ui); font-size: .98rem; line-height: 1.5; }
.sources .pub { color: var(--muted); }
.related { max-width: 62rem; margin: 3.5rem auto 0; }
.related h2 { margin-top: 0; }
.editor-cta { max-width: var(--read); margin: 2.4rem auto 0; background: var(--ocean-ink); color: #E7F0FA; border-radius: 16px; padding: 1.4rem 1.6rem; display: flex; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; font-family: var(--ui); }
.editor-cta p { margin: 0; font-weight: 600; max-width: 28rem; line-height: 1.45; }
.editor-cta .btn { background: #fff; color: var(--ocean-ink); border-color: #fff; }
.editor-cta .btn:hover { background: var(--ocean-tint); border-color: var(--ocean-tint); }

/* ---------- explorador ---------- */
.explorer-bar { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; padding: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.field { display: grid; gap: .35rem; font-family: var(--ui); }
.field label, .field .label { font-weight: 700; font-size: .95rem; color: var(--ocean-ink); }
.field input[type=search], .field input[type=text], .field input[type=email], .field textarea, .field select { font: 400 1rem/1.4 var(--ui); padding: .7rem .85rem; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: #fff; color: var(--ink); width: 100%; min-height: 2.75rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--ocean-ink); outline-offset: 1px; border-color: var(--ocean); }
.field .hint { font-size: .9rem; color: var(--muted); }
.field .err { color: var(--pin-deep); font-weight: 600; font-size: .92rem; min-height: 0; }
.field [aria-invalid="true"] { border-color: var(--pin); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: 700 .95rem var(--ui); padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ocean); }
.chip[aria-pressed="true"] { background: var(--ocean-ink); border-color: var(--ocean-ink); color: #fff; }
.result-count { font: 600 .95rem var(--ui); color: var(--muted); margin: 0 0 1rem; }
.empty { padding: 2rem; border: 2px dashed var(--line-strong); border-radius: 14px; text-align: center; font-family: var(--ui); color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- formulário de contato ---------- */
.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .9rem 1.1rem; border-radius: var(--r); font: 600 1rem/1.5 var(--ui); }
.alert.ok { background: var(--land-tint); border: 1.5px solid var(--land-deep); color: #1E4A26; }
.alert.bad { background: var(--pin-tint); border: 1.5px solid var(--pin); color: #7F1414; }

/* ---------- 404 ---------- */
.notfound { padding: 4rem 0; text-align: left; }
.notfound .big { font: 800 clamp(4rem, 12vw, 8rem)/1 var(--ui); color: var(--ocean); margin: 0; }

@media print {
  .site-header, .site-footer, .skip, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
