/*
 * Intranet — identidade visual Viva Maracanã (Manual de Marca Grupo Viva, out/2026)
 *
 * Regras do manual aplicadas aqui:
 * - Logo principal: branco sobre o azul institucional (#134078). Secundário: azul sobre branco.
 * - Área de proteção do logo = x (altura da palavra VIVA ≈ 36,5% da altura do logo) em todos os lados.
 * - Redução máxima em telas: 150 px de largura.
 * - Títulos e destaques em Big Shoulders, sempre com tracking 100 (letter-spacing: .1em).
 * - Textos e conteúdo em Inter.
 * - Azul com mais peso na comunicação institucional; verde e amarelo em harmonia.
 * - Paleta secundária (azul luz, azul noite, verde luz, amarelo luz, cinza museu, grafite) só apoia telas
 *   e dados — nunca substitui as cores principais.
 * - Grafismos (multidão, radialidade, foco/spot) como elementos de suporte.
 *
 * Layout alinhado ao site vivamaracana.com.br: moldura azul profundo (#04213F), conteúdo sobre creme
 * (#F3EFE4), faixa verde de aviso, faixas amarelas com degradê quente, degradê "gramado" com arcos
 * dourados no destaque, cartões com cantos de 16 px e botões em pílula com texto em caixa alta.
 */

/* Fontes do manual hospedadas localmente (OFL), recortadas para os caracteres do português. */
@font-face {
  font-family: "Big Shoulders";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/big-shoulders-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin.woff2) format("woff2"); /* corte óptico "Inter 18pt" */
}

:root {
  /* Paleta principal */
  --azul: #134078;
  --verde: #005500;
  --amarelo: #FFB800;
  /* Paleta secundária (apoio a telas e dados) */
  --azul-luz: #307FE2;
  --azul-noite: #0C2340;
  --verde-luz: #43B02A;
  --amarelo-luz: #FCE300;
  --cinza-museu: #D9D9D6;
  --grafite: #25282A;
  /* Tints das escalas do manual */
  --azul-10: #E7ECF2;
  --azul-20: #D0D9E4;
  --azul-60: #7189AE;
  --verde-10: #E6EEE6;
  --amarelo-10: #FFF8E6;
  --amarelo-20: #FFF1CC;
  --azul-luz-10: #EAF2FC;
  /* Tons do site vivamaracana.com.br */
  --ink: #06101F;
  --pitch: #01060E;
  --ground-deep: #04213F;
  --ground-low: #133F70;
  --ground-high: #1A5893;
  --ground-bright: #1074C0;
  --amarelo-quente: #FFD56F;
  --creme: #F3EFE4;
  --ground: linear-gradient(172deg, var(--ground-bright) 0%, var(--ground-high) 35%, var(--ground-low) 70%, var(--ground-deep) 100%);

  /* Tokens de interface */
  --brand: var(--azul);
  --brand-strong: var(--azul-noite);
  --brand-soft: var(--azul-10);
  --accent: var(--amarelo);
  --accent-soft: var(--amarelo-20);
  --bg: var(--creme);
  --surface: #FFFCF5;
  --surface-2: #ECE5D3;
  --border: #DFD6C1;
  --text: var(--ink);
  --text-muted: #4B5363;
  --heading: var(--ink);
  --link: var(--azul);
  --rule: #C8BCA2;
  --frame: var(--ground-deep);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(6, 16, 31, .08), 0 14px 30px -18px rgba(6, 16, 31, .35);
  --header-h: 5.75rem;
  --sidebar-w: 16rem;
  --font-display: "Big Shoulders", "Arial Narrow", sans-serif-condensed, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tracking: .1em; /* tracking 100 obrigatório na Big Shoulders */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8FB6EE; --brand-strong: #FFFFFF; --brand-soft: #1A3A66;
    --accent-soft: #3A3215;
    --bg: #071A31; --surface: #0C2541; --surface-2: #133051; --border: #1F4066; --frame: var(--pitch);
    --text: var(--creme); --text-muted: #B9C3D1; --heading: #FFFFFF; --link: var(--amarelo-quente); --rule: #2E527D;
    --azul-10: #17365F; --verde-10: #12321A; --amarelo-10: #2E2812; --amarelo-20: #3A3215; --azul-luz-10: #16365E;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 6px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #8FB6EE; --brand-strong: #FFFFFF; --brand-soft: #1A3A66;
  --accent-soft: #3A3215;
  --bg: #071A31; --surface: #0C2541; --surface-2: #133051; --border: #1F4066; --frame: var(--pitch);
  --text: var(--creme); --text-muted: #B9C3D1; --heading: #FFFFFF; --link: var(--amarelo-quente); --rule: #2E527D;
  --azul-10: #17365F; --verde-10: #12321A; --amarelo-10: #2E2812; --amarelo-20: #3A3215; --azul-luz-10: #16365E;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 6px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--azul-luz); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--heading); }
h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: var(--tracking);
  font-weight: 800;
}
h1 { font-size: 2.6rem; text-transform: uppercase; }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-family: var(--font); font-size: 1rem; font-weight: 700; margin-top: 1.4em; letter-spacing: 0; }
p { margin: 0 0 .9em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .2em 0; }
strong { font-weight: 700; }
code, kbd { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
kbd { border: 1px solid var(--border); border-bottom-width: 2px; padding: .05em .4em; border-radius: 4px; background: var(--surface); }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--amarelo); color: var(--azul-noite); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 8px; }
svg.icon { width: 1.25rem; height: 1.25rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header: logo principal branco sobre azul institucional ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: var(--azul);
  color: #fff;
}
/* Logo 160 px (altura ≈ 52 px; x ≈ 19 px). Header de 92 px deixa ≥ x acima e abaixo;
   o gap/margens horizontais mantêm ≥ x livre nas laterais. */
