/* =============================================================
   Confea Habita - folha de estilo do portal
   Organizacao: 1 tokens . 2 base . 3 layout . 4 componentes
   . 5 paginas . 6 MudBlazor . 7 responsivo e preferencias

   Base histórica das fontes institucionais, com liberdade editorial
   autorizada pelo usuário nesta revisão. Tokens atuais prevalecem:
   - Manual da marca 2023, p. 5: cores-padrao azul #00509B, ouro
     #BA9705 e preto #231F20.
   - Guia de Estilo digital, p. 7: fundos #094C8C, #E8E8E8, #FFFFFF
     e cores #434343, #535353, #E8E8E8, #094C8C, #427BBD, #4A89D3,
     #C1D4EB.
   - Guia de Estilo digital, p. 6: escala de titulos 32/28/24/18 px,
     corpo 16 px com espacamento 24 px, legenda 14 px com 20 px, e a
     linha de destaque de 5 px sobre filete de 1 px.
   A paleta atual combina azul profundo e neutros quentes; a abertura
   usa título serifado. Logomarcas conservam seus arquivos originais.
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Azuis do guia digital. */
  --azul: #234b60;
  --azul-medio: #427bbd;
  --azul-claro: #4a89d3;
  --azul-palido: #c1d4eb;
  --azul-lavado: #eef2f2;
  --azul-fundo: #183746;

  /* Ouro e preto da marca: acento e tinta dos titulos. */
  --ouro: #ba9705;
  --preto: #252d30;

  /* Neutros do guia digital. */
  --texto: #434343;
  --texto-suave: #535353;
  --linha: #dfdfd8;
  --linha-forte: #d0d0d0; /* color-mix(#e8e8e8 60%, #535353 12%) */
  --branco: #ffffff;
  --cinza: #f5f4ef;

  /* Escala tipografica do guia, em px fixos. */
  --t-h1: 2rem;        /* 32 px */
  --t-h2: 1.75rem;     /* 28 px */
  --t-h3: 1.5rem;      /* 24 px */
  --t-h4: 1.125rem;    /* 18 px */
  --t-destaque: 1.25rem; /* 20 px */
  --t-corpo: 1rem;     /* 16 px */
  --t-legenda: 0.875rem; /* 14 px */

  --lh-titulo: 1.25;
  --lh-h3: 1.34;
  --lh-h4: 1.56;
  --lh-destaque: 1.5;
  --lh-corpo: 1.5;
  --lh-legenda: 1.43;

  /* Ritmo de espaco em multiplos de 4. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --secao: clamp(48px, 6vw, 80px);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 999px;

  --sombra-sutil: 0 1px 2px rgba(35, 31, 32, 0.07);
  --sombra-media: 0 1px 2px rgba(35, 31, 32, 0.06), 0 10px 24px -14px rgba(35, 31, 32, 0.35);
  --sombra-alta: 0 2px 4px rgba(35, 31, 32, 0.06), 0 18px 40px -18px rgba(35, 31, 32, 0.4);

  --medida: 62ch;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* Fontes locais do guia digital, licenca OFL incluida em fonts/. */
@font-face {
  font-family: Lato;
  src: url('fonts/lato/Lato-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url('fonts/lato/Lato-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--branco);
  color: var(--texto);
  font-family: Lato, 'Segoe UI', Arial, sans-serif;
  font-size: var(--t-corpo);
  line-height: var(--lh-corpo);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--s-4);
  color: var(--preto);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: var(--lh-titulo); }
h2 { font-size: var(--t-h2); line-height: var(--lh-titulo); }
h3 { font-size: var(--t-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--t-h4); line-height: var(--lh-h4); }

p { margin: 0 0 var(--s-5); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--azul);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }

:where(a, button, summary, select, input, [tabindex]):focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

img, svg { max-width: 100%; }

hr {
  border: 0;
  border-top: 1px solid var(--linha);
  margin: var(--s-6) 0;
}

ul, ol { margin: 0 0 var(--s-5); padding-left: 1.25em; }
li { margin-bottom: var(--s-2); }

