/* ============================================================
   style.css — bundled from:
     - variables.css
     - base.css
     - layout.css
     - components.css
     - responsive.css

   DO NOT EDIT DIRECTLY. Edit the source files in css/ and
   re-run build-css.sh from the client root.
   Last built: 2026-04-23T23:16:42Z
   ============================================================ */

/* ---- variables.css ---- */
/* ==========================================================================
   EDUCAR PARA O CEU — Design Tokens & Custom Properties
   Catholic News Portal — Design System Variables
   ========================================================================== */

:root {
  /* ── Brand Colors ─────────────────────────────────────────────────────── */
  --color-navy:            #2A5068;
  --color-navy-dark:       #1E3D4F;
  --color-navy-light:      #3A6580;
  --color-gold:            #C9A84C;
  --color-gold-dark:       #B08F35;
  --color-gold-light:      #D4BA6A;
  --color-beige:           #F5F0EB;
  --color-beige-dark:      #EBE3DA;
  --color-white:           #FFFFFF;
  --color-red:             #8B1A1A;
  --color-red-light:       #A52A2A;
  --color-footer:          #243846;
  --color-footer-light:    #2F4756;

  /* ── Lenten / Liturgical Colors ───────────────────────────────────────── */
  --color-quaresma:        #6B3FA0;
  --color-quaresma-light:  #8A5CC0;
  --color-quaresma-bg:     #F3EEF8;

  /* ── Neutral Palette ──────────────────────────────────────────────────── */
  --color-gray-50:         #FAFAF9;
  --color-gray-100:        #F5F5F4;
  --color-gray-200:        #E7E5E4;
  --color-gray-300:        #D6D3D1;
  --color-gray-400:        #A8A29E;
  --color-gray-500:        #78716C;
  --color-gray-600:        #57534E;
  --color-gray-700:        #44403C;
  --color-gray-800:        #292524;
  --color-gray-900:        #1C1917;

  /* ── Semantic Colors ──────────────────────────────────────────────────── */
  --color-text-primary:    #1C1917;
  --color-text-secondary:  #57534E;
  --color-text-muted:      #78716C;
  --color-text-inverse:    #FFFFFF;
  --color-text-link:       #1B3A4B;
  --color-text-link-hover: #C9A84C;
  --color-border:          #E7E5E4;
  --color-border-light:    #F5F5F4;
  --color-surface:         #FFFFFF;
  --color-surface-raised:  #FFFFFF;
  --color-overlay:         rgba(27, 58, 75, 0.85);
  --color-backdrop:        rgba(0, 0, 0, 0.5);

  /* ── Typography ───────────────────────────────────────────────────────── */
  --font-serif:            'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-sans:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --font-weight-regular:   400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-black:     900;

  /* ── Type Scale (mobile-first, rem-based) ─────────────────────────────── */
  --text-xs:               0.75rem;    /* 12px */
  --text-sm:               0.875rem;   /* 14px */
  --text-base:             1rem;       /* 16px */
  --text-lg:               1.125rem;   /* 18px */
  --text-xl:               1.25rem;    /* 20px */
  --text-2xl:              1.5rem;     /* 24px */
  --text-3xl:              1.875rem;   /* 30px */
  --text-4xl:              2.25rem;    /* 36px */
  --text-5xl:              3rem;       /* 48px */
  --text-6xl:              3.75rem;    /* 60px */

  --leading-tight:         1.2;
  --leading-snug:          1.35;
  --leading-normal:        1.5;
  --leading-relaxed:       1.65;
  --leading-loose:         1.8;

  --tracking-tight:       -0.025em;
  --tracking-normal:       0;
  --tracking-wide:         0.025em;
  --tracking-wider:        0.05em;
  --tracking-widest:       0.1em;

  /* ── Spacing Scale ────────────────────────────────────────────────────── */
  --space-1:               0.25rem;    /* 4px */
  --space-2:               0.5rem;     /* 8px */
  --space-3:               0.75rem;    /* 12px */
  --space-4:               1rem;       /* 16px */
  --space-5:               1.25rem;    /* 20px */
  --space-6:               1.5rem;     /* 24px */
  --space-8:               2rem;       /* 32px */
  --space-10:              2.5rem;     /* 40px */
  --space-12:              3rem;       /* 48px */
  --space-16:              4rem;       /* 64px */
  --space-20:              5rem;       /* 80px */
  --space-24:              6rem;       /* 96px */

  /* ── Layout ───────────────────────────────────────────────────────────── */
  --container-max:         1200px;
  --container-narrow:      800px;
  --container-wide:        1400px;
  --container-padding:     var(--space-6);
  --content-gap:           var(--space-8);
  --sidebar-width:         340px;

  /* ── Breakpoints (for reference — used in responsive.css) ─────────────── */
  /* --bp-sm:  480px  */
  /* --bp-md:  768px  */
  /* --bp-lg:  1024px */
  /* --bp-xl:  1200px */
  /* --bp-2xl: 1400px */

  /* ── Border Radius ────────────────────────────────────────────────────── */
  --radius-sm:             0.25rem;    /* 4px */
  --radius-md:             0.375rem;   /* 6px */
  --radius-lg:             0.5rem;     /* 8px */
  --radius-xl:             0.75rem;    /* 12px */
  --radius-full:           9999px;

  /* ── Shadows ──────────────────────────────────────────────────────────── */
  --shadow-sm:             0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:             0 4px 6px -1px rgba(0, 0, 0, 0.07),
                           0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:             0 10px 15px -3px rgba(0, 0, 0, 0.08),
                           0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl:             0 20px 25px -5px rgba(0, 0, 0, 0.08),
                           0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card:           0 1px 3px rgba(0, 0, 0, 0.06),
                           0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover:     0 10px 20px -5px rgba(0, 0, 0, 0.1),
                           0 4px 8px -4px rgba(0, 0, 0, 0.06);

  /* ── Transitions ──────────────────────────────────────────────────────── */
  --ease-default:          cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:               cubic-bezier(0.4, 0, 1, 1);
  --ease-out:              cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:           cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast:         150ms;
  --duration-normal:       250ms;
  --duration-slow:         400ms;
  --duration-slower:       600ms;

  --transition-colors:     color var(--duration-normal) var(--ease-default),
                           background-color var(--duration-normal) var(--ease-default),
                           border-color var(--duration-normal) var(--ease-default);
  --transition-transform:  transform var(--duration-normal) var(--ease-default);
  --transition-shadow:     box-shadow var(--duration-normal) var(--ease-default);
  --transition-opacity:    opacity var(--duration-normal) var(--ease-default);
  --transition-all:        all var(--duration-normal) var(--ease-default);

  /* ── Z-Index Scale ────────────────────────────────────────────────────── */
  --z-base:                1;
  --z-dropdown:            10;
  --z-sticky:              20;
  --z-overlay:             30;
  --z-modal:               40;
  --z-toast:               50;
}

/* ---- base.css ---- */
/* ==========================================================================
   EDUCAR PARA O CEU — Base Styles & Reset
   Foundations: box model, typography scale, element defaults
   ========================================================================== */

/* ── Reset & Box Model ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Prevent font size inflation on mobile */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* ── Document Defaults ──────────────────────────────────────────────────── */
html {
  font-size: 100%; /* 16px base */
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* account for sticky nav */
  background-color: var(--color-footer);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Selection ──────────────────────────────────────────────────────────── */
::selection {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
}

::-moz-selection {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
}

/* ── Focus Visible ──────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Typography Scale ───────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-black);
  line-height: 1.15;
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ── Paragraph & Body Text ──────────────────────────────────────────────── */
p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: var(--font-weight-semibold);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

blockquote {
  border-left: 3px solid var(--color-gold);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background-color: var(--color-beige);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--color-navy);
}

blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--color-text-muted);
}

/* ── Links ──────────────────────────────────────────────────────────────── */
a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: var(--transition-colors);
}

a:hover {
  color: var(--color-text-link-hover);
}

/* Content area links get underlines for accessibility */
.article-single__body a,
.lepanto-content a {
  text-decoration: underline;
  text-decoration-color: var(--color-gold-light);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.article-single__body a:hover,
.lepanto-content a:hover {
  text-decoration-color: var(--color-gold);
}

/* ── Images ─────────────────────────────────────────────────────────────── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  border-style: none;
  vertical-align: middle;
}

figure {
  margin: 0;
}

figcaption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  font-style: italic;
}

/* ── Form Element Resets ────────────────────────────────────────────────── */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-white);
  transition: var(--transition-colors), border-color var(--duration-normal) var(--ease-default);
}

input:focus,
textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-gray-400);
}

/* ── Table Defaults ─────────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* ── Horizontal Rule ────────────────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* ── Screen Reader Only ─────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Scroll Animations ──────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(1rem);
  }
}

.fade-in-up {
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.fade-in {
  animation: fadeIn var(--duration-slow) var(--ease-out) both;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- layout.css ---- */
/* ==========================================================================
   EDUCAR PARA O CEU — Layout
   Structural components: utility bar, header, nav, content grid, footer
   ========================================================================== */

/* ── Container ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* ==========================================================================
   UTILITY BAR — Compact top bar
   ========================================================================== */
.utility-bar {
  background-color: var(--color-navy);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  position: relative;
  z-index: 50;
}


.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.utility-bar__social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.utility-bar__social a {
  color: var(--color-gray-300);
  font-size: var(--text-base);
  transition: var(--transition-colors);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.utility-bar__social a:hover {
  color: var(--color-gold);
}

.utility-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.utility-bar__date {
  color: var(--color-gray-300);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

/* ── Search in Utility Bar ──────────────────────────────────────────────── */
.search-form {
  display: flex;
  align-items: center;
  position: relative;
}

.search-toggle {
  color: var(--color-gray-300);
  font-size: var(--text-base);
  padding: var(--space-2);
  transition: var(--transition-colors);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.search-toggle:hover {
  color: var(--color-gold);
}

.search-input {
  width: 0;
  opacity: 0;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-navy-light);
  border-radius: var(--radius-full);
  background-color: var(--color-navy);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  transition: width var(--duration-slow) var(--ease-default),
              opacity var(--duration-normal) var(--ease-default),
              padding var(--duration-slow) var(--ease-default);
}

.search-input::placeholder {
  color: var(--color-gray-500);
}

.search-form.is-open .search-input {
  width: 200px;
  opacity: 1;
  padding: var(--space-2) var(--space-4);
  margin-right: var(--space-2);
}

/* Search Overlay (full-screen) */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 58, 75, 0.95);
  z-index: var(--z-modal, 1000);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.search-overlay[hidden] {
  display: none !important;
}

.search-overlay__form {
  position: relative;
  display: flex;
  gap: var(--space-3);
  align-items: center;
  max-width: 600px;
  width: 100%;
}

.search-overlay__input {
  flex: 1;
  padding: var(--space-4);
  font-size: var(--text-lg);
  border: none;
  border-bottom: 2px solid var(--color-gold);
  background: transparent;
  color: #fff;
  outline: none;
  font-family: var(--font-sans);
}

.search-overlay__input::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-overlay__submit {
  padding: var(--space-3) var(--space-5);
  background: var(--color-gold);
  color: var(--color-navy);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-size: var(--text-base);
}

.search-overlay__close {
  background: none;
  border: none;
  color: #fff;
  font-size: var(--text-3xl);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
  line-height: 1;
  padding: var(--space-2);
}

.search-overlay__close:hover {
  opacity: 1;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
  animation: slideDown var(--duration-normal) var(--ease-out);
  display: none;
}

.search-results-dropdown.is-visible {
  display: block;
}

.search-results-dropdown__item {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition-colors);
}

.search-results-dropdown__item:last-child {
  border-bottom: none;
}

.search-results-dropdown__item:hover {
  background-color: var(--color-beige);
}

.search-results-dropdown__item a {
  color: var(--color-text-primary);
  font-size: var(--text-sm);
}

.search-results-dropdown__title {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
  color: var(--color-navy);
}

