/* ==========================================================================
   Bodhvriksha — Premium Header (reference-matched)
   ========================================================================== */

:root {
  --hdr-navy: #E50000;
  --hdr-navy-brand: #E50000;
  --hdr-navy-2: #FF1A1A;
  --hdr-green: #2F9E1A;
  --hdr-breaking: #E60000;
  --hdr-muted: #1F2937;
  --hdr-black: #111111;
  --hdr-tile: #F3F5F7;
  --hdr-tile-border: #E8EDF4;
  --hdr-nav-text: #111827;
  --hdr-pink: #FFF5F5;
  --hdr-pink-2: #FDF2F2;
  --hdr-red: #E60000;
}

/* ---- Topbar ---- */
.topbar {
  background: #E50000 !important;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8rem;
  min-height: 34px;
  display: flex;
  align-items: center;
  border-bottom: 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-block: 0.35rem;
}
.topbar__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
}
.topbar__ico {
  opacity: 0.85;
  flex-shrink: 0;
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar__links {
  display: flex;
  align-items: center;
  gap: 0;
}
.topbar__links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  padding: 0 0.7rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  line-height: 1;
}
.topbar__links a:first-child { padding-left: 0; }
.topbar__links a:last-child { border-right: 0; padding-right: 0; }
.topbar__links a:hover { color: #fff; }
.topbar__social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.topbar__social a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  opacity: 0.85;
}
.topbar__social a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}
.topbar__social a img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

