/* ==========================================================================
   Catedral Anglicana da Santíssima Trindade — Minimalist Portal Design System
   Combina:
   - Estrutura institucional limpa do adventistas.org/pt (Header, Hero largo,
     faixa Bem-vindos! azul marinho, grid 8+4, rodapé claro organizado)
   - Simplicidade e foco litúrgico do Mosteiro de São Bento SP
   - Tipografia editorial (gola.io/LEEVI) e cards minimalistas (modulify)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Paleta Oficial (Identidade Visual Catedral da Santíssima Trindade) */
  --bg-canvas: #ffffff;
  --bg-stone: #f7f4f0;
  --bg-muted: #efecec;

  --brand-primary: #432821;       /* Marrom Jacarandá / Estrutura Sóbria */
  --brand-primary-dark: #2e1b16;
  --brand-terra: #682916;         /* Marrom Terra / Telha do Templo */
  --brand-gold: #a57947;          /* Dourado Madeira */
  --brand-silver: #b0a2a1;        /* Cinza / Prata Mineral */
  --liturgical-green: #17682a;    /* Verde Litúrgico */
  --liturgical-purple: #531768;   /* Roxo Litúrgico */

  /* Aliases semânticos integrados à paleta oficial */
  --brand-navy: #432821;
  --brand-navy-dark: #2e1b16;
  --brand-navy-tint: #efecec;

  --brand-amber: #ba732e;         /* Dourado Âmbar */
  --brand-amber-deep: #682916;    /* Alto contraste para kickers sobre claro */
  --brand-amber-soft: #ede4da;

  --ink: #000000;
  --ink-secondary: #1a1a1a;
  --ink-muted: #4a4a4a;

  --border-subtle: #e5ded8;
  --border-strong: #cfc7c6;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-subtle: 0 1px 2px rgba(67, 40, 33, 0.05);
  --shadow-card: 0 4px 16px -4px rgba(67, 40, 33, 0.08), 0 1px 3px rgba(67, 40, 33, 0.05);
  --shadow-dropdown: 0 12px 32px -8px rgba(67, 40, 33, 0.16), 0 2px 6px rgba(67, 40, 33, 0.05);

  /* Tipografia Oficial (Manual Trindade: Times New Roman + Cormorant Garamond / Gabriola) */
  --font-sans: 'Times New Roman', Times, serif;
  --font-serif: 'Cormorant Garamond', 'Gabriola', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

/* Container Principal (1280px max com respiro lateral em todos os breakpoints) */
.cat-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .cat-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 1200px) {
  .cat-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Grid 12 Colunas Responsivo */
.cat-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .cat-grid-12 {
    gap: 2rem;
  }
}
.cat-col-12 {
  grid-column: span 12 / span 12;
}
@media (min-width: 768px) {
  .cat-col-md-6 {
    grid-column: span 6 / span 6;
  }
}
@media (min-width: 992px) {
  .cat-col-lg-3 {
    grid-column: span 3 / span 3;
  }
  .cat-col-lg-4 {
    grid-column: span 4 / span 4;
  }
  .cat-col-lg-5 {
    grid-column: span 5 / span 5;
  }
  .cat-col-lg-6 {
    grid-column: span 6 / span 6;
  }
  .cat-col-lg-7 {
    grid-column: span 7 / span 7;
  }
  .cat-col-lg-8 {
    grid-column: span 8 / span 8;
  }
  .cat-col-lg-9 {
    grid-column: span 9 / span 9;
  }
}

/* Ritmo das Seções */
.cat-section {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  background-color: var(--bg-canvas);
}
.cat-section-stone {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  background-color: var(--bg-stone);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
@media (min-width: 768px) {
  .cat-section {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }
  .cat-section-stone {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

/* Cabeçalhos de Seção (estilo Adventistas com barra lateral limpa) */
.cat-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.cat-section-heading-accent {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-navy);
  border-left: 3px solid var(--brand-navy);
  padding-left: 1rem;
  margin: 0;
}
.cat-display-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
}
.cat-section-sub {
  font-size: 0.98rem;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 60ch;
}
.cat-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: none;
  transition: opacity 0.15s ease, gap 0.15s ease;
}
.cat-more-link:hover {
  color: var(--brand-navy-dark);
  gap: 0.65rem;
  text-decoration: underline;
}