.search-results-dropdown__excerpt {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* ── Donate Button (Utility Bar) ────────────────────────────────────────── */
.btn-doe {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  transition: var(--transition-all);
  white-space: nowrap;
  line-height: 1.6;
}

.btn-doe:hover {
  background-color: var(--color-gold-dark);
  color: var(--color-navy-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   SITE HEADER — Logo & site title
   ========================================================================== */
.site-header {
  position: relative;
  background-color: var(--color-white);
  text-align: center;
}

/* ── Split header: all absolute positioned layers ─── */
.site-header--split {
  position: relative;
  height: 230px;
  overflow: visible;
}

/* Video panels — fill full width behind everything */
.site-header__video-left,
.site-header__video-right {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.site-header__video-left { left: 0; right: 50%; }
.site-header__video-right { left: 50%; right: 0; }

.site-header__video-left video,
.site-header__video-right video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.site-header__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 75, 0.45);
  pointer-events: none;
}

/* Video text overlays — editorial style with repeating animation */
.site-header__video-text {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-header__video-text::before {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  animation: textLineReveal 15s ease infinite;
}

.site-header__video-text span {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  font-style: italic;
  color: white;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6), 0 4px 20px rgba(0,0,0,0.3);
  padding: 6px 14px;
  background: linear-gradient(90deg, rgba(27,58,75,0.6) 0%, rgba(27,58,75,0) 100%);
  border-left: 3px solid var(--color-gold);
  opacity: 0;
  transform: translateX(-40px);
  animation: textSlideReveal 15s ease infinite;
}

.site-header__video-text--left {
  left: 28px;
}

.site-header__video-text--left::before {
  animation-delay: 0.3s;
}

.site-header__video-text--left span {
  animation-delay: 0.6s;
}

.site-header__video-text--right {
  left: auto;
  right: 28px;
  top: auto;
  bottom: 28px;
  align-items: flex-end;
}

.site-header__video-text--right span {
  background: linear-gradient(270deg, rgba(27,58,75,0.6) 0%, rgba(27,58,75,0) 100%);
  border-left: none;
  border-right: 3px solid var(--color-gold);
}

.site-header__video-text--right::before {
  animation-delay: 1s;
}

.site-header__video-text--right span {
  animation-delay: 1.3s;
}

/* Gold line draws in, holds, disappears */
@keyframes textLineReveal {
  0%    { width: 0; opacity: 0; }
  3%    { opacity: 1; }
  8%    { width: 60px; }
  30%   { width: 60px; opacity: 1; }
  38%   { width: 0; opacity: 0; }
  100%  { width: 0; opacity: 0; }
}

/* Text slides in, holds, fades out */
@keyframes textSlideReveal {
  0%    { opacity: 0; transform: translateX(-40px); }
  5%    { opacity: 0; transform: translateX(-40px); }
  12%   { opacity: 1; transform: translateX(0); }
  30%   { opacity: 1; transform: translateX(0); }
  38%   { opacity: 0; transform: translateX(10px); }
  100%  { opacity: 0; transform: translateX(-40px); }
}

/* Navy parallelogram — centered, skewed */
.site-header__parallelogram {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(42, 80, 104, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(0, 0, 0, 0.35),
    0 0 120px rgba(0, 0, 0, 0.15);
  animation: circleBreath 4s ease-in-out infinite alternate;
}

@keyframes circleBreath {
  0% {
    box-shadow:
      0 0 30px rgba(0, 0, 0, 0.4),
      0 0 60px rgba(0, 0, 0, 0.2),
      0 0 90px rgba(0, 0, 0, 0.08);
  }
  100% {
    box-shadow:
      0 0 50px rgba(0, 0, 0, 0.7),
      0 0 100px rgba(0, 0, 0, 0.4),
      0 0 140px rgba(0, 0, 0, 0.2);
  }
}



@keyframes goldSweep {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -100% 0; }
}

/* Navy trapezoids bridging bars to rectangle edges */
.site-header__trap {
  display: none;
}

/* Left trapezoid */
.site-header__trap--left {
  left: calc(50% - 160px);
  width: 65px;
  clip-path: polygon(
    26% 0,         /* top-left: tucked into gold bar */
    100% 0,        /* top-right: top corner of white rectangle */
    100% 100%,     /* bottom-right: straight down (90°) */
    -2% 100%       /* bottom-left: further into gold bar */
  );
}

/* Right trapezoid */
.site-header__trap--right {
  left: calc(50% + 95px);
  width: 65px;
  clip-path: polygon(
    0 0,           /* top-left: top corner of white rectangle */
    106% 0,        /* top-right: extended into gold bar */
    74% 100%,      /* bottom-right: tucked into gold bar */
    0 100%         /* bottom-left: straight down (90°) */
  );
}

/* White bars — 33px wide, 16px gap from parallelogram */
.site-header__bar {
  display: none;
}

.site-header__bar--left {
  left: calc(50% - 169px);
}

.site-header__bar--right {
  left: calc(50% + 136px);
}

/* Logo — centered within the visible rectangle */
.site-header__logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
}

/* The visible rectangle is offset from the parallelogram center
   because the left triangle eats bottom-left and right eats top-right.
   The visual center of the rectangle is the same as the parallelogram center,
   so no offset needed — the triangles are symmetric. */

.site-header__logo-container a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.site-header__logo {
  display: block;
  width: 170px;
  height: auto;
  margin-bottom: var(--space-2);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4));
}

.site-header__name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.site-header__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

.site-header__tagline {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-top: var(--space-2);
}

/* ==========================================================================
   MAIN NAV — Sticky navigation bar
   ========================================================================== */
.main-nav {
  background-color: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: box-shadow 0.3s ease;
}

.main-nav--scrolled {
  box-shadow: var(--shadow-lg);
}

.main-nav__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: calc(var(--z-overlay) + 1);
}

.main-nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text-inverse);
  border-radius: 1px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s ease,
              width 0.3s ease;
}

.main-nav__hamburger span:nth-child(1) { top: 14px; width: 20px; }
.main-nav__hamburger span:nth-child(2) { top: 21px; width: 14px; }
.main-nav__hamburger span:nth-child(3) { top: 28px; width: 20px; }

/* Gold accent dot */
.main-nav__hamburger::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Open state: diamond cross */
.main-nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  width: 20px;
  transform: translateX(-50%) rotate(135deg);
}
.main-nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.main-nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  width: 20px;
  transform: translateX(-50%) rotate(-135deg);
}
.main-nav__hamburger[aria-expanded="true"]::after {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}


/* Mobile-only elements (hidden on desktop, shown in responsive.css) */
.main-nav__logo-mobile { display: none; }
.main-nav__apostolado-mobile { display: none; }
.main-nav__social-mobile { display: none; }

/* Nav actions: search + apostolado button */
.main-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.main-nav__search-btn {
  position: relative;
  z-index: 50;
  background: none;
  border: none;
  color: var(--color-text-inverse);
  cursor: pointer;
  padding: var(--space-2);
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.main-nav__search-btn:hover {
  opacity: 1;
}

.btn--apostolado {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.btn--apostolado:hover {
  background: var(--color-gold-light);
}

/* Apostolado wrapper — positions dropdown relative to button */
.apostolado-wrapper {
  position: relative;
}

/* Apostolado dropdown — slides from under the button */
.apostolado-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 260px;
  min-width: 260px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  background: var(--color-gold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 100;
}

.apostolado-dropdown[hidden] {
  display: block;
  max-height: 0;
}

.apostolado-dropdown.apostolado-dropdown--open {
  max-height: 400px;
}

.apostolado-dropdown__inner {
  padding: var(--space-4);
  text-align: center;
}

.apostolado-dropdown__qr {
  margin-bottom: var(--space-3);
}

.apostolado-dropdown__qr img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.apostolado-dropdown__pix {
  margin-bottom: var(--space-2);
}

.apostolado-dropdown__label {
  display: block;
  font-size: 10px;
  color: var(--color-navy-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.apostolado-dropdown__key {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-navy);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0;
}

.apostolado-dropdown__key code {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-sans);
}

.apostolado-dropdown__key svg {
  color: rgba(255,255,255,0.5);
}

.apostolado-dropdown__key:hover {
  background: var(--color-navy-dark);
}

.apostolado-dropdown__hint {
  display: block;
  font-size: 10px;
  color: var(--color-navy-dark);
  opacity: 0.6;
  margin-top: var(--space-1);
}

.apostolado-dropdown__close {
  display: block;
  margin: var(--space-3) auto 0;
  background: none;
  border: none;
  color: var(--color-navy-dark);
  cursor: pointer;
  padding: var(--space-1);
  transition: opacity 0.2s;
  opacity: 0.5;
}

.apostolado-dropdown__close:hover {
  opacity: 1;
}

.apostolado-dropdown__qr {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.apostolado-dropdown__qr img {
  border-radius: var(--radius-md);
  border: 2px solid rgba(0,0,0,0.1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.main-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0;
}

.main-nav__item {
  position: relative;
}

.main-nav__link {
  display: block;
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-4) var(--space-5);
  transition: var(--transition-colors);
  position: relative;
  white-space: nowrap;
}

.main-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--duration-normal) var(--ease-default);
}

.main-nav__link:hover,
.main-nav__link--active {
  color: var(--color-gold);
}

.main-nav__link:hover::after,
.main-nav__link--active::after {
  width: calc(100% - var(--space-10));
}

/* Quaresma (Lenten) special nav link */
/* Seasonal toggle — hidden by default, revealed by JS when active */
.seasonal-quaresma { display: none; }
.seasonal-quaresma.seasonal--active { display: list-item; }

.nav-quaresma .main-nav__link,
.main-nav__link.nav-quaresma {
  color: var(--color-quaresma-light);
  font-weight: var(--font-weight-semibold);
}

.nav-quaresma .main-nav__link:hover,
.main-nav__link.nav-quaresma:hover {
  color: #D4A8FF;
}

.nav-quaresma .main-nav__link::after,
.main-nav__link.nav-quaresma::after {
  background-color: var(--color-quaresma-light);
}

/* ── Hamburger Toggle ───────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  position: absolute;
  right: var(--container-padding);
  top: 50%;
  transform: translateY(-50%);
  z-index: calc(var(--z-sticky) + 1);
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: var(--transition-transform), var(--transition-opacity);
  transform-origin: center;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   LITURGICAL STRIP — Auto-scrolling ticker
   ========================================================================== */
.liturgia-strip {
  background: var(--color-navy);
  color: rgba(255,255,255,0.85);
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  height: 32px;
  position: relative;
}

.liturgia-strip__ticker {
  position: relative;
  height: 100%;
  text-align: center;
}

.liturgia-strip__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: 0 var(--space-4);
}

.liturgia-strip__slide--active {
  opacity: 1;
  transform: translateY(0);
}

.liturgia-strip__slide--exit {
  opacity: 0;
  transform: translateY(-100%);
}

.liturgia-strip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-block;
  flex-shrink: 0;
}

.liturgia-strip__lbl {
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
}

.liturgia-strip__src {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 10px;
  font-style: italic;
  margin-left: 4px;
}

.liturgia-strip__src:hover {
  color: var(--color-gold);
}

/* ==========================================================================
   HERO ROW — Carousel (60%) + Vatican Feed (40%)
   ========================================================================== */
.hero-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
  margin-bottom: var(--space-8);
}

/* ── Vatican News Feed Sidebar ────────────────────────────────────── */
.vatican-feed {
  background: var(--color-white);
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  max-height: 480px;
  overflow-y: auto;
}

.vatican-feed__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-warm);
}

.vatican-feed__title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.vatican-feed__link {
  font-size: var(--text-xs);
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
}

.vatican-feed__link:hover { text-decoration: underline; }

.vatican-feed__list {
  flex: 1;
  overflow-y: auto;
}

.vatican-feed__item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: background 0.2s;
}

.vatican-feed__item:hover {
  background: var(--color-bg-warm);
}

.vatican-feed__thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.vatican-feed__item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vatican-feed__item-title {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vatican-feed__item-time {
  font-size: 11px;
  color: var(--color-text-muted);
}

.vatican-feed__loading,
.vatican-feed__error {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* YouTube section */
.vatican-feed__youtube {
  border-top: 2px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-warm);
}

.vatican-feed__subtitle {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vatican-feed__live-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
  margin: var(--space-3);
  margin-bottom: var(--space-3);
  width: calc(100% - var(--space-6));
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.vatican-feed__live-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vatican-feed__yt-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Instagram section */
.vatican-feed__instagram {
  border-top: 2px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-warm);
}

.vatican-feed__subtitle--ig {
  color: #E1306C;
}

.ig-feed__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: var(--space-2);
}

.ig-feed__item {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 3px;
}

.ig-feed__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ig-feed__item:hover .ig-feed__img {
  transform: scale(1.08);
  opacity: 0.85;
}

.ig-feed__follow {
  display: block;
  text-align: center;
  padding: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #4A90D9;
  text-decoration: none;
  margin-top: var(--space-2);
}

.ig-feed__follow:hover {
  text-decoration: underline;
  color: #3672B5;
}

/* Instagram single-post carousel */
.ig-carousel__slides {
  position: relative;
  min-height: 200px;
}

.ig-carousel__slide {
  display: none;
}

.ig-carousel__slide--active {
  display: block;
}

.ig-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-2) 0;
}

.ig-carousel__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ig-carousel__arrow:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.ig-carousel__counter {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.vatican-feed__yt-item {
  display: flex;
  gap: var(--space-2);
  text-decoration: none;
  align-items: center;
}

.vatican-feed__yt-item:hover .vatican-feed__yt-title {
  color: var(--color-gold);
}

.vatican-feed__yt-thumb {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.vatican-feed__yt-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

/* ==========================================================================
   HERO SECTION — Article carousel
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  background-color: var(--color-bg-warm, #FAF7F2);
}

/* Carousel container */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

/* Individual slide */
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-carousel__slide--active {
  opacity: 1;
  pointer-events: auto;
}

/* Background image */
.hero-carousel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease-out;
}

.hero-carousel__slide--active .hero-carousel__bg {
  transform: scale(1.05);
}

/* Placeholder variant — used when an article has no cover image.
   Renders a plain navy panel instead of a stock "Educar para o Céu"
   placeholder image. The hero gradient overlay on top keeps the
   title legible against the solid colour. */
.hero-carousel__bg--placeholder {
  background-color: var(--color-navy);
  background-image: none !important;
}
.hero-carousel__slide--active .hero-carousel__bg--placeholder {
  transform: none;
}

/* Dark gradient overlay */
.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(19, 40, 48, 0.95) 0%,
    rgba(19, 40, 48, 0.6) 35%,
    rgba(19, 40, 48, 0.25) 65%,
    rgba(19, 40, 48, 0.1) 100%
  );
}

/* Text content */
.hero-carousel__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-10) var(--container-padding) var(--space-12);
  max-width: var(--container-max);
  margin: 0 auto;
  z-index: 2;
}

.hero-carousel__category {
  display: inline-block;
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  text-decoration: none;
  transition: background-color 0.2s;
}

.hero-carousel__category:hover {
  background-color: var(--color-gold-light);
}

.hero-carousel__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-3);
  max-width: 680px;
}

.hero-carousel__title a {
  color: var(--color-white);
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-carousel__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 4px;
}

.hero-carousel__excerpt {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 560px;
}

/* Navigation arrows — top right corner, small */
.hero-carousel__arrow {
  position: absolute;
  top: 16px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(19, 40, 48, 0.6);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.hero-carousel__arrow svg {
  width: 18px;
  height: 18px;
}

.hero-carousel__arrow:hover {
  background: rgba(201, 168, 76, 0.8);
  border-color: var(--color-gold);
}

.hero-carousel__arrow--prev { right: 62px; }
.hero-carousel__arrow--next { right: 16px; }

/* Dots */
.hero-carousel__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.hero-carousel__dot--active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  transform: scale(1.2);
}

.hero-carousel__dot:hover {
  border-color: var(--color-gold);
}

/* Progress bar */
.hero-carousel__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 5;
}

.hero-carousel__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  transition: width 6s linear;
}

/* ── Hero Skeleton Loaders ──────────────────────────────────────────────── */
.hero__skeleton {
  position: relative;
  width: 100%;
  min-height: 480px;
  background-color: var(--color-bg-warm, #FAF7F2);
  display: flex;
  align-items: flex-end;
}

.hero__skeleton .hero__content {
  z-index: 2;
}

.skeleton--image {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #E8E4DE 0%,
    #F5F1EB 50%,
    #E8E4DE 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton--badge {
  width: 100px;
  height: 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    #DDD8D0 0%,
    #EDE9E3 50%,
    #DDD8D0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  margin-bottom: var(--space-4);
}

.skeleton--title {
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(
    90deg,
    #DDD8D0 0%,
    #EDE9E3 50%,
    #DDD8D0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  margin-bottom: var(--space-3);
  max-width: 600px;
}

.skeleton--title:nth-child(3) {
  max-width: 420px;
}

.skeleton--text {
  height: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    #DDD8D0 0%,
    #EDE9E3 50%,
    #DDD8D0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  margin-bottom: var(--space-2);
  max-width: 500px;
}

.skeleton--text:last-child {
  max-width: 350px;
}

/* ==========================================================================
   CONTENT WRAPPER — 2-column layout
   ========================================================================== */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--content-gap);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-10) var(--container-padding);
}

