/* ============================================================
   CCB — Congregação Cristã no Brasil · Vale do Juruá
   Folha de estilo fiel ao Design System oficial da CCB
   Fonte: Manual de Identidade Visual CCB nos Meios Digitais
          (Administração São Paulo · Dezembro/2022 · Rev.05)
   ============================================================ */

/* Fonte institucional: Novarese Std (Adobe, licenciada). Na ausência
   dos arquivos, usamos "Spectral" (Google Fonts) como análogo livre —
   serifada humanista com calor e contraste semelhantes. */
@import url("https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap");

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ── TOKENS — Design System CCB ── */
:root {
  /* Paleta primária */
  --ccb-white: #FFFFFF;
  --ccb-black: #201E1E;
  --ccb-gray: #CDD4DC;
  --ccb-blue: #033D60;

  /* Secundárias (caixas / fundos) */
  --ccb-orange: #DC3C00;
  --ccb-amber: #FFCC66;
  --ccb-gray-mid: #A5A5A5;

  /* Ênfase / destaque */
  --ccb-slate: #49656C;
  --ccb-green: #5DB196;
  --ccb-mint: #98CDBD;

  /* Superfícies */
  --bg: var(--ccb-white);
  --bg-soft: #F4F6F8;
  --bg-dark: var(--ccb-blue);

  /* Texto */
  --fg: var(--ccb-black);
  --fg-2: #4A4A4A;
  --fg-3: #7A7A7A;
  --fg-on-dark: var(--ccb-white);
  --fg-on-dark-2: #B6C5D2;

  /* Acentos de marca */
  --accent: var(--ccb-blue);
  --accent-deep: #022744;
  --accent-soft: #E6EEF4;
  --highlight: var(--ccb-amber);
  --warning: var(--ccb-orange);
  --success: var(--ccb-green);
  --danger: #B3331A;
  --danger-soft: #FBEAE7;

  /* Bordas / divisores */
  --border-1: #E1E5EA;
  --border-2: var(--ccb-gray);
  --rule-light: rgba(3, 61, 96, 0.12);

  /* Elevação — discreta, nunca teatral */
  --shadow-1: 0 1px 2px rgba(32, 30, 30, 0.06), 0 1px 1px rgba(32, 30, 30, 0.04);
  --shadow-2: 0 2px 6px rgba(32, 30, 30, 0.08), 0 1px 2px rgba(32, 30, 30, 0.04);
  --shadow-3: 0 8px 24px rgba(3, 61, 96, 0.10), 0 2px 4px rgba(32, 30, 30, 0.06);

  /* Raio — modesto, ar de documento */
  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 8px;

  /* Espaçamento (escala 8pt) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Tipografia — famílias */
  --font-brand: "Novarese Std", "Spectral", "Cambria", "Times New Roman", Georgia, serif;
  --font-doc: Verdana, Geneva, "DejaVu Sans", sans-serif;
  --font-mono: "SF Mono", "Consolas", "Liberation Mono", monospace;

  /* Tipografia — escala */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --fs-3xl: 48px;

  --lh-tight: 1.15;
  --lh-snug: 1.30;
  --lh-normal: 1.50;
  --lh-loose: 1.70;

  --tracking-tight: -0.01em;
  --tracking-wide: 0.04em;
  --tracking-caps: 0.08em;

  /* Movimento — funcional, não decorativo */
  --ease-standard: cubic-bezier(0.20, 0.00, 0.20, 1.00);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;

  /* ── Aliases pt-BR (compatibilidade com marcações existentes) ── */
  --ccb-branco: var(--ccb-white);
  --ccb-preto: var(--ccb-black);
  --ccb-cinza: var(--ccb-gray);
  --ccb-azul: var(--ccb-blue);
  --ccb-cinza-med: var(--ccb-gray-mid);
  --ccb-azul-esc2: var(--ccb-slate);
  --ccb-verde: var(--ccb-green);
  --ccb-verde-lt: var(--ccb-mint);
  --ccb-laranja: var(--ccb-orange);
  --ccb-amarelo: var(--ccb-amber);
  --ccb-cinza-bg: var(--bg-soft);
  --ccb-borda: var(--border-1);
  --ccb-texto: var(--ccb-black);
  --font: var(--font-doc);
}