/* ==========================================================================
   1. Header Branco em 2 Níveis (Adventistas.org + LEEVI Clean)
   ========================================================================== */
.cat-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(247, 244, 240, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.cat-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 82px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .cat-header-inner {
    gap: 1.5rem;
    min-height: 94px;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
}
@media (min-width: 1200px) {
  .cat-header-inner {
    min-height: 112px;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }
}

.cat-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.cat-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  flex-shrink: 0;
  box-shadow: none;
}
.cat-brand-mark {
  height: 48px;
  width: auto;
  display: block;
  background: transparent;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.22));
}
.cat-logo-white {
  filter: brightness(0) invert(1);
}
.cat-logo-black {
  filter: brightness(0);
}
@media (min-width: 576px) {
  .cat-brand {
    gap: 0.9rem;
  }
}
.cat-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.1;
  color: #000000;
}
.cat-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-brand-sub {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cat-mobile-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-nav-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.45rem;
}

/* Barra superior sutil de utilidades (como adventistas.org) */
.cat-utility-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cat-utility-link {
  color: #000000;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  transition: color 0.15s ease;
}
.cat-utility-link:hover {
  color: var(--brand-navy);
}
.cat-utility-kbd {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.05rem 0.32rem;
}

/* Menu principal limpo com traço inferior ativo */
.cat-nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  color: #000000;
  padding: 0.5rem 0.55rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
@media (min-width: 1320px) {
  .cat-nav-link {
    padding: 0.5rem 0.68rem;
  }
}
.cat-nav-link:hover {
  color: var(--brand-navy);
}
.cat-nav-link.active {
  color: var(--brand-navy);
  font-weight: 600;
  border-bottom-color: var(--brand-navy);
}

/* Dropdown limpo (shadcn / Preline) */
.cat-dropdown-menu {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  padding: 0.85rem;
  min-width: 280px;
  background-color: var(--bg-canvas);
  margin-top: 0.35rem !important;
}
.cat-dropdown-menu.cat-dropdown-2col {
  min-width: 540px;
  display: none;
}
.cat-dropdown-menu.cat-dropdown-2col.show {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 0.75rem;
}
.cat-dropdown-item {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cat-dropdown-item strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1px;
}
.cat-dropdown-item small {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-muted);
}
.cat-dropdown-item:hover {
  background-color: var(--bg-stone);
}
.cat-dropdown-item:hover strong {
  color: var(--brand-navy);
}

/* ==========================================================================
   2. Hero Largo Edge-to-Edge (Adventistas.org + Mosteiro Simplicidade)
   ========================================================================== */
.cat-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-color: #2e1b16;
  overflow: hidden;
}
.cat-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 26%;
  z-index: 0;
  will-change: transform, opacity;
}
.cat-route-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-terra), var(--brand-amber));
  z-index: 1200;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .cat-route-progress {
    display: none;
  }
}
@media (min-width: 992px) {
  .cat-hero {
    min-height: 540px;
  }
}
.cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(46, 27, 22, 0.8) 0%,
    rgba(67, 40, 33, 0.88) 100%
  );
  z-index: 1;
}
@media (min-width: 768px) {
  .cat-hero::before {
    background: linear-gradient(
      90deg,
      rgba(46, 27, 22, 0.88) 0%,
      rgba(67, 40, 33, 0.66) 50%,
      rgba(67, 40, 33, 0.18) 100%
    );
  }
}
.cat-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 3.25rem;
  padding-bottom: 5.5rem;
  width: 100%;
  max-width: 620px;
  color: #ffffff;
}
@media (min-width: 768px) {
  .cat-hero-inner {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }
}
.cat-hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.85rem;
}
.cat-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 6.4vw, 3.45rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 1rem;
}
.cat-hero-subtitle {
  font-size: 1.04rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
}
.cat-hero-schedule {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 1.85rem;
}
.cat-btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: var(--brand-navy);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.55rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.cat-btn-hero:hover {
  background-color: var(--bg-stone);
  color: var(--brand-navy-dark);
  transform: translateY(-1px);
}
.cat-btn-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.cat-btn-hero-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.cat-hero-controls {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
@media (min-width: 1200px) {
  .cat-hero-controls {
    right: 3rem;
    bottom: 1.75rem;
  }
}
.cat-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
}
.cat-hero-dot.active {
  width: 24px;
  background-color: #ffffff;
}
.cat-hero-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(67, 40, 33, 0.42);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.cat-hero-arrow:hover {
  background: rgba(67, 40, 33, 0.78);
}