.content-wrapper--full {
  grid-template-columns: 1fr;
}

/* ── Main Content Area ──────────────────────────────────────────────────── */
.main-content {
  min-width: 0; /* prevent grid blowout */
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* ==========================================================================
   DONATION SECTION — Full-width call to action
   ========================================================================== */
.donation {
  background-color: var(--color-beige);
  padding: var(--space-16) 0;
  text-align: center;
}

.donation .container {
  max-width: var(--container-narrow);
}

.donation__icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  display: block;
}

.donation__title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.donation__text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SITE FOOTER — 4-column dark footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-footer);
  color: var(--color-gray-300);
  padding-top: var(--space-16);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  padding-bottom: var(--space-12);
}

.site-footer__col-title,
.site-footer__heading {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-3);
}

.site-footer__col-title::after,
.site-footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background-color: var(--color-gold);
}

/* Footer Logo Column */
.site-footer__logo {
  width: 120px;
  height: auto;
  margin-bottom: var(--space-4);
  opacity: 0.9;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__description {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-300);
  text-align: center;
}

/* Footer Navigation */
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__nav a {
  color: var(--color-gray-300);
  font-size: var(--text-sm);
  transition: var(--transition-colors);
}

.site-footer__nav a:hover {
  color: var(--color-gold);
  padding-left: var(--space-2);
}

/* Footer Social */
.site-footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background-color: var(--color-footer-light);
  color: var(--color-gray-300);
  font-size: var(--text-lg);
  transition: var(--transition-all);
}

.site-footer__social a:hover {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  transform: translateY(-2px);
}

/* Footer Contact */
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.site-footer__contact a {
  color: var(--color-gray-300);
  transition: var(--transition-colors);
}

.site-footer__contact a:hover {
  color: var(--color-gold);
}

.site-footer__col a {
  color: var(--color-gray-300);
  transition: color 0.2s;
}

.site-footer__col a:hover {
  color: var(--color-gold);
}

/* Footer Bottom Bar */
.site-footer__bottom {
  border-top: 1px solid var(--color-footer-light);
  padding: var(--space-3) 0;
  text-align: center;
}

.site-footer__bottom .container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

.site-footer__bottom a {
  color: var(--color-gray-500);
}

.site-footer__bottom a:hover {
  color: var(--color-gold);
}

/* Fix: center footer logo column */
.site-footer__col:first-child { text-align: center; }
.site-footer__mission { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--color-gray-300); text-align: center; }

.site-footer__bottom p { margin: 0; line-height: 1.4; }

/* ── Inner Page Header (non-homepage) ──────────────────────── */
.site-header--inner { background: var(--color-white); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.site-header--inner__container { display: flex; align-items: center; }
.site-header--inner__brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.site-header--inner__logo { width: 50px; height: auto; }
.site-header--inner__name { display: flex; flex-direction: column; font-family: 'Cinzel', serif; font-weight: 600; color: var(--color-navy); line-height: 1.15; letter-spacing: 0.08em; text-transform: uppercase; }
.site-header--inner__name span:first-child { font-size: 16px; }
.site-header--inner__name span:last-child { font-size: 13px; color: var(--color-navy-light); }

/* ── Nav Brand (inner pages — logo inline with nav) ────────── */
.main-nav__brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; margin-right: var(--space-4); flex-shrink: 0; }
.main-nav__brand-logo { width: 32px; height: auto; filter: brightness(0) invert(1); }
.main-nav__brand-name { display: flex; flex-direction: column; font-family: 'Cinzel', serif; font-weight: 600; color: var(--color-white); line-height: 1.1; letter-spacing: 0.06em; text-transform: uppercase; }
.main-nav__brand-name span:first-child { font-size: 13px; }
.main-nav__brand-name span:last-child { font-size: 10px; opacity: 0.7; }

/* ---- components.css ---- */
/* ==========================================================================
   EDUCAR PARA O CEU — Components
   Reusable UI elements: cards, buttons, badges, widgets, article layouts
   ========================================================================== */

/* ==========================================================================
   ARTICLE CARD
   ========================================================================== */
.article-card {
  background-color: var(--color-surface-raised);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.article-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

/* Placeholder variant — rendered when an article has no cover_url /
   image_url. Navy gradient with the site logo as a semi-transparent
   watermark behind a Cinzel gold label. Echoes the hero carousel
   placeholder styling so empty cards feel intentional, not broken. */
.article-card__image-wrapper--placeholder {
  background: linear-gradient(135deg, #2A5068 0%, #1A3D52 55%, #0F2638 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card__image-wrapper--placeholder::before {
  /* Logo watermark, low opacity, centered. Sits behind the text via
     z-index. The mix-blend-mode lightens the darker navy areas so the
     logo silhouette reads clearly without overpowering the label. */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/logo-opt.webp');
  background-repeat: no-repeat;
  background-position: center 40%;
  background-size: 55% auto;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}
.article-card__image-wrapper--placeholder::after {
  content: 'Educar para o Céu';
  position: relative;
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(201, 168, 76, 0.95);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
  line-height: 1.5;
  z-index: 1;
  /* Push the label below the centered logo watermark */
  align-self: flex-end;
  margin-bottom: 18px;
  width: 100%;
}
/* Scale the label up on the big featured card */
.article-card--featured .article-card__image-wrapper--placeholder::after {
  font-size: 16px;
  letter-spacing: 2.6px;
  margin-bottom: 28px;
}
.article-card--featured .article-card__image-wrapper--placeholder::before {
  background-size: 30% auto;
  background-position: center 38%;
}

.article-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-default);
}

.article-card:hover .article-card__image {
  transform: scale(1.04);
}

.article-card__body {
  padding: var(--space-3) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
  transition: var(--transition-colors);
}

.article-card__title a {
  color: inherit;
}

.article-card__title a:hover {
  color: var(--color-gold-dark);
}

.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.article-card__author {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.article-card__date {
  white-space: nowrap;
}

/* ── Featured Article Card (larger) ─────────────────────────────────────── */
.article-card--featured {
  grid-column: 1 / -1;
}

.article-card--featured .article-card__image-wrapper {
  aspect-ratio: 21 / 9;
}

.article-card--featured .article-card__title {
  font-size: var(--text-2xl);
}

.article-card--featured .article-card__excerpt {
  font-size: var(--text-base);
  -webkit-line-clamp: 4;
}

/* ==========================================================================
   ARTICLE GRID
   ========================================================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-all);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Outline variant */
.btn--outline {
  background-color: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn--outline:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* Gold variant */
.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
}

.btn--gold:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-navy-dark);
  box-shadow: var(--shadow-md);
}

/* Instagram variant */
.btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--color-white);
  border-color: transparent;
}

.btn--instagram:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

/* ==========================================================================
   SECTION TITLE — Decorative heading with gold underline
   ========================================================================== */
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-3);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: var(--radius-full);
}

/* Center variant */
.section-title--center {
  display: block;
  text-align: center;
}

.section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================================================
   CATEGORY BADGE — Small colored pill
   ========================================================================== */
.category-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  transition: var(--transition-colors);
  line-height: 1.4;
}

.category-badge:hover {
  background-color: var(--color-gold-dark);
  color: var(--color-navy-dark);
}

.category-badge--red {
  background-color: var(--color-red);
  color: var(--color-white);
}

.category-badge--red:hover {
  background-color: var(--color-red-light);
  color: var(--color-white);
}

.category-badge--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.category-badge--quaresma {
  background-color: var(--color-quaresma);
  color: var(--color-white);
}

.category-badge--quaresma:hover {
  background-color: var(--color-quaresma-light);
  color: var(--color-white);
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.widget-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-gold);
}

.sidebar__widget {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* Lepanto (study group) widget — dark variant */
.sidebar__widget--lepanto {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-gray-300);
}

.sidebar__widget--lepanto .widget-title {
  color: var(--color-white);
  border-bottom-color: var(--color-gold);
}

.sidebar__widget--lepanto p {
  color: var(--color-gray-400);
}

.sidebar__widget--lepanto a {
  color: var(--color-gold-light);
}

.sidebar__widget--lepanto a:hover {
  color: var(--color-gold);
}

/* Quaresma (Lenten) widget — purple accent */
.sidebar__widget--quaresma {
  background-color: var(--color-quaresma-bg);
  border-color: var(--color-quaresma);
  border-left: 4px solid var(--color-quaresma);
}

.sidebar__widget--quaresma .widget-title {
  color: var(--color-quaresma);
  border-bottom-color: var(--color-quaresma-light);
}

/* ==========================================================================
   DONATION COMPONENTS (Pix)
   ========================================================================== */
.donation__pix {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  display: inline-block;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.donation__pix-label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-3);
}

.donation__pix-key {
  font-family: 'Courier New', monospace;
  font-size: var(--text-sm);
  color: var(--color-navy);
  background-color: var(--color-beige);
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  display: block;
  margin-bottom: var(--space-4);
  word-break: break-all;
  user-select: all;
}

.donation__copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--color-navy);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-all);
}

.donation__copy-btn:hover {
  background-color: var(--color-navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.donation__copy-btn.is-copied {
  background-color: #16a34a;
}

.donation__qr {
  margin: var(--space-6) auto;
  padding: var(--space-4);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.donation__qr img {
  width: 180px;
  height: 180px;
}

/* ==========================================================================
   TAG LIST — Horizontal scrollable category tags
   ========================================================================== */
.tag-list {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tag-list::-webkit-scrollbar {
  display: none;
}

.tag-list__item {
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy);
  background-color: var(--color-beige);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition: var(--transition-all);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.tag-list__item:hover,
.tag-list__item.is-active {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
}

/* ==========================================================================
   LOAD MORE
   ========================================================================== */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  padding: var(--space-10) 0 var(--space-4);
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: var(--transition-colors);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb__separator {
  color: var(--color-gray-300);
  font-size: var(--text-xs);
}

.breadcrumb__current {
  color: var(--color-navy);
  font-weight: var(--font-weight-medium);
}

/* ==========================================================================
   INSTAGRAM EMBEDS
   ========================================================================== */
.instagram-embeds {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 540px;
  margin: 0 auto;
}

.instagram-embeds iframe {
  width: 100% !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   ARTICLE SINGLE — Full article page
   ========================================================================== */
.article-single {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-10) var(--container-padding);
  --article-content-width: 820px;
}

.article-single__header {
  text-align: center;
  margin: 0 auto var(--space-10) auto;
  max-width: var(--article-content-width);
}

.article-single__category {
  margin-bottom: var(--space-4);
}

.article-single__title {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-black);
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.article-single__subtitle {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-relaxed);
  font-style: italic;
}

/* ── Article Meta ───────────────────────────────────────────────────────── */
.article-single__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.article-single__meta-author {
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
}

.article-single__meta-divider {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background-color: var(--color-gray-300);
}

/* ── Article Featured Image ─────────────────────────────────────────────── */
.article-single__image {
  /* Match the same content width the header/body use so the cover
     image lines up with the title and text column below it instead
     of stretching to the full 1200px .article-single wrapper. */
  max-width: var(--article-content-width);
  width: 100%;
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.article-single__image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-single__image-caption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: calc(var(--space-3) * -1);
  margin-bottom: var(--space-8);
}

/* ── Article Body — Reading typography ──────────────────────────────────── */
.article-single__body {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--color-text-primary);
  max-width: var(--article-content-width);
  margin: 0 auto;
}

.article-single__body p {
  margin-bottom: var(--space-6);
  color: var(--color-text-primary);
  font-size: inherit;
  line-height: inherit;
}

.article-single__body h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-5);
}

.article-single__body h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.article-single__body h4 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.article-single__body img {
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-md);
}

.article-single__body blockquote {
  /* Mirrors the admin editor's blockquote so the WYSIWYG preview
     and the published article look the same. Sans font, stone-grey
     text on cream background, subtle right rounded corner, no
     dramatic Playfair italic. Overrides base.css which is used
     elsewhere (newsletter, etc). */
  font-family: inherit;
  font-size: inherit;
  color: #57534E;
  background: #FAF7F2;
  border-left: 3px solid var(--color-gold);
  border-radius: 0 6px 6px 0;
  padding: 14px 22px;
  margin: 20px 0;
  font-style: italic;
  line-height: var(--leading-relaxed);
}
.article-single__body blockquote p {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  margin-bottom: 0;
}

.article-single__body ul,
.article-single__body ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.article-single__body ul {
  list-style: disc;
}

.article-single__body ol {
  list-style: decimal;
}

.article-single__body li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

.article-single__body hr {
  margin: var(--space-10) auto;
  max-width: 100px;
  border-top: 2px solid var(--color-gold);
}

/* Drop cap for first paragraph — class-based. A tiny JS helper in
   articles.js tags the first "real" paragraph with .drop-cap, skipping
   pseudo-title paragraphs (where the content is a span with a heading
   font-size). That way editors can put a styled title line before the
   body and the drop cap still lands on the first real paragraph. */
/* Source / Fonte footer at the bottom of an article. Shown as a
   bordered aside with a subtle background so readers can clearly see
   the attribution and follow through to the original source. */
.article-single__source {
  display: block;
  max-width: var(--article-content-width);
  margin: 40px auto 0 auto;
  padding: 16px 0 0 0;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: #6b7280;
  font-style: italic;
  line-height: 1.55;
  word-break: break-word;
}
.article-single__source strong {
  font-weight: 700;
  color: inherit;
  font-style: italic;
  margin-right: 4px;
}
.article-single__source a {
  color: #4b5563;
  text-decoration: underline;
  font-style: italic;
  word-break: break-all;
}
.article-single__source a:hover { color: #1f2937; }

.article-single__body > p.drop-cap::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: var(--font-weight-black);
  float: left;
  line-height: 0.8;
  padding-right: var(--space-3);
  padding-top: var(--space-2);
  color: var(--color-navy);
}

/* ── Share Buttons ──────────────────────────────────────────────────────── */
.article-single__share {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  margin-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

.article-single__share-label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  white-space: nowrap;
}

.article-single__share-buttons {
  display: flex;
  gap: var(--space-2);
}

