/* ============================================
   DESIGN E — BYZANTINE MOSAIC
   Sancte Ioseph Devotional Portal
   Consolidated stylesheet for all pages
   ============================================ */

/* ============================================
   RESET & BASE + CSS VARIABLES
   ============================================ */

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

:root {
    --bg-deep: #1a1a2e;
    --bg-midnight: #16213e;
    --gold: #c9a84c;
    --gold-light: #e0c872;
    --gold-dark: #a8893a;
    --ruby: #e94560;
    --ruby-dark: #b8354c;
    --emerald: #2d6a4f;
    --emerald-dark: #1b4332;
    --sapphire: #1a6b8a;
    --sapphire-dark: #134e64;
    --ivory: #f0e6d3;
    --ivory-warm: #e8dcc8;
    --void: #0f0f23;
    --text: #f0e6d3;
    --text-muted: #b8a98a;
    --font-display: 'Marcellus', serif;
    --font-body: 'Crimson Pro', serif;
}

body {
    background-color: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */

body.light-mode {
    --bg-deep: #f5f0e8;
    --bg-midnight: #ede6d8;
    --gold: #a8893a;
    --gold-light: #c9a84c;
    --gold-dark: #8a6f2a;
    --ruby: #b8354c;
    --emerald: #1b4332;
    --sapphire: #134e64;
    --ivory: #2a2a3e;
    --void: #e8dcc8;
    --text: #1a1a2e;
    --text-muted: #4a4a5e;
}

body.light-mode .hero-dome {
    background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.15) 0%, rgba(201,168,76,0.05) 40%, transparent 70%);
}

body.light-mode .mosaic-bg-overlay {
    opacity: 0.03;
}

body.light-mode .nav-tile {
    color: #f0e6d3;
}

body.light-mode .section-card {
    background: rgba(26,26,46,0.05);
    border-color: var(--gold);
}

body.light-mode .prayer-card {
    background: rgba(26,26,46,0.04);
    border-color: var(--gold);
}

body.light-mode .prayer-text {
    color: var(--text);
}

body.light-mode .margin-mosaic .mm {
    opacity: 0.1;
}

body.light-mode .footer-inner {
    color: var(--text-muted);
}

body.light-mode .theme-toggle {
    background: rgba(240,230,211,0.9);
    border-color: var(--gold);
}

body.light-mode .content-article {
    background: rgba(26,26,46,0.04);
    border-color: var(--gold);
}

body.light-mode .scripture-block {
    background: rgba(26,107,138,0.06);
}

body.light-mode .prayer-block {
    background: rgba(201,168,76,0.06);
}

body.light-mode .bilingual-toggle {
    background: rgba(240,230,211,0.85);
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

body.light-mode .bilingual-toggle:hover,
body.light-mode .bilingual-toggle:focus-visible {
    background: rgba(201,168,76,0.18);
    color: var(--gold-dark);
}

body.light-mode .bilingual-toggle[aria-pressed="true"] {
    background: rgba(201,168,76,0.22);
    color: var(--gold-dark);
}

body.light-mode .bilingual-col-la {
    border-left-color: var(--sapphire);
    color: var(--text-muted);
}

/* ============================================
   MOSAIC STRIPE, BACKGROUND OVERLAY,
   PAGE WRAPPER
   ============================================ */

/* --- Mosaic Background Stripe (Top) --- */
.mosaic-stripe-top {
    width: 100%;
    height: 12px;
    display: flex;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.mosaic-stripe-top .tessera {
    flex: 1;
    min-width: 12px;
    transition: opacity 0.3s;
}

/* --- Background Mosaic Overlay --- */
.mosaic-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(45deg, var(--gold) 25%, transparent 25%),
        linear-gradient(-45deg, var(--ruby) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--emerald) 75%),
        linear-gradient(-45deg, transparent 75%, var(--sapphire) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, 20px 0px;
}

/* --- Page Wrapper --- */
.page-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 12px;
}

