/*
Theme Name:   Newspaper Child
Theme URI:    https://boralnews.com
Description:  Child theme for Newspaper (tagDiv). Holds site-specific customizations (currently: the SolaimanLipi Bangla font) separately from the parent theme so parent theme updates never overwrite them.
Author:       Boral News
Template:     Newspaper
Version:      1.0.7
Text Domain:  newspaper-child
*/

@font-face {
    font-family: 'SolaimanLipi';
    src: url('fonts/sonalilipi/SolaimanLipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html[lang^="bn"] #td-outer-wrap,
html[lang^="bn"] #td-outer-wrap * {
    font-family: 'SolaimanLipi', sans-serif !important;
}

/*
Main header navigation menu (desktop) and its dropdown sub-menus. Newspaper's
page builder (TagDiv Composer) renders this as an inline style block per
page, base rules have no !important, so !important here is enough to win
regardless of source order.
*/
.tdb_header_menu .tdb-menu > li > a {
    font-size: 22px !important;
}

.tdb_header_menu .tdb-menu .sub-menu {
    font-size: 22px !important;
}

/*
Compact list-style widgets site-wide: sidebar "Most Popular", trending posts,
and other secondary post-title listings. These reuse the theme's standard
.entry-title class but each module type sets its own small size (12-14px).
The "html" prefix bumps specificity one notch above the theme's own 2-class
selectors so this reliably wins regardless of load order.
*/
html .td_module_flex_4 .entry-title,
html .td_module_flex_8 .entry-title,
html .tdb_module_header .entry-title {
    font-size: 18px !important;
}

html .td_module_trending_now .entry-title,
html .td-trending-now-display-area .entry-title {
    font-size: 18px !important;
    line-height: 24px !important;
}

html .td_module_flex_1 .entry-title {
    font-size: 22px !important;
}

/*
Post excerpts site-wide (13px, measured via headless browser). Newspaper
sets these per-block-instance (e.g. .tdi_59 .td_module_flex_1 .td-excerpt),
up to 3 chained classes, all !important. #td-outer-wrap's ID beats any
number of chained classes, so this reliably wins everywhere in one rule.
*/
#td-outer-wrap .td-excerpt {
    font-size: 15px !important;
}

/*
WP admin toolbar (front-end, shown to logged-in staff only, not visitors).
Standard WordPress core bar, 32px tall by default at 13px text - kept the
bump modest so text doesn't overflow the fixed-height bar.
*/
#wpadminbar,
#wpadminbar .ab-item,
#wpadminbar a.ab-item,
#wpadminbar .ab-label {
    font-size: 15px !important;
}

#wpadminbar .ab-submenu .ab-item {
    font-size: 13px !important;
}