.article-single__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background-color: var(--color-beige);
  color: var(--color-navy);
  font-size: var(--text-base);
  transition: var(--transition-all);
  cursor: pointer;
  border: none;
}

.article-single__share-btn:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   SAINT CARD — Santo do Dia
   ========================================================================== */
.saint-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.saint-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 320px;
}

.saint-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saint-card__body {
  padding: var(--space-6);
}

.saint-card__feast {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}

.saint-card__name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.saint-card__title {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.saint-card__summary {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   SAINT CALENDAR — Month/day grid
   ========================================================================== */
.saint-calendar {
  margin: var(--space-8) 0;
}

.saint-calendar__month-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  text-align: center;
  margin-bottom: var(--space-6);
}

.saint-calendar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.saint-calendar__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  transition: var(--transition-all);
}

.saint-calendar__nav-btn:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.saint-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2);
}

.saint-calendar__day-header {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  text-align: center;
  padding: var(--space-2);
}

.saint-calendar__day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: var(--transition-all);
}

.saint-calendar__day:hover {
  background-color: var(--color-beige);
  border-color: var(--color-gold);
}

.saint-calendar__day.is-today {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  font-weight: var(--font-weight-bold);
  border-color: var(--color-gold);
}

.saint-calendar__day.is-feast {
  color: var(--color-red);
  font-weight: var(--font-weight-bold);
}

.saint-calendar__day.is-empty {
  visibility: hidden;
}

/* ==========================================================================
   MATERIAL CARD — Downloadable resource
   ========================================================================== */
.material-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: var(--transition-shadow);
}

.material-card:hover {
  box-shadow: var(--shadow-md);
}

.material-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background-color: var(--color-beige);
  color: var(--color-navy);
  font-size: var(--text-2xl);
}

.material-card__content {
  flex-grow: 1;
  min-width: 0;
}

.material-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.material-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: var(--leading-normal);
}

.material-card__meta {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
}

.material-card__download {
  flex-shrink: 0;
  align-self: center;
}

/* ==========================================================================
   CONTACT INFO
   ========================================================================== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  padding: var(--space-8) 0;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-info__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background-color: var(--color-beige);
  color: var(--color-navy);
  font-size: var(--text-xl);
}

.contact-info__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-1);
}

.contact-info__value {
  font-size: var(--text-base);
  color: var(--color-navy);
  font-weight: var(--font-weight-medium);
}

.contact-info__value a {
  color: var(--color-navy);
}

.contact-info__value a:hover {
  color: var(--color-gold);
}

/* ==========================================================================
   LEPANTO CONTENT — Study group page
   ========================================================================== */
.lepanto-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-10) var(--container-padding);
}

.lepanto-content__hero {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  margin-bottom: var(--space-10);
}