/* ---- Site header / brand row ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #E5E9EF;
  position: relative;
  z-index: 120;
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 88px;
  padding-block: 0.85rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #E5E9EF;
  background: #fff;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--hdr-navy-brand);
  border-radius: 2px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
  text-decoration: none;
  color: var(--hdr-navy-brand);
  min-width: 0;
}
.brand:hover { color: var(--hdr-navy-brand); opacity: 0.95; }
.brand__logo {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(280px, 52vw);
  object-fit: contain;
  border-radius: 2px;
}
.brand__mark { display: none; }
.brand__text { display: none; }
.brand__name { display: none; }
.brand__tagline {
  font-family: Mukta, sans-serif;
  font-size: 0.72rem;
  color: var(--hdr-muted) !important;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  line-height: 1.2;
}

/* Search */
.header-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  background: #fff;
  border: 1.5px solid #D5DCE6;
  border-radius: 999px;
  padding: 0.28rem 0.35rem 0.28rem 1rem;
  gap: 0.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.header-search:focus-within {
  border-color: var(--hdr-navy-brand);
  box-shadow: 0 0 0 3px rgba(229, 0, 0, 0.12);
}
.header-search__icon {
  color: var(--hdr-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.header-search__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.header-search input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
  color: #1A2332;
  min-width: 0;
  width: auto;
  padding: 0.55rem 0.25rem;
}
.header-search input::placeholder { color: #6B7280; }
.header-search__btn {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 40px !important;
  background: var(--hdr-navy) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.55rem 1.35rem !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  cursor: pointer;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s;
}
.header-search__btn:hover { background: var(--hdr-navy-2) !important; color: #fff !important; }

/* Widgets — light-grey rounded tiles */
.header-widgets {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.hw-weather,
.hw-epaper,
.hw-notify,
.hw-theme,
.hw-account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  min-height: 56px;
  border-radius: 12px;
  background: var(--hdr-tile);
  border: 1px solid var(--hdr-tile-border);
  color: var(--hdr-navy-brand);
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
}
.hw-weather {
  gap: 0.45rem;
  cursor: pointer;
  min-width: 78px;
}
.hw-weather.is-loading { opacity: 0.65; }
.hw-weather__icon { font-size: 1.35rem; line-height: 1; }
.hw-weather__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.hw-weather__meta strong {
  font-size: 0.95rem;
  color: var(--hdr-navy-brand);
  font-weight: 800;
}
.hw-weather__meta small {
  font-size: 0.7rem;
  color: var(--hdr-muted);
  font-weight: 600;
}

.hw-epaper,
.hw-notify,
.hw-theme,
.hw-account {
  flex-direction: column;
  gap: 0.2rem;
  min-width: 72px;
  cursor: pointer;
  text-align: center;
  line-height: 1.15;
}
.hw-epaper:hover,
.hw-notify:hover,
.hw-theme:hover,
.hw-account:hover {
  background: #EAEFF5;
  color: var(--hdr-navy-brand);
}
.hw-epaper__icon,
.hw-account__icon,
.hw-notify__bell,
.hw-theme__ico {
  color: var(--hdr-navy-brand);
  display: grid;
  place-items: center;
}
.hw-epaper__label,
.hw-account__label,
.hw-notify__label,
.hw-theme__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: inherit;
}
.hw-theme__ico--sun { display: none; }
.hw-theme.is-on .hw-theme__ico--moon { display: none; }
.hw-theme.is-on .hw-theme__ico--sun { display: grid; }
.hw-theme.is-on {
  background: #1A222D;
  border-color: #374151;
  color: #F8FAFC;
}
.hw-theme.is-on:hover {
  background: #243041;
  color: #fff;
}
.hw-notify {
  border: 1px solid var(--hdr-tile-border);
  background: var(--hdr-tile);
  overflow: visible;
}
.hw-notify.is-subscribed { opacity: 0.85; }
.hw-notify__bell {
  position: relative;
  width: 24px;
  height: 24px;
  overflow: visible;
}
.hw-notify__badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #E11D48;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  border: 2px solid #fff;
  z-index: 2;
  pointer-events: none;
}
.hw-notify__badge[hidden] {
  display: none !important;
}

/* ---- Main nav (WHITE bar, icon above text) ---- */
.main-nav {
  background: #ffffff !important;
  position: sticky;
  top: 0;
  z-index: 110;
  box-shadow: none;
  border-top: 1px solid #EEF2F7;
  border-bottom: 1px solid #E5E9EF !important;
}
.main-nav__inner {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-height: 48px;
  padding-block: 0.2rem;
}
.main-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-x: auto;
  gap: 0.1rem;
  scrollbar-width: none;
}
.main-nav__list::-webkit-scrollbar { display: none; }
.main-nav__list li {
  flex-shrink: 0;
  border-right: 0 !important;
}
.main-nav__list a,
.main-nav__link {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  height: auto !important;
  min-height: 0;
  padding: 0.55rem 0.9rem !important;
  color: var(--hdr-navy-brand) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  white-space: nowrap;
  border-bottom: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  line-height: 1.2;
}
.main-nav__ico {
  display: none !important;
}
.main-nav__ico img,
.main-nav__ico svg {
  display: none !important;
}
.main-nav__txt {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.main-nav__list a:hover {
  color: var(--hdr-navy-brand) !important;
  background: #F3F5F7 !important;
}
.main-nav__list a.active,
.main-nav__home.active,
.main-nav__list a.main-nav__home.active {
  color: #fff !important;
  background: var(--hdr-navy-brand) !important;
  border-radius: 999px !important;
  padding-inline: 1.05rem !important;
}
.main-nav__list a.active .main-nav__ico,
.main-nav__home.active .main-nav__ico {
  display: none;
}
.main-nav__list a.active .main-nav__ico img {
  filter: none;
}

.main-nav__all-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 0.35rem;
}
.main-nav__all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--hdr-red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  height: 42px;
  padding: 0 1.05rem;
  font-weight: 800;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
}
.main-nav__all-btn:hover { filter: brightness(1.06); }
.main-nav__all-btn .chev { opacity: 0.9; }
.all-cats-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(520px, 92vw);
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.22);
  border: 1px solid #E5E9EF;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem;
  padding: 0.65rem;
  z-index: 130;
}
.all-cats-menu[hidden] { display: none !important; }
.all-cats-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  color: var(--hdr-navy-brand);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
}
.all-cats-menu a:hover {
  background: #F3F5F7;
  color: var(--hdr-navy-brand);
}