/* Titulo de pagina nao deve exibir contorno ao receber foco programatico. */
h1:focus { outline: none; }

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-6);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--secao); }
.section--tight { padding-block: var(--s-6); }
.section--brand { background: var(--azul); color: var(--branco); }
.section--muted { background: var(--cinza); }

/* Titulo de secao com a linha de destaque do guia: filete de 1 px e
   segmento de 5 px em ouro. */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  position: relative;
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--linha);
}
.section-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 0;
  background: var(--ouro);
}
.section--brand .section-heading { border-bottom-color: rgba(255, 255, 255, 0.35); }
.section-heading > div { max-width: 54ch; }
.section-heading h2 { margin-bottom: var(--s-2); }
.section-heading p { margin: 0; color: var(--texto-suave); }
.section-heading > a { padding-bottom: var(--s-1); }

.eyebrow {
  display: block;
  margin-bottom: var(--s-3);
  color: var(--texto-suave);
  font-size: var(--t-legenda);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: var(--lh-legenda);
  text-transform: none;
}
.eyebrow::before {
  content: '';
  display: none;
  width: 22px;
  height: 3px;
  margin-right: var(--s-2);
  vertical-align: 0.22em;
  background: var(--ouro);
}
.section--brand .eyebrow { color: var(--azul-palido); }

.lead {
  max-width: var(--medida);
  color: var(--texto-suave);
  font-size: var(--t-destaque);
  line-height: var(--lh-destaque);
}

/* Texto disponivel a leitores de tela, oculto visualmente. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: var(--s-4);
  top: var(--s-2);
  z-index: 9999;
  padding: var(--s-3) var(--s-4);
  background: var(--branco);
  border: 2px solid var(--azul);
  border-radius: var(--r-md);
  box-shadow: var(--sombra-alta);
  font-weight: 700;
  transform: translateY(-200%);
  clip-path: inset(100%);
}
.skip-link:focus {
  transform: none;
  clip-path: none;
}

/* ---------- 4. Componentes ---------- */

/* 4.1 Icones: traco unico, herdam a cor do texto. */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.28em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; }
.icon--xl { width: 2.5em; height: 2.5em; }

/* 4.2 Botoes e acoes. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--t-corpo);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn .icon { transition: transform 0.16s var(--ease); }

.btn--primary {
  background: var(--azul);
  border-color: var(--azul);
  color: var(--branco);
  box-shadow: var(--sombra-sutil);
}
.btn--primary:hover { background: var(--azul-fundo); border-color: var(--azul-fundo); }

.btn--outline {
  background: var(--branco);
  border-color: var(--linha-forte);
  color: var(--azul);
}
.btn--outline:hover { border-color: var(--azul); background: var(--azul-lavado); }

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--texto-suave);
  padding-inline: var(--s-4);
}
.btn--ghost:hover { background: var(--cinza); color: var(--preto); }

.btn--inverse {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--branco);
}
.btn--inverse:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--branco); }

.btn--block { width: 100%; }
.btn[disabled],
.btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }

.btn--primary:hover .icon,
.btn--outline:hover .icon { transform: translateX(2px); }

/* Acao textual com seta: substitui setas escritas como caractere. */
.action-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-corpo);
  font-weight: 700;
  line-height: var(--lh-corpo);
}
.action-link .icon { transition: transform 0.16s var(--ease); }
.action-link:hover .icon { transform: translate(2px, -2px); }
.action-link--forward:hover .icon { transform: translateX(3px); }
.section--brand .action-link { color: var(--branco); text-decoration: underline; }

/* 4.3 Superficies. */
.card {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--r-lg);
  box-shadow: var(--sombra-sutil);
}
.card__body { padding: var(--s-6); }
.card--flat { box-shadow: none; }
.card--accent { border-top: 5px solid var(--ouro); }

