/* Leite & Reis — tema institucional das páginas públicas (padrão único).
   Carregado depois de app.css (estrutura legada): aqui ficam os tokens e todos os componentes visuais.
   Não altera comportamento: nenhum id, name, data-* ou rota depende deste arquivo. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --navy-900: #061f42;
  --navy-800: #0b315f;
  --navy-700: #164b7a;
  --gold-500: #c99a2e;
  --gold-300: #e0bd68;
  --gold-text: #8f6b1d;            /* dourado legível para textos pequenos (OAB) */
  --ivory: #faf9f6;
  --surface: #ffffff;
  --border: #d8e0e8;
  --border-strong: #b8c5d3;
  --text: #10233d;
  --text-body: #33455c;
  --text-muted: #607086;
  --focus: rgba(22, 75, 122, .22);
  --danger: #a63a3a;
  --warning: #8a5d10;
  --success: #1f725f;

  --header-h: 72px;
  --content-max: 1180px;
  --gutter: 24px;
  --radius: 10px;
  --radius-sm: 8px;
  --control-h: 44px;
  --shadow-card: 0 1px 2px rgba(16, 35, 61, .04), 0 4px 16px rgba(16, 35, 61, .04);
  --font-body: Aptos, "Segoe UI", Arial, sans-serif;
  --font-display: "Aptos Display", Aptos, "Segoe UI", Arial, sans-serif;
  --gradient-navy: linear-gradient(120deg, #061f42 0%, #0a2b55 58%, #103d69 100%);

  /* nomes usados pelo app.css e por estilos anteriores */
  --lr-navy-950: var(--navy-900);
  --lr-navy-800: var(--navy-800);
  --lr-petrol-700: var(--navy-700);
  --lr-gold-600: var(--gold-text);
  --lr-gold-500: var(--gold-500);
  --lr-gold-400: var(--gold-300);
  --lr-ivory: var(--ivory);
  --lr-ink: var(--text);
  --lr-text-muted: var(--text-muted);
  --lr-border: var(--border);
  --lr-border-strong: var(--border-strong);
  --bg: var(--ivory);
  --panel: var(--surface);
  --panel-2: #f3f5f8;
  --line: var(--border);
  --muted: var(--text-muted);
  --accent: var(--navy-800);
  --accent-2: var(--navy-700);
  --accent-soft: rgba(22, 75, 122, .08);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html {
  color-scheme: light;
  background: var(--ivory);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}

h1,
h2,
h3 {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(28px, 2.6vw, 32px);
}

::selection {
  background: rgba(201, 154, 46, .28);
  color: var(--navy-900);
}

:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 2px;
}

.vista[hidden] {
  display: none !important;
}

/* ── Cabeçalho ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-h);
  background:
    radial-gradient(ellipse 55% 160% at 100% 0%, rgba(22, 75, 122, .55), transparent 70%),
    var(--gradient-navy);
  border-bottom: 1px solid rgba(201, 154, 46, .32);
  box-shadow: 0 2px 10px rgba(6, 31, 66, .16);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header__brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 100%;
  padding: 10px 0;
}

.site-header__brand img {
  display: block;
  width: auto;
  height: 56px;
  max-width: 240px;
  object-fit: contain;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.site-header__link {
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .88);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}

.site-header__link:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.site-header__link[aria-current="page"] {
  color: var(--gold-300);
}

.site-header__sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .24);
  color: transparent;
  font-size: 0;
}

/* ── Conteúdo central ───────────────────────────────────────────────────── */
.shell {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 44px) var(--gutter) 64px;
}

.alerts {
  position: sticky;
  z-index: 20;
  top: calc(var(--header-h) + 12px);
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
}

.alert {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy-700);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(16, 35, 61, .08);
  color: var(--text);
  font-size: 14.5px;
}

