/* =====================================================================
   GLAGOREM — public portal styles
   Accessibility notes: white text is only used on --brand-primary (8.9:1) and dark
   surfaces; orange (#EF6F14) carries dark ink text (5.3:1); orange text on light
   backgrounds uses --brand-accent-700 (5.5:1); tan text uses --brand-earth-700.
   ===================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--brand-light);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, .display-serif { font-family: var(--font-serif); font-weight: 700; color: var(--brand-primary-800); letter-spacing: -.01em; line-height: 1.15; }
h4, h5, h6 { font-family: var(--font-sans); font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin-bottom: 1rem; }
a { color: var(--brand-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-primary-700); }
img { max-width: 100%; height: auto; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.text-muted { color: var(--ink-muted) !important; }
.text-primary { color: var(--brand-primary) !important; }
.text-accent { color: var(--brand-accent-700) !important; }
.text-earth { color: var(--brand-earth-700) !important; }
.bg-primary-brand { background: var(--brand-primary) !important; color: #fff; }
.bg-light-brand { background: var(--brand-light) !important; }
.bg-earth-soft { background: var(--brand-earth-50) !important; }
.bg-white { background: var(--white) !important; }

/* Focus: visible brand-accent ring everywhere */
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .25rem rgba(239, 111, 20, .35);
  border-color: var(--brand-accent);
  outline: none;
}

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  background: var(--brand-primary); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { max-width: var(--container-max); }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-accent-700); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand-accent); display: inline-block; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: var(--radius-pill); padding: .7rem 1.4rem; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s, color .15s; letter-spacing: .01em; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .9rem; }
.btn-primary { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-primary-700); border-color: var(--brand-primary-700); color: #fff; box-shadow: var(--shadow); }
.btn-accent { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--ink); }
.btn-accent:hover, .btn-accent:focus { background: var(--brand-accent-600); border-color: var(--brand-accent-600); color: var(--ink); box-shadow: 0 8px 20px rgba(239, 111, 20, .35); transform: translateY(-1px); }
.btn-outline-primary { color: var(--brand-primary); border: 2px solid var(--brand-primary); }
.btn-outline-primary:hover { background: var(--brand-primary); color: #fff; }
.btn-outline-light { border-width: 2px; }
.btn-earth { background: var(--brand-earth); color: var(--ink); border-color: var(--brand-earth); }
.btn-earth:hover { background: var(--brand-earth-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-primary); border: 0; padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--brand-accent-700); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Announcement bar ---------- */
.announcement-bar { background: var(--brand-primary-800); color: #fff; font-size: .9rem; }
.announcement-bar .container { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .55rem 1rem; text-align: center; flex-wrap: wrap; }
.announcement-bar a.btn { padding: .2rem .8rem; font-size: .8rem; }
.announcement-bar .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent); box-shadow: 0 0 0 0 rgba(239, 111, 20, .7); animation: pulse 2s infinite; flex-shrink: 0; }
.announcement-close { background: none; border: 0; color: rgba(255, 255, 255, .85); padding: .25rem .5rem; margin-left: .25rem; }
.announcement-close:hover { color: #fff; }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header .navbar { min-height: var(--header-h); padding: .5rem 0; }
.brand-logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-800)); display: grid; place-items: center; position: relative; overflow: hidden; flex-shrink: 0; }
.brand-mark::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-accent); right: -6px; top: -6px; opacity: .9; }
.brand-mark svg { position: relative; z-index: 1; }
.brand-logo img { max-height: 48px; width: auto; }
.brand-word { font-family: var(--font-sans); font-weight: 800; font-size: 1.35rem; letter-spacing: .08em; color: var(--brand-primary); line-height: 1; }
.brand-sub { display: block; font-size: .62rem; letter-spacing: .06em; font-weight: 600; color: var(--brand-earth-700); text-transform: uppercase; margin-top: 3px; }
.site-header .nav-link { color: var(--ink); font-weight: 600; font-size: .95rem; padding: .6rem .9rem !important; border-radius: var(--radius-sm); position: relative; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: var(--brand-primary); }
.site-header .nav-link.active { color: var(--brand-primary); }
.site-header .nav-link.active::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px; background: var(--brand-accent); border-radius: 2px; }
.site-header .dropdown-menu { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; min-width: 220px; }
.site-header .dropdown-item { border-radius: var(--radius-sm); padding: .55rem .8rem; font-weight: 500; }
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus { background: var(--brand-primary-50); color: var(--brand-primary); }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: transparent; border: 1px solid transparent; color: var(--ink); }
.icon-btn:hover { background: var(--brand-primary-50); color: var(--brand-primary); }
.navbar-toggler { border: 0; padding: .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(239, 111, 20, .4); }
@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 1rem 0 1.5rem; }
  .site-header .nav-link.active::after { display: none; }
  .site-header .dropdown-menu { box-shadow: none; border: 0; padding-left: 1rem; }
}

/* Search overlay */
.search-overlay .modal-content { border-radius: var(--radius-lg); border: 0; }
.search-overlay .form-control { font-size: 1.15rem; padding: .9rem 1.2rem; border-radius: var(--radius-pill); }