.panel {
  background: var(--cinza);
  border: 1px solid var(--linha);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

/* 4.4 Avisos: substituem o alerta generico da biblioteca. */
.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--azul-palido);
  border-left: 5px solid var(--azul);
  border-radius: var(--r-md);
  background: var(--azul-lavado);
  color: var(--texto);
  font-size: var(--t-corpo);
  line-height: var(--lh-corpo);
}
.notice p { margin: 0; }
.notice p + p { margin-top: var(--s-2); }
.notice .icon { color: var(--azul); margin-top: 3px; }
.notice--plain {
  background: var(--cinza);
  border-color: var(--linha);
  border-left-color: var(--ouro);
}
.notice--plain .icon { color: var(--texto-suave); }
.notice--bare {
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--t-legenda);
  line-height: var(--lh-legenda);
  color: var(--texto-suave);
}
.notice--bare .icon { color: var(--texto-suave); margin-top: 2px; }

/* 4.5 Etiquetas de servico e metadados. */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
}
.chip-list li { margin: 0; }
.chip {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--linha);
  border-radius: var(--r-sm);
  background: var(--cinza);
  color: var(--azul);
  font-size: var(--t-legenda);
  font-weight: 700;
  line-height: var(--lh-legenda);
}
.chip--muted {
  background: var(--cinza);
  border-color: var(--linha);
  color: var(--texto-suave);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  color: var(--texto-suave);
  font-size: var(--t-corpo);
}
.meta-row > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-row .icon { color: var(--azul-medio); }

.tag-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  border-radius: 0;
  color: var(--texto-suave);
  font-size: var(--t-legenda);
  font-weight: 700;
  line-height: var(--lh-legenda);
  white-space: normal;
}

.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--r-full);
  background: var(--azul-palido);
  color: var(--azul);
  font-size: var(--t-h4);
  font-weight: 700;
  line-height: 1;
}
.avatar--lg { width: 80px; height: 80px; font-size: var(--t-h3); }
img.avatar { object-fit: cover; background: var(--azul-palido); }

/* 4.6 Campos de formulario proprios. */
.field { display: block; }
.field__label {
  display: block;
  margin-bottom: var(--s-2);
  color: var(--preto);
  font-size: var(--t-corpo);
  font-weight: 700;
}
.field select,
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px var(--s-4);
  border: 1px solid var(--linha-forte);
  border-radius: var(--r-md);
  background: var(--branco);
  color: var(--texto);
  font: inherit;
  font-size: var(--t-corpo);
}
.field select {
  padding-right: 44px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23434343' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  background-size: 20px;
}
.field select:hover,
.field input:hover { border-color: var(--texto-suave); }

/* 4.7 Texto longo de paginas institucionais. */
.prose { max-width: var(--medida); }
.prose h2 {
  position: relative;
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--linha);
  font-size: var(--t-h3);
}
.prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 72px;
  height: 5px;
  background: var(--ouro);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2:first-child::before { display: none; }
.prose p { color: var(--texto-suave); }
.prose .notice { margin-top: var(--s-5); }

/* ---------- 5. Paginas ---------- */

/* 5.1 Faixa institucional e cabecalho. */
.masthead {
  background: var(--azul);
  border-top: 5px solid var(--ouro);
  color: var(--branco);
}
.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-6);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--s-4) var(--s-6);
}
.masthead p {
  margin: 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--t-legenda);
  line-height: var(--lh-legenda);
}
.masthead__flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--r-full);
  font-size: var(--t-legenda);
  font-weight: 700;
  line-height: var(--lh-legenda);
  white-space: nowrap;
}
.masthead a:focus-visible { outline-color: var(--branco); }

