/* ITAPREVI · menu principal fixo e componentes das novas páginas
   Arquivo novo, carregado depois de site.css e pages.css. Mantém os tokens do projeto. */

/* ---------- Menu principal (segunda linha do cabeçalho) ---------- */
.mnav { display: none; }
@media (min-width: 960px) {
  :root { --hdr-row: 78px; --nav-h: 52px; --hdr-h: calc(var(--hdr-row) + var(--nav-h)); }
  .hdr .hdr-in { height: var(--hdr-row); }
  .mnav { display: block; height: var(--nav-h); border-top: 1px solid rgba(255,255,255,.14); }
  .hdr.on-light .mnav { border-top-color: var(--line); }
  .mnav-in { height: 100%; display: flex; align-items: center; gap: 10px; }
  .mnav-list { display: flex; align-items: center; gap: 2px; height: 100%; margin: 0; padding: 0; list-style: none; }
  .mn-item { position: relative; display: flex; align-items: center; height: 100%; }
  .mn-link { position: relative; display: flex; align-items: center; height: 40px; padding: 0 4px 0 16px; border-radius: 999px 0 0 999px; font-family: var(--font-display); font-weight: 620; font-stretch: 104%; font-size: 1.0625rem; letter-spacing: -.01em; color: inherit; text-decoration: none; white-space: nowrap; }
  .mn-tg { width: 34px; height: 40px; margin-right: 2px; padding: 0 8px 0 2px; border: 0; border-radius: 0 999px 999px 0; background: transparent; color: inherit; display: grid; place-items: center; opacity: .8; }
  .mn-tg .ico { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .3s var(--ease); }
  .mn-item:hover > .mn-link, .mn-item:hover > .mn-tg, .mn-item.open > .mn-link, .mn-item.open > .mn-tg { background: rgba(255,255,255,.12); }
  .hdr.on-light .mn-item:hover > .mn-link, .hdr.on-light .mn-item:hover > .mn-tg, .hdr.on-light .mn-item.open > .mn-link, .hdr.on-light .mn-item.open > .mn-tg { background: var(--paper-2); }
  .mn-item.open .mn-tg .ico { transform: rotate(-90deg); }
  .mn-link[aria-current]::after { content: ""; position: absolute; left: 16px; right: 4px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--sun); }
  .mn-home { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: inherit; margin-right: 4px; }
  .mn-home:hover { background: rgba(255,255,255,.12); }
  .hdr.on-light .mn-home:hover { background: var(--paper-2); }
  .mn-home .ico { width: 20px; height: 20px; }
  .mn-pg { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); font-size: .9375rem; font-weight: 700; color: inherit; text-decoration: none; white-space: nowrap; }
  .mn-pg .ico { width: 18px; height: 18px; }
  .mn-pg small { font-weight: 400; opacity: .78; }
  .hdr.on-light .mn-pg { border-color: var(--line); }
  .mn-pg:hover { border-color: var(--sun); }

  .mn-panel { position: absolute; top: calc(100% - 2px); left: 0; z-index: 60; width: 420px; padding: 14px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px -30px rgba(7,19,39,.6), 0 0 0 1px rgba(13,23,38,.06); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s; }
  .mn-item:nth-last-child(-n+2) .mn-panel { left: auto; right: 0; }
  .mn-item:hover > .mn-panel, .mn-item.open > .mn-panel, .mn-item:focus-within > .mn-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease); }
  .mn-panel .mn-desc { padding: 6px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: .9375rem; line-height: 1.4; }
  .mn-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .mn-panel a { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; padding: 9px 10px; border-radius: 14px; text-decoration: none; color: var(--ink); }
  .mn-panel a:hover, .mn-panel a:focus-visible { background: var(--paper-2); }
  .mn-panel a .mi { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--brand); }
  .mn-panel a:hover .mi { background: #fff; }
  .mn-panel a b { font-family: var(--font-display); font-weight: 620; font-size: 1rem; line-height: 1.2; }
  .mn-panel a small { color: var(--ink-3); font-size: .875rem; line-height: 1.3; }
  .mn-panel .mn-all { display: flex; justify-content: space-between; margin-top: 8px; padding: 12px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: .9375rem; }
  .mn-panel .mn-all:hover { background: var(--brand-deep); }
  :root[data-contrast="high"] .mn-panel { border: 2px solid #000; }
}
@media (min-width: 960px) and (max-width: 1180px) {
  .mn-link { font-size: .975rem; padding-left: 12px; }
  .mn-pg small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mn-panel, .mn-tg .ico { transition: none !important; } }

/* ---------- Gaveta (celular): grupos do menu ---------- */
.dr-menu { display: grid; gap: 6px; }
.dr-menu details { border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.dr-menu summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; font-family: var(--font-display); font-weight: 620; font-stretch: 104%; font-size: 1.0625rem; }
.dr-menu summary::-webkit-details-marker { display: none; }
.dr-menu summary .chev { margin-left: auto; width: 18px; height: 18px; transform: rotate(90deg); transition: transform .3s var(--ease); opacity: .7; }
.dr-menu details[open] summary .chev { transform: rotate(-90deg); }
.dr-menu .dr-sub { display: grid; gap: 2px; padding: 0 10px 12px 58px; }
.dr-menu .dr-sub a { padding: 7px 10px; border-radius: 12px; text-decoration: none; color: rgba(255,255,255,.86); font-size: 1rem; }
.dr-menu .dr-sub a:hover { background: rgba(255,255,255,.1); color: #fff; }
.dr-menu .dr-sub a.dr-main { font-weight: 700; color: #fff; }
.dr-menu details.cur { border-color: rgba(243,154,44,.6); }

/* ---------- Componentes das páginas novas ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 99px; font-size: .8125rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-ok { background: #E3F4EA; color: var(--ok); }
.st-pend { background: #FFF1DE; color: #9A5300; }
.st-info { background: #E6F1FB; color: var(--brand); }
.st-ext { background: var(--paper-2); color: var(--ink-2); }

.doc-list { display: grid; gap: 10px; margin-top: 18px; }
.doc { display: grid; grid-template-columns: 48px 1fr auto; gap: 4px 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.doc .d-ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); color: var(--brand); }
.doc .d-ic .ico { width: 24px; height: 24px; }
.doc b { font-family: var(--font-display); font-weight: 640; line-height: 1.25; color: var(--ink); }
.doc small { grid-column: 2; color: var(--ink-3); font-size: .9375rem; line-height: 1.35; }
.doc .d-act { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; gap: 10px; }
.doc.pend { border-style: dashed; background: #FCFDFE; }
.doc.pend .d-ic { color: #9A5300; background: #FFF6EA; }
.btn-doc { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.btn-doc:hover { background: var(--brand-deep); }
.btn-doc .ico { width: 18px; height: 18px; }
.btn-doc.sec { background: var(--paper-2); color: var(--ink); }
@media (max-width: 640px) { .doc { grid-template-columns: 40px 1fr; } .doc .d-ic { width: 40px; height: 40px; } .doc .d-act { grid-column: 1 / -1; grid-row: auto; margin-top: 8px; flex-wrap: wrap; } }

.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.hub a { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.hub a:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-ui); }
.hub .mi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); color: var(--brand); }
.hub b { font-family: var(--font-display); font-weight: 640; font-size: 1.125rem; line-height: 1.2; }
.hub small { color: var(--ink-3); font-size: .9375rem; line-height: 1.4; }
@media (max-width: 900px) { .hub { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hub { grid-template-columns: 1fr; } }

.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.mvv > div { padding: 22px; border-radius: var(--r-lg); background: var(--paper-2); }
.mvv h3 { font-size: 1.25rem; margin-bottom: 8px; }
.mvv p, .mvv li { color: var(--ink-2); font-size: 1rem; }
.mvv ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 800px) { .mvv { grid-template-columns: 1fr; } }

.org { display: grid; gap: 14px; margin-top: 20px; justify-items: center; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.org-box { min-width: 170px; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); text-align: center; font-family: var(--font-display); font-weight: 640; line-height: 1.2; }
.org-box small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-3); font-size: .8125rem; margin-top: 4px; }
.org-box.top { background: var(--ink); color: #fff; border-color: var(--ink); }
.org-box.top small { color: rgba(255,255,255,.7); }
.org-box.acc { border-color: var(--sun); }
.org-line { width: 2px; height: 16px; background: var(--orbit); }

.modelo-nota { display: block; margin: 16px 0; padding: 14px 16px; border-radius: 16px; background: #FFF6EA; border: 1px dashed #E5A55A; color: #6B3D00; font-size: .9375rem; line-height: 1.45; }
.modelo-nota::before { content: "Nota do modelo"; display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 6px; background: #9A5300; color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
body.sem-notas .modelo-nota { display: none; }

.acoes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.acao { display: grid; grid-template-columns: 58px 1fr; gap: 2px 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.acao:hover { border-color: var(--ink); }
.acao code { grid-row: span 2; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--brand); text-align: center; padding: 8px 0; border-radius: 12px; background: var(--paper-2); }
.acao b { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.acao small { color: var(--ink-3); font-size: .875rem; }
.acao .ess { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--sun); color: var(--sun-ink); font-size: .75rem; font-weight: 700; vertical-align: 2px; }
.acoes-h { margin: 28px 0 0; font-size: 1.25rem; }
@media (max-width: 760px) { .acoes { grid-template-columns: 1fr; } }

.adesao { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 18px; padding: 22px; border-radius: var(--r-lg); background: var(--night); color: #fff; }
.adesao .ad-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--sun); }
.adesao .ad-ic .ico { width: 32px; height: 32px; }
.adesao b { font-family: var(--font-display); font-weight: 640; font-size: 1.25rem; }
.adesao p { color: rgba(255,255,255,.8); font-size: 1rem; margin-top: 4px; }

table.orgao caption { caption-side: top; text-align: left; padding: 0 0 8px; font-family: var(--font-display); font-weight: 640; color: var(--ink); }
.pt-menu .grupo { display: flex; align-items: center; gap: 6px; }
.pt-menu .grupo .ico { width: 16px; height: 16px; }
.pt-menu a .n { font-size: .8125rem; opacity: .6; font-weight: 700; }
.pt-menu a.ativo .n { opacity: .8; }

/* ---------- Ajustes Salazar (06/11) ---------- */
/* "Início" escrito, como combinado na reunião */
@media (min-width: 960px) {
  .mn-home { width: auto; padding: 0 14px 0 10px; gap: 6px; display: inline-flex; align-items: center; border-radius: 999px; font-family: var(--font-display); font-weight: 620; font-stretch: 104%; font-size: 1.0625rem; letter-spacing: -.01em; text-decoration: none; position: relative; }
  .mn-home .ico { width: 18px; height: 18px; }
  .mn-home[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--sun); }
}
@media (min-width: 960px) and (max-width: 1180px) { .mn-home { font-size: .975rem; padding: 0 10px 0 8px; } }
/* notas internas da consultoria: escondidas no site, aparecem com ?notas */
.modelo-nota { display: none; }
body.com-notas .modelo-nota { display: block; }
.dr-menu .dr-home { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-family: var(--font-display); font-weight: 620; font-stretch: 104%; font-size: 1.0625rem; text-decoration: none; color: inherit; }
/* cabe em toda largura de computador: o selo do Pró-Gestão encolhe e depois sai (ele segue no submenu de Gestão e Governança) */
@media (min-width: 960px) { .mn-pg { height: 42px; } .mn-pg span { display: grid; line-height: 1.05; } .mn-pg small { font-size: .75rem; font-weight: 600; opacity: .72; } }
@media (min-width: 960px) and (max-width: 1299px) { .mn-pg { display: none; } }
@media (min-width: 960px) and (max-width: 1099px) {
  .mn-home { padding: 0; width: 40px; justify-content: center; }
  .mn-home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mn-home[aria-current]::after { left: 10px; right: 10px; }
  .mn-link { font-size: .9375rem; padding-left: 10px; }
  .mn-tg { width: 28px; padding: 0 6px 0 0; }
  .mn-link[aria-current]::after { left: 10px; }
}
/* celular estreito: botões de texto longo quebram linha em vez de empurrar a página */
@media (max-width: 480px) {
  .bloco-legal .btn, .conteudo-legal .btn { white-space: normal; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; text-align: center; line-height: 1.25; max-width: 100%; }
}
/* âncoras não ficam escondidas atrás do cabeçalho de duas linhas */
@media (min-width: 960px) { html { scroll-padding-top: calc(var(--hdr-h) + 24px); } }
