/* Área logada — Proposta D aprovada (prototypes/area-logada-v2/d-atalhos-landing).
   Estrutura da proposta A (atalhos no início, barra inferior no celular, relato uma
   pergunta por tela) com a paleta, a marca e os botões da landing. Foco em escolas,
   terapias e relatos. Tokens: app.css. Movimento: motion.css + reduced-motion. */
.area {
  --area-radius: 16px;
  --area-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabbar-h: 76px;
  --serif: 'Instrument Serif', Georgia, serif;
}
.area main {
  font-size: 1.0625rem;
  line-height: 1.55;
}
.area main:focus {
  outline: none;
}
/* Foco e âncoras não ficam sob o cabeçalho fixo nem sob a barra inferior (WCAG 2.4.11).
   A altura da barra é declarada aqui também: o <html> não herda variáveis do <body>. */
html:has(.area) {
  --tabbar-h: 76px;
  scroll-padding-top: 84px;
  scroll-padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
}

/* ---------- Tipografia e utilitários ---------- */
.area h1,
.area h2,
.area h3,
.area h4 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: none;
}
.area h1 {
  margin: 6px 0 6px;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
}
.area h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 750;
}
.area h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 750;
}
.area h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}
.area p {
  margin: 0 0 12px;
}
.area-main {
  padding-block: 20px 40px;
}
.area-narrow {
  max-width: 720px;
}
.area .kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.area .lead {
  color: var(--text-muted);
  font-size: 1.125rem;
}
.area .hint,
.area .meta,
.area .muted {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.area .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
}
.area .meta .icon {
  width: 17px;
  height: 17px;
}
.area .page-head {
  margin: 4px 0 18px;
}
.area .page-head p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}
.area-back {
  gap: 8px;
  margin: 0 0 4px;
  font-weight: 700;
  text-decoration: none;
}
.area-back .icon {
  width: 20px;
  height: 20px;
}
.area-link {
  font-weight: 700;
}
.area-sources a {
  gap: 6px;
  font-weight: 650;
}
.area-sources .icon {
  width: 18px;
  height: 18px;
}
.mobile-hidden {
  display: none;
}
.area .desktop-only {
  display: none;
}
.area .stack {
  display: grid;
  gap: 12px;
}
.stack-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.area-cta {
  margin-top: 20px;
}
/* Mensagens do sistema sem o espaçamento grande das páginas públicas. */
.area main > .wrap.section {
  padding-block: 16px 0;
}
.area main > .wrap.section .notice {
  margin-bottom: 0;
}

/* ---------- Cabeçalho, navegação e rodapé ---------- */
.area .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}
.area .header-inner {
  min-height: 68px;
  padding-block: 6px;
  /* Com zoom de 200% em telas estreitas, a cidade desce para a linha de baixo. */
  flex-wrap: wrap;
  row-gap: 4px;
}
.area .brand {
  --brand-scale: 0.62;
}
.area-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-inline-start: auto;
  min-width: 0;
}
.area-topnav {
  display: none;
}
.city-menu {
  position: relative;
}
.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--primary);
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.city-chip::-webkit-details-marker {
  display: none;
}
.city-chip .icon {
  width: 18px;
  height: 18px;
}
.public-city-chip {
  max-width: min(52vw, 22rem);
  overflow-wrap: anywhere;
}
.city-change-label {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.area .public-city-help {
  margin-top: 16px;
}
.city-chip .chevron {
  display: inline-flex;
  transition: transform 160ms var(--area-ease);
}
.city-menu[open] .chevron {
  transform: rotate(180deg);
}
.city-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--menu-shadow);
  animation: area-pop 220ms var(--area-ease);
}
.city-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.city-panel-title .icon {
  color: var(--primary);
}
@keyframes area-pop {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

/* Barra inferior: 4 destinos com ícone e rótulo (celular e tablet). */
.area-tabbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--surface-border);
  box-shadow: 0 -6px 20px rgb(22 43 80 / 0.06);
}
.area-tabbar a {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 60px;
  min-width: 0;
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}
.area-tabbar a .icon {
  width: 25px;
  height: 25px;
}
.area-tabbar a[aria-current='page'] {
  color: var(--primary);
  background: var(--blue-soft);
}
.area-tabbar a[aria-current='page']::before {
  content: '';
  position: absolute;
  top: -7px;
  width: 32px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--primary);
}
/* Espaço da barra inferior dentro do rodapé: o azul-noturno vai até o fim da tela. */
.area:not(.is-flow):has(.area-tabbar) .site-footer {
  padding-bottom: calc(2rem + var(--tabbar-h) + env(safe-area-inset-bottom));
}
/* O cabeçalho fixo cria um contexto de empilhamento: com o menu da cidade aberto,
   ele precisa ficar acima da barra inferior para a folha não ser coberta. */
.area .site-header:has(.city-menu[open]) {
  z-index: 70;
}

