/*
 * Banking News: the look of bankingnews.com.np on top of the shared site styles.
 * Navy bar, red accents, Inter for all text.
 */
:root {
    --bn-red: #ec1c24;
    --bn-red-dark: #ae1d22;
    --bn-navy: #041f4a;
    --bn-navy-2: #003c81;
    --bn-teal: #1c8b98;
    --bn-grey: #818285;

    --site-blue: var(--bn-navy);
    --site-blue-deep: #021430;
    --site-red: var(--bn-red);
    --lb-red: var(--bn-red);
    --lb-red-soft: #fdecec;
}

.frontend-body,
.frontend-body h1, .frontend-body h2, .frontend-body h3, .frontend-body h4,
.frontend-body h1 a, .frontend-body h2 a, .frontend-body h3 a, .frontend-body h4 a,
.frontend-body p, .frontend-body .uk-navbar-nav > li > a, .site-chips a {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
.frontend-body h1, .frontend-body h2, .frontend-body h3, .frontend-body h4 { font-weight: 700; color: #000; }

/* Header: logo on white, navy menu bar, red on hover and for the open page. */
.site-mast { background: #fff; }
.site-mast__logo img { max-height: 90px; width: auto; }
.site-nav-band { background: #0b6cb5 !important; border-top: 3px solid var(--bn-red); }
.site-nav .uk-navbar-nav > li > a { color: #fff !important; font-weight: 700; font-size: 15px; text-transform: none; background: none !important; }
.site-nav .uk-navbar-nav > li > a:hover,
.site-nav .uk-navbar-nav > li.uk-active > a { color: #fff !important; box-shadow: inset 0 -3px 0 #fff; }
.site-chips a { font-family: inherit; }

/* Lead: centred headlines, each with its picture and opening lines, one under another. */
.hp-lead { text-align: center; }
.hp-lead__title { font-size: clamp(26px, 3vw, 34px) !important; line-height: 1.3 !important; font-weight: 700 !important; max-width: 900px; margin-left: auto !important; margin-right: auto !important; }
.hp-lead__title a { color: #000 !important; }
.hp-lead__media { display: block; max-width: 560px; margin: 14px auto !important; background: none !important; }
.hp-lead__media img { width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.hp-lead__excerpt { display: block !important; max-width: 840px; margin: 0 auto 8px; color: var(--bn-grey); font-size: 15px; }

/* Under the leads: a picture card with its title over the image, then rows. */
.bn-top { margin-bottom: 28px; }
.bn-top__card { position: relative; display: block; border-radius: 6px; overflow: hidden; background: var(--bn-navy); min-height: 160px; }
.bn-top__card img { display: block; width: 100%; height: 380px; object-fit: cover; }
.bn-top__card h2 { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 60px 30px 20px; text-align: center; color: #fff !important; font-size: 26px; line-height: 1.35; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.bn-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid #e5e5e5; }
.bn-row__media img { width: 200px; height: 135px; object-fit: cover; border-radius: 4px; display: block; }
.bn-row__media { background: #f1f3f6; border-radius: 4px; min-height: 135px; }
.bn-row h3 { margin: 0 0 14px; font-size: 18px; line-height: 1.4; font-weight: 600 !important; }
.bn-row h3 a { color: #000; }
.bn-row p { margin: 0; color: var(--bn-grey); font-size: 14px; }
@media (max-width: 639px) {
    .bn-row { grid-template-columns: 120px 1fr; }
    .bn-row__media img { width: 120px; height: 85px; }
    .bn-top__card img { height: 230px; }
    .bn-top__card h2 { font-size: 19px; padding: 40px 14px 12px; }
}

/* Section titles: a round icon, the title and an arrow (the shared site design, in Banking News colours). */
.hp-head { display: flex; align-items: center; gap: 10px; border: 0; padding: 0; margin-bottom: 18px; }
.hp-head__icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--bn-navy); color: #fff; }
.hp-head__title { margin: 0; font-size: 26px !important; font-weight: 800 !important; line-height: 1.2; }
.hp-head__title a { color: #111 !important; background: none; padding: 0; }
.hp-head__title a:hover { color: var(--bn-red) !important; }
.hp-head__more { margin-left: 0; color: #666; }
.hp-head__more:hover { color: var(--bn-red); }
html[data-theme="dark"] .hp-head__title a { color: #e6edf3 !important; }

/* Beside the Latest News column, cards sit two to a row, as on the live site. */
.hp-layout__main .hp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 639px) { .hp-layout__main .hp-cards { grid-template-columns: 1fr; } }
@media (min-width: 960px) { .hp-band .hp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* Latest News column: a red block with a numbered list. */
.bn-latest { background: var(--bn-red); padding: 5px; border-radius: 4px; }
.bn-latest__title { margin: 4px 0 8px; text-align: center; font-size: 22px; }
.bn-latest__title a { color: #fff !important; }
.bn-latest__list { list-style: none; margin: 0; padding: 0; background: #fff; counter-reset: latest; }
.bn-latest__list li { counter-increment: latest; border-bottom: 1px solid #eee; }
.bn-latest__list li:last-child { border-bottom: 0; }
.bn-latest__title { text-align: left; padding-left: 8px; font-size: 18px !important; }
.bn-latest__list { padding: 6px 10px; }
.bn-latest__list a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; color: var(--bn-navy-2); font-weight: 500; font-size: 15px; line-height: 1.35; }
.bn-latest__list a::before { content: counter(latest) "."; flex: none; min-width: 18px; color: var(--bn-navy); font-size: 20px; font-weight: 800; line-height: 1; }
.bn-latest__list a:hover span { color: var(--bn-red); }

/* Links and hovers in red, as on the live site. */
.hp a:hover, .ft a:hover { color: var(--bn-red); }

/* Footer: light grey menus, a red line, then a dark band. */
.site-footer.ft { background: #f0efef; color: #222; border-top: 3px solid var(--bn-red); }
.site-footer.ft h3 { color: #000; }
.site-footer.ft a { color: #111; }
.ft__credit { background: #171616; color: #ddd; }
.ft__credit a { color: #fff; }

/* Dark mode keeps the same accents. */
html[data-theme="dark"] .site-mast { background: #0d1117; }
html[data-theme="dark"] .bn-latest__list { background: #161b22; }
html[data-theme="dark"] .bn-latest__list a,
html[data-theme="dark"] .frontend-body h1, html[data-theme="dark"] .frontend-body h2,
html[data-theme="dark"] .frontend-body h3, html[data-theme="dark"] .frontend-body h4 { color: #e6edf3; }
html[data-theme="dark"] .site-footer.ft { background: #0d1117; color: #c9d1d9; }
html[data-theme="dark"] .site-footer.ft a, html[data-theme="dark"] .site-footer.ft h3 { color: #e6edf3; }

/* Story page: left-aligned title, as on the live site. */
.ah-single-heading { text-align: left; font-size: clamp(26px, 3vw, 38px) !important; line-height: 1.3 !important; font-weight: 700 !important; color: #222 !important; }
.ah-single-section header + * , .ah-single-section .uk-text-center > .uk-width-1-1\@m { text-align: left; }
.ah-post-entry, .ah-post-entry p { font-size: 18px; line-height: 1.75; color: #111; }

/* About the writer: picture, name and "More on Writer" beside their latest stories. */
.bn-writer { display: grid; grid-template-columns: 190px 1fr; background: #f5f5f5; margin: 30px 0; box-shadow: 0 5px 15px rgba(0, 0, 0, .08); }
.bn-writer__who { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 12px; border-right: 1px solid #e5e5e5; }
.bn-writer__photo img { width: 100px; height: 100px; object-fit: contain; border-radius: 50%; background: #fff; }
.bn-writer__name { margin: 12px 0 6px; font-size: 21px !important; font-weight: 500 !important; }
.bn-writer__name a { color: #222; }
.bn-writer__more { color: var(--bn-red); font-size: 14px; }
.bn-writer__list { list-style: disc; margin: 0; padding: 14px 24px 14px 52px; }
.bn-writer__list li { padding: 12px 0; border-bottom: 1px solid #e5e5e5; }
.bn-writer__list li:last-child { border-bottom: 0; }
.bn-writer__list a { color: #444; font-size: 15px; line-height: 1.6; }
.bn-writer__list a:hover { color: var(--bn-red); }
@media (max-width: 639px) {
    .bn-writer { grid-template-columns: 1fr; }
    .bn-writer__who { border-right: 0; border-bottom: 1px solid #e5e5e5; }
}

/* Comments and the story-page column titles: a bold title with a short red line under it. */
.pc__title, .bn-recent__title {
    position: relative; display: inline-block; margin: 0 0 14px; padding: 0 0 8px; background: none;
    color: #111 !important; font-size: 22px !important; font-weight: 800 !important;
}
.pc__title::after, .bn-recent__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--bn-red); }
html[data-theme="dark"] .pc__title, html[data-theme="dark"] .bn-recent__title { color: #e6edf3 !important; }

html[data-theme="dark"] .bn-writer { background: #161b22; }
html[data-theme="dark"] .bn-writer__name a, html[data-theme="dark"] .bn-writer__list a,
html[data-theme="dark"] .ah-single-heading, html[data-theme="dark"] .ah-post-entry, html[data-theme="dark"] .ah-post-entry p { color: #e6edf3 !important; }

/* Story page right-hand column: "Recent", a picture and the opening of each story. */
.bn-recent { background: #f3f4f6; padding: 14px 12px 6px; border-radius: 6px; }
.bn-recent__item { padding: 12px 0; border-bottom: 1px solid #dcdcdc; }
.bn-recent__item:last-child { border-bottom: 0; }
.bn-recent__item h3 { margin: 0 0 8px; font-size: 16px !important; font-weight: 600 !important; line-height: 1.35; }
.bn-recent__item h3 a { color: #111; }
.bn-recent__row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.bn-recent__media { background: #e5e7eb; min-height: 82px; }
.bn-recent__media img { width: 110px; height: 82px; object-fit: cover; display: block; }
.bn-recent__row p { margin: 0; font-size: 13px; color: var(--bn-grey); line-height: 1.45; }

/* Category, tag and author pages: the newest story large across the page, then cards with the title only. */
/* Their page title keeps the shared design: a large title with a short red line under it. */
.lb-head { margin-bottom: 20px; }
.lb-grid .lb-card { box-shadow: 0 5px 15px rgba(0, 0, 0, .08); border-radius: 0; }
.lb-grid .lb-card__excerpt, .lb-grid .lb-card__meta { display: none; }
.lb-grid .lb-card__title { font-size: 16px !important; font-weight: 600 !important; }
@media (min-width: 640px) {
    .lb-page--category .lb-grid > .lb-card:first-child { grid-column: 1 / -1; text-align: center; }
    .lb-page--category .lb-grid > .lb-card:first-child .lb-card__media { max-width: 600px; margin: 0 auto; }
    .lb-page--category .lb-grid > .lb-card:first-child .lb-card__title { font-size: 30px !important; font-weight: 500 !important; }
    .lb-page--category .lb-grid > .lb-card:first-child .lb-card__excerpt { display: block; color: var(--bn-grey); max-width: 900px; margin: 0 auto; }
}

/* Footer, as on the live site: logo, links, company details and registration on grey, then a red bar. */
.bn-ft { background: #f0efef; border-top: 1px solid #ddd; color: #333; margin-top: 40px; }
.bn-ft__row { display: grid; grid-template-columns: 1.1fr .8fr 1.6fr 1.2fr; gap: 30px; align-items: start; padding: 34px 0; }
.bn-ft__logo img { max-width: 200px; height: auto; }
.bn-ft__links { border-left: 1px solid #ccc; padding-left: 24px; }
.bn-ft__links ul { list-style: none; margin: 0; padding: 0; }
.bn-ft__links li { margin-bottom: 10px; }
.bn-ft__links a { color: var(--bn-navy-2); font-weight: 700; font-size: 16px; }
.bn-ft__company h3 { margin: 0 0 10px; font-size: 17px !important; color: #000; }
.bn-ft__company p, .bn-ft__legal p { margin: 0 0 6px; font-size: 14px; color: #444; }
.bn-ft__company [uk-icon] { margin-right: 6px; color: #666; }
.bn-ft__company a { color: #444; }
.bn-ft__legal { border-left: 1px solid #ccc; padding-left: 24px; }
.bn-ft__social { margin-top: 10px; }
.bn-ft__bar { background: var(--bn-red); color: #fff; font-size: 13px; padding: 9px 0; }
.bn-ft__bar a { color: #fff; font-weight: 700; }
@media (max-width: 959px) {
    .bn-ft__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
    .bn-ft__row { grid-template-columns: 1fr; }
    .bn-ft__links, .bn-ft__legal { border-left: 0; padding-left: 0; }
}
html[data-theme="dark"] .bn-ft { background: #0d1117; color: #c9d1d9; }
html[data-theme="dark"] .bn-ft__company h3, html[data-theme="dark"] .bn-ft__company p, html[data-theme="dark"] .bn-ft__legal p, html[data-theme="dark"] .bn-ft__company a { color: #c9d1d9; }
html[data-theme="dark"] .bn-recent { background: #161b22; }
html[data-theme="dark"] .bn-recent__item h3 a { color: #e6edf3; }

/* Header, as on the live site: logo with its tagline, a rounded search box on the right, tag chips under the menu. */
.site-mast__row { align-items: center; }
.bn-brand__tagline { margin: 2px 0 0; font-size: 12px; color: #333; font-family: inherit !important; }
.site-mast__logo img { max-height: 70px !important; }
.bn-search { display: flex; align-items: center; background: #e9ecef; border-radius: 20px; padding: 0 6px 0 14px; width: 200px; }
.bn-search input { flex: 1; border: 0; background: none; height: 34px; font-size: 13px; outline: none; min-width: 0; }
.bn-search button { border: 0; background: none; color: var(--bn-navy-2); cursor: pointer; padding: 4px; }
.bn-tags { background: #f5f5f5; border-bottom: 1px solid #eee; padding: 7px 0; }
.bn-tags .site-wrap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bn-tags a { border: 1px solid #ccc; border-radius: 14px; padding: 2px 12px; font-size: 12px; color: #333; background: #fff; }
.bn-tags a:hover { border-color: var(--bn-red); color: var(--bn-red); }
@media (max-width: 639px) {
    .bn-search { display: none; }
    .bn-tags .site-wrap { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
    .bn-tags a { flex: none; }
}
html[data-theme="dark"] .bn-tags { background: #0d1117; border-color: #222; }
html[data-theme="dark"] .bn-tags a { background: #161b22; color: #c9d1d9; border-color: #30363d; }
html[data-theme="dark"] .bn-brand__tagline { color: #c9d1d9; }

/* ------------------------------------------------------------------
 * Type scale: larger, steadier sizes everywhere, in Inter.
 * Headlines 700-800 with tight spacing; body text 17-19px for easy reading.
 * ------------------------------------------------------------------ */
.frontend-body { font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.frontend-body h1, .frontend-body h2, .frontend-body h3, .frontend-body h4 { letter-spacing: -0.015em; }

/* Header and menu */
.site-mast__logo img { max-height: 76px !important; }
.bn-brand__tagline { font-size: 13px !important; }
.bn-search { width: 240px; }
.bn-search input { font-size: 15px; height: 38px; }
.site-nav .uk-navbar-nav > li > a { font-size: 16px !important; font-weight: 600 !important; }
.bn-tags a { font-size: 13px; padding: 3px 13px; }

/* Homepage lead */
.hp-lead__title { font-size: clamp(32px, 3.8vw, 48px) !important; line-height: 1.18 !important; font-weight: 800 !important; letter-spacing: -0.02em; }
.hp-lead__excerpt { font-size: 18px !important; line-height: 1.6; max-width: 900px; }
.hp-byline, .hp-byline__name, .hp-byline__when { font-size: 15px !important; }

/* Under the lead: picture card, rows, Latest News */
.bn-top__card h2 { font-size: clamp(24px, 2.4vw, 32px) !important; font-weight: 800 !important; }
.bn-row h3 { font-size: 21px !important; font-weight: 700 !important; line-height: 1.35; }
.bn-row p { font-size: 15.5px; line-height: 1.55; }
.bn-latest__title { font-size: 21px !important; }
.bn-latest__list a { font-size: 16px; line-height: 1.4; }
.bn-latest__list a::before { font-size: 22px; }

/* Section titles and the stories inside them */
.hp-head__title { font-size: 28px !important; }
.hp-head__icon { width: 40px; height: 40px; }
.hp-story__title, .hp-trio__title, .hp-mosaic__title, .hp-sport__title, .hp-view__title, .hp-tv__title, .hp-video__title {
    font-size: 19px !important; line-height: 1.38 !important; font-weight: 700 !important;
}
.hp-spot__main h3, .hp-spot__main h2, .hp-trio__main .hp-trio__title, .hp-feature__body h3 { font-size: clamp(24px, 2.2vw, 30px) !important; line-height: 1.25 !important; }
.hp-quad__headline { font-size: 24px !important; font-weight: 800 !important; }
.hp-spot__summary, .hp-sport__summary, .hp-mosaic__excerpt, .hp-breaking__excerpt { font-size: 16px !important; line-height: 1.6; }
.hp-meta { font-size: 14px !important; }
.hp-cards .hp-story__title a, .hp-trio a, .hp-spot a { color: #111; }

/* Story page */
.ah-single-heading { font-size: clamp(32px, 3.6vw, 46px) !important; line-height: 1.2 !important; font-weight: 800 !important; letter-spacing: -0.02em; }
.ah-single-section .uk-text-lead { font-size: 21px !important; line-height: 1.5; }
.ah-post-entry, .ah-post-entry p, .ah-post-entry li { font-size: 19px !important; line-height: 1.8 !important; }
.ah-post-entry h2 { font-size: 27px !important; }
.ah-post-entry h3 { font-size: 23px !important; }
.ah-post-entry figcaption { font-size: 15px; }
.bn-writer__name { font-size: 22px !important; }
.bn-writer__more { font-size: 15px; }
.bn-writer__list a { font-size: 16.5px; }
.pc__title, .bn-recent__title { font-size: 25px !important; }
.bn-recent__item h3 { font-size: 17px !important; line-height: 1.4; }
.bn-recent__row p { font-size: 14px; }

/* Category, tag, author and search pages */
.lb-head__title { font-size: clamp(30px, 3vw, 40px) !important; font-weight: 800 !important; }
.lb-card__title { font-size: 19px !important; line-height: 1.38 !important; font-weight: 700 !important; }
.lb-page--category .lb-grid > .lb-card:first-child .lb-card__title { font-size: clamp(28px, 3vw, 38px) !important; font-weight: 800 !important; }
.lb-page--category .lb-grid > .lb-card:first-child .lb-card__excerpt { font-size: 17px; }

/* Footer */
.bn-ft__links a { font-size: 17px; }
.bn-ft__company h3 { font-size: 19px !important; }
.bn-ft__company p, .bn-ft__legal p { font-size: 15px; }
.bn-ft__bar { font-size: 14px; }

/* Phones: still comfortable, never cramped */
@media (max-width: 639px) {
    .frontend-body { font-size: 16px; }
    .hp-lead__title { font-size: 28px !important; }
    .ah-single-heading { font-size: 28px !important; }
    .ah-post-entry, .ah-post-entry p, .ah-post-entry li { font-size: 18px !important; }
    .hp-head__title { font-size: 24px !important; }
    .bn-row h3 { font-size: 17px !important; }
}

/* Inter on every element, including story text and bylines that the shared styles set to Mukta. */
.frontend-body *:not(code):not(pre):not(kbd) { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important; }
.ah-single-section .uk-text-meta, .ah-single-section .uk-text-meta time { font-size: 14px !important; }
.ah-single-section .uk-link-heading { font-size: 16px !important; }

/* Ad spots: each one takes space only when an advertisement is running in it. */
.hp-ad { margin: 20px auto; text-align: center; }
.hp-ad img { display: inline-block; max-width: 100%; height: auto; }
.bn-masthead-ad { flex: 1; display: flex; justify-content: center; min-width: 0; padding: 0 20px; }
.bn-masthead-ad .hp-ad { margin: 0; }
.bn-masthead-ad .hp-ad img { max-height: 90px; width: auto; }
.bn-below-menu-ad .hp-ad { margin: 14px auto 0; }
.bn-recent .hp-ad { margin: 12px 0; }
.hp-leads .hp-ad { margin: 10px auto 26px; }
@media (max-width: 959px) {
    .bn-masthead-ad { display: none; }
}

/* ------------------------------------------------------------------
 * Phone header: one compact bar that stays on screen, like the reference.
 * Home button and logo on the left, search and menu on the right, on light blue-grey.
 * ------------------------------------------------------------------ */
.bn-mbrand { display: none; }
@media (max-width: 767.98px) {
    header.frontend-header .site-mast { display: none; }
    header.frontend-header .site-nav-band { background: #d6e4ef !important; border-top: 0; box-shadow: 0 1px 0 #c3d3e0; }
    header.frontend-header .site-nav-band.uk-sticky-fixed { box-shadow: 0 4px 12px rgba(4, 31, 74, .15); }
    header.frontend-header .site-nav { min-height: 60px; }
    .bn-mbrand { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .bn-mhome { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px; background: #fff; border: 1px solid #c3ced8; color: #1c2b3a; }
    .bn-mhome:hover { color: var(--bn-red); }
    .bn-mlogo img { display: block; height: 38px; width: auto; }
    header.frontend-header .site-nav__tools { flex: none; margin: 0 -6px 0 auto; justify-content: flex-end; gap: 2px; }
    header.frontend-header .site-nav__toggle { order: 2; }
    header.frontend-header .site-tool { color: #1c2b3a !important; width: 44px; height: 44px; }
    header.frontend-header .site-tool:hover { background: rgba(4, 31, 74, .08); color: var(--bn-red) !important; }
    header.frontend-header .site-nav__toggle [uk-icon] svg { width: 30px; height: 30px; }

    /* Tag chips: swipe sideways without a scrollbar. */
    .bn-tags { padding: 8px 0; }
    .bn-tags .site-wrap { scrollbar-width: none; -ms-overflow-style: none; gap: 6px; }
    .bn-tags .site-wrap::-webkit-scrollbar { display: none; }
    .bn-tags a { font-size: 13px; }

    html[data-theme="dark"] header.frontend-header .site-nav-band { background: #161b22 !important; box-shadow: 0 1px 0 #30363d; }
    html[data-theme="dark"] .bn-mhome { background: #0d1117; border-color: #30363d; color: #e6edf3; }
    html[data-theme="dark"] header.frontend-header .site-tool { color: #e6edf3 !important; }
}
@media (max-width: 359.98px) {
    .bn-mlogo img { height: 32px; }
    .bn-mbrand { gap: 8px; }
}

/* Lead pictures size to the picture itself, so no empty band is left under them. */
.hp-lead__media { aspect-ratio: auto !important; height: auto !important; }
.hp-lead__media img { aspect-ratio: auto !important; }