/* ── BASE ── */
body {
  font-family: var(--font-doc);
  background: var(--bg);
  color: var(--fg);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Títulos na face institucional (Novarese Std / Spectral) */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-brand);
  color: var(--ccb-azul);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

/* Marcação (ênfase) — destaque âmbar do manual */
mark,
.ccb-mark {
  background: var(--ccb-amarelo);
  color: var(--ccb-preto);
  padding: 0 0.15em;
  border-radius: var(--radius-1);
}

/* Foco visível por teclado — anel sóbrio em azul de marca */
:focus-visible {
  outline: 2px solid var(--ccb-azul);
  outline-offset: 2px;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--ccb-azul);
  padding: 6px 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.topbar a {
  color: rgba(255, 255, 255, .75);
  font-size: var(--fs-xs);
  text-decoration: none;
  font-family: var(--font-doc);
  transition: color var(--dur-2) var(--ease-standard);
  letter-spacing: .02em;
}

.topbar a:hover {
  color: #fff;
}

.topbar-sep {
  color: rgba(255, 255, 255, .3);
  font-size: var(--fs-xs);
}

/* ── HEADER ── */
header {
  background: var(--ccb-branco);
  border-bottom: 1px solid var(--border-1);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Logo institucional (cartucho oficial) */
.ccb-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.ccb-logo-svg {
  display: block;
  height: 80px;
  width: auto;
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-line1 {
  font-size: 10px;
  font-family: var(--font-doc);
  font-weight: normal;
  color: var(--ccb-gray-mid);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  line-height: 1.3;
}

.brand-line2 {
  font-size: var(--fs-md);
  font-family: var(--font-doc);
  font-weight: bold;
  color: var(--ccb-azul);
  line-height: var(--lh-tight);
}

.brand-line3 {
  font-size: var(--fs-xs);
  font-family: var(--font-doc);
  color: var(--ccb-gray-mid);
  letter-spacing: .02em;
  margin-top: 2px;
}

/* Hambúrguer */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ccb-azul);
  transition: all var(--dur-3) var(--ease-standard);
}

/* ── NAV ── */
nav {
  background: var(--ccb-azul);
}

.nav-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-inner a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-family: var(--font-doc);
  font-size: 12.5px;
  padding: 13px 14px;
  display: block;
  border-bottom: 2px solid transparent;
  transition: background var(--dur-1) var(--ease-standard),
    border-color var(--dur-1) var(--ease-standard),
    color var(--dur-1) var(--ease-standard);
  white-space: nowrap;
}

.nav-inner a:hover,
.nav-inner a.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-bottom-color: var(--ccb-amarelo);
}

/* Nav mobile */
.nav-inner.open {
  flex-direction: column;
  align-items: flex-start;
}

.nav-inner.open a {
  width: 100%;
  padding: 11px 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  border-right: none;
}

/* ── CULTO STRIP ── */
.culto-strip {
  background: var(--ccb-slate);
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.culto-strip .label {
  font-size: 10.5px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  font-family: var(--font-doc);
  font-weight: bold;
}

.culto-strip .data {
  font-size: 13.5px;
  font-weight: bold;
  color: #fff;
  font-family: var(--font-doc);
}

.culto-strip .sep {
  color: rgba(255, 255, 255, .3);
}

.btn-watch {
  background: var(--ccb-branco);
  color: var(--ccb-azul);
  padding: 7px 16px;
  font-size: var(--fs-xs);
  font-weight: bold;
  font-family: var(--font-doc);
  text-decoration: none;
  border: 1px solid var(--ccb-branco);
  border-radius: var(--radius-2);
  transition: background var(--dur-2) var(--ease-standard),
    color var(--dur-2) var(--ease-standard);
}

.btn-watch:hover {
  background: var(--ccb-cinza);
  color: var(--ccb-azul);
}

/* ── HERO / BANNER ── */
.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-1);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ccb-azul);
  font-family: var(--font-doc);
  font-weight: bold;
  margin-bottom: var(--space-3);
}

.hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--ccb-azul);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}

.hero h3 {
  font-family: var(--font-brand);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--ccb-azul);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

.hero .verse {
  font-family: var(--font-brand);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--ccb-slate);
  margin: 0 auto var(--space-6);
  max-width: 52ch;
  line-height: var(--lh-normal);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── BOTÕES ── */
.btn-primary {
  background: var(--ccb-azul);
  color: var(--ccb-branco);
  padding: 11px 22px;
  font-family: var(--font-doc);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid var(--ccb-azul);
  border-radius: var(--radius-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--dur-1) var(--ease-standard),
    border-color var(--dur-1) var(--ease-standard);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn-outline {
  background: var(--bg);
  color: var(--ccb-azul);
  padding: 11px 22px;
  font-family: var(--font-doc);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid var(--ccb-azul);
  border-radius: var(--radius-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-1) var(--ease-standard),
    color var(--dur-1) var(--ease-standard);
}

.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ── LAYOUT PRINCIPAL ── */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 295px;
  gap: 2rem;
  align-items: start;
}

/* Permite que as colunas encolham: sem isto, conteúdo largo (ex.: <select>
   com nomes de casas longos) estoura a faixa do grid e gera rolagem
   horizontal, sobretudo no mobile. */
.main-wrap>div {
  min-width: 0;
}

/* ── CABEÇALHO DE SEÇÃO ── */
.sec-heading {
  font-family: var(--font-doc);
  font-size: var(--fs-xs);
  font-weight: bold;
  color: var(--ccb-branco);
  background: var(--ccb-azul);
  padding: 9px 14px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-heading svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── ACESSO RÁPIDO ── */
.acesso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.acesso-card {
  background: var(--ccb-branco);
  padding: 1.1rem .875rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: background var(--dur-1) var(--ease-standard);
}

.acesso-card:hover {
  background: var(--bg-soft);
}

.acesso-card:hover .ac-icon {
  background: var(--ccb-azul);
}

.acesso-card:hover .ac-icon svg {
  stroke: #fff;
}

.ac-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-1) var(--ease-standard);
}

.ac-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--ccb-azul);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--dur-1) var(--ease-standard);
}

.ac-title {
  font-size: var(--fs-xs);
  font-weight: bold;
  color: var(--ccb-azul);
  font-family: var(--font-doc);
  line-height: 1.3;
}

.ac-sub {
  font-size: 10.5px;
  color: var(--ccb-gray-mid);
  font-family: var(--font-doc);
  line-height: 1.4;
}

/* ── COMUNICADOS ── */
.comunicados-list {
  margin-bottom: 2rem;
}

.com-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-1);
  text-decoration: none;
  align-items: flex-start;
}

.com-item:last-child {
  border-bottom: none;
}

.com-date {
  font-size: 10.5px;
  color: var(--ccb-azul);
  font-weight: bold;
  font-family: var(--font-doc);
  white-space: nowrap;
  margin-top: 2px;
  min-width: 68px;
}

.com-text {
  font-size: 13px;
  color: var(--ccb-preto);
  font-family: var(--font-doc);
  line-height: 1.45;
}

.com-item:hover .com-text {
  color: var(--ccb-azul);
  text-decoration: underline;
}

/* ── CULTOS ── */
.cultos-box {
  background: var(--bg);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.cultos-body {
  padding: 1rem 1.125rem;
}

.cultos-body table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ccb-branco);
  font-family: var(--font-doc);
}

.cultos-body thead th {
  background: var(--bg-soft);
  color: var(--fg-2);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  text-align: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-1);
}

.cultos-body tbody td {
  font-size: 13px;
  color: var(--ccb-preto);
  text-align: center;
  vertical-align: middle;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-1);
}

.cultos-body tbody tr:last-child td {
  border-bottom: none;
}

.cultos-body tbody tr:nth-child(even) {
  background: var(--bg-soft);
}

.cultos-body tbody tr.culto-row:hover td {
  background: var(--accent-soft);
}