/* ---------- Botões ---------- */
.area .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.area .btn .icon {
  width: 21px;
  height: 21px;
}
.area .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.area .btn-primary:hover,
.area .btn-primary:active {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.area .btn-secondary {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}
.area .btn-secondary:hover,
.area .btn-secondary:active {
  background: var(--blue-soft);
  color: var(--primary-hover);
}
.area .btn-ghost {
  min-height: 50px;
  background: var(--blue-soft);
  border-color: transparent;
  color: var(--primary);
}
.area .btn-ghost:hover {
  background: #dce7ff;
  color: var(--primary-hover);
}
.area .btn-danger {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
}
.area .btn-danger:hover {
  background: #7f2924;
  color: #fff;
}
.area .btn-small {
  flex: none;
  min-height: 48px;
  margin-left: auto;
  padding: 8px 18px;
}
.area .btn-block {
  width: 100%;
}
.area .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.area .link-btn:hover {
  background: none;
  color: var(--primary-hover);
}

/* ---------- Início ---------- */
.hello {
  padding: 4px 2px 10px;
}
.city-hero + .hello {
  padding-top: 22px;
}
.hello h1 {
  margin-bottom: 2px;
}
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tile {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 168px;
  padding: 18px 16px;
  border: 1px solid var(--surface-border);
  border-radius: var(--area-radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.tile strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.25;
}
.tile > span:last-child {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.tile:hover {
  border-color: var(--primary);
}
.tile:active {
  transform: scale(0.985);
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--primary);
}
.tile-icon .icon {
  width: 28px;
  height: 28px;
}
/* Relato em toda a largura, com ícone ao lado. */
.tile-wide {
  grid-column: 1 / -1;
  min-height: 0;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
}
.tile-wide .tile-icon {
  grid-row: span 2;
  margin: 0;
}
.tile-blue,
.tile-navy {
  color: #fff;
}
.tile-blue {
  background: var(--primary);
  border-color: var(--primary);
}
.tile-navy {
  background: var(--navy);
  border-color: var(--navy);
}
.tile-blue strong,
.tile-navy strong {
  color: #fff;
}
.tile-blue .tile-icon,
.tile-navy .tile-icon {
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}
.tile-blue > span:last-child {
  color: #fff;
}
.tile-navy > span:last-child {
  color: var(--accent-light);
}
.tile-blue:hover {
  background: var(--primary-hover);
}
.tile-navy:hover {
  border-color: var(--accent-light);
}
.tile:focus-visible {
  outline-offset: 3px;
}
.block {
  margin-top: 26px;
}
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.block-head h2 {
  margin: 0;
  font-size: 1.125rem;
}
.block-head a {
  font-weight: 700;
}

/* ---------- Linhas, cartões e listas ---------- */
.area .rows,
.area .cards {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.area .rows {
  gap: 0;
  border: 1px solid var(--surface-border);
  border-radius: var(--area-radius);
  background: var(--surface);
  overflow: hidden;
}
.area .rows > li + li {
  border-top: 1px solid var(--surface-border);
}
.area .row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
}
.area a.row:hover {
  background: var(--blue-soft);
}
.area .row:focus-visible {
  outline-offset: -4px;
}
.area .row > .icon:first-child {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.area .row > .icon:last-child {
  margin-left: auto;
  color: var(--text-muted);
}
.row-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.row-text small {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.area .row-danger,
.area .row-danger > .icon:first-child {
  color: var(--error);
}
.row-action {
  margin: 0 16px 14px;
}
.badge {
  width: fit-content;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--warning-surface);
  color: var(--warning) !important;
  font-weight: 700;
}
.area .card {
  display: block;
  padding: 18px;
  border: 1px solid var(--surface-border);
  border-radius: var(--area-radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.area a.card:hover {
  border-color: var(--primary);
}
.area-card {
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid var(--surface-border);
  border-radius: var(--area-radius);
  background: var(--surface);
}
.area .empty {
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 16px;
  border: 1px dashed var(--control-border);
  border-radius: var(--area-radius);
  text-align: center;
  list-style: none;
}
.area .empty > .icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}
.area .empty p {
  margin: 0;
}
.area .empty-line {
  padding: 14px;
  border: 1px dashed var(--control-border);
  border-radius: 12px;
  color: var(--text-muted);
}
.area .note {
  display: flex;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.area .note .icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.area .count {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warning-surface);
  color: var(--warning);
  font-size: 0.875rem;
  font-weight: 750;
}
.status .icon {
  width: 16px;
  height: 16px;
}
.status-published {
  background: var(--success-soft);
  color: var(--success);
}
.status-rejected {
  background: var(--error-surface);
  color: var(--error);
}
.checklist {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checklist .icon {
  flex: none;
  margin-top: 2px;
  color: var(--primary);
}
.checklist-card {
  padding: 18px;
  border: 1px solid var(--surface-border);
  border-radius: var(--area-radius);
  background: var(--surface);
}

/* ---------- Cidade no Início (estilo da proposta C) e lista de grupos ---------- */
.city-hero {
  padding: 4px 0 4px;
}
.area .city-name {
  --city-name-max: clamp(2.9rem, 13vw, 4.5rem);
  min-width: 0;
  margin: 2px 0 6px;
  /* O ajuste para uma linha para em 2rem; nomes maiores quebram sem cortes.
     Sem JavaScript, o tamanho responsivo e a quebra continuam disponíveis. */
  font: 400 clamp(2rem, var(--city-name-fit, var(--city-name-max)), var(--city-name-max)) / 1
    var(--serif);
  letter-spacing: -0.01em;
  color: var(--text);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.city-name span {
  color: var(--primary);
  white-space: nowrap;
}
.area .city-text {
  max-width: 34ch;
  margin-bottom: 0;
}
.city-photo {
  margin: 12px 0 0;
  container-type: inline-size;
}
.city-photo img,
.city-photo-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  object-fit: cover;
  object-position: 50% 45%;
}
/* Sem foto: o mesmo espaço fica reservado, com a marca discreta ao centro. */
.city-photo-frame {
  display: grid;
  place-items: center;
  border: 1px solid var(--surface-border);
  background: var(--warm);
}
.city-photo-frame svg {
  width: clamp(56px, 22%, 104px);
  height: auto;
  opacity: 0.4;
}
.city-photo-add {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}
/* Crédito discreto, logo abaixo da foto. O tamanho acompanha a largura da foto
   (até 12 px) para caber numa linha no celular; se não couber, quebra sem cortar. */
.city-photo figcaption {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: clamp(0.5625rem, calc(100cqi / 30), 0.75rem);
  line-height: 1.35;
}
.area .list {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.area .item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface);
}
.item-icon,
.bubble {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--warm);
  color: var(--text);
}
.item-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.item-text strong {
  font-size: 1.0625rem;
  line-height: 1.3;
}
.item-text small {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- Busca, interruptor e filtros ---------- */
.find {
  display: grid;
  gap: 12px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 6px 0 14px;
  border: 2px solid var(--control-border);
  border-radius: 10px;
  background: var(--surface);
}
.search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.search > .icon {
  flex: none;
  color: var(--text-muted);
}
.area .search input[type='search'] {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.125rem;
  outline: none;
  box-shadow: none;
}
.area .search-btn {
  flex: none;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 750;
}
.area .search-btn:hover {
  background: #dce7ff;
  color: var(--primary-hover);
}
/* “Só escolas com relatos”: linha própria com ícone, frase e interruptor
   (receita Toggle do Transitions.dev). Desligado: trilho cinza; ligado: cobalto e ✓. */
.area .feature-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  margin: 0;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 400;
  cursor: pointer;
}
.area .feature-switch:hover {
  border-color: var(--control-border);
  border-left-color: var(--primary);
}
.fs-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--primary);
}
.fs-text {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.fs-text strong {
  font-size: 1.0625rem;
}
.fs-text small {
  color: var(--text-muted);
  font-size: 0.875rem;
}
/* Interruptor: o input nativo (52×44, invisível) recebe toque e teclado; a trilha
   ao lado desenha o estado. Sem pseudoelementos no input, que o Firefox não exibe. */
.fs-control {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 44px;
}
.area input.fs-switch {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.fs-track {
  position: relative;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: var(--control-border);
  transition: background 160ms var(--area-ease);
}
.fs-track::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: translate 300ms cubic-bezier(0.34, 1.35, 0.64, 1);
}
.fs-switch:checked + .fs-track {
  background: var(--primary);
}
.fs-switch:checked + .fs-track::before {
  translate: 20px 0;
}
.fs-track::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 30px;
  width: 9px;
  height: 5px;
  border: solid var(--primary);
  border-width: 0 0 2.5px 2.5px;
  rotate: -45deg;
  opacity: 0;
}
.fs-switch:checked + .fs-track::after {
  opacity: 1;
}
.fs-switch:focus-visible + .fs-track {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.area .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.area .chip::-webkit-details-marker {
  display: none;
}
.area .chip .icon {
  width: 18px;
  height: 18px;
}
.area .chip:hover {
  border-color: var(--primary);
  background: var(--surface);
  color: var(--text);
}
.area .chip[aria-current='true'],
.area .chip[data-active] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.area .chip-clear {
  border-style: dashed;
  color: var(--primary);
}
.filter-menu {
  position: relative;
}
.filter-menu .chevron {
  display: inline-flex;
}
.filter-menu[open] .chevron {
  transform: rotate(180deg);
}
.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 45;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  padding: 14px;
  overflow-y: auto;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--menu-shadow);
  animation: area-pop 220ms var(--area-ease);
}
.filter-panel fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.filter-title {
  margin-bottom: 4px;
  font: 750 1.125rem/1.3 var(--font-display);
}
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 4px 0 12px;
}
/* Escolas: Lista/Mapa à esquerda, acima da quantidade (pedido do proprietário). */
.results-bar.results-stack {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.results-stack .view-switch {
  width: min(100%, 240px);
}
.area .segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--warm);
}
/* Três abas: cada uma do tamanho do próprio rótulo (“Relatos (12)” é mais longo que
   “Sobre”), sem empurrar a página para os lados com fontes mais largas. */