.confea-logo { display: block; flex: none; }
.confea-logo img { display: block; width: 190px; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--branco);
  border-bottom: 1px solid var(--linha);
  box-shadow: var(--sombra-sutil);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--s-3) var(--s-6);
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--s-3);
  align-items: center;
  margin-right: auto;
  color: var(--azul);
  line-height: 1.15;
}
.brand__mark { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 10px; }
.brand__name, .brand__tag { grid-column: 2; }
.brand:hover { text-decoration: none; }
.brand__name {
  font-size: var(--t-h2);
  font-weight: 700;
}
.brand__tag {
  margin-top: 2px;
  color: var(--texto-suave);
  font-size: var(--t-legenda);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.site-nav a {
  position: relative;
  padding: var(--s-3);
  color: var(--texto);
  font-size: var(--t-corpo);
  font-weight: 700;
}
.site-nav a:hover { color: var(--azul); text-decoration: none; }
.site-nav a.active { color: var(--azul); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: -1px;
  height: 5px;
  background: var(--ouro);
}

/* 5.2 Rodape. */
.site-footer {
  margin-top: var(--secao);
  border-top: 1px solid var(--linha);
  background: var(--cinza);
  padding-block: var(--s-8) var(--s-6);
}
.footer-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s-8);
}
.footer-columns .brand { margin-bottom: var(--s-4); }
.footer-columns p { max-width: 44ch; color: var(--texto-suave); }
.footer-columns h2 {
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--linha-forte);
  color: var(--texto-suave);
  font-size: var(--t-legenda);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-nav { display: grid; gap: var(--s-3); align-content: start; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--texto);
}
.footer-nav a:hover { color: var(--azul); }
.footer-nav p { margin-top: var(--s-2); color: var(--texto-suave); font-size: var(--t-legenda); line-height: var(--lh-legenda); }

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--linha-forte);
}
.footer-base small { color: var(--texto-suave); font-size: var(--t-legenda); line-height: var(--lh-legenda); }
.institutional-signature {
  width: min(440px, 50%);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--branco);
}
.institutional-signature img { display: block; width: 100%; height: auto; }

/* 5.3 Inicio. */
.home-opening { padding-block: var(--s-8) var(--s-6); }
.home-introduction {
  margin-bottom: var(--s-6);
}
.home-introduction h1 {
  max-width: 20ch;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.page-index {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-6);
  margin-top: var(--s-6);
  padding: var(--s-5) 0 0;
  border: 0;
  border-top: 1px solid var(--linha);
  border-radius: 0;
  background: transparent;
}
.page-index > span {
  display: block;
  margin-bottom: 0;
  color: var(--texto-suave);
  font-size: var(--t-legenda);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.page-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  font-size: var(--t-corpo);
  font-weight: 700;
}
.page-index a + a { border-top: 0; }
.page-index .icon { color: var(--azul-medio); }

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  gap: var(--s-5);
  align-items: end;
  padding: var(--s-6);
  border: 1px solid var(--linha);
  border-radius: var(--r-sm);
  background: var(--cinza);
}
.home-search h2 { margin-bottom: var(--s-2); font-size: var(--t-h3); }
.home-search p { margin: 0; color: var(--texto-suave); }
.home-search .btn { min-height: 52px; }

.home-section { padding-block: var(--secao); }

.home-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s-8);
}
.home-service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--linha);
  color: inherit;
  transition: background-color 0.16s var(--ease);
}
.home-service:hover { background: var(--azul-lavado); text-decoration: none; }
.home-service__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--cinza);
  color: var(--azul);
  transition: background-color 0.16s var(--ease);
}
.home-service:hover .home-service__icon { background: var(--azul-claro); color: var(--branco); }
.home-service h3 { margin-bottom: var(--s-2); font-size: var(--t-h4); }
.home-service p { margin: 0 0 var(--s-2); color: var(--texto-suave); font-size: var(--t-corpo); line-height: var(--lh-corpo); }
.home-service .action-link { color: var(--azul); font-size: var(--t-corpo); }
.home-service__chevron {
  color: var(--linha-forte);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}
.home-service:hover .home-service__chevron { color: var(--azul); transform: translateX(4px); }

.additional-services {
  display: grid;
  grid-template-columns: minmax(200px, 0.6fr) 1fr;
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--cinza);
}
.additional-services h3 { margin: 0 0 var(--s-2); font-size: var(--t-h4); }
.additional-services > div > p { margin: 0; color: var(--texto-suave); font-size: var(--t-legenda); line-height: var(--lh-legenda); }
.additional-services ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.additional-services li { margin: 0; }
.additional-services a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--linha-forte);
  font-size: var(--t-corpo);
  font-weight: 700;
}
.additional-services a .icon { color: var(--azul-medio); }

.home-note {
  margin-top: var(--s-5);
  color: var(--texto-suave);
  font-size: var(--t-legenda);
  line-height: var(--lh-legenda);
}