.alert-success { border-left-color: var(--success); color: #185a4b; }
.alert-warning { border-left-color: var(--warning); color: #6f4b0c; }
.alert-error { border-left-color: var(--danger); color: #862c2c; }

/* ── Cabeçalho de página: eyebrow + título + introdução ─────────────────── */
.page-head {
  max-width: 760px;
  margin: 0 0 28px;
}

.page-head__eyebrow,
.eyebrow,
.brand-lr .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.page-head__eyebrow::before {
  content: "";
  flex: 0 0 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}

.page-head__title {
  margin: 0 0 10px;
  color: var(--navy-900);
  font-size: clamp(28px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.page-head__intro {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.page-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Cartões ────────────────────────────────────────────────────────────── */
.card,
.form-card,
.profile-card,
.result-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card,
.form-card,
.profile-card {
  padding: 24px;
}

.form-card {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.card-title,
.card-eyebrow-discrete,
h2.card-eyebrow-discrete {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--navy-700);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.card-heading h2 {
  margin: 0 0 4px;
  color: var(--navy-900);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.card-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.step,
.brand-lr .form-card .step {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201, 154, 46, .55);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 700;
}

.step-book svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Formulários ────────────────────────────────────────────────────────── */
.fields-2, .fields-3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-900);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.field small,
.optional {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 400;
}

.field small {
  display: block;
  margin-top: 6px;
}

input,
textarea,
select {
  width: 100%;
  min-height: var(--control-h);
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8b97a6;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #93a5b8;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px var(--focus);
  outline: 0;
}

select:disabled {
  background: #f3f5f8;
  color: var(--text-muted);
  opacity: 1;
}

.privacy-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.portal-esqueci {
  margin: 14px 0 0;
  font-size: 14px;
  text-align: center;
}

.portal-esqueci a {
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Botões ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-h);
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover {
  transform: none;
}

.btn svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.btn-primary {
  border-color: var(--navy-800);
  background: var(--navy-800);
  box-shadow: none;
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--navy-700);
  background: var(--navy-700);
}

.btn-secondary {
  border-color: var(--navy-800);
  background: #fff;
  color: var(--navy-800);
}

.btn-secondary:hover {
  border-color: var(--navy-700);
  background: #f1f5f9;
  color: var(--navy-700);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--navy-900);
}

.btn-ghost:hover {
  background: #f1f5f9;
}

.btn-block {
  width: 100%;
}

/* ── Página inicial ─────────────────────────────────────────────────────── */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
  margin: 0 0 32px;
}

.home-hero .page-head {
  max-width: 780px;
  margin: 0;
}

.home-hero__acao {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 230px;
}

.link-conteudo-inline {
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-conteudo-inline:hover {
  color: var(--navy-700);
}

.home-content-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.home-aside {
  display: grid;
  align-content: start;
  gap: 24px;
}

.banca-lista {
  display: grid;
}

.lawyer-card {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.lawyer-card:first-child {
  padding-top: 0;
  border-top: 0;
}

.lawyer-card:last-child {
  padding-bottom: 0;
}

.lawyer-name {
  margin: 0 0 2px;
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.35;
}

.lawyer-oab {
  margin: 0 0 8px;
  color: var(--gold-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

.lawyer-bio {
  margin: 0;
  color: var(--text-body);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
}

.contacts-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacts-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.contacts-link,
.contacts-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 6px;
  color: var(--navy-900);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.contacts-link span {
  overflow-wrap: anywhere;
}

.contacts-link:hover,
.contacts-whatsapp:hover {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contacts-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--navy-700);
}

.contacts-whatsapp .contacts-icon,
.contacts-icon--whatsapp {
  color: #128c4b;
}

.publications-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.publications-preview__title {
  margin: 0 0 6px;
  color: var(--navy-900);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.publications-preview__meta {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.publications-preview__excerpt {
  margin: 0 0 16px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
}

.link-conteudo-layer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.link-conteudo-layer:hover {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty-state {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 16px;
  text-align: center;
}

.empty-state__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  color: var(--navy-700);
  opacity: .5;
}

.empty-state__title {
  margin: 0;
  color: var(--navy-900);
  font-size: 16px;
  font-weight: 600;
}

.empty-state__text {
  max-width: 360px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Visualização CONTEÚDO da página inicial */
.conteudo-view__title {
  margin: 0 0 24px;
  color: var(--navy-900);
  font-size: clamp(28px, 2.6vw, 32px);
  font-weight: 700;
}

.conteudo-view__grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.conteudo-lista ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.conteudo-lista__item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy-900);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.conteudo-lista__item:hover,
.conteudo-lista__item.is-ativo {
  border-color: var(--navy-700);
  background: #f3f6fa;
}

.conteudo-lista__titulo {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}

.conteudo-lista__data {
  color: var(--text-muted);
  font-size: 12.5px;
}

.conteudo-artigo {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  outline: 0;
}

.conteudo-artigo:empty {
  display: none;
}

.conteudo-artigo__titulo {
  margin: 0 0 6px;
  color: var(--navy-900);
  font-size: clamp(22px, 2.2vw, 26px);
}

.conteudo-artigo__meta {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.conteudo-artigo__carregando {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.conteudo-artigo__corpo {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.conteudo-artigo__corpo h1,
.conteudo-artigo__corpo h2,
.conteudo-artigo__corpo h3 {
  margin: 1.4em 0 .5em;
  color: var(--navy-900);
}

.conteudo-artigo__corpo p {
  margin: 0 0 1em;
}

.conteudo-artigo__corpo ul,
.conteudo-artigo__corpo ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.conteudo-artigo__corpo a {
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.conteudo-artigo__corpo blockquote {
  margin: 0 0 1em;
  padding-left: 14px;
  border-left: 3px solid var(--gold-500);
  color: var(--text-muted);
}

/* ── Área do cliente e páginas de formulário ────────────────────────────── */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.single-form {
  max-width: 800px;
  margin: 0 auto;
}

.account-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 24px;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 28px;
  padding: 0;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 32px);
  font-weight: 700;
}

.profile-card h2 {
  margin: 0 0 8px;
  color: var(--navy-900);
  font-size: 18px;
}

.profile-card p {
  margin: 4px 0;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(22, 75, 122, .2);
  border-radius: 999px;
  background: rgba(22, 75, 122, .07);
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 700;
}

.vinculos-logos {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.vinculo-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.vinculo-logo.is-ativo {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 2px rgba(201, 154, 46, .22);
}

.vinculo-logo img {
  display: block;
  max-width: 100%;
  max-height: 48px;
  margin: 0 auto;
  object-fit: contain;
}

.vinculo-logo__sigla {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.vinculo-logo__nome {
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 700;
}

.result-card {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 40px 32px;
  text-align: center;
}

.result-card h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.4vw, 30px);
}

.result-card .eyebrow {
  justify-content: center;
}

.result-card p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 1px solid rgba(31, 114, 95, .28);
  border-radius: 50%;
  background: rgba(31, 114, 95, .08);
  color: var(--success);
  font-size: 24px;
  font-weight: 700;
}

.result-error {
  border-color: rgba(166, 58, 58, .28);
  background: rgba(166, 58, 58, .08);
  color: var(--danger);
}

/* Páginas da agenda abertas pelo e-mail do escritório */
.assunto-box {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text) !important;
  white-space: pre-line;
}

.reagendar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.reagendar summary {
  margin-bottom: 12px;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ata-preview {
  max-height: 70vh;
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #20252a;
  line-height: 1.55;
}

/* ── Rodapé (igual em todas as páginas) ─────────────────────────────────── */
.site-footer {
  flex-shrink: 0;
  margin-top: 0;
  border-top: 1px solid rgba(201, 154, 46, .30);
  background: var(--gradient-navy);
  color: rgba(255, 255, 255, .86);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  text-align: center;
}

.site-footer__text {
  color: rgba(255, 255, 255, .86);
  font-size: 13.5px;
  letter-spacing: .01em;
  line-height: 1.5;
}

.footer-brand-strong {
  color: #fff;
  font-weight: 700;
}

.footer-brand-light {
  color: rgba(255, 255, 255, .9);
  font-weight: 400;
}

/* ── Responsividade ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .home-hero {
    gap: 20px 32px;
  }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-hero__acao {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .home-content-grid,
  .panel-grid,
  .account-layout,
  .conteudo-view__grid {
    grid-template-columns: 1fr;
  }

  .publications-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 104px;
    --gutter: 16px;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
  }

  .site-header__brand {
    height: auto;
    padding: 6px 0 0;
  }

  .site-header__brand img {
    height: 44px;
  }

  .site-header__nav {
    justify-content: space-between;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header__nav::-webkit-scrollbar {
    display: none;
  }

  .site-header__link {
    padding: 8px 4px;
    font-size: 12px;
    letter-spacing: .05em;
  }

  .site-header__sep {
    display: none;
  }

  .shell {
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 48px;
  }

  .card,
  .form-card,
  .profile-card {
    padding: 20px 16px;
  }

  .result-card {
    padding: 32px 20px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  input,
  textarea,
  select {
    font-size: 16px;   /* evita o zoom automático do iOS ao focar o campo */
  }
}

@media (max-width: 640px) {
  .fields-2, .fields-3 {
    grid-template-columns: 1fr;
  }

  .home-hero__acao .btn {
    flex: 1 1 100%;
  }
}
