﻿/* latin-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/7cH3v4okm5zmbtYtMeA0FKq0Jjg2drF0feCzhp_rpQ.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;
}
/* latin */
@font-face {
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/7cH3v4okm5zmbtYtMeA0FKq0Jjg2drF0feC9hp8.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;
}
/* latin-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300;
  font-display: optional;
  src: url(../fonts/7cHmv4okm5zmbtYmK-4E4Q.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;
}
/* latin */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300;
  font-display: optional;
  src: url(../fonts/7cHmv4okm5zmbtYoK-4.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;
}
/* latin-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/7cHmv4okm5zmbtYmK-4E4Q.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;
}
/* latin */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/7cHmv4okm5zmbtYoK-4.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;
}
/* latin-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/7cHmv4okm5zmbtYmK-4E4Q.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;
}
/* latin */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/7cHmv4okm5zmbtYoK-4.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;
}
/* latin-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../fonts/7cHmv4okm5zmbtYmK-4E4Q.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;
}
/* latin */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../fonts/7cHmv4okm5zmbtYoK-4.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;
}


/* ═══════════════════════════════════════════
   Explicações de Estatística — site.css
   Paleta: verde-esmeralda + azul apoio
   ═══════════════════════════════════════════ */
:root {
  --primary:          #0F766E;
  --secondary:        #0a6560;
  --secondary-hover:  #085550;

  --text:             #334155;
  --text-light:       #4a5568;

  --border:           #CBD5E1;
  --background:       #FFFFFF;
  --background-alt:   #F8FAFC;
  --background-accent:#F0FDFA;

  --success:          #16A34A;
  --warning:          #D97706;
  --danger:           #DC2626;
  --info:             #2563EB;

  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Exo 2', system-ui, 'Segoe UI', Arial, sans-serif;
  font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--background-alt);
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: #2563EB; text-decoration: underline; }
a:hover { color: #1D4ED8; text-decoration: underline; }

/* ── Header + Nav integrado ── */
header {
  background: #FFFFFF;
  color: var(--text);
  padding: 0 1.5rem;
  display: flex; align-items: center; gap: 0;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  min-height: 62px;
  overflow: visible;
  transition: box-shadow .2s;
}
header.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
header > a { display: flex; align-items: center; flex-shrink: 0; padding-right: 1.3rem; text-decoration: none; }
header img { height: 92px; display: block; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.12)); }
header > div { display: flex; align-items: center; gap: .5rem; padding-left: .8rem; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: .4rem; margin-left: .5rem; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-marcar {
  background: var(--secondary); color: #fff !important;
  padding: .4rem .9rem; border-radius: var(--radius);
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  transition: background .15s; text-decoration: none !important;
}
.btn-marcar:hover { background: var(--secondary-hover) !important; text-decoration: none !important; }

/* ── Nav no header ── */
.layout { display: block; }
nav.topnav {
  flex: 1; background: transparent; position: static;
  box-shadow: none;
  /* overflow: visible é essencial — overflow:auto cortaria os dropdowns */
  overflow: visible;
}
nav.topnav > ul {
  list-style: none; display: flex; flex-wrap: nowrap;
  margin: 0; padding: 0; height: 100%;
  /* Não usar overflow-x:auto aqui — cortaria os dropdowns verticalmente.
     Os itens de menu são suficientemente poucos para caber no header. */
}
nav.topnav > ul > li { position: relative; display: flex; align-items: stretch; }
nav.topnav > ul > li > a {
  display: flex; align-items: center; padding: 0 .75rem;
  color: var(--text); font-size: .85rem; font-weight: 500;
  white-space: nowrap; text-decoration: none;
  border-bottom: 2px solid transparent;
  height: 62px;
  transition: color .15s, border-color .15s;
}
nav.topnav > ul > li > a:hover,
nav.topnav > ul > li > a.active {
  color: var(--primary); border-bottom-color: var(--primary);
}
nav.topnav > ul > li.has-sub > a::after {
  content: " ▾"; font-size: .68em; opacity: .55; margin-left: .15em;
}
/* Dropdown */
nav.topnav > ul > li > ul.dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #FFFFFF; min-width: 210px;
  list-style: none; padding: .4rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
}
nav.topnav > ul > li:hover > ul.dropdown { display: block; }
nav.topnav > ul > li > ul.dropdown li a {
  display: block; padding: .45rem 1rem;
  color: var(--text); font-size: .83rem;
  text-decoration: none; white-space: nowrap;
  transition: background .1s, color .1s;
}
nav.topnav > ul > li > ul.dropdown li a:hover { background: var(--background-alt); color: var(--primary); }
nav.topnav > ul > li > ul.dropdown li a.active { color: var(--primary); font-weight: 600; background: var(--background-alt); }