/* ==========================================================================
   3. Faixa Azul "Bem-vindos!" (Adventistas.org Full-Bleed Band)
   ========================================================================== */
.cat-welcome-band {
  background-color: var(--brand-navy);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #ffffff;
  padding: 2.5rem 0;
}
@media (min-width: 768px) {
  .cat-welcome-band {
    padding: 3rem 0;
  }
}
.cat-welcome-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.45rem;
}
.cat-welcome-sub {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 1.35rem;
}
.cat-welcome-search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.32rem 0.35rem 0.32rem 1.2rem;
  max-width: 480px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.cat-welcome-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.92rem;
  color: var(--ink);
}
.cat-welcome-search button {
  background: var(--brand-navy);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}
.cat-welcome-search button:hover {
  background: var(--brand-navy-dark);
}

.cat-welcome-shortcut {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #ffffff;
  text-decoration: none;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
}
.cat-welcome-shortcut:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.cat-welcome-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.cat-welcome-shortcut h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  color: #ffffff;
}
.cat-welcome-shortcut p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   4. Destaques Editoriais (8 cols) + Acesso Rápido (4 cols)
   ========================================================================== */
.cat-editorial-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cat-editorial-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}
.cat-editorial-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
@media (min-width: 640px) {
  .cat-editorial-row {
    grid-template-columns: 230px 1fr;
    align-items: center;
    gap: 1.5rem;
  }
}
.cat-editorial-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-stone);
}
.cat-editorial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.cat-editorial-row:hover .cat-editorial-thumb img {
  transform: scale(1.03);
}
.cat-editorial-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-amber-deep);
  margin-bottom: 0.35rem;
}
.cat-editorial-title {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.4rem 0;
  transition: color 0.15s ease;
}
.cat-editorial-row:hover .cat-editorial-title {
  color: var(--brand-navy);
}
.cat-editorial-desc {
  font-size: 0.91rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Lista limpa de botões (Acesso Rápido — Adventistas 4 cols + Modulify tint) */
.cat-action-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cat-action-tile {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.15rem;
  background-color: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  transition: all 0.18s ease;
}
.cat-action-tile i.cat-tile-icon {
  color: var(--brand-navy);
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.18s ease;
}
.cat-action-tile small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-muted);
  transition: color 0.18s ease;
}
.cat-action-tile:hover {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}
.cat-action-tile:hover i.cat-tile-icon,
.cat-action-tile:hover small {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   5. Minimalist Feature Cards (Modulify Inspiration — 4 Cards)
   ========================================================================== */
.cat-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: 1.4rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (min-width: 768px) {
  .cat-bento-card {
    min-height: 255px;
    padding: 1.65rem;
  }
}
.cat-bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
  color: var(--ink);
}
.cat-bento-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 2.25rem;
}
.cat-bento-title {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.45rem 0;
}
.cat-bento-desc {
  font-size: 0.89rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 1rem 0;
}
.cat-bento-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Único Card Destacado (Paleta oficial: marrom jacarandá, terra e dourado) */
.cat-bento-card.cat-bento-featured {
  background: linear-gradient(155deg, #432821 0%, #682916 55%, #a57947 135%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--shadow-card);
}
.cat-bento-card.cat-bento-green {
  border-top: 3px solid var(--liturgical-green);
}
.cat-bento-card.cat-bento-green .cat-bento-icon {
  color: var(--liturgical-green);
  background-color: #edf5ef;
  border-color: #c7decb;
}
.cat-bento-card.cat-bento-purple {
  border-top: 3px solid var(--liturgical-purple);
}
.cat-bento-card.cat-bento-purple .cat-bento-icon {
  color: var(--liturgical-purple);
  background-color: #f3edf5;
  border-color: #d7c7de;
}
.cat-bento-card.cat-bento-featured .cat-bento-icon {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.cat-bento-card.cat-bento-featured .cat-bento-title,
.cat-bento-card.cat-bento-featured .cat-bento-cta {
  color: #ffffff;
}
.cat-bento-card.cat-bento-featured .cat-bento-desc {
  color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   5B. Stories da Catedral (Accordion Horizontal + Play Invisível no Hover)
   ========================================================================== */
.cat-stories-section {
  border-bottom: 1px solid var(--border-subtle);
}

.cat-stories-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.4rem;
}

.cat-stories-row::-webkit-scrollbar {
  display: none;
}

@media (min-width: 992px) {
  .cat-stories-row {
    height: 410px;
    overflow: hidden;
    padding-bottom: 0;
  }
}

.cat-story-card {
  position: relative;
  flex: 0 0 72vw;
  max-width: 280px;
  aspect-ratio: 9 / 14;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #ffffff;
  background-color: #2e1b16;
  border: 1px solid var(--border-subtle);
  transition: flex-grow 0.58s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

@media (min-width: 992px) {
  .cat-story-card {
    flex: 1 1 0%;
    max-width: none;
    aspect-ratio: auto;
    min-width: 0;
    height: 100%;
  }
}

@media (min-width: 992px) and (hover: hover) {
  .cat-stories-row.has-hovered-story .cat-story-card:not(.is-hovered) {
    flex-grow: 0.68;
  }

  .cat-stories-row .cat-story-card.is-hovered {
    flex-grow: 4.15;
    box-shadow: 0 20px 44px -12px rgba(46, 27, 22, 0.38);
    z-index: 3;
  }
}

.cat-story-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.cat-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  display: block;
  transform: scale(1);
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@keyframes catStoryInvisiblePlay {
  0% {
    transform: scale(1.06) translate3d(-1.2%, -0.8%, 0);
  }
  50% {
    transform: scale(1.13) translate3d(1.2%, 0.6%, 0);
  }
  100% {
    transform: scale(1.09) translate3d(-0.6%, 1%, 0);
  }
}

@keyframes catStoryDelayedTitleFade {
  0%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

.cat-story-card.is-hovered .cat-story-media img {
  transform: scale(1.07);
  animation: catStoryInvisiblePlay 8s ease-in-out infinite alternate;
}

.cat-story-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(24, 15, 12, 0.34) 0%,
    rgba(24, 15, 12, 0.14) 44%,
    rgba(24, 15, 12, 0.88) 100%
  );
  opacity: 1;
  transition: opacity 0.4s ease;
}

.cat-story-card.is-hovered .cat-story-scrim {
  opacity: 0.12;
}

.cat-story-solid {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: var(--story-solid, var(--brand-terra));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-story-overlay {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.cat-story-play {
  margin: 1.15rem 0 0 1.15rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(104, 41, 22, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  color: #ffffff;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cat-story-caption-band {
  padding: 2.2rem 1.15rem 1.15rem;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.cat-story-card.is-hovered .cat-story-play {
  opacity: 0;
  transform: scale(0.85);
}

.cat-story-card.is-hovered .cat-story-caption-band {
  background: linear-gradient(
    180deg,
    rgba(24, 15, 12, 0) 0%,
    rgba(24, 15, 12, 0.38) 38%,
    rgba(24, 15, 12, 0.72) 100%
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000000 32%, #000000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000000 32%, #000000 100%);
  animation: catStoryDelayedTitleFade 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (min-width: 992px) {
  .cat-stories-row.has-hovered-story .cat-story-card:not(.is-hovered) .cat-story-solid {
    opacity: 1;
  }

  .cat-stories-row.has-hovered-story .cat-story-card:not(.is-hovered) .cat-story-overlay,
  .cat-stories-row.has-hovered-story .cat-story-card:not(.is-hovered) .cat-story-media,
  .cat-stories-row.has-hovered-story .cat-story-card:not(.is-hovered) .cat-story-scrim {
    opacity: 0;
  }
}

.cat-story-copy h3 {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.16;
  color: #ffffff;
  margin: 0 0 0.32rem 0;
}

.cat-story-copy p {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cat-story-card.is-hovered .cat-story-media img {
    animation: none;
    transform: scale(1.03);
  }
}

/* ==========================================================================
   6. Showcase Música, Transmissões & Acervo (Band 5)
   ========================================================================== */
.cat-showcase-card {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .cat-showcase-card {
    grid-template-columns: 1.05fr 1fr;
  }
}
.cat-showcase-media {
  position: relative;
  min-height: 240px;
}
.cat-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  display: block;
}
.cat-showcase-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .cat-showcase-body {
    padding: 2rem;
  }
}

.cat-compact-doc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .cat-compact-doc-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.cat-compact-doc-link {
  display: block;
  padding: 1rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cat-compact-doc-link:hover {
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-subtle);
  color: var(--ink);
}
.cat-compact-doc-link strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--brand-navy);
}
.cat-compact-doc-link span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ==========================================================================
   7. Light Minimalist Footer (Adventistas.org Image 2)
   ========================================================================== */
.cat-footer {
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
  padding-top: 4rem;
}
.cat-footer-group {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.cat-footer-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cat-footer-heading {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem 0;
}
.cat-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.55rem 1.5rem;
}
@media (min-width: 640px) {
  .cat-footer-links-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .cat-footer-links-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.cat-footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.15s ease;
}
.cat-footer-links a:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}
.cat-footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.cat-footer-socials a {
  color: var(--ink);
  font-size: 1.15rem;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.cat-footer-socials a:hover {
  opacity: 1;
  color: var(--brand-navy);
}
.cat-footer-bottom {
  margin-top: 3.5rem;
  padding: 1.15rem 0;
  background-color: var(--bg-stone);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   8. Editorial Article & Section Hub Pages (gola.io/LEEVI Inspiration)
   ========================================================================== */
.cat-article-header {
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 0 2.75rem 0;
}
.cat-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.cat-breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}
.cat-breadcrumb a:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}
.cat-breadcrumb li + li::before {
  content: '/';
  margin-right: 0.45rem;
  color: var(--border-strong);
}

.cat-article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem 0;
}
.cat-article-lead {
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 62ch;
}
.cat-article-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 0.5rem;
}
@media (min-width: 992px) {
  .cat-article-meta-grid {
    border-left: 1px solid var(--border-subtle);
    padding-left: 2rem;
  }
}
.cat-meta-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}
.cat-meta-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.cat-article-cover {
  margin: 2.25rem 0 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 410px;
  border: 1px solid var(--border-subtle);
}
.cat-article-cover img {
  width: 100%;
  height: 100%;
  max-height: 410px;
  object-fit: cover;
  object-position: center 26%;
  display: block;
}

