/* ==========================================================================
   Paróquia Cristo Redentor — public site
   ========================================================================== */

:root {
  --ink: #15123d;
  --ink-2: #3d3a66;
  --ink-3: #5b5880;
  --paper: #fffaf1;
  --paper-2: #fff3df;
  --white: #ffffff;
  --gold: #9a6510;
  --gold-2: #7a4f0c;
  --gold-soft: #f6ead0;
  --sun: #f2c14e;
  --sun-soft: #fcefcc;
  --coral: #d63031;
  --coral-soft: #ffe1dc;
  --mint: #12c29a;
  --mint-soft: #d4f7ec;
  --grape: #7a4dff;
  --grape-soft: #ebe3ff;
  --line: rgba(21, 18, 61, .16);
  --focus: #1f5fd6;
  --focus-ring: #ffffff;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(21, 18, 61, .06), 0 12px 32px -12px rgba(21, 18, 61, .18);
  --pop: 4px 4px 0 var(--ink);
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

/* Colored scrollbar */
html { scrollbar-color: var(--gold) var(--paper-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--sun), var(--gold)); border-radius: 999px; border: 3px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--gold), var(--gold-2)); }
::-webkit-scrollbar-corner { background: var(--paper-2); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 6px var(--focus-ring); border-radius: 8px; }
.ticker, .band-gold, .band-ink, .site-footer, .slider, .live-card, .offline-card { --focus: #ffd35c; --focus-ring: #15123d; }
main:focus, .site-footer:focus, .nav:focus { outline: none; box-shadow: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  font: 700 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  box-shadow: var(--pop); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-sun { background: var(--sun); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { box-shadow: none; transform: none; background: rgba(255,255,255,.14); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn-light { border-color: #fff; color: #fff; background: transparent; box-shadow: 4px 4px 0 rgba(255,255,255,.35); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font: 700 0.8125rem/1.2 var(--font-body);
  background: var(--gold-soft); color: var(--gold-2); text-decoration: none; white-space: nowrap;
}
.chip-gold { background: var(--gold-soft); color: var(--gold-2); }
.chip-sun { background: var(--sun-soft); color: #8a5a00; }
.chip-coral { background: var(--coral-soft); color: #b3261e; }
.chip-mint { background: var(--mint-soft); color: #03725a; }
.chip-grape { background: var(--grape-soft); color: #5327d8; }
.chip-ink { background: #e8e7f0; color: var(--ink-2); }
.chip-cat { --c: var(--gold); align-self: flex-start; background: color-mix(in srgb, var(--c) 16%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font: 800 0.8125rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.kicker .icon { width: 14px; height: 14px; }

/* Hand-drawn underline on highlighted words */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .36em; z-index: -1;
  background: var(--sun); border-radius: 6px; transform: rotate(-1.5deg);
}
.hl-coral::after { background: var(--coral); opacity: .55; }
.hl-mint::after { background: var(--mint); opacity: .5; }

/* ---------- Notice ticker ---------- */
.ticker {
  background: var(--ink); color: #fff; overflow: hidden; position: relative;
  font: 600 0.875rem/1.2 var(--font-body); min-height: 40px; display: flex; align-items: center;
}
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; white-space: nowrap; }
.ticker-item::after { content: ""; width: 6px; height: 6px; margin-left: 28px; background: var(--sun); border-radius: 1px; transform: rotate(45deg); }
.ticker-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--sun); flex: none; }
.ticker-icon .icon { width: 13px; height: 13px; vertical-align: 0; }
.ticker-text { color: inherit; text-decoration: none; }
a.ticker-text:hover { color: var(--sun); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 241, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(21,18,61,.35); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 52px; height: 52px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.06); }
.brand-logo { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.05; min-width: 0; }
.brand-small { font: 700 0.6562rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.brand-name {
  font: 800 1.4375rem/1.05 var(--font-display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(100deg, var(--gold-2), #b8862b 55%, #d9a93f); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav { margin-left: auto; align-self: stretch; }
.nav-list { display: flex; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  position: relative; display: flex; align-items: center; height: 100%; padding: 0 12px;
  font: 600 0.9375rem/1 var(--font-body); text-decoration: none; color: var(--ink-2); transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(.5); }
.nav-link.is-active { color: var(--gold-2); }
.nav-link.is-active::after { transform: none; }
.nav-link.is-highlight { color: var(--coral); }
.nav-link.is-highlight::after { background: var(--coral); }
.has-sub > .nav-link { padding-right: 2px; }
.has-sub > .nav-link::after { right: 2px; }
.nav-caret {
  display: grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; padding: 0;
  border: 0; border-radius: 8px; background: none; color: var(--ink-3); transition: background .2s, color .2s;
}
.nav-caret .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-caret:hover { background: var(--gold-soft); color: var(--gold-2); }
.nav-item:hover > .nav-caret .icon, .nav-item.is-open > .nav-caret .icon { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px; margin: 0; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 40px -16px rgba(21,18,61,.28);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease);
}
.nav-item:hover > .submenu, .nav-item:focus-within > .submenu, .nav-item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); }
.submenu a:hover { background: var(--paper-2); color: var(--ink); }
.submenu a.is-active { background: var(--gold-soft); color: var(--gold-2); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--ink); background: var(--white); text-decoration: none; transition: transform .2s var(--ease), background .2s;
}
.icon-btn:hover { transform: rotate(-8deg) scale(1.06); background: var(--sun); }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--white); font: 800 0.875rem/1 var(--font-body); text-decoration: none; letter-spacing: .02em;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: none; }
.live-pill.is-live { background: var(--coral); color: #fff; box-shadow: var(--pop); }
.live-pill.is-live .live-dot { background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.9); } 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.menu-toggle { display: none; }

/* Mobile drawer: off-canvas panel from the right */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 79; background: rgba(21,18,61,.5); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(380px, 88vw);
  background: var(--white); color: var(--ink); box-shadow: -20px 0 60px rgba(21,18,61,.25);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); z-index: 1;
}
.drawer-top .brand-mark { width: 40px; height: 40px; }
.drawer-top .brand-name { font-size: 1.1875rem; }
.drawer .icon-btn { width: 40px; height: 40px; border-width: 1px; border-color: var(--line); }
.drawer-search { display: flex; margin: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.drawer-search:focus-within { border-color: var(--gold); }
.drawer-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px; font: 500 0.9375rem var(--font-body); color: var(--ink); outline: none; }
.drawer-search button { width: 46px; border: 0; background: var(--gold); color: #fff; display: grid; place-items: center; }
.drawer-nav { list-style: none; margin: 0; padding: 0 12px; }
.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-row { display: flex; align-items: center; }
.drawer-nav a {
  flex: 1; display: block; padding: 14px 12px; border-radius: 10px; text-decoration: none;
  font: 600 1rem/1.3 var(--font-body); color: var(--ink-2);
}
.drawer-nav a:hover { color: var(--ink); background: var(--paper); }
.drawer-nav a.is-active { color: var(--gold-2); box-shadow: inset 3px 0 0 var(--gold); border-radius: 0 10px 10px 0; background: var(--gold-soft); }
.drawer-nav a.is-highlight { color: var(--coral); }
.drawer-caret {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink-3);
}
.drawer-caret .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.drawer-caret[aria-expanded="true"] { background: var(--gold-soft); color: var(--gold-2); border-color: transparent; }
.drawer-caret[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer-sub { list-style: none; margin: 0 0 10px; padding: 0 0 0 12px; display: none; }
.has-sub.is-open > .drawer-sub { display: block; }
.drawer-sub a { padding: 10px 12px; font-size: 0.9375rem; font-weight: 500; color: var(--ink-3); }
.drawer-foot { margin-top: auto; padding: 24px 20px; border-top: 1px solid var(--line); }
.drawer-foot .social a { width: 42px; height: 42px; border-width: 1px; border-color: var(--line); color: var(--ink-2); }

/* Search overlay */
.search-panel {
  position: fixed; inset: 0; z-index: 90; background: rgba(21,18,61,.6); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding: 14vh 20px 20px;
  opacity: 0; visibility: hidden; transition: .2s;
}
.search-panel.is-open { opacity: 1; visibility: visible; }
.search-box { width: 100%; max-width: 680px; display: flex; gap: 10px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 8px; box-shadow: var(--pop); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 1.25rem var(--font-body); padding: 0 16px; outline: none; color: var(--ink); }

/* ---------- Hero slider ---------- */
.hero { padding: 20px 0 0; }
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: var(--ink); isolation: isolate; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; position: relative; min-height: clamp(460px, 66vh, 640px);
  display: flex; align-items: flex-end; color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-media, .slide-media img, .slide-media picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide-media img { object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.slide.is-active .slide-media img { transform: scale(1); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.theme-gold::before { background: linear-gradient(100deg, rgba(110,72,12,.95) 0%, rgba(154,101,16,.72) 45%, rgba(200,150,46,.08) 100%); }
.theme-sunset::before { background: linear-gradient(100deg, rgba(178,34,40,.95) 0%, rgba(196,74,26,.78) 45%, rgba(255,194,51,.1) 100%); }
.theme-mint::before { background: linear-gradient(100deg, rgba(6,120,96,.95) 0%, rgba(18,194,154,.7) 45%, rgba(18,194,154,.06) 100%); }
.theme-grape::before { background: linear-gradient(100deg, rgba(76,36,190,.95) 0%, rgba(122,77,255,.7) 45%, rgba(122,77,255,.08) 100%); }
.theme-night::before { background: linear-gradient(100deg, rgba(21,18,61,.96) 0%, rgba(21,18,61,.7) 45%, rgba(21,18,61,.12) 100%); }
.slide.no-image.theme-gold { background: radial-gradient(circle at 85% 20%, #e8c35c 0, transparent 42%), linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #b8862b); }
.slide.no-image.theme-sunset { background: radial-gradient(circle at 85% 20%, #e8743b 0, transparent 45%), #b8262c; }
.slide.no-image.theme-mint { background: radial-gradient(circle at 85% 20%, #139a7b 0, transparent 45%), #067860; }
.slide.no-image.theme-grape { background: radial-gradient(circle at 85% 20%, #7a4dff 0, transparent 45%), #5a2fe0; }
.slide.no-image.theme-night { background: radial-gradient(circle at 85% 20%, #3c3790 0, transparent 45%), var(--ink); }
.slide.no-image::before { display: none; }
.slide-deco { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: min(46vw, 560px); z-index: 1; color: rgba(255,255,255,.14); pointer-events: none; }
.slide-deco svg { width: 100%; height: auto; }
.slide-content { position: relative; z-index: 2; padding: clamp(28px, 5vw, 64px); max-width: 760px; }
.slide-kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 999px; font: 800 0.8125rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; transform: rotate(-2deg); }
.slide-title { font-size: clamp(2.375rem, 6.4vw, 5rem); margin: 0 0 16px; text-wrap: balance; }
.slide-text { font-size: clamp(1.0625rem, 1.7vw, 1.3125rem); max-width: 560px; margin-bottom: 26px; }
.slide.is-active .slide-kicker, .slide.is-active .slide-title, .slide.is-active .slide-text, .slide.is-active .btn { animation: rise .8s var(--ease) both; }
.slide.is-active .slide-title { animation-delay: .08s; }
.slide.is-active .slide-text { animation-delay: .16s; }
.slide.is-active .btn { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.slider-controls { position: absolute; z-index: 3; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; }
.slider-dots { display: flex; gap: 6px; }
.slider-dot { width: 12px; height: 12px; border-radius: 999px; border: 2px solid #fff; background: transparent; padding: 0; transition: width .3s var(--ease), background .3s; }
.slider-dot.is-active { width: 34px; background: #fff; }
.slider-arrow { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.slider-arrow:hover { background: #fff; color: var(--ink); }
.slider-progress { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--sun); z-index: 3; width: 0; }
.slider.is-playing .slider-progress { animation: progress var(--slide-time, 7s) linear; }
@keyframes progress { to { width: 100%; } }

/* ---------- Live strip ---------- */
.live-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; border: 2px solid var(--ink); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--ink); color: #fff; box-shadow: 8px 8px 0 var(--coral);
}
.live-card .player { aspect-ratio: 16 / 9; background: #000; }
.live-card .player iframe { width: 100%; height: 100%; border: 0; }
.live-info { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--coral); color: #fff; padding: 8px 14px; border-radius: 999px; font: 800 0.8125rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.live-badge .live-dot { background: #fff; animation: pulse 1.4s infinite; }
.live-info h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); margin: 0; }
.live-info p { color: rgba(255,255,255,.85); margin: 0; }

.next-live {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); padding: 18px 22px; box-shadow: var(--pop);
}
.next-live-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.next-live-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); flex: none; }
.next-live-icon .icon { width: 26px; height: 26px; }
.next-live small { display: block; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-size: 0.75rem; }
.next-live strong { font: 800 1.25rem/1.2 var(--font-display); }
.countdown { display: flex; gap: 8px; }
.countdown span { min-width: 58px; text-align: center; background: var(--ink); color: #fff; border-radius: 14px; padding: 8px 6px; font: 800 1.375rem/1 var(--font-display); }
.countdown small { display: block; font: 700 0.625rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; color: rgba(255,255,255,.85); }

/* ---------- Section headings ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-title { font-size: clamp(2.125rem, 5vw, 3.75rem); margin: 0; text-wrap: balance; }
.section-sub { color: var(--ink-2); max-width: 560px; margin: 12px 0 0; font-size: 1.125rem; }

/* ---------- Welcome / intro ---------- */
.welcome { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.welcome-title { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.welcome-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.blob { position: absolute; border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; border: 2px solid var(--ink); }
.blob-1 { inset: 6% 10% 14% 4%; background: var(--ink); animation: morph 12s ease-in-out infinite; }
.blob-2 { width: 34%; height: 34%; right: 2%; top: 2%; background: var(--sun); animation: morph 9s ease-in-out infinite reverse; }
.blob-3 { width: 26%; height: 26%; left: 0; bottom: 4%; background: var(--coral); animation: morph 10s ease-in-out infinite; }
.welcome-art .figure { position: absolute; left: 12%; top: 11%; width: 70%; height: 70%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes morph { 50% { border-radius: 58% 42% 38% 62% / 55% 60% 40% 45%; transform: rotate(6deg); } }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.quick-link {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; border: 2px solid var(--ink);
  background: var(--white); text-decoration: none; font-weight: 700; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.quick-link:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.quick-link .ql-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.quick-link .ql-icon .icon { width: 22px; height: 22px; }

/* ---------- Schedule ---------- */
.band-gold { background: radial-gradient(circle at 90% 0%, rgba(232,195,92,.22), transparent 45%), linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #8f5d0e); color: #fff; }
.band-gold .section-sub { color: #fff; }
.band-gold .kicker { color: #fff; }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .section-sub { color: rgba(255,255,255,.75); }
.band-ink .kicker { color: var(--sun); }
.band-sun { background: var(--sun); }
.wave-top { position: absolute; left: 0; right: 0; top: -1px; height: 40px; color: var(--paper); }
.wave-top svg { width: 100%; height: 100%; display: block; }

.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; padding: 12px 10px;
  border-radius: 18px; border: 2px solid rgba(255,255,255,.45); background: transparent; color: inherit; font-weight: 700;
  transition: .2s var(--ease);
}
.day-tab small { font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.day-tab strong { font: 800 1.375rem/1 var(--font-display); }
.day-tab:hover { border-color: #fff; }
.day-tab.is-active { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.day-panel[hidden] { display: none; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.slot {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.slot-time { font: 800 1.875rem/1 var(--font-display); letter-spacing: -.03em; min-width: 84px; }
.slot-info { min-width: 0; }
.slot-info strong { display: block; font-size: 1rem; }
.slot-info small { display: block; color: var(--ink-3); font-size: 0.8125rem; line-height: 1.35; }
.slot.is-next { background: var(--sun); }
.slot.is-next .slot-info small { color: var(--ink-2); }
.slot.is-past { background: #ecebf2; box-shadow: none; border-style: dashed; }
.slot-info .slot-flag { font-weight: 800; color: var(--ink); margin-top: 4px; }
.slots-empty { padding: 22px; border-radius: 20px; border: 2px dashed rgba(255,255,255,.7); text-align: center; }

.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.week-day { border: 2px solid var(--ink); border-radius: 22px; background: var(--white); overflow: hidden; }
.week-day.is-today { box-shadow: 6px 6px 0 var(--gold); }
.week-day h2 { margin: 0; padding: 14px 16px; font-size: 1.125rem; background: var(--paper-2); border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.week-day.is-today h2 { background: var(--gold); color: #fff; }
.week-day ul { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; }
.week-day li { padding: 10px 12px; border-radius: 14px; background: var(--paper); }
.week-day li strong { font: 800 1.25rem/1 var(--font-display); display: block; margin-bottom: 6px; }
.week-day li small { display: block; color: var(--ink-3); font-size: 0.8125rem; line-height: 1.35; margin-top: 4px; }
.week-day .empty { color: var(--ink-3); font-size: 0.875rem; padding: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* ---------- Cards: news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.news-side { display: grid; gap: 16px; align-content: start; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 7px 7px 0 var(--ink); }
.card-media { aspect-ratio: 16 / 10; background: var(--gold-soft); overflow: hidden; position: relative; border-bottom: 2px solid var(--ink); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.card-media .placeholder svg { width: 38%; height: 38%; opacity: .45; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 1.375rem; margin: 0; line-height: 1.15; }
.card-text { color: var(--ink-2); font-size: 0.9375rem; margin: 0; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; margin-top: auto; }
.card-feature .card-media { aspect-ratio: 16 / 11; }
.card-feature .card-title { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.card-row { flex-direction: row; }
.card-row .card-media { aspect-ratio: auto; width: 38%; flex: none; border-bottom: 0; border-right: 2px solid var(--ink); }
.card-row .card-title { font-size: 1.125rem; }
.card-row .card-body { padding: 14px 16px; }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 14px; }
.event-list.is-past .event-row { background: #f3f2f7; border-style: dashed; }
.event-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 16px; text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.event-row:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.date-tile { width: 76px; border-radius: 18px; overflow: hidden; text-align: center; border: 2px solid var(--ink); background: var(--white); flex: none; }
.date-tile small { display: block; background: var(--coral); color: #fff; font: 800 0.75rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 0; }
.date-tile strong { display: block; font: 800 2rem/1 var(--font-display); padding: 8px 0 4px; }
.date-tile span { display: block; font-size: 0.75rem; font-weight: 700; color: var(--ink-3); padding-bottom: 6px; }
.event-row h3 { font-size: 1.3125rem; margin: 0 0 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-3); font-size: 0.875rem; font-weight: 600; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-go { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; transition: .2s; }
.event-row:hover .event-go { background: var(--sun); transform: rotate(-45deg); }
.band-ink .event-row { color: var(--ink); }

/* ---------- Donation & social ---------- */
.donate {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg); border: 2px solid var(--ink); background: var(--sun); box-shadow: 8px 8px 0 var(--ink); position: relative; overflow: hidden;
}
.donate::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%; background: rgba(255,255,255,.35); }
.donate h2 { font-size: clamp(2rem, 4.4vw, 3.375rem); }
.pix-box { position: relative; z-index: 1; background: var(--white); border: 2px solid var(--ink); border-radius: 22px; padding: 20px; }
.pix-box small { display: block; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 0.75rem; color: var(--ink-3); margin-bottom: 6px; }
.pix-key { font: 800 clamp(1.0625rem, 2vw, 1.375rem)/1.25 var(--font-display); word-break: break-all; margin-bottom: 14px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 2px solid currentColor; text-decoration: none; transition: transform .2s var(--ease), background .2s, color .2s; }
.social a:hover { transform: translateY(-3px) rotate(-8deg); background: var(--sun); color: var(--ink); border-color: var(--ink); }
.social-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.social-tile { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 20px; border: 2px solid var(--ink); text-decoration: none; font: 800 1.125rem/1 var(--font-display); transition: transform .2s var(--ease), box-shadow .2s; }
.social-tile:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: var(--pop); }
.social-tile .st-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: rgba(255,255,255,.55); }
.social-tile .icon { width: 24px; height: 24px; }
.st-instagram { background: linear-gradient(135deg, #c1356b, #8a2fb8 55%, #5b35d6); color: #fff; }
.st-facebook { background: #1463d0; color: #fff; }
.st-youtube { background: var(--coral); color: #fff; }
.st-tiktok { background: var(--ink); color: #fff; }
.st-twitter { background: #0f0f14; color: #fff; }
.st-spotify { background: var(--mint); }
.st-whatsapp { background: #25d366; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.625rem, 7vw, 5.5rem); margin: 0; text-wrap: balance; }
.page-hero .lead { font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--ink-2); max-width: 680px; margin: 16px 0 0; }
.page-hero-deco { position: absolute; right: -60px; top: -40px; width: 300px; height: 300px; border-radius: 50%; background: var(--sun); opacity: .5; z-index: -1; filter: blur(2px); }
.page-hero-deco.two { right: 160px; top: 120px; width: 120px; height: 120px; background: var(--coral); opacity: .35; }
.breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.875rem; font-weight: 600; color: var(--ink-3); margin-bottom: 16px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.cover { border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); margin-bottom: clamp(28px, 4vw, 48px); background: var(--gold-soft); }
.cover img { width: 100%; max-height: 560px; object-fit: cover; }

/* ---------- Article body ---------- */
.prose { font-size: 1.1875rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.6em 0 .5em; }
.prose h2 { font-size: 2.125rem; }
.prose h3 { font-size: 1.625rem; }
.prose a { color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose img { border-radius: 18px; border: 2px solid var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 20px 24px; border-left: 6px solid var(--sun); background: var(--white); border-radius: 0 18px 18px 0; font: 600 1.375rem/1.45 var(--font-display); color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose iframe, .prose .ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 18px; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose pre, .prose .ql-code-block-container { background: var(--ink); color: #fff; padding: 16px; border-radius: 14px; overflow-x: auto; font-size: 0.9375rem; }
.prose hr { border: 0; height: 2px; background: var(--line); margin: 2em 0; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; color: var(--ink-3); font-weight: 600; font-size: 0.9375rem; }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 2px dashed var(--line); }
.share strong { margin-right: 6px; }
.preview-bar { background: var(--sun); border-bottom: 2px solid var(--ink); padding: 10px 0; font-weight: 700; text-align: center; }

/* ---------- Filters & pagination ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { padding: 10px 18px; border-radius: 999px; border: 2px solid var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9375rem; background: var(--white); transition: .2s; }
.filter:hover { background: var(--sun-soft); }
.filter.is-active { background: var(--ink); color: #fff; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 46px; height: 46px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--ink); text-decoration: none; font-weight: 700; background: var(--white); }
.pagination .is-current { background: var(--ink); color: #fff; }
.pagination a:hover { background: var(--sun); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: 8px 8px 0 var(--ink); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field input, .field textarea, .field select {
  width: 100%; border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; font: 500 1rem var(--font-body);
  background: var(--paper); color: var(--ink); transition: box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; box-shadow: 4px 4px 0 var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; border: 2px solid var(--ink); margin-bottom: 20px; font-weight: 600; }
.alert-error { background: var(--coral-soft); }
.alert-success { background: var(--mint-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--white); border: 2px solid var(--ink); }
.info-item .ii-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.info-item strong { display: block; }
.info-item span, .info-item a { color: var(--ink-2); white-space: pre-line; }

/* ---------- Live page ---------- */
.player-big { border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--coral); background: #000; aspect-ratio: 16 / 9; }
.player-big iframe { width: 100%; height: 100%; border: 0; }
.offline-card { border-radius: var(--radius-lg); border: 2px solid var(--ink); background: var(--ink); color: #fff; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; box-shadow: 8px 8px 0 var(--gold); }
.offline-icon { width: 96px; height: 96px; border-radius: 28px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--sun); }
.offline-icon .icon { width: 48px; height: 48px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.video-card .frame { aspect-ratio: 16 / 9; background: var(--ink); position: relative; }
.video-card .frame iframe { width: 100%; height: 100%; border: 0; }
.video-card .frame button { position: absolute; inset: 0; border: 0; background: linear-gradient(135deg, var(--gold), var(--grape)); color: #fff; display: grid; place-items: center; }
.video-card .frame button .play { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .2s var(--ease); }
.video-card .frame button:hover .play { transform: scale(1.1); }
.video-card .body { padding: 14px 16px; }
.video-card h3 { font-size: 1.125rem; margin: 0 0 4px; }
.video-card small { color: var(--ink-3); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: clamp(56px, 7vw, 96px) 0 28px; margin-top: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.footer-big { font: 800 clamp(2.75rem, 9vw, 8rem)/.9 var(--font-display); letter-spacing: -.04em; color: #fff; margin: 0 0 48px; }
.footer-big span { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 1rem; font-family: var(--font-body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-emblem { width: 72px; height: 72px; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer .social a { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.875rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; white-space: pre-line; }
.footer-contact .icon { box-sizing: content-box; width: 16px; height: 16px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--sun); }
.footer-contact li > span, .footer-contact li > a { padding-top: 6px; }
.footer-contact li.no-icon { padding-left: 42px; }

/* ---------- Empty & error ---------- */
.empty-state { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--ink-3); }
.empty-state .icon { width: 44px; height: 44px; margin-bottom: 10px; color: var(--gold); }
.error-page { text-align: center; padding: clamp(60px, 10vw, 140px) 0; }
.error-code { font: 800 clamp(6.875rem, 22vw, 15rem)/.85 var(--font-display); letter-spacing: -.06em; color: var(--gold); -webkit-text-stroke: 3px var(--ink); text-shadow: 8px 8px 0 var(--sun); margin-bottom: 20px; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .08s; }
.js [data-reveal-delay="2"] { transition-delay: .16s; }
.js [data-reveal-delay="3"] { transition-delay: .24s; }

/* ---------- Accessibility bar (skip links, contrast, text size, language) ---------- */
.a11y-bar { position: relative; z-index: 60; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.a11y-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 44px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.skip-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.skip-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.skip-links a:hover { color: var(--ink); text-decoration: underline; }
.skip-links kbd { font: 700 0.6875rem/1 var(--font-body); background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; color: var(--ink-2); }
.a11y-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.bar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 34px; min-height: 34px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 700 0.8125rem/1 var(--font-body);
  transition: background .15s, color .15s;
}
.bar-btn .icon { width: 17px; height: 17px; }
.bar-btn:hover { background: var(--sun-soft); }
.bar-btn[aria-pressed="true"], .bar-btn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bar-btn-main { border-color: var(--ink); }
.font-btns { display: inline-flex; gap: 2px; }
.font-btns .bar-btn { padding: 0 9px; }

.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.lang-switch a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px 0 7px; border-radius: 999px;
  font: 800 0.75rem/1 var(--font-body); letter-spacing: .04em; color: var(--ink-2); text-decoration: none;
}
.lang-switch a:hover { background: var(--paper-2); color: var(--ink); }
.lang-switch a.is-current { background: var(--ink); color: #fff; }
.flag { width: 20px; height: 14px; flex: none; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.lang-switch-lg a { min-height: 42px; padding: 0 16px 0 12px; font-size: 0.875rem; }
.lang-switch-lg .flag { width: 26px; height: 18px; }

/* Accessibility panel */
.a11y-panel {
  position: absolute; top: calc(100% + 8px); right: max(16px, calc(50% - 600px)); z-index: 95;
  width: min(390px, calc(100vw - 32px)); max-height: calc(100vh - 80px); overflow-y: auto; overscroll-behavior: contain;
  padding: 18px; background: var(--white); color: var(--ink); font-size: 1rem;
  border: 2px solid var(--ink); border-radius: 22px; box-shadow: var(--pop), 0 30px 60px -24px rgba(21, 18, 61, .45);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-panel-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.375rem; }
.a11y-panel-head h2 .icon { color: var(--gold); }
.a11y-panel .icon-btn { width: 38px; height: 38px; border-width: 1px; border-color: var(--line); }
.a11y-group { margin-top: 18px; }
.a11y-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 0.75rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.a11y-group p { margin: 0 0 12px; font-size: 0.9375rem; color: var(--ink-2); }
.a11y-size { display: flex; align-items: center; gap: 10px; }
.a11y-size .btn { box-shadow: none; flex: 1; }
.a11y-size output { min-width: 64px; text-align: center; font: 800 1.125rem/1 var(--font-display); }
.a11y-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-option {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 8px 10px;
  padding: 12px; text-align: left; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); font: 700 0.875rem/1.25 var(--font-body);
  transition: border-color .15s, background .15s;
}
.a11y-option .icon { width: 22px; height: 22px; color: var(--gold); }
.a11y-option .a11y-switch { grid-column: 1 / -1; position: relative; width: 36px; height: 20px; border-radius: 999px; background: #c9c7d6; transition: background .15s; }
.a11y-option .a11y-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.a11y-option:hover { border-color: var(--ink-3); }
.a11y-option[aria-pressed="true"] { border-color: var(--ink); background: var(--gold-soft); }
.a11y-option[aria-pressed="true"] .a11y-switch { background: var(--ink); }
.a11y-option[aria-pressed="true"] .a11y-switch::after { transform: translateX(16px); }
.a11y-libras { padding: 14px; border-radius: 16px; background: #e6f0ff; }
.a11y-libras h3 { color: #123f8c; }
.a11y-libras h3 .icon { width: 18px; height: 18px; }
.a11y-libras p { color: #1c2b4a; }
.a11y-libras .btn { box-shadow: none; white-space: normal; text-align: left; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
.a11y-note { font-size: 0.875rem !important; }
.a11y-reset { width: 100%; margin-top: 18px; box-shadow: none; }

/* Pause button on the notice ticker */
.ticker { padding-right: 46px; }
.ticker-toggle {
  position: absolute; top: 0; right: 0; bottom: 0; width: 46px; display: grid; place-items: center; padding: 0;
  border: 0; border-left: 1px solid rgba(255, 255, 255, .2); background: var(--ink); color: #fff;
}
.ticker-toggle .icon { width: 14px; height: 14px; }
.ticker-toggle:hover { color: var(--sun); }
.ticker.is-paused .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }

/* Notes and small helpers */
.translation-note { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 12px 16px; border-radius: 14px; background: var(--grape-soft); color: #3d1fa8; font-weight: 600; font-size: 0.9375rem; }
.form-intro { color: var(--ink-2); font-size: 0.9375rem; margin: 0 0 18px; }
.sr-only { margin: -1px; padding: 0; border: 0; }

/* ---------- Accessibility modes (chosen in the panel, saved per visitor) ---------- */
html[data-fs="-1"] { font-size: 87.5%; }
html[data-fs="1"] { font-size: 112.5%; }
html[data-fs="2"] { font-size: 125%; }
html[data-fs="3"] { font-size: 150%; }
/* Bigger text: the full menu no longer fits, so use the drawer. */
@media (max-width: 1440px) {
  html[data-fs="1"] .nav { display: none; }
  html[data-fs="1"] .menu-toggle { display: grid; }
  html[data-fs="1"] .header-actions { margin-left: auto; }
}
html[data-fs="2"] .nav, html[data-fs="3"] .nav { display: none; }
html[data-fs="2"] .menu-toggle, html[data-fs="3"] .menu-toggle { display: grid; }
html[data-fs="2"] .header-actions, html[data-fs="3"] .header-actions { margin-left: auto; }

html.a11y-readable { --font-display: "Atkinson Hyperlegible", Verdana, Tahoma, sans-serif; --font-body: "Atkinson Hyperlegible", Verdana, Tahoma, sans-serif; }
html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable h4 { letter-spacing: 0; }
html.a11y-readable .brand-name { letter-spacing: 0; }

html.a11y-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
html.a11y-links .prose a, html.a11y-links .site-footer a, html.a11y-links .breadcrumb a, html.a11y-links .ticker a { background: #fff3a0; color: #15123d !important; border-radius: 3px; }
html.a11y-links .btn { outline: 2px dashed currentColor; outline-offset: 3px; }

/* WCAG 1.4.12 text spacing */
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing .lead, html.a11y-spacing .section-sub, html.a11y-spacing .card-text,
html.a11y-spacing .prose, html.a11y-spacing .prose * { line-height: 1.8 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-spacing p { margin-bottom: 2em; }
html.a11y-spacing h1, html.a11y-spacing h2, html.a11y-spacing h3 { line-height: 1.35; }

html.a11y-gray { filter: grayscale(1); }

html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still [data-reveal] { opacity: 1 !important; transform: none !important; }
html.a11y-still .ticker-track { flex-wrap: wrap; width: auto; row-gap: 10px; padding: 10px 0; }
html.a11y-still .ticker-item[aria-hidden="true"] { display: none; }
html.a11y-still .ticker-toggle { display: none; }
html.a11y-still .ticker { padding-right: 0; }

/* High contrast: black background, white text, yellow links (e-MAG pattern). The VLibras widget and SVGs keep their colors. */
html.a11y-contrast { --focus: #ffff00; --focus-ring: #000000; color-scheme: dark; }
/* :where() keeps this catch-all at low specificity so the rules below can override it. */
html.a11y-contrast :where(body, body *:not(svg, svg *, [vw], [vw] *)) {
  background-color: #000 !important; background-image: none !important; color: #fff !important;
  border-color: #fff !important; box-shadow: none !important; text-shadow: none !important;
}
html.a11y-contrast *::before, html.a11y-contrast *::after { background-image: none !important; box-shadow: none !important; }
html.a11y-contrast .hl::after, html.a11y-contrast .slide::before, html.a11y-contrast .page-hero-deco, html.a11y-contrast .blob,
html.a11y-contrast .donate::after, html.a11y-contrast .ticker-item::after, html.a11y-contrast .slide-deco,
html.a11y-contrast .card-media .placeholder { display: none !important; }
html.a11y-contrast a, html.a11y-contrast a :where(*:not(svg, svg *)) { color: #ffff00 !important; }
html.a11y-contrast a { text-decoration: underline !important; }
html.a11y-contrast .btn, html.a11y-contrast button, html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast textarea,
html.a11y-contrast .card, html.a11y-contrast .event-row { border: 2px solid #fff !important; }
html.a11y-contrast .nav-link::after { background: #ffff00 !important; }
html.a11y-contrast .day-tab.is-active, html.a11y-contrast .filter.is-active, html.a11y-contrast .slider-dot.is-active,
html.a11y-contrast .pagination .is-current, html.a11y-contrast .lang-switch a.is-current, html.a11y-contrast .bar-btn[aria-pressed="true"],
html.a11y-contrast .bar-btn[aria-expanded="true"], html.a11y-contrast .a11y-option[aria-pressed="true"], html.a11y-contrast .slider-progress,
html.a11y-contrast .a11y-option[aria-pressed="true"] .a11y-switch {
  background-color: #ffff00 !important; color: #000 !important;
}
html.a11y-contrast .day-tab.is-active *, html.a11y-contrast .filter.is-active, html.a11y-contrast .pagination .is-current,
html.a11y-contrast .lang-switch a.is-current *, html.a11y-contrast .bar-btn[aria-pressed="true"] *, html.a11y-contrast .bar-btn[aria-expanded="true"] *,
html.a11y-contrast .a11y-option[aria-pressed="true"] *:not(.a11y-switch) { background-color: transparent !important; color: #000 !important; }
html.a11y-contrast .a11y-switch::after { background: #fff !important; }
html.a11y-contrast .a11y-option[aria-pressed="true"] .a11y-switch::after { background: #000 !important; }
html.a11y-contrast .drawer-backdrop, html.a11y-contrast .search-panel { background-color: rgba(0, 0, 0, .85) !important; }
html.a11y-contrast .brand-name { -webkit-text-fill-color: #fff; }
html.a11y-contrast ::placeholder { color: #ccc; }

/* Operating system preferences */
@media (prefers-contrast: more) {
  :root { --ink-2: #15123d; --ink-3: #2f2c57; --line: rgba(21, 18, 61, .45); }
  a { text-decoration-thickness: 2px; }
}
@media (forced-colors: active) {
  .btn, .icon-btn, .bar-btn, .chip, .filter, .a11y-option, .slider-dot { border: 1px solid ButtonText; }
  .slider-dot.is-active, .a11y-option[aria-pressed="true"] .a11y-switch { forced-color-adjust: none; background: Highlight; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .week-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .welcome, .news-layout, .donate, .contact-grid, .live-card { grid-template-columns: 1fr; }
  .welcome-art { max-width: 320px; order: -1; }
  .news-grid, .video-grid { grid-template-columns: 1fr 1fr; }
  .offline-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  :root { --header-h: 66px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.25rem; }
  .brand-small { font-size: 0.5625rem; letter-spacing: .1em; }
  .live-pill { padding: 0 12px; }
  .live-pill .label { display: none; }
  .live-pill.is-live .label { display: inline; }
  .header-actions .search-btn { display: none; }
  .news-grid, .video-grid, .field-row, .quick-links { grid-template-columns: 1fr; }
  .card-row .card-media { width: 34%; }
  .event-row { grid-template-columns: auto 1fr; }
  .event-go { display: none; }
  .slider { box-shadow: 5px 5px 0 var(--ink); border-radius: 24px; }
  .slider-controls { left: 20px; right: 20px; justify-content: space-between; bottom: 18px; }
  .slide { min-height: 520px; }
  .slide-content { padding-bottom: 88px; }
  .footer-grid { grid-template-columns: 1fr; }
  .countdown span { min-width: 50px; font-size: 1.1875rem; }
  .prose { font-size: 1.0625rem; }
  /* Accessibility bar: icons only; skip links appear when focused */
  .skip-links a:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .skip-links:focus-within { width: 100%; }
  .bar-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .a11y-tools .font-btns { display: none; }
  .a11y-options { grid-template-columns: 1fr; }
  .a11y-panel { right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; row-gap: 10px; padding: 10px 0; }
  .ticker-item[aria-hidden="true"], .ticker-toggle { display: none; }
  .ticker { padding-right: 0; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