/* ---- Breaking news (light pink ticker) ---- */
.breaking {
  background: #FFF5F5 !important;
  border-bottom: 1px solid #F5D5D5 !important;
  overflow: hidden;
}
.breaking__inner {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 0.75rem;
  padding-block: 0.35rem;
  max-width: 1400px !important;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2rem) !important;
  box-sizing: border-box;
}
.breaking__label {
  flex-shrink: 0;
  background: var(--hdr-red) !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.95rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  clip-path: none !important;
  border-radius: 999px !important;
  z-index: 1;
  text-transform: none;
}
.breaking__label::before {
  display: none !important;
  content: none !important;
}
.breaking__track-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-width: 0;
  background: transparent !important;
}
.breaking__track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: bvTicker 18s linear infinite;
  padding-inline: 0.25rem;
}
.breaking__track:hover { animation-play-state: paused; }
.breaking__item,
.breaking__track a,
a.breaking__item {
  display: inline-flex !important;
  align-items: center;
  color: #111111 !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 1rem;
  border-right: 0 !important;
  text-decoration: none;
}
.breaking__item::before,
.breaking__track a::before {
  content: "" !important;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hdr-red) !important;
  margin-right: 0.65rem;
  flex-shrink: 0;
  color: transparent;
}
.breaking__item:hover,
.breaking__track a:hover,
a.breaking__item:hover {
  color: var(--hdr-red) !important;
}
.breaking__controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  flex-shrink: 0;
  background: transparent !important;
}
.breaking__ctrl {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #D7DEE8;
  background: #fff;
  color: var(--hdr-navy);
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.breaking__ctrl:hover {
  border-color: var(--hdr-navy);
  background: #F3F5F7;
  color: var(--hdr-navy);
}

@keyframes bvTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "toggle brand"
      "search search"
      "widgets widgets";
  }
  .nav-toggle { display: flex; grid-area: toggle; }
  .brand { grid-area: brand; }
  .header-search {
    grid-area: search;
    max-width: none;
    margin: 0;
  }
  .header-widgets {
    grid-area: widgets;
    justify-content: flex-end;
  }
  .brand__tagline { max-width: 200px; }
  .hw-notify__label,
  .hw-epaper__label,
  .hw-account__label { display: none; }
  .hw-epaper,
  .hw-notify,
  .hw-account {
    min-width: 44px;
    min-height: 44px;
    padding: 0.35rem;
  }
}

@media (max-width: 860px) {
  .topbar__links { display: none; }
  .brand__name { font-size: 1.45rem; }
  .site-header { position: sticky; top: 0; }
  .breaking__controls { display: none; }
}

@media (max-width: 520px) {
  .topbar__meta { gap: 0.35rem 0.75rem; font-size: 0.72rem; }
  .topbar__loc span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .header-widgets { gap: 0.35rem; }
  .hw-weather { padding: 0.25rem 0.4rem; min-height: 44px; }
}

/* Overrides against older layout-fix.css / main.css conflicts */
.brand {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.12rem !important;
}
.brand__logo {
  height: 54px !important;
  width: auto !important;
  max-width: min(250px, 48vw) !important;
  object-fit: contain !important;
}
.brand__tagline { display: none !important; }
.header-search {
  background: #fff !important;
  border-radius: 999px !important;
  max-width: 560px;
}
.main-nav__list { display: flex !important; }

.main-nav {
  background: #fff !important;
  border-bottom: 1px solid #E5E9EF !important;
}
.breaking {
  background: #FFF5F5 !important;
}
.breaking__track a,
.breaking__item,
a.breaking__item {
  color: #111111 !important;
}
.breaking__track a:hover,
.breaking__item:hover,
a.breaking__item:hover {
  color: #E60000 !important;
}

@media (max-width: 860px) {
  .header-search { display: flex !important; max-width: none !important; }
  .brand__tagline { display: block !important; font-size: 0.62rem !important; }
}

