/* Encovery: shared visual system. Loaded last so existing page behavior stays intact. */
:root {
    --ink: #142849;
    --muted: #667994;
    --forest: #2563eb;
    --forest-dark: #102956;
    --canvas: #edf3ff;
    --paper: #ffffff;
    --line: #d9e5fa;
    --sage: #eaf1ff;
    --clay: #3b82f6;
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-body-color: #142849;
    --bs-body-bg: #edf3ff;
    --bs-link-color: #2563eb;
    --bs-link-hover-color: #102956;
    --bs-border-color: #d9e5fa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); letter-spacing: -.035em; line-height: 1.2; }
a { color: var(--forest); text-underline-offset: 4px; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #3b82f6; outline-offset: 4px; }
.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--forest) !important; }
.bg-light { background-color: var(--sage) !important; }
.btn { border-radius: 9px; font-weight: 600; font-size: .9rem; padding: .7rem 1.2rem; box-shadow: none; transition: background-color .18s, border-color .18s, color .18s; }
.btn i { margin-left: .25rem; }
.btn-primary { --bs-btn-bg: var(--forest); --bs-btn-border-color: var(--forest); --bs-btn-hover-bg: var(--forest-dark); --bs-btn-hover-border-color: var(--forest-dark); --bs-btn-active-bg: var(--forest-dark); --bs-btn-active-border-color: var(--forest-dark); --bs-btn-disabled-bg: var(--forest); --bs-btn-disabled-border-color: var(--forest); --bs-btn-focus-shadow-rgb: 37,99,235; }
.btn-outline-primary { --bs-btn-color: var(--forest); --bs-btn-border-color: #9bbaff; --bs-btn-hover-bg: var(--forest); --bs-btn-hover-border-color: var(--forest); --bs-btn-active-bg: var(--forest-dark); --bs-btn-active-border-color: var(--forest-dark); }
.btn-secondary { --bs-btn-bg: #667994; --bs-btn-border-color: #667994; --bs-btn-hover-bg: #3a5687; --bs-btn-hover-border-color: #3a5687; }
.btn-sm { padding: .4rem .7rem; font-size: .8rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: .98rem; }
.form-control, .form-select, .cp-input { border: 1px solid #d5e2fa; border-radius: 9px; background: #ffffff; color: var(--ink); padding: .75rem .9rem; font-size: .92rem; min-height: 44px; }
.form-control:focus, .form-select:focus, .cp-input:focus { border-color: #6699f5; box-shadow: 0 0 0 3px #2563eb18; background: white; color: var(--ink); }
.form-label { color: var(--ink); font-size: .84rem; font-weight: 650; margin-bottom: .45rem; }
.form-check-input:checked { background-color: var(--forest); border-color: var(--forest); }
.form-check-input:focus { border-color: #6699f5; box-shadow: 0 0 0 3px #2563eb18; }
.card { border-radius: 16px; border-color: var(--line); background: var(--paper); }
.shadow-sm { box-shadow: 0 3px 16px #163b7a08 !important; }
.shadow-lg { box-shadow: 0 16px 40px #163b7a10 !important; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: -100px; background: white; color: var(--forest); padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: #fffffff5; backdrop-filter: blur(14px); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.site-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 26px; font-weight: 750; letter-spacing: -.07em; color: var(--ink); white-space: nowrap; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; color: var(--forest); font-size: 30px; }
.brand-dot { color: var(--clay); margin-left: -6px; }
.desktop-nav { display: flex; gap: 25px; }
.desktop-nav a { font-size: .86rem; text-decoration: none; font-weight: 550; color: #627596; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--forest); }
.desktop-nav a.active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px; }
.site-header-actions { display: flex; align-items: center; gap: 16px; }
.header-login { color: var(--ink); font-size: .85rem; text-decoration: none; font-weight: 600; }
.site-header-actions select { max-width: 95px; background: transparent; border: 0; color: var(--muted); padding: .5rem !important; font-size: .78rem; }
.mobile-navigation { display: none; }
.site-body { min-height: 65vh; }
.site-body:focus { outline: none; }
/* Public pages */
.cp-home { background: var(--paper); }
.home-hero { background: #eef4ff; overflow: hidden; }
.home-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 70px; padding-top: 70px; padding-bottom: 80px; }
.editorial-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--forest); margin-bottom: 24px; }
.editorial-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex-shrink: 0; }
.home-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 4.3vw, 4.5rem); line-height: 1.07; letter-spacing: -.055em; font-weight: 400; max-width: 650px; margin-bottom: 24px; }
.home-hero-description { max-width: 470px; color: var(--muted); font-size: 1.04rem; line-height: 1.8; margin-bottom: 26px; }
.home-search { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid #cbdbf6; border-radius: 12px; padding: 7px 8px 7px 18px; margin-bottom: 22px; max-width: 510px; box-shadow: 0 5px 15px #14284905; }
.home-search > i { color: #7c94bb; }
.home-search input { width: 100%; min-width: 0; border: none; background: none; min-height: 40px; color: var(--ink); font-size: .88rem; }
.home-search input:focus { outline: none; }
.home-search:focus-within { outline: 2px solid #6699f5; outline-offset: 3px; }
.home-search button { width: 43px; height: 43px; flex-shrink: 0; border: none; border-radius: 8px; background: var(--forest); color: white; }
.home-search button:hover { background: var(--forest-dark); }
.home-hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.home-secondary-link { font-size: .85rem; font-weight: 600; text-decoration: none; }
.home-hero-note { color: var(--muted); font-size: .75rem; margin-top: 22px; margin-bottom: 0; }
.home-hero-note i { color: var(--forest); margin-right: 5px; }
.home-hero-visual { position: relative; padding: 0 8px 32px; }
.hero-art-frame { border-radius: 180px 180px 12px 12px; overflow: hidden; background: #dceaff; }
.hero-art-frame img { display: block; width: 100%; height: auto; max-height: 490px; object-fit: cover; }
.hero-community-card { position: absolute; left: -30px; right: 30px; bottom: 58px; display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid #dae5f8; background: #ffffff; box-shadow: 0 14px 35px #12366b12; border-radius: 13px; }
.hero-community-icon { background: var(--sage); color: var(--forest); border-radius: 12px; display: grid; place-items: center; width: 46px; height: 46px; font-size: 22px; flex-shrink: 0; }
.hero-community-card strong { display: block; font-size: .88rem; line-height: 1.5; }
.hero-community-card div > span { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; }
.hero-community-card > i:last-child { margin-left: auto; }
.hero-art-caption { position: absolute; bottom: 0; right: 8px; color: var(--muted); font-size: .67rem; letter-spacing: .07em; text-transform: uppercase; }
.cp-home > section.py-5 { padding-top: 80px !important; padding-bottom: 80px !important; }
.cp-home h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 400 !important; }
.cp-hero-banner { background: var(--forest-dark); }
.cp-hero-banner h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400 !important; letter-spacing: -.045em; color: white; }
.cp-hero-banner::before, .cp-hero-banner::after, .cp-hero-overlay { display: none; }
.cp-hero-banner .text-white-75, .cp-hero-banner p.lead { color: #d4e3ff !important; }
.cp-hero-banner > .container { padding-top: 26px; padding-bottom: 26px; }
.cp-hero-banner .btn-light, .cp-hero-banner .btn-outline-light { border-radius: 9px; }
.cp-pill { background: #ffffff12; border: 1px solid #ffffff26; font-size: .72rem; letter-spacing: .05em; padding: .45rem .8rem; }
.cp-stats-strip { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0 !important; }
.cp-stat-number { color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; font-weight: 400; letter-spacing: -.05em; }
.cp-stat-label { color: var(--muted); font-size: .78rem; }
.cp-stats-strip .row > div + div { border-left: 1px solid var(--line); }
.cp-section-tag, .cp-section-tag-light { padding: 0; background: transparent; border-radius: 0; color: var(--forest); letter-spacing: .16em; font-size: .67rem; font-weight: 750; margin-bottom: 8px; }
.cp-section-tag-light { color: #c8ddff; }
.cp-path-card, .cp-feature-card, .cp-pricing-card, .cp-story-card, .cp-story-featured, .cp-final-cta { background: var(--paper); border: 1px solid var(--line) !important; border-radius: 14px; box-shadow: none !important; }
.cp-path-card::before { display: none; }
.cp-path-card { border-top: 3px solid var(--forest) !important; }
.cp-path-leader { border-top-color: #b67b56 !important; }
.cp-path-pill { background: var(--sage); color: var(--forest); font-size: .73rem; padding: .3rem .7rem; }
.cp-feature-card { padding: 28px; }
.cp-feature-card:has(> .card-body) { padding: 0; }
.cp-feature-card:hover, .cp-pricing-card:hover, .cp-story-card:hover { transform: translateY(-3px); border-color: #a3c3ff !important; box-shadow: 0 8px 24px #14284908 !important; }
.cp-feature-icon, .cp-features-hero-icon { border-radius: 12px; width: 48px; height: 48px; background: var(--sage); color: var(--forest); font-size: 22px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.cp-feature-card h5 { font-size: 1.05rem; }
.cp-feature-card p { font-size: .88rem; }
.cp-testimonials { background: #183b75; color: #eff5ff; }
.cp-testimonials h2 { color: #eff5ff; }
.cp-testimonial-card { background: #ffffff06; border: 1px solid #ffffff24; border-radius: 13px; padding: 30px; }
.cp-testimonial-card p { font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; line-height: 1.7; }
.cp-testimonial-card .fw-bold { color: #c3daff; font-size: .85rem; }
.cp-testimonials .text-white-75 { color: #c3d4f5 !important; }
.cp-faq-item { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; margin-bottom: 12px; }
.cp-faq-item[open] { border-color: #a7c7ff; background: var(--paper); }
.cp-faq-summary { padding: 20px; font-size: .9rem; color: var(--ink); }
.cp-faq-body { color: var(--muted); font-size: .87rem; padding: 0 20px 20px; }
.cp-pricing-featured { border: 2px solid var(--forest) !important; }
.cp-pricing-badge { background: var(--forest); }
.cp-price-amount { color: var(--forest); }
.cp-footer { background: #10234b; color: #dce8ff; padding-top: 64px !important; }
.cp-footer h4 { font-size: 1.7rem; letter-spacing: -.05em; }
.cp-footer h6 { font-size: .78rem; letter-spacing: .04em; }
.cp-footer p { max-width: 350px; }
.cp-footer-link { color: #c7d9ff; font-size: .8rem; margin-bottom: 10px; }
.cp-footer .cp-social-icon { background: transparent; border: 1px solid #ffffff2b; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; font-size: .9rem; opacity: 1; }
.cp-auth-card { border-radius: 18px; background: var(--paper); }
.cp-auth-side h2 { color: white; }
.cp-auth-hero .cp-logo-text { color: white; }
/* Workspace frame and navigation */
.platform-admin-layout { display: flex; min-height: 100dvh; background: var(--canvas); }
.platform-sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4668a3 transparent; background: var(--forest-dark); color: #e1ebff; width: 250px; flex: 0 0 250px; padding: 24px 16px 16px; display: flex; flex-direction: column; }
.sidebar-brand { display: flex; gap: 10px; align-items: center; color: #f5f8ff; text-decoration: none; font-size: 26px; letter-spacing: -.07em; padding: 0 12px 25px; border: 0; margin: 0; }
.sidebar-brand:hover { color: white; }
.sidebar-brand .brand-mark { color: #97c5ff; }
.sidebar-brand .brand-dot { color: #91bbff; margin: 0; }
.sidebar-workspace { display: flex; align-items: center; gap: 10px; padding: 14px 10px; border-top: 1px solid #ffffff19; border-bottom: 1px solid #ffffff19; margin-bottom: 22px; }
.workspace-avatar { width: 35px; height: 35px; border: 1px solid #ffffff2b; border-radius: 9px; display: grid; place-items: center; color: #a2ceff; font-size: 16px; }
.sidebar-workspace strong { font-size: .76rem; display: block; color: #eff5ff; font-weight: 600; }
.sidebar-workspace small { display: block; font-size: .63rem; color: #a4bce4; margin-top: 2px; }
.sidebar-menu { gap: 24px; display: flex; flex-direction: column; }
.sidebar-group h2 { color: #91acd6; font-size: .59rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; margin: 0 12px 10px; }
.sidebar-link { padding: 10px 12px; border-radius: 7px; color: #c1d4f5; font-size: .78rem; gap: 11px; font-weight: 450; margin-bottom: 3px; }
.sidebar-link i { width: 18px; font-size: 13px; opacity: .85; }
.sidebar-link:hover { background: #ffffff0b; color: white; }
.sidebar-link.active { background: #d8e8ff; color: #153b78; font-weight: 650; }
.sidebar-footer { border-top: 1px solid #ffffff19; margin-top: 26px; padding-top: 16px; }
.sidebar-footer a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: #c2d4f4; text-decoration: none; font-size: .74rem; }
.sidebar-footer a i:last-child:not(:first-child) { margin-left: auto; }
.platform-admin-content { flex: 1; min-width: 0; }
.workspace-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 38px; }
.workspace-heading { display: flex; gap: 16px; align-items: center; }
.workspace-eyebrow { color: #7b8da8; font-size: .58rem; font-weight: 650; letter-spacing: .16em; }
.workspace-heading p { margin: 2px 0 0; font-weight: 600; font-size: .86rem; letter-spacing: -.02em; }
.workspace-tools { display: flex; align-items: center; gap: 24px; }
.workspace-tools a { display: flex; align-items: center; gap: 7px; font-size: .73rem; text-decoration: none; color: var(--muted); }
.workspace-tools .workspace-account { background: var(--sage); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: var(--forest); border: 1px solid var(--line); }
.workspace-page { max-width: 1700px; margin: 0 auto; }
.workspace-navigation-toggle, .workspace-menu-button, .workspace-scrim { display: none; }
/* Lists, forms and dashboards share the same hierarchy. */
.admin-dashboard, .church-admin-dashboard, .platform-admin-dashboard, .church-info-page { background: var(--canvas); padding: 34px 38px; min-height: auto; }
.dashboard-header, .church-admin-dashboard .dashboard-header, .platform-admin-dashboard .admin-hero, .church-info-page .church-info-header { background: transparent; color: var(--ink); border-radius: 0; padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; box-shadow: none; }
.dashboard-header h2, .church-admin-dashboard .dashboard-title, .platform-admin-dashboard .hero-title, .church-info-page .church-info-title { color: var(--ink); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 650; margin: 0; letter-spacing: -.045em; }
.dashboard-header p, .church-admin-dashboard .dashboard-subtitle { color: var(--muted); opacity: 1; font-size: .86rem; margin-top: 8px; }
.dashboard-header .btn-light, .dashboard-header .dashboard-btn { background: var(--forest); color: white; border-color: var(--forest); box-shadow: none; border-radius: 9px; }
.dashboard-header .btn-light:hover, .dashboard-header .dashboard-btn:hover { background: var(--forest-dark); border-color: var(--forest-dark); }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card, .church-admin-dashboard .stat-card, .dashboard-content .dashboard-stat-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 2px 5px #14284903; }
.stat-card h4, .church-admin-dashboard .stat-value, .dashboard-content .dashboard-stat-card h3 { color: var(--ink); font-size: 1.7rem; font-weight: 650; letter-spacing: -.045em; }
.stat-card p, .church-admin-dashboard .stat-label { color: var(--muted); font-size: .77rem; }
.stat-icon, .church-admin-dashboard .stat-icon, .dashboard-content .stat-icon { border-radius: 10px; width: 44px; height: 44px; min-width: 44px; font-size: 18px; }
.stat-icon.bg-blue { background: #e6efff; color: #2863c5; }
.stat-icon.bg-green { background: #e2edff; color: #2563eb; }
.stat-icon.bg-purple { background: #e8eaff; color: #6d67c5; }
.stat-icon.bg-orange { background: #e4efff; color: #3b82f6; }
.dashboard-section, .dashboard-content .admin-card, .church-admin-dashboard .dashboard-panel, .platform-admin-dashboard .admin-panel, .church-info-page .church-info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 26px; box-shadow: 0 3px 10px #14284903; }
.dashboard-content .admin-card { padding: 0; }
.dashboard-section h4, .panel-header h4 { color: var(--ink); font-size: 1.05rem; letter-spacing: -.025em; }
.module-grid { grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 16px; }
.module-card, .church-admin-dashboard .module-card, .platform-admin-dashboard .admin-module-card { display: block; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .18s, background-color .18s; }
.module-card:hover, .church-admin-dashboard .module-card:hover, .platform-admin-dashboard .admin-module-card:hover { background: #eef4ff; border-color: #a8c8ff; box-shadow: none; transform: none; }
.module-card h5, .module-card h6 { color: var(--ink); font-size: .92rem; }
.module-card p { color: var(--muted); font-size: .79rem; line-height: 1.65; }
.module-icon, .church-admin-dashboard .module-icon { color: var(--forest); background: var(--sage); width: 40px; height: 40px; border-radius: 10px; font-size: 17px; display: grid; place-items: center; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--line); }
.admin-table { font-size: .84rem; }
.admin-table thead th, .dashboard-content .admin-table thead th { background: #f0f5ff; color: #607699; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; border-bottom: 1px solid var(--line); padding: 15px 18px; white-space: nowrap; }
.admin-table tbody td, .dashboard-content .admin-table tbody td { color: #4e6384; padding: 18px; font-size: .82rem; border-color: #ebf1fc; background: var(--paper); }
.admin-table tbody tr:hover td, .dashboard-content .admin-table tbody tr:hover td { background: #f2f7ff; }
.admin-table td .text-muted { color: var(--muted) !important; }
.admin-table .btn { border-radius: 7px; }
.admin-table .btn-warning { color: #7b5c2e; background: #f6efdf; border-color: #eadbbf; }
.admin-table .btn-danger { color: #a23c38; background: #fbefeb; border-color: #f0d6ce; }
.admin-table .btn-warning:hover { background: #e9d7b9; }
.admin-table .btn-danger:hover { background: #f1d4cb; }
.badge { border-radius: 5px; padding: .45em .7em; font-size: .65rem; font-weight: 600; letter-spacing: .015em; }
.admin-table .badge.bg-primary { background: #e5efff !important; color: #315c9e; }
.admin-table .badge.bg-success { background: #e5f4ef !important; color: #22745b; }
.admin-table .badge.bg-secondary { background: #edf1f8 !important; color: #677894; }
.admin-table .badge.bg-danger { background: #f8e8df !important; color: #a05734; }
.search-box, .dashboard-content .search-box { width: min(360px,100%); margin-bottom: 22px; }
.search-box input, .dashboard-content .search-box .form-control { min-height: 44px; padding-left: 42px; border-color: var(--line); background: #f3f7ff; font-size: .84rem; }
.search-box i { color: #8099c2; }
.dashboard-content .admin-card-header { background: var(--paper); border-color: var(--line); }
.dashboard-content .admin-card-header .search-box { margin-bottom: 0; }
.empty-state > i, .dashboard-content .empty-state > i { background: var(--sage); color: var(--forest); border-radius: 18px; }
.quick-action-btn, .quick-action-link { background: var(--sage) !important; color: var(--forest) !important; border-color: var(--line) !important; }
.quick-action-btn:hover, .quick-action-link:hover { background: #dce9ff !important; }
.auth-page { background: var(--canvas); }
.auth-card { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 12px 36px #14284908; }
.auth-card h1 { color: var(--ink); }
.auth-icon { background: var(--sage); color: var(--forest); }
.pagination { --bs-pagination-color: var(--forest); --bs-pagination-active-bg: var(--forest); --bs-pagination-active-border-color: var(--forest); }
.spinner-border { color: var(--forest); }
/* Accessible mobile navigation without a JavaScript dependency. */
@media (min-width: 1400px) { .container { max-width: 1200px; } }
@media (max-width: 1199px) {
    .desktop-nav { gap: 16px; }
    .site-header-inner { gap: 16px; }
    .site-header-actions { gap: 10px; }
    .site-header-actions select { display: none; }
    .home-hero-grid { gap: 40px; }
    .platform-sidebar { width: 224px; flex-basis: 224px; }
    .admin-dashboard, .church-admin-dashboard, .platform-admin-dashboard, .church-info-page { padding: 28px; }
    .workspace-topbar { padding: 18px 28px; }
}
@media (max-width: 991px) {
    .desktop-nav { display: none; }
    .site-header-inner { min-height: 76px; }
    .site-header-actions { margin-left: auto; }
    .mobile-navigation { display: block; }
    .mobile-navigation summary { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: .8rem; list-style: none; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
    .mobile-navigation summary::-webkit-details-marker { display: none; }
    .mobile-navigation nav { position: absolute; top: calc(100% - 1px); left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 24px; box-shadow: 0 15px 20px #1428490d; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .mobile-navigation nav a { padding: 8px; text-decoration: none; }
    .home-hero-grid { gap: 32px; padding-top: 44px; padding-bottom: 50px; }
    .home-hero h1 { font-size: 2.85rem; }
    .hero-community-card { left: -12px; right: 15px; padding: 14px; }
    .hero-community-card strong { font-size: .76rem; }
    .home-hero-links { gap: 15px; }
    .platform-sidebar { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 62; }
    .workspace-navigation-toggle { display: block; position: absolute; left: 28px; top: 30px; width: 35px; height: 30px; opacity: 0; z-index: 2; cursor: pointer; }
    .workspace-menu-button { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 23px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
    .workspace-menu-button span { display: none; }
    .workspace-navigation-toggle:focus-visible ~ main .workspace-menu-button { outline: 3px solid var(--clay); outline-offset: 3px; }
    .workspace-navigation-toggle:checked ~ .platform-sidebar { transform: translateX(0); }
    .workspace-navigation-toggle:checked ~ .workspace-scrim { display: block; position: fixed; inset: 0; z-index: 61; background: #142d2580; }
}
@media (max-width: 767px) {
    .site-brand { font-size: 23px; }
    .brand-mark { font-size: 25px; }
    .site-header-actions .btn { font-size: .77rem; padding: .6rem .8rem; }
    .site-header-actions .btn i { display: none; }
    .header-login { font-size: .77rem; }
    .home-hero-grid { grid-template-columns: 1fr; padding-top: 42px; gap: 32px; }
    .home-hero h1 { font-size: clamp(2.7rem,9.5vw,4rem); max-width: 540px; }
    .home-hero-description { font-size: .98rem; }
    .editorial-eyebrow { margin-bottom: 18px; font-size: .65rem; }
    .home-hero-visual { max-width: 460px; width: 100%; margin: 0 auto; padding: 0 16px 30px; }
    .hero-art-frame img { max-height: 360px; }
    .hero-community-card { left: 0; right: 32px; bottom: 52px; }
    .hero-art-caption { right: 16px; font-size: .59rem; }
    .cp-home > section.py-5 { padding-top: 48px !important; padding-bottom: 48px !important; }
    .cp-stats-strip .row > div:nth-child(3) { border-left: none; }
    .cp-stat-number { font-size: 1.8rem; }
    .cp-footer { padding-top: 44px !important; }
    .workspace-topbar { padding: 16px 18px; min-height: 78px; }
    .workspace-navigation-toggle { left: 18px; top: 25px; }
    .workspace-tools { gap: 10px; }
    .workspace-tools a span { display: none; }
    .workspace-heading { gap: 10px; }
    .workspace-eyebrow { font-size: .52rem; }
    .workspace-heading p { font-size: .76rem; }
    .admin-dashboard, .church-admin-dashboard, .platform-admin-dashboard, .church-info-page { padding: 24px 16px; }
    .dashboard-header, .church-admin-dashboard .dashboard-header { padding-bottom: 22px; margin-bottom: 22px; align-items: flex-start; }
    .dashboard-header h2 { font-size: 1.55rem; }
    .dashboard-header p { font-size: .8rem; }
    .dashboard-section { padding: 18px; }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .stat-card { padding: 16px; flex-wrap: wrap; gap: 10px; }
    .stat-card h4 { font-size: 1.4rem; overflow-wrap: anywhere; }
    .module-grid { grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
    .admin-table { min-width: 650px; }
    .dashboard-section > .table-responsive { border-radius: 8px; }
    .cp-auth-hero .d-flex.justify-content-between { gap: 16px; flex-wrap: wrap; }
}
@media (max-width: 400px) {
    .site-header-inner { gap: 8px; }
    .site-brand { font-size: 21px; gap: 6px; }
    .site-header-actions { gap: 8px; }
    .site-header-actions .header-login { display: none; }
    .mobile-navigation summary span { display: none; }
    .workspace-tools a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Secondary content uses the same surfaces and accent palette. */
.cp-learning-card, .cp-search-filter-card, .cp-search-result-card, .cp-story-share-card, .admin-card { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: none; }
.cp-learning-card:hover, .cp-search-result-card:hover { border-color: #a3c3ff; box-shadow: 0 5px 16px #14284908; }
.cp-learning-icon, .cp-search-result-icon, .cp-search-empty-icon, .cp-stories-empty-icon, .cp-story-share-icon, .message-icon { color: var(--forest); background: var(--sage); border-radius: 12px; }
.cp-learning-category, .cp-search-category, .cp-story-category { color: var(--forest); background: var(--sage); }
.cp-learning-list i, .cp-search-arrow, .cp-story-read-link, .cp-story-title, .donation-amount { color: var(--forest); }
.cp-search-filter-btn.active, .cp-story-filter.active { background: var(--forest); color: white; border-color: var(--forest); }
.cp-search-filter-btn:hover, .cp-story-filter:hover { color: var(--forest); background: var(--sage); border-color: #b5ccf8; }
.cp-featured-story-image, .cp-story-image-placeholder { background: #2b58a5; color: #dceaff; }
.cp-features-hero-card h4, .cp-learning-hero-card h4, .cp-stories-hero-card h4 { color: white; }
.cp-search-button { background: var(--forest); border-radius: 8px; }
.cp-search-button:hover { background: #3477fa; }
.cp-search-wrapper { border-radius: 12px; }
.cp-story-filter { border-radius: 8px; }
.cp-learning-step { color: var(--forest); background: var(--sage); }
.admin-card-header { border-color: var(--line); background: var(--paper); }
.donation-table th { background: #f0f5ff; color: var(--muted); }
.donation-type, .payment-method { background: var(--sage); color: var(--forest); }
.message-item:hover { background: #edf4ff; }
.message-tabs .btn.active { color: white; background: var(--forest); border-color: var(--forest); }
.stat-icon.bg-red { background: #f7e7df; color: #9f5038; }
.stat-icon.bg-cyan { background: #e3edff; color: #3763a8; }
.stat-icon.bg-dark { background: #e9effc !important; color: #586c91; }
@media (max-width: 767px) { .cp-featured-story-content { padding: 24px; } .cp-featured-story-image { min-height: 220px; } }
/* Explicit colors also support the project's Bootstrap 5.0 stylesheet. */
.btn-primary { background-color: var(--forest); border-color: var(--forest); color: white; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { background-color: var(--forest-dark); border-color: var(--forest-dark); color: white; }
.btn-primary:disabled, .btn-primary.disabled { background-color: var(--forest); border-color: var(--forest); }
.btn-primary:focus { box-shadow: 0 0 0 3px #2563eb30; }
.btn-outline-primary { color: var(--forest); border-color: #9bbaff; }
.btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary.active { color: white; background-color: var(--forest); border-color: var(--forest); }
.btn-outline-primary:focus { box-shadow: 0 0 0 3px #2563eb30; }
.home-hero h1 { white-space: pre-line; }

/* Blue glass edition: translucent surfaces over a softly lit canvas. */
:root {
    --ink: #142849;
    --muted: #667994;
    --forest: #2563eb;
    --forest-dark: #1749bb;
    --canvas: #edf3ff;
    --paper: #ffffff;
    --line: #d9e5fa;
    --sage: #eaf1ff;
    --clay: #3b82f6;
    --glass: rgba(255,255,255,.66);
    --glass-border: rgba(255,255,255,.86);
    --glass-shadow: 0 14px 44px rgba(52,96,171,.075), inset 0 1px 0 rgba(255,255,255,.8);
}
body { background: radial-gradient(ellipse at 12% 5%, #b9d8ff70, transparent 40%), radial-gradient(ellipse at 95% 30%, #d5d2ff55, transparent 35%), #edf3ff; }
h1,h2,h3,h4,h5,h6 { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.btn { border-radius: 12px; }
.btn-primary { background: linear-gradient(135deg,#3987ff,#2563eb); border: 1px solid #397bfb; box-shadow: 0 5px 13px #2563eb20, inset 0 1px 0 #ffffff28; }
.btn-primary:hover { background: linear-gradient(135deg,#2775f1,#1e50cd); box-shadow: 0 8px 20px #2563eb30; }
.btn-outline-primary { background: #ffffff45; }
.site-header { background: rgba(245,249,255,.74); border-bottom: 1px solid #ffffffc9; backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 4px 30px #3169b507; }
.site-brand { font-weight: 750; letter-spacing: -.065em; }
.brand-mark { color: #3179ed; }
.desktop-nav a { color: #587091; }
.desktop-nav a.active { color: #2563eb; }
.home-hero { position: relative; background: radial-gradient(ellipse at 90% 28%, #a8cfff8c, transparent 52%), radial-gradient(ellipse at 5% 0%, #e4efff, transparent 60%), linear-gradient(125deg,#f3f8ff,#edf3ff 55%,#e6edff); }
.home-hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; top: 170px; background: #a8b9ff36; filter: blur(80px); border-radius: 50%; pointer-events: none; }
.home-hero-grid { position: relative; gap: 64px; }
.home-hero h1 { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: clamp(2.65rem,4.7vw,4.3rem); font-weight: 750; letter-spacing: -.065em; line-height: 1.08; color: #142b54; }
.home-hero-description { color: #607697; }
.editorial-eyebrow { color: #3675cf; letter-spacing: .11em; background: #ffffff65; border: 1px solid #ffffffb8; border-radius: 999px; padding: 7px 12px; box-shadow: inset 0 1px 0 #ffffffb3; }
.editorial-eyebrow > span { background: #4487f6; box-shadow: 0 0 0 4px #3987ff12; }
.home-search { background: #ffffff83; border: 1px solid #ffffffed; backdrop-filter: blur(20px); border-radius: 16px; box-shadow: var(--glass-shadow); padding: 8px 9px 8px 18px; }
.home-search input { color: #263f66; }
.home-search button { background: linear-gradient(135deg,#3987ff,#2563eb); border-radius: 11px; box-shadow: 0 4px 12px #2563eb24; }
.home-search button:hover { background: #1e50cd; }
.home-hero-note { color: #6a7e9d; }
.hero-art-frame { border-radius: 36px; border: 1px solid #ffffffd9; padding: 12px; background: #ffffff52; box-shadow: 0 22px 65px #3b6cba18,inset 0 1px 0 white; backdrop-filter: blur(18px); transform: rotate(2deg); }
.hero-art-frame img { border-radius: 26px; opacity: .94; }
.hero-community-card { background: #f9fcffcf; border: 1px solid #ffffffed; border-radius: 20px; backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 18px 40px #3463aa17,inset 0 1px 0 white; }
.hero-community-icon { background: linear-gradient(135deg,#e4efff,#f5f8ff); border: 1px solid #ffffff; color: #3479ed; border-radius: 14px; }
.hero-art-caption { color: #6e87ac; }
.cp-home { background: transparent; }
.cp-stats-strip { background: #ffffff65; border-top: 1px solid #ffffff; border-bottom: 1px solid #ffffff; backdrop-filter: blur(20px); }
.cp-stat-number { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-weight: 700; letter-spacing: -.06em; color: #245cae; }
.cp-home h2 { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-weight: 700 !important; letter-spacing: -.045em; }
.bg-light { background: #eaf2ff78 !important; }
.cp-path-card,.cp-feature-card,.cp-pricing-card,.cp-story-card,.cp-story-featured,.cp-final-cta,.cp-learning-card,.cp-search-filter-card,.cp-search-result-card,.cp-story-share-card {
    background: var(--glass); border: 1px solid var(--glass-border) !important; border-radius: 22px; backdrop-filter: blur(20px); box-shadow: var(--glass-shadow) !important;
}
.cp-path-card { border-top: 1px solid var(--glass-border) !important; }
.cp-path-pill { background: #e2edff; color: #356bc0; }
.cp-feature-icon,.cp-learning-icon,.cp-search-result-icon { background: linear-gradient(135deg,#dfeaff,#f1f7ff); border: 1px solid #fff; border-radius: 15px; color: #3d7ced; }
.cp-hero-banner { background: radial-gradient(ellipse at 85% 25%,#4577cf70,transparent 55%),linear-gradient(130deg,#102957,#194a9a); border-bottom: 1px solid #ffffff26; }
.cp-hero-banner h1 { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-weight: 700 !important; }
.cp-testimonials { background: radial-gradient(ellipse at 80% 0%,#326acc70,transparent 70%),#142e5c; }
.cp-testimonial-card { background: #ffffff09; border-color: #ffffff24; border-radius: 22px; backdrop-filter: blur(16px); }
.cp-testimonial-card p { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: 1rem; }
.cp-faq-item { background: #ffffff8a; border: 1px solid #ffffffdf; border-radius: 15px; backdrop-filter: blur(15px); }
.cp-faq-item[open] { background: #ffffffba; border-color: #bfdaff; }
.cp-footer { background: linear-gradient(145deg,#10264f,#122f62); border-top: 1px solid #ffffff18; }
.cp-auth-card,.auth-card { background: #ffffffde; border: 1px solid #ffffffd9; border-radius: 24px; backdrop-filter: blur(24px); }
.platform-admin-layout { background: radial-gradient(ellipse at 20% 0%,#d5e8ff99,transparent 50%),radial-gradient(ellipse at 100% 40%,#dbe2ff66,transparent 50%),#edf3ff; }
.platform-sidebar { background: linear-gradient(165deg,#102955f5,#132f63fa 65%,#133773f5); border-right: 1px solid #ffffff1a; backdrop-filter: blur(24px); box-shadow: 6px 0 40px #20477e08; }
.sidebar-brand .brand-mark { color: #8fbfff; }
.sidebar-brand .brand-dot { color: #7cb0ff; }
.sidebar-workspace { background: #ffffff05; border: 1px solid #ffffff13; border-radius: 14px; padding: 12px; }
.workspace-avatar { background: #ffffff0d; border-color: #ffffff20; color: #a9ceff; border-radius: 10px; }
.sidebar-group h2 { color: #7e9cca; }
.sidebar-link { border: 1px solid transparent; border-radius: 9px; padding: 9px 11px; }
.sidebar-link.active { background: linear-gradient(110deg,#4b8fff30,#80b2ff17); border: 1px solid #9ac4ff35; color: #eff6ff; box-shadow: inset 0 1px 0 #ffffff0b; }
.sidebar-link.active i { color: #8fc3ff; }
.sidebar-link:hover { background: #ffffff09; }
.workspace-topbar { background: #f8fbff9e; border-bottom: 1px solid #ffffffcc; backdrop-filter: blur(20px) saturate(160%); }
.workspace-tools .workspace-account { background: linear-gradient(135deg,#dceaff,#f6faff); border-color: #fff; color: #407ce0; box-shadow: 0 3px 10px #2a66ca0a; }
.admin-dashboard,.church-admin-dashboard,.platform-admin-dashboard,.church-info-page { background: transparent; }
.dashboard-header,.church-admin-dashboard .dashboard-header,.platform-admin-dashboard .admin-hero,.church-info-page .church-info-header { background: transparent; border-bottom: 1px solid #cbdcf17a; }
.dashboard-header .btn-light,.dashboard-header .dashboard-btn { background: linear-gradient(135deg,#3987ff,#2563eb); border-color: #397bfb; border-radius: 12px; box-shadow: 0 5px 15px #2563eb22; }
.stat-card,.church-admin-dashboard .stat-card,.dashboard-content .dashboard-stat-card,.dashboard-section,.dashboard-content .admin-card,.church-admin-dashboard .dashboard-panel,.platform-admin-dashboard .admin-panel,.church-info-page .church-info-card,.admin-card {
    background: #ffffff9c; border: 1px solid #ffffffed; border-radius: 20px; backdrop-filter: blur(20px); box-shadow: var(--glass-shadow);
}
.stat-card h4,.church-admin-dashboard .stat-value { color: #19355f; }
.stat-icon { border-radius: 13px; border: 1px solid #ffffffa6; }
.module-card,.church-admin-dashboard .module-card,.platform-admin-dashboard .admin-module-card { background: #ffffff70; border: 1px solid #d9e7fb9e; border-radius: 16px; }
.module-card:hover,.church-admin-dashboard .module-card:hover,.platform-admin-dashboard .admin-module-card:hover { background: #ffffffce; border-color: #a8caff; box-shadow: 0 6px 16px #2563eb08; }
.module-icon { background: #e6efff; border: 1px solid #ffffffc2; color: #3e7bed; border-radius: 12px; }
.admin-table thead th,.dashboard-content .admin-table thead th { background: #eaf2ff9c; color: #647fa8; border-color: #dbe7fa; }
.admin-table tbody td,.dashboard-content .admin-table tbody td { background: transparent; border-color: #dce7f775; }
.admin-table tbody tr:hover td,.dashboard-content .admin-table tbody tr:hover td { background: #e8f2ff88; }
.dashboard-content .admin-card-header,.admin-card-header { background: transparent; border-color: #dbe6f5a1; }
.form-control,.form-select,.cp-input { background: #ffffffa8; border-color: #cfddf4; border-radius: 12px; color: #233d66; }
.search-box input,.dashboard-content .search-box .form-control { background: #f5f9ffb3; border-color: #d5e3f9; border-radius: 12px; }
.form-control:focus,.form-select:focus { border-color: #80b2ff; box-shadow: 0 0 0 4px #4285f414; background: #ffffffdc; }
.badge { border-radius: 7px; }
@media (max-width:991px) { .mobile-navigation nav { background: #f5f9fff5; backdrop-filter: blur(24px); border-color: #ffffff; } }
@media (max-width:767px) { .home-hero-grid { gap: 36px; } .home-hero h1 { font-size: clamp(2.6rem,10.4vw,3.8rem); } .hero-art-frame { border-radius: 28px; padding: 9px; } .hero-art-frame img { border-radius: 21px; } }
.admin-table th:first-child, .admin-table td:first-child { min-width: 230px; }
@media (max-width: 767px) { .stat-card { flex-direction: column; align-items: flex-start; } }
@media (max-width: 991px) { .workspace-navigation-toggle:checked ~ .workspace-scrim { background: #142d5580; } }
/* Keep sticky navigation and glass content on independent paint layers. */
.platform-sidebar { backdrop-filter: none; z-index: 5; }
.platform-admin-content { isolation: isolate; }
@media (max-width: 991px) { .platform-sidebar { z-index: 62; } }
.site-header { isolation: isolate; background: transparent; backdrop-filter: none; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(245,249,255,.78); backdrop-filter: blur(24px) saturate(160%); clip-path: inset(0); }
