/* ==========================================================================
   RingBD 2040 — FONT SYSTEM  (rb-2040-fonts.css)
   LAUNCH 2026-11-23 — FONTS worker. Loaded LAST of the rb-2040 sheets so
   it is the final font authority on every page (welcome + logged-in).
   --------------------------------------------------------------------------
   PAIRING (only fonts already on the server — nothing downloaded):
     Display + Bangla : "Baloo Da 2"  (OFL, themes/<theme>/fonts/baloo-da-2/)
     Latin body       : "Open Sans"   (Apache-2.0, themes/<theme>/fonts/OpenSans*/)
     Mono             : system mono stack (no mono font file on server)
   NOTE (audit): the 4 Bengali woff2 are byte-identical (md5 158c12af...),
   and the 4 Latin woff2 are byte-identical (md5 d4df8cb3...) — the server
   holds ONE Baloo design duplicated across 400/600/700/800. Weights
   600/700/800 therefore render the same design; no synthetic bold is
   forced. A true multi-weight Baloo is a follow-up (needs a real file).
   "Inter" (tokens.css --rb-font-body) is NOT on the server, so the body
   stack is re-pointed here to Open Sans; "Poppins"/"Roboto"/"Lato"/
   "Hind Siliguri" are likewise absent and are superseded below.
   TYPE SCALE (kept from rb-2040-tokens.css §1.9; Bangla +1px):
     display 32/34 · h1 28/30 · h2 22/24 · h3 18/20 · title 16/17 ·
     body 15/16 · caption 13/14 · button 16/17 · overline 11/12
   ========================================================================== */

/* ---- 1. @font-face : Baloo Da 2 (display + Bengali) ---- */
@font-face{font-family:"Baloo Da 2";font-style:normal;font-weight:400;font-display:swap;
  src:url(../fonts/baloo-da-2/baloo-da-2-bengali-400.woff2) format("woff2");
  unicode-range:U+0980-09FE,U+200C-200D,U+20B9,U+00A0;}
