/* Mais Concursados · identidade derivada da logo: azul-cobalto + preto azulado */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #0b0d14;
  --muted: #586079;
  --line: #dce1ee;
  --accent: #092ca8;
  --accent-ink: #ffffff;
  --accent-soft: #e2e8fa;
  --deep: #0a1b6b;
  --good: #11794f;
  --good-soft: #dcf1e7;
  --warn: #a85a00;
  --warn-soft: #fbead2;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e1c; --surface: #111833; --ink: #e8ecf8; --muted: #98a2c0; --line: #232c4d;
    --accent: #6f8cff; --accent-ink: #070d24; --accent-soft: #18265a; --deep: #0a1b6b;
    --good: #46c593; --good-soft: #12352b; --warn: #f0b060; --warn-soft: #3a2a12;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo-img.lt { display: none; }
  :root:not([data-theme="light"]) .logo-img.dk { display: block; }
}
:root[data-theme="dark"] {
  --bg: #0a0e1c; --surface: #111833; --ink: #e8ecf8; --muted: #98a2c0; --line: #232c4d;
  --accent: #6f8cff; --accent-ink: #070d24; --accent-soft: #18265a; --deep: #0a1b6b;
  --good: #46c593; --good-soft: #12352b; --warn: #f0b060; --warn-soft: #3a2a12;
  color-scheme: dark;
}
:root[data-theme="dark"] .logo-img.lt { display: none; }
:root[data-theme="dark"] .logo-img.dk { display: block; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; padding-inline: 16px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin-inline: auto; }
.narrow { max-width: 720px; margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* cabeçalho */
header.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); margin-inline: -16px; padding-inline: 16px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 10px; flex-wrap: wrap; }
.logo { display: block; line-height: 0; text-decoration: none; }
.logo-img { height: 44px; width: auto; max-width: 100%; }
.logo-img.dk { display: none; }
nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
nav a.cta { background: var(--accent); color: var(--accent-ink); }
nav a.cta:hover { filter: brightness(1.1); color: var(--accent-ink); }