/* ---------- Breadcrumbs & page hero ---------- */
.page-hero { position: relative; background: var(--brand-primary-800); color: #fff; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(239, 111, 20, .28), transparent 45%), radial-gradient(circle at 10% 90%, rgba(186, 136, 93, .25), transparent 40%); pointer-events: none; }
.page-hero .hero-pattern { position: absolute; inset: 0; opacity: .07; background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 22px); pointer-events: none; }
.page-hero .hero-image { position: absolute; inset: 0; }
.page-hero .hero-image img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p.lead { color: rgba(255, 255, 255, .88); max-width: 680px; }
.page-hero .eyebrow { color: #FDE3CE; }
.page-hero .eyebrow::before { background: var(--brand-accent); }
.breadcrumb { margin-bottom: 1.25rem; font-size: .85rem; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); }
.breadcrumb-item a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb-item a:hover { color: #fff; text-decoration: underline; }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .6); }

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; background: var(--brand-primary-900); }
.hero-carousel .carousel-item { min-height: clamp(520px, 82vh, 760px); }
.hero-slide { position: relative; min-height: inherit; display: flex; align-items: center; color: #fff; }
.hero-slide .hero-bg { position: absolute; inset: 0; }
.hero-slide .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(3, 27, 48, .92) 0%, rgba(5, 42, 74, .78) 45%, rgba(5, 42, 74, .25) 100%); }
.hero-slide .container { position: relative; z-index: 2; padding-top: 3rem; padding-bottom: 5rem; }
.hero-slide h1, .hero-slide h2 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 4rem); max-width: 780px; margin-bottom: 1.25rem; }
.hero-slide p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .9); max-width: 620px; margin-bottom: 2rem; }
.hero-slide .eyebrow { color: #FDE3CE; }
.hero-carousel .carousel-indicators { margin-bottom: 2rem; justify-content: flex-start; margin-left: max(1rem, calc((100vw - var(--container-max)) / 2 + .75rem)); }
.hero-carousel .carousel-indicators [data-bs-target] { width: 36px; height: 4px; border-radius: 2px; background: #fff; border: 0; opacity: .45; }
.hero-carousel .carousel-indicators .active { background: var(--brand-accent); opacity: 1; }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { width: 56px; height: 56px; top: auto; bottom: 1.5rem; background: rgba(255, 255, 255, .12); border-radius: 50%; opacity: 1; }
.hero-carousel .carousel-control-prev { left: auto; right: calc(max(1rem, (100vw - var(--container-max)) / 2) + 76px); }
.hero-carousel .carousel-control-next { right: max(1rem, calc((100vw - var(--container-max)) / 2)); }
.hero-carousel .carousel-control-prev:hover, .hero-carousel .carousel-control-next:hover { background: var(--brand-accent); }
.hero-tagline { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: linear-gradient(90deg, var(--brand-accent), var(--brand-earth)); color: var(--ink); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-tagline .marquee { display: flex; gap: 3rem; white-space: nowrap; padding: .55rem 0; animation: marquee 40s linear infinite; }
.hero-tagline .marquee span { display: inline-flex; align-items: center; gap: .75rem; }
@media (prefers-reduced-motion: reduce) { .hero-tagline .marquee { animation: none; justify-content: center; flex-wrap: wrap; white-space: normal; } }
@media (max-width: 767.98px) { .hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { display: none; } }

/* ---------- Impact counters ---------- */
.impact-strip { position: relative; margin-top: -3.5rem; z-index: 5; }
.impact-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.75rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.impact-item { text-align: center; padding: .5rem; position: relative; }
.impact-item + .impact-item::before { content: ""; position: absolute; left: -.5rem; top: 15%; bottom: 15%; width: 1px; background: var(--border); }
.impact-item .icon { width: 52px; height: 52px; margin: 0 auto .75rem; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--brand-primary-50); color: var(--brand-primary); }
.impact-item:nth-child(2) .icon { background: var(--brand-accent-50); color: var(--brand-accent-700); }
.impact-item:nth-child(3) .icon { background: var(--brand-earth-50); color: var(--brand-earth-700); }
.impact-number { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--brand-primary-800); line-height: 1; font-variant-numeric: tabular-nums; }
.impact-label { font-size: .85rem; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: .4rem; }
@media (max-width: 767.98px) {
  .impact-card { grid-template-columns: repeat(2, 1fr); padding: 1.25rem; }
  .impact-item:nth-child(3)::before { display: none; }
}

/* ---------- Cards ---------- */
.card-brand { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card-brand:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-brand .card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-primary-100); }
.card-brand .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-brand:hover .card-media img { transform: scale(1.05); }
.card-brand .card-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-brand .card-title { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: .5rem; }
.card-brand .card-title a { color: var(--brand-primary-800); text-decoration: none; }
.card-brand .card-title a::after { content: ""; position: absolute; inset: 0; }
.card-brand { position: relative; }
.card-brand .card-text { color: var(--ink-soft); font-size: .95rem; }
.card-brand .card-foot { margin-top: auto; padding-top: 1rem; }
.card-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; background: rgba(255, 255, 255, .95); color: var(--brand-primary); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .7rem; border-radius: var(--radius-pill); }
.card-badge.accent { background: var(--brand-accent); color: var(--ink); }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--ink-muted); margin-bottom: .75rem; }
.meta-row i { color: var(--brand-earth-700); margin-right: .3rem; }

