/* 4 Dec 2026 (owner): the old site's font and size (Baloo Da 2 for Bangla and English, a little smaller), and the
   colour rule: about 60% white or light grey, 30% green (the brand), 10% yellow (one main action per page), red only for
   warnings and counts. Violet stays only inside the logo: the lavender page tint and the violet-black night theme go. */
/* 4 Dec 2026 (audit): Baloo Da 2 is served from our own /fonts folder (same Google files, OFL licence) instead of a
   Google Fonts @import, so slow phones skip two extra lookups before any text shows. */
@font-face{font-family:'Baloo Da 2';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/baloo-da-2-bengali-400.woff2) format('woff2');unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:'Baloo Da 2';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/baloo-da-2-latin-400.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Baloo Da 2';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/baloo-da-2-bengali-500.woff2) format('woff2');unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:'Baloo Da 2';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/baloo-da-2-latin-500.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Baloo Da 2';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/baloo-da-2-bengali-600.woff2) format('woff2');unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:'Baloo Da 2';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/baloo-da-2-latin-600.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Baloo Da 2';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/baloo-da-2-bengali-700.woff2) format('woff2');unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:'Baloo Da 2';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/baloo-da-2-latin-700.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Baloo Da 2';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/baloo-da-2-bengali-800.woff2) format('woff2');unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:'Baloo Da 2';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/baloo-da-2-latin-800.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
body, body *:not(svg):not(svg *):not(i[class*="icon"]):not(.material-icons) { font-family: 'Baloo Da 2', 'Inter', ui-sans-serif, system-ui, sans-serif !important; }
/* Not on lesson pages: a zoomed page cuts the video player and PDF short on iPhone (white strip at the side). */
@media (max-width: 760px) { body:not(.no-tabbar):not(:has(.lesson-player)):not(:has(.lf-pdf)):not(:has(.vcp)) { zoom: .93; } }
html.vcp-lock body { zoom: 1 !important; }

:root, html:root, html:root body {
  --bb-page: #F5F7F6; --bb-line: #E1E6E3; --bb-glass: rgba(255, 255, 255, .92); --bb-tint: #F3F7F5; --bb-track: #E3EAE6;
  --bg: #F5F7F6; --g-bg: #F5F7F6; --line: #E1E6E3; --line-soft: #E1E6E3; --glass-line: #E1E6E3;
  --g-panel-line: #E1E6E3; --g-tile-line: #E1E6E3; --g-line: #E1E6E3; --g-tile-hover: #F7FAF8;
}
:root[data-theme="dark"], html:root[data-theme="dark"], html:root[data-theme="dark"] body {
  --bb-page: #0F1311; --bb-surface: #181D1A; --bb-line: #29312D; --bb-ink: #EEF3F0; --bb-muted: #A6AFAA;
  --bb-glass: rgba(19, 23, 20, .92); --bb-tint: #151A17; --bb-track: #232A26;
  --bg: #0F1311; --g-bg: #0F1311; --card: #181D1A; --panel-bg: #181D1A; --glass: #181D1A; --g-panel: #181D1A; --g-tile: #181D1A;
  --deep: #131714; --line: #29312D; --line-soft: #29312D; --glass-line: #29312D; --g-panel-line: #29312D; --g-tile-line: #29312D; --g-line: #29312D;
  --g-tile-hover: #1F2522; --muted: #A6AFAA; --g-muted: #A6AFAA; --g-text: #EEF3F0;
}
body { background-color: var(--g-bg) !important; }
header.top .wrap, header.top, nav.tabbar { background-color: rgba(255, 255, 255, .92) !important; }
:root[data-theme="dark"] header.top .wrap, :root[data-theme="dark"] header.top, :root[data-theme="dark"] nav.tabbar { background-color: rgba(19, 23, 20, .94) !important; }
:root[data-theme="dark"] header.top { background-color: transparent !important; }
header.top { background-color: transparent !important; }