main { padding-block: 40px 56px; }
.btn { display: inline-block; border: 0; cursor: pointer; padding: 12px 22px; border-radius: 10px; font-weight: 600; background: var(--accent); color: var(--accent-ink); text-decoration: none; text-align: center; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.btn.light { background: #fff; color: #0a1b6b; }
.btn[hidden], [data-config-show][hidden] { display: none !important; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.hero h1, .page-head h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 54ch; }
.cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.radar { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.radar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.radar h2 { font-size: 1.25rem; }
.radar ul { list-style: none; margin: 0; padding: 0; }
.radar li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.radar li:first-child { border-top: 0; }
.radar .org { font-weight: 600; }
.radar .meta { color: var(--muted); font-size: 14px; }
.days { font-family: var(--font-mono); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.days small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.note { margin-top: 12px; font-size: 13px; color: var(--muted); }

.pill { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.pill.aberto { background: var(--good-soft); color: var(--good); }
.pill.previsto { background: var(--accent-soft); color: var(--accent); }
.pill.encerrando { background: var(--warn-soft); color: var(--warn); }
.pill.avalidar { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

/* seções */
.section { margin-top: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.link { font-weight: 600; }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.area { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.area:hover { border-color: var(--accent); }
.area strong { font-family: var(--font-display); font-size: 1.1rem; }
.area span { color: var(--muted); font-size: 14px; }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.post:hover { border-color: var(--accent); }
.post h3 { font-size: 1.25rem; }
.post p { color: var(--muted); font-size: 15px; }
.post .foot { margin-top: auto; padding-top: 8px; }
.post.feature { grid-column: 1 / -1; background: var(--deep); color: #f0f3ff; border-color: var(--deep); }
.post.feature p, .post.feature .mono { color: #b9c6f5; }
.post.feature h3 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); max-width: 24ch; }
.tag { color: var(--accent); }
.post.feature .tag { color: #9db2ff; }

/* faixa mentoria */
.band { background: var(--deep); color: #eef1ff; border-radius: 18px; padding: clamp(24px, 5vw, 48px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.band p { margin-top: 12px; color: #c4cff7; max-width: 52ch; }
.band .mono { color: #9db2ff; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.band li { padding-left: 22px; position: relative; color: #dfe6ff; }
.band li::before { content: "+"; position: absolute; left: 0; color: #9db2ff; font-weight: 700; }

/* captura */
.capture { margin-top: 72px; background: var(--accent); color: var(--accent-ink); border-radius: 18px; padding: clamp(24px, 5vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.capture h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.capture p.sub { margin-top: 12px; opacity: 0.92; max-width: 44ch; }
form.lead { display: grid; gap: 12px; align-content: start; min-width: 0; }
form.lead label { font-size: 13px; font-weight: 600; display: grid; gap: 6px; }
form.lead input[type="email"], form.lead input[type="tel"], form.lead input[type="text"], form.lead select { background: #fff; color: #0b0d14; border: 0; border-radius: 10px; padding: 12px 14px; width: 100%; }
form.lead .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; }
form.lead .consent input { margin-top: 4px; flex: none; }
form.lead .consent a { color: inherit; }
form.lead button[type="submit"] { background: #070d24; color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 600; cursor: pointer; }
form.lead button[type="submit"]:hover { filter: brightness(1.3); }
form.lead .feedback { font-size: 14px; min-height: 1.5em; }
.capture .wpp { margin-top: 20px; }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 32px); }
.card-form form.lead { color: var(--ink); }
.card-form form.lead label { color: var(--ink); }
.card-form form.lead input[type="email"], .card-form form.lead input[type="tel"], .card-form form.lead input[type="text"] { background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.card-form form.lead button[type="submit"] { background: var(--accent); color: var(--accent-ink); }

/* editais */
.page-head p { color: var(--muted); margin-top: 12px; max-width: 60ch; }
.banner { margin-top: 20px; padding: 12px 16px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { flex: 1 1 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.table-wrap { margin-top: 24px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th { text-align: left; padding: 12px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
td .org { font-weight: 600; }
td .cargo, td .obs { color: var(--muted); font-size: 14px; }
td .src { font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }

/* artigo */
.article-head .mono { display: block; margin-bottom: 14px; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
.article-head .byline { margin-top: 18px; color: var(--muted); font-size: 15px; }
.prose { margin-top: 32px; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.5em; }
.prose blockquote { margin-left: 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.prose .tbl { overflow-x: auto; }
.prose table { min-width: 520px; background: var(--surface); border: 1px solid var(--line); }
.callout { margin-top: 40px; background: var(--deep); color: #eef1ff; border-radius: 16px; padding: 24px; display: grid; gap: 12px; justify-items: start; }
.callout h3 { font-size: 1.4rem; }
.callout p { color: #c4cff7; }
.author { margin-top: 40px; display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.portrait { margin: 28px 0 0; max-width: 360px; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); aspect-ratio: 4 / 5; object-fit: cover; }
.author p { font-size: 15px; color: var(--muted); }
.author strong { color: var(--ink); }

/* mentorias */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feat h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; align-items: start; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 15px; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
details.faq p { padding-bottom: 16px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.facts { display: grid; gap: 8px; margin-top: 20px; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fact span:first-child { color: var(--muted); }
.fact span:last-child { font-weight: 600; text-align: right; }

footer { border-top: 1px solid var(--line); padding-block: 36px 44px; margin-inline: -16px; padding-inline: 16px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; color: var(--muted); font-size: 14px; }
footer h4 { font-size: 0.95rem; color: var(--ink); margin-bottom: 8px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
footer .legal { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 820px) {
  .hero, .capture, .band, .two { grid-template-columns: 1fr; }
  .hero { gap: 32px; }
  .section { margin-top: 48px; }
  footer .wrap { grid-template-columns: 1fr; }
  nav a { padding: 7px 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .area, .post, .chip, .btn { transition: border-color .15s, filter .15s, background .15s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