/* Sem .area: a regra do computador que esconde as abas da escola precisa prevalecer. */
.segmented.three {
  display: flex;
}
.area .segmented.three a {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 300px) {
  /* Zoom de 200% em telas estreitas: o rótulo quebra em vez de vazar. */
  .area .segmented a {
    white-space: normal;
  }
}
.area .segmented a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 8px;
  white-space: nowrap;
  border-radius: 9px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  text-align: center;
}
.area .segmented a[aria-current] {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 4px rgb(22 43 80 / 0.14);
}

/* ---------- Escolas ---------- */
.area .school-card {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 10px;
  height: 100%;
}
.school-card-text {
  display: grid;
  align-content: start;
  gap: 4px;
}
/* Nome como título, igual à proposta D (Manrope 750, espaçamento justo). */
.area .school-card-name {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.school-card .stages,
.school-card .address {
  font-size: 0.9375rem;
}
.school-card .address {
  color: var(--text-muted);
}
.school-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--surface-border);
  color: var(--primary);
}
.school-foot > .icon:last-child {
  margin-left: auto;
  color: var(--text-muted);
}
.status-note {
  color: var(--warning);
  font-weight: 650;
  font-size: 0.9375rem;
}
.school-head {
  margin: 4px 0 14px;
}
.area .school-head h1 {
  margin: 4px 0;
}
.school-tabs {
  margin-bottom: 12px;
}
.school-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.school-summary li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.school-summary .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.school-summary strong {
  color: var(--text);
}
.area .school-detail h2 {
  margin: 6px 0 12px;
  font-size: 1.375rem;
}
.school-detail h2:focus,
.stage-title:focus {
  outline: none;
}
.contact {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.area .contact-line {
  display: flex;
  gap: 10px;
  margin: 0;
}
.contact-line .icon {
  flex: none;
  margin-top: 2px;
  color: var(--primary);
}
.contact-actions {
  display: grid;
  gap: 8px;
}
.area .contact-actions .btn {
  justify-content: flex-start;
  min-height: 52px;
  overflow-wrap: anywhere;
}
.access {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--warm);
}
.access-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
.area .access-score {
  margin: 0;
  color: var(--text-muted);
}
.access-score strong {
  color: var(--text);
  font: 800 2rem/1 var(--font-display);
}
.access-none {
  font-weight: 700;
}
.access-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 10px 0 12px;
}
.access-steps span {
  height: 8px;
  border-radius: 99px;
  background: #c3cee2;
}
.access-steps span.on {
  background: var(--primary);
}
.access-list {
  display: grid;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.access-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  min-height: 44px;
  padding: 6px 0;
  border-bottom: 1px solid #ccd6e8;
}
.access-list li > span:first-child {
  flex: 1 1 9rem;
}
.ans {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  font-weight: 750;
}
.ans .icon {
  width: 18px;
  height: 18px;
}
.ans-yes {
  color: var(--success);
}
.ans-no {
  color: var(--error);
}
.ans-unknown {
  color: var(--text-muted);
}
.offered ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 0;
  list-style: none;
}
.area .offered a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.area .offered a:hover {
  border-color: var(--primary);
}
.offered a > .icon:first-child {
  color: var(--primary);
}
.offered a > .icon:last-child {
  margin-left: auto;
  color: var(--text-muted);
}
.offered a span {
  display: grid;
}
.offered small {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.area .stage-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.area .stage-pills a[aria-current='true'] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.area .stage-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.stage-title small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font:
    500 0.9375rem system-ui,
    sans-serif;
  letter-spacing: 0;
}
.indicators {
  display: grid;
  gap: 10px;
}
.indicator {
  padding: 16px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
}
.area .ind-scope {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.area .ind-value {
  margin: 6px 0;
  font: 800 2.125rem/1.05 var(--font-display);
  letter-spacing: -0.03em;
}
.ind-value small {
  font-size: 1.125rem;
}
.area .ind-plain {
  margin: 10px 0 4px;
  font-size: 0.9375rem;
}
.area svg.bar {
  display: block;
  width: 100%;
  max-width: none;
  height: 8px;
}
.bar-track {
  fill: var(--warm);
}
.bar-fill {
  fill: var(--primary);
}
.area .source {
  margin-top: 8px;
}
.area-help summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.area-help summary::-webkit-details-marker {
  display: none;
}
.area-help summary .icon {
  width: 18px;
  height: 18px;
}
.area-help-content {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warm);
  font-size: 0.9375rem;
}
.area-help-content p:last-child {
  margin: 0;
}