/* Merit list and result bits that were violet */
.ml-head { background: linear-gradient(135deg, #14532d 0%, #15803d 60%, #16a34a 100%) !important; }
.ml-row:not(.p1):not(.p2):not(.p3) .ml-rank { background: #dcfce7 !important; color: #14532d !important; }
.ml-row.is-top20:not(.p1):not(.p2):not(.p3):not(.is-me) { background: #f0fdf4 !important; border-color: #bbf7d0 !important; }
.ml-row:not(.p1):not(.p2):not(.p3) .ml-face { border-color: #86efac !important; }
.ml-gallery a { background: #f0fdf4 !important; color: #14532d !important; }
:root[data-theme="dark"] .ml-row.is-top20:not(.p1):not(.p2):not(.p3):not(.is-me) { background: #142a1d !important; border-color: #1f5133 !important; }
:root[data-theme="dark"] .ml-row:not(.p1):not(.p2):not(.p3) .ml-rank { background: #1f3a2a !important; color: #bbf7d0 !important; }
/* Reading Room form: the lavender field fill and blue-violet chosen border go green-white too. */
:root:not([data-theme="dark"]) form.rr-desk input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), :root:not([data-theme="dark"]) form.rr-desk textarea { background-color: #fff !important; }
form.rr-desk input:checked + * { border-color: #15803d !important; }
.xh-btn.solid-v { background: #15803d !important; border-color: #15803d !important; color: #fff !important; }

/* 4 Dec 2026: the lavender lines and the violet accents that still showed (they were set later in brand-2027-recolor.css). */
:root, html:root, html:root body { --line: #E1E6E3 !important; --line-soft: #E1E6E3 !important; --glass-line: #E1E6E3 !important; --g-panel-line: #E1E6E3 !important;
  --g-tile-line: #E1E6E3 !important; --g-line: #E1E6E3 !important; --bb-line: #E1E6E3 !important; --border-brand-subtle: #E1E6E3 !important; --bb-track: #E3EAE6 !important; --p2: #15803d !important; }
:root[data-theme="dark"], html:root[data-theme="dark"], html:root[data-theme="dark"] body { --line: #29312D !important; --line-soft: #29312D !important; --glass-line: #29312D !important;
  --g-panel-line: #29312D !important; --g-tile-line: #29312D !important; --g-line: #29312D !important; --bb-line: #29312D !important; --border-brand-subtle: #29312D !important; --bb-track: #232A26 !important; }
.bbp { border-color: #bbf7d0 !important; background: #f0fdf4 !important; }
.bbp-badge, .ask-bbai-ico, .rr-askai-ico, .lb-badge { background: #15803d !important; color: #fff !important; }
.bbp li, .bbp b { border-color: #dcfce7 !important; }
.bbp b, .lb-points, .rp-star, .cd-ico, .ls-k { color: #15803d !important; }
.ask-bbai, .rr-askai { border-color: #bbf7d0 !important; }
.rr-tag { background: #dcfce7 !important; border-color: #bbf7d0 !important; color: #14532d !important; }
.rp { background: #f0fdf4 !important; }
:root[data-theme="dark"] .bbp, :root[data-theme="dark"] .rp { background: #132a1c !important; border-color: #1f5133 !important; }
:root[data-theme="dark"] .rr-tag { background: #132a1c !important; color: #bbf7d0 !important; border-color: #1f5133 !important; }
:root[data-theme="dark"] .bbp b, :root[data-theme="dark"] .lb-points, :root[data-theme="dark"] .rp-star, :root[data-theme="dark"] .cd-ico, :root[data-theme="dark"] .ls-k { color: #4ade80 !important; }
.bbp-tasks li::before, .bbp-tasks li::marker { background: #15803d !important; color: #fff !important; border-color: #15803d !important; }

/* 4 Dec 2026 (audit, contrast): text must stay readable in both themes (WCAG AA, 4.5:1 for normal text).
   Night theme: the main green (#1E9E5A) gave white button text only 3.45:1, so filled green uses a deeper green there. */
:root[data-theme="dark"], html:root[data-theme="dark"], html:root[data-theme="dark"] body { --bb-primary: #15803D !important; --brand-primary: #15803D !important; --bb-primary-hover: #166534 !important; }
:root[data-theme="dark"] .g-chip.sb-kind { background: #15803D !important; }
:root[data-theme="dark"] .cc-tag--hot { background: #DC2626 !important; }
:root[data-theme="dark"] .hm-lang__free, :root[data-theme="dark"] .kh-more, :root[data-theme="dark"] .dm-bd-tag { color: #4ADE80 !important; }
/* Namaz page at night: the section keeps dark ink for its cream cards, so the review box (dark card) lost its names and
   quotes, and the hadith box, prayer sheets and name picker kept a white fill under light text. */
:root[data-theme="dark"] .nz .rvl { color: #EEF3F0 !important; }
:root[data-theme="dark"] .nz .nz-invite__hadith, :root[data-theme="dark"] .nz .nz-p__sheet { background: #1B2420 !important; color: #E7EFE9 !important; }
:root[data-theme="dark"] .nz .nz-namepick__form select { background: #1B2420 !important; color: #EEF3F0 !important; }
/* Day theme: pale badge text on white and the light green government links. */
:root:not([data-theme="dark"]) em.minibadge { filter: brightness(.6) saturate(1.2); }
:root:not([data-theme="dark"]) a[href*="gov.bd"] { color: #0B6B3A !important; }

/* Reading Room points card (.rp) went pale green in the day theme, but its text stayed white and lavender (invisible). */
:root:not([data-theme="dark"]) .rp small { color: #3F6B52 !important; }
:root:not([data-theme="dark"]) .rp b { color: #14532D !important; }
:root:not([data-theme="dark"]) .rp .rp-lb { color: #15803D !important; }
:root:not([data-theme="dark"]) .rt-tag.k-class { color: #14532D !important; }

/* 4 Dec 2026: marker the page checks to know this file arrived whole (layouts/app.blade.php). Keep it last. */
:root { --ok-look: 1; }