/* Progress */
.progress-brand { height: 10px; background: var(--brand-light-300); border-radius: var(--radius-pill); overflow: hidden; }
.progress-brand .bar { height: 100%; background: linear-gradient(90deg, var(--brand-accent), #F59A52); border-radius: var(--radius-pill); width: 0; transition: width 1.2s var(--ease); position: relative; }
.progress-brand .bar.is-animating::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shimmer 1.2s ease-out; }
.progress-stats { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .88rem; margin-top: .55rem; flex-wrap: wrap; }
.progress-stats strong { color: var(--brand-primary-800); font-size: 1.05rem; }
.progress-stats .pct { font-weight: 700; color: var(--brand-accent-700); }

/* Missionary cards */
.missionary-card { text-align: center; }
.missionary-card .portrait { width: 132px; height: 132px; margin: 1.75rem auto 0; border-radius: 50%; padding: 5px; background: conic-gradient(var(--brand-earth), var(--brand-accent), var(--brand-earth)); }
.missionary-card .portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; }
.missionary-card .field { font-size: .82rem; font-weight: 700; color: var(--brand-earth-700); text-transform: uppercase; letter-spacing: .06em; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: .35rem; }
.status-dot.furlough { background: var(--warning); }

/* Horizontal scroll track (featured missionaries) */
.scroll-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 3 * 1.5rem) / 4)); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem; scrollbar-width: thin; scrollbar-color: var(--brand-earth) transparent; }
.scroll-track:focus-visible { outline-offset: 4px; }
.scroll-item { scroll-snap-align: start; }
@media (max-width: 991.98px) { .scroll-track { grid-auto-columns: minmax(250px, 46%); } }
@media (max-width: 575.98px) { .scroll-track { grid-auto-columns: 82%; } }

/* Listing tools */
.filter-bar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.filter-bar .form-select, .filter-bar .form-control { border-radius: var(--radius-pill); }
.view-toggle .btn { border-radius: var(--radius-sm); padding: .45rem .75rem; }
.view-toggle .btn.active { background: var(--brand-primary); color: #fff; }
.list-view .col-item { width: 100%; flex: 0 0 100%; max-width: 100%; }
.list-view .card-brand { flex-direction: row; }
.list-view .card-brand .card-media { aspect-ratio: auto; width: 240px; flex-shrink: 0; }
.list-view .missionary-card { text-align: left; }
.list-view .missionary-card .portrait { margin: 1.25rem; width: 110px; height: 110px; flex-shrink: 0; }
@media (max-width: 575.98px) { .list-view .card-brand { flex-direction: column; } .list-view .card-brand .card-media { width: 100%; aspect-ratio: 16/10; } .list-view .missionary-card .portrait { margin: 1.25rem auto 0; } }

/* Pagination */
.pagination { --bs-pagination-color: var(--brand-primary); --bs-pagination-active-bg: var(--brand-primary); --bs-pagination-active-border-color: var(--brand-primary); --bs-pagination-border-radius: var(--radius-pill); gap: .25rem; }
.pagination .page-link { border-radius: var(--radius-pill) !important; min-width: 42px; text-align: center; }

/* ---------- Mission block / split ---------- */
.mission-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.mission-split .media-frame { position: relative; }
.mission-split .media-frame img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.mission-split .media-frame::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 3px solid var(--brand-earth); border-radius: var(--radius-lg); z-index: -1; }
.mission-split .badge-float { position: absolute; left: -1.25rem; bottom: 1.5rem; background: var(--brand-primary); color: #fff; padding: 1rem 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.mission-split .badge-float strong { display: block; font-family: var(--font-serif); font-size: 2rem; line-height: 1; }
.pillars-mini { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.25rem; margin: 1.5rem 0 2rem; list-style: none; padding: 0; }
.pillars-mini li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.pillars-mini i { color: var(--brand-accent-700); width: 1.2rem; }
@media (max-width: 991.98px) { .mission-split { grid-template-columns: 1fr; } .mission-split .media-frame::before { inset: 1rem -.75rem -.75rem 1rem; } .mission-split .badge-float { left: .75rem; } }

/* Feature/pillar cards */
.pillar-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.75rem; height: 100%; border: 1px solid var(--border); position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-card::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.pillar-card:hover::after { transform: scaleX(1); }
.pillar-card .icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; background: var(--brand-primary-50); color: var(--brand-primary); margin-bottom: 1.25rem; }
.pillar-card h3 { font-size: 1.25rem; }
.pillar-card p { color: var(--ink-soft); margin-bottom: 0; }

/* Scripture band */
.scripture-band { background: var(--brand-earth-50); border-top: 1px solid var(--brand-earth-100); border-bottom: 1px solid var(--brand-earth-100); }
.scripture-band blockquote { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-style: italic; color: var(--brand-primary-800); text-align: center; max-width: 900px; margin: 0 auto; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); color: #fff; background: var(--brand-primary); }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -180px; background: rgba(239, 111, 20, .35); }
.cta-band::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; left: -80px; bottom: -140px; background: rgba(186, 136, 93, .35); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); }
.cta-band.accent { background: linear-gradient(120deg, var(--brand-primary-800), var(--brand-primary)); }

