/* ==========================================================
   WhoCallz — layout demo
   Tokens, base, componentes e páginas
   ========================================================== */

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #121c2b;
  --muted: #5a6b80;
  --border: #dde5ef;

  --brand: #0b63d6;
  --brand-600: #094fad;
  --brand-50: #e8f1fd;
  --accent: #0e9f9a;

  --danger: #d62839;
  --danger-50: #fdecee;
  --warn: #c77700;
  --warn-50: #fff3df;
  --safe: #178a4c;
  --safe-50: #e5f6ed;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(18, 28, 43, .05), 0 6px 20px rgba(18, 28, 43, .06);
  --shadow-lg: 0 10px 40px rgba(18, 28, 43, .14);
  --maxw: 1160px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.section { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: #b9c6d8; background: var(--surface-2); }
.btn-danger-ghost { background: var(--surface); color: var(--danger); border-color: #f0c2c7; }
.btn-danger-ghost:hover { background: var(--danger-50); }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 20px; height: 20px; }
.logo small { color: var(--muted); font-weight: 600; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 14px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.locale-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--text); }
.locale-btn:hover { border-color: #b9c6d8; background: var(--surface-2); }
.locale-btn svg { width: 16px; height: 16px; color: var(--muted); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 760px) {
  .nav-toggle { display: block; margin-left: 0; }
  .locale-btn { margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); padding: 10px var(--gutter) 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
}

/* ---------- Hero + pesquisa ---------- */
.hero { background: radial-gradient(1200px 400px at 70% -10%, #d7e8ff 0%, transparent 60%), linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 56px 0 36px; text-align: center; }
.hero h1 { max-width: 780px; margin: 0 auto 12px; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; }
.hero-stats { display: flex; justify-content: center; gap: 28px; margin-top: 26px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero-stats strong { color: var(--text); font-size: 1.15rem; display: block; }

.search { max-width: 720px; margin: 0 auto; position: relative; text-align: left; }
.search-box { display: flex; background: var(--surface); border: 2px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow); }
.cs { position: relative; flex: none; }
.cs-btn { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: none; border: 0; border-right: 1px solid var(--border); cursor: pointer; font: inherit; font-weight: 700; color: var(--text); border-radius: 14px 0 0 14px; }
.cs-btn:hover { background: var(--surface-2); }
.cs-btn .caret { width: 14px; height: 14px; color: var(--muted); }
.flag { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.12); background: var(--surface-2); flex: none; }
.cs-pop { display: none; position: absolute; top: calc(100% + 8px); left: 0; width: 300px; max-width: 86vw; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 30; overflow: hidden; }
.cs-pop.open { display: block; }
.cs-pop input { width: 100%; border: 0; border-bottom: 1px solid var(--border); padding: 12px 14px; font: inherit; outline: none; }
.cs-list { list-style: none; margin: 0; padding: 4px; max-height: 260px; overflow: auto; }
.cs-list li button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: none; border: 0; border-radius: 8px; cursor: pointer; font: inherit; text-align: left; color: var(--text); }
.cs-list li button:hover, .cs-list li button[aria-selected="true"] { background: var(--brand-50); }
.cs-list .dial { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.search-input { flex: 1; min-width: 0; border: 0; background: none; padding: 18px 16px; font: inherit; font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; outline: none; color: var(--text); font-variant-numeric: tabular-nums; }
.search-input::placeholder { font-weight: 500; color: #9aa8ba; letter-spacing: 0; }
.search-go { margin: 6px; padding: 0 22px; border-radius: 11px; }
.search-hint { color: var(--muted); font-size: .85rem; margin: 10px 4px 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.search-hint .err { color: var(--danger); font-weight: 600; }
.search-compact .search-input { padding: 13px 14px; font-size: 1.02rem; }

/* A pesquisa adapta-se à largura do próprio contentor (hero, coluna lateral, mobile) */
.search { container-type: inline-size; }
@container (max-width: 480px) {
  .search-box { flex-wrap: wrap; }
  .cs { width: 100%; }
  .cs-btn { width: 100%; padding: 13px 14px; border-right: 0; border-bottom: 1px solid var(--border); border-radius: 14px 14px 0 0; }
  .search-input { flex: 1 1 100%; width: auto; min-width: 0; }
  .search-go { flex: 1 1 100%; margin: 0 6px 6px; padding: 11px 16px; }
  .search-hint { flex-direction: column; gap: 4px; }
}

/* ---------- Cards / layout ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.stack { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.layout > * { min-width: 0; }
@media (max-width: 960px) { .layout, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-safe { background: var(--safe-50); color: var(--safe); }
.badge-neutral { background: var(--surface-2); color: var(--muted); }
.badge-neutral::before { display: none; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 600; }

/* ---------- Tabs / chips ---------- */
.tabs { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.card-head { flex-wrap: wrap; }
.tabs button { white-space: nowrap; border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: inherit; font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: .88rem; font-weight: 600; color: var(--text); cursor: pointer; }
.chip:hover { border-color: #b9c6d8; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Lista de números ---------- */
.num-list { list-style: none; margin: 0; padding: 0; }
.num-item { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--border); }
.num-item:last-child { border-bottom: 0; }
.num-item:hover { background: #fafcfe; }
.num-rank { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: .82rem; display: grid; place-items: center; flex: none; }
.num-item:nth-child(-n+3) .num-rank { background: var(--brand-50); color: var(--brand); }
.num-main { flex: 1; min-width: 0; }
.num-main a.num { font-weight: 800; font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }
.num-main a.num:hover { color: var(--brand); text-decoration: none; }
.num-sub { color: var(--muted); font-size: .83rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.num-side { text-align: right; flex: none; display: grid; gap: 4px; justify-items: end; }
.num-side .count { font-size: .8rem; color: var(--muted); }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--border); text-align: center; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 11px 16px; background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fafcfe; }
.tbl .num { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.r, .tbl th.r { text-align: right; }

/* ---------- Cartões de indicativos / categorias ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat { display: block; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.cat .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.cat .ico svg { width: 22px; height: 22px; }
.cat strong { display: block; }
.cat span { color: var(--muted); font-size: .86rem; }
.ico-danger { background: var(--danger-50); color: var(--danger); }
.ico-warn { background: var(--warn-50); color: var(--warn); }
.ico-safe { background: var(--safe-50); color: var(--safe); }
.ico-brand { background: var(--brand-50); color: var(--brand); }
@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.country { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .92rem; }
.country:hover { border-color: var(--brand); text-decoration: none; }
.country .dial { margin-left: auto; color: var(--muted); font-weight: 500; }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 22px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Cartões de artigo ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.acard { display: flex; flex-direction: column; overflow: hidden; color: var(--text); transition: transform .15s, box-shadow .15s; }
.acard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.acard .thumb { aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.thumb-1 { background: linear-gradient(135deg, #d62839, #ff7a59); }
.thumb-2 { background: linear-gradient(135deg, #0b63d6, #0e9f9a); }
.thumb-3 { background: linear-gradient(135deg, #7a3ff0, #0b63d6); }
.thumb-4 { background: linear-gradient(135deg, #c77700, #f2b53a); }
.thumb-5 { background: linear-gradient(135deg, #178a4c, #0e9f9a); }
.thumb-6 { background: linear-gradient(135deg, #1b2a41, #3b5b8a); }
.acard .body { padding: 16px 18px 20px; display: grid; gap: 8px; flex: 1; align-content: start; }
.acard h3 { margin: 0; font-size: 1.08rem; }
.acard p { margin: 0; color: var(--muted); font-size: .92rem; }
.acard .meta { color: var(--muted); font-size: .8rem; }
.article-featured { display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 20px; }
.article-featured .thumb { aspect-ratio: auto; min-height: 240px; font-size: 3.4rem; }
@media (max-width: 960px) { .article-grid { grid-template-columns: repeat(2, 1fr); } .article-featured { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- Detalhe do número ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); padding: 18px 0 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span.sep { opacity: .5; }

.num-hero { padding: 26px; display: grid; gap: 20px; }
.num-hero-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: start; }
.num-big { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 0; line-height: 1.1; }
.num-big small { color: var(--muted); font-weight: 600; font-size: .55em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; color: var(--muted); font-size: .92rem; }
.meta-row b { color: var(--text); }
.meta-row .item { display: inline-flex; align-items: center; gap: 7px; }

.verdict { display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 12px; border: 1px solid; }
.verdict .vicon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.verdict .vicon svg { width: 28px; height: 28px; }
.verdict h2 { margin: 0 0 2px; font-size: 1.3rem; }
.verdict p { margin: 0; font-size: .95rem; }
.verdict.danger { background: var(--danger-50); border-color: #f4c4c9; } .verdict.danger .vicon { background: var(--danger); } .verdict.danger h2 { color: var(--danger); }
.verdict.warn { background: var(--warn-50); border-color: #f0d6a6; } .verdict.warn .vicon { background: var(--warn); } .verdict.warn h2 { color: var(--warn); }
.verdict.safe { background: var(--safe-50); border-color: #b9e4cb; } .verdict.safe .vicon { background: var(--safe); } .verdict.safe h2 { color: var(--safe); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 14px 16px; background: var(--surface-2); border-radius: 12px; }
.stat strong { display: block; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } .verdict { flex-direction: column; text-align: center; } }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 48px; gap: 12px; align-items: center; font-size: .9rem; }
.bar-row .track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 999px; }
.bar-row .pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fill-danger { background: var(--danger); } .fill-warn { background: var(--warn); } .fill-safe { background: var(--safe); } .fill-brand { background: var(--brand); }

.comment { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .9rem; }
.comment-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 4px; }
.comment-head strong { font-size: .95rem; }
.comment-head time { color: var(--muted); font-size: .82rem; }
.comment p { margin: 6px 0 10px; }
.comment-actions { display: flex; gap: 14px; font-size: .84rem; }
.comment-actions button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.comment-actions button:hover { color: var(--brand); }
.comment-actions button.rep:hover { color: var(--danger); }
.comment-actions svg { width: 15px; height: 15px; }
.comment.new { animation: flash 2.2s ease; }
@keyframes flash { from { background: var(--brand-50); } to { background: transparent; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--border); background: #fbfdff; border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .select, .textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--text); }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); border-color: var(--brand); }
.textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 8px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 700; font-size: .92rem; transition: border-color .15s, background .15s; }
.rate label small { font-weight: 500; color: var(--muted); font-size: .76rem; }
.rate .dot { width: 14px; height: 14px; border-radius: 50%; }
.rate .d-safe { background: var(--safe); } .rate .d-warn { background: var(--warn); } .rate .d-danger { background: var(--danger); }
.rate input:checked + label.l-safe { border-color: var(--safe); background: var(--safe-50); }
.rate input:checked + label.l-warn { border-color: var(--warn); background: var(--warn-50); }
.rate input:checked + label.l-danger { border-color: var(--danger); background: var(--danger-50); }
.rate input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: 3px; }
.captcha { border: 1px dashed #b9c6d8; border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; background: var(--surface-2); }
.captcha .box { width: 22px; height: 22px; border: 2px solid #9aa8ba; border-radius: 5px; background: #fff; flex: none; }

/* ---------- Modal / toast ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--text); }
dialog::backdrop { background: rgba(10, 20, 35, .5); backdrop-filter: blur(2px); }
.dlg-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.dlg-head h3 { margin: 0; }
.dlg-body { padding: 20px 22px; }
.dlg-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: #fbfdff; border-radius: 0 0 16px 16px; }
.x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 2px 8px; border-radius: 8px; }
.x:hover { background: var(--surface-2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: #121c2b; color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Publicidade (placeholder) ---------- */
.ad { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f1f5fa, #f1f5fa 10px, #e9eff7 10px, #e9eff7 20px); border: 1px dashed #b9c6d8; border-radius: var(--radius); color: #7d8da1; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.ad-side { min-height: 250px; }
.ad-banner { min-height: 96px; }

/* ---------- Paginação ---------- */
.pager { display: flex; gap: 6px; justify-content: center; padding: 18px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; padding: 0 10px; }
.pager a:hover { border-color: var(--brand); text-decoration: none; }
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Artigo / texto longo ---------- */
.page-head { padding: 34px 0 10px; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 720px; font-size: 1.05rem; }
.prose { font-size: 1.04rem; line-height: 1.75; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 10px 10px 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.toc { padding: 18px 20px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; font-size: .93rem; display: grid; gap: 6px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--brand); }
.callout { padding: 16px 18px; border-radius: 12px; background: var(--warn-50); border: 1px solid #f0d6a6; margin: 1.4em 0; }
.callout.info { background: var(--brand-50); border-color: #bcd5f6; }
.legal-meta { padding: 14px 18px; background: var(--warn-50); border: 1px solid #f0d6a6; border-radius: 12px; font-size: .9rem; margin-bottom: 24px; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.legal-nav { position: sticky; top: 84px; padding: 16px; }
.legal-nav a { display: block; padding: 7px 10px; color: var(--text); border-radius: 8px; font-size: .92rem; }
.legal-nav a:hover { background: var(--surface-2); text-decoration: none; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: #0f1a2b; color: #b8c4d6; margin-top: 56px; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: #b8c4d6; display: block; padding: 4px 0; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer p { font-size: .92rem; }
.footer-bottom { border-top: 1px solid #243249; margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .83rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.demo-ribbon { background: #fff8e1; color: #7a5a00; text-align: center; font-size: .78rem; padding: 5px 10px; border-bottom: 1px solid #f1e2a8; }

/* ==========================================================
   Extras da aplicação
   ========================================================== */
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: .93rem; margin-bottom: 16px; border: 1px solid; }
.alert-ok { background: var(--safe-50); border-color: #b9e4cb; color: #0f6a38; }
.alert-err { background: var(--danger-50); border-color: #f4c4c9; color: var(--danger); }
.alert-info { background: var(--brand-50); border-color: #bcd5f6; color: #0a3f86; }
a.chip { text-decoration: none; display: inline-block; }
a.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.js-vote.done { color: var(--brand); cursor: default; }
.comment-actions a { color: var(--muted); }
.card-foot a { font-weight: 600; }
.risk-none { color: var(--muted); }
.thumb-lg { min-height: 240px; }
.num-hero .num-big a { color: inherit; }
.rank-list { counter-reset: r; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose img { border-radius: 12px; }
.cf-turnstile { margin: 4px 0; }
.search-hint .err { color: var(--danger); font-weight: 600; }
.pager a.is-disabled { pointer-events: none; opacity: .4; }
.num-sub a { color: var(--muted); }
.site-footer .footer-grid a { display: block; }

.verdict.unknown { background: var(--surface-2); border-color: var(--border); }
.verdict.unknown .vicon { background: var(--muted); }
.verdict.unknown h2 { color: var(--muted); }