.guidance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--s-8);
  padding-block: var(--secao);
}
.guidance-intro h2 { color: var(--branco); }
.guidance-intro .action-link { color: var(--branco); text-decoration: underline; }
.guidance-intro p { color: rgba(255, 255, 255, 0.9); max-width: 36ch; }

.guidance-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guidance;
}
.guidance-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-5);
  margin: 0;
  padding-block: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.guidance-list li:first-child { border-top: 0; padding-top: 0; }
.guidance-list li::before {
  counter-increment: guidance;
  content: counter(guidance, decimal-leading-zero);
  color: var(--ouro);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.2;
}
.guidance-list h3 { margin-bottom: var(--s-2); color: var(--branco); font-size: var(--t-h4); }
.guidance-list p { margin: 0; color: rgba(255, 255, 255, 0.88); }

.participation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
.participation-outline { padding: var(--s-6); }
.participation-outline h3 { font-size: var(--t-h4); margin-bottom: var(--s-3); }
.participation-outline dl { margin: 0; }
.participation-outline dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--linha);
}
.participation-outline dt { color: var(--preto); font-weight: 700; }
.participation-outline dd { margin: 0; color: var(--texto-suave); }
.participation-outline > p:last-child {
  margin-top: var(--s-5);
  color: var(--texto-suave);
  font-size: var(--t-legenda);
  line-height: var(--lh-legenda);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--s-8);
  align-items: start;
}
.home-faq details { border-bottom: 1px solid var(--linha); }
.home-faq details:first-child { border-top: 1px solid var(--linha); }
.home-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  color: var(--preto);
  font-size: var(--t-h4);
  font-weight: 700;
  line-height: var(--lh-h4);
  cursor: pointer;
  list-style: none;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary:hover { color: var(--azul); }
.home-faq summary .icon {
  color: var(--azul);
  transition: transform 0.18s var(--ease);
}
.home-faq details[open] summary { color: var(--azul); }
.home-faq details[open] summary .icon { transform: rotate(180deg); }
.home-faq__answer {
  padding: 0 0 var(--s-5);
  max-width: 60ch;
  border-left: 5px solid var(--azul-palido);
  padding-left: var(--s-5);
}
.home-faq__answer p { color: var(--texto-suave); }

.home-page section[id] { scroll-margin-top: 96px; }
.home-opening .eyebrow { text-transform: none; letter-spacing: 0.02em; }
.home-opening .eyebrow::before { display: none; }
.home-introduction .lead { max-width: 49ch; font-size: 1.125rem; line-height: 1.65; }
.home-service .action-link { display: none; }
.home-service h3 { font-size: 1.25rem; }
.home-service__chevron { color: var(--azul); }
.site-nav a.active::after { height: 2px; background: var(--azul); }
.masthead__flag { border: none; border-radius: 0; }

/* 5.4 Busca de profissionais. */
.page-header { padding-block: var(--s-8) var(--s-6); }
.page-header .lead { margin-top: var(--s-3); }
.page-header .notice { margin-top: var(--s-6); max-width: var(--medida); }
.page-header h1,
.profile-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  color: var(--texto-suave);
  font-weight: 700;
}
.breadcrumb-back:hover { color: var(--azul); }
.breadcrumb-back .icon { transition: transform 0.16s var(--ease); }
.breadcrumb-back:hover .icon { transform: translateX(-3px); }

.search-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
  padding-bottom: var(--secao);
}
.search-results { scroll-margin-top: 160px; }
.search-results { min-width: 0; }
.search-summary { color: var(--texto-suave); overflow-wrap: anywhere; }
.search-results > .notice { margin-bottom: var(--s-5); }
.search-results-shortcut { display: none; }
.filters { position: sticky; top: 96px; }
.filters__body { padding: var(--s-5); background: var(--cinza); border-radius: var(--r-sm); }
.filters-toggle { display: none; }
.filters h2 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--linha);
  font-size: var(--t-h4);
}
.filters__actions { display: grid; gap: var(--s-2); margin-top: var(--s-6); }
.fine-print {
  margin: var(--s-5) 0 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--linha);
  color: var(--texto-suave);
  font-size: var(--t-legenda);
  line-height: var(--lh-legenda);
}