/* Prayer wall */
.prayer-preview, .prayer-wall { columns: 3 300px; column-gap: 1.25rem; }
.prayer-card { break-inside: avoid; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); border-left: 4px solid var(--brand-earth); padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.prayer-card.is-new { animation: highlightIn 2.4s var(--ease); }
.prayer-card h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
.prayer-card p { font-size: .94rem; color: var(--ink-soft); margin-bottom: .9rem; }
.prayer-card .cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-earth-700); }
.prayer-card .pray-btn { border-radius: var(--radius-pill); font-size: .85rem; padding: .35rem .9rem; }
.prayer-card .pray-btn.prayed { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.prayer-card.praise { border-left-color: var(--brand-accent); background: var(--brand-accent-50); }
.prayer-card.scripture { border-left-color: var(--brand-primary); font-family: var(--font-serif); font-style: italic; }

/* Partner strip */
.partner-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem 3rem; }
.partner-strip a, .partner-strip span { display: block; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.partner-strip a:hover, .partner-strip span:hover { filter: none; opacity: 1; }
.partner-strip img { max-height: 64px; width: auto; }

/* Newsletter */
.newsletter-box { background: var(--brand-primary-800); border-radius: var(--radius-lg); color: #fff; padding: clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; }
.newsletter-box h2 { color: #fff; }
.newsletter-box p { color: rgba(255, 255, 255, .85); }
.newsletter-form { display: flex; gap: .5rem; background: #fff; padding: .4rem; border-radius: var(--radius-pill); }
.newsletter-form .form-control { border: 0; border-radius: var(--radius-pill); padding-left: 1.1rem; }
.newsletter-form .form-control:focus { box-shadow: none; }
@media (max-width: 575.98px) { .newsletter-form { flex-direction: column; border-radius: var(--radius); } }

/* Donation CTA banner */
.donate-banner { background: linear-gradient(120deg, var(--brand-accent) 0%, #F59A52 60%, var(--brand-earth) 100%); color: var(--ink); }
.donate-banner h2 { color: var(--ink); }
.donate-banner .btn-primary { box-shadow: var(--shadow); }
.donation-ticker { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255, 255, 255, .7); border-radius: var(--radius-pill); padding: .4rem 1rem; font-size: .88rem; font-weight: 600; min-height: 2.2rem; }
.donation-ticker .live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }

/* ---------- Events ---------- */
.event-date { position: absolute; top: 1rem; right: 1rem; z-index: 2; background: #fff; border-radius: var(--radius); text-align: center; padding: .45rem .75rem; box-shadow: var(--shadow); min-width: 64px; }
.event-date .d { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 800; color: var(--brand-primary); line-height: 1; }
.event-date .m { font-size: .72rem; font-weight: 700; color: var(--brand-accent-700); text-transform: uppercase; letter-spacing: .1em; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.calendar-grid .dow { background: var(--brand-primary); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; text-align: center; padding: .5rem; }
.calendar-grid .day { background: #fff; min-height: 104px; padding: .4rem; font-size: .8rem; }
.calendar-grid .day.muted { background: var(--brand-light); color: var(--ink-muted); }
.calendar-grid .day.today .num { background: var(--brand-accent); color: var(--ink); border-radius: 50%; width: 1.7rem; height: 1.7rem; display: inline-grid; place-items: center; }
.calendar-grid .day .num { font-weight: 700; }
.calendar-grid .ev { display: block; background: var(--brand-primary-50); color: var(--brand-primary-800); border-left: 3px solid var(--brand-primary); border-radius: 4px; padding: .2rem .35rem; margin-top: .3rem; font-size: .74rem; font-weight: 600; text-decoration: none; line-height: 1.3; }
.calendar-grid .ev:hover { background: var(--brand-primary); color: #fff; }
@media (max-width: 767.98px) { .calendar-grid .day { min-height: 64px; } .calendar-grid .ev { font-size: 0; height: 6px; padding: 0; } }
.agenda-item { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--border); }
.agenda-item .time { font-weight: 700; color: var(--brand-primary); font-variant-numeric: tabular-nums; }
.speaker { display: flex; gap: 1rem; align-items: center; }
.speaker img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brand-earth-100); }
.map-embed { height: 320px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); z-index: 0; }

/* Sticky aside (donation widget, registration) */
.sticky-aside { position: sticky; top: calc(var(--header-h) + 1.25rem); }
.panel { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 1.5rem; }
.panel-title { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 1rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }

/* Budget */
.budget-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.budget-table td, .budget-table th { padding: .7rem .5rem; }
.timeline-feed { position: relative; padding-left: 1.75rem; }
.timeline-feed::before { content: ""; position: absolute; left: .45rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--brand-earth-100); }
.timeline-feed .item { position: relative; padding-bottom: 1.5rem; }
.timeline-feed .item::before { content: ""; position: absolute; left: -1.62rem; top: .4rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-accent); }
.timeline-feed .date { font-size: .8rem; font-weight: 700; color: var(--brand-earth-700); text-transform: uppercase; letter-spacing: .06em; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.activity-list .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; flex-shrink: 0; background: var(--brand-light-300); color: var(--ink-muted); }
.activity-list .st.completed { background: var(--success); color: #fff; }
.activity-list .st.in_progress { background: var(--brand-accent); color: var(--ink); }

/* Share bar */
.share-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.share-bar a, .share-bar button { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--border); background: #fff; color: var(--brand-primary); text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.share-bar a:hover, .share-bar button:hover { background: var(--brand-primary); color: #fff; transform: translateY(-2px); }

/* ---------- Giving ---------- */
.give-shell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 2rem; align-items: start; }
@media (max-width: 991.98px) { .give-shell { grid-template-columns: 1fr; } }
.freq-toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--brand-light-200); border-radius: var(--radius-pill); padding: .3rem; margin-bottom: 1.5rem; }
.freq-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.freq-toggle label { text-align: center; padding: .7rem; border-radius: var(--radius-pill); font-weight: 700; cursor: pointer; color: var(--ink-soft); transition: background .2s, color .2s, box-shadow .2s; }
.freq-toggle input:checked + label { background: #fff; color: var(--brand-primary); box-shadow: var(--shadow-sm); }
.freq-toggle input:focus-visible + label { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-bottom: 1rem; }
.amount-grid input { position: absolute; opacity: 0; pointer-events: none; }
.amount-grid label { display: block; text-align: center; padding: .95rem .5rem; border: 2px solid var(--border); border-radius: var(--radius); font-weight: 800; font-size: 1.15rem; color: var(--brand-primary-800); cursor: pointer; background: #fff; transition: border-color .2s, background .2s, transform .15s; font-variant-numeric: tabular-nums; }
.amount-grid label:hover { border-color: var(--brand-primary-300); }
.amount-grid input:checked + label { border-color: var(--brand-accent); background: var(--brand-accent-50); transform: translateY(-2px); }
.amount-grid input:focus-visible + label { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.amount-custom { position: relative; }
.amount-custom .cur { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--brand-primary); }
.amount-custom input { padding-left: 2.2rem; font-weight: 700; font-size: 1.1rem; height: 3.3rem; border-radius: var(--radius); }
.impact-hint { background: var(--brand-primary-50); border-radius: var(--radius); padding: .85rem 1rem; color: var(--brand-primary-800); font-weight: 500; font-size: .92rem; display: flex; gap: .65rem; align-items: center; }
.impact-hint i { color: var(--brand-accent-700); }
.pay-methods { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .78rem; color: var(--ink-muted); }
.pay-methods span { border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: .2rem .5rem; font-weight: 700; color: var(--ink-soft); }
.plan-card { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; background: #fff; text-align: center; height: 100%; position: relative; transition: border-color .2s, transform .2s, box-shadow .2s; }
.plan-card:hover { border-color: var(--brand-accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.featured { border-color: var(--brand-primary); }
.plan-card.featured::before { content: "Most chosen"; position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--brand-primary); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .8rem; border-radius: var(--radius-pill); }
.plan-card .price { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 800; color: var(--brand-primary-800); line-height: 1; }
.plan-card .per { color: var(--ink-muted); font-size: .9rem; }
.trust-list { list-style: none; padding: 0; margin: 0; }
.trust-list li { display: flex; gap: .75rem; padding: .55rem 0; }
.trust-list i { color: var(--success); margin-top: .3rem; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--brand-light-400); padding: .65rem .9rem; }
.form-control::placeholder { color: #8A8A84; }
.form-text { color: var(--ink-muted); }
.invalid-feedback { font-weight: 500; }
.required::after { content: " *"; color: var(--danger); }
.form-check-input:checked { background-color: var(--brand-primary); border-color: var(--brand-primary); }
.stepper { display: flex; gap: .5rem; margin-bottom: 2rem; counter-reset: step; list-style: none; padding: 0; }
.stepper li { flex: 1; text-align: center; font-size: .78rem; font-weight: 600; color: var(--ink-muted); position: relative; }
.stepper li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto .4rem; border-radius: 50%; background: var(--brand-light-300); color: var(--ink-soft); font-weight: 700; position: relative; z-index: 1; }
.stepper li::after { content: ""; position: absolute; top: 17px; left: 50%; width: 100%; height: 2px; background: var(--brand-light-300); }
.stepper li:last-child::after { display: none; }
.stepper li.done::before { background: var(--success); color: #fff; content: "✓"; }
.stepper li.done::after { background: var(--success); }
.stepper li.current::before { background: var(--brand-accent); color: var(--ink); }
.stepper li.current { color: var(--brand-primary); }
@media (max-width: 575.98px) { .stepper li span { display: none; } }
.form-step[hidden] { display: none !important; }
.chip-check { display: inline-block; margin: 0 .4rem .5rem 0; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check label { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1.5px solid var(--brand-light-400); border-radius: var(--radius-pill); cursor: pointer; font-size: .9rem; font-weight: 600; background: #fff; transition: all .2s; }
.chip-check input:checked + label { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.chip-check input:focus-visible + label { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.availability-grid { width: 100%; border-collapse: separate; border-spacing: 4px; }
.availability-grid th { font-size: .78rem; text-align: center; color: var(--ink-muted); }
.availability-grid td { text-align: center; }
.availability-grid input { width: 1.4rem; height: 1.4rem; }

/* Alerts / flash */
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 1rem; z-index: 1080; width: min(420px, calc(100vw - 2rem)); }
.alert { border-radius: var(--radius); border: 0; box-shadow: var(--shadow); }

/* ---------- Library ---------- */
.lib-card .card-media { aspect-ratio: 3/4; background: var(--brand-earth-50); }
.type-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--brand-primary-50); color: var(--brand-primary); padding: .25rem .6rem; border-radius: var(--radius-pill); }
.rating-stars { color: var(--brand-accent-700); letter-spacing: .1em; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 1.6rem; color: var(--brand-light-400); cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--brand-accent); }
.rating-input input:focus-visible + label { outline: 2px solid var(--brand-accent); }

/* ---------- Stories: magazine layout ---------- */
.mag-masthead { border-bottom: 3px double var(--brand-primary-800); padding: 2.5rem 0 1.25rem; margin-bottom: 2rem; background: #fff; }
.mag-masthead .issue { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-earth-700); }
.mag-masthead h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-style: italic; letter-spacing: -.02em; margin: .25rem 0 0; }
.cat-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-pills a { display: inline-block; padding: .4rem 1rem; border-radius: var(--radius-pill); font-weight: 700; font-size: .82rem; text-decoration: none; border: 1.5px solid var(--brand-primary-800); color: var(--brand-primary-800); transition: all .2s; text-transform: uppercase; letter-spacing: .06em; }
.cat-pills a:hover, .cat-pills a.active { background: var(--brand-primary-800); color: #fff; }
.feature-story { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: clamp(420px, 62vh, 620px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.feature-story .bg { position: absolute; inset: 0; z-index: -2; }
.feature-story .bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-story:hover .bg img { transform: scale(1.04); }
.feature-story::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 27, 48, 0) 20%, rgba(3, 27, 48, .55) 55%, rgba(3, 27, 48, .95) 100%); }
.feature-story .content { padding: clamp(1.5rem, 4vw, 3.5rem); max-width: 860px; }
.feature-story .kicker { display: inline-block; background: var(--brand-accent); color: var(--ink); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .75rem; margin-bottom: 1rem; }
.feature-story h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.4rem); margin-bottom: .75rem; }
.feature-story h2 a { color: inherit; text-decoration: none; }
.feature-story h2 a::after { content: ""; position: absolute; inset: 0; }
.feature-story .dek { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .88); font-family: var(--font-serif); font-style: italic; }
.story-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.story-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.feature-story .story-meta { color: rgba(255, 255, 255, .85); }
.asym-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem 1.75rem; }
.asym-grid > .lead-story { grid-column: span 7; grid-row: span 2; }
.asym-grid > .side-story { grid-column: span 5; }
.asym-grid > .row-story { grid-column: span 4; }
@media (max-width: 991.98px) { .asym-grid > .lead-story, .asym-grid > .side-story { grid-column: span 12; } .asym-grid > .row-story { grid-column: span 6; } }
@media (max-width: 575.98px) { .asym-grid > .row-story { grid-column: span 12; } }
.mag-card { position: relative; display: flex; flex-direction: column; gap: .85rem; }
.mag-card .img-wrap { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16/10; background: var(--brand-primary-100); }
.lead-story .img-wrap { aspect-ratio: 4/3; }
.side-story { display: grid; grid-template-columns: 42% 1fr; gap: 1.1rem; align-items: start; }
.side-story .img-wrap { aspect-ratio: 1; }
@media (max-width: 575.98px) { .side-story { grid-template-columns: 1fr; } .side-story .img-wrap { aspect-ratio: 16/10; } }
.mag-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mag-card:hover img { transform: scale(1.05); }
.mag-card .cat { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mag-card h3 { font-size: 1.35rem; margin: 0; }
.lead-story h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.mag-card h3 a { color: var(--brand-primary-900); text-decoration: none; background-image: linear-gradient(var(--brand-accent), var(--brand-accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
.mag-card:hover h3 a { background-size: 100% 2px; }
.mag-card h3 a::after { content: ""; position: absolute; inset: 0; }
.mag-card .dek { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.mag-card .story-meta { color: var(--ink-muted); }
.mag-rule { border: 0; border-top: 1px solid var(--brand-primary-800); opacity: 1; margin: 3rem 0 2rem; }
.mag-section-title { font-family: var(--font-sans); font-size: .85rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-primary-800); display: flex; align-items: center; gap: 1rem; }
.mag-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
/* Editorial layout */
.layout-editorial .editorial-list .item { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--border); position: relative; }
.layout-editorial .editorial-list .item:first-child { border-top: 3px solid var(--brand-primary-800); }
@media (max-width: 767.98px) { .layout-editorial .editorial-list .item { grid-template-columns: 1fr; } }
/* Mosaic layout */
.layout-mosaic .mosaic { columns: 3 280px; column-gap: 1.5rem; }
.layout-mosaic .mosaic .mag-card { break-inside: avoid; margin-bottom: 2rem; }
.layout-mosaic .mosaic .mag-card:nth-child(3n+1) .img-wrap { aspect-ratio: 3/4; }

/* Article */
.article-hero { position: relative; min-height: clamp(380px, 64vh, 640px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.article-hero .bg { position: absolute; inset: 0; z-index: -2; }
.article-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.article-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 27, 48, .15), rgba(3, 27, 48, .9)); }
.article-hero h1 { color: #fff; max-width: 900px; font-size: clamp(2.1rem, 5vw, 3.8rem); }
.article-hero .dek { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); color: rgba(255, 255, 255, .9); max-width: 760px; }
.article-hero .breadcrumb { margin-bottom: 1.5rem; }
.article-body { font-size: 1.12rem; line-height: 1.85; color: #222; max-width: 720px; margin: 0 auto; }
.article-body > p:first-of-type::first-letter { font-family: var(--font-serif); float: left; font-size: 4.6rem; line-height: .82; padding: .35rem .6rem 0 0; color: var(--brand-primary); font-weight: 800; }
.article-body h2, .article-body h3 { margin-top: 2.25rem; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-body blockquote:not(.pull-quote) { border-left: 4px solid var(--brand-earth); padding-left: 1.25rem; font-style: italic; color: var(--ink-soft); }
.pull-quote, .article-body .pull-quote { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; font-style: italic; color: var(--brand-primary-800); text-align: center; margin: 2.5rem -2rem; padding: 2rem 1.5rem; border-top: 3px solid var(--brand-accent); border-bottom: 3px solid var(--brand-accent); position: relative; }
.pull-quote::before { content: "“"; position: absolute; top: -.2em; left: 50%; transform: translateX(-50%); background: var(--brand-light); padding: 0 .5rem; color: var(--brand-accent); font-size: 3.5rem; line-height: 1; }
@media (max-width: 767.98px) { .pull-quote, .article-body .pull-quote { margin: 2rem 0; } }
.article-aside { border-top: 3px solid var(--brand-primary-800); padding-top: 1rem; }
.author-card { display: flex; gap: 1rem; align-items: center; padding: 1.5rem; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.author-card .avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-primary); color: #fff; font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--brand-accent); z-index: 1100; width: 0; }
.comment { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.comment .who { font-weight: 700; }

/* ---------- About ---------- */
.timeline-h { position: relative; }
.timeline-h::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--brand-earth), var(--brand-accent)); transform: translateX(-50%); }
.timeline-h .t-item { position: relative; width: 50%; padding: 0 2.5rem 2.5rem; }
.timeline-h .t-item:nth-child(odd) { margin-right: auto; text-align: right; }
.timeline-h .t-item:nth-child(even) { margin-left: auto; }
.timeline-h .t-item::before { content: ""; position: absolute; top: .3rem; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-accent); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--brand-accent); }
.timeline-h .t-item:nth-child(odd)::before { right: -9px; }
.timeline-h .t-item:nth-child(even)::before { left: -9px; }
.timeline-h .year { font-family: var(--font-serif); font-size: 2rem; font-weight: 800; color: var(--brand-primary); line-height: 1; }
.timeline-h h3 { font-family: var(--font-sans); font-size: 1.1rem; margin: .35rem 0; }
.timeline-h p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
@media (max-width: 767.98px) {
  .timeline-h::before { left: 10px; }
  .timeline-h .t-item { width: 100%; padding: 0 0 2rem 2.5rem; text-align: left !important; }
  .timeline-h .t-item::before { left: 1px !important; right: auto !important; }
}
.team-card { text-align: center; }
.team-card .photo { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1rem; background: var(--brand-earth-50); border: 4px solid #fff; box-shadow: var(--shadow); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family: var(--font-sans); font-size: 1.05rem; margin-bottom: .2rem; }
.team-card .role { color: var(--brand-earth-700); font-weight: 600; font-size: .88rem; }
.office-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem; height: 100%; }
.office-card.hq { border: 2px solid var(--brand-primary); background: var(--brand-primary-50); }
.office-card h3 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: .35rem; }
.office-card .meta { font-size: .88rem; color: var(--ink-soft); }
.ghana-map { height: 460px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--brand-primary-50); }