/* ============================================
   HERO SECTION (Homepage)
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem 3rem;
    overflow: hidden;
}

/* Dome radial light effect */
.hero-dome {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.2) 0%, rgba(201,168,76,0.08) 30%, rgba(233,69,96,0.03) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* CSS Grid Mosaic Pattern behind hero */
.hero-mosaic-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(20, 1fr);
    gap: 2px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.hero-mosaic-grid .tile {
    border-radius: 1px;
    animation: mosaicPulse 4s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Gold Shimmer Text */
.site-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.35em;
    color: var(--gold);
    background: linear-gradient(
        90deg,
        var(--gold-dark) 0%,
        var(--gold) 20%,
        var(--gold-light) 40%,
        #fff8e7 50%,
        var(--gold-light) 60%,
        var(--gold) 80%,
        var(--gold-dark) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s ease-in-out infinite;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.site-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-quote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(201,168,76,0.3);
    border-bottom: 1px solid rgba(201,168,76,0.3);
    position: relative;
}

.hero-quote::before,
.hero-quote::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
}

.hero-quote::before {
    top: -5px;
    left: 50%;
    margin-left: -4px;
}

.hero-quote::after {
    bottom: -5px;
    left: 50%;
    margin-left: -4px;
}

.hero-quote cite {
    display: block;
    margin-top: 0.8rem;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

/* Scroll indicator */
.scroll-indicator {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator .diamond {
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
}

.scroll-indicator .diamond:nth-child(2) { opacity: 0.6; }
.scroll-indicator .diamond:nth-child(3) { opacity: 0.3; }

/* ============================================
   SITE HEADER (Inner pages)
   ============================================ */

.site-header {
    text-align: center;
    padding: 3rem 2rem 1.5rem;
}

.header-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(
        90deg,
        var(--gold-dark) 0%,
        var(--gold) 20%,
        var(--gold-light) 40%,
        #fff8e7 50%,
        var(--gold-light) 60%,
        var(--gold) 80%,
        var(--gold-dark) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s ease-in-out infinite;
    transition: opacity 0.3s;
}

.header-title:hover {
    opacity: 0.8;
}

/* Mosaic stripe below header */
.header-stripe {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.header-stripe .hs {
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
}

.header-stripe .hs:nth-child(4n+1) { background: var(--gold); opacity: 0.6; }
.header-stripe .hs:nth-child(4n+2) { background: var(--ruby); opacity: 0.4; }
.header-stripe .hs:nth-child(4n+3) { background: var(--emerald); opacity: 0.4; }
.header-stripe .hs:nth-child(4n) { background: var(--sapphire); opacity: 0.5; }

/* ============================================
   NAVIGATION TILES
   ============================================ */

.nav-mosaic {
    position: sticky;
    top: 12px;
    z-index: 999;
    padding: 0;
    display: flex;
    justify-content: center;
    background: rgba(15,15,35,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(201,168,76,0.3);
}

.nav-tiles {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-tile {
    display: block;
    padding: 0.9rem 1.4rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--ivory);
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(201,168,76,0.15);
}

.nav-tile:last-child {
    border-right: none;
}

.nav-tile::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-tile:nth-child(1)::before { background: var(--gold); }
.nav-tile:nth-child(2)::before { background: var(--ruby); }
.nav-tile:nth-child(3)::before { background: var(--emerald); }
.nav-tile:nth-child(4)::before { background: var(--sapphire); }
.nav-tile:nth-child(5)::before { background: var(--gold); }
.nav-tile:nth-child(6)::before { background: var(--ruby); }
.nav-tile:nth-child(7)::before { background: var(--emerald); }

.nav-tile:hover::before {
    transform: scaleX(1);
}

.nav-tile:hover {
    background: rgba(201,168,76,0.08);
    filter: brightness(1.2);
    transform: scale(1.02);
}

.nav-tile.active {
    background: rgba(201,168,76,0.12);
}

.nav-tile.active::before {
    transform: scaleX(1);
}

/* ============================================
   TESSERA DIVIDERS
   ============================================ */

.tessera-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 2.5rem 0;
}

.tessera-divider .sq {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.tessera-divider .sq:nth-child(odd) { opacity: 0.7; }
.tessera-divider .sq:nth-child(3n) { background: var(--ruby); opacity: 0.3; }
.tessera-divider .sq:nth-child(5n) { background: var(--emerald); opacity: 0.3; }
.tessera-divider .sq:nth-child(7n) { background: var(--sapphire); opacity: 0.3; }

/* ============================================
   CONTENT AREA, CARD GRID (Homepage)
   ============================================ */

.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--gold);
    text-align: center;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    background: linear-gradient(
        90deg,
        var(--gold-dark),
        var(--gold),
        var(--gold-light),
        var(--gold)
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 6s ease-in-out infinite;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* Geometric ornamental border for sections */
.section-block {
    position: relative;
    padding: 3rem 0;
}

.section-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 800px);
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--gold) 0px,
        var(--gold) 8px,
        transparent 8px,
        transparent 12px,
        var(--ruby) 12px,
        var(--ruby) 16px,
        transparent 16px,
        transparent 20px,
        var(--emerald) 20px,
        var(--emerald) 24px,
        transparent 24px,
        transparent 28px,
        var(--sapphire) 28px,
        var(--sapphire) 32px,
        transparent 32px,
        transparent 36px
    );
    opacity: 0.5;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.section-card {
    background: rgba(22,33,62,0.6);
    border: 1px solid rgba(201,168,76,0.25);
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.section-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Geometric corner accents on cards */
.section-card::before,
.section-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.4;
    transition: opacity 0.3s, width 0.3s, height 0.3s;
}

.section-card::before {
    top: 8px;
    left: 8px;
    border-width: 2px 0 0 2px;
}

.section-card::after {
    bottom: 8px;
    right: 8px;
    border-width: 0 2px 2px 0;
}

.section-card:hover {
    border-color: rgba(201,168,76,0.5);
    background: rgba(22,33,62,0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,168,76,0.1);
}

.section-card:hover::before,
.section-card:hover::after {
    opacity: 0.8;
    width: 28px;
    height: 28px;
}

/* Card jewel accent stripe */
.section-card .jewel-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.jewel-gold { background: var(--gold); }
.jewel-ruby { background: var(--ruby); }
.jewel-emerald { background: var(--emerald); }
.jewel-sapphire { background: var(--sapphire); }

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(201,168,76,0.3);
}