/* ENEM: média, posição, comparação e cinco áreas. */
.enem {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
}
.area .enem h4 {
  font-size: 1.125rem;
}
.enem .hint {
  font-size: 0.875rem;
}
.enem-stats {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}
.enem-stats > div {
  padding: 12px;
  border-radius: 12px;
  background: var(--warm);
}
.area .enem-stats p {
  margin: 0;
}
.enem-stats .label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
}
.area .enem-stats .big {
  margin: 2px 0;
  font: 800 1.75rem/1.1 var(--font-display);
}
.enem-stats .big small {
  color: var(--text-muted);
  font:
    500 0.9375rem system-ui,
    sans-serif;
}
.enem-compare {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warm);
}
.enem-compare .icon {
  flex: none;
  margin-top: 2px;
}
.enem-acima {
  background: var(--success-soft);
  color: var(--success);
}
.enem-abaixo {
  background: var(--error-surface);
  color: var(--error);
}
.enem-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 12px 0 4px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.enem-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lg-school {
  display: inline-block;
  width: 18px;
  height: 8px;
  border-radius: 99px;
  background: var(--primary);
}
.lg-base,
.lg-ref {
  display: inline-block;
  height: 14px;
  border-left: 3px solid var(--navy);
}
.lg-ref {
  border-left: 2px dashed #b4561f;
}
.enem-rows {
  display: grid;
  margin: 0 0 6px;
}
.enem-rows > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-border);
}
.enem-rows dt {
  font-weight: 700;
}
.enem-rows dd {
  margin: 0;
}
.enem-val {
  font-weight: 750;
  text-align: right;
}
.enem-bar {
  grid-column: 1 / -1;
}
.enem-bar svg {
  display: block;
  width: 100%;
  max-width: none;
  height: 12px;
}
.mk-base {
  stroke: var(--navy);
  stroke-width: 0.8;
}
.mk-ref {
  stroke: #b4561f;
  stroke-width: 0.6;
  stroke-dasharray: 2 1.5;
}
.enem-ctx {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---------- Relatos ---------- */
.relato {
  padding: 18px;
  border: 1px solid var(--surface-border);
  border-radius: var(--area-radius);
  background: var(--surface);
}
.area .relato-title {
  margin: 0;
  font-size: 1.1875rem;
}
.area .relato-meta {
  margin: 4px 0 10px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.relato-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9375rem;
}
.fact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fact .icon {
  width: 18px;
  height: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--warm);
  font-weight: 750;
}
.pill .icon {
  width: 17px;
  height: 17px;
}
.pill-positive {
  background: var(--success-soft);
  color: var(--success);
}
.pill-negative {
  background: var(--error-surface);
  color: var(--error);
}
.area .relato-text {
  margin: 0 0 12px;
}
.area .relato-talk {
  width: 100%;
}
.relato-interest {
  padding-top: 12px;
  border-top: 1px solid var(--surface-border);
}
.relato-interest p:last-child {
  margin: 0;
}
.relato-link {
  font-weight: 700;
}