/* Sticky Left Rail (Nesta página) */
.cat-toc-sidebar {
  position: sticky;
  top: 128px;
  max-height: calc(100vh - 148px);
  overflow-y: auto;
  padding-right: 1rem;
}
.cat-toc-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}
.cat-toc-nav a {
  display: block;
  padding: 0.38rem 0 0.38rem 0.85rem;
  border-left: 2px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--ink-secondary);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cat-toc-nav a.cat-toc-h3 {
  padding-left: 1.45rem;
  font-size: 0.81rem;
  color: var(--ink-muted);
}
.cat-toc-nav a:hover {
  color: var(--brand-navy);
  border-left-color: var(--brand-navy);
}

/* Corpo do Artigo (Leitura Confortável) */
.pa-doc-reader-body {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  line-height: 1.78;
  color: #000000;
  width: 100%;
  max-width: 740px;
  overflow-wrap: anywhere;
}
.pa-doc-reader-body h2,
.pa-doc-reader-body h3,
#topicos-secao,
#inicio-artigo {
  scroll-margin-top: 132px;
}
.pa-doc-reader-body h1 {
  display: none; /* Título H1 já exibido no cabeçalho editorial acima */
}
.pa-doc-reader-body h2 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--brand-navy);
}
.pa-doc-reader-body h2:first-child {
  margin-top: 0;
}
.pa-doc-reader-body h3 {
  font-family: var(--font-serif);
  color: var(--brand-navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.7rem;
}
.pa-doc-reader-body a {
  color: var(--brand-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pa-doc-reader-body blockquote,
.pa-doc-reader-body .pa-callout {
  background-color: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-navy);
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}
.pa-doc-reader-body blockquote {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
}
.pa-doc-reader-body .pa-callout-tip {
  background-color: var(--brand-amber-soft);
  border-color: #dbc9b5;
  border-left-color: var(--liturgical-green);
}
.pa-doc-reader-body pre {
  background-color: #2e1b16;
  color: #ede4da;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.88rem;
}
.pa-doc-reader-body .pa-doc-table {
  border-color: var(--border-subtle);
  font-size: 0.93rem;
}
@media (max-width: 767.98px) {
  .pa-doc-reader-body .pa-doc-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.pa-doc-reader-body .pa-doc-table thead th {
  background-color: var(--brand-navy);
  color: #ffffff;
  font-weight: 600;
  border: none;
}
.pa-doc-reader-body hr {
  border-color: var(--border-subtle);
  opacity: 1;
  margin: 2rem 0;
}
.pa-doc-reader-body .m3-mermaid-figure {
  background-color: var(--bg-stone) !important;
  border-color: var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  -webkit-overflow-scrolling: touch;
}
.pa-doc-reader-body .m3-mermaid-figure svg {
  --bg: #f7f4f0;
  --fg: #221714;
  --line: #432821;
  --accent: #682916;
  --muted: #584842;
  --surface: #ffffff;
  --border: #cfc7c6;
  --_text: var(--fg);
  --_text-sec: var(--muted);
  --_text-muted: var(--muted);
  --_line: var(--line);
  --_arrow: var(--accent);
  --_node-fill: var(--surface);
  --_node-stroke: var(--border);
  --_group-fill: var(--bg);
}

/* Hub Article Cards (Modulify-style clean grid) */
.cat-hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cat-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-card);
  color: inherit;
}
.cat-hub-card-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.35rem 0 0.45rem 0;
  line-height: 1.35;
}
.cat-hub-card:hover .cat-hub-card-title {
  color: var(--brand-navy);
}