.card-link:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
    padding-left: 0.3rem;
}

.card-link::after {
    content: '\2666';
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.card-link:hover::after {
    transform: translateX(4px);
}

/* ============================================
   FEATURED SECTION / VIA SACRA (Homepage)
   ============================================ */

.featured-section {
    background: linear-gradient(135deg, rgba(22,33,62,0.8), rgba(15,15,35,0.9));
    border: 1px solid rgba(201,168,76,0.2);
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.featured-section::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(201,168,76,0.12);
    pointer-events: none;
}

.featured-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.featured-desc {
    font-style: italic;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.featured-link {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bg-deep);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.featured-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.3);
    filter: brightness(1.1);
}

/* Station tiles for Via Sacra */
.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 6px;
    max-width: 500px;
    margin: 2rem auto 0;
}

.station-tile {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--ivory);
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.station-tile:nth-child(1) { background: rgba(201,168,76,0.3); }
.station-tile:nth-child(2) { background: rgba(233,69,96,0.3); }
.station-tile:nth-child(3) { background: rgba(45,106,79,0.3); }
.station-tile:nth-child(4) { background: rgba(26,107,138,0.3); }
.station-tile:nth-child(5) { background: rgba(201,168,76,0.25); }
.station-tile:nth-child(6) { background: rgba(233,69,96,0.25); }
.station-tile:nth-child(7) { background: rgba(45,106,79,0.25); }
.station-tile:nth-child(8) { background: rgba(26,107,138,0.25); }
.station-tile:nth-child(9) { background: rgba(201,168,76,0.2); }
.station-tile:nth-child(10) { background: rgba(233,69,96,0.2); }
.station-tile:nth-child(11) { background: rgba(45,106,79,0.2); }
.station-tile:nth-child(12) { background: rgba(26,107,138,0.2); }
.station-tile:nth-child(13) { background: rgba(201,168,76,0.15); }
.station-tile:nth-child(14) { background: rgba(233,69,96,0.15); }

.station-tile:hover {
    filter: brightness(1.5);
    transform: scale(1.08);
    z-index: 2;
}

/* ============================================
   PAGE HERO, CONTENT ARTICLES,
   SECTION DIVIDERS (Inner pages)
   ============================================ */