.brand { display: flex; align-items: center; text-decoration: none; color: #fff; flex: none; }
.brand-logo { display: block; width: 10rem; height: auto; }
.brand-label {
  margin-left: 24px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.35);
  font-family: var(--font-display); letter-spacing: var(--tracking);
  font-weight: 400; font-size: 1.35rem; text-transform: uppercase; line-height: 3.25rem;
}
.brand:hover, .brand:hover .brand-label { color: #fff; }
.header-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  min-width: 0; width: min(26rem, 42vw);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 999px; padding: 9px 16px; cursor: pointer; font: inherit; font-size: .95rem; text-align: left;
}
.header-search:hover { background: rgba(255,255,255,.18); }
.header-search span { flex: 1; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-search kbd { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.icon-btn { background: transparent; border: 0; color: inherit; padding: 9px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:hover { background: rgba(255,255,255,.14); }
.menu-btn { display: none; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.sidebar {
  position: sticky; top: var(--header-h); align-self: start;
  height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 20px 14px; border-right: 1px solid var(--border); background: var(--surface);
}
.nav-group { margin-bottom: 20px; }
.nav-group-title {
  font-family: var(--font-display); letter-spacing: var(--tracking);
  font-size: .9rem; text-transform: uppercase; color: var(--brand); font-weight: 700;
  padding: 0 10px 8px; margin: 0 0 6px; border-bottom: 1px solid var(--rule);
}
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--azul); color: #fff; font-weight: 600; }
.nav a[aria-current="page"] svg { color: var(--amarelo); }
.main { padding: clamp(22px, 2.2vw, 56px) clamp(16px, 2.6vw, 72px) 64px; width: 100%; min-width: 0; }
.main:focus { outline: none; }

/* ---------- Cabeçalho de página (estilo "LOGOTIPO | aplicação" do manual) ---------- */
.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { color: var(--text-muted); margin: 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display); letter-spacing: var(--tracking);
  font-size: 1.05rem; font-weight: 300; text-transform: uppercase; color: var(--brand);
  padding-bottom: 6px; margin-bottom: 10px; border-bottom: 1px solid var(--rule); min-width: 220px;
}
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-muted); }