/* ==========================================================================
   9. Glossário Interativo (Preservado e Alinhado à Paleta Minimalista)
   ========================================================================== */
.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-navy);
  background: var(--brand-navy-tint);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.glossary-toolbar {
  background: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.glossary-search-wrapper {
  position: relative;
  margin-bottom: 1rem;
}
.glossary-search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-canvas);
  font-size: 0.92rem;
  color: var(--ink);
}
.glossary-search-input:focus {
  outline: none;
  border-color: var(--brand-navy);
}
.glossary-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
}
.glossary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.filter-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  color: var(--ink-secondary);
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}
.glossary-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.letter-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
}
.letter-btn.active,
.letter-btn:hover {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}
.glossary-stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.glossary-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
}
.glossary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.glossary-card-title {
  margin: 0 !important;
  font-size: 1.04rem !important;
  font-family: var(--font-serif);
  font-weight: 700 !important;
}
.glossary-card-title a {
  color: var(--ink);
  text-decoration: none;
}
.glossary-badge {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--bg-stone);
  color: var(--ink-secondary);
}
.glossary-card-desc {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 0.85rem !important;
  flex-grow: 1;
}
.glossary-card-footer {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.glossary-rel-label {
  font-size: 0.7rem;
  color: var(--ink-muted);
  width: 100%;
}
.glossary-tag {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
  cursor: pointer;
}
.glossary-tag:hover {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}
.glossary-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

/* Mobile Drawer */
.cat-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-canvas);
  z-index: 1055;
  box-shadow: -12px 0 36px rgba(17, 24, 39, 0.16);
  padding: 1.5rem;
  overflow-y: auto;
}
.cat-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1050;
}