/* Testimonials */
.testimonial { background: #fff; border-radius: var(--radius-lg); padding: 2rem; height: 100%; border: 1px solid var(--border); position: relative; }
.testimonial::before { content: "“"; font-family: var(--font-serif); font-size: 5rem; line-height: 1; color: var(--brand-earth-200); position: absolute; top: .5rem; right: 1.25rem; }
.testimonial blockquote { font-family: var(--font-serif); font-size: 1.12rem; font-style: italic; color: var(--ink); margin-bottom: 1.25rem; }
.testimonial .who strong { display: block; }
.testimonial .who span { font-size: .85rem; color: var(--ink-muted); }

/* Partner tiers */
.tier-card { border-radius: var(--radius-lg); padding: 1.75rem; height: 100%; color: var(--ink); background: #fff; border: 1px solid var(--border); border-top: 6px solid var(--brand-earth); }
.tier-card.silver { border-top-color: #9AA5B1; }
.tier-card.gold { border-top-color: #C8A24B; }
.tier-card.strategic { border-top-color: var(--brand-primary); }
.tier-card h3 { font-family: var(--font-sans); font-size: 1.15rem; }
.tier-card ul { padding-left: 1.1rem; font-size: .92rem; color: var(--ink-soft); }
.partner-tile { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem; display: flex; gap: 1rem; align-items: center; height: 100%; }
.partner-tile img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--radius-sm); background: var(--brand-light); }

/* Contact */
.contact-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); height: 100%; }
.contact-tile .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-primary); color: #fff; flex-shrink: 0; font-size: 1.15rem; }
.contact-tile.accent .ic { background: var(--brand-accent); color: var(--ink); }
.contact-tile a { font-weight: 600; text-decoration: none; }
.contact-tile a:hover { text-decoration: underline; }