/* ---------- Cards e grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--azul-luz); color: inherit; transform: translateY(-1px); }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.faixa-amarela .grid-auto { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; text-transform: uppercase; }
.section-head a { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.home-cols { display: grid; gap: 24px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* Hero: azul institucional + grafismo "multidão" */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 16px; padding: 40px 40px 36px; color: #fff;
  background: var(--azul);
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 620px; height: 620px; right: -170px; top: -260px;
  background: url(../img/grafismo-multidao.svg) center / contain no-repeat;
}
.hero h1 { color: #fff; font-size: 3.1rem; margin-bottom: 10px; }
.hero p { color: rgba(255,255,255,.92); margin-bottom: 22px; }
.hero-kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-family: var(--font-display); letter-spacing: var(--tracking); font-weight: 700; text-transform: uppercase; font-size: .95rem;
}
.hero-kicker::after { content: ""; width: 80px; height: 1px; background: rgba(255,255,255,.6); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.quick { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.quick .quick-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--azul-10); color: var(--azul); flex: none; }
:root[data-theme="dark"] .quick-icon { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quick-icon { color: #fff; } }
.quick strong { display: block; line-height: 1.3; color: var(--heading); }
.quick span:not(.quick-icon) { display: block; font-size: .84rem; color: var(--text-muted); line-height: 1.4; }
.quick-icon-danger { background: var(--amarelo); color: var(--azul-noite) !important; }

/* ---------- Botões (pílula, como o CTA do manual) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: .92rem;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; text-decoration: none; text-transform: uppercase; letter-spacing: .03em;
}
.btn:hover { border-color: var(--azul-luz); color: var(--text); }
.btn-primary { background: var(--amarelo); border-color: var(--amarelo); color: var(--azul-noite); }
.btn-primary:hover { background: #FFC633; border-color: #FFC633; color: var(--azul-noite); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }

/* ---------- Listas ---------- */
.list { list-style: none; padding: 0; margin: 0; }
.list > li { padding: 14px 0; border-bottom: 1px solid var(--border); margin: 0; }
.list > li:last-child { border-bottom: 0; }
.news-item h3 { margin: 4px 0; font-size: 1.15rem; }
.news-item h3 a { color: var(--heading); text-decoration: none; }
.news-item h3 a:hover { color: var(--azul-luz); }
.news-item p { margin: 0; color: var(--text-muted); }
.meta { font-size: .8rem; color: var(--text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.event { display: flex; gap: 14px; align-items: center; }
.date-chip { width: 56px; flex: none; text-align: center; border-radius: 10px; background: var(--azul); color: #fff; padding: 6px 0; line-height: 1.05; }
.date-chip b { display: block; font-family: var(--font-display); letter-spacing: var(--tracking); font-size: 1.5rem; font-weight: 800; }
.date-chip small { font-family: var(--font-display); letter-spacing: var(--tracking); text-transform: uppercase; font-size: .78rem; font-weight: 600; color: var(--amarelo); }

/* ---------- Tags e selos (somente cores da paleta) ---------- */
.tag { display: inline-block; font-family: var(--font-display); letter-spacing: var(--tracking); font-size: .78rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); text-transform: uppercase; }
.tag-exemplo { background: var(--amarelo-20); color: var(--text); }
.tag-brand { background: var(--azul); color: #fff; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.badge-public { background: var(--verde-10); color: var(--verde); box-shadow: inset 0 0 0 1px var(--verde); }
.badge-internal { background: var(--azul-10); color: var(--azul); box-shadow: inset 0 0 0 1px var(--azul); }
.badge-confidential { background: var(--amarelo); color: var(--azul-noite); }
.badge-restricted { background: var(--azul-noite); color: #fff; }
:root[data-theme="dark"] .badge-public { color: #8BD47A; box-shadow: inset 0 0 0 1px var(--verde-luz); }
:root[data-theme="dark"] .badge-internal { color: #fff; box-shadow: inset 0 0 0 1px var(--azul-luz); }
:root[data-theme="dark"] .badge-restricted { background: #fff; color: var(--azul-noite); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-public { color: #8BD47A; box-shadow: inset 0 0 0 1px var(--verde-luz); }
  :root:not([data-theme="light"]) .badge-internal { color: #fff; box-shadow: inset 0 0 0 1px var(--azul-luz); }
  :root:not([data-theme="light"]) .badge-restricted { background: #fff; color: var(--azul-noite); }
}
.prio { display: inline-block; font-family: var(--font-display); letter-spacing: var(--tracking); font-size: .9rem; font-weight: 800; padding: 1px 10px; border-radius: 6px; white-space: nowrap; text-transform: uppercase; }
.prio-1 { background: var(--amarelo); color: var(--azul-noite); }
.prio-2 { background: var(--amarelo-20); color: var(--text); box-shadow: inset 0 0 0 1px var(--amarelo); }
.prio-3 { background: var(--azul-10); color: var(--heading); }
.prio-4 { background: var(--cinza-museu); color: var(--grafite); }
.ok { color: var(--verde); font-weight: 700; }
.no { color: var(--heading); font-weight: 800; text-decoration: underline; text-decoration-color: var(--amarelo); text-decoration-thickness: 3px; text-underline-offset: 3px; }
:root[data-theme="dark"] .ok { color: #8BD47A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ok { color: #8BD47A; } }

/* ---------- Callouts (a paleta não tem vermelho: alerta crítico = azul noite + amarelo) ---------- */
.callout { border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 1em; border-left: 5px solid; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 800; margin-bottom: .35em; }
.callout-info { background: var(--azul-luz-10); border-color: var(--azul-luz); }
.callout-success { background: var(--verde-10); border-color: var(--verde); }
.callout-warning { background: var(--amarelo-10); border-color: var(--amarelo); }
.callout-danger { background: var(--azul-noite); border-color: var(--amarelo); color: #fff; }
.callout-danger .callout-title { color: var(--amarelo); font-family: var(--font-display); letter-spacing: var(--tracking); text-transform: uppercase; font-size: 1.1rem; }
.callout-danger a { color: var(--amarelo); }
.callout-danger strong { color: #fff; }
.callout ul { margin-bottom: 0; }
:root[data-theme="dark"] .callout-danger { background: #071629; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .callout-danger { background: #071629; } }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: var(--azul); color: #fff; font-family: var(--font-display); letter-spacing: var(--tracking); font-weight: 700; font-size: .95rem; text-transform: uppercase; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }

/* ---------- Passos e checklists ---------- */
ol.steps { list-style: none; counter-reset: step; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 3px 0 14px 46px; margin: 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--azul); color: #fff; font-family: var(--font-display); letter-spacing: 0; font-weight: 800; font-size: 1.05rem; display: grid; place-items: center; }
ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--azul-20); }
:root[data-theme="dark"] ol.steps > li::before { background: var(--azul-luz); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) ol.steps > li::before { background: var(--azul-luz); } }
ul.checklist { list-style: none; padding: 0; }
ul.checklist li { position: relative; padding-left: 30px; margin: .45em 0; }
ul.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 5px; background: var(--verde); }
ul.checklist li::after { content: ""; position: absolute; left: 6px; top: .38em; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- FAQ ---------- */
details.faq { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 8px; }
details.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--heading); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--amarelo); font-weight: 800; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 16px 14px; color: var(--text-muted); }
details.faq .faq-body p { margin: 0 0 .5em; }

/* ---------- Campos ---------- */
.input { width: 100%; font: inherit; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.input:focus { border-color: var(--azul-luz); outline: 2px solid var(--azul-luz-10); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar .input { max-width: 360px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-family: var(--font-display); letter-spacing: var(--tracking); font-size: .9rem; font-weight: 700; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }

/* ---------- Política ---------- */
.policy-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: clamp(24px, 2.5vw, 56px); align-items: start; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--text-muted); margin: 10px 0 0; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.doc-meta b { color: var(--text); font-weight: 600; }
.doc-section { padding-top: 8px; margin-top: 28px; }
.doc-section > h2 { display: flex; gap: 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--rule); text-transform: uppercase; }
.doc-section > h2 a.anchor { margin-left: auto; font-size: .85rem; opacity: 0; text-decoration: none; color: var(--text-muted); }
.doc-section > h2:hover a.anchor, .doc-section > h2 a.anchor:focus { opacity: 1; }
.doc-section.flash, .ancora.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--amarelo-20); } to { background: transparent; } }
.toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; font-size: .87rem; }
.toc-title { font-family: var(--font-display); letter-spacing: var(--tracking); font-size: .9rem; text-transform: uppercase; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 4px 10px; color: var(--text-muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--heading); border-left-color: var(--amarelo); font-weight: 700; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.signature { margin-top: 28px; padding-top: 10px; border-top: 1px solid var(--text-muted); display: inline-block; font-weight: 700; }
.signature span { font-weight: 400; color: var(--text-muted); }

/* Gerador de nomes */

/* ---------- Busca ---------- */
dialog.search { border: 0; padding: 0; border-radius: 14px; width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 640px); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(12,35,64,.4); margin-top: 10vh; }
dialog.search::backdrop { background: rgba(12, 35, 64, .6); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.search-box input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--text); outline: none; }
.search-results { overflow-y: auto; max-height: calc(min(70vh, 640px) - 60px); padding: 6px; }
.search-results a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--azul-10); }
.search-results .r-type { font-family: var(--font-display); letter-spacing: var(--tracking); font-size: .8rem; font-weight: 700; text-transform: uppercase; color: var(--azul-luz); }
.search-results .r-title { font-weight: 600; display: block; color: var(--heading); }
.search-results .r-snip { font-size: .85rem; color: var(--text-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results mark { background: var(--amarelo-20); color: inherit; border-radius: 2px; }
.search-empty { padding: 24px; text-align: center; color: var(--text-muted); }

/* ---------- Rodapé (assinatura Grupo Viva, como nas páginas do manual) ---------- */
.footer { margin-top: 56px; }
.footer-rule { display: flex; align-items: center; gap: 20px; font-size: .74rem; color: var(--azul-60); text-transform: uppercase; letter-spacing: .02em; }
.footer-rule::before { content: ""; flex: 1; height: 1px; background: var(--rule); }
/* Mesmo logo do topo: Viva Maracanã branco sobre azul, 160 px (150 px no celular),
   com área de proteção ≥ x (≈ 19 px) em todos os lados via padding e gap. */
.footer-band { margin-top: 18px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--azul); color: rgba(255,255,255,.85); border-radius: var(--radius); padding: 24px; font-size: .8rem; }
.footer-logo { width: 10rem; height: auto; display: block; flex: none; }

/* ---------- Conteúdo gerenciado: edição, janelas e conta ---------- */
.toolbar-end { margin-left: auto; }
.item-acoes { display: inline-flex; gap: 6px; margin-left: auto; }
.event .item-acoes { flex: none; }
.event-body { flex: 1; min-width: 0; }
.btn-ghost-danger { color: var(--text); }
.btn-ghost-danger:hover { border-color: var(--amarelo); background: var(--amarelo-10); }
.btn-danger { background: var(--azul-noite); border-color: var(--azul-noite); color: #fff; }
.btn-danger:hover { background: #000; border-color: #000; color: var(--amarelo); }
:root[data-theme="dark"] .btn-danger { background: var(--amarelo); border-color: var(--amarelo); color: var(--azul-noite); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-danger { background: var(--amarelo); border-color: var(--amarelo); color: var(--azul-noite); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nota-edicao { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .88rem; }
.carregando { color: var(--text-muted); padding: 40px 0; text-align: center; }
.input-sm { padding: 6px 10px; font-size: .88rem; width: auto; }
.acoes-cell { white-space: nowrap; }
.acoes-cell .btn + .btn { margin-left: 6px; }

#user-btn { position: relative; }
#user-btn.logado::after { content: ""; position: absolute; right: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--amarelo); box-shadow: 0 0 0 2px var(--azul); }

dialog.modal { border: 0; padding: 0; border-radius: 14px; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(12,35,64,.4); }
dialog.modal::backdrop { background: rgba(12, 35, 64, .6); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: var(--azul); color: #fff; }
.modal-head h2 { margin: 0; color: #fff; font-size: 1.4rem; text-transform: uppercase; }
.modal-head .icon-btn { margin-left: auto; color: #fff; }
.modal-body { padding: 20px 22px 6px; display: grid; gap: 14px; }
.modal-body p { margin: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }
.modal-body label, .form-grid label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.modal-body textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid { display: grid; gap: 14px; align-content: start; }
.form-grid h2 { margin: 0; }
.form-nota { font-size: .8rem; }
.form-erro { background: var(--amarelo-10); border-left: 4px solid var(--amarelo); padding: 8px 12px; border-radius: 6px; font-size: .88rem; color: var(--text); }
.conta-acoes { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.senha-box { margin-top: 20px; }
.senha { font-size: 1.15rem; padding: 4px 10px; letter-spacing: .04em; user-select: all; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--azul-noite); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.theme-mobile { display: none; width: calc(100% - 20px); margin: 0 10px 12px; justify-content: center; }

/* ---------- Lista telefônica (Pessoas e contatos) ---------- */
.tel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.tel-head .page-head { margin-bottom: 0; }
.tel-escritorio { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; padding: 12px 22px; border-radius: var(--radius); background: var(--azul); color: #fff; text-decoration: none; line-height: 1.05; box-shadow: var(--shadow); }
.tel-escritorio small { font-family: var(--font-display); letter-spacing: var(--tracking); font-weight: 700; font-size: .85rem; text-transform: uppercase; color: var(--amarelo); }
.tel-escritorio span { font-family: var(--font-display); letter-spacing: var(--tracking); font-weight: 800; font-size: 2.3rem; white-space: nowrap; }
.tel-escritorio:hover { color: #fff; background: var(--azul-noite); }
.chip-light { font-family: var(--font); letter-spacing: 0; text-transform: none; font-weight: 600; font-size: .85rem; }
.chip-light[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }
.tel-vazio { padding: 24px 0; text-align: center; }
fieldset.setores-campo, fieldset.tipo-campo { border: 0; padding: 0; margin: 0; min-width: 0; }
.setores-campo legend, .tipo-campo legend { font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; padding: 0; }
.setor-outro { display: flex; gap: 8px; margin-top: 10px; }
.setor-outro .input { flex: 1; width: auto; }
.tipo-campo { display: flex; flex-wrap: wrap; gap: 4px 14px; align-content: start; }
.tipo-campo legend { width: 100%; }
label.radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); font-size: .92rem; }
.modal-body [hidden] { display: none; }
dialog.modal { max-height: calc(100vh - 32px); }
dialog.modal form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.modal-body { overflow-y: auto; }

/* ---------- Políticas por departamento ---------- */
.pol-deptos { margin-bottom: 20px; }
.pol-depto { margin-bottom: 28px; }
.pol-depto > h2 { text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.pol-card { display: grid; gap: 10px; }
.pol-card h3 { margin: 0; font-size: 1.3rem; }
.pol-card > p { margin: 0; }
.pol-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pol-topo .item-acoes { margin-left: auto; }
.pol-codigo { font-family: var(--font-display); letter-spacing: var(--tracking); font-weight: 700; color: var(--azul-luz); }
.pol-abrir { display: flex; flex-wrap: wrap; gap: 8px; }
.pol-anexos { border-top: 1px solid var(--border); padding-top: 10px; }
.pol-anexos summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--heading); list-style: none; }
.pol-anexos summary::-webkit-details-marker { display: none; }
.pol-anexos .list { margin: 6px 0 10px; }
.anexo-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 10px 0 !important; }
.anexo-row strong { font-weight: 600; }
.anexo-acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.anexo-acoes .item-acoes { margin-left: 4px; }
.pol-vazio { padding: 24px 0; text-align: center; }
fieldset.arquivo-campo { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.arquivo-campo legend { font-size: .85rem; font-weight: 600; color: var(--text-muted); padding: 0 4px; }
.arquivo-atual { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.arquivo-campo input[type="file"] { padding: 8px; }

/* ---------- Sistemas e links (gestão) ---------- */
.link-item { display: grid; gap: 8px; align-content: start; }
.link-item .item-acoes { margin-left: 0; justify-content: flex-end; }
fieldset.icone-campo { border: 0; padding: 0; margin: 0; min-width: 0; }
.icone-campo legend { font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; padding: 0; }
.icone-opcoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.icone-opt { position: relative; display: grid !important; place-items: center; height: 44px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; color: var(--text); }
.icone-opt input { position: absolute; opacity: 0; pointer-events: none; }
.icone-opt:has(input:checked) { background: var(--azul); border-color: var(--azul); color: #fff; }
.icone-opt:has(input:focus-visible) { outline: 3px solid var(--amarelo); outline-offset: 2px; }
.destaque-campo { align-self: end; padding-bottom: 10px; }

/* ---------- Leitura de documentos convertidos do Word ---------- */
.leitura-nota { margin: 10px 0 0; }
.policy-layout.sem-toc { grid-template-columns: minmax(0, 1fr); }
.doc-word .doc-intro { margin-top: 20px; }
.doc-word h3 { font-size: 1.15rem; margin-top: 1.4em; text-transform: none; }
.doc-word h4, .doc-word h5, .doc-word h6 { margin-top: 1.2em; }
.doc-word table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.doc-word td, .doc-word th { border: 1px solid var(--border); min-width: 120px; }
.doc-word tr:first-child td { background: var(--surface-2); font-weight: 600; }
.doc-word td p, .doc-word th p { margin: 0; }
.doc-word blockquote { border-left: 4px solid var(--azul-luz); margin: 0 0 1em; padding: 4px 14px; color: var(--text-muted); }


.hero-editar { position: absolute; top: 16px; right: 16px; }
.avisos-toolbar { margin-bottom: 12px; }
.aviso-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.aviso-inativo { opacity: .6; border-left-style: dashed; }
.botao-campo { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px 4px; display: grid; gap: 8px; }
.botao-campo legend { font-weight: 700; font-size: .85rem; padding: 0 4px; }

/* ---------- Editor de guias ---------- */
dialog.modal.modal-largo { width: min(860px, calc(100vw - 32px)); }
.editor-campo { display: grid; gap: 6px; }
.editor-rotulo { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.editor { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.editor-barra { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-bottom: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius-sm) var(--radius-sm) 0 0; position: sticky; top: 0; z-index: 1; }
.editor-barra .btn { padding: 4px 10px; font-size: .7rem; letter-spacing: .04em; }
.editor-area { min-height: 260px; max-height: 50vh; overflow-y: auto; padding: 14px 16px; font-size: .95rem; color: var(--text); }
.editor-area:focus { outline: 2px solid rgba(16,116,192,.25); outline-offset: -2px; }
.faq-acoes { margin-top: 10px; display: flex; }
.faq-acoes .item-acoes { margin-left: 0; }

/* ---------- Vários anexos de uma vez ---------- */
.lote-escolher { font-weight: 600; }
dialog.modal.modal-lote { width: min(1200px, calc(100vw - 32px)); }
.lote-tabela .table-wrap { margin: 0; max-height: 46vh; overflow: auto; }
.lote-tabela table { font-size: .85rem; }
.lote-tabela td { vertical-align: middle; }
.lote-tabela .input-sm { width: 100%; min-width: 7rem; }
.lote-tabela .lote-titulo { min-width: 22rem; }
.lote-tabela .lote-versao { min-width: 4rem; width: 5rem; }
.lote-arquivo { max-width: 14rem; overflow-wrap: anywhere; }
.lote-arquivo svg { vertical-align: middle; }
.lote-erro { color: var(--text); background: var(--amarelo-10); border-left: 3px solid var(--amarelo); padding: 2px 6px; display: inline-block; }

/* ---------- Sistemas e links: categorias lado a lado, encaixadas para fechar cada linha ----------
   Cada categoria pede espaço proporcional à quantidade de cartões (n1…n8); as pequenas dividem a linha,
   as grandes ocupam a linha toda e os cartões se esticam até a borda. */
.sis-cats { display: flex; flex-wrap: wrap; gap: 28px 24px; }
.sis-cat { min-width: min(100%, 15rem); }
.sis-cat.n1 { flex: 1 1 calc(1 * 15rem + 0 * 16px); }
.sis-cat.n2 { flex: 2 1 calc(2 * 15rem + 1 * 16px); }
.sis-cat.n3 { flex: 3 1 calc(3 * 15rem + 2 * 16px); }
.sis-cat.n4 { flex: 4 1 calc(4 * 15rem + 3 * 16px); }
.sis-cat.n5 { flex: 5 1 calc(5 * 15rem + 4 * 16px); }
.sis-cat.n6 { flex: 6 1 calc(6 * 15rem + 5 * 16px); }
.sis-cat.n7 { flex: 7 1 calc(7 * 15rem + 6 * 16px); }
.sis-cat.n8 { flex: 8 1 calc(8 * 15rem + 7 * 16px); }
.sis-cat h2 { text-transform: uppercase; margin: 0 0 12px; }
.sis-grade { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.quick span.sis-texto { display: grid; gap: 2px; min-width: 0; line-height: 1.35; font-size: 1rem; color: inherit; }
.sis-texto strong { color: var(--heading); }
.sis-texto small { color: var(--text-muted); font-size: .84rem; }
.quick .sis-texto .selo-destaque { display: inline-block; justify-self: start; margin-top: 4px; font-size: .68rem; line-height: 1.4; color: #fff; text-align: left; }
.sis-item { position: relative; display: grid; }
.sis-item .quick { padding-right: 4.75rem; }
.sis-acoes { position: absolute; top: 6px; right: 6px; display: flex; }
.sis-acoes .icon-btn { color: var(--text-muted); padding: 6px; }
.sis-acoes .icon-btn:hover { color: var(--text); background: var(--surface-2); }
.selo-destaque { flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: var(--verde); color: #fff; }

/* ---------- Textos justificados dentro das caixas (cartões, avisos, guias, perguntas e políticas) ---------- */
/* Nomes e descrições curtas dos cartões de link ficam alinhados à esquerda: justificar 2–3 palavras abre buracos */
.card p, .card li, .news-item p, .callout p, .callout li,
.faq-body p, .doc p, .doc li, .doc-word p, .doc-word li, .hero p {
  text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}

/* ---------- Pessoas e contatos: visual do antigo site de telefonia ---------- */
.tel-ordem { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.tel-ordem-rotulo { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.tel-ordem-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 11rem; padding: 11px 20px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.tel-ordem-btn:hover { border-color: var(--amarelo); }
.tel-ordem-btn[aria-pressed="true"] { background: var(--amarelo); border-color: var(--amarelo); color: var(--ink); }
.tel-abas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.tel-aba { padding: 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted); font: inherit; font-weight: 700; cursor: pointer; }
.tel-aba:hover { color: var(--text); }
.tel-aba[aria-selected="true"] { background: var(--azul); color: #fff; }
.tel-conta { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-left: 4px; }
.tel-aba[aria-selected="true"] .tel-conta { color: var(--amarelo); }
.tel-busca { display: flex; align-items: center; gap: 10px; padding: 0 16px; margin-bottom: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); }
.tel-busca:focus-within { border-color: var(--ground-bright); }
.tel-busca input { flex: 1; min-width: 0; padding: 14px 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; outline: none; }
.tel-setores { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.tel-setor { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.tel-setor:hover { border-color: var(--amarelo); }
.tel-setor[aria-pressed="true"] { background: var(--amarelo); border-color: var(--amarelo); color: var(--ink); }
.tel-grupo { margin: 22px 0 12px; font-family: var(--font); font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.tel-grade { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.tel-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; margin: 0; padding: 16px 16px 14px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.tel-card-adm .tel-quem { padding-right: 4.5rem; }
.tel-quem strong { display: block; color: var(--heading); font-size: 1rem; line-height: 1.3; }
.tel-e { color: var(--text-muted); font-weight: 400; }
.tel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tel-tag { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: .74rem; font-weight: 700; }
.tel-extra { display: grid; gap: 2px; margin-top: 6px; font-size: .8rem; color: var(--text-muted); }
.tel-email { overflow-wrap: anywhere; }
.tel-base { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tel-numero { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: .02em; color: var(--azul); white-space: nowrap; }
.tel-numero small { font-family: var(--font-display); font-size: .55em; font-weight: 600; letter-spacing: 0; margin-right: 4px; color: var(--text-muted); text-transform: uppercase; }
.tel-botoes { display: flex; gap: 8px; flex: none; }
.tel-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.tel-btn:hover { border-color: var(--amarelo); color: var(--text); }
.tel-ligar { background: #138A36; border-color: #138A36; color: #fff; }
.tel-ligar:hover { background: #0F6E2B; border-color: #0F6E2B; color: #fff; }
.tel-adm { position: absolute; top: 8px; right: 8px; display: flex; }
.tel-adm .icon-btn { color: var(--text-muted); padding: 6px; }
.tel-adm .icon-btn:hover { color: var(--text); background: var(--surface-2); }
.tel-vazio { padding: 24px 0; text-align: center; }
:root[data-theme="dark"] .tel-numero { color: var(--amarelo); }
:root[data-theme="dark"] .tel-aba[aria-selected="true"] { background: #1A4F94; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tel-numero { color: var(--amarelo); }
  :root:not([data-theme="light"]) .tel-aba[aria-selected="true"] { background: #1A4F94; }
}
@media (max-width: 640px) {
  .tel-ordem-rotulo { width: 100%; }
  .tel-ordem-btn { flex: 1 1 0; min-width: 0; padding: 10px 6px; font-size: .85rem; gap: 6px; }
  .tel-ordem #tel-novo { order: 5; flex: 1 1 100%; justify-content: center; margin-left: 0; }
}

/* ---------- Visual do site vivamaracana.com.br ---------- */
a:hover { color: var(--ground-bright); }
.header { background: var(--frame); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header-search { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }

/* Faixa verde de aviso (como a do site) */
.faixa-aviso { display: flex; align-items: center; gap: 10px; padding: 8px 24px; background: var(--verde); color: #fff; font-size: .85rem; }
.faixa-aviso::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--amarelo); box-shadow: 0 0 0 3px rgba(255,184,0,.3); }
.faixa-aviso a { color: var(--amarelo); font-weight: 700; }
.faixa-aviso a:hover { color: var(--amarelo-quente); }

/* Menu lateral escuro, item ativo em pílula amarela */
.layout { background: linear-gradient(90deg, var(--frame) var(--sidebar-w), transparent var(--sidebar-w)); }
.sidebar { background: var(--frame); border-right: 0; color: rgba(255,255,255,.82); }
.nav-group-title { color: rgba(255,255,255,.6); font-family: var(--font); font-size: .72rem; font-weight: 600; letter-spacing: .16em; border-bottom: 0; display: flex; align-items: center; gap: 10px; }
.nav-group-title::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.18); }
.nav a { color: rgba(255,255,255,.86); border-radius: 999px; padding: 8px 14px; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { background: var(--amarelo); color: var(--ink); font-weight: 700; }
.nav a[aria-current="page"] svg { color: var(--ink); }
.sidebar .theme-mobile { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* Títulos de página: chamada pequena com fio, título em caixa alta */
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--font); font-size: .74rem; font-weight: 600; letter-spacing: .16em; color: var(--text-muted); border-bottom: 0; padding-bottom: 0; min-width: 0; }
.eyebrow::after { content: ""; width: 80px; height: 1px; background: var(--rule); }
.section-head h2 { color: var(--heading); }

/* Destaque da página inicial: foto aérea do Maracanã (a mesma da abertura do site), com véu azul profundo à esquerda para o texto */
.hero {
  min-height: clamp(420px, 26vw, 680px); display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(90deg, rgba(4,33,63,.92) 0%, rgba(4,33,63,.72) 34%, rgba(4,33,63,.12) 62%, rgba(4,33,63,0) 80%),
    linear-gradient(0deg, rgba(4,33,63,.35) 0%, rgba(4,33,63,0) 35%),
    url(../img/hero-maracana.webp) 50% 78% / cover no-repeat,
    var(--ground-deep);
  box-shadow: 0 22px 44px -24px rgba(1,6,14,.7);
}
.hero::before { display: none; }
.hero h1, .hero p { text-shadow: 0 2px 18px rgba(1,6,14,.45); }
.hero h1 { color: var(--amarelo); font-size: 3.6rem; }
.hero-saudacao { display: block; color: #fff; font-size: .5em; margin-bottom: 4px; }
.hero-kicker { font-family: var(--font); font-size: .74rem; font-weight: 600; letter-spacing: .16em; }

.aviso { margin-top: 20px; }
.home-cols > .card { align-self: start; }

/* Faixa amarela (degradê quente) com cartões translúcidos */
.faixa-amarela { margin-top: 36px; padding: 26px 26px 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--amarelo-quente), var(--amarelo) 58%); color: var(--ink); }
.faixa-amarela .section-head h2, .faixa-amarela .section-head a, .faixa-amarela .eyebrow { color: var(--ink); }
.faixa-amarela .eyebrow::after { background: rgba(6,16,31,.35); }
.faixa-amarela .card { background: rgba(255,255,255,.4); border-color: rgba(255,255,255,.55); box-shadow: none; }
.faixa-amarela .card-link:hover { background: rgba(255,255,255,.62); border-color: #fff; }
.faixa-amarela .quick strong { color: var(--ink); }
.faixa-amarela .quick span:not(.quick-icon) { color: rgba(6,16,31,.75); }

/* Cartões, ícones e botões */
.card { border-color: var(--border); }
.card-link:hover { border-color: var(--amarelo); }
.quick .quick-icon, :root[data-theme="dark"] .quick-icon { background: var(--ground-deep); color: var(--amarelo); }
.btn { border-color: var(--ink); background: transparent; letter-spacing: .08em; font-size: .82rem; padding: 11px 22px; }
.btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .74rem; }
.btn-primary { background: var(--amarelo); border-color: var(--amarelo); color: var(--ink); }
.btn-primary:hover { background: var(--amarelo-quente); border-color: var(--amarelo-quente); color: var(--ink); }
.btn-ghost-danger:hover { background: var(--amarelo-10); border-color: var(--amarelo); color: var(--text); }
.btn-danger { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-danger:hover { background: #000; border-color: #000; color: var(--amarelo); }
.btn-ghost-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost-light:hover { background: rgba(4,33,63,.94); border-color: rgba(4,33,63,.94); color: #fff; }
.date-chip { background: var(--ground-deep); color: #fff; }
.date-chip b { color: var(--amarelo); }
.tag-brand { background: var(--ink); color: #fff; }
.chip[aria-pressed="true"], .chip-light[aria-pressed="true"], .icone-opt:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
th { background: var(--ground-deep); }
ol.steps > li::before, :root[data-theme="dark"] ol.steps > li::before { background: var(--amarelo); color: var(--ink); }
.callout-info { background: var(--surface); border-color: var(--ground-bright); }
.callout-danger { background: var(--pitch); }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--surface-2); }
.search-results .r-type, .pol-codigo { color: var(--ground-bright); }
.modal-head { background: var(--ground); }
.toast { background: var(--ink); }
.tel-escritorio { background: var(--ground); }
.tel-escritorio:hover { background: var(--ground-deep); }
#user-btn.logado::after { box-shadow: 0 0 0 2px var(--frame); }
.input:focus { border-color: var(--ground-bright); outline-color: rgba(16,116,192,.18); }

/* Rodapé: faixa azul profundo como o do site */
.footer-rule { color: var(--text-muted); }
.footer-band { background: var(--ground-deep); background-image: linear-gradient(180deg, var(--ground-low), var(--ground-deep)); }

/* Tema escuro */
:root[data-theme="dark"] .callout-info { background: var(--surface); }
:root[data-theme="dark"] .btn { border-color: rgba(255,255,255,.55); color: var(--text); }
:root[data-theme="dark"] .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-danger { background: var(--amarelo); border-color: var(--amarelo); color: var(--ink); }
:root[data-theme="dark"] .btn-ghost-light { border-color: rgba(255,255,255,.75); color: #fff; }
:root[data-theme="dark"] .footer-band { background-image: none; background: var(--pitch); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .quick-icon { background: var(--ground-deep); color: var(--amarelo); }
  :root:not([data-theme="light"]) ol.steps > li::before { background: var(--amarelo); color: var(--ink); }
  :root:not([data-theme="light"]) .btn { border-color: rgba(255,255,255,.55); color: var(--text); }
  :root:not([data-theme="light"]) .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
  :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-danger { background: var(--amarelo); border-color: var(--amarelo); color: var(--ink); }
  :root:not([data-theme="light"]) .btn-ghost-light { border-color: rgba(255,255,255,.75); color: #fff; }
  :root:not([data-theme="light"]) .footer-band { background-image: none; background: var(--pitch); }
}

/* ---------- Responsivo ---------- */
/* Telas grandes e TVs: a base cresce para o conteúdo ocupar a tela sem ficar miúdo */
@media (min-width: 1600px) { html { font-size: 17px; } }
@media (min-width: 1920px) { html { font-size: 18px; } }
@media (min-width: 2400px) { html { font-size: 20px; } .home-cols { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); } }
@media (min-width: 3000px) { html { font-size: 24px; } }
@media (min-width: 3600px) { html { font-size: 28px; } }

@media (max-width: 1100px) {
  .policy-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 86px; }
  .layout { grid-template-columns: minmax(0, 1fr); background: none; }
  .menu-btn { display: inline-grid; margin-right: 8px; } /* 12 px de gap + 8 px ≥ x (≈18 px) */
  .header { padding: 0 16px; gap: 12px; }
  .brand-logo, .footer-logo { width: 150px; } /* redução máxima para telas */
  .brand-label { margin-left: 20px; padding-left: 12px; font-size: 1.15rem; line-height: 49px; }
  .sidebar { position: fixed; left: 0; top: var(--header-h); z-index: 25; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .scrim { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(12,35,64,.45); z-index: 20; }
  .main { padding: 22px 16px 48px; }
  .home-cols, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero-editar { position: static; margin-bottom: 14px; }
  .faixa-aviso { padding: 8px 16px; font-size: .8rem; }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .brand-label { display: none; }
  .header-search { width: auto; flex: none; margin-left: auto; padding: 9px; border-radius: 10px; }
  .header-search span, .header-search kbd { display: none; }
  #theme-btn { display: none; }
  .tel-escritorio { width: 100%; align-items: center; }
  .tel-escritorio span { font-size: 1.9rem; }
  .theme-mobile { display: inline-flex; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .item-acoes { margin-left: 0; width: 100%; }
  .news-item .meta { row-gap: 8px; }
  .event { flex-wrap: wrap; }
  .hero { padding: 26px 20px; }
  .hero {
    min-height: 0;
    background:
      linear-gradient(0deg, rgba(4,33,63,.96) 0%, rgba(4,33,63,.86) 55%, rgba(4,33,63,.35) 100%),
      url(../img/hero-maracana-celular.webp) 50% 40% / cover no-repeat,
      var(--ground-deep);
  }
  .hero h1 { font-size: 2.2rem; }
  h1 { font-size: 2rem; }
  .footer-rule { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Impressão: só o conteúdo */
@media print {
  .header, .faixa-aviso, .sidebar, .toc, .doc-actions, .footer-band, .skip-link { display: none !important; }
  .layout, .policy-layout { display: block; }
  .main { padding: 0; max-width: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card { box-shadow: none; }
  th { background: #fff; color: #000; border-bottom: 2px solid #000; }
  .callout-danger { background: #fff; color: #000; }
  .doc-section > h2 { break-after: avoid; }
}

/* Tela de entrada com Microsoft 365 (versão local com login obrigatório) */
.tela-entrar { max-width: 34rem; margin: 8vh auto; text-align: center; display: grid; gap: .9rem; justify-items: center; }
.tela-entrar h1 { margin: 0; }
.tela-entrar p { text-align: center; margin: 0; }
.btn-ms { display: inline-flex; align-items: center; gap: .55rem; }
.btn-ms .icon { width: 1.1em; height: 1.1em; }