.lepanto-content__hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.lepanto-content__hero p {
  color: var(--color-gray-300);
  font-size: var(--text-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.lepanto-content__section {
  margin-bottom: var(--space-10);
}

.lepanto-content__section h2 {
  margin-bottom: var(--space-5);
}

.lepanto-content__section p {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-10) 0;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  transition: var(--transition-all);
  cursor: pointer;
  text-decoration: none;
}

.pagination__item:hover {
  background-color: var(--color-beige);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

.pagination__item.is-active {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
}

.pagination__item.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination__ellipsis {
  color: var(--color-gray-400);
  padding: 0 var(--space-2);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  background-color: var(--color-navy);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: toastIn var(--duration-normal) var(--ease-out);
  pointer-events: none;
}

.toast.is-leaving {
  animation: toastOut var(--duration-normal) var(--ease-in) forwards;
}

.toast--success {
  background-color: #16a34a;
}

.toast--error {
  background-color: var(--color-red);
}

/* ==========================================================================
   NO RESULTS — Empty state
   ========================================================================== */
.no-results {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.no-results__icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.no-results__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.no-results__message {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* ================================================================
   JS-generated classes (santo widget, calendar, article cards, etc.)
   ================================================================ */

/* Santo Widget (sidebar) */
.santo-widget-card { padding: var(--space-4); text-align: center; }
.santo-widget-heading { display: none; } /* already in sidebar section title */
.santo-widget-image { width: 100%; max-width: 200px; height: auto; border-radius: var(--radius-lg); margin: 0 auto var(--space-3); display: block; }
.santo-widget-name { font-family: var(--font-serif); font-size: var(--text-lg); color: var(--color-navy); margin-bottom: var(--space-1); }
.santo-widget-title { display: block; font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-2); }
.santo-widget-summary { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; margin-bottom: var(--space-3); }
.santo-widget-link { display: inline-block; font-size: var(--text-sm); font-weight: 600; color: var(--color-gold); text-decoration: none; }
.santo-widget-link:hover { color: var(--color-gold-dark, #a88a3a); text-decoration: underline; }
.santo-widget-empty { text-align: center; padding: var(--space-6) var(--space-4); color: var(--color-text-muted); }
.santo-cross-icon { margin-bottom: var(--space-3); opacity: 0.4; }

/* Santo Today (full page) */
.santo-today-section { margin-bottom: var(--space-8); }
.santo-today-heading { font-family: var(--font-serif); font-size: var(--text-2xl); color: var(--color-navy); margin-bottom: var(--space-6); }
.santo-today-card { display: flex; gap: var(--space-6); align-items: flex-start; padding: var(--space-6); background: var(--color-bg-warm); border-radius: var(--radius-lg); }
.santo-today-image { width: 200px; height: auto; border-radius: var(--radius-lg); flex-shrink: 0; }
.santo-today-info { flex: 1; }
.santo-today-name { font-family: var(--font-serif); font-size: var(--text-xl); color: var(--color-navy); margin-bottom: var(--space-2); }
.santo-today-title { font-size: var(--text-base); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.santo-today-bio { font-size: var(--text-base); line-height: 1.7; color: var(--color-text); }
.santo-today-empty { color: var(--color-text-muted); font-style: italic; }

/* Month Tabs */
.month-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.month-tab { padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); background: var(--color-bg); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; color: var(--color-text); cursor: pointer; transition: all 0.2s; }
.month-tab:hover { border-color: var(--color-gold); color: var(--color-gold); }
.month-tab.active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

/* Santo Calendar Grid */
.santo-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-2); }
.santo-calendar-cell { padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); min-height: 60px; font-size: var(--text-sm); transition: all 0.2s; }
.santo-calendar-cell.has-saint { background: var(--color-bg-warm); border-color: var(--color-gold); cursor: pointer; }
.santo-calendar-cell.has-saint:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.santo-calendar-cell.selected { background: var(--color-navy); border-color: var(--color-navy); }
.santo-calendar-cell.selected .santo-calendar-day,
.santo-calendar-cell.selected .santo-calendar-name { color: #fff; }
.santo-calendar-cell.empty { opacity: 0.5; }
.santo-calendar-day { display: block; font-weight: 600; color: var(--color-navy); margin-bottom: var(--space-1); }
.santo-calendar-name { display: block; font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.3; }
.santo-loading { text-align: center; color: var(--color-text-muted); padding: var(--space-8); }

/* Santo Detail Panel */
.santo-detail-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.santo-detail-panel.visible { max-height: 600px; margin-top: var(--space-6); }
.santo-detail-card { position: relative; padding: var(--space-6); background: var(--color-bg-warm); border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.santo-detail-close { position: absolute; top: var(--space-3); right: var(--space-3); background: none; border: none; font-size: var(--text-2xl); color: var(--color-text-muted); cursor: pointer; line-height: 1; }
.santo-detail-close:hover { color: var(--color-text); }
.santo-detail-date { font-family: var(--font-serif); font-size: var(--text-sm); color: var(--color-gold); margin-bottom: var(--space-4); }
.santo-detail-content { display: flex; gap: var(--space-5); align-items: flex-start; }
.santo-detail-image { width: 150px; height: auto; border-radius: var(--radius-lg); flex-shrink: 0; }
.santo-detail-info { flex: 1; }
.santo-detail-name { font-family: var(--font-serif); font-size: var(--text-xl); color: var(--color-navy); margin-bottom: var(--space-2); }
.santo-detail-title { font-size: var(--text-base); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.santo-detail-bio { font-size: var(--text-sm); line-height: 1.7; color: var(--color-text); }

/* Article Share Buttons */
/* Share row — the top border spans the full article width, but the
   actual icons line up with the body text (not the decorative line).
   All icons are normalised to the same box + same internal size so
   WhatsApp / X / copy-link visually match. */
.article-share {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  margin: var(--space-6) auto 0 auto;
  max-width: var(--article-content-width);
  border-top: 1px solid var(--color-border);
}
.article-share-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  padding: 0;
  flex-shrink: 0;
}
.share-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}
.share-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Article Not Found */
.article-not-found { text-align: center; padding: var(--space-12) var(--space-4); }
.article-not-found h2 { font-family: var(--font-serif); font-size: var(--text-2xl); color: var(--color-navy); margin-bottom: var(--space-3); }
.article-not-found p { color: var(--color-text-muted); margin-bottom: var(--space-6); }

/* Empty message */
.empty-message { text-align: center; color: var(--color-text-muted); padding: var(--space-8); font-style: italic; }

/* Article card link wrapper */
.article-card__link { display: block; text-decoration: none; color: inherit; height: 100%; }

/* Search dropdown */
.search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 100; max-height: 400px; overflow-y: auto; margin-top: var(--space-2); }
.search-dropdown__item { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3) var(--space-4); text-decoration: none; color: var(--color-text); border-bottom: 1px solid var(--color-border); transition: background 0.15s; }
.search-dropdown__item:last-child { border-bottom: none; }
.search-dropdown__item:hover { background: var(--color-bg-warm); }
.search-dropdown__title { font-size: var(--text-sm); font-weight: 500; }
.search-dropdown__category { font-size: var(--text-xs); color: var(--color-text-muted); }
.search-dropdown__empty { padding: var(--space-4); text-align: center; color: var(--color-text-muted); font-size: var(--text-sm); }

/* Back to top button */
.back-to-top { position: fixed; bottom: var(--space-6); right: var(--space-6); width: 44px; height: 44px; border-radius: 50%; background: var(--color-navy); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(20px); transition: all 0.3s; z-index: 50; }
.back-to-top--visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--color-navy-light, #2C5F7C); }

/* Toast notification */
.toast { position: fixed; bottom: var(--space-6); left: 50%; transform: translateX(-50%) translateY(20px); background: var(--color-navy); color: #fff; padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transition: all 0.3s; z-index: 9999; }
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Santo do Dia Page Layout */
.santo-page {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.santo-page__main { min-width: 0; }
.santo-page__calendar { margin-top: var(--space-6); }

/* Full Saint Detail below calendar */
.santo-full {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-border);
}

.santo-full__header {
  margin-bottom: var(--space-6);
}

.santo-full__date {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.santo-full__name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
}

.santo-full__image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.santo-full__body {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
  max-width: 680px;
}

.santo-full__body p {
  margin-bottom: var(--space-4);
}

.santo-full__ref {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
}

.santo-full__ref:hover {
  text-decoration: underline;
}

.santo-today-loading { padding: var(--space-4) 0; }

.santo-page__sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

/* Extraordinary Form Card */
.santo-extra-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.santo-extra-card__header {
  background: var(--color-navy);
  padding: var(--space-4) var(--space-5);
}

.santo-extra-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 2px;
}

.santo-extra-card__subtitle {
  font-size: 11px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.santo-extra-card__body { padding: var(--space-4) var(--space-5); }

.santo-extra-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: capitalize;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.santo-extra-card__mass {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.santo-extra-card__mass:last-child { margin-bottom: 0; }

.santo-extra-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
  margin-top: 3px;
}

.santo-extra-card__mass strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 2px;
}

.santo-extra-card__meta {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
}

.santo-extra-card__link {
  display: block;
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg-warm);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.santo-extra-card__link:hover { background: var(--color-beige-dark); }

@media (max-width: 768px) {
  .santo-page {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
  .santo-page__main {
    display: contents;
  }
  .santo-page__sidebar {
    position: static;
    order: 2;
  }
  /* Calendar first, then cards, then santo details */
  .santo-page__main > section:first-child { order: 1; }
  .santo-page__sidebar { order: 2; }
  .santo-full { order: 3; }
}

/* Social Channels Widget */
.social-channels {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.social-channel {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: background 0.2s;
  border-radius: var(--radius-sm);
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.social-channel:last-child { border-bottom: none; }

.social-channel:hover {
  background: var(--color-bg-warm);
}

.social-channel__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-channel__icon--whatsapp { background: #25D366; color: #fff; }
.social-channel__icon--youtube { background: #FF0000; color: #fff; }
.social-channel__icon--telegram { background: #0088CC; color: #fff; }

.social-channel__info { display: flex; flex-direction: column; }

.social-channel__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
}

.social-channel__desc {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

/* Donate Widget */
.donate-widget__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.donate-widget__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-warm);
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.donate-widget__toggle:hover {
  border-color: var(--color-gold);
  background: var(--color-white);
}

.donate-widget__toggle--open svg {
  transform: rotate(45deg);
}

.donate-widget__qr {
  justify-content: center;
  padding: var(--space-4) 0;
}

.donate-widget__qr:not([hidden]) {
  display: flex;
}

.donate-widget__qr-img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.donate-widget__pix,
.donate-widget__text {
  text-align: center;
}

.donate-widget__pix {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.donate-widget__pix-label {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.donate-widget__pix-key {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-warm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0;
}

.donate-widget__pix-key code {
  font-size: var(--text-xs);
  color: var(--color-navy);
  font-family: var(--font-sans);
  flex: 1;
}

.donate-widget__pix-key svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.donate-widget__pix-key:hover {
  border-color: var(--color-gold);
  background: var(--color-white);
}

.donate-widget__pix-key:hover svg {
  color: var(--color-gold);
}

/* AMDG Credit */
.footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-credit a:hover {
  color: var(--color-gold);
}

.amdg-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.amdg-link:hover .amdg-icon {
  transform: scale(1.15);
}

.amdg-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.amdg-logo-credit {
  height: 14px;
  width: auto;
  vertical-align: middle;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.amdg-link:hover .amdg-logo-credit {
  transform: scale(1.05);
  opacity: 1 !important;
}

/* Nav open body lock */
body.nav-open { overflow: hidden; }

/* Responsive santo */
@media (max-width: 768px) {
  .santo-today-card { flex-direction: column; }
  .santo-today-image { width: 100%; max-width: 300px; }
  .santo-calendar-grid { grid-template-columns: repeat(4, 1fr); }
  .santo-detail-content { flex-direction: column; }
  .santo-detail-image { width: 100%; max-width: 200px; }
  .article-share { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .santo-calendar-grid { grid-template-columns: repeat(3, 1fr); }
  .month-tabs { gap: var(--space-1); }
  .month-tab { padding: var(--space-1) var(--space-2); font-size: var(--text-xs); }
}

/* ── AI Search Results ─────────────────────────────────────── */
.search-ai-results { position: absolute; top: calc(100% + var(--space-3, 12px)); left: 0; right: 0; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.search-ai-loading { display: flex; align-items: center; gap: var(--space-3, 12px); color: rgba(255,255,255,0.7); font-size: var(--text-sm, 14px); padding: var(--space-4, 16px) 0; }
.search-ai-shimmer { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: var(--color-gold, #D4A574); border-radius: 50%; animation: search-spin 0.8s linear infinite; }
@keyframes search-spin { to { transform: rotate(360deg); } }
.search-ai-empty { color: rgba(255,255,255,0.6); font-size: var(--text-sm, 14px); padding: var(--space-4, 16px) 0; text-align: center; }
.search-ai-item { display: flex; align-items: flex-start; gap: var(--space-3, 12px); padding: var(--space-3, 12px) var(--space-4, 16px); background: rgba(255,255,255,0.08); border-radius: var(--radius-md, 8px); text-decoration: none; color: #fff; transition: background 0.15s; cursor: pointer; }
.search-ai-item:hover { background: rgba(255,255,255,0.15); }
.search-ai-item__badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.search-ai-item__badge--article { background: rgba(27, 58, 75, 0.9); color: #8ab4c9; }
.search-ai-item__badge--saint { background: rgba(212, 165, 116, 0.25); color: var(--color-gold, #D4A574); }
.search-ai-item__badge--material { background: rgba(39, 174, 96, 0.2); color: #5dd99e; }
.search-ai-item__badge--instagram { background: rgba(225, 48, 108, 0.2); color: #f07; }
.search-ai-item__body { flex: 1; min-width: 0; }
.search-ai-item__title { font-size: var(--text-sm, 14px); font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-ai-item__subtitle { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.search-ai-item__relevance { font-size: 12px; color: var(--color-gold, #D4A574); font-style: italic; margin-top: 4px; opacity: 0.85; }

/* ── Notícias Search Bar ───────────────────────────────────── */
.noticias-search { position: relative; display: flex; align-items: center; max-width: 100%; margin-top: var(--space-4); margin-bottom: 0; }
.noticias-search__icon { position: absolute; left: var(--space-4); color: var(--color-text-muted); pointer-events: none; }
.noticias-search__input { width: 100%; padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 28px); font-size: var(--text-base); font-family: var(--font-sans); border: 1px solid var(--color-border); border-radius: var(--radius-xl, 12px); background: var(--color-white); color: var(--color-text); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.noticias-search__input:focus { border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15); }
.noticias-search__input::placeholder { color: var(--color-text-muted); }
.noticias-search__clear { position: absolute; right: var(--space-3); background: none; border: none; color: var(--color-text-muted); font-size: 24px; cursor: pointer; padding: var(--space-2); line-height: 1; opacity: 0.6; transition: opacity 0.2s; }
.noticias-search__clear:hover { opacity: 1; }

/* ── Category Pills ────────────────────────────────────────── */
.noticias-categories { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.noticias-categories__pill { padding: var(--space-2) var(--space-4); font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 500; border: 1px solid var(--color-border); border-radius: 999px; background: transparent; color: var(--color-text); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.noticias-categories__pill:hover { border-color: var(--color-navy); color: var(--color-navy); }
.noticias-categories__pill--active { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }

/* ── AI Search Results ─────────────────────────────────────── */
.ai-results { background: var(--color-bg-warm, #FAF7F2); border-radius: var(--radius-lg, 12px); padding: var(--space-5); margin-bottom: var(--space-6); border: 1px solid var(--color-border); }
.ai-results__heading { font-family: 'Cinzel', serif; font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin: 0 0 var(--space-4) 0; }
.ai-results__list { display: flex; flex-direction: column; gap: 2px; }
.ai-results__loading { display: flex; align-items: center; gap: var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); padding: var(--space-3) 0; }
.ai-results__spinner { width: 20px; height: 20px; border: 2px solid var(--color-border); border-top-color: var(--color-gold); border-radius: 50%; animation: ai-spin 0.8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-results__empty { color: var(--color-text-muted); font-size: var(--text-sm); padding: var(--space-2) 0; margin: 0; }
.ai-results__item { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); text-decoration: none; color: var(--color-text); transition: background 0.15s; }
.ai-results__item:hover { background: var(--color-white); box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.08)); }
.ai-results__badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.ai-results__badge--article { background: rgba(27, 58, 75, 0.1); color: var(--color-navy); }
.ai-results__badge--saint { background: rgba(201, 168, 76, 0.15); color: #96791A; }
.ai-results__badge--material { background: rgba(39, 174, 96, 0.12); color: #1A8A4A; }
.ai-results__badge--instagram { background: rgba(225, 48, 108, 0.1); color: #C13584; }
.ai-results__body { flex: 1; min-width: 0; }
.ai-results__title { font-size: var(--text-sm); font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-results__meta { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }
.ai-results__note { font-size: 12px; color: var(--color-gold, #C9A84C); font-style: italic; margin-top: 4px; }

/* ── Notícias Section Heading ──────────────────────────────── */
.noticias-section-heading { font-family: 'Cinzel', serif; font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin: 0 0 var(--space-4) 0; padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }

/* ── Search hint text ──────────────────────────────────────── */
.noticias-search__hint { font-size: var(--text-xs, 12px); color: var(--color-link, #3B82F6); margin: 4px 0 var(--space-4) var(--space-4); letter-spacing: 0.01em; padding: 0; }

/* ── Page title area spacing ───────────────────────────────── */
.page-title-area { padding-top: var(--space-6, 24px); text-align: left; }
.article-grid { text-align: left; }
.article-card__body { text-align: left; }
.noticias-search { text-align: left; }
.noticias-categories { justify-content: flex-start; }

/* ── Fix article card images without class ─────────────────── */
.article-card__image-wrapper img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-card__image-wrapper { line-height: 0; font-size: 0; }

.article-card__body .category-badge { margin-bottom: var(--space-2); }
.article-card__body > h3:first-child, .article-card__body > a:first-child + h3 { margin-top: 0; }

/* ── Support & Connect Widget ──────────────────────────────── */
.support-socials { display: flex; gap: var(--space-3); justify-content: center; padding-bottom: var(--space-4); }
.support-socials__btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.support-socials__btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.support-socials__btn--whatsapp { background: #25D366; }
.support-socials__btn--youtube { background: #FF0000; }
.support-socials__btn--telegram { background: #0088CC; }
.support-divider { border: none; border-top: 1px solid var(--color-gold); margin: 0 0 var(--space-4) 0; opacity: 0.4; }
.support-donate { text-align: center; }
.support-donate__text { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; margin-bottom: var(--space-4); }
.support-donate__qr { justify-content: center; margin-bottom: var(--space-4); }
.support-donate__qr[hidden] { display: none !important; }
.support-donate__qr img { border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.support-donate__pix { padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.support-donate__label { display: block; font-size: 11px; color: var(--color-text-muted); margin-bottom: var(--space-1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.support-donate__key { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px dashed var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-warm); cursor: pointer; transition: all 0.2s; font-size: 0; }
.support-donate__key code { font-size: var(--text-xs); color: var(--color-navy); font-family: var(--font-sans); }
.support-donate__key:hover { border-color: var(--color-gold); background: var(--color-white); }
.support-donate__hint { display: block; font-size: 11px; color: var(--color-text-muted); margin-top: var(--space-2); }

/* ── Support socials with labels ───────────────────────────── */
.support-socials__link { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; transition: transform 0.2s; }
.support-socials__link:hover { transform: translateY(-2px); }
.support-socials__circle { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: box-shadow 0.2s; }
.support-socials__link:hover .support-socials__circle { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.support-socials__circle--whatsapp { background: #25D366; }
.support-socials__circle--youtube { background: #FF0000; }
.support-socials__circle--telegram { background: #0088CC; }
.support-socials__name { font-size: 11px; font-weight: 500; color: var(--color-text-muted); }

/* ── QR Toggle button ──────────────────────────────────────── */
.support-donate__toggle { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-warm); color: var(--color-navy); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: all 0.2s; margin-bottom: var(--space-3); }
.support-donate__toggle:hover { border-color: var(--color-gold); background: var(--color-white); }
.support-donate__qr:not([hidden]) { display: flex; }

/* ── Support widget centered titles ────────────────────────── */
.support-subheading { font-family: 'Cinzel', serif; font-size: var(--text-sm); font-weight: 600; text-align: center; color: var(--color-navy); margin: 0 0 var(--space-4) 0; letter-spacing: 0.05em; }
#support-heading { text-align: center; }

/* ── Top Articles Widget ───────────────────────────────────── */
.top-articles-widget { padding: 0 !important; overflow: hidden; }
.top-articles__tabs { display: flex; }
.top-articles__tab { flex: 1; padding: var(--space-3) var(--space-4); border: none; background: var(--color-bg-warm, #FAF7F2); color: var(--color-text-muted); font-family: 'Cinzel', serif; font-size: var(--text-xs, 12px); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; transition: all 0.2s; border-bottom: 2px solid transparent; }
.top-articles__tab--active { background: var(--color-white); color: var(--color-navy); border-bottom-color: #5B8BA2; }
.top-articles__tab:hover:not(.top-articles__tab--active) { color: var(--color-navy); }
.top-articles__panel { padding: var(--space-3) 0; }
.top-articles__panel[hidden] { display: none; }
.top-articles__loading { padding: var(--space-4); text-align: center; color: var(--color-text-muted); font-size: var(--text-sm); }
.top-articles__list { list-style: none; margin: 0; padding: 0; }
.top-articles__item { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); transition: background 0.15s; }
.top-articles__item:last-child { border-bottom: none; }
.top-articles__item:hover { background: var(--color-bg-warm, #FAF7F2); }
.top-articles__rank { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #5B8BA2, #3A6B82); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.top-articles__item:nth-child(1) .top-articles__rank { background: linear-gradient(135deg, #5B8BA2, #2C5A70); }
.top-articles__item:nth-child(2) .top-articles__rank { background: linear-gradient(135deg, #6E9DB3, #4A7D94); }
.top-articles__item:nth-child(3) .top-articles__rank { background: linear-gradient(135deg, #82AFC3, #5B8BA2); }
.top-articles__item:nth-child(n+4) .top-articles__rank { background: linear-gradient(135deg, #96C1D4, #6E9DB3); }
.top-articles__info { flex: 1; min-width: 0; }
.top-articles__title { font-size: var(--text-sm); font-weight: 500; line-height: 1.4; color: var(--color-navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-articles__category { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
.top-articles__thumb { flex-shrink: 0; width: 60px; height: 42px; border-radius: var(--radius-sm, 4px); object-fit: cover; }

/* ═══════════════════════════════════════════════════════════════
   GRUPO LEPANTO PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero Banner ───────────────────────────────────────────── */
.lep-hero { background: linear-gradient(135deg, #1E3D4F 0%, #2A5068 50%, #1A3545 100%); padding: var(--space-16, 64px) 0 var(--space-12, 48px); text-align: center; position: relative; overflow: hidden; }
.lep-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--color-gold), transparent); }
.lep-hero__badge { display: inline-block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-gold); border: 1px solid rgba(201,168,76,0.3); padding: 6px 16px; border-radius: 999px; margin-bottom: var(--space-4); }
.lep-hero__title { font-family: 'Cinzel', serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; color: #fff; letter-spacing: 0.06em; margin: 0 0 var(--space-3); }
.lep-hero__subtitle { font-family: 'Inter', sans-serif; font-size: var(--text-lg, 18px); color: rgba(255,255,255,0.6); font-weight: 300; letter-spacing: 0.02em; margin: 0; }

/* ── Section Title ─────────────────────────────────────────── */
.lep-section-title { font-family: 'Cinzel', serif; font-size: var(--text-xl, 20px); font-weight: 600; color: var(--color-navy); text-align: center; margin: 0 0 var(--space-8, 32px); text-transform: uppercase; letter-spacing: 0.08em; position: relative; padding-bottom: var(--space-4); }
.lep-section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 2px; background: var(--color-gold); }
.lep-section-title--light { color: #fff; }
.lep-section-title--light::after { background: rgba(255,255,255,0.4); }

/* ── Intro ─────────────────────────────────────────────────── */
.lep-intro { padding: var(--space-12, 48px) 0; }
.lep-intro__grid { display: grid; grid-template-columns: 360px 1fr; gap: var(--space-10, 40px); align-items: center; }
.lep-intro__logo { text-align: center; }
.lep-intro__logo img { width: 100%; max-width: 360px; height: auto; border-radius: 50%; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.lep-intro__text { font-size: var(--text-lg, 18px); line-height: 1.9; color: var(--color-text); }
.lep-intro__text p { margin: 0 0 var(--space-4); }
.lep-intro__highlights { display: flex; flex-direction: column; gap: var(--space-3); }
.lep-highlight { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-bg-warm, #FAF7F2); border-radius: var(--radius-md, 8px); border-left: 3px solid var(--color-gold); }
.lep-highlight svg { color: #5B8BA2; flex-shrink: 0; }
.lep-highlight span { font-size: var(--text-sm); font-weight: 600; color: var(--color-navy); }

/* ── Battle Inspiration Quote ──────────────────────────────── */
.lep-battle { padding: var(--space-10, 40px) 0; background: var(--color-bg-warm, #FAF7F2); }
.lep-battle__grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-8, 32px); align-items: center; }
.lep-quote { margin: 0; padding: var(--space-6, 24px) var(--space-8, 32px); border-left: 4px solid var(--color-gold); font-family: 'Playfair Display', serif; font-style: italic; font-size: var(--text-base); line-height: 1.8; color: var(--color-text); }
.lep-quote__title { font-family: 'Cinzel', serif; font-size: var(--text-base); font-weight: 700; font-style: normal; color: var(--color-navy); margin: 0 0 var(--space-3); letter-spacing: 0.03em; }
.lep-quote p { margin: 0 0 var(--space-3); }
.lep-quote p:last-child { margin-bottom: 0; }

/* ── Topics Grid ───────────────────────────────────────────── */
.lep-topics { padding: var(--space-12, 48px) 0; background: var(--color-bg-warm, #FAF7F2); }
.lep-topics__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6, 24px); }
.lep-topic { background: #fff; border-radius: var(--radius-lg, 12px); padding: var(--space-6, 24px); text-align: center; border: 1px solid var(--color-border); transition: transform 0.2s, box-shadow 0.2s; }
.lep-topic:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.lep-topic__icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #5B8BA2, #3A6B82); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-4); color: #fff; }
.lep-topic__title { font-family: 'Inter', sans-serif; font-size: var(--text-base); font-weight: 700; color: var(--color-navy); margin: 0 0 var(--space-2); }
.lep-topic__desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; margin: 0; }

/* ── Locations ─────────────────────────────────────────────── */
.lep-locations { padding: var(--space-12, 48px) 0; background: #fff; }
.lep-locations__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6, 24px); max-width: 640px; margin: 0 auto; }
.lep-location { text-align: center; padding: var(--space-6, 24px); background: var(--color-bg-warm, #FAF7F2); border-radius: var(--radius-lg, 12px); border: 1px solid var(--color-border); }
.lep-location__icon { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #5B8BA2, #3A6B82); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-3); color: #fff; }
.lep-location__city { font-family: 'Cinzel', serif; font-size: var(--text-base); font-weight: 700; color: var(--color-navy); margin: 0 0 var(--space-2); }
.lep-location__date { font-size: var(--text-sm); color: var(--color-text); margin: 0 0 var(--space-1); }
.lep-location__feast { font-size: var(--text-xs, 12px); color: var(--color-gold-dark, #B08F35); font-style: italic; margin: 0; }

/* ── How to Join ───────────────────────────────────────────── */
.lep-join { padding: var(--space-12, 48px) 0; background: linear-gradient(135deg, #132F48, #1B3A4B); color: #fff; }
.lep-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6, 24px); margin-bottom: var(--space-8, 32px); }
.lep-step { text-align: center; }
.lep-step__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-gold); color: var(--color-navy); font-family: 'Cinzel', serif; font-weight: 700; font-size: 18px; margin-bottom: var(--space-3); }
.lep-step__title { font-family: 'Inter', sans-serif; font-size: var(--text-base); font-weight: 600; margin: 0 0 var(--space-2); color: #fff; }
.lep-step__desc { font-size: var(--text-sm); color: rgba(255,255,255,0.6); line-height: 1.5; margin: 0; }
.lep-join__actions { display: flex; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────────── */
.lep-btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-6, 24px); border-radius: var(--radius-md, 8px); font-family: 'Inter', sans-serif; font-size: var(--text-sm); font-weight: 600; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; }
.lep-btn--primary { background: #E1306C; color: #fff; }
.lep-btn--primary:hover { background: #C13584; transform: translateY(-1px); }
.lep-btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.lep-btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.lep-btn--gold { background: var(--color-gold); color: var(--color-navy); }
.lep-btn--gold:hover { background: #B8973F; transform: translateY(-1px); }

/* ── Bottom CTA ────────────────────────────────────────────── */
.lep-cta { padding: var(--space-10, 40px) 0; text-align: center; background: var(--color-bg-warm, #FAF7F2); }
.lep-cta__text { font-family: 'Cinzel', serif; font-size: var(--text-xl, 20px); color: var(--color-navy); margin: 0 0 var(--space-4); }

/* ── Join invite text ──────────────────────────────────────── */
.lep-join__invite { font-family: 'Cinzel', serif; font-size: var(--text-xl, 20px); color: #fff; text-align: center; margin: 0 0 var(--space-4); letter-spacing: 0.04em; }

/* ═══════════════════════════════════════════════════════════════
   MATERIAIS PAGE
   ═══════════════════════════════════════════════════════════════ */
.page-title { padding-top: var(--space-6, 24px); font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; color: var(--color-navy); margin: 0 0 var(--space-2); }
.page-subtitle { font-size: var(--text-base); color: var(--color-text-muted); margin: 0 0 var(--space-6); line-height: 1.6; }

/* Filter tabs */
.materials-filters { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); flex-wrap: wrap; }
.btn--filter { padding: var(--space-2) var(--space-4); font-family: 'Inter', sans-serif; font-size: var(--text-sm); font-weight: 500; border: 1px solid var(--color-border); border-radius: 999px; background: transparent; color: var(--color-text); cursor: pointer; transition: all 0.2s; }
.btn--filter:hover { border-color: var(--color-navy); color: var(--color-navy); }
.btn--filter--active { background: var(--color-navy); color: #fff !important; border-color: var(--color-navy); }

/* Materials grid */
.materials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.materials-empty { text-align: center; color: var(--color-text-muted); padding: var(--space-8) 0; }

/* ═══════════════════════════════════════════════════════════════
   CONTATO PAGE
   ═══════════════════════════════════════════════════════════════ */
.contact-page__intro { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-8); max-width: 680px; }

/* Contact cards */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-bottom: var(--space-10, 40px); }
.contact-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg, 12px); padding: var(--space-6, 24px); text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.contact-card__icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #5B8BA2, #3A6B82); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-4); color: #fff; }
.contact-card__label { font-family: 'Inter', sans-serif; font-size: var(--text-base); font-weight: 700; color: var(--color-navy); margin: 0 0 var(--space-2); }
.contact-card__value { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; word-break: break-all; }
.contact-card__value:hover { color: var(--color-gold); }

/* Contact form */
.contact-form-section { max-width: 600px; }
.contact-form-section .section-title { font-family: 'Cinzel', serif; font-size: var(--text-lg); font-weight: 600; color: var(--color-navy); margin: 0 0 var(--space-6); text-transform: uppercase; letter-spacing: 0.08em; position: relative; padding-bottom: var(--space-3); }
.contact-form-section .section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--color-gold); }
.contact-form__field { margin-bottom: var(--space-4); }
.contact-form__label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-navy); margin-bottom: var(--space-1); }
.contact-form__input, .contact-form__textarea { width: 100%; padding: var(--space-3); font-family: 'Inter', sans-serif; font-size: var(--text-base); border: 1px solid var(--color-border); border-radius: var(--radius-md, 8px); background: var(--color-white); color: var(--color-text); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.contact-form__input:focus, .contact-form__textarea:focus { border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.contact-form__textarea { resize: vertical; min-height: 120px; }
.contact-form__submit { margin-top: var(--space-2); }
.contact-form__note { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-3); font-style: italic; }

/* ── Lepanto IG Card ───────────────────────────────────────── */
.lep-instagram { padding: var(--space-10, 40px) 0; }
.lep-ig-card { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-6, 24px) var(--space-10, 40px); background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg, 12px); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.lep-ig-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.lep-ig-card__icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #E1306C, #C13584, #833AB4); display: flex; align-items: center; justify-content: center; color: #fff; }
.lep-ig-card__handle { font-family: 'Inter', sans-serif; font-size: var(--text-base); font-weight: 600; color: var(--color-navy); }
.lep-ig-card__follow { font-size: var(--text-sm); color: #E1306C; font-weight: 500; }

/* ── Contact Channels List ─────────────────────────────────── */
.contact-channels { margin-top: var(--space-8, 32px); }
.channel-list { display: flex; flex-direction: column; gap: 2px; }
.channel-item { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md, 8px); text-decoration: none; color: var(--color-text); transition: background 0.15s; }
.channel-item:hover { background: var(--color-bg-warm, #FAF7F2); }
.channel-item__icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.channel-item__icon--instagram { background: linear-gradient(135deg, #E1306C, #C13584); }
.channel-item__icon--whatsapp { background: #25D366; }
.channel-item__icon--youtube { background: #FF0000; }
.channel-item__icon--telegram { background: #0088CC; }
.channel-item__info { display: flex; flex-direction: column; }
.channel-item__name { font-size: var(--text-base); font-weight: 600; color: var(--color-navy); }
.channel-item__desc { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 2px; }

/* ── Lepanto Join Grid (steps left, IG right) ──────────────── */
.lep-join__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8, 32px); align-items: start; }
.lep-steps--vertical { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.lep-step--left { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }
.lep-step--left .lep-step__num { flex-shrink: 0; }
.lep-join__left .lep-join__invite { text-align: center; margin-top: auto; margin-bottom: var(--space-3); }
.lep-join__left { display: flex; flex-direction: column; height: 100%; }
.lep-join__left .lep-join__actions { justify-content: center; margin-top: auto; }
.lep-ig-embed { border-radius: var(--radius-lg, 12px); overflow: hidden; }

/* ── Join section intro + spacing ──────────────────────────── */
.lep-join__intro { color: rgba(255,255,255,0.7); font-size: var(--text-base); line-height: 1.7; margin: 0 0 var(--space-6); }
.lep-steps--vertical .lep-step--left { margin-bottom: var(--space-5, 20px); }

/* ═══════════════════════════════════════════════════════════════
   MATERIALS TABLE
   ═══════════════════════════════════════════════════════════════ */
.mat-table-wrap { overflow-x: auto; margin-bottom: var(--space-6); }
.mat-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.mat-table thead th { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); padding: var(--space-3) var(--space-4); border-bottom: 2px solid var(--color-gold); text-align: left; white-space: nowrap; }
.mat-table tbody tr { border-bottom: 1px solid var(--color-border); transition: background 0.15s; }
.mat-table tbody tr:hover { background: var(--color-bg-warm, #FAF7F2); }
.mat-table td { padding: var(--space-3) var(--space-4); vertical-align: middle; }
.mat-table__title { font-weight: 600; color: var(--color-navy); min-width: 180px; }
.mat-table__desc { color: var(--color-text-muted); max-width: 280px; line-height: 1.4; }
.mat-table__meta { white-space: nowrap; color: var(--color-text-muted); text-align: center; }
.mat-table__loading { text-align: center; color: var(--color-text-muted); padding: var(--space-8) 0 !important; }

/* Category badges */
.mat-cat { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.mat-cat--estudo { background: rgba(91,139,162,0.15); color: #3A6B82; }
.mat-cat--oracao { background: rgba(201,168,76,0.2); color: #96791A; }
.mat-cat--catequese { background: rgba(39,174,96,0.12); color: #1A8A4A; }
.mat-cat--geral { background: rgba(0,0,0,0.06); color: var(--color-text-muted); }

/* File extension badge */
.mat-ext { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; background: rgba(27,58,75,0.08); color: var(--color-navy); letter-spacing: 0.05em; }

/* Download icon */
.mat-dl { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--color-navy); transition: all 0.2s; }
.mat-dl:hover { background: var(--color-navy); color: #fff; }

/* ── Related Articles (smaller cards) ──────────────────────── */
.related-articles { padding: var(--space-8, 32px) 0; }
.related-articles .container { max-width: var(--container-max); }
.related-articles .article-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.related-grid .article-card { font-size: var(--text-sm); }
.related-grid .article-card__body { padding: var(--space-3) var(--space-4) var(--space-4); }
.related-grid .article-card__title { font-size: var(--text-base); margin-bottom: var(--space-2); }
.related-grid .article-card__excerpt { display: none; }
.related-grid .article-card__image-wrapper { aspect-ratio: 16 / 9; }

/* ── Article skeleton fix ──────────────────────────────────── */
.article-skeleton { padding: var(--space-6) 0; }
.skeleton--breadcrumb { height: 14px; width: 200px; margin-bottom: var(--space-4); }
.skeleton--heading { height: 2.5rem; width: 80%; margin-bottom: var(--space-3); }
.skeleton--meta { height: 14px; width: 250px; margin-bottom: var(--space-6); }
.skeleton--hero-image { height: 400px; margin-bottom: var(--space-6); border-radius: var(--radius-lg, 12px); }
.skeleton--short { width: 60%; }

/* ── Article reading time ──────────────────────────────────── */
.article-single__reading-time { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: var(--color-text-muted); }
.article-single__reading-time::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--color-text-muted); margin: 0 var(--space-2); }

/* ── Source Badge (Instagram, etc.) ────────────────────────── */
.source-badge { display: inline-block; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--font-weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wider); vertical-align: middle; line-height: 1.4; }
.source-badge--inline { margin-left: var(--space-2); }
.article-card__date { display: inline-flex; align-items: center; gap: var(--space-2); }
.source-badge--instagram { color: #8134AF; border: 1.5px solid #8134AF; background: transparent; }

/* ── Article card footer (date + source badge inline) ──────── */
.article-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

/* IG Widget Title — icon + text inline, Cinzel font */
.widget__title {
  font-family: 'Cinzel', serif;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-gold);
}

.widget__title svg {
  flex-shrink: 0;
}

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */

.comments-section {
  max-width: var(--container-narrow);
  margin: var(--space-10) auto var(--space-8);
  padding: 0 var(--container-padding);
}

.comments-section__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-gold);
}

/* ── Single Comment ─────────────────────────────────────────── */
.comment {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
}

.comment:last-child {
  border-bottom: none;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-avatar--reply {
  width: 32px;
  height: 32px;
  font-size: var(--text-sm);
}

.comment__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment__author {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
}

.comment__time {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.comment__body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
  margin-left: calc(40px + var(--space-3));
  margin-bottom: var(--space-2);
}

.comment--reply .comment__body {
  margin-left: calc(32px + var(--space-3));
}

.comment__reply-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold-dark);
  margin-left: calc(40px + var(--space-3));
  padding: 0;
  transition: var(--transition-colors);
}

.comment__reply-btn:hover {
  color: var(--color-navy);
}

/* ── Replies Thread ─────────────────────────────────────────── */
.comment-replies {
  margin-left: var(--space-8);
  padding-left: var(--space-5);
  border-left: 2px solid var(--color-gold-light);
}

/* ── Comment Form ───────────────────────────────────────────── */
.comment-form {
  background-color: var(--color-beige);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.comment-form--reply {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  padding: var(--space-5);
}

.comment-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.comment-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.comment-form__row .comment-form__field {
  margin-bottom: 0;
}

.comment-form__field label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy);
}

.comment-form__field input,
.comment-form__field textarea {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  color: var(--color-text-primary);
  transition: border-color var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default);
}

.comment-form__field input:focus,
.comment-form__field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.comment-form__field textarea {
  resize: vertical;
  min-height: 100px;
}

.comment-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.comment-form__submit {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background-color: var(--color-navy);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-5);
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-default);
}

.comment-form__submit:hover {
  background-color: var(--color-navy-dark);
}

.comment-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-form__cancel {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  transition: var(--transition-colors);
}

.comment-form__cancel:hover {
  color: var(--color-text-primary);
}

.comment-form__status {
  margin-top: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-red);
  min-height: 1.2em;
}

/* ── Empty State ────────────────────────────────────────────── */
.comments-list:empty + .comment-form {
  margin-top: var(--space-2);
}

/* ── Mobile Breakpoints ─────────────────────────────────────── */
@media (max-width: 768px) {
  .comment-form__row {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .comment-replies {
    margin-left: var(--space-4);
    padding-left: var(--space-4);
  }

  .comment__body {
    margin-left: calc(40px + var(--space-2));
  }

  .comment--reply .comment__body {
    margin-left: calc(32px + var(--space-2));
  }

  .comment__reply-btn {
    margin-left: calc(40px + var(--space-2));
  }
}

@media (max-width: 480px) {
  .comments-section {
    padding: 0 var(--space-4);
  }

  .comment-replies {
    margin-left: var(--space-2);
    padding-left: var(--space-3);
  }

  .comment-avatar {
    width: 34px;
    height: 34px;
    font-size: var(--text-base);
  }

  .comment-avatar--reply {
    width: 28px;
    height: 28px;
    font-size: var(--text-xs);
  }

  .comment__body {
    margin-left: calc(34px + var(--space-2));
  }

  .comment--reply .comment__body {
    margin-left: calc(28px + var(--space-2));
  }

  .comment__reply-btn {
    margin-left: calc(34px + var(--space-2));
  }

  .comment-form {
    padding: var(--space-4);
  }

  .comment-form--reply {
    padding: var(--space-3);
  }
}

/* ── Comment Replies Toggle ──────────────────────────── */
.comment-replies-wrapper {
  margin-left: var(--space-10, 40px);
}
.comment-replies__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-gold-dark, #B08F35);
  font-family: var(--font-sans);
  font-size: var(--text-xs, 12px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: var(--space-2, 8px) 0;
  transition: color 0.2s;
}
.comment-replies__toggle:hover { color: var(--color-navy, #2A5068); }
.comment-replies__arrow {
  transition: transform 0.2s;
}
.comment-replies__toggle[aria-expanded=true] .comment-replies__arrow {
  transform: rotate(180deg);
}

/* ── Reply comments beige background ─────────────────── */
.comment--reply {
  background: var(--color-beige, #F5F0EB);
  border-radius: var(--radius-md, 8px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  margin-bottom: var(--space-2, 8px);
}
.comment-replies {
  margin-top: var(--space-2, 8px);
  border-left: 2px solid var(--color-gold-light, #D4BA6A);
  padding-left: var(--space-4, 16px);
}

/* ── Community Rules Card ────────────────────────────── */
.comments-rules {
  background: var(--color-beige, #F5F0EB);
  border: 1px solid var(--color-border, #E7E5E4);
  border-radius: var(--radius-md, 8px);
  padding: var(--space-4, 16px);
  margin-bottom: var(--space-6, 24px);
}
.comments-rules__text {
  font-size: var(--text-sm, 14px);
  color: var(--color-text-secondary, #57534E);
  line-height: 1.6;
  margin: 0;
}
.comments-rules__text strong {
  color: var(--color-navy, #2A5068);
}

@media (max-width: 768px) {
  .comment-replies-wrapper { margin-left: var(--space-6, 24px); }
}
@media (max-width: 480px) {
  .comment-replies-wrapper { margin-left: var(--space-4, 16px); }
}

/* ── Reply count inline with Responder ───────────────── */
.comment__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4, 16px);
  margin-top: var(--space-2, 8px);
}
.comment__reply-count .comment-replies__toggle {
  color: var(--color-text-muted, #78716C);
  font-size: var(--text-xs, 12px);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}
.comment__reply-count .comment-replies__toggle:hover {
  color: var(--color-text-secondary, #57534E);
}

/* ── Ver mais collapsed comments ─────────────────────── */
.comments-show-more {
  display: block;
  width: 100%;
  padding: var(--space-3, 12px);
  margin-top: var(--space-4, 16px);
  background: var(--color-beige, #F5F0EB);
  border: 1px solid var(--color-border, #E7E5E4);
  border-radius: var(--radius-md, 8px);
  color: var(--color-navy, #2A5068);
  font-family: var(--font-sans);
  font-size: var(--text-sm, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
.comments-show-more:hover {
  background: var(--color-beige-dark, #EBE3DA);
}

/* ── Form title ──────────────────────────────────────── */
.comment-form__title {
  font-family: var(--font-sans);
  font-size: var(--text-base, 16px);
  font-weight: 600;
  color: var(--color-navy, #2A5068);
  margin: 0 0 var(--space-3, 12px) 0;
}


/* ==========================================================================
   NEWSLETTER SIGNUP OVERLAY (newsletter-overlay.js)
   Full-screen modal that appears 4s after first visit on every public page.
   Two-step flow: email → name + mobile. Fade-in via opacity transition.
   ========================================================================== */
.epc-nl-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.epc-nl-overlay.epc-nl-visible {
  opacity: 1;
  pointer-events: auto;
}
.epc-nl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.epc-nl-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
  border-top: 4px solid var(--color-gold);
  animation: epc-nl-pop 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes epc-nl-pop {
  from { transform: translateY(16px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.epc-nl-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 150ms ease, color 150ms ease;
}
.epc-nl-close:hover { background: var(--color-bg-warm); color: var(--color-navy); }
.epc-nl-heading {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 10px 0;
  line-height: 1.2;
}
.epc-nl-lead {
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.55;
  margin: 0 0 20px 0;
}
.epc-nl-lead strong { color: var(--color-navy); font-weight: 700; }

/* Step switching: hide the inactive step entirely */
.epc-nl-step { display: none; margin: 0; }
.epc-nl-overlay[data-step="1"] .epc-nl-step-1 { display: block; }
.epc-nl-overlay[data-step="2"] .epc-nl-step-2 { display: block; }

.epc-nl-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.epc-nl-input {
  flex: 1;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
  width: 100%;
  margin-bottom: 10px;
}
.epc-nl-row .epc-nl-input { margin-bottom: 0; }
.epc-nl-input:focus {
  border-color: var(--color-gold);
  background: #fff;
}
.epc-nl-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}
.epc-nl-btn:disabled { opacity: 0.6; cursor: wait; }
.epc-nl-btn-primary {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}
.epc-nl-btn-primary:hover:not(:disabled) { background: #1E3D4F; border-color: #1E3D4F; }
.epc-nl-btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.epc-nl-btn-ghost:hover { background: var(--color-bg-warm); color: var(--color-navy); }
.epc-nl-later {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}
.epc-nl-later:hover { color: var(--color-navy); }
.epc-nl-error {
  color: #c53030;
  font-size: 13px;
  margin: 6px 0 0;
  line-height: 1.4;
}
.epc-nl-success {
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #f0f9f4;
  border-left: 3px solid #3fa661;
  border-radius: var(--radius-sm);
}
.epc-nl-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Mobile tightening */
@media (max-width: 520px) {
  .epc-nl-card { padding: 30px 22px 22px; }
  .epc-nl-heading { font-size: 22px; }
  .epc-nl-lead { font-size: 14px; }
  .epc-nl-row { flex-direction: column; }
  .epc-nl-row .epc-nl-input { margin-bottom: 8px; }
}


/* Footer newsletter form — sits inside the Contato column under the
   mailto link. Reuses the same subscribe endpoint as the overlay via
   newsletter-overlay.js. */
.site-footer__newsletter {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__newsletter-label {
  font-size: 13px;
  color: var(--color-gray-300, #cbd5e1);
  margin: 0 0 10px 0;
  line-height: 1.4;
}
.site-footer__newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__newsletter-form input[type="email"],
.site-footer__newsletter-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.site-footer__newsletter-form input[type="email"]::placeholder,
.site-footer__newsletter-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.site-footer__newsletter-form input[type="email"]:focus,
.site-footer__newsletter-form input[type="text"]:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.12);
}
.site-footer__newsletter-form button {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-navy);
  background: var(--color-gold);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 150ms ease, transform 120ms ease;
}
.site-footer__newsletter-form button:hover:not(:disabled) {
  background: #d4b562;
  transform: translateY(-1px);
}
.site-footer__newsletter-form button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.site-footer__newsletter-msg {
  font-size: 12px;
  margin: 10px 0 0;
  line-height: 1.4;
}
.site-footer__newsletter-msg.is-success {
  color: #9be3a8;
}
.site-footer__newsletter-msg.is-error {
  color: #ffb4b4;
}

/* ── Admin-reply comments (verified official response) ────────── */
.comment--admin-reply {
  background: var(--color-navy-softer, #EAF0F4);
  border-left: 3px solid var(--color-navy, #2A5068);
}
.comment--admin-reply .comment__author {
  color: var(--color-navy, #2A5068);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.comment__verified-badge {
  color: var(--color-navy, #2A5068);
  flex-shrink: 0;
  vertical-align: middle;
}
.comment-avatar--admin {
  background: var(--color-navy, #2A5068) !important;
  color: #fff !important;
}

/* ── Deleted comment placeholder ──────────────────────────────── */
.comment--deleted {
  opacity: 0.55;
  font-style: italic;
  padding: var(--space-3, 12px) var(--space-4, 16px);
}
.comment--deleted .comment__body {
  color: var(--color-text-muted, #78716C);
}

/* ============================================================
   Vatican News YouTube Facade — click-to-play
   Renders a poster image + play glyph in place of the iframe.
   main.js swaps the button for the real iframe on first click,
   keeping ~1 MB of YouTube player JS off the critical path.
   ============================================================ */
.vatican-feed__live-facade {
  padding: 0;
  border: 0;
  margin: 0;
  background: #000;
  cursor: pointer;
  display: block;
  overflow: hidden;
}
.vatican-feed__live-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.vatican-feed__live-facade:hover .vatican-feed__live-poster,
.vatican-feed__live-facade:focus-visible .vatican-feed__live-poster {
  opacity: 1;
}
.vatican-feed__live-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.15s ease;
}
.vatican-feed__live-facade:hover .vatican-feed__live-play {
  transform: translate(-50%, -50%) scale(1.08);
}

/* ============================================================
   Below-fold content-visibility: tells the browser to skip
   rendering (layout + paint) for these sections until they
   scroll into the viewport. Hugely reduces initial style &
   layout cost, which was dominating TBT on throttled mobile.
   ============================================================ */
.article-grid,
.sidebar,
.site-footer,
.vatican-feed__youtube {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ---- responsive.css ---- */
/* ==========================================================================
   EDUCAR PARA O CEU — Responsive Breakpoints
   Mobile-first approach: base styles are mobile, queries scale up
   ========================================================================== */

/* ==========================================================================
   TABLET — max-width: 1024px
   Sidebar stacks below main content
   ========================================================================== */
@media (max-width: 1024px) {

  /* Content grid becomes single column */
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .sidebar {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* Footer grid to 2 columns */
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  /* Article grid stays 2 columns */
  .article-grid {
    gap: var(--space-5);
  }

  /* Contact info stays 2 columns but tighter */
  .contact-info {
    gap: var(--space-6);
  }

  /* Hero row stacks on tablet */
  .hero-row { grid-template-columns: 1fr; }
  .vatican-feed { max-height: none; overflow-y: visible; border-left: none; border-top: 1px solid var(--color-border); }
  .vatican-feed__list { overflow-y: visible; }
  /* Only top-articles above Últimas Notícias; IG/channels stay below */
  .content-wrapper {
    display: flex;
    flex-direction: column;
  }
  .content-wrapper .sidebar {
    display: contents;
  }
  .content-wrapper .top-articles-widget {
    order: -1;
  }
  .content-wrapper .content-main {
    order: 0;
  }

  .hero-carousel { height: 360px; }
  .hero-carousel__arrow { width: 40px; height: 40px; }
  .hero-carousel__arrow--prev { left: 12px; }
  .hero-carousel__arrow--next { right: 12px; }

  /* Article single */
  .article-single__title {
    font-size: var(--text-3xl);
  }

  /* Nav adjustments — slightly smaller padding */
  .main-nav__link {
    padding: var(--space-4) var(--space-4);
    font-size: var(--text-xs);
  }
}

/* ==========================================================================
   MOBILE LANDSCAPE / SMALL TABLET — max-width: 768px
   Nav becomes hamburger, hero smaller, footer 2-col
   ========================================================================== */
@media (max-width: 768px) {

  /* ── Typography scale down ────────────────────────────────────────────── */
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  h4 { font-size: var(--text-lg); }

  /* ── Container padding tighter ────────────────────────────────────────── */
  :root {
    --container-padding: var(--space-4);
  }

  /* ── Split header on tablet ──────────────────────────────────────────── */
  .site-header--split {
    height: 180px;
  }
  .site-header__parallelogram { width: 200px; }
  .site-header__bar { width: 25px; }
  .site-header__bar--left { left: calc(50% - 158px); }
  .site-header__bar--right { left: calc(50% + 133px); }
  .site-header__logo { width: 120px; }

  /* ── Mobile Nav Bar: [Logo] [Hamburger] [Magnifier] ─────────────────── */
  .nav-toggle,
  .main-nav__hamburger {
    display: flex;
  }

  .main-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
  }

  /* Logo on left */
  .main-nav__logo-mobile {
    display: flex;
    align-items: center;
    order: 1;
    flex-shrink: 0;
  }
  .main-nav__logo-mobile img {
    width: 36px;
    height: auto;
    border-radius: 50%;
  }

  /* Inner pages: brand acts as logo-mobile */
  .main-nav__brand {
    order: 1;
    flex-shrink: 0;
  }

  /* Hamburger centered */
  .main-nav__hamburger {
    position: static;
    transform: none;
    order: 2;
    margin: 0 auto;
    transition: position 0s, margin 0s;
  }

  /* When menu is open, move X to top-left */
  .main-nav__hamburger[aria-expanded="true"] {
    position: fixed;
    top: 10px;
    left: var(--space-4);
    margin: 0;
    z-index: calc(var(--z-overlay) + 2);
  }


  /* Search only on right, hide apostolado */
  .main-nav__actions {
    order: 3;
    flex-shrink: 0;
  }
  .apostolado-wrapper {
    display: none !important;
  }

  /* When menu is open, lift nav above utility-bar so overlay covers it */
  body.nav-open .main-nav {
    z-index: calc(var(--z-toast) + 10);
  }

  /* ── Full-Screen Menu Overlay ─────────────────────────────────────────── */
  .main-nav__list {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-overlay);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 25px var(--space-8) var(--space-8);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    /* Layered background */
    background:
      radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
      linear-gradient(175deg, var(--color-navy-dark) 0%, #1a3344 50%, var(--color-navy) 100%);

    /* Circular reveal from center-top */
    clip-path: circle(0% at 50% 26px);
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    pointer-events: none;
  }

  .main-nav__list.is-open,
  .main-nav__list--open {
    clip-path: circle(150% at 50% 26px);
    visibility: visible;
    pointer-events: auto;
  }

  /* Staggered item fade-in */
  .main-nav__list > li {
    width: 100%;
  }



  .main-nav__list--open > li:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
  .main-nav__list--open > li:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
  .main-nav__list--open > li:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
  .main-nav__list--open > li:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
  .main-nav__list--open > li:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
  .main-nav__list--open > li:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
  .main-nav__list--open > li:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
  .main-nav__list--open > li:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
  .main-nav__list--open > li:nth-child(9) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }

  /* Menu link styling */
  .main-nav__link {
    font-family: 'Cinzel', serif;
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: var(--space-4) var(--space-6);
    text-align: center;
    width: 100%;
  }


  .main-nav__link:hover,
  .main-nav__link:focus {
    color: var(--color-gold);
  }

  .main-nav__link::after {
    display: none;
  }

  /* Active page gold highlight */
  .main-nav__link--active {
    color: var(--color-gold) !important;
  }
  .main-nav__link--active::after {
    content: '';
    display: block !important;
    width: 40px;
    height: 2px;
    background: var(--color-gold);
    margin: var(--space-1) auto 0;
    border-radius: 1px;
  }

  /* Gold separator between nav items */
  .main-nav__list > li + li::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: rgba(201, 168, 76, 0.2);
    margin: 0 auto;
  }

  /* Seasonal link (Quaresma) */
  .main-nav__link--seasonal {
    color: var(--color-quaresma-light, #b39ddb) !important;
  }

  /* ── In-Menu Apostolado ───────────────────────────────────────────────── */
  .main-nav__apostolado-mobile {
    display: block !important;
    width: 100%;
  }


  .menu-apostolado {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
  }

  .menu-apostolado__title {
    font-family: 'Cinzel', serif;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-3);
  }

  .menu-apostolado__text {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    line-height: 1.6;
  }

  .menu-apostolado__qr {
    margin-bottom: var(--space-3);
  }

  .menu-apostolado__qr img {
    border-radius: 12px;
    border: 2px solid rgba(201, 168, 76, 0.3);
    margin: 0 auto;
    display: block;
  }

  .menu-apostolado__copy {
    display: block;
    width: 100%;
  }


  .menu-apostolado__copy code {
    display: block;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
  }

  .menu-apostolado__copy span {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
  }

  .menu-apostolado__copy:active {
    background: rgba(201, 168, 76, 0.25);
  }

  /* ── In-Menu Social Links ─────────────────────────────────────────────── */
  .main-nav__social-mobile {
    display: block !important;
    margin-top: var(--space-6);
  }

  .menu-socials {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
  }

  .menu-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }

  .menu-socials a:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background: rgba(201, 168, 76, 0.1);
  }
  /* ── Liturgical ticker: horizontal scroll on mobile ───────────────────── */
  /* Ticker: horizontal scroll per slide, slide-up transition between */
  .liturgia-strip__slide {
    justify-content: flex-start;
    white-space: nowrap;
    width: max-content;
    inset: auto;
    top: 0;
    left: 0;
    height: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0s, transform 0.4s ease;
  }

  .liturgia-strip__slide--active {
    opacity: 1;
    transform: translateY(0);
    animation: ticker-scroll 5s ease-in-out forwards;
  }

  .liturgia-strip__slide--exit {
    opacity: 0;
    transform: translateY(-100%);
    animation: none !important;
  }

  @keyframes ticker-scroll {
    0% { transform: translateX(4px) translateY(0); }
    75% { transform: translateX(calc(-100% + 100vw - 8px)) translateY(0); }
    90% { transform: translateX(calc(-100% + 100vw - 8px)) translateY(0); opacity: 1; }
    100% { transform: translateX(calc(-100% + 100vw - 8px)) translateY(-100%); opacity: 0; }
  }


  /* ── Header ───────────────────────────────────────────────────────────── */
  .site-header {
    padding: var(--space-6) 0 var(--space-4);
  }

  .site-header__logo {
    width: 140px;
  }

  .site-header__title {
    font-size: var(--text-xl);
  }

  /* ── Hero ──────────────────────────────────────────────────────────────── */
  .hero-carousel { height: 340px; }
  .hero-carousel__arrow { display: none; }
  .hero-carousel__excerpt { display: none; }
  .hero-carousel__content { padding: var(--space-6) var(--space-4) var(--space-10); }

  /* ── Sidebar stacks to single column ──────────────────────────────────── */
  .sidebar {
    grid-template-columns: 1fr;
  }

  /* ── Article grid 1 column ────────────────────────────────────────────── */
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card--featured .article-card__image-wrapper {
    aspect-ratio: 16 / 10;
  }

  .article-card--featured .article-card__title {
    font-size: var(--text-xl);
  }

  /* ── Article single ───────────────────────────────────────────────────── */
  .article-single {
    padding: var(--space-6) var(--container-padding);
  }

  .article-single__title {
    font-size: var(--text-2xl);
  }

  .article-single__body {
    font-size: var(--text-base);
  }

  .article-single__body > p:first-child::first-letter {
    font-size: 2.8rem;
  }

  .article-single__meta {
    flex-direction: column;
    gap: var(--space-2);
  }

  .article-single__meta-divider {
    display: none;
  }

  .article-single__share {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* ── Footer 2-col ─────────────────────────────────────────────────────── */
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .site-footer__bottom .container {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  /* ── Donation ─────────────────────────────────────────────────────────── */
  .donation {
    padding: var(--space-10) 0;
  }

  .donation__title {
    font-size: var(--text-2xl);
  }

  .donation__pix {
    padding: var(--space-6);
    width: 100%;
  }


  /* ── Contact info single column ───────────────────────────────────────── */
  .contact-info {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  /* ── Saint calendar ───────────────────────────────────────────────────── */
  .saint-calendar__grid {
    gap: var(--space-1);
  }

  .saint-calendar__day {
    font-size: var(--text-xs);
  }

  /* ── Lepanto content ──────────────────────────────────────────────────── */
  .lepanto-content__hero {
    padding: var(--space-8) var(--space-5);
  }

  .lepanto-content__hero h1 {
    font-size: var(--text-2xl);
  }

  /* ── Pagination ───────────────────────────────────────────────────────── */
  .pagination__item {
    min-width: 36px;
    height: 36px;
    font-size: var(--text-xs);
  }

  /* ── Search results ───────────────────────────────────────────────────── */
  .search-results-dropdown {
    width: calc(100vw - var(--space-8));
    right: calc(var(--space-4) * -1);
  }
}

/* ==========================================================================
   MOBILE PORTRAIT — max-width: 480px
   Single column everything, generous touch targets
   ========================================================================== */
@media (max-width: 480px) {

  /* ── Split header: single video background on mobile ────────────────── */
  .site-header--split {
    height: 200px;
    padding: 0;
    background: var(--color-navy-dark);
  }

  /* Hide right video, bars, parallelogram, text overlays */
  .site-header__video-right,
  .site-header__bar,
  .site-header__parallelogram,
  .site-header__video-text {
    display: none;
  }

  /* Left video spans full width */
  .site-header__video-left {
    left: 0;
    right: 0;
    width: 100%;
  }




  /* Stronger overlay for readability */
  .site-header__video-left .site-header__video-overlay,
  .site-header__video-overlay {
    background: linear-gradient(
      to bottom,
      rgba(30, 61, 79, 0.5) 0%,
      rgba(30, 61, 79, 0.7) 100%
    );
  }

  /* Logo centered over video */
  .site-header__logo-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 5;
  }

  .site-header__logo {
    width: 130px;
  }

  .site-header__name {
    font-size: 12px;
  }

  /* ── Even tighter container ───────────────────────────────────────────── */
  :root {
    --container-padding: var(--space-3);
  }

  /* ── Utility bar simplified ───────────────────────────────────────────── */
  .utility-bar__date {
    display: none;
  }

  .utility-bar__social a {
    width: 2.5rem;
    height: 2.5rem;
  }

  .search-form.is-open .search-input {
    width: 140px;
  }

  .btn-doe {
    padding: var(--space-1) var(--space-3);
    font-size: 0.625rem;
  }

  /* ── Header minimal ──────────────────────────────────────────────────── */
  .site-header {
    padding: var(--space-4) 0;
  }

  .site-header__logo {
    width: 120px;
  }

  .site-header__title {
    font-size: var(--text-lg);
  }

  .site-header__tagline {
    font-size: var(--text-xs);
  }

  /* ── Hero compact ─────────────────────────────────────────────────────── */
  .hero {
    min-height: 300px;
  }

  .hero__skeleton {
    min-height: 300px;
  }

  .hero__title {
    font-size: var(--text-xl);
  }

  .hero__excerpt {
    font-size: var(--text-sm);
    -webkit-line-clamp: 2;
  }

  .hero__category {
    font-size: 0.625rem;
    padding: 2px var(--space-3);
  }

  /* ── Content wrapper reduced spacing ──────────────────────────────────── */
  .content-wrapper {
    padding: var(--space-6) var(--container-padding);
    gap: var(--space-8);
  }

  /* ── Article cards ────────────────────────────────────────────────────── */
  .article-card__body {
    padding: var(--space-4);
  }

  .article-card__title {
    font-size: var(--text-lg);
  }

  .article-card__excerpt {
    -webkit-line-clamp: 2;
  }

  /* ── Section titles ───────────────────────────────────────────────────── */
  .section-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
  }

  /* ── Article single ───────────────────────────────────────────────────── */
  .article-single__title {
    font-size: var(--text-xl);
  }

  .article-single__subtitle {
    font-size: var(--text-base);
  }

  .article-single__body {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
  }

  .article-single__body > p:first-child::first-letter {
    font-size: 2.4rem;
    padding-right: var(--space-2);
  }

  .article-single__body blockquote {
    padding: var(--space-4) var(--space-5);
    margin: var(--space-6) 0;
  }

  /* ── Buttons — generous touch targets ─────────────────────────────────── */
  .btn {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-sm);
    min-height: 48px;
  }

  .pagination__item {
    min-width: 44px;
    height: 44px;
  }

  /* ── Footer single column ─────────────────────────────────────────────── */
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .site-footer__col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .site-footer__nav {
    align-items: center;
  }

  .site-footer__nav a:hover {
    padding-left: 0;
  }

  .site-footer__social {
    justify-content: center;
  }

  .site-footer__contact {
    align-items: center;
  }

  /* ── Donation ─────────────────────────────────────────────────────────── */
  .donation__title {
    font-size: var(--text-xl);
  }

  .donation__text {
    font-size: var(--text-base);
  }

  .donation__pix-key {
    font-size: var(--text-xs);
  }

  .donation__qr img {
    width: 150px;
    height: 150px;
  }

  /* ── Material cards stack vertically ──────────────────────────────────── */
  .material-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .material-card__download {
    align-self: center;
  }

  /* ── Saint card ───────────────────────────────────────────────────────── */
  .saint-card__image-wrapper {
    max-height: 260px;
  }

  .saint-card__name {
    font-size: var(--text-lg);
  }

  /* ── Tag list larger touch targets ────────────────────────────────────── */
  .tag-list__item {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
  }

  /* ── Toast wider on mobile ────────────────────────────────────────────── */
  .toast {
    left: var(--space-4);
    right: var(--space-4);
    transform: none;
    text-align: center;
  }

  /* ── Breadcrumb scrollable ────────────────────────────────────────────── */
  .breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: var(--space-3) 0;
  }

  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  /* ── Lepanto ──────────────────────────────────────────────────────────── */
  .lepanto-content__hero {
    padding: var(--space-6) var(--space-4);
    border-radius: var(--radius-lg);
  }

  .lepanto-content__hero h1 {
    font-size: var(--text-xl);
  }

  .lepanto-content__section p {
    font-size: var(--text-base);
  }

  /* ── No results ───────────────────────────────────────────────────────── */
  .no-results {
    padding: var(--space-10) var(--space-4);
  }

  .no-results__icon {
    font-size: var(--text-4xl);
  }

  .no-results__title {
    font-size: var(--text-xl);
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .utility-bar,
  .main-nav,
  .site-footer,
  .donation,
  .sidebar,
  .nav-toggle,
  .article-single__share,
  .load-more-wrapper,
  .pagination,
  .btn,
  .search-form {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .content-wrapper {
    display: block;
  }

  .article-single__body {
    max-width: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

/* ── Notícias mobile overrides ─────────────────────────────── */
@media (max-width: 768px) {
  .noticias-categories { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .noticias-categories::-webkit-scrollbar { display: none; }
  .ai-results__item { flex-direction: column; gap: var(--space-2); }
}

/* ── Lepanto page mobile ───────────────────────────────────── */
@media (max-width: 768px) {
  .lep-intro__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .lep-topics__grid { grid-template-columns: 1fr; }
  .lep-steps { grid-template-columns: 1fr; gap: var(--space-4); }
  .lep-hero { padding: var(--space-10) 0 var(--space-8); }
  .lep-hero__title { font-size: 2.2rem; }
  .lep-intro__logo img { max-width: 260px; }
  .lep-battle__grid { grid-template-columns: 1fr; }
  .lep-locations__grid { grid-template-columns: 1fr; max-width: 360px; }
  .lep-quote { padding: var(--space-4) var(--space-5, 20px); font-size: var(--text-sm); }
}

/* ── Materiais + Contato mobile ────────────────────────────── */
@media (max-width: 768px) {
  .materials-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}

/* ── Lepanto join grid mobile ──────────────────────────────── */
@media (max-width: 768px) {
  .lep-join__grid { grid-template-columns: 1fr; }
}

/* ── Related articles mobile ───────────────────────────────── */
@media (max-width: 768px) {
  .related-grid, .related-articles .article-grid { grid-template-columns: 1fr; }
}

/* ── Reduced Motion: poster instead of video ──────────────────────────── */
@media (max-width: 480px) and (prefers-reduced-motion: reduce) {
  .site-header__video-left video {
    display: none;
  }
  .site-header__video-left {
    background: url('/img/og-image.jpg') center/cover no-repeat;
  }
}