/* FAQ accordion */
.accordion-brand .accordion-item { border: 1px solid var(--border); border-radius: var(--radius) !important; margin-bottom: .75rem; overflow: hidden; }
.accordion-brand .accordion-button { font-weight: 600; padding: 1.1rem 1.25rem; }
.accordion-brand .accordion-button:not(.collapsed) { background: var(--brand-primary-50); color: var(--brand-primary-800); box-shadow: none; }
.accordion-brand .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(239, 111, 20, .35); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-primary-900); color: rgba(255, 255, 255, .78); padding-top: clamp(3rem, 6vw, 5rem); font-size: .94rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--brand-accent) 0 40px, var(--brand-earth) 40px 80px, var(--brand-light) 80px 120px, var(--brand-primary) 120px 160px); }
.site-footer h2 { font-family: var(--font-sans); font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-sub { color: var(--brand-earth-200); }
.site-footer .contact-line { display: flex; gap: .65rem; margin-bottom: .6rem; }
.site-footer .contact-line i { color: var(--brand-accent); margin-top: .3rem; width: 1rem; }
.social-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, transform .2s; }
.social-links a:hover { background: var(--brand-accent); color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding: 1.25rem 0; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; }
.footer-bottom .staff-link { font-size: .78rem; color: rgba(255, 255, 255, .7); display: inline-flex; align-items: center; gap: .35rem; }
.footer-bottom .staff-link:hover { color: #fff; }
.footer-newsletter .newsletter-form { background: rgba(255, 255, 255, .08); }
.footer-newsletter .newsletter-form .form-control { background: transparent; color: #fff; }
.footer-newsletter .newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, .7); }