/* ---------- Seletor de especialidade (listbox; folha no celular) ---------- */
.filter-select {
  display: grid;
  gap: 6px;
}
.filter-select label {
  margin: 0;
  font-weight: 750;
}
.area .filter-select select {
  min-height: 58px;
  border: 2px solid var(--control-border);
  border-radius: 10px;
  font-size: 1.125rem;
  appearance: none;
  padding-right: 2.75rem;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23162b50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 0.85rem center / 1.25rem;
}
.picker {
  position: relative;
}
/* Mesma altura, borda e raio da busca ao lado (58 px). */
.area .picker-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 4px 14px 4px 8px;
  border: 2px solid var(--control-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 400;
  text-align: left;
}
.area .picker-trigger:hover {
  border-color: var(--primary);
  background: var(--surface);
  color: var(--text);
}
.area .picker-trigger[aria-expanded='true'] {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.picker-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--primary);
}
.picker-text {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.picker-text small {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 650;
}
.picker-text strong {
  overflow: hidden;
  font-size: 1.0625rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picker-chevron {
  display: inline-flex;
  flex: none;
  color: var(--primary);
  transition: transform 160ms var(--area-ease);
}
.picker-trigger[aria-expanded='true'] .picker-chevron {
  transform: rotate(180deg);
}
.picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 45;
  padding: 6px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgb(22 43 80 / 0.18);
  transform-origin: top center;
  transform: scale(0.97);
  opacity: 0;
  transition:
    transform 220ms var(--area-ease),
    opacity 220ms var(--area-ease);
}
.picker-panel.is-open {
  transform: scale(1);
  opacity: 1;
}
.picker-head {
  display: none;
}
.picker-list {
  display: grid;
  gap: 2px;
  max-height: min(60vh, 420px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  outline: none;
}
.picker-list:focus-visible {
  box-shadow: inset 0 0 0 3px var(--focus);
  border-radius: 12px;
}
.picker-list [role='option'] {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
}
.picker-list .is-active {
  background: var(--warm);
}
.picker-list [aria-selected='true'] {
  background: var(--blue-soft);
}
.picker-list [aria-selected='true'].is-active {
  box-shadow: inset 0 0 0 2px var(--primary);
}
.opt-text {
  display: grid;
  flex: 1;
  line-height: 1.3;
}
.opt-text small {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.opt-check {
  display: inline-flex;
  color: var(--primary);
  visibility: hidden;
}
[aria-selected='true'] .opt-check {
  visibility: visible;
}
.picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(15 23 42 / 0.45);
}
.picker.is-sheet .picker-panel {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-height: 80dvh;
  padding: 0 12px calc(16px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  transform: translateY(24px);
  transform-origin: bottom center;
}
.picker.is-sheet .picker-panel.is-open {
  transform: translateY(0);
}
.picker.is-sheet .picker-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 8px 4px 8px 8px;
}
.picker-grip {
  grid-column: 1 / -1;
  justify-self: center;
  width: 44px;
  height: 5px;
  margin-bottom: 6px;
  border-radius: 99px;
  background: var(--surface-border);
}
.area .picker-title {
  margin: 0;
  font: 750 1.25rem/1.2 var(--font-display);
}
.area .picker-close,
.area .sheet-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--warm);
  color: var(--text);
  cursor: pointer;
}
.area .picker-close:hover,
.area .sheet-close:hover {
  background: var(--blue-soft);
  color: var(--text);
}
.picker.is-sheet .picker-list {
  max-height: calc(80dvh - 90px);
}

