/* =====================================================================
   Badal Rha Bharat — public stylesheet
   White newspaper canvas, news-red accents, charcoal text.
   Colour tokens are overridden at runtime from Admin > Site Settings.
   ===================================================================== */
:root {
  --brb-red: #C8102E;
  --brb-red-dark: #9E0B23;
  --brb-ink: #1F2328;
  --brb-ink-soft: #4A5058;
  --brb-muted: #6B7178;
  --brb-line: #E6E6E6;
  --brb-paper: #FFFFFF;
  --brb-tint: #F6F5F3;
  --brb-header-bg: #FFFFFF;
  --brb-nav-bg: #C8102E;
  --brb-footer-bg: #1A1D21;
  --brb-font: 'Noto Sans Devanagari', 'Mangal', 'Nirmala UI', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brb-radius: 6px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--brb-font);
  color: var(--brb-ink);
  background: var(--brb-paper);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brb-red); }
:focus-visible { outline: 3px solid var(--brb-red); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border: 2px solid var(--brb-red); }

/* ---------- Top bar ---------- */
.topbar { background: var(--brb-tint); border-bottom: 1px solid var(--brb-line); font-size: 13px; color: var(--brb-ink-soft); }
.topbar .container { min-height: 34px; gap: 1rem; }
.topbar-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.topbar-links a:hover { color: var(--brb-red); }
.social-links { display: flex; gap: .55rem; }
.social-links a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: inherit; }
.social-links a:hover { background: var(--brb-red); color: #fff; }

/* ---------- Masthead ---------- */
.masthead { background: var(--brb-header-bg); padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--brb-ink); }
.brand:hover { color: var(--brb-ink); }
.brand-mark { display: inline-flex; flex: 0 0 auto; }
.brand-mark img { width: 72px; height: 72px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: clamp(1.45rem, 3.6vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }
.brand-tag { font-size: .78rem; color: var(--brb-muted); font-weight: 500; margin-top: .2rem; }
.brand-logo { max-height: 72px; width: auto; }
.masthead-ad { flex: 1; max-width: 728px; }
.masthead-ad .ad-slot { margin: 0; }
.masthead-search { border: 1.5px solid var(--brb-line); border-radius: 999px; overflow: hidden; min-width: 240px; }
.masthead-search .form-control { border: 0; box-shadow: none; padding-left: 1rem; font-size: .95rem; }
.masthead-search .btn { border: 0; color: var(--brb-red); }
.masthead-search:focus-within { border-color: var(--brb-red); }
.btn-icon { font-size: 1.5rem; line-height: 1; padding: .25rem .4rem; color: var(--brb-ink); border: 0; }

/* ---------- Main navigation ---------- */
.mainnav { background: var(--brb-nav-bg); position: sticky; top: 0; z-index: 1020; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.mainnav-list { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mainnav-list::-webkit-scrollbar { display: none; }
.mainnav-list > li { position: relative; flex: 0 0 auto; }
.mainnav-list > li > a { display: block; color: #fff; font-weight: 600; font-size: .98rem; padding: .62rem .85rem; white-space: nowrap; }
.mainnav-list > li > a:hover, .mainnav-list > li > a.active { background: var(--brb-red-dark); color: #fff; }
.subnav { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff; list-style: none; margin: 0; padding: .35rem 0; box-shadow: 0 10px 24px rgba(0,0,0,.15); border-top: 3px solid var(--brb-red); z-index: 10; }
.subnav a { display: block; padding: .4rem 1rem; font-size: .95rem; }
@media (min-width: 992px) {
  .mainnav-list { overflow: visible; flex-wrap: wrap; }
  .has-sub:hover > .subnav, .has-sub:focus-within > .subnav { display: block; }
}

/* ---------- Breaking ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--brb-line); font-size: .95rem; }
.ticker .container { min-height: 40px; overflow: hidden; }
.ticker-label { display: inline-flex; align-items: center; gap: .45rem; background: var(--brb-ink); color: #fff; font-weight: 700; padding: 0 .9rem; white-space: nowrap; flex: 0 0 auto; font-size: .9rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brb-red); box-shadow: 0 0 0 0 rgba(200,16,46,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(200,16,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); } }
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-list { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker-list li { padding: 0 1.4rem; white-space: nowrap; position: relative; }
.ticker-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--brb-red); transform: rotate(45deg); }
.ticker:hover .ticker-list, .ticker:focus-within .ticker-list { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-list { animation: none; overflow-x: auto; }
  .live-dot { animation: none; }
}

.demo-notice { background: #FFF6E5; border-bottom: 1px solid #F3D9A6; color: #6B4A00; font-size: .85rem; padding: .35rem 0; }

/* ---------- Sections ---------- */
.site-main { min-height: 50vh; }
.home-section { margin-bottom: 2rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--brb-ink); margin-bottom: 1rem; }
.section-head h2 { font-size: 1.25rem; margin: 0; padding: .3rem .9rem .3rem 0; position: relative; }
.section-head h2::before { content: ''; display: inline-block; width: 5px; height: 1.05em; background: var(--brb-red); margin-right: .55rem; vertical-align: -0.12em; }
.section-head .more { font-size: .88rem; font-weight: 600; color: var(--brb-red); }
.section-head .more:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.card-news { position: relative; }
.card-media { display: block; position: relative; overflow: hidden; border-radius: var(--brb-radius); background: var(--brb-tint); aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-news:hover .card-media img { transform: scale(1.03); }
.media-badge { position: absolute; left: .5rem; bottom: .5rem; background: rgba(0,0,0,.72); color: #fff; border-radius: 4px; padding: .1rem .45rem; font-size: 1rem; }
.img-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #f1efec, #e4e1dc); }
.img-ph span { font-size: 2.2rem; font-weight: 800; color: rgba(200,16,46,.35); }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--kicker, var(--brb-red)); text-transform: none; margin-bottom: .2rem; }
.card-title-n { font-size: 1.02rem; font-weight: 700; margin: 0 0 .25rem; line-height: 1.45; }
.card-title-n a:hover { color: var(--brb-red); }
.card-meta { font-size: .8rem; color: var(--brb-muted); }
.card-meta .sep { margin: 0 .2rem; }
.demo-tag { display: inline-block; font-size: .66rem; font-weight: 700; color: #8a5a00; background: #FFF1D6; border: 1px solid #F0D49A; border-radius: 3px; padding: 0 .3rem; vertical-align: .15em; }

.card-grid .card-body-n { padding-top: .55rem; }
.card-hero .card-media { aspect-ratio: 16 / 9; }
.card-hero .card-body-n { padding-top: .75rem; }
.card-hero .card-title-n { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 800; line-height: 1.35; }
.card-summary { color: var(--brb-ink-soft); margin: .3rem 0 .4rem; font-size: 1rem; }

.card-list { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--brb-line); }
.card-list .card-media { flex: 0 0 120px; width: 120px; aspect-ratio: 4 / 3; }
.card-list .card-title-n { font-size: .96rem; font-weight: 600; }
.card-list .card-body-n { min-width: 0; }
.hero-side .card-list:first-child { padding-top: 0; }
.list-2col .col-md-6:nth-child(odd) .card-list { margin-right: .6rem; }
.list-2col .col-md-6:nth-child(even) .card-list { margin-left: .6rem; }
@media (max-width: 767.98px) { .list-2col .card-list { margin: 0 !important; } }

.card-overlay .card-media { aspect-ratio: 3 / 4; }
.card-overlay .card-body-n { position: absolute; inset: auto 0 0 0; padding: 2.5rem .8rem .8rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; border-radius: 0 0 var(--brb-radius) var(--brb-radius); pointer-events: none; }
.card-overlay .card-body-n a { pointer-events: auto; color: #fff; }
.card-overlay .kicker { color: #FFD3DA; }
.card-overlay .card-meta { color: rgba(255,255,255,.75); }
.card-overlay .media-badge { top: .5rem; bottom: auto; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, calc((100% - 1.8rem) / 3)); gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
.strip > * { scroll-snap-align: start; }
.type-video, .type-gallery { background: var(--brb-ink); color: #fff; padding: 1rem; border-radius: var(--brb-radius); }
.type-video .section-head, .type-gallery .section-head { border-color: rgba(255,255,255,.4); }
.type-video .section-head .more, .type-gallery .section-head .more { color: #FFB3C0; }

/* ---------- Sidebar ---------- */
.sidebar { position: relative; }
.side-box { border: 1px solid var(--brb-line); border-top: 3px solid var(--brb-red); border-radius: 0 0 var(--brb-radius) var(--brb-radius); padding: .9rem 1rem; margin-bottom: 1.5rem; background: #fff; }
.side-h { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; margin: 0 0 .6rem; }
.side-h a { font-size: .82rem; color: var(--brb-red); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 46px 1fr; gap: .5rem; padding: .5rem 0; border-bottom: 1px dashed var(--brb-line); font-size: .93rem; line-height: 1.5; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--brb-red); font-weight: 700; font-size: .8rem; padding-top: .15rem; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 34px 1fr; gap: .4rem; padding: .55rem 0; border-bottom: 1px solid var(--brb-line); font-size: .95rem; font-weight: 600; line-height: 1.5; }
.ranked li:last-child { border-bottom: 0; }
.ranked li::before { content: counter(rank); font-size: 1.5rem; font-weight: 800; color: #E4C4CA; line-height: 1; }
@media (min-width: 992px) { .sticky-ad { position: sticky; top: 60px; } }

/* ---------- Ads ---------- */
.ad-slot { text-align: center; margin: 1rem 0 1.5rem; }
.ad-slot img { display: inline-block; border-radius: 4px; }
.ad-label { display: block; font-size: .68rem; color: var(--brb-muted); letter-spacing: .05em; margin-bottom: .2rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; font-size: .85rem; color: var(--brb-muted); }
.crumbs li + li::before { content: '/'; margin: 0 .45rem; color: #c5c5c5; }
.crumbs a:hover { color: var(--brb-red); }

/* ---------- Article ---------- */
.story-title { font-size: clamp(1.55rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.32; margin: .25rem 0 .6rem; letter-spacing: -.005em; }
.story-summary { font-size: 1.15rem; color: var(--brb-ink-soft); font-weight: 500; border-left: 4px solid var(--brb-red); padding-left: .9rem; margin-bottom: 1rem; }
.story-byline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: center; border-top: 1px solid var(--brb-line); border-bottom: 1px solid var(--brb-line); padding: .6rem 0; margin-bottom: 1rem; font-size: .9rem; }
.story-byline .by a { font-weight: 700; color: var(--brb-red); }
.story-byline .dates { color: var(--brb-muted); font-size: .82rem; }
.story-byline .sep { color: #bbb; margin: 0 .3rem; }
.share { display: flex; gap: .4rem; }
.share a, .share button { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--brb-line); background: #fff; color: var(--brb-ink); font-size: 1rem; }
.share a:hover, .share button:hover { background: var(--brb-red); color: #fff; border-color: var(--brb-red); }
.story-figure { margin: 0 0 1.2rem; }
.story-figure img { width: 100%; border-radius: var(--brb-radius); }
.story-figure figcaption, .gallery-item figcaption { font-size: .85rem; color: var(--brb-muted); padding: .4rem 0; border-bottom: 1px solid var(--brb-line); }
.credit { font-style: italic; }
.story-video { margin-bottom: 1.2rem; border-radius: var(--brb-radius); overflow: hidden; background: #000; }
.story-body { font-size: 1.12rem; line-height: 1.9; }
.story-body p { margin: 0 0 1.15rem; }
.story-body h2 { font-size: 1.4rem; margin: 1.6rem 0 .7rem; }
.story-body h3 { font-size: 1.2rem; margin: 1.3rem 0 .6rem; }
.story-body a { color: var(--brb-red); text-decoration: underline; text-underline-offset: 3px; }
.story-body blockquote { border-left: 4px solid var(--brb-red); background: var(--brb-tint); padding: .8rem 1rem; margin: 1.2rem 0; font-size: 1.08rem; font-weight: 500; }
.story-body img { border-radius: var(--brb-radius); margin: .5rem 0; }
.story-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.story-body th, .story-body td { border: 1px solid var(--brb-line); padding: .45rem .6rem; }
.story-body th { background: var(--brb-tint); }
.demo-box { background: #FFF6E5; border: 1px solid #F3D9A6; color: #6B4A00; border-radius: var(--brb-radius); padding: .6rem .8rem; font-size: .9rem; margin-bottom: 1rem; }
.story-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 1.5rem 0; }
.story-tags a { background: var(--brb-tint); border: 1px solid var(--brb-line); border-radius: 999px; padding: .15rem .75rem; font-size: .88rem; }
.story-tags a:hover { border-color: var(--brb-red); }
.author-box { display: flex; gap: 1rem; padding: 1rem; background: var(--brb-tint); border-radius: var(--brb-radius); }
.author-box .name { font-weight: 700; font-size: 1.05rem; }
.author-box p { margin: .2rem 0 0; font-size: .92rem; color: var(--brb-ink-soft); }
.avatar { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--brb-red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }
.avatar.lg { width: 72px; height: 72px; font-size: 2rem; }
.gallery { display: grid; gap: 1.2rem; margin-bottom: 1.2rem; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; border-radius: var(--brb-radius); }
.gal-num { font-weight: 700; color: var(--brb-red); margin-right: .3rem; }

/* ---------- Listings ---------- */
.listing-head { display: flex; gap: 1rem; align-items: center; border-bottom: 2px solid var(--brb-ink); padding-bottom: .6rem; margin-bottom: 1rem; }
.listing-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.lead-intro { color: var(--brb-ink-soft); margin: .25rem 0 0; }
.count { color: var(--brb-muted); font-size: .85rem; margin: .2rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.chips a { border: 1px solid var(--brb-line); border-radius: 999px; padding: .2rem .85rem; font-size: .9rem; font-weight: 500; }
.chips a:hover { border-color: var(--brb-red); color: var(--brb-red); }
.pager { margin: 1.8rem 0; }
.pagination { --bs-pagination-color: var(--brb-ink); --bs-pagination-active-bg: var(--brb-red); --bs-pagination-active-border-color: var(--brb-red); --bs-pagination-hover-color: var(--brb-red); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(200,16,46,.25); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--brb-muted); }
.empty-state .bi { font-size: 2.5rem; display: block; margin-bottom: .5rem; }

/* ---------- Forms & buttons ---------- */
.btn-brb { background: var(--brb-red); border-color: var(--brb-red); color: #fff; font-weight: 600; }
.btn-brb:hover, .btn-brb:focus { background: var(--brb-red-dark); border-color: var(--brb-red-dark); color: #fff; }
.search-big { display: flex; gap: .5rem; }
.form-control:focus { border-color: var(--brb-red); box-shadow: 0 0 0 .2rem rgba(200,16,46,.15); }
.req { color: var(--brb-red); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-info li { padding: .4rem 0; }
.static-page { max-width: 820px; margin: 0 auto; }
.notfound { text-align: center; max-width: 640px; margin: 0 auto; }
.notfound .code { font-size: 6rem; font-weight: 800; color: var(--brb-red); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brb-footer-bg); color: #C9CDD2; padding: 2.5rem 0 1rem; margin-top: 2rem; font-size: .93rem; }
.site-footer a { color: #E6E8EB; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: .7rem; font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: .7rem; }
.footer-brand img { background: #fff; border-radius: 10px; padding: 3px; }
.footer-about { line-height: 1.75; }
.footer-h { font-size: 1rem; color: #fff; text-transform: none; border-bottom: 2px solid var(--brb-red); display: inline-block; padding-bottom: .25rem; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .22rem 0; overflow-wrap: anywhere; }
.footer-links.two-col { columns: 2; column-gap: 1rem; }
.site-footer .social-links a { background: rgba(255,255,255,.08); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Mobile off-canvas ---------- */
.mobile-menu, .mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu > li { border-bottom: 1px solid var(--brb-line); }
.mobile-menu a { display: block; padding: .6rem .2rem; font-weight: 600; }
.mobile-menu ul a { padding-left: 1.2rem; font-weight: 400; font-size: .95rem; }

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
  body { font-size: 16px; }
  .masthead { padding: .45rem 0; }
  .brand-mark img { width: 52px; height: 52px; }
  .card-list .card-media { flex-basis: 100px; width: 100px; }
  .card-grid .card-title-n { font-size: .94rem; }
  .story-body { font-size: 1.06rem; line-height: 1.85; }
  .search-big { flex-direction: column; }
}

@media print {
  .topbar, .mainnav, .ticker, .sidebar, .ad-slot, .share, .site-footer, .masthead-search, .demo-notice { display: none !important; }
}

/* =====================================================================
   v1.1 — mobile news-portal layout, topic chips, city picker,
   bottom tab bar, headline prefix, e-paper / e-magazine
   ===================================================================== */
.hl-prefix { color: var(--brb-red); }

/* Masthead tools */
.masthead-tools { display: flex; align-items: center; gap: .6rem; }
.city-btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 1.5px solid var(--brb-line); border-radius: 999px; padding: .35rem .9rem; font-size: .95rem; font-weight: 500; color: var(--brb-ink); white-space: nowrap; max-width: 46vw; }
.city-btn .city-name { overflow: hidden; text-overflow: ellipsis; }
.city-btn .bi { color: var(--brb-red); font-size: 1.1rem; }
.city-btn:hover { border-color: var(--brb-red); }
.tools-sep { width: 1px; height: 30px; background: #D9D9D9; }

/* Section headings: bold title with a short red underline */
.section-head { border-bottom: 0; align-items: flex-end; margin-bottom: .9rem; }
.section-head h2 { font-size: 1.35rem; font-weight: 800; padding: 0 0 .45rem; }
.section-head h2::before { display: none; }
.section-head h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--brb-red); border-radius: 2px; }
.type-video .section-head h2, .type-gallery .section-head h2 { color: #fff; }

/* Topic chips under the navigation */
.topic-chips { background: #EEF0F2; border-bottom: 1px solid var(--brb-line); }
.topic-chips ul { list-style: none; margin: 0; padding: .55rem 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.topic-chips ul::-webkit-scrollbar { display: none; }
.topic-chips li { flex: 0 0 auto; }
.chip { display: inline-block; border: 1.5px solid #3A3F45; background: #fff; color: var(--brb-ink); border-radius: 999px; padding: .28rem 1rem; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.chip:hover, .chip.active { border-color: var(--brb-red); color: var(--brb-red); }
.chip-solid { background: var(--brb-red); border-color: var(--brb-red); color: #fff; }
.chip-solid:hover, .chip-solid.active { color: #fff; background: var(--brb-red-dark); }

/* "आज के अहम घटनाक्रम" — big centred top headline */
.highlight-block { background: #F2F3F5; text-align: center; padding: 1.3rem 1.2rem 1.4rem; border-radius: var(--brb-radius); margin-bottom: 1.6rem; }
.highlight-label { display: inline-block; background: var(--brb-red); color: #fff; font-size: 1.05rem; font-weight: 600; padding: .3rem 1.2rem; margin: 0 0 .9rem; border-radius: 2px; }
.highlight-title { font-size: clamp(1.35rem, 3.2vw, 1.85rem); font-weight: 800; line-height: 1.5; margin: 0 auto; max-width: 760px; }
.highlight-title + .highlight-title { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #DCDDE0; }
.highlight-title a:hover { color: var(--brb-red); }

.card-label { display: none; }

/* Bottom tab bar (phones and tablets) */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; background: var(--brb-nav-mobile); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(0,0,0,.18); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; color: #E8E9EB; font-size: .8rem; font-weight: 500; height: 62px; }
.bottom-nav a .bi { font-size: 1.35rem; line-height: 1; }
.bottom-nav a.active { background: var(--brb-red); color: #fff; }
.bottom-nav a:hover { color: #fff; }
.bottom-nav .bn-center { position: relative; background: transparent !important; }
.bn-logo { width: 60px; height: 60px; margin-top: -22px; border-radius: 50%; background: #fff; border: 3px solid var(--brb-red); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.3); overflow: hidden; }
.bn-logo img { width: 46px; height: 46px; }

/* City picker bottom sheet */
.city-sheet.offcanvas-bottom { height: 78vh; border-radius: 16px 16px 0 0; }
.city-group { margin-bottom: 1rem; }
.city-group h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .45rem; }
.city-group h3 a::after { content: ' \203A'; color: var(--brb-red); }
.city-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.city-list a { border: 1px solid var(--brb-line); border-radius: 999px; padding: .25rem .85rem; font-size: .95rem; background: #fff; }
.city-list a:hover, .city-list a:focus { border-color: var(--brb-red); color: var(--brb-red); }

@media (max-width: 991.98px) {
  body.has-bottom-nav { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .masthead { padding: .4rem 0; border-bottom: 1px solid var(--brb-line); }
  .masthead .container { gap: .5rem !important; }
  .brand { margin-right: auto; }
  .brand-mark img { width: 50px; height: 50px; }
  .brand-logo { max-height: 50px; }
  .city-btn { border: 0; padding: .3rem .2rem; font-size: 1.02rem; }
  .city-btn .bi { font-size: 1.3rem; color: #6B7178; }
  .mainnav { background: var(--brb-nav-mobile); box-shadow: none; }
  .mainnav .container { padding-left: 0; }
  .mainnav-list > li > a { color: #E8E9EB; font-weight: 500; font-size: 1.02rem; padding: .7rem .95rem; }
  .mainnav-list > li > a.active, .mainnav-list > li > a:hover { background: transparent; color: #fff; box-shadow: inset 0 -3px 0 var(--brb-red); }
  .mainnav-list > li.nav-home > a { background: var(--brb-red); color: #fff; padding-left: 1.1rem; padding-right: 1.1rem; box-shadow: none; }
  .mainnav-list .bi-chevron-down { display: none; }
  .ticker .container { min-height: 36px; }
  .ticker-label { font-size: .82rem; padding: 0 .6rem; }
  .footer-bottom { padding-bottom: .5rem; }
}

@media (max-width: 767.98px) {
  .site-main > .container { padding-left: 12px; padding-right: 12px; }
  .home-section .row.g-3, .listing-list + .row, .row.g-3 { --bs-gutter-x: .65rem; --bs-gutter-y: .75rem; }
  .highlight-block { margin-left: -12px; margin-right: -12px; border-radius: 0; padding: 1.2rem 1rem 1.3rem; }
  .highlight-title { font-size: 1.42rem; }
  .home-section .row > .col-6:last-child:nth-child(odd) { flex: 0 0 100%; max-width: 100%; }
  .card-grid { background: #EAF4FA; border-radius: 6px; overflow: hidden; height: 100%; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
  .col-6:nth-child(4n+2) .card-grid, .col-6:nth-child(4n+3) .card-grid { background: #FBF4EC; }
  .card-grid .card-media { border-radius: 0; }
  .card-grid .card-body-n { padding: .55rem .7rem .8rem; }
  .card-grid .kicker { display: none; }
  .card-grid .card-label { display: block; font-size: .82rem; color: #5A6068; margin-bottom: .2rem; }
  .card-grid .card-title-n { font-size: 1.04rem; font-weight: 600; line-height: 1.55; }
  .card-grid .card-meta { font-size: .75rem; margin-top: .3rem; }
  .card-grid .demo-tag { font-size: .62rem; }
  .card-hero .card-media { border-radius: 0; margin: 0 -12px; }
  .card-hero .card-title-n { font-size: 1.45rem; }
  .section-head h2 { font-size: 1.4rem; }
  .sidebar .side-box { border-radius: 6px; }
}

/* ---------------- E-paper archive ---------------- */
.ep-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.ep-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.ep-head h1 .bi { color: var(--brb-red); }
.ep-tabs { display: inline-flex; background: #EEF0F2; border-radius: 999px; padding: 4px; }
.ep-tabs a { padding: .35rem 1.1rem; border-radius: 999px; font-weight: 600; }
.ep-tabs a.active { background: var(--brb-red); color: #fff; }
.ep-filter { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; background: var(--brb-tint); border: 1px solid var(--brb-line); border-radius: var(--brb-radius); padding: .8rem; margin-bottom: 1.4rem; }
.ep-filter label { display: block; font-size: .85rem; color: var(--brb-muted); margin-bottom: .2rem; }
.ep-filter .form-control, .ep-filter .form-select { min-width: 170px; }
.ep-lead { display: grid; grid-template-columns: minmax(150px, 280px) 1fr; gap: 1.5rem; align-items: center; background: #fff; border: 1px solid var(--brb-line); border-top: 4px solid var(--brb-red); border-radius: var(--brb-radius); padding: 1.2rem; margin-bottom: 2rem; }
.ep-lead-cover img, .ep-card-cover img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; display: block; background: #fff; }
.ep-lead-cover { display: block; box-shadow: 0 6px 22px rgba(0,0,0,.18); border-radius: 4px; overflow: hidden; }
.ep-lead h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: .4rem 0 .6rem; }
.ep-badge { display: inline-block; background: var(--brb-red); color: #fff; font-size: .85rem; font-weight: 600; padding: .15rem .7rem; border-radius: 3px; }
.ep-meta { color: var(--brb-muted); font-size: .95rem; line-height: 1.9; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.1rem; }
.ep-card h3 { font-size: 1rem; margin: .55rem 0 .1rem; }
.ep-card p { font-size: .85rem; color: var(--brb-muted); margin: 0; }
.ep-card-cover { display: block; position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,.14); transition: transform .2s; }
.ep-card-cover:hover { transform: translateY(-3px); }
.ep-type { position: absolute; left: 0; top: 10px; background: var(--brb-red); color: #fff; font-size: .75rem; font-weight: 600; padding: .1rem .55rem; border-radius: 0 3px 3px 0; }
.ep-cover-ph { aspect-ratio: 3 / 4; display: grid; place-content: center; text-align: center; gap: .3rem; background: linear-gradient(160deg, #fff, #F1ECE6); color: var(--brb-red); font-weight: 700; }
.ep-cover-ph .bi { font-size: 2.4rem; }
.ep-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 170px); gap: 1rem; overflow-x: auto; padding: .2rem .1rem .6rem; scroll-snap-type: x mandatory; }
.ep-strip > * { scroll-snap-align: start; }
.ep-side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ep-side-item { display: block; text-align: center; }
.ep-side-item img, .ep-side-item .ep-cover-ph { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.ep-side-item span { display: block; font-weight: 700; margin-top: .4rem; }
.ep-side-item small { color: var(--brb-muted); }
@media (max-width: 575.98px) {
  .ep-lead { grid-template-columns: 120px 1fr; gap: 1rem; padding: .9rem; }
  .ep-lead .btn-lg { font-size: 1rem; padding: .45rem .9rem; }
  .ep-meta { font-size: .85rem; line-height: 1.7; }
  .ep-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .ep-filter > div { flex: 1 1 140px; }
  .ep-filter .form-control, .ep-filter .form-select { min-width: 0; }
}

/* ---------------- E-paper reader ---------------- */
.reader-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .6rem; margin-bottom: .6rem; }
.reader-head h1 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin: 0; }
.reader-head .ep-meta { margin: 0; line-height: 1.5; }
.reader { border: 1px solid #D5D7DA; border-radius: 6px; background: #E4E6E9; }
.reader-bar { position: sticky; top: var(--nav-h, 0px); z-index: 5; border-radius: 6px 6px 0 0; display: flex; align-items: center; gap: .15rem; background: #23262A; color: #fff; padding: .3rem .4rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.rb-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 6px; background: transparent; color: #fff; font-size: 1.15rem; flex: 0 0 auto; }
.rb-btn:hover, .rb-btn[aria-expanded="true"] { background: rgba(255,255,255,.14); color: #fff; }
.rb-sep { width: 1px; height: 24px; background: rgba(255,255,255,.2); margin: 0 .2rem; flex: 0 0 auto; }
.rb-spacer { flex: 1 1 auto; }
.rb-page { display: inline-flex; align-items: center; gap: .3rem; font-size: .95rem; flex: 0 0 auto; white-space: nowrap; }
.rb-page input { width: 3.1rem; height: 30px; text-align: center; border: 0; border-radius: 4px; padding: 0 .2rem; font-size: .95rem; }
.reader-body { display: flex; align-items: flex-start; }
.reader-thumbs { flex: 0 0 150px; max-height: 80vh; overflow-y: auto; background: #D3D6DA; padding: .5rem; position: sticky; top: calc(var(--nav-h, 0px) + 46px); display: flex; flex-direction: column; gap: .5rem; }
.reader-thumbs[hidden] { display: none; }
.thumb { border: 2px solid transparent; background: #fff; padding: 2px; border-radius: 3px; display: flex; flex-direction: column; align-items: center; }
.thumb canvas, .thumb .thumb-img { display: block; width: 120px; min-height: 150px; max-width: 100%; height: auto; background: #F1F1F1; }
.thumb canvas { min-height: 0; }
.thumb-n { font-size: .78rem; font-weight: 600; color: #333; }
.thumb.active { border-color: var(--brb-red); }
.reader-stage { flex: 1 1 auto; min-width: 0; overflow: auto; padding: 8px; min-height: 60vh; position: relative; outline: none; touch-action: pan-x pan-y pinch-zoom; }
.reader-canvas { display: block; margin: 0 auto; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.reader-stage.zoomed .reader-canvas { margin: 0; }
.reader-status { position: absolute; left: 50%; top: 1.5rem; transform: translateX(-50%); background: rgba(35,38,42,.9); color: #fff; padding: .45rem 1rem; border-radius: 999px; font-size: .9rem; z-index: 3; white-space: nowrap; }
.reader-status a { color: #FFC7D0; text-decoration: underline; }
.reader-status[hidden] { display: none; }
.reader:fullscreen, .reader.is-full { display: flex; flex-direction: column; background: #16181B; border-radius: 0; border: 0; }
.reader.is-full { position: fixed; inset: 0; z-index: 2000; }
.reader:fullscreen .reader-body, .reader.is-full .reader-body { flex: 1; min-height: 0; }
.reader:fullscreen .reader-stage, .reader.is-full .reader-stage { height: 100%; max-height: none; }
.reader:fullscreen .reader-bar, .reader.is-full .reader-bar { top: 0; }
body.reader-lock { overflow: hidden; }
.page-reader .site-main > .container { max-width: 1320px; }
@media (max-width: 767.98px) {
  .reader-wrap { padding-left: 0 !important; padding-right: 0 !important; }
  .reader-wrap .crumbs, .reader-head, .reader-wrap > p, .reader-wrap > .alert { padding-left: 12px; padding-right: 12px; }
  .reader { border-left: 0; border-right: 0; border-radius: 0; }
  .reader-body { flex-direction: column; align-items: stretch; }
  .reader-thumbs { flex: none; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; position: static; }
  .thumb canvas, .thumb .thumb-img { width: 72px; min-height: 0; }
  .thumb .thumb-img { height: 96px; }
  .reader-stage { padding: 4px; min-height: 70vh; }
  .rb-btn { width: 36px; height: 36px; }
}
