/* Portal público - Cultura Municipal (gerado estaticamente) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #1E40AF;
  --accent-ink: #1E3A8A;
  --accent-ink-hover: #0F1F4D;
  --accent-soft: #EEF2FF;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #4B5563;
  --subtle: #6B7280;
  --line: #E5E7EB;
  --line-2: #F3F4F6;
  --line-strong: #D1D5DB;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFF;
  --bg-gray: #F3F4F6;
  --warm-bg: #FFF7ED;
  --warm-ink: #9A3412;
  --ok-bg: #ECFDF5;
  --ok-ink: #047857;
  --info-bg: #EFF6FF;
  --info-ink: #1D4ED8;
  --radius: 14px;
  --radius-sm: 10px;
}

html.contrast {
  --accent: #000000;
  --accent-ink: #000000;
  --accent-ink-hover: #000000;
  --ink: #000000;
  --ink-2: #000000;
  --muted: #000000;
  --subtle: #111111;
  --line: #000000;
  --line-strong: #000000;
  --bg-soft: #FFFFFF;
  --warm-ink: #000000;
}
html.contrast a { text-decoration: underline; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent-ink-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

.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; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }
.js-only { display: none !important; }
html.js .js-only { display: flex !important; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* utilitários */
.stack-4, .stack-6, .stack-10, .stack-16, .stack-20 { display: flex; flex-direction: column; }
.stack-4 { gap: 4px; } .stack-6 { gap: 6px; } .stack-10 { gap: 10px; } .stack-16 { gap: 16px; } .stack-20 { gap: 20px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-between.baseline { align-items: baseline; }
.minw0 { min-width: 0; }
.self-start { align-self: flex-start; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.strong { color: var(--ink); }
.small { font-size: 14px; }
.xsmall { font-size: 13px; }
.semibold { font-weight: 600; }
.bold { font-weight: 700; }
.tabular { font-variant-numeric: tabular-nums; }
.empty { padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* topo */
.topbar { background: var(--bg-gray); font-size: 13px; color: var(--ink-2); }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.topbar__links { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar a, .linklike { color: var(--ink-2); }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.topbar__link { display: inline-flex; align-items: center; gap: 6px; }
.topbar__icon { display: none; flex: none; }
/* Área restrita: cadeado visível também no computador, separado dos links de acessibilidade */
.topbar__icon--always { display: block; width: 14px; height: 14px; }
.topbar__link--restrita { font-weight: 600; padding-left: 16px; border-left: 1px solid #D1D5DB; }

/* Celular: links da faixa superior viram ícones (texto continua para leitores de tela) */
@media (max-width: 600px) {
  .topbar__inner { flex-wrap: nowrap; align-items: center; padding-top: 4px; padding-bottom: 4px; }
  .topbar__org { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar__org-extra { display: none; }
  .topbar__links { flex: none; flex-wrap: nowrap; gap: 4px; }
  .topbar__icon { display: block; }
  .topbar__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar__link { justify-content: center; width: 36px; height: 36px; border-radius: 8px; color: var(--ink-2); }
  .topbar__link--restrita { padding-left: 0; border-left: 0; }
  .topbar__icon--always { width: 18px; height: 18px; }
  .topbar__link:hover, .topbar__link:focus-visible { background: #E5E7EB; text-decoration: none; }
  .topbar__link[aria-pressed="true"] { background: var(--ink); color: #fff; }
}

.site-header { position: relative; border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__bg { fill: var(--accent); }
.brand__icon { width: 36px; height: 36px; object-fit: contain; border-radius: 9px; flex: none; }
.brand__logo { display: block; height: 48px; width: auto; max-width: 260px; object-fit: contain; }
@media (max-width: 600px) { .brand__logo { height: 40px; max-width: 200px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand__sub { font-size: 12px; color: var(--subtle); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 auto; }
.nav a { padding: 24px 12px 22px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { font-weight: 700; color: var(--ink); border-bottom-color: var(--accent); }
.site-menu { display: flex; align-items: center; gap: 12px 28px; flex: 1 1 auto; min-width: 0; }
.menu-toggle { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 14px; margin-left: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.menu-toggle:hover { background: var(--bg-gray); }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* Celular e tablet */
@media (max-width: 1080px) {
  .site-header__inner { min-height: 64px; flex-wrap: nowrap; }
  .brand { min-width: 0; }
  .brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand__text { min-width: 0; }

  /* Sem JavaScript: menu continua visível, rolando na horizontal */
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-menu { flex-basis: 100%; flex-wrap: wrap; order: 3; padding-bottom: 12px; }
  html:not(.js) .nav { flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  html:not(.js) .nav a { padding: 12px 10px; white-space: nowrap; }

  /* Com JavaScript: botão "Menu" abre um painel */
  html.js .menu-toggle { display: inline-flex; flex: none; }
  html.js .site-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(17, 24, 39, .12);
    max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain;
  }
  html.js .site-menu.is-open { display: flex; }
  html.js .site-menu .nav { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  html.js .site-menu .nav a {
    padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--line-2);
    border-left: 3px solid transparent;
  }
  html.js .site-menu .nav a[aria-current="page"] { border-bottom-color: var(--line-2); border-left-color: var(--accent); background: var(--bg-soft); }
  html.js .site-menu__cta { height: 48px; }
}
@media (max-width: 600px) {
  html.js .site-menu { padding: 8px 16px 20px; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-toggle { padding: 0 11px; }
}

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: var(--radius-sm); font: inherit; font-weight: 700; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { color: #fff; filter: brightness(1.1); }
.btn--ghost { border-color: var(--line-strong); background: #fff; color: var(--ink); font-weight: 600; }
.btn--ghost:hover { color: var(--ink); background: var(--bg-gray); }
.btn--lg { height: 48px; padding: 0 20px; }
.btn--xl { height: 52px; padding: 0 28px; }
.btn--block { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* hero */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero__inner { padding-top: 56px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 32vw, 440px); align-items: center; gap: 24px 48px; }
.hero__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero__art { display: block; }
/* multiply: o fundo branco da ilustração se funde ao fundo azul-claro do destaque */
.hero__art img { display: block; width: 85%; height: auto; margin: 0 auto; mix-blend-mode: multiply; }
/* Abaixo de 1081 px (mesmo ponto do menu mobile) a ilustração sairia espremida e empurraria a busca: fica oculta */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 36px; }
  .hero__art { display: none; }
}
.hero__text { max-width: 760px; }
.hero__title { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.lead { font-size: 18px; color: var(--muted); }

.search { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; max-width: 860px; box-shadow: 0 4px 16px rgba(17,24,39,.05); }
.search__scope { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; border-right: 1px solid var(--line); min-height: 48px; }
.search__label { font-size: 11px; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .04em; }
.search select { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); padding: 0; outline: none; }
.search__field { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--subtle); }
.search__field input { flex: 1; border: 0; outline: none; background: transparent; font: inherit; color: var(--ink); min-height: 48px; min-width: 0; }
@media (max-width: 600px) { .search__scope { border-right: 0; flex-basis: 100%; } .search .btn { flex-basis: 100%; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.chip { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink-2); }
.chip:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }

/* seções */
.sections { display: flex; flex-direction: column; gap: 64px; padding-top: 40px; padding-bottom: 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.section-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.page-title { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.breadcrumb { font-size: 13px; color: var(--subtle); }

.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.number { padding: 20px 0; border-top: 3px solid var(--accent); display: flex; flex-direction: column; gap: 4px; }
.number__value { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

.grid { display: grid; gap: 16px; }
.grid--340 { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.grid--260 { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 960px) { .grid--split { grid-template-columns: minmax(0, 1fr); } }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card__title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.card__title--sm { font-size: 16px; }
.card__title a { color: var(--ink); }
.card--edital { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card--evento { display: flex; gap: 16px; padding: 18px; align-items: flex-start; }
.card--espaco { display: flex; flex-direction: column; gap: 10px; padding: 20px; color: var(--ink); }
.card--espaco:hover { text-decoration: none; border-color: var(--accent); color: var(--ink); }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill--inscricoes_abertas { background: var(--ok-bg); color: var(--ok-ink); }
.pill--em_avaliacao { background: var(--info-bg); color: var(--info-ink); }
.pill--recursos { background: var(--warm-bg); color: var(--warm-ink); }
.pill--resultado_final, .pill--rascunho { background: var(--bg-gray); color: var(--ink-2); }
.restam { font-size: 13px; font-weight: 700; color: var(--warm-ink); }

.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.facts dt { font-size: 12px; color: var(--subtle); }
.facts dd { margin: 0; font-weight: 700; }
.facts--stacked { grid-template-columns: 1fr; gap: 14px; border: 0; padding: 0; }

.datebox { width: 60px; flex: none; padding: 8px 0; border-radius: var(--radius-sm); background: var(--warm-bg); color: var(--warm-ink); display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.datebox__day { font-size: 22px; font-weight: 800; }
.datebox__month { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { height: 40px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); }
.filter[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }

.iconbox { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; background: #fff; }
.panel__title { font-size: 17px; font-weight: 700; }
.bar { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--accent); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--subtle); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.input-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--subtle); }
.input-search input { border: 0; outline: none; background: transparent; font: inherit; font-size: 14px; color: var(--ink); width: 200px; }

.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 32px; border-radius: 16px; background: var(--bg-soft); border: 1px solid #E0E7FF; }
.cta__text { max-width: 640px; }
.cta__title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 24px; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.detail__aside { position: sticky; top: 16px; }
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.65; }
.prose h2 { font-size: 22px; margin-top: 16px; }

.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.results li { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 2px; }
.results .eyebrow { font-size: 11px; }
.notfound { min-height: 40vh; justify-content: center; }

.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: #FAFAFA; font-size: 14px; color: var(--muted); }
.site-footer__grid { padding-top: 40px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.site-footer strong { color: var(--ink); }
.site-footer__bottom { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); }
.span-2 { min-width: 0; }

/* ---------- cadastro de agente cultural ---------- */
.notice { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.notice--info { background: var(--bg-soft); border: 1px solid #E0E7FF; color: var(--accent-ink); }
.notice--error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font-weight: 600; }
.notice--warn { background: var(--warm-bg); border: 1px solid #FED7AA; color: var(--warm-ink); }

.cadastro { padding-top: 40px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 28px; }
.cadastro__intro { max-width: 760px; }
.cadastro__grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cadastro__aside { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 860px) { .cadastro__aside { max-width: none; } .steps { display: none; } }
.bar--sm { height: 8px; }
.bar__fill { transition: width .3s ease; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.steps__item { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.steps__mark { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 1px solid var(--line-strong); color: var(--subtle); background: #fff; }
.steps__text { display: flex; flex-direction: column; line-height: 1.25; }
.steps__name { font-size: 15px; font-weight: 500; color: var(--muted); }
.steps__item.is-current .steps__mark { border: 2px solid var(--accent); color: var(--accent); }
.steps__item.is-current .steps__name { font-weight: 700; color: var(--ink); }
.steps__item.is-done .steps__mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps__item.is-done .steps__name { font-weight: 600; color: var(--ink); }

.wizard { flex: 999 1 560px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 600px) { .wizard { padding: 20px; } }
.wizard__step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
html.js .wizard__step { display: none; }
html.js .wizard__step.is-active { display: flex; }
.wizard__legend { padding: 0; margin-bottom: 4px; display: flex; flex-direction: column; gap: 4px; }
.wizard__title { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; outline: none; }
.wizard__nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.wizard__nav-right { margin-left: auto; }
.btn--text { background: transparent; color: var(--ink-2); font-weight: 600; }
.btn--text:hover { color: var(--ink); background: var(--bg-gray); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.tipo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tipo-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; min-height: 140px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: #fff; }
.tipo-card input { width: 20px; height: 20px; margin: 0 0 4px; accent-color: var(--accent); }
.tipo-card__title { font-weight: 700; font-size: 16px; color: var(--ink); }
.tipo-card:has(input:checked) { border: 2px solid var(--accent); background: var(--bg-soft); padding: 17px; }
.tipo-card:has(input:focus-visible) { outline: 3px solid #F59E0B; outline-offset: 2px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.form-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.form-grid--address { grid-template-columns: minmax(0, 3fr) minmax(90px, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label, .field__label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; min-width: 0; }
.field select { padding: 0 12px; }
.field textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #B91C1C; }
.hint { font-size: 13px; color: var(--subtle); }
.field-error { font-size: 13px; font-weight: 600; color: #B91C1C; }
.field-error:empty { display: none; }
.req { color: #B91C1C; }
.box { padding: 20px; border-radius: 12px; background: #FAFAFA; border: 1px solid var(--line); }

.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); }
.chip-check input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }
.chip-check input:checked + span::before { content: '✓'; margin-right: 6px; }
.chip-check input:focus-visible + span { outline: 3px solid #F59E0B; outline-offset: 2px; }

.dropzone { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; border: 2px dashed var(--line-strong); border-radius: 12px; text-align: center; color: var(--muted); cursor: pointer; }
.dropzone input { font: inherit; font-size: 14px; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }

.review { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.review__row:last-child { border-bottom: 0; }
.review dt { font-size: 13px; color: var(--subtle); }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.btn--sm { height: 36px; padding: 0 12px; font-size: 14px; }

.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 32px 8px; outline: none; }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); display: grid; place-items: center; }
.done__title { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.done p { max-width: 480px; }
.protocol { padding: 14px 24px; border-radius: 12px; background: var(--bg-soft); border: 1px solid #E0E7FF; display: flex; flex-direction: column; gap: 2px; }
.protocol__number { font-size: 22px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.actions--center { justify-content: center; }

@media print {
  .topbar, .site-header .btn, .search, .filters, .site-footer { display: none !important; }
  .cadastro__aside, .cadastro__intro, .wizard__nav, .site-header .nav, .done .actions { display: none !important; }
  .wizard { border: 0; padding: 0; }
}

/* larguras de barra p0…p100 (sem style inline, compatível com CSP) */
.p0{width:0%}.p1{width:1%}.p2{width:2%}.p3{width:3%}.p4{width:4%}.p5{width:5%}.p6{width:6%}.p7{width:7%}.p8{width:8%}.p9{width:9%}.p10{width:10%}.p11{width:11%}.p12{width:12%}.p13{width:13%}.p14{width:14%}.p15{width:15%}.p16{width:16%}.p17{width:17%}.p18{width:18%}.p19{width:19%}.p20{width:20%}.p21{width:21%}.p22{width:22%}.p23{width:23%}.p24{width:24%}.p25{width:25%}.p26{width:26%}.p27{width:27%}.p28{width:28%}.p29{width:29%}.p30{width:30%}.p31{width:31%}.p32{width:32%}.p33{width:33%}.p34{width:34%}.p35{width:35%}.p36{width:36%}.p37{width:37%}.p38{width:38%}.p39{width:39%}.p40{width:40%}.p41{width:41%}.p42{width:42%}.p43{width:43%}.p44{width:44%}.p45{width:45%}.p46{width:46%}.p47{width:47%}.p48{width:48%}.p49{width:49%}.p50{width:50%}.p51{width:51%}.p52{width:52%}.p53{width:53%}.p54{width:54%}.p55{width:55%}.p56{width:56%}.p57{width:57%}.p58{width:58%}.p59{width:59%}.p60{width:60%}.p61{width:61%}.p62{width:62%}.p63{width:63%}.p64{width:64%}.p65{width:65%}.p66{width:66%}.p67{width:67%}.p68{width:68%}.p69{width:69%}.p70{width:70%}.p71{width:71%}.p72{width:72%}.p73{width:73%}.p74{width:74%}.p75{width:75%}.p76{width:76%}.p77{width:77%}.p78{width:78%}.p79{width:79%}.p80{width:80%}.p81{width:81%}.p82{width:82%}.p83{width:83%}.p84{width:84%}.p85{width:85%}.p86{width:86%}.p87{width:87%}.p88{width:88%}.p89{width:89%}.p90{width:90%}.p91{width:91%}.p92{width:92%}.p93{width:93%}.p94{width:94%}.p95{width:95%}.p96{width:96%}.p97{width:97%}.p98{width:98%}.p99{width:99%}.p100{width:100%}
