/* Mobilização Nacional — base compartilhada.
   Voz de interface: Archivo. Voz do documento (texto das reivindicações): Alegreya. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fontes/archivo.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya";
  src: url("/assets/fontes/alegreya-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #111613;
  --ink-soft: #4a544e;
  --rule: #d9ddd9;
  --field: #6b756f;
  --surface: #f3f5f3;
  --green: #006b3a;
  --green-strong: #00522c;
  --red: #a4261a;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  font-stretch: 82%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--green-strong); text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; top: -120px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--ink); color: #fff; font-weight: 600; }
.skip-link:focus { top: 8px; color: #fff; }

/* Faixa da versão de demonstração (MOB_DEMO=1), inserida pelo servidor */
.demo-banner { padding: 9px var(--gutter); background: var(--ink); color: #fff; font-size: .9375rem; font-weight: 600; line-height: 1.4; text-align: center; }

/* Cabeçalho */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: flex-end; gap: 10px; color: var(--ink); font-size: 1.1875rem; font-stretch: 84%; font-weight: 700; line-height: 1; letter-spacing: -.008em; text-decoration: none; }
.brand:hover { color: var(--ink); }
/* O símbolo fica em pé na linha de base do nome: a margem inferior compensa o espaço abaixo da linha de base. */
.brand-mark { display: block; width: auto; height: 1.26em; margin-bottom: .166em; flex: none; }
.main-nav { display: flex; align-items: stretch; gap: clamp(18px, 3vw, 32px); align-self: stretch; }
.main-nav a { display: inline-flex; align-items: center; border-block: 2px solid transparent; color: var(--ink); font-size: 1rem; font-weight: 500; text-decoration: none; }
.main-nav a:hover { border-bottom-color: var(--rule); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 600; }

/* Botões */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 4px;
  font-size: 1.0625rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .12s ease;
}
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-strong); color: #fff; }
.button-primary:active { background: #003d21; }
.button-secondary { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.button-secondary:hover { background: var(--surface); color: var(--ink); }
.button-secondary:active { background: var(--rule); }
.button:disabled, .button[aria-disabled="true"] { opacity: .55; cursor: default; }
.button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Campos */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 10px 14px;
  border: 1px solid var(--ink); border-radius: 4px;
  background-color: var(--paper); color: var(--ink);
  font-size: 1.0625rem; line-height: 1.35;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23111613' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

/* Grade do documento: texto à esquerda, notas de margem à direita */
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  column-gap: clamp(48px, 8vw, 128px);
  align-items: start;
  padding-block: clamp(36px, 5.5vw, 76px) clamp(72px, 9vw, 128px);
}
.doc-main { min-width: 0; }
.doc-title { font-size: clamp(2rem, 9.2vw, 3rem); line-height: 1.02; letter-spacing: -.018em; }
.doc-lead { max-width: 33em; margin-top: 18px; color: var(--ink-soft); font-size: 1.1875rem; line-height: 1.45; }
.side-notes { align-self: stretch; }
.side-notes-inner { position: sticky; top: 32px; margin-top: 10px; padding-left: 28px; border-left: 1px solid var(--rule); }
.side-note + .side-note { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--rule); }
.side-note h2 { font-size: 1rem; font-stretch: 100%; line-height: 1.3; letter-spacing: 0; }
.side-note p { margin-top: 6px; font-size: .9375rem; line-height: 1.5; }
.side-note > a:not(.button) { display: inline-block; margin-top: 8px; font-size: .9375rem; font-weight: 600; }
.side-note .button { margin-top: 14px; }
.side-note .side-note-flag { color: var(--ink-soft); }

/* Página simples: confirmação e página não encontrada */
.plain-page { padding-block: clamp(36px, 5.5vw, 76px) clamp(72px, 10vw, 136px); }
.plain-page h1 { max-width: 46rem; }
.plain-page > p { max-width: 34em; margin-top: 20px; font-size: 1.1875rem; line-height: 1.5; }
.plain-page .button-row { align-items: center; gap: 16px 28px; margin-top: 36px; }
.plain-page .button-row a:not(.button) { font-weight: 600; }

/* Rodapé */
.site-footer { border-top: 2px solid var(--ink); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: start; gap: 24px clamp(32px, 5vw, 72px); padding-block: 36px 56px; }
.footer-about { max-width: 30em; }
.footer-about p { margin-top: 12px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.5; }
.footer-organizer { margin: 0; padding-top: 4px; font-size: .9375rem; line-height: 1.5; }
.footer-organizer div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); column-gap: 10px; }
.footer-organizer div + div { margin-top: 3px; }
.footer-organizer dt { color: var(--ink-soft); }
.footer-organizer dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.footer-organizer a { color: var(--ink); }
.footer-nav { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.footer-nav a { color: var(--ink); font-size: 1rem; }

@media (min-width: 1000px) {
  .doc-title { font-size: 3.75rem; }
}
@media (max-width: 999px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 10px 28px; }
  .doc-layout { grid-template-columns: minmax(0, 46rem); }
  .side-notes { margin-top: 56px; }
  .side-notes-inner { position: static; margin-top: 0; padding: 24px 0 0; border-left: 0; border-top: 2px solid var(--ink); }
  .side-note p { max-width: 34em; }
}
@media (max-width: 560px) {
  .doc-lead { font-size: 1.0625rem; }
}
@media (max-width: 420px) {
  .header-inner { gap: 12px; min-height: 62px; }
  .brand { gap: 9px; font-size: 1rem; }
  .brand-mark { height: 1.72em; }
  .brand-text { max-width: 6.2em; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .9375rem; }
}
@media (forced-colors: active) {
  .field select { appearance: auto; -webkit-appearance: auto; background-image: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