.results-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--linha);
}
.results-heading strong { color: var(--preto); font-size: var(--t-h4); }
.results-heading span { color: var(--texto-suave); font-size: var(--t-legenda); }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.result-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--linha);
}
.result-card:first-child { padding-top: var(--s-2); }
.result-card__top {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.result-card h2 { margin: 0; font-size: var(--t-destaque); text-wrap: pretty; }
.result-card__title { margin: 2px 0 0; color: var(--texto-suave); }
.result-card .meta-row { margin-bottom: var(--s-5); }
.result-card__summary { margin: 0 0 var(--s-4); color: var(--texto-suave); max-width: 60ch; }
.result-card__link { align-self: flex-start; min-height: 44px; }

.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  padding: var(--s-8) var(--s-6);
  text-align: center;
  border: 1px solid var(--linha);
  border-top: 5px solid var(--ouro);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: var(--cinza);
}
.empty-state .icon { color: var(--azul-medio); }
.empty-state h2 { margin: 0; font-size: var(--t-h3); }
.empty-state p { margin: 0; max-width: 46ch; color: var(--texto-suave); }

/* 5.5 Perfil. */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
  padding-bottom: var(--secao);
}
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding-bottom: var(--s-6);
  margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--linha);
}
.profile-header h1 { margin: 0 0 var(--s-1); }
.profile-header__title { margin: 0 0 var(--s-3); color: var(--texto-suave); font-size: var(--t-h4); }
.profile-section + .profile-section {
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--linha);
}
.profile-section h2 { font-size: var(--t-h3); }
.profile-section p { color: var(--texto-suave); }
.profile-sheet { min-width: 0; padding-top: var(--s-3); }
.contact-card { position: sticky; top: 96px; background: var(--cinza); border-radius: var(--r-sm); box-shadow: none; }
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-md);
  background: var(--azul-palido);
  color: var(--azul);
}
.contact-card h2 { margin-bottom: var(--s-3); font-size: var(--t-h3); }
.contact-card p { color: var(--texto-suave); }
.contact-card .notice { margin: var(--s-5) 0; }

/* 5.6 Adesao. */
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin: 0 0 var(--s-7);
  padding: 0;
  list-style: none;
}
.stepper li {
  margin: 0;
  padding-top: var(--s-3);
  border-top: 5px solid var(--linha);
  color: var(--texto-suave);
  font-size: var(--t-legenda);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: var(--lh-legenda);
  text-transform: uppercase;
}
.stepper li[data-state='current'] { border-top-color: var(--ouro); color: var(--preto); }
.stepper li[data-state='done'] { border-top-color: var(--azul); color: var(--texto-suave); }
.step-indicator {
  display: block;
  margin-bottom: var(--s-3);
  color: var(--texto-suave);
  font-size: var(--t-legenda);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.step-indicator:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.step-body h2 { font-size: var(--t-h3); }
.participation-preview { border-top: 1px solid var(--linha); }
.participation-preview .card__body { padding-inline: 0; }
.step-body p { color: var(--texto-suave); }
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--linha);
}

/* Erro de circuito do Blazor. */
#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  padding: var(--s-4);
  background: color-mix(in srgb, var(--ouro) 18%, var(--branco));
  border-top: 5px solid var(--ouro);
}

/* ---------- 6. Ajustes do MudBlazor ---------- */
.mud-typography,
.mud-input,
.mud-button { font-family: inherit; }
.mud-button-root { min-height: 48px; letter-spacing: 0 !important; text-transform: none !important; }
.mud-input-root { font-size: var(--t-corpo); }
.mud-input-label { font-size: var(--t-corpo); }
.mud-input-outlined .mud-input-outlined-border { border-radius: var(--r-md); }
.filters .mud-input-outlined { min-height: 52px; background: var(--branco); }