/* ==========================================================================
   11. Agenda & Calendário Interativo (/agenda)
   Combina visão dia a dia em colunas, calendário mensal e cronograma por horário
   ========================================================================== */
.cat-agenda-board .font-serif,
.cat-agenda-info-card .font-serif {
  font-family: var(--font-serif);
}

.cat-agenda-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.cat-agenda-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  align-items: center;
}

.cat-agenda-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.45rem 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cat-agenda-tab span {
  font-weight: 400;
  opacity: 0.78;
}

.cat-agenda-tab:hover,
.cat-agenda-tab.active {
  color: var(--ink);
}

.cat-agenda-tab.active {
  border-bottom-color: var(--brand-primary);
}

.cat-agenda-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.cat-agenda-view-group {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  gap: 2px;
  flex-wrap: wrap;
}

.cat-agenda-view-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.cat-agenda-view-btn:hover {
  color: var(--ink);
  background: var(--bg-stone);
}

.cat-agenda-view-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
}

.cat-agenda-period-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.cat-agenda-period-title {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.cat-agenda-nav-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--brand-primary);
  background: var(--brand-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.cat-agenda-nav-circle:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-1px);
}

.cat-agenda-today-btn {
  appearance: none;
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.cat-agenda-today-btn:hover {
  background: var(--bg-stone);
}

.cat-agenda-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  align-items: center;
}