@font-face{font-family:"Baloo Da 2";font-style:normal;font-weight:400;font-display:swap;
  src:url(../fonts/baloo-da-2/baloo-da-2-latin-400.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0100-024F,U+1E00-1EFF,U+2000-206F,U+2100-214F;}
@font-face{font-family:"Baloo Da 2";font-style:normal;font-weight:600;font-display:swap;
  src:url(../fonts/baloo-da-2/baloo-da-2-bengali-600.woff2) format("woff2");
  unicode-range:U+0980-09FE,U+200C-200D,U+20B9,U+00A0;}
@font-face{font-family:"Baloo Da 2";font-style:normal;font-weight:600;font-display:swap;
  src:url(../fonts/baloo-da-2/baloo-da-2-latin-600.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0100-024F,U+1E00-1EFF,U+2000-206F,U+2100-214F;}
@font-face{font-family:"Baloo Da 2";font-style:normal;font-weight:700;font-display:swap;
  src:url(../fonts/baloo-da-2/baloo-da-2-bengali-700.woff2) format("woff2");
  unicode-range:U+0980-09FE,U+200C-200D,U+20B9,U+00A0;}
@font-face{font-family:"Baloo Da 2";font-style:normal;font-weight:700;font-display:swap;
  src:url(../fonts/baloo-da-2/baloo-da-2-latin-700.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0100-024F,U+1E00-1EFF,U+2000-206F,U+2100-214F;}
@font-face{font-family:"Baloo Da 2";font-style:normal;font-weight:800;font-display:swap;
  src:url(../fonts/baloo-da-2/baloo-da-2-bengali-800.woff2) format("woff2");
  unicode-range:U+0980-09FE,U+200C-200D,U+20B9,U+00A0;}
@font-face{font-family:"Baloo Da 2";font-style:normal;font-weight:800;font-display:swap;
  src:url(../fonts/baloo-da-2/baloo-da-2-latin-800.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0100-024F,U+1E00-1EFF,U+2000-206F,U+2100-214F;}

/* ---- 2. @font-face : Open Sans (Latin body) ---- */
@font-face{font-family:"Open Sans";font-style:normal;font-weight:300;font-display:swap;
  src:url(../fonts/OpenSansLight/OpenSansLight.woff) format("woff");}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-display:swap;
  src:url(../fonts/OpenSansRegular/OpenSansRegular.woff) format("woff");}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-display:swap;
  src:url(../fonts/OpenSansSemiBold/OpenSansSemiBold.woff) format("woff");}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:700;font-display:swap;
  src:url(../fonts/OpenSansBold/OpenSansBold.woff) format("woff");}

/* ---- 3. Font tokens (self-contained: ringbd pages have no tokens.css) ---- */
:root{
  --rb-font-display:"Baloo Da 2","Open Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --rb-font-body:"Open Sans","Baloo Da 2",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --rb-font-mono:ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;
  --rb-type-display:32px; --rb-type-display-bn:34px;
  --rb-type-h1:28px;      --rb-type-h1-bn:30px;
  --rb-type-h2:22px;      --rb-type-h2-bn:24px;
  --rb-type-h3:18px;      --rb-type-h3-bn:20px;
  --rb-type-title:16px;   --rb-type-title-bn:17px;
  --rb-type-body:15px;    --rb-type-body-bn:16px;
  --rb-type-caption:13px; --rb-type-caption-bn:14px;
  --rb-type-button:16px;  --rb-type-button-bn:17px;
  --rb-type-overline:11px;--rb-type-overline-bn:12px;
  --rb-type-tagline:11px; --rb-type-tagline-bn:12px;
  --rb-type-display-fluid:clamp(32px,6vw,48px);
  --rb-type-h1-fluid:clamp(28px,4.5vw,36px);
  --rb-type-h2-fluid:clamp(22px,3.2vw,28px);
}

/* ---- 4. Base: body + form controls ---- */
body{
  font-family:var(--rb-font-body);
  font-size:var(--rb-type-body);
  line-height:1.6;
  font-weight:400;
  letter-spacing:0;
}
button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;}
:lang(bn){line-height:1.75;}

/* ---- 5. Supersede every legacy font stack -------------------------------
   Every element inherits the body face unless a rule below re-asserts it.
   Excluded: font-icon elements (.fa / .glyphicon / .material-icons and
   their -suffixed classes — their glyphs ARE a font) and real mono
   elements (code/kbd/pre/samp keep the mono stack).
   NOTE (v2 fix, proven by a specificity test 2026-11-23): this rule MUST
   NOT use !important. Chromium scores the :not() selector list HIGHER
   than `body h1`, so an !important here beat §6's headings and forced
   them onto the body stack. Without !important, §6's !important rules
   win for headings/display/buttons, while this rule (0,1,1) still beats
   every legacy non-!important font rule. Legacy !important font rules
   are killed individually in §7. */
body :not(.fa,.glyphicon,.material-icons,code,kbd,pre,samp,[class*="fa-"],[class*="glyphicon"]){
  font-family:inherit;
}