/* ── Main ── */
main {
  max-width: 1200px; margin: 0 auto;
  padding: 2.5rem 40px;
  background: transparent;
}
main h1 {
  font-size: 1.75rem; color: var(--primary);
  margin-bottom: 1rem; font-weight: 700;
  border-bottom: 2px solid var(--border);
  padding-bottom: .5rem;
}
.breadcrumb {
  font-size: .9rem;
  color: var(--text-light);
  margin: 0 0 .9rem;
}
.breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #94a3b8; margin: 0 .35rem; }
main h2 { font-size: 1.3rem; color: var(--text); margin: 1.6rem 0 .5rem; font-weight: 600; }
main h3 { font-size: 1.05rem; color: var(--text); margin: 1.2rem 0 .35rem; font-weight: 600; }
main p  { margin-bottom: .9rem; color: var(--text); }
main ul, main ol { margin: .5rem 0 1rem 1.6rem; }
main li { margin-bottom: .3rem; }
main img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1rem 0;
           border: 1px solid var(--border); }
main blockquote {
  border-left: 4px solid var(--secondary);
  padding: .6rem 1.1rem; background: var(--background-alt);
  margin: 1rem 0; color: var(--text-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
code {
  background: var(--background-alt); color: var(--primary);
  padding: .12em .45em; border-radius: 3px; font-size: .9em;
  border: 1px solid var(--border);
}
pre {
  background: var(--primary); color: #e2e8f0;
  padding: 1.1rem; border-radius: var(--radius);
  overflow-x: auto; margin: 1rem 0;
}
pre code { background: none; border: none; padding: 0; color: inherit; font-size: .88em; }
.math { font-family: 'Courier New', monospace; }

/* ── Site search ── */
.site-search { position: relative; flex-shrink: 0; display: flex; align-items: center; gap: .3rem; }
.search-toggle {
  background: none; border: none; cursor: pointer; padding: .35rem;
  color: var(--text-light); display: flex; align-items: center;
  border-radius: var(--radius); transition: color .15s, background .15s;
}
.search-toggle:hover { color: var(--primary); background: var(--background-alt); }
#site-search-input {
  width: 150px; padding: .32rem .7rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background-alt); color: var(--text);
  font-size: .84rem; font-family: inherit;
  transition: width .2s, border-color .15s;
  outline: none;
}
#site-search-input::placeholder { color: var(--text-light); }
#site-search-input:focus {
  width: 200px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}
#site-search-results {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  width: 320px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.15);
  list-style: none; padding: .3rem 0; z-index: 10000; max-height: 400px; overflow-y: auto;
}
#site-search-results li a {
  display: flex; flex-direction: column; padding: .55rem .9rem;
  text-decoration: none; color: var(--text);
  transition: background .1s;
}
#site-search-results li a:hover { background: var(--background-alt); }
#site-search-results li a strong { font-size: .88rem; color: var(--primary); }
#site-search-results li a span { font-size: .78rem; color: var(--text-light); margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#site-search-results li.ss-empty { padding: .6rem .9rem; font-size: .84rem; color: var(--text-light); }
#site-search-results mark { background: #fef08a; color: inherit; border-radius: 2px; }