/* ---------- 7. Responsivo ---------- */
@media (max-width: 1024px) {
  .guidance-layout,
  .participation-layout,
  .faq-layout { gap: var(--s-6); }
  .search-layout { grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-6); }
  .profile-grid { grid-template-columns: 1fr; }
  .footer-columns { gap: var(--s-6); }
  .additional-services ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .wrap { padding-inline: var(--s-5); }
  .masthead__inner,
  .site-header__inner { padding-inline: var(--s-5); }
  .masthead p { display: none; }
  .site-header__inner { flex-wrap: wrap; gap: var(--s-3); }
  .site-header { position: static; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .site-nav a { padding-inline: var(--s-2); white-space: nowrap; }
  .home-introduction,
  .guidance-layout,
  .participation-layout,
  .faq-layout,
  .search-layout,
  .detail-layout { grid-template-columns: 1fr; }
  .home-search { grid-template-columns: minmax(0, 1fr) auto; }
  .home-search__explanation { grid-column: 1 / -1; }
  .home-services { grid-template-columns: 1fr; }
  .additional-services { grid-template-columns: 1fr; }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
  }
  .filters,
  .contact-card { position: static; }
  .filters-toggle { display: flex; }
  .filters__body { display: none; margin-top: var(--s-3); }
  .filters__body.is-expanded { display: block; }
  .search-layout { gap: var(--s-5); }
  .search-results { scroll-margin-top: var(--s-5); }
}

@media (max-width: 600px) {
  .site-nav { gap: 0; justify-content: space-between; overflow-x: visible; }
  .site-nav a { font-size: 0.875rem; padding-inline: 4px; white-space: normal; text-align: center; min-width: 0; }
  .page-header { padding-top: var(--s-6); }
  .page-header .notice { margin-top: var(--s-5); }
  .search-results-shortcut { display: inline-flex; margin-top: var(--s-4); }
  .wrap { padding-inline: var(--s-4); }
  .masthead__inner,
  .site-header__inner { padding-inline: var(--s-4); }
  .masthead__inner { gap: var(--s-2) var(--s-4); }
  .masthead__flag { margin-left: 0; }
  .confea-logo img { width: 150px; }
  .lead { font-size: var(--t-h4); line-height: var(--lh-h4); }
  .home-opening { padding-top: var(--s-6); }
  .home-search { grid-template-columns: 1fr; padding: var(--s-5); }
  .home-search .btn { width: 100%; }
  .additional-services ul { grid-template-columns: 1fr; }
  .participation-outline dl > div { grid-template-columns: 1fr; gap: var(--s-1); }
  .footer-columns { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .institutional-signature { width: 100%; }
  .stepper { grid-template-columns: 1fr; gap: var(--s-2); }
  .stepper li { padding-top: var(--s-2); }
  .step-actions { flex-direction: column-reverse; align-items: stretch; }
  .profile-header { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .page-index { display: grid; gap: 0; }
  .home-faq__answer { padding-left: var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Protótipo administrativo (SPEC-05, ADM-02) */
.gestao-filtros { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: end; margin-block: var(--s-5); }
.gestao-filtros label { display: block; font-weight: 600; }
.gestao-filtros select, .gestao-filtros input { min-width: 12rem; }
.gestao-lista { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.gestao-item { border: 1px solid var(--linha); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.gestao-item h2 { margin: 0 0 var(--s-1); font-size: var(--t-h4); }
.gestao-item p { margin: 0 0 var(--s-1); }
.gestao-estado { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 0.8125rem; font-weight: 600; background: #eee9e1; }
.gestao-estado--publicado { background: #d9ecd2; }
.gestao-estado--em_validacao, .gestao-estado--pendente { background: #f7e6c4; }
.gestao-estado--pausado { background: #e3e0f5; }
.gestao-estado--suspenso, .gestao-estado--retirado { background: #f3d6d3; }
.gestao-paginacao { display: flex; gap: var(--s-3); margin-block: var(--s-4); }
.gestao-resumo { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.gestao-resumo-item a { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); border: 1px solid var(--linha); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); min-width: 7rem; text-decoration: none; }
.gestao-resumo-item a:hover { border-color: var(--azul-medio); }
.gestao-resumo-numero { font-size: var(--t-h3); font-weight: 700; color: var(--azul); }