/* Page title section (from oracao.html) */
.page-title-section {
    text-align: center;
    padding: 3rem 2rem 2rem;
    position: relative;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    background: linear-gradient(
        90deg,
        var(--gold-dark),
        var(--gold),
        var(--gold-light),
        var(--gold)
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 6s ease-in-out infinite;
}

.page-subtitle {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Ornamental geometric border around title */
.title-border-frame {
    display: inline-block;
    padding: 2rem 3rem;
    position: relative;
    margin: 0 auto;
}

.title-border-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(201,168,76,0.3);
    pointer-events: none;
}

.title-border-frame::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(201,168,76,0.15);
    pointer-events: none;
}

/* Corner diamonds on title frame */
.corner-diamond {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: 0.6;
}

.corner-diamond.tl { top: -5px; left: -5px; }
.corner-diamond.tr { top: -5px; right: -5px; }
.corner-diamond.bl { bottom: -5px; left: -5px; }
.corner-diamond.br { bottom: -5px; right: -5px; }

/* Page hero (new utility) */
.page-hero {
    text-align: center;
    padding: 3rem 2rem 1.5rem;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 6s ease-in-out infinite;
}

.page-hero-subtitle {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content articles (new utility) */
.content-article {
    background: rgba(22,33,62,0.6);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.content-article::before,
.content-article::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.3;
}

.content-article::before {
    top: 8px;
    left: 8px;
    border-width: 2px 0 0 2px;
}

.content-article::after {
    bottom: 8px;
    right: 8px;
    border-width: 0 2px 2px 0;
}

.content-article h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.content-article h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.content-article p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-article p:last-child {
    margin-bottom: 0;
}

/* Section divider heading (new utility) */
.section-divider-heading {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--gold);
    text-align: center;
    letter-spacing: 0.15em;
    margin: 2rem 0 1.5rem;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 6s ease-in-out infinite;
}

/* Content image (new utility) */
.content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(201,168,76,0.2);
}

/* ============================================
   PRAYER CARDS (from oracao.html)
   ============================================ */

.prayer-card {
    background: rgba(22,33,62,0.5);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.prayer-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Byzantine manuscript border — inner frame */
.prayer-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201,168,76,0.12);
    pointer-events: none;
}

/* Geometric pattern along top of card */
.prayer-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--gold) 0px,
        var(--gold) 6px,
        transparent 6px,
        transparent 10px,
        var(--ruby) 10px,
        var(--ruby) 14px,
        transparent 14px,
        transparent 18px,
        var(--emerald) 18px,
        var(--emerald) 22px,
        transparent 22px,
        transparent 26px,
        var(--sapphire) 26px,
        var(--sapphire) 30px,
        transparent 30px,
        transparent 34px
    );
    opacity: 0.5;
}

.prayer-card:hover {
    border-color: rgba(201,168,76,0.4);
    box-shadow: 0 6px 25px rgba(201,168,76,0.08);
}

/* Corner accents */
.prayer-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.35;
    transition: opacity 0.3s;
}

.prayer-corner.tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.prayer-corner.tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.prayer-corner.bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.prayer-corner.br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }

.prayer-card:hover .prayer-corner {
    opacity: 0.7;
}

/* Prayer header */
.prayer-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.prayer-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: var(--gold);
    letter-spacing: 0.1em;
    flex: 1;
    min-width: 200px;
}

/* Category tags */
.prayer-tag {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ivory);
    position: relative;
    white-space: nowrap;
    margin-top: 0.3rem;
}

.prayer-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.25;
}

.tag-saudacao {
    border: 1px solid var(--ruby);
    color: var(--ruby);
}

.tag-saudacao::before {
    background: var(--ruby);
    opacity: 0.08;
}

.tag-peticao {
    border: 1px solid var(--emerald);
    color: var(--emerald);
}

.tag-peticao::before {
    background: var(--emerald);
    opacity: 0.08;
}

.tag-trabalho {
    border: 1px solid var(--sapphire);
    color: var(--sapphire);
}

.tag-trabalho::before {
    background: var(--sapphire);
    opacity: 0.08;
}

/* Prayer text */
.prayer-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 2;
    color: var(--ivory-warm);
    max-width: 680px;
}

.prayer-text p {
    margin-bottom: 1rem;
    text-indent: 1.5em;
}