/* ---------- Folhas (dialog nativo; janela central no desktop) ---------- */
dialog.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: min(100%, 640px);
  max-width: 100%;
  max-height: 88dvh;
  margin: 0 auto;
  padding: 0 0 max(16px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 1.0625rem;
  line-height: 1.55;
  transition:
    transform 240ms var(--area-ease),
    opacity 240ms var(--area-ease),
    display 240ms allow-discrete,
    overlay 240ms allow-discrete;
}
dialog.sheet::backdrop {
  background: rgb(15 23 42 / 0.45);
}
@starting-style {
  dialog.sheet[open] {
    transform: translateY(32px);
    opacity: 0;
  }
}
.sheet-grip {
  display: grid;
  place-items: center;
  height: 28px;
  cursor: grab;
  touch-action: none;
}
.sheet-grip span {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: var(--surface-border);
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 8px;
}
.area .sheet .sheet-head h2 {
  margin: 6px 0 0;
  font: 750 1.375rem/1.25 var(--font-display);
}
.sheet-body {
  padding: 4px 20px 8px;
}
.area .sheet p {
  margin: 0 0 12px;
}
.sheet-lead {
  font-size: 1.125rem;
}
.sheet-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- Formulários ---------- */
.area-form {
  display: grid;
  gap: 16px;
}
.area-form .field,
.flow .field {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
}
.area-form label,
.flow label,
.area-form legend,
.area .readonly .label {
  margin: 0;
  font-weight: 750;
}
.area-form .help,
.flow .help {
  margin: 0;
  font-size: 0.9375rem;
}
.area-form input:not([type='radio'], [type='checkbox']),
.area-form select,
.area-form textarea,
.flow input:not([type='radio'], [type='checkbox']),
.flow select,
.flow textarea {
  min-height: 54px;
  border: 2px solid var(--control-border);
  border-radius: 10px;
  font-size: 1.125rem;
}
.area-form input:not([type='radio'], [type='checkbox']):focus,
.area-form select:focus,
.area-form textarea:focus,
.flow input:not([type='radio'], [type='checkbox']):focus,
.flow select:focus,
.flow textarea:focus {
  border-color: var(--primary);
  outline: 3px solid var(--blue-soft);
  outline-offset: 0;
}
.area-form input[aria-invalid='true'],
.flow input[aria-invalid='true'],
.flow textarea[aria-invalid='true'] {
  border-color: var(--error);
}
.area-form select:not([multiple]),
.flow select:not([multiple]) {
  appearance: none;
  padding-right: 2.75rem;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23162b50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 0.85rem center / 1.25rem;
}
.area-form select:disabled {
  background-color: var(--disabled-surface);
}
.area .readonly {
  display: grid;
  gap: 2px;
}
.area .readonly strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.area .readonly .hint {
  margin: 4px 0 0;
}
.phone-group {
  margin: 0;
  padding: 0;
  border: 0;
}
.phone-group legend {
  margin-bottom: 6px;
}
.optional {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--warm);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 650;
}
.area .phone {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.area .phone > .field:first-child {
  flex: 0 1 6rem;
}
.area .phone > .field:last-child {
  flex: 1 1 8rem;
}
.area .saved {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--success);
  font-weight: 650;
}
.area .saved .icon {
  flex: none;
  margin-top: 2px;
}
.area .hint.count {
  margin: -8px 0 0;
  text-align: right;
  font-weight: 500;
}
.area .password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.area .password-control .btn {
  min-height: 54px;
  font-size: 0.9375rem;
}
.inline-disclosure > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  color: var(--primary);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.inline-disclosure > summary::-webkit-details-marker {
  display: none;
}
.inline-disclosure[open] .chevron {
  transform: rotate(180deg);
}
.inline-disclosure .chevron {
  display: inline-flex;
}
.area-disclosure {
  margin-top: 18px;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}
.area-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}
.area-disclosure > summary::-webkit-details-marker {
  display: none;
}
.area-disclosure[open] .chevron {
  transform: rotate(180deg);
}
.area-disclosure .chevron {
  display: inline-flex;
}
.area-disclosure-body {
  padding-bottom: 12px;
}