.cultos-body td.culto-dia {
  font-weight: 700;
}

.cultos-body td.culto-hora {
  font-weight: 700;
  color: var(--ccb-azul);
  white-space: nowrap;
}

.cultos-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

.cultos-filtros label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--ccb-azul);
  font-weight: 700;
  flex: 1 1 140px;
}

.cultos-filtros select {
  font: 400 var(--fs-sm)/1.4 var(--font-doc);
  padding: 8px 10px;
  width: 100%;
  min-width: 0;
  color: var(--ccb-preto);
  background: var(--ccb-branco);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-2);
  text-transform: none;
  letter-spacing: normal;
  transition: border-color var(--dur-1) var(--ease-standard),
    box-shadow var(--dur-1) var(--ease-standard);
}

.cultos-filtros select:focus {
  outline: none;
  border-color: var(--ccb-azul);
  box-shadow: 0 0 0 3px rgba(3, 61, 96, .18);
}

.culto-status {
  text-align: center;
  padding: 1rem 0;
  font-size: var(--fs-xs);
  color: var(--ccb-texto);
}

.culto-status-erro {
  color: var(--danger);
}

.culto-retry {
  margin-top: .5rem;
  padding: 7px 14px;
  font: 700 11px/1 var(--font-doc);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ccb-azul);
  background: var(--ccb-branco);
  border: 1px solid var(--ccb-azul);
  border-radius: var(--radius-2);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-standard),
    color var(--dur-1) var(--ease-standard);
}

.culto-retry:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ── SIDEBAR ── */
.sidebar-box {
  background: var(--ccb-branco);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.sidebar-box-body {
  padding: .875rem 1rem;
}

.sidebar-box-body p {
  font-size: 12.5px;
  color: var(--ccb-preto);
  font-family: var(--font-doc);
  line-height: var(--lh-loose);
  margin-bottom: .5rem;
}

.sidebar-box-body strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ccb-azul);
  font-weight: bold;
  display: block;
  margin-top: .875rem;
  margin-bottom: 2px;
  font-family: var(--font-doc);
}

.sidebar-box-body a {
  font-size: 12.5px;
  color: var(--ccb-azul);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-1);
  font-family: var(--font-doc);
  transition: color var(--dur-1) var(--ease-standard);
}

.sidebar-box-body a:last-child {
  border-bottom: none;
}

.sidebar-box-body a:hover {
  color: var(--ccb-laranja);
  text-decoration: underline;
}

/* Pedir oração */
.oracao-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-2);
  font: 400 12.5px/1.4 var(--font-doc);
  color: var(--ccb-preto);
  background: var(--ccb-branco);
  margin-bottom: 7px;
  outline: none;
  resize: none;
  transition: border-color var(--dur-1) var(--ease-standard),
    box-shadow var(--dur-1) var(--ease-standard);
}

.oracao-input:focus {
  border-color: var(--ccb-azul);
  box-shadow: 0 0 0 3px rgba(3, 61, 96, .18);
}

.btn-sm {
  width: 100%;
  background: var(--ccb-azul);
  color: #fff;
  border: 1px solid var(--ccb-azul);
  border-radius: var(--radius-2);
  padding: 9px;
  font-family: var(--font-doc);
  font-size: var(--fs-xs);
  font-weight: bold;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-standard),
    border-color var(--dur-1) var(--ease-standard);
  text-align: center;
  text-decoration: none;
  display: block;
}

.btn-sm:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.oracao-verse {
  font-family: var(--font-brand);
  font-size: 13px;
  font-style: italic;
  color: var(--ccb-slate);
  margin-bottom: .875rem !important;
  line-height: var(--lh-normal);
}

/* ── FOOTER ── */
footer {
  background: var(--ccb-azul);
  color: rgba(255, 255, 255, .78);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 1rem;
}

.footer-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  font-family: var(--font-doc);
  color: #fff;
  font-size: 11.5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  line-height: var(--lh-normal);
  margin-bottom: .75rem;
}

footer p,
footer li {
  font-size: var(--fs-xs);
  line-height: 1.75;
  font-family: var(--font-doc);
}