.cat-agenda-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.cat-agenda-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
}

/* Visão Semanal (7 colunas estilo calendário semanal limpo) */
.cat-week-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

@media (min-width: 992px) {
  .cat-week-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.cat-week-col {
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

@media (min-width: 992px) {
  .cat-week-col {
    min-height: 360px;
    padding: 0.85rem 0.7rem;
  }
}

.cat-week-col.is-today {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px rgba(67, 40, 33, 0.2);
}

.cat-week-col.is-quiet {
  background: var(--bg-stone);
  border-color: var(--border-subtle);
}

@media (max-width: 991.98px) {
  .cat-week-col-hide-mobile {
    display: none;
  }
}

.cat-week-col-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.7rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cat-week-day-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}

.cat-week-col.is-quiet .cat-week-day-name,
.cat-week-col.is-quiet .cat-week-day-num {
  color: var(--ink-muted);
}

.cat-week-day-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.cat-week-today-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--brand-terra);
  color: #ffffff;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

.cat-week-col-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.cat-week-event-card {
  appearance: none;
  text-align: left;
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-left-width: 4px;
  border-left-style: solid;
  border-radius: 8px;
  padding: 0.65rem 0.6rem;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.cat-week-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
}

.cat-week-event-time {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.cat-week-event-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.cat-week-event-loc {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--ink-muted);
}

.cat-week-empty-note {
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  opacity: 0.85;
}

.cat-week-empty-foot {
  font-size: 0.72rem;
  font-style: italic;
}

/* Visão Calendário Mensal */
.cat-month-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.4rem;
}

.cat-month-grid-head,
.cat-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  min-width: 784px;
}

.cat-month-grid-head {
  background: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.cat-month-weekday {
  padding: 0.6rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  text-align: center;
}

.cat-month-grid {
  border-left: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  background: var(--bg-canvas);
}

.cat-month-cell {
  min-height: 118px;
  padding: 0.5rem;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background-color 0.14s ease;
}

.cat-month-cell:hover {
  background: #fcfaf7;
}

.cat-month-cell.is-muted {
  background: #f9f7f5;
  color: var(--ink-muted);
}

.cat-month-cell.is-selected {
  background: #f6efe7;
  box-shadow: inset 0 0 0 2px var(--brand-primary);
}

.cat-month-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-month-day-num {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.cat-month-cell.is-today .cat-month-day-num {
  background: var(--brand-terra);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.05rem 0.48rem;
}

.cat-month-count-dot {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bg-muted);
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 0 0.42rem;
}

.cat-month-pill-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cat-month-ev-pill {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 0;
  border-left-width: 3px;
  border-left-style: solid;
  border-radius: 4px;
  padding: 0.22rem 0.38rem;
  font-size: 0.71rem;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  cursor: pointer;
}

.cat-month-more {
  font-size: 0.68rem;
  color: var(--ink-muted);
  padding-left: 0.2rem;
}

.cat-month-selected-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.cat-selected-day-card {
  appearance: none;
  width: 100%;
  height: 100%;
  text-align: left;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.cat-selected-day-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Visão Programação por Horário (Time blocks + Cards com miniatura lateral) */
.cat-schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.cat-schedule-day-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cat-schedule-day-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.cat-schedule-slots {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cat-schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .cat-schedule-row {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0.85rem;
  }
}

.cat-schedule-time-col {
  background: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-secondary);
  text-align: center;
}

.cat-schedule-cards-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cat-schedule-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

@media (min-width: 768px) {
  .cat-schedule-card {
    flex-direction: row;
    align-items: center;
  }
}

.cat-schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
}