/* ---------- Escolhas grandes (rádio em cartão) ---------- */
.choices {
  display: grid;
  gap: 10px;
}
.choices.choices-two {
  grid-template-columns: 1fr 1fr;
}
.area .choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin: 0;
  padding: 12px 16px;
  border: 2px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 600;
  overflow-wrap: normal;
  cursor: pointer;
}
.area .choice:hover {
  border-color: var(--primary);
}
.area .choice input[type='radio'] {
  flex: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0;
  accent-color: var(--primary);
}
.area .choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--blue-soft);
  box-shadow: none;
}
.area .choice:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.area .choice:has(input:focus-visible) input {
  outline: none;
}
.area .choice-big {
  min-height: 72px;
}
.choice-big .choice-text {
  display: flex;
  align-items: center;
  gap: 12px;
}
.choice-big .icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}
.choice-two {
  display: grid;
}
.choice-two small {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.choice-links {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.area .choice-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 84px;
  padding: 14px 16px;
  border: 2px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.area .choice-link:hover {
  border-color: var(--primary);
  background: var(--blue-soft);
}
.choice-link > .icon:first-child {
  width: 30px;
  height: 30px;
  color: var(--primary);
}
.choice-link > .icon:last-child {
  margin-left: auto;
  color: var(--text-muted);
}
.choice-link span {
  display: grid;
}
.choice-link strong {
  font-size: 1.125rem;
}
.choice-link small {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- Relato em perguntas (tela cheia no celular, cartão no desktop) ---------- */
.is-flow .site-header {
  display: none;
}
.flow {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  font-size: 1.0625rem;
}
.flow-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 18px 12px;
  background: var(--canvas);
}
.area .flow-exit {
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.area .flow-label {
  justify-self: end;
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}
.flow-label:focus {
  outline: none;
}
.flow-progress {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 99px;
  background: var(--surface-border);
  overflow: hidden;
}
.flow-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--primary);
  transition: width 240ms var(--area-ease);
}
.flow-body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 8px 18px 24px;
}
.area .flow-title {
  font-size: 1.5rem;
}
.flow.is-stepper .flow-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.flow-step {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.flow-step > fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.area .flow-q {
  margin: 4px 0 0;
  font-size: 1.6875rem;
  font-weight: 800;
  line-height: 1.2;
}
.flow-q:focus {
  outline: none;
}
.flow-choices legend {
  padding: 0;
  margin-bottom: 8px;
}
.flow-choices .lead {
  margin-bottom: 12px;
}
.flow .field-error,
.area-form .field-error {
  margin: 0;
}
.flow .choice-field {
  margin: 0;
}
.flow:not(.is-stepper) .flow-step + .flow-step {
  padding-top: 18px;
  border-top: 1px solid var(--surface-border);
}
.flow-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--surface-border);
}
.flow-foot [data-step-back] {
  flex: 0 1 auto;
}
.flow-foot [data-step-next],
.flow-foot [data-step-submit] {
  flex: 1 1 12rem;
}
.area .flow-consent {
  margin: 0;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
}
.area .suggestions .hint {
  width: 100%;
  margin: 0;
}
.review {
  display: grid;
  margin: 0;
  border: 1px solid var(--surface-border);
  border-radius: var(--area-radius);
  background: var(--surface);
}
.review > div {
  padding: 12px 16px;
}
.review > div + div {
  border-top: 1px solid var(--surface-border);
}
.review dt {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.review dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.area .review dd .link-btn {
  flex: none;
}

/* Busca de escola: um campo e resultados abaixo. */
.school-picker .field {
  scroll-margin-top: 12px;
}
.combobox input {
  margin: 0;
}
.combobox input:disabled {
  background: var(--disabled-surface);
  color: var(--text-muted);
}
.combobox-list {
  margin: 0.4rem 0 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: 12px;
  box-shadow: var(--menu-shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.combobox-list [role='option'] {
  display: grid;
  gap: 0.1rem;
  min-height: 52px;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  line-height: 1.35;
  cursor: pointer;
}
.combobox-list [role='option']:hover,
.combobox-list [aria-selected='true'] {
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--primary);
}
.combobox-name {
  font-weight: 650;
}
.combobox-detail {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.combobox-status:empty {
  display: none;
}
.area .combobox-chosen {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  color: var(--success);
  font-weight: 650;
}
.area .check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin: 0;
  font-weight: 700;
  cursor: pointer;
}
.check-row input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--primary);
}
.new-school,
.contact-phone {
  padding: 14px;
  border-radius: 14px;
  background: var(--warm);
}
.area .contact-phone > .hint:first-child {
  margin: 0 0 8px;
}
.area .contact-phone .saved {
  margin: 0;
}

/* ---------- Concluído (receita Success check do Transitions.dev) ---------- */
.done-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 18px;
  border: 1px solid var(--surface-border);
  border-radius: var(--area-radius);
  background: var(--surface);
  text-align: center;
}
.done-card .stack-actions {
  width: 100%;
}
.area .done-card h1,
.area .done-card p {
  margin: 0;
}
.t-success-check {
  display: inline-block;
  width: 84px;
  height: 84px;
  color: var(--success);
  animation: check-in 500ms var(--area-ease) both;
}
.t-success-check svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.t-success-check .ring {
  stroke: currentColor;
  stroke-width: 2.5;
  opacity: 0.25;
}
.t-success-check .tick {
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: check-draw 500ms 80ms var(--area-ease) forwards;
}
@keyframes check-in {
  from {
    transform: translateY(12px) rotate(-20deg);
    opacity: 0;
  }
}
@keyframes check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Conta e cidades ---------- */
.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 18px;
}
.area .profile-head h1 {
  margin: 0;
  font-size: 1.375rem;
  overflow-wrap: anywhere;
}
.area .profile-head p {
  margin: 2px 0 0;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font: 800 1.625rem var(--font-display);
}
.area .city-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
}
.area .city-card h2 {
  margin: 0;
  font-size: 1.25rem;
}
.city-card form {
  grid-column: 1 / -1;
}
.request-box {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 18px;
  border-radius: var(--area-radius);
  background: var(--warm);
}
.area .request-box h2,
.area .request-box p {
  margin: 0;
}
.area-prose {
  max-width: 70ch;
}
.area .area-prose h1 {
  margin-bottom: 14px;
}
.area .area-prose h2 {
  margin-top: 24px;
}

