/* Stage 1: Home, /conoce and /signup. Activated only while a marked surface is mounted. */
.bq-theme-trigger{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #d8e9f4;border-radius:50%;background:#fff;color:#0d4773;cursor:pointer;list-style:none;box-shadow:0 6px 20px #0d47730a}
.bq-theme-trigger::-webkit-details-marker{display:none}.bq-theme-trigger svg{width:21px;height:21px}.bq-theme-trigger .bq-theme-moon{display:none}
.bq-theme-trigger:hover{background:#e8f5fe}.bq-theme-trigger:focus-visible,.bq-theme-menu input:focus-visible{outline:3px solid #338fd0;outline-offset:4px}
.bq-theme-menu{box-sizing:border-box;width:244px;padding:16px;border:1px solid #ccdfeb;border-radius:18px;background:#fff;color:#0d2c45;box-shadow:0 18px 50px #07152330;font-family:"Avenir Next",Avenir,system-ui,sans-serif;text-align:left;z-index:1100}
.bq-theme-menu>strong{display:block;font-size:15px;margin:0 8px 10px}.bq-theme-menu fieldset{border:0;margin:0;padding:0;display:grid;gap:4px}.bq-theme-menu label{display:flex;align-items:center;gap:12px;padding:11px 10px;border-radius:11px;cursor:pointer;font-size:15px;font-weight:650;line-height:1.35}.bq-theme-menu label:has(input:checked){background:#e8f5fe}.bq-theme-menu label:hover{background:#f0f6fa}.bq-theme-menu label>svg{width:20px;height:20px;flex:none}.bq-theme-menu small{display:block;font-size:12px;font-weight:500;color:#60758a;margin-top:3px}.bq-theme-menu input{margin:0 0 0 auto;width:17px;height:17px;flex:none;accent-color:#1669a5}.bq-theme-picker{position:relative;flex:none}.bq-theme-picker>.bq-theme-menu{position:absolute;right:0;top:calc(100% + 10px)}.bq-theme-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
/* Explicit colors for browser chrome override legacy inline light backgrounds. */
html[data-bq-theme=dark]{color-scheme:dark!important;background:#0c1927!important;--ink:#e5eef7;--muted-ink:#a9bbcc;--brand-deep:#9cd1f4;--brand-dark:#82c5ef;--brand-light:#1b344a;--paper:#142638;--page:#0c1927;--line:#30485d;--background:var(--page);--foreground:var(--ink);--card:var(--paper);--card-foreground:var(--ink);--popover:var(--paper);--popover-foreground:var(--ink);--secondary:#1b344a;--secondary-foreground:#d8edfc;--muted:#1b3043;--muted-foreground:var(--muted-ink);--accent:#203c54;--accent-foreground:#e5eef7;--border:var(--line);--input:var(--line)}
html[data-bq-theme=dark] body{background:#0c1927!important;color:#e5eef7}
html[data-bq-theme=dark] .bq-theme-trigger{background:#172c40;border-color:#385167;color:#bbdff7}html[data-bq-theme=dark] .bq-theme-sun{display:none}html[data-bq-theme=dark] .bq-theme-trigger .bq-theme-moon{display:block}
html[data-bq-theme=dark] .bq-theme-menu{background:#142638;color:#e5eef7;border-color:#385167}html[data-bq-theme=dark] .bq-theme-menu label:hover,html[data-bq-theme=dark] .bq-theme-menu label:has(input:checked){background:#223e55}html[data-bq-theme=dark] .bq-theme-menu small{color:#a9bbcc}html[data-bq-theme=dark] .bq-theme-menu input{accent-color:#8ecfff}
/* Home and its account / installation dialogs, including portaled popovers. */
html[data-bq-theme=dark] .app-shell{background:radial-gradient(circle at 15% 5%,#193b5544,transparent 28rem),linear-gradient(180deg,#102235,#0c1927)}
html[data-bq-theme=dark] .app-shell::before{opacity:.12}html[data-bq-theme=dark] .ambient{border-color:#395f7944}
html[data-bq-theme=dark] :is(.edition-pill,.category-header-info,.membership-notice,.about-app-link,.offline-landing-card,.home-account-content,.account-login-dialog,.install-dialog){background:#142638;border-color:#30485d;color:#e5eef7;box-shadow:0 12px 30px #0002}
html[data-bq-theme=dark] :is(.about-app-link,.offline-landing-card,.category-header-info):hover{background:#1b3247}
html[data-bq-theme=dark] :is(.membership-notice p[lang=es],.about-app-link em,.about-app-link em[lang=es]){color:#a9bbcc}
html[data-bq-theme=dark] :is(.home-account-content a,.home-account-content button,.home-account-content span,.account-login-link,.account-login-about,.account-login-eyebrow,.install-first-heading){color:#a8d9f8}
html[data-bq-theme=dark] :is(.account-signout,.account-login-dialog input,.account-login-dialog select,.install-first,.install-steps li,.install-first-cards li,.step-icon,.step-number,.install-language button,.install-device button,.installation-dialog .installation-action,.offline-landing-icon){background:#1b3043;border-color:#385167;color:#d4eafa}
html[data-bq-theme=dark] :is(.install-button,.account-login-dialog form button,.install-first .install-first-primary,.installation-dialog .installation-action-primary,.install-language button[aria-pressed=true],.install-device button[aria-pressed=true]){background:#246693;color:#fff}
html[data-bq-theme=dark] :is(.install-confirmed,.offline-landing-icon.is-ready,.offline-network-pill.is-online,.account-login-notice){background:#173b32;color:#a1e1c3;border-color:#366759}
html[data-bq-theme=dark] :is(.install-tip,.install-first-steps .install-tip,.category-access-notice,.offline-network-pill.is-offline){background:#3b3020;color:#f2d795}
html[data-bq-theme=dark] .account-login-error{background:#452733;color:#ffbdc5}
html[data-bq-theme=dark] .install-first .install-first-secondary{color:#a8d9f8}
/* Signup keeps its category gradients and all purchase behavior. */
html[data-bq-theme=dark] .account-install-reminder{background:#1b3043;color:#d4eafa;border-color:#385167}
html[data-bq-theme=dark] .account-install-reminder p[lang=en]{color:#bdcbd7}
html[data-bq-theme=dark] .account-install-reminder>a{color:#a8d9f8}
html[data-bq-theme=dark] .signup-portal{--sp-ink:#e5eef7;--sp-muted:#a9bbcc;--sp-blue:#a8d9f8;--sp-line:#30485d;background:#0c1927;color:var(--sp-ink)}
html[data-bq-theme=dark] :is(.sp-summary,.sp-install,.sp-church-contact,.sp-result,.sp-actions button){background:#142638;border-color:#30485d}
html[data-bq-theme=dark] :is(.sp-lang,.sp-tabs,.sp-auth-tabs,.sp-device-tabs,.sp-install-steps li,.sp-summary input,.sp-no-slot){background:#1b3043;border-color:#385167;color:#d4eafa!important}
html[data-bq-theme=dark] :is(.sp-lang button[aria-pressed=true],.sp-auth-tabs button[aria-pressed=true],.sp-step,.sp-install-steps b,.sp-result-icon){background:#294a64;color:#d4eafa}
html[data-bq-theme=dark] :is(.sp-primary,.sp-tabs button[aria-pressed=true],.sp-device-tabs button[aria-pressed=true]){background:#246693;color:#fff}
html[data-bq-theme=dark] .sp-category.is-selected{box-shadow:0 0 0 3px #0c1927,0 0 0 5px #8ecfff,0 12px 28px #0002}
html[data-bq-theme=dark] :is(.sp-trial,.sp-warning,.sp-pending-cart){background:#3b3020;border-color:#705c37;color:#f2d795}
html[data-bq-theme=dark] :is(.sp-trial p,.sp-trial>svg){color:#f2d795}
html[data-bq-theme=dark] :is(.sp-eyebrow,.sp-feature-row svg,.sp-church-contact>svg,.sp-install-visual svg){color:#8ecfff}
html[data-bq-theme=dark] :is(.sp-signed,.sp-subscription){color:#a1e1c3}html[data-bq-theme=dark] :is(.sp-message,.sp-result-paid){background:#173b32;border-color:#366759}
html[data-bq-theme=dark] :is(.sp-error,.sp-result-unpaid,.sp-result-canceled){background:#452733;border-color:#714454;color:#ffbdc5}
/* Standalone marketing page. */
html[data-bq-theme=dark] [data-bq-theme-surface=conoce]{--muted:#a9bbcc;--deep:#a8d9f8;--blue:#8ecfff;--ice:#1b3043;--line:#30485d}
html[data-bq-theme=dark] :is(.site-header,.site-footer,.program,.price-card,.price-card.church-price,.contact-card){background:#142638;border-color:#30485d}
html[data-bq-theme=dark] .hero{background:radial-gradient(circle at 80% 8%,#22527366,transparent 35%),linear-gradient(160deg,#102235,#142d43);border-color:#30485d}
html[data-bq-theme=dark] :is(.features,.contact,.pricing){background:#0f2031;border-color:#30485d}
html[data-bq-theme=dark] :is(.language-switch,.btn-outline,.feature-number,.contact-symbol,.price-icon,.church-price .price-icon,.church-symbol,.church-check,.church-option,.church-option:last-child,.church-extra,.tag,.church-price .church-call){background:#20394f;border-color:#385167;color:#c6e5fa}
html[data-bq-theme=dark] :is(.hero-copy,.hero-note,.church-lead,.church-benefits p,.church-direct){color:#b2c6d7}
html[data-bq-theme=dark] :is(.church-price .church-heading h3,.church-benefits strong){color:#e5eef7}
html[data-bq-theme=dark] :is(.church-benefits,.church-plan-list,.church-plan-row,.program .detail){border-color:#385167}
html[data-bq-theme=dark] :is(.btn-primary,.signup-button,.language-switch button[aria-pressed=true]){background:#246693;color:#fff}
/* Room for the additional 44px control on narrow headers. */
@media(max-width:420px){[data-bq-theme-surface=home] .brand-header{gap:10px}[data-bq-theme-surface=home] .brand-logo{width:48px;height:48px}[data-bq-theme-surface=home] .brand-lockup{gap:8px}[data-bq-theme-surface=home] .brand-lockup strong{font-size:.95rem}[data-bq-theme-surface=home] .category-header-icons{gap:5px}.sp-header{gap:10px;flex-wrap:wrap}.nav{gap:10px}.nav-actions{gap:6px}.nav .brand small{max-width:135px}.nav .brand strong{max-width:115px}.nav .brand{gap:7px}}
/* Shared downloads page: paired ES/EN copy and theme support. */
.offline-heading-translation{display:block;margin-top:14px;font-size:clamp(1.35rem,3vw,2rem);font-weight:750;letter-spacing:-.025em;line-height:1.2;color:var(--muted-ink)}
.offline-bilingual-copy{display:grid;gap:8px}.offline-bilingual-copy>span[lang=en]{color:var(--muted-ink)}
.offline-bilingual-title{display:grid;gap:3px}.offline-bilingual-title>span[lang=en]{font-size:.88em;font-weight:700;color:var(--muted-ink)}
.offline-storage-card em{display:grid;gap:5px;font-style:normal;font-size:.8rem;line-height:1.5}.offline-core-card>span:nth-child(2),.offline-storage-card>span:nth-child(2){min-width:0}
html[data-bq-theme=dark][data-bq-surface=offline] :is(.offline-core-card,.offline-storage-card,.offline-pack-card,.cba-print-result,.cba-download-access){background:#142638;color:#e5eef7;border-color:#30485d;box-shadow:0 12px 30px #0002}
html[data-bq-theme=dark][data-bq-surface=offline] :is(.offline-core-icon,.offline-storage-icon,.offline-pack-status){background:#1b344a;color:#a8d9f8;border-color:#385167}
html[data-bq-theme=dark][data-bq-surface=offline] :is(.offline-pack-heading button,.offline-pack-card>button,.buzzer-secondary){background:#1b3043;border-color:#385167;color:#d4eafa}
html[data-bq-theme=dark][data-bq-surface=offline] :is(.offline-message,.cba-print-message){background:#1b344a;border-color:#385167;color:#c6e5fa}
html[data-bq-theme=dark][data-bq-surface=offline] .offline-message a{color:#a8d9f8;text-decoration:underline;text-underline-offset:3px}
html[data-bq-theme=dark][data-bq-surface=offline] .offline-pack-card.is-complete{background:#142e2b;border-color:#366759}
html[data-bq-theme=dark][data-bq-surface=offline] :is(.offline-core-icon.is-ready,.offline-network-pill.is-online){background:#173b32;color:#a1e1c3;border-color:#366759}
html[data-bq-theme=dark][data-bq-surface=offline] .offline-network-pill.is-offline{background:#3b3020;color:#f2d795}
html[data-bq-theme=dark][data-bq-surface=offline] .offline-pack-card.is-complete .offline-pack-status{background:#247759;color:#fff}
html[data-bq-theme=dark][data-bq-surface=offline] .offline-pack-copy em{color:#a8d9f8}
html[data-bq-theme=dark][data-bq-surface=offline] .offline-pack-card.is-complete .offline-pack-copy em{color:#a1e1c3}
html[data-bq-theme=dark][data-bq-surface=offline] .offline-pack-card>.offline-remove-button{color:#ffbdc5;border-color:#714454}
html[data-bq-theme=dark][data-bq-surface=offline] .offline-pack-card>.offline-download-button{background:#246693;border-color:#246693;color:#fff}
html[data-bq-theme=dark][data-bq-surface=offline] .offline-storage-card [data-slot=progress]{background:#294359}
html[data-bq-theme=dark][data-bq-surface=offline] .offline-storage-card em{color:#a9bbcc}
html[data-bq-theme=dark][data-bq-surface=offline] .practice-start-button:disabled{background:#294359;color:#a9bbcc}
/* Opaque dark paper and explicit ink keep every download state readable. */
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] :is(.offline-core-card,.offline-storage-card,.offline-pack-card,.cba-print-result,.cba-download-access){background:#1b2a36;color:#e8e5dc;border-color:#3b5061}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] .offline-pack-card.is-complete{background:#17332d;border-color:#427563}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] :is(.offline-pack-copy strong,.offline-core-card strong,.offline-storage-card strong,.offline-pack-heading strong){color:#e8e5dc}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] :is(.offline-pack-copy small,.offline-core-card small,.offline-storage-card small,.offline-pack-heading small,.offline-bilingual-title>span[lang=en],.offline-storage-card em){color:#bdcbd7}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] .offline-pack-copy em{color:#a8d9f8}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] .offline-pack-card.is-complete .offline-pack-copy em{color:#a1e1c3}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] :is(.offline-core-icon,.offline-storage-icon,.offline-pack-status){background:#243f53;color:#bfe4ff;border-color:#42617a}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] .offline-pack-card.is-complete .offline-pack-status{background:#247759;color:#fff}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] :is(.offline-pack-heading button,.offline-pack-card>button){background:#243f53;border-color:#5b7b94;color:#e1effa}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] .offline-pack-card>.offline-download-button{background:#246693;border-color:#5b9eca;color:#fff}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] .offline-pack-card>.offline-remove-button{background:#452733;border-color:#a26576;color:#ffbdc5}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] :is(.offline-pack-heading button,.offline-pack-card>button):not(:disabled):hover{filter:brightness(1.12)}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] :is(.offline-pack-heading button,.offline-pack-card>button):focus-visible{outline:3px solid #bfe4ff;outline-offset:3px}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] .offline-storage-card [data-slot=progress]{background:#344d60}
html[data-bq-theme=dark][data-bq-surface=offline] [data-bq-theme-surface=offline] .offline-storage-card [data-slot=progress-indicator]{background:#8ecfff}
@media(max-width:600px){.offline-bilingual-title{gap:4px}.offline-manager-view .offline-network-pill{white-space:normal;flex-wrap:wrap}}