.prayer-text p:first-child {
    text-indent: 0;
}

.prayer-text p:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 2.8em;
    float: left;
    line-height: 0.8;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: var(--gold);
}

.prayer-amen {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201,168,76,0.2);
}

/* Back link */
.back-link-section {
    text-align: center;
    padding: 2rem 0 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(201,168,76,0.3);
    transition: all 0.3s;
}

.back-link:hover {
    background: rgba(201,168,76,0.08);
    border-color: var(--gold);
    transform: translateX(-4px);
}

.back-link::before {
    content: '\2666';
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.back-link:hover::before {
    transform: translateX(-4px);
}

/* ============================================
   LEFT MARGIN MOSAIC (from oracao.html)
   ============================================ */

.margin-mosaic {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 100vh;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 3px 3px;
    overflow: hidden;
    pointer-events: none;
}

.margin-mosaic .mm {
    width: 100%;
    flex: 0 0 auto;
    height: 30px;
    opacity: 0.2;
    transition: opacity 0.5s;
}

.margin-mosaic .mm:nth-child(4n+1) { background: var(--gold); height: 24px; }
.margin-mosaic .mm:nth-child(4n+2) { background: var(--ruby); height: 36px; }
.margin-mosaic .mm:nth-child(4n+3) { background: var(--emerald); height: 18px; }
.margin-mosaic .mm:nth-child(4n) { background: var(--sapphire); height: 30px; }

/* ============================================
   SCRIPTURE / PRAYER BLOCKS (New)
   ============================================ */

.scripture-block {
    background: rgba(22,33,62,0.4);
    border-left: 3px solid var(--sapphire);
    padding: 1.2rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.prayer-block {
    background: rgba(22,33,62,0.4);
    border-left: 3px solid var(--gold);
    padding: 1.2rem 1.5rem;
    margin: 1rem 0;
}

/* ============================================
   BILINGUAL PRAYER BLOCK (PT ⇄ LA)
   ============================================ */

.bilingual-prayer {
    margin: 1.5rem 0;
}

.bilingual-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.bilingual-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(22,33,62,0.5);
    border: 1px solid var(--gold-dark);
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.45rem 0.9rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bilingual-toggle:hover,
.bilingual-toggle:focus-visible {
    background: rgba(201,168,76,0.12);
    border-color: var(--gold);
    color: var(--gold);
    outline: none;
}

.bilingual-toggle[aria-pressed="true"] {
    background: rgba(201,168,76,0.18);
    border-color: var(--gold);
    color: var(--gold-light);
}

.bilingual-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.bilingual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    transition: gap 0.25s ease;
}

.bilingual-prayer.is-bilingual-open .bilingual-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.bilingual-col {
    min-width: 0;
}

.bilingual-col-la {
    border-left: 2px solid var(--sapphire-dark);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
}

.bilingual-prayer:not(.is-bilingual-open) .bilingual-col-la {
    border-left: none;
    padding-left: 0;
}

/* ============================================
   STATION NAVIGATION (New)
   ============================================ */

.station-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201,168,76,0.2);
}

.station-nav-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(201,168,76,0.3);
    transition: all 0.3s;
}

.station-nav-link:hover {
    background: rgba(201,168,76,0.1);
    border-color: var(--gold);
}

/* ============================================
   THEME TOGGLE, BACK TO TOP
   ============================================ */

.theme-toggle {
    position: fixed;
    top: 24px;
    right: 20px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: rgba(15,15,35,0.8);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.theme-toggle:hover {
    background: rgba(201,168,76,0.15);
    border-color: var(--gold);
    transform: rotate(15deg);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1001;
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--void);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-family: var(--font-display);
    transform: rotate(45deg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-light);
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}

.back-to-top .arrow {
    transform: rotate(-45deg);
    line-height: 1;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    position: relative;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 2rem;
}