.cat-schedule-card-content {
  flex: 1;
  min-width: 0;
}

.cat-schedule-ribbon {
  width: 10px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.cat-schedule-cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cat-schedule-lit-pill {
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  color: var(--ink-secondary);
}

.cat-schedule-card-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.25rem 0;
}

.cat-schedule-card-sub {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin: 0 0 0.75rem 0;
}

.cat-schedule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cat-schedule-tag-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.72);
}

.cat-schedule-thumb {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cat-schedule-thumb {
    width: 185px;
    height: 112px;
  }
}

.cat-schedule-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-agenda-cat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

/* Rodapé de cartões complementares em /agenda */
.cat-agenda-info-card {
  display: block;
  height: 100%;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-stone);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.cat-agenda-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

/* Modal de Detalhes de Evento */
.cat-agenda-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(34, 23, 20, 0.52);
  backdrop-filter: blur(4px);
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cat-agenda-modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(34, 23, 20, 0.24);
  padding: 1.5rem;
}

.cat-agenda-modal-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 210px;
  border: 1px solid var(--border-subtle);
}

.cat-agenda-modal-cover img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.cat-agenda-modal-meta {
  background: var(--bg-stone);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   12. Fullscreen Intro & Cortina de Transição Entre Páginas (GSAP)
   ========================================================================== */
.cat-intro-veil {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: radial-gradient(circle at 50% 35%, #432821 0%, #2e1b16 68%, #221714 100%);
  color: #ffffff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 3px solid var(--brand-gold);
  will-change: transform;
}

html[data-cat-intro='pending'] .cat-intro-veil,
.cat-intro-veil.is-running {
  display: flex;
}

.cat-intro-center {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cat-intro-crest {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: var(--bg-stone);
  border: 2px solid rgba(165, 121, 71, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 1.5rem;
}

.cat-intro-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cat-intro-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(247, 244, 240, 0.78);
  margin-bottom: 0.65rem;
}

.cat-intro-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 1.1rem 0;
}

.cat-intro-line {
  width: 110px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
  margin: 0 auto 1rem auto;
  transform-origin: center center;
}

.cat-intro-tagline {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(247, 244, 240, 0.88);
  margin: 0;
}

.cat-intro-skip {
  position: absolute;
  bottom: 1.75rem;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(247, 244, 240, 0.82);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cat-intro-skip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-gold);
  color: #ffffff;
}

/* Cortinas fullscreen de transição entre páginas (puramente cromáticas) */
.cat-page-curtain-accent,
.cat-page-curtain {
  display: none;
  position: fixed;
  inset: 0;
  pointer-events: all;
  will-change: transform;
}

.cat-page-curtain-accent {
  z-index: 1179;
  background: linear-gradient(155deg, #a57947 0%, #ba732e 52%, #682916 100%);
}

.cat-page-curtain {
  z-index: 1180;
  background: linear-gradient(160deg, #2e1b16 0%, #432821 58%, #682916 100%);
  border-top: 3px solid var(--brand-gold);
  border-bottom: 3px solid var(--brand-gold);
}

@media (prefers-reduced-motion: reduce) {
  .cat-intro-veil,
  .cat-page-curtain-accent,
  .cat-page-curtain {
    display: none !important;
  }
}
