/* Site-wide theme switch. Dark remains the default. */
.site-theme-toggle{position:fixed;right:18px;bottom:18px;z-index:2147483000;width:46px;height:46px;border-radius:50%;border:1px solid var(--border,rgba(255,255,255,.14));background:var(--theme-toggle-bg,rgba(17,24,39,.9));color:var(--text,var(--text-main,#fff));display:grid;place-items:center;font:700 22px/1 system-ui;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.22);backdrop-filter:blur(16px);transition:.2s}
.site-theme-toggle:hover{transform:translateY(-2px)}
html[data-theme="light"]{color-scheme:light;--bg:#f4f7fb;--bg-deep:#f4f7fb;--card:rgba(255,255,255,.94);--glass:rgba(255,255,255,.9);--bg-card:rgba(255,255,255,.94);--bg-glass:rgba(255,255,255,.92);--text:#111827;--text-main:#111827;--muted:#5b6575;--text-muted:#5b6575;--border:rgba(15,23,42,.13);--border-glass:rgba(15,23,42,.13);--btn-glass:rgba(15,23,42,.055);--theme-toggle-bg:rgba(255,255,255,.94)}
html[data-theme="light"] body{background-color:#f4f7fb!important;color:var(--text,#111827)}
html[data-theme="light"] body::before,html[data-theme="light"] body::after{opacity:.09!important}
html[data-theme="light"] .page-header,html[data-theme="light"] .audience-header,html[data-theme="light"] header{background:rgba(255,255,255,.91)!important;border-color:rgba(15,23,42,.12)!important;box-shadow:0 10px 34px rgba(15,23,42,.08)!important}
html[data-theme="light"] .page-nav a,html[data-theme="light"] .audience-nav a{color:#536072}
html[data-theme="light"] .page-nav a:hover,html[data-theme="light"] .page-nav a.active,html[data-theme="light"] .audience-nav a:hover,html[data-theme="light"] .audience-nav a.active{color:#111827}
html[data-theme="light"] .panel,html[data-theme="light"] .audience-card,html[data-theme="light"] .card{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,249,252,.96))!important;box-shadow:0 16px 38px rgba(15,23,42,.08)!important}
html[data-theme="light"] .toolbar,html[data-theme="light"] .lesson,html[data-theme="light"] .faq-item,html[data-theme="light"] .audience-note{background:rgba(255,255,255,.72)!important}
html[data-theme="light"] .toolbar input,html[data-theme="light"] .toolbar select{background:#fff!important;color:#111827!important}
html[data-theme="light"] .back-link,html[data-theme="light"] .contact-card a,html[data-theme="light"] .lesson-time{color:#243044}
html[data-theme="light"] .page-kicker,html[data-theme="light"] .audience-kicker,html[data-theme="light"] .badge{color:#9f1239}
html[data-theme="light"] .payment-page-link{color:#243044}
html[data-theme="light"] .payment-card-qr{color:#111827;background:rgba(255,255,255,.75)}
@media(max-width:600px){.site-theme-toggle{right:12px;bottom:12px;width:44px;height:44px}}

/* Theme corrections: listener area and home schedule */
html[data-theme="light"] .audience-header{background:rgba(255,255,255,.94)!important}
html[data-theme="light"] .audience-footer{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(244,247,251,.99))!important}
html[data-theme="light"] .audience-footer-brand strong,html[data-theme="light"] .audience-footer-links a{color:#111827!important}
html[data-theme="light"] .payment-card,html[data-theme="light"] .requisites-dialog{background:linear-gradient(180deg,#fff,#f7f9fc)!important}
html[data-theme="light"] .material-lookup input{background:#fff!important;color:#111827!important}
html[data-theme="light"] .schedule-overlay{background:radial-gradient(circle at 8% 10%,rgba(202,15,62,.08),transparent 28%),radial-gradient(circle at 88% 18%,rgba(56,189,248,.08),transparent 28%),linear-gradient(180deg,#f8fafc 0%,#f4f7fb 55%,#eef2f7 100%)!important}
html[data-theme="light"] .schedule-header{background:linear-gradient(to bottom,rgba(248,250,252,.97) 76%,rgba(248,250,252,0))!important}
html[data-theme="light"] .schedule-months,html[data-theme="light"] .timeline-card{background:rgba(255,255,255,.82)!important;border-color:rgba(15,23,42,.12)!important}
html[data-theme="light"] .close-sch-btn{background:rgba(15,23,42,.05)!important;border-color:rgba(15,23,42,.12)!important;color:#111827!important}

/* Contact page light-theme visibility fix */
html[data-theme="light"] .contact-highlight,
html[data-theme="light"] .contact-card{
  background:linear-gradient(180deg,#fff,#f7f9fc)!important;
  border-color:rgba(15,23,42,.13)!important;
  color:#111827!important;
}
html[data-theme="light"] .contact-card.depth-item,
html[data-theme="light"] .contact-card.depth-item.in-view{
  opacity:1!important;
  transform:none!important;
}
html[data-theme="light"] .contact-card h3,
html[data-theme="light"] .contact-highlight h2{
  color:#111827!important;
}
html[data-theme="light"] .contact-card p,
html[data-theme="light"] .contact-highlight .muted{
  color:#536072!important;
}
html[data-theme="light"] .contact-card .position{
  color:#A00F33!important;
}
html[data-theme="light"] .contact-card a,
html[data-theme="light"] .contact-highlight a{
  color:#243044!important;
}
html[data-theme="light"] .contact-card a:hover,
html[data-theme="light"] .contact-highlight a:hover{
  color:#CA0F3E!important;
}

/* Readable typography on light section pages */
html[data-theme="light"] .page-lead,
html[data-theme="light"] .faq-answer,
html[data-theme="light"] .card .muted,
html[data-theme="light"] .lesson-meta{
  color:#536072!important;
}
html[data-theme="light"] .faq-item summary,
html[data-theme="light"] .page-title,
html[data-theme="light"] .panel h2,
html[data-theme="light"] .panel h3,
html[data-theme="light"] .card h2,
html[data-theme="light"] .lesson-subject,
html[data-theme="light"] .schedule-day{
  color:#111827!important;
}
html[data-theme="light"] .page-kicker{
  color:#A00F33!important;
  background:rgba(202,15,62,.07)!important;
  border-color:rgba(202,15,62,.22)!important;
}
html[data-theme="light"] .back-link{
  color:#334155!important;
}
html[data-theme="light"] .position,
html[data-theme="light"] .lesson-program{
  color:#A00F33!important;
}


/* Listener page: explicit light-theme contrast */
html[data-theme="light"] .audience-card .action.secondary,
html[data-theme="light"] .payment-card-actions .action.secondary{
  background:#fff!important;
  color:#9f1239!important;
  border-color:rgba(159,18,57,.34)!important;
  box-shadow:0 6px 16px rgba(15,23,42,.07)!important;
}
html[data-theme="light"] .audience-card .action.secondary:hover,
html[data-theme="light"] .payment-card-actions .action.secondary:hover{
  background:#fff1f4!important;
  color:#881337!important;
  border-color:rgba(159,18,57,.58)!important;
}
html[data-theme="light"] .payment-tool,
html[data-theme="light"] .payment-hide,
html[data-theme="light"] .copy-row button,
html[data-theme="light"] .requisites-close{
  background:#fff!important;
  color:#111827!important;
  border-color:rgba(15,23,42,.18)!important;
}
html[data-theme="light"] .requisites-head{background:rgba(248,250,252,.98)!important}
html[data-theme="light"] .requisites-body,
html[data-theme="light"] .payment-online-copy p,
html[data-theme="light"] .payment-callout p,
html[data-theme="light"] .payment-section-body p,
html[data-theme="light"] .detail-step p,
html[data-theme="light"] .mini-steps{color:#536072!important}
html[data-theme="light"] .payment-online-link,
html[data-theme="light"] .payment-section-body strong,
html[data-theme="light"] .payment-situations summary,
html[data-theme="light"] .detail-step h5{color:#111827!important}
html[data-theme="light"] .payment-section,
html[data-theme="light"] .payment-steps>li,
html[data-theme="light"] .copy-row,
html[data-theme="light"] .payment-situations details{
  background:#fff!important;
  border-color:rgba(15,23,42,.13)!important;
}
html[data-theme="light"] .material-result.error{color:#9f1239!important;background:#fff1f4!important}
