/* Ajustes da versão de apresentação (o visual base vem de app.css, sem alterações).
   Foco: menu reduzido e boa leitura no celular. */

.lead-note { margin: -12px 0 18px; }
.list-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sort-label { display: flex; gap: 8px; align-items: center; }
.sidebar-foot b { color: #DCE3EE; font-weight: 600; }

/* Tablet */
@media (max-width: 1100px) {
  .main { padding: 24px 24px 56px; }
}

/* Celular */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 20; height: auto;
    padding: 12px 16px; gap: 10px; flex-direction: column;
  }
  .brand-mark { width: 32px; height: 32px; font-size: 18px; border-radius: 8px; }
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 10.5px; }
  .nav { flex-direction: row; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 8px 14px; font-size: 13px; flex: none; }
  .nav a.active { box-shadow: inset 0 -2px 0 var(--gold); }
  .sidebar-foot { display: none; }

  .main { padding: 18px 14px 48px; }
  .topbar { margin-bottom: 18px; }
  h1 { font-size: 25px; }
  h2 { font-size: 19px; }
  .lead-note { margin: -8px 0 14px; }

  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 16px; }
  .kpi-value { font-size: 23px; white-space: normal; }
  .kpi-label { font-size: 10.5px; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .list-controls { width: 100%; }
  .sort-label { flex: 1; }
  .sort-label select { flex: 1; min-width: 0; }

  .camp-card { padding: 16px; }
  .cc-head { flex-direction: column; gap: 10px; }
  .cc-tags { justify-content: flex-start; }
  .cc-name { font-size: 17px; word-break: break-word; }
  .cc-dates { grid-template-columns: 1fr 1fr; padding: 12px; }
  .cc-body { grid-template-columns: 1fr; gap: 18px; }
  .cc-main { grid-template-columns: 1fr 1fr; }
  .cc-main .cc-m b { font-size: 21px; white-space: normal; }
  .cc-grid { grid-template-columns: 1fr 1fr; }
  .f-step { font-size: 12px; padding: 9px 12px; }

  .table-wrap { -webkit-overflow-scrolling: touch; }
  table.data { font-size: 12px; }
}

/* Celular pequeno */
@media (max-width: 420px) {
  .g4 { grid-template-columns: 1fr; }
  .cc-dates { grid-template-columns: 1fr; }
}

/* ===== Capa de abertura ===== */
.capa { display: none; }
body.na-capa .capa { display: flex; }
body.na-capa .app { display: none; }
.capa {
  min-height: 100vh; background: var(--navy); color: #fff; position: relative; overflow: hidden;
  align-items: stretch; justify-content: center;
}
.capa::before, .capa::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(201, 169, 110, .22);
}
.capa::before { width: 820px; height: 820px; right: -300px; top: -320px; }
.capa::after { width: 480px; height: 480px; right: -130px; top: -150px; border-color: rgba(201, 169, 110, .16); }
.capa-inner {
  position: relative; z-index: 1; width: 100%; max-width: 1080px;
  padding: 56px 64px 44px; display: flex; flex-direction: column; min-height: 100vh;
}
.capa-top { display: flex; align-items: center; gap: 14px; }
.capa-mark {
  width: 46px; height: 46px; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 11px;
  display: grid; place-items: center; font-family: var(--serif); font-size: 25px;
}
.capa-brand { font-family: var(--serif); font-size: 19px; letter-spacing: .22em; }
.capa-body { margin: auto 0; padding: 48px 0; }
.capa-eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .26em; font-size: 14px; font-weight: 600; }
.capa-title { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6.4vw, 74px); line-height: 1.06; margin: 14px 0 0; letter-spacing: -.01em; color: #fff; }
.capa-rule { width: 84px; height: 2px; background: var(--gold); margin: 30px 0 22px; }
.capa-period { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); color: #fff; }
.capa-btn {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 14px;
  background: var(--gold); color: var(--navy); border: 1px solid var(--gold);
  padding: 16px 30px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.capa-btn span { font-size: 18px; transition: transform .15s ease; }
.capa-btn:hover { background: #D6BA85; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.capa-btn:hover span { transform: translateX(4px); }
.capa-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.capa-foot { display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; }
.capa-foot span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); margin-bottom: 5px; }
.capa-foot b { font-weight: 500; font-size: 15px; color: #fff; }

/* Rodapé de identificação nas páginas dos relatórios */
.ap-foot {
  margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.ap-foot b { color: var(--ink); font-weight: 600; }

@media (max-width: 700px) {
  .capa-inner { padding: 32px 24px 28px; }
  .capa::before { width: 520px; height: 520px; right: -260px; top: -220px; }
  .capa::after { width: 300px; height: 300px; right: -120px; top: -110px; }
  .capa-brand { font-size: 15px; }
  .capa-eyebrow { font-size: 12px; }
  .capa-btn { width: 100%; justify-content: center; padding: 16px 20px; font-size: 14px; }
  .capa-foot { gap: 18px; flex-direction: column; }
  .ap-foot { flex-direction: column; }
}