/* Floating actions */
.whatsapp-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; width: 58px; height: 58px; border-radius: 50%; background: #1FAF55; color: #fff; display: grid; place-items: center; font-size: 1.75rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FAF55; animation: ring 2.4s infinite; }
.scroll-top { position: fixed; right: 1.4rem; bottom: 5.5rem; z-index: 1040; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-primary); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease); }
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--brand-accent); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .whatsapp-float::after { animation: none; } }

/* Cookie consent */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1060; max-width: 640px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.25rem 1.5rem; border-top: 4px solid var(--brand-accent); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: .9rem; margin-bottom: .9rem; }

/* Live badge */
.live-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--success); }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.live-badge.offline { color: var(--ink-muted); }
.live-badge.offline::before { animation: none; }

/* Error pages */
.error-page { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }
.error-page .code { font-family: var(--font-serif); font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--brand-primary), var(--brand-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Portal */
.portal-shell { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.portal-nav { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.portal-nav a { display: flex; align-items: center; gap: .65rem; padding: .65rem .85rem; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; text-decoration: none; }
.portal-nav a:hover { background: var(--brand-primary-50); color: var(--brand-primary); }
.portal-nav a.active { background: var(--brand-primary); color: #fff; }
.portal-nav .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--ink-muted); padding: .9rem .85rem .35rem; }
@media (max-width: 991.98px) { .portal-shell { grid-template-columns: 1fr; } .portal-nav { position: static; display: flex; flex-wrap: wrap; gap: .25rem; } .portal-nav .group { width: 100%; } }
.stat-tile { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); border-left: 4px solid var(--brand-accent); padding: 1.1rem 1.25rem; height: 100%; }
.stat-tile .v { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 800; color: var(--brand-primary-800); line-height: 1.1; }
.stat-tile .l { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); font-weight: 700; }
.table-brand { --bs-table-bg: #fff; border-radius: var(--radius); overflow: hidden; }
.table-brand thead th { background: var(--brand-primary-50); color: var(--brand-primary-800); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 0; }
.table-responsive { border-radius: var(--radius); border: 1px solid var(--border); }
.badge-status { font-weight: 600; }
.text-bg-warning { color: #1a1a1a !important; }
.auth-card { max-width: 460px; margin: 0 auto; }

/* Utility */
.rounded-brand { border-radius: var(--radius-lg) !important; }
.shadow-brand { box-shadow: var(--shadow-lg) !important; }
.fw-800 { font-weight: 800 !important; }
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; }
.prose h2 { font-size: 1.75rem; margin-top: 2rem; }
.prose h3 { font-size: 1.35rem; margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose img { border-radius: var(--radius); }
.ratio-embed iframe { border-radius: var(--radius-lg); }
.qr-box { background: #fff; padding: 1rem; border-radius: var(--radius); display: inline-block; border: 1px solid var(--border); }
.qr-box svg { display: block; width: 200px; height: 200px; }