/* ---------- Desktop (≥ 960 px): navegação no cabeçalho, grade, rodapé ---------- */
@media (min-width: 960px) {
  .area,
  html:has(.area) {
    --tabbar-h: 0px;
  }
  .area-tabbar {
    display: none;
  }
  .area:not(.is-flow):has(.area-tabbar) {
    padding-bottom: 0;
  }
  .area .brand {
    --brand-scale: 0.72;
  }
  .area .header-inner {
    min-height: 84px;
  }
  .area-topnav {
    display: flex;
    gap: 4px;
  }
  .area .area-topnav a {
    gap: 8px;
    min-height: 48px;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
  }
  .area .area-topnav a:hover {
    background: var(--blue-soft);
  }
  .area .area-topnav a[aria-current='page'] {
    background: var(--primary);
    color: #fff;
  }
  .area-topnav .icon {
    width: 20px;
    height: 20px;
  }
  .area-main {
    padding-block: 32px 56px;
  }
  .area .desktop-only {
    display: block;
  }
  .mobile-hidden {
    display: block;
  }
  .area .mobile-only,
  .area .school-tabs,
  .area .school-summary:not(.school-summary-always) {
    display: none;
  }
  .area .hello h1 {
    font-size: 2.5rem;
  }
  /* Escolas e Terapias dividem a linha; Contar ocupa a de baixo. */
  .tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .tile {
    min-height: 190px;
    padding: 24px;
  }
  .tile:not(.tile-wide) strong {
    font-size: 1.5rem;
  }
  .tile-wide {
    min-height: 0;
  }
  .block {
    max-width: 760px;
  }
  .city-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 0 24px;
    align-items: start;
  }
  .city-photo {
    grid-column: 2;
    grid-row: 1 / -1;
    margin: 0;
  }
  .city-photo img,
  .city-photo-frame {
    aspect-ratio: 16 / 10;
  }
  .area .city-name {
    --city-name-max: 5.25rem;
  }
  .area .list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .find {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .find:has(.filter-select) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
  .area .cards:has(.school-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .area .area-cta.btn-block,
  .area .area-cta .btn-block {
    width: auto;
  }
  .school-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: 'numeros sobre' 'relatos sobre';
    grid-template-rows: auto 1fr;
    gap: 8px 36px;
    align-items: start;
  }
  .sd-sobre {
    grid-area: sobre;
    padding: 22px;
    border: 1px solid var(--surface-border);
    border-radius: var(--area-radius);
    background: var(--surface);
  }
  .sd-numeros {
    grid-area: numeros;
  }
  .sd-relatos {
    grid-area: relatos;
    padding-top: 18px;
  }
  .indicators {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .enem-stats {
    grid-template-columns: 1fr 1fr;
  }
  .enem-rows > div {
    grid-template-columns: 170px 70px minmax(0, 1fr);
    align-items: center;
  }
  .enem-bar {
    grid-column: 3;
    grid-row: 1;
  }
  .enem-ctx {
    grid-column: 3;
  }
  .area .school-head h1 {
    font-size: 2.25rem;
  }
  .area-narrow {
    margin-inline: auto;
  }
  .stack-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .done-card .stack-actions {
    max-width: 560px;
  }
  .flow {
    min-height: 0;
    margin: 40px auto 56px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    background: var(--canvas);
  }
  .flow-top {
    padding: 18px 28px 14px;
  }
  .flow-body {
    padding: 8px 28px 28px;
  }
  .flow-foot {
    position: static;
    justify-content: space-between;
    padding: 16px 28px;
  }
  .flow-foot [data-step-next],
  .flow-foot [data-step-submit] {
    flex: 0 0 auto;
    min-width: 16rem;
  }
  dialog.sheet {
    inset: 0;
    width: min(100% - 48px, 560px);
    max-height: 82vh;
    margin: auto;
    border-radius: 20px;
  }
  .sheet-grip {
    height: 14px;
  }
  .sheet-grip span {
    display: none;
  }
}
@media (max-width: 959px) {
  .area .city-menu[open] .city-panel {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 61;
    width: 100%;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
  .area .city-menu[open]::before,
  .area .filter-menu[open]::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgb(15 23 42 / 0.45);
  }
  .area .filter-menu[open] .filter-panel {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 61;
    width: 100%;
    max-height: 80dvh;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
}
@media (max-width: 380px) {
  .area .brand {
    --brand-scale: 0.52;
  }
  .area .city-chip {
    padding: 6px 10px;
    font-size: 0.9375rem;
  }
  .tiles,
  .choices.choices-two {
    grid-template-columns: 1fr;
  }
  .tile {
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    min-height: 0;
  }
  .tile .tile-icon {
    grid-row: span 2;
    margin: 0;
  }
  .area-tabbar a {
    font-size: 0.75rem;
  }
}
@media (max-width: 479px) {
  .choices.choices-two {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .picker-panel,
  .picker.is-sheet .picker-panel,
  .fs-track,
  .fs-track::before {
    transform: none !important;
    transition: none !important;
  }
  .t-success-check .tick {
    stroke-dashoffset: 0;
  }
}
@media (forced-colors: active) {
  .fs-track {
    forced-color-adjust: none;
    border: 2px solid CanvasText;
    background: Canvas;
  }
  .fs-track::before {
    top: 2px;
    left: 2px;
    background: CanvasText;
    box-shadow: none;
  }
  .fs-switch:checked + .fs-track {
    background: Highlight;
  }
  .fs-switch:checked + .fs-track::before {
    background: HighlightText;
  }
  .fs-track::after {
    display: none;
  }
  .picker-list [aria-selected='true'] {
    outline: 2px solid CanvasText;
  }
}

/* Aviso depois de uma lista de relatos: respiro em relação ao último cartão. */
.area .stack + .hint,
.area .stack + .pagination + .hint,
.area .sd-relatos + .hint {
  margin-top: 16px;
}