/* ── Exemplos R ── */
.r-inline {
  font-family: "Courier New", Courier, monospace;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #312e81;
  padding: .08rem .4rem;
  border-radius: 4px;
  font-size: .9em;
}
.r-example {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-left: 4px solid #22c55e;
  border-radius: var(--radius);
  padding: .95rem 1rem;
  font-family: "Courier New", Courier, monospace;
  font-size: .86rem;
  line-height: 1.45;
  overflow-x: auto;
  margin: .8rem 0 1rem;
}
.r-example .comment { color: #94a3b8; }

/* ── Cards ── */
.card {
  background: var(--background); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
}
.card h2, .card h3 { color: var(--primary); margin-top: 0; }
.card a { color: var(--primary); font-weight: 600; text-decoration: none; }
.card a:hover { color: var(--secondary); text-decoration: underline; }

/* ── Tabelas ── */
.table-responsive { overflow-x: auto; margin: 1rem 0; }
table.data-table {
  border-collapse: collapse; width: 100%;
  font-size: .86rem; background: var(--background);
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
table.data-table th {
  background: var(--primary); color: #fff;
  padding: .45rem .7rem; text-align: center; font-weight: 600;
  font-size: .82rem;
}
table.data-table td {
  padding: .35rem .6rem; border: 1px solid var(--border);
  text-align: center;
}
table.data-table tr:nth-child(even) td { background: var(--background-alt); }
table.data-table tr:hover td { background: #dbeafe; }
table.data-table td:first-child { font-weight: 600; background: var(--background-alt) !important; }

/* ── Footer ── */
footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  padding: 2.5rem 40px 1.5rem;
  font-size: .84rem;
  margin-top: auto;
}
footer a { color: var(--primary); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer strong { color: var(--text); }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-col h3 { font-size: .9rem; font-weight: 700; color: var(--text); margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col p, .footer-col li { margin: 0 0 .4rem; line-height: 1.5; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: .79rem; color: var(--text-light); text-align: center; }

/* ── Navegação Anterior / Próximo ── */
.series-nav {
  margin-top: 2.5rem; padding: 1rem 1.2rem;
  background: var(--background-alt); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.series-label {
  display: block; font-size: .78rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem;
}
.series-btns {
  display: flex; gap: .7rem; flex-wrap: wrap;
}
.btn-prev, .btn-next {
  display: inline-block; padding: .45rem 1rem;
  border: 1px solid var(--primary); border-radius: var(--radius);
  color: var(--primary) !important; font-size: .88rem; font-weight: 600;
  text-decoration: none !important; transition: all .15s;
}
.btn-prev:hover, .btn-next:hover {
  background: var(--primary); color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  header { padding: 0 1rem; min-height: 56px; }
  header img { height: 52px; }
  .hamburger { display: flex; }
  nav.topnav {
    display: none; order: 3; width: 100%;
    position: absolute; top: 56px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 200;
  }
  nav.topnav.open { display: block; }
  nav.topnav > ul { flex-direction: column; flex-wrap: wrap; height: auto; overflow-x: visible; }
  nav.topnav > ul > li { border-bottom: 1px solid var(--border); }
  nav.topnav > ul > li > a { height: auto; padding: .75rem 1rem; font-size: .9rem; border-bottom: none; }
  nav.topnav > ul > li > ul.dropdown {
    position: static; box-shadow: none; border-top: none;
    border-left: 3px solid var(--primary); margin-left: 1rem;
    display: none;
  }
  nav.topnav > ul > li:hover > ul.dropdown { display: block; }
  main { padding: 1.5rem 20px; }
  .btn-marcar { font-size: .82rem; padding: .4rem .8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  footer { padding: 1.5rem 20px 1rem; }
}