.footer-mosaic-border {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-mosaic-border .ft {
    width: 10px;
    height: 10px;
    opacity: 0.3;
}

.footer-mosaic-border .ft:nth-child(4n+1) { background: var(--gold); }
.footer-mosaic-border .ft:nth-child(4n+2) { background: var(--ruby); }
.footer-mosaic-border .ft:nth-child(4n+3) { background: var(--emerald); }
.footer-mosaic-border .ft:nth-child(4n) { background: var(--sapphire); }

.footer-inner {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.footer-inner .gold-text {
    color: var(--gold);
}

.footer-sub {
    margin-top: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* ============================================
   ANIMATIONS AND KEYFRAMES
   ============================================ */

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

@keyframes mosaicPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mosaicAssemble {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-content {
    animation: fadeInUp 1.2s ease-out;
}

.section-card.visible {
    animation: mosaicAssemble 0.6s ease-out forwards;
}

.prayer-card.visible {
    animation: mosaicAssemble 0.6s ease-out forwards;
}

/* Staggered card reveal */
.section-card:nth-child(1).visible { animation-delay: 0s; }
.section-card:nth-child(2).visible { animation-delay: 0.1s; }
.section-card:nth-child(3).visible { animation-delay: 0.2s; }
.section-card:nth-child(4).visible { animation-delay: 0.3s; }
.section-card:nth-child(5).visible { animation-delay: 0.4s; }
.section-card:nth-child(6).visible { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media screen and (max-width: 768px) {
    .nav-tile {
        padding: 0.7rem 0.9rem;
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

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

    .hero {
        min-height: 85vh;
        padding: 3rem 1.5rem;
    }

    .hero-mosaic-grid {
        width: 350px;
        height: 350px;
    }

    .featured-section {
        padding: 2rem 1.5rem;
    }

    .station-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .content-area {
        padding: 0 1.2rem 3rem;
        padding-left: 1.2rem;
    }

    .margin-mosaic {
        display: none;
    }

    .prayer-card {
        padding: 2rem 1.5rem 1.5rem;
    }

    .prayer-text {
        font-size: 1rem;
    }

    .title-border-frame {
        padding: 1.5rem 2rem;
    }

    .theme-toggle {
        top: 18px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    .content-article {
        padding: 1.5rem;
    }

    .station-nav {
        flex-direction: column;
    }

    .bilingual-prayer.is-bilingual-open .bilingual-grid {
        gap: 0.75rem;
    }

    .bilingual-prayer.is-bilingual-open .bilingual-col {
        font-size: 0.92rem;
    }

    .bilingual-prayer.is-bilingual-open .bilingual-col-la {
        padding-left: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-tiles {
        justify-content: center;
    }

    .nav-tile {
        padding: 0.6rem 0.7rem;
        font-size: 0.7rem;
        border-right: none;
        border-bottom: 1px solid rgba(201,168,76,0.1);
    }

    .site-title {
        letter-spacing: 0.2em;
    }

    .station-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }

    .prayer-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .prayer-text p:first-child::first-letter {
        font-size: 2.2em;
    }

    .title-border-frame {
        padding: 1rem 1.2rem;
    }

    .bilingual-prayer.is-bilingual-open .bilingual-col {
        font-size: 0.85rem;
    }

    .bilingual-toggle {
        font-size: 0.78rem;
        padding: 0.4rem 0.7rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

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

/* =============================================
   SKIP NAVIGATION
   ============================================= */
.skip-nav {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--gold);
    color: var(--bg-deep);
    font-family: 'Marcellus', serif;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-nav:focus {
    left: 0;
}

/* =============================================
   FOOTER NAVIGATION
   ============================================= */
.footer-nav {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: var(--ivory);
    text-decoration: none;
    font-family: 'Marcellus', serif;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

body.light-mode .footer-links a {
    color: var(--lm-text);
}

body.light-mode .footer-links a:hover {
    color: var(--lm-gold);
}

/* =============================================
   BREADCRUMB NAVIGATION
   ============================================= */
.breadcrumb {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.breadcrumb li::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--gold);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb li:last-child {
    color: var(--ivory);
}

body.light-mode .breadcrumb a {
    color: var(--lm-text-muted);
}

body.light-mode .breadcrumb a:hover {
    color: var(--lm-gold);
}

body.light-mode .breadcrumb li:last-child {
    color: var(--lm-text);
}

/* =============================================
   ADDITIONAL PRAYER TAGS
   ============================================= */
.tag-familia {
    border-color: var(--gold);
    color: var(--gold);
}

.tag-protecao {
    border-color: var(--emerald);
    color: var(--emerald);
}

/* =============================================
   FOCUS VISIBLE OUTLINES
   ============================================= */
.nav-tile:focus-visible,
.card-link:focus-visible,
.station-tile:focus-visible,
.back-to-top:focus-visible,
.theme-toggle:focus-visible,
.station-nav-link:focus-visible,
.footer-links a:focus-visible,
.breadcrumb a:focus-visible,
.skip-nav:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* =============================================
   LITURGICAL CALENDAR BANNER
   ============================================= */
.liturgical-banner {
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(22, 33, 62, 0.8);
    border-left: 4px solid var(--gold);
    border-radius: 0 4px 4px 0;
    font-family: 'Crimson Pro', serif;
    font-size: 0.95rem;
    color: var(--ivory);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.liturgical-banner.rank-solenidade {
    border-left-color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}

.liturgical-banner.rank-festa {
    border-left-color: var(--ruby);
}

.liturgical-banner.rank-memorial {
    border-left-color: var(--emerald);
}

.liturgical-banner.rank-dia_especial {
    border-left-color: var(--sapphire);
}

.liturgical-banner.highlight {
    border-left-width: 6px;
    background: rgba(201, 168, 76, 0.15);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
}

.liturgical-banner .banner-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.liturgical-banner .banner-text {
    flex: 1;
}

.liturgical-banner .banner-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.15rem;
}

.liturgical-banner .banner-name {
    color: var(--gold);
    font-weight: 600;
}

body.light-mode .liturgical-banner {
    background: rgba(240, 230, 211, 0.5);
    border-left-color: var(--lm-gold);
}

body.light-mode .liturgical-banner .banner-name {
    color: var(--lm-gold);
}

/* =============================================
   PRAYER OF THE DAY
   ============================================= */
.prayer-of-the-day {
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 1.25rem 1.5rem;
    background: rgba(22, 33, 62, 0.7);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    text-align: center;
    animation: potdPulse 3s ease-in-out infinite;
}

@keyframes potdPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(201, 168, 76, 0.1); }
    50% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.2); }
}

.potd-label {
    font-family: 'Marcellus', serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin: 0 0 0.5rem;
}

.potd-link {
    text-decoration: none;
    display: block;
}

.potd-title {
    font-family: 'Marcellus', serif;
    font-size: 1.1rem;
    color: var(--ivory);
    margin: 0 0 0.3rem;
}

.potd-desc {
    font-family: 'Crimson Pro', serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.potd-link:hover .potd-title {
    color: var(--gold);
}

body.light-mode .prayer-of-the-day {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(139, 119, 42, 0.3);
}

body.light-mode .potd-title {
    color: var(--lm-text);
}

body.light-mode .potd-link:hover .potd-title {
    color: var(--lm-gold);
}

/* =============================================
   SOCIAL SHARE BUTTONS
   ============================================= */
.social-share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.social-share-btn {
    background: none;
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
    font-family: 'Crimson Pro', serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.social-share-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.social-share-btn.share-whatsapp:hover {
    color: #25D366;
    border-color: #25D366;
}

.social-share-btn.share-twitter:hover {
    color: #1DA1F2;
    border-color: #1DA1F2;
}

.social-share-btn.share-email:hover {
    color: var(--ivory);
    border-color: var(--ivory);
}

.social-share-btn.share-native:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.social-share-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

body.light-mode .social-share-btn {
    border-color: rgba(139, 119, 42, 0.2);
    color: var(--lm-text-muted);
}

body.light-mode .social-share-btn:hover {
    color: var(--lm-gold);
    border-color: var(--lm-gold);
}

/* =============================================
   MEDITATION MODE / PRAYER TIMER
   ============================================= */
.meditation-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-family: 'Marcellus', serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 1rem 0;
}

.meditation-trigger:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
}

.meditation-trigger:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Meditation mode overlay */
body.meditation-mode .mosaic-stripe-top,
body.meditation-mode .mosaic-bg-overlay,
body.meditation-mode .theme-toggle,
body.meditation-mode .nav-mosaic,
body.meditation-mode .breadcrumb,
body.meditation-mode .back-to-top,
body.meditation-mode .footer-nav,
body.meditation-mode .footer-mosaic-border,
body.meditation-mode .social-share-buttons,
body.meditation-mode .skip-nav,
body.meditation-mode .lang-switcher,
body.meditation-mode .page-hero,
body.meditation-mode .tessera-divider,
body.meditation-mode .section-divider-heading {
    display: none !important;
}

body.meditation-mode {
    background: var(--bg-deep) !important;
}

body.meditation-mode .page-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 60px;
}

body.meditation-mode .site-header {
    text-align: center;
    margin-bottom: 2rem;
}

body.meditation-mode .content-article {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

body.meditation-mode .content-article.meditation-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

body.meditation-mode .content-article:not(.meditation-visible) {
    display: none;
}

/* Meditation controls bar */
.meditation-controls {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.meditation-controls button {
    background: none;
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold);
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Marcellus', serif;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.meditation-controls button:hover {
    background: rgba(201, 168, 76, 0.15);
}

.meditation-controls button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.meditation-controls button.active {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
}

.meditation-progress {
    position: fixed;
    top: 48px;
    left: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s ease;
    z-index: 9999;
}

.meditation-counter {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'Crimson Pro', serif;
}

/* Responsive */
@media (max-width: 768px) {
    .meditation-controls {
        gap: 0.5rem;
        padding: 0.4rem 0.5rem;
    }

    .meditation-controls button {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    .social-share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .liturgical-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .prayer-of-the-day {
        margin: 1rem;
    }
}

/* =============================================
   LANGUAGE SWITCHER
   ============================================= */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.4rem 0;
    margin-top: 0.25rem;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Marcellus', serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.lang-btn.active {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.lang-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

body.light-mode .lang-btn {
    border-color: rgba(139, 119, 42, 0.2);
    color: var(--lm-text-muted);
}

body.light-mode .lang-btn:hover,
body.light-mode .lang-btn.active {
    color: var(--lm-gold);
    border-color: var(--lm-gold);
}

body.light-mode .lang-btn.active {
    background: rgba(139, 119, 42, 0.15);
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    /* Reset backgrounds and colors */
    body, .page-wrapper {
        background: white !important;
        color: black !important;
    }

    /* Hide decorative and interactive elements */
    .mosaic-stripe-top,
    .mosaic-bg-overlay,
    .theme-toggle,
    .nav-mosaic,
    .back-to-top,
    .footer-mosaic-border,
    .tessera-divider,
    .search-container,
    .social-share-buttons,
    .prayer-timer-controls,
    .meditation-controls,
    .meditation-trigger,
    .meditation-progress,
    .liturgical-banner,
    .prayer-of-the-day,
    .skip-nav,
    .lang-switcher,
    .breadcrumb {
        display: none !important;
    }

    /* Clean up content areas */
    .content-area {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-wrapper {
        min-height: auto !important;
    }

    /* Typography */
    .page-hero-title {
        color: black !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: black !important;
        animation: none !important;
        font-size: 24pt !important;
    }

    .page-hero-subtitle {
        color: #333 !important;
    }

    .section-divider-heading {
        color: black !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: black !important;
        animation: none !important;
        border-bottom: 1px solid #ccc;
        padding-bottom: 4pt;
    }

    /* Content articles */
    .content-article {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
        margin-bottom: 12pt;
        padding: 12pt !important;
    }

    .content-article::before,
    .content-article::after {
        display: none !important;
    }

    /* Scripture blocks */
    .scripture-block {
        border-left: 2px solid #666 !important;
        background: #f5f5f5 !important;
        break-inside: avoid;
    }

    /* Prayer cards */
    .prayer-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .prayer-corner {
        display: none !important;
    }

    /* Links */
    a {
        color: black !important;
        text-decoration: underline !important;
    }

    /* Footer */
    .site-footer {
        border-top: 1px solid #ccc;
        margin-top: 24pt;
    }

    .footer-nav {
        display: none !important;
    }

    .footer-inner {
        color: #333 !important;
    }

    .gold-text {
        color: black !important;
    }

    /* Header */
    .site-header {
        border-bottom: 1px solid #ccc;
        margin-bottom: 12pt;
    }

    .header-title {
        color: black !important;
        font-size: 18pt !important;
    }

    /* Page breaks */
    h2, h3 {
        break-after: avoid;
    }
}