footer ul {
  list-style: none;
}

footer a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: var(--fs-xs);
  font-family: var(--font-doc);
  transition: color var(--dur-2) var(--ease-standard);
}

footer a:hover {
  color: var(--ccb-amarelo);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-logo-wrap .ccb-logo-svg {
  height: 60px;
}

.footer-logo-text {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  font-family: var(--font-doc);
}

.footer-bottom {
  max-width: 1020px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-bottom p {
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  font-family: var(--font-doc);
}

.footer-bottom a {
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--ccb-amarelo);
}

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  .main-wrap {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner>div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  /* Logo + texto + hambúrguer numa só linha: o header não quebra
     (nowrap), o bloco logo/texto encolhe (min-width:0) e o texto usa
     reticências quando faltar espaço; o hambúrguer mantém o tamanho. */
  header {
    justify-content: space-between;
    padding: .75rem 1rem;
    flex-wrap: nowrap;
    gap: .625rem;
  }

  .ccb-logo-wrap {
    min-width: 0;
    flex: 0 1 auto;
    gap: 10px;
  }

  .ccb-logo-svg {
    height: 52px;
  }

  .brand-text-wrap {
    min-width: 0;
  }

  .brand-line2,
  .brand-line3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
  }

  .nav-inner {
    display: none;
    flex-direction: column;
  }

  .nav-inner.open {
    display: flex;
  }

  .nav-inner a {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    border-right: none !important;
  }

  .topbar {
    display: none;
  }

  .brand-line2 {
    font-size: var(--fs-sm);
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .culto-strip {
    flex-direction: column;
    gap: .5rem;
    text-align: center;
  }

  .acesso-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-wrap {
    padding: 1.25rem 1rem;
    gap: 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner>div:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Tabela de cultos vira lista de cartões: cada culto é um cartão e
     o cabeçalho oculto é substituído pelo rótulo (data-label) de cada
     célula. Mais legível que rolar uma tabela de 5 colunas no celular. */
  .cultos-body {
    padding: .75rem;
  }

  .cultos-body thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cultos-body table,
  .cultos-body tbody,
  .cultos-body tbody tr,
  .cultos-body tbody td {
    display: block;
    width: 100%;
  }

  .cultos-body tbody tr.culto-row {
    border: 1px solid var(--border-1);
    border-radius: var(--radius-2);
    box-shadow: var(--shadow-1);
    background: var(--ccb-branco);
    padding: 2px 14px;
    margin-bottom: 12px;
  }

  /* sem zebra/hover no modo cartão */
  .cultos-body tbody tr:nth-child(even) {
    background: var(--ccb-branco);
  }

  .cultos-body tbody tr.culto-row:hover td {
    background: transparent;
  }

  .cultos-body tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    text-align: right;
    font-size: 13px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-1);
    overflow-wrap: anywhere;
  }

  .cultos-body tbody tr.culto-row td:last-child {
    border-bottom: none;
  }

  /* rótulo da coluna à esquerda de cada valor */
  .cultos-body tbody td::before {
    content: attr(data-label);
    flex: none;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--fg-3);
    text-align: left;
    white-space: nowrap;
  }

  /* horário em destaque dentro do cartão */
  .cultos-body tbody td.culto-hora {
    font-size: var(--fs-md);
  }

  /* linha de status (carregando/erro/vazio) ocupa o cartão inteiro */
  .cultos-body tbody td.culto-status {
    display: block;
    text-align: center;
    border-bottom: none;
    padding: 1rem 0;
  }

  .cultos-body tbody td.culto-status::before {
    content: none;
  }

  /* filtros: um por linha, alvos de toque maiores */
  .cultos-filtros label {
    flex: 1 1 100%;
  }
}

@media (max-width: 420px) {
  header {
    justify-content: space-between;
  }

  header .ccb-logo-svg {
    height: 60px;
    width: 60px;
    content: url(../img/logoccbreduzida-favicon.png);
  }

  .acesso-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-line2 {
    font-size: 13px;
  }
}