/* ==========================================================================
   Full-width header + footer bands (edge-to-edge backgrounds)
   ========================================================================== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.container--wide {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
  box-sizing: border-box;
}

.topbar,
.site-header,
.main-nav,
.breaking,
.site-footer {
  width: 100%;
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.topbar,
.site-header,
.main-nav,
.breaking {
  display: block;
}

.topbar__inner,
.site-header__inner,
.main-nav__inner,
.footer-main__grid,
.footer-bottom__inner,
#footer-newsletter.container--wide {
  width: 100%;
  max-width: 1400px !important;
  margin-inline: auto;
  box-sizing: border-box;
}

.site-footer {
  width: 100%;
  max-width: none !important;
}

.footer-bottom__skyline {
  width: 100%;
  left: 0;
  right: 0;
}

.main-nav {
  left: 0;
  right: 0;
}

/* ---- Bodhvriksha professional editorial overrides ---- */
.topbar {
  background: #F8F9FA !important;
  color: #111827 !important;
  border-bottom: 1px solid #E8ECF1 !important;
  min-height: 36px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.topbar__item,
.topbar__links a { color: #111827 !important; font-weight: 700; }
.topbar__links a {
  border-right-color: #D5DBE3 !important;
  padding: 0 0.75rem;
}
.topbar__links a:hover { color: #E50000 !important; }
.topbar__ico { color: #374151 !important; opacity: 1 !important; }
.topbar__social a {
  background: transparent !important;
  border: 0 !important;
  opacity: 0.75 !important;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}
.topbar__social a img {
  filter: none !important;
  opacity: 0.85;
}
.topbar__social a:hover {
  background: #EEF2F7 !important;
  opacity: 1 !important;
}
.topbar__social a:hover img {
  filter: none !important;
  opacity: 1;
}

.site-header {
  border-bottom: 0;
  box-shadow: 0 1px 0 #EEF1F5;
}
.site-header__inner {
  min-height: 92px;
  padding-block: 1rem;
  gap: 1.5rem;
}
.brand__name {
  font-family: "Tiro Devanagari Hindi", Georgia, "Noto Serif Devanagari", serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #E50000 !important;
  letter-spacing: 0.02em;
}
.brand__tagline {
  font-size: 0.76rem !important;
  color: #374151 !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}
.header-search {
  max-width: 580px;
  border-color: #D8DEE8 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.header-search:focus-within {
  border-color: #E50000 !important;
  box-shadow: 0 0 0 3px rgba(229, 0, 0, 0.12) !important;
}
.header-search__btn {
  background: #E50000 !important;
  min-height: 42px !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 700 !important;
}

.header-widgets--motto {
  gap: 0.85rem;
  align-items: center;
}
.header-motto {
  margin: 0;
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.3;
  color: #E50000;
  font-weight: 600;
  max-width: 13.5rem;
}
.header-motto strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: #B80000;
}
.header-widgets--motto .hw-weather,
.header-widgets--motto .hw-theme,
.header-widgets--motto .hw-notify {
  min-height: 48px;
  border: 1px solid #E5E9EF;
  background: #F8F9FA;
  border-radius: 12px;
  box-shadow: none;
}
.header-widgets--motto .hw-theme,
.header-widgets--motto .hw-notify {
  width: 48px;
  min-width: 48px;
  color: #E50000;
  padding: 0.35rem;
}
.header-widgets--motto .hw-theme__label {
  display: none;
}
.header-widgets--motto .hw-theme.is-on {
  background: #1A222D;
  border-color: #374151;
  color: #F8FAFC;
}

.main-nav {
  background: #E50000 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.main-nav__inner {
  min-height: 48px;
}
.main-nav__list a,
.main-nav__link {
  color: rgba(255,255,255,0.95) !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  padding: 0.9rem 0.8rem !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.main-nav__list a:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}
.main-nav__list a.active,
.main-nav__home.active,
.main-nav__list a.main-nav__home.active {
  background: rgba(0,0,0,0.22) !important;
  color: #fff !important;
  border-radius: 0 !important;
}
.main-nav__all-btn {
  background: rgba(0,0,0,0.22) !important;
  color: #fff !important;
  border-radius: 6px !important;
  height: 34px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0 0.85rem !important;
  border: 0 !important;
}
.main-nav__all-btn:hover {
  background: rgba(0,0,0,0.32) !important;
}

.breaking {
  background: #F3F6FB !important;
  border-bottom: 1px solid #E2E8F2 !important;
}
.breaking__label {
  background: #E50000 !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.breaking__item {
  color: #111 !important;
  font-weight: 700 !important;
}
.page-home .breaking { display: none !important; }

body.page-home {
  background: #fff;
}

@media (max-width: 900px) {
  .header-motto { display: none; }
}

/* ===== Dark mode: mobile header widgets / category tiles ===== */
html.theme-dark .nav-toggle,
html.theme-dark .site-header .nav-toggle {
  background: #1A222D !important;
  border-color: #374151 !important;
}
html.theme-dark .nav-toggle span {
  background: #FF4D4D !important;
}
html.theme-dark .hw-weather,
html.theme-dark .hw-epaper,
html.theme-dark .hw-notify,
html.theme-dark .hw-account,
html.theme-dark .header-widgets .hw-weather,
html.theme-dark .header-widgets .hw-notify {
  background: #1A222D !important;
  border-color: #374151 !important;
  color: #F3F4F6 !important;
}
html.theme-dark .hw-weather__meta strong,
html.theme-dark .hw-weather__meta small {
  color: #F3F4F6 !important;
}
html.theme-dark .mh-cat {
  background: transparent !important;
  border: 0 !important;
  color: #E5E7EB !important;
}
html.theme-dark .mh-cat__ico {
  background: #1A222D !important;
  border-color: #374151 !important;
  color: #FF4D4D !important;
  box-shadow: none !important;
}
html.theme-dark .mh-cat__name {
  color: #E5E7EB !important;
}
html.theme-dark .mh-cat.is-active .mh-cat__ico {
  background: #E50000 !important;
  border-color: #E50000 !important;
  color: #fff !important;
}
html.theme-dark .mh-cat.is-active .mh-cat__name {
  color: #FF6B6B !important;
}
html.theme-dark .mh-cat__ico img {
  filter: none;
}
html.theme-dark .mh-cat.is-active .mh-cat__ico img {
  filter: brightness(0) invert(1) !important;
}
html.theme-dark .header-motto,
html.theme-dark .header-motto strong {
  color: #F3F4F6 !important;
}
html.theme-dark .mobile-bottom-nav,
html.theme-dark .mbn-item {
  background: #111827 !important;
  color: #CBD5E1 !important;
  border-color: #1F2937 !important;
}
html.theme-dark .mbn-item.is-active {
  color: #E50000 !important;
  background: transparent !important;
}

html.theme-dark .topbar__social a,
html.theme-dark .topbar__social img {
  opacity: 1 !important;
  filter: brightness(0) invert(1) !important;
}
html.theme-dark .topbar__links a,
html.theme-dark .topbar__item,
html.theme-dark .topbar__meta {
  color: rgba(255,255,255,0.92) !important;
}

html.theme-dark .hw-theme,
html.theme-dark .header-widgets .hw-theme {
  background: #1A222D !important;
  border-color: #374151 !important;
  color: #F3F4F6 !important;
}
html.theme-dark .hw-theme.is-on {
  background: #E50000 !important;
  border-color: #E50000 !important;
  color: #fff !important;
}

/* Desktop topbar theme toggle */
.topbar-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.65rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #D5DBE3;
  background: #fff;
  color: #111827;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.topbar-theme:hover {
  border-color: #E50000;
  color: #E50000;
}
.topbar-theme__ico { display: grid; place-items: center; }
.topbar-theme__ico--sun { display: none; }
.topbar-theme.is-on {
  background: #111827;
  border-color: #111827;
  color: #fff;
}
.topbar-theme.is-on .topbar-theme__ico--moon { display: none; }
.topbar-theme.is-on .topbar-theme__ico--sun { display: grid; }
html.theme-dark .topbar-theme {
  background: #1A222D !important;
  border-color: #374151 !important;
  color: #F3F4F6 !important;
}
html.theme-dark .topbar-theme.is-on {
  background: #E50000 !important;
  border-color: #E50000 !important;
  color: #fff !important;
}
@media (max-width: 900px) {
  .topbar-theme { display: none !important; }
}