/* ---- 6. Type scale application (after §5, so these win) ---- */
body h1,body .h1,body .rb-h1{
  font-family:var(--rb-font-display) !important;
  font-size:var(--rb-type-h1-fluid) !important;
  line-height:1.25 !important;font-weight:700 !important;letter-spacing:-.015em !important;
}
body h2,body .h2,body .rb-h2{
  font-family:var(--rb-font-display) !important;
  font-size:var(--rb-type-h2-fluid) !important;
  line-height:1.3 !important;font-weight:700 !important;letter-spacing:-.01em !important;
}
body h3,body .h3,body .rb-h3{
  font-family:var(--rb-font-display) !important;
  font-size:var(--rb-type-h3) !important;
  line-height:1.35 !important;font-weight:600 !important;letter-spacing:-.005em !important;
}
body h4,body .h4,body h5,body .h5,body h6,body .h6{
  font-family:var(--rb-font-body) !important;
  line-height:1.4 !important;font-weight:600 !important;letter-spacing:0 !important;
}
body h4,body .h4{font-size:var(--rb-type-title) !important;}
body h5,body .h5{font-size:var(--rb-type-body) !important;}
body h6,body .h6{font-size:var(--rb-type-caption) !important;font-weight:700 !important;letter-spacing:.02em !important;}
body .rb-display{
  font-family:var(--rb-font-display) !important;
  font-size:var(--rb-type-display-fluid) !important;
  line-height:1.15 !important;font-weight:800 !important;letter-spacing:-.02em !important;
}
body .rb-title{
  font-family:var(--rb-font-body) !important;
  font-size:var(--rb-type-title) !important;
  line-height:1.4 !important;font-weight:600 !important;
}
body .rb-caption,body small,body .small{
  font-size:var(--rb-type-caption) !important;line-height:1.45 !important;letter-spacing:.01em !important;
}
body .rb-overline{
  font-size:var(--rb-type-overline) !important;line-height:1.5 !important;
  font-weight:600 !important;letter-spacing:.08em !important;text-transform:uppercase !important;
}
body .rb-tagline{
  font-size:var(--rb-type-tagline) !important;line-height:1.5 !important;
  font-weight:600 !important;letter-spacing:.06em !important;
}
body button,body .btn,body input[type="submit"],body input[type="button"]{
  font-family:var(--rb-font-body) !important;
  font-size:var(--rb-type-button) !important;
  line-height:1.4 !important;font-weight:600 !important;letter-spacing:.01em !important;
}
body p,body .lead{line-height:1.6;}
body .lead{font-size:var(--rb-type-title) !important;font-weight:300 !important;line-height:1.5 !important;}

/* Bangla size bump wherever the document marks it. Per-glyph fallback
   (Open Sans has no Bengali glyphs) already routes Bangla text to Baloo. */
body :lang(bn){font-size:var(--rb-type-body-bn);}
body h1:lang(bn),body .h1:lang(bn){font-size:var(--rb-type-h1-bn);}
body h2:lang(bn),body .h2:lang(bn){font-size:var(--rb-type-h2-bn);}
body h3:lang(bn),body .h3:lang(bn){font-size:var(--rb-type-h3-bn);}
body .rb-display:lang(bn){font-size:var(--rb-type-display-bn);}

/* Mono keeps the mono stack (excluded from §5). */
body code,body kbd,body pre,body samp{font-family:var(--rb-font-mono) !important;}

/* ---- 7. Surgical overrides for legacy !important font rules -----------
   Each mirrors (or out-specifies) one legacy rule found by inventory
   2026-11-23 across both themes. All load BEFORE this file on the pages
   where they apply, so same-specificity ties break in our favour; the
   :not(.fa) bumpers also win outright where load order is hostile. */
body.ringbd-welcome .login_left_combo h1{font-size:var(--rb-type-h1-fluid) !important;}
.post .post-description p,.post .post-description .edited_text{
  font-family:var(--rb-font-body) !important;
  font-size:var(--rb-type-body) !important;line-height:1.6 !important;
}
#wo_nw_msg_page .wo_msg_tabs *:not(.fa){font-family:var(--rb-font-body) !important;}
#wo_nw_msg_page .messages-user-name:not(.fa),
#wo_nw_msg_page .messages-recipients-list .msg_rght_prt>p:not(.fa),
#wo_nw_msg_page .messages-recipients-list .messages-last-sent.new_msg_lst_lsent:not(.fa){
  font-family:var(--rb-font-body) !important;
}
.wow_forum_sections .f_category:not(.fa),
.wow_forum_dis_thead:not(.fa){font-family:var(--rb-font-body) !important;}
#rb-audio-call-timer:not(.fa){font-family:var(--rb-font-body) !important;}
