/*
Theme Name:  MoneyPuran
Theme URI:   https://moneypuran.com
Author:      MoneyPuran Team
Author URI:  https://moneypuran.com
Description: India's AI-powered finance & business news theme. Dark/light mode, live market ticker, BSE/NSE stock widget, Google News SEO, breaking news, premium content, AI engine integration, OTP login, newsletter, AMP-ready.
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License:     GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moneypuran
Tags:        news, finance, dark-mode, custom-colors, custom-logo, featured-images, full-width-template, sticky-post, theme-options, translation-ready
*/

/* ═══════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (Design Tokens)
═══════════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --mp-brand:        #0057FF;
  --mp-brand-dark:   #0041CC;
  --mp-brand-lt:     rgba(0,87,255,.1);
  --mp-accent:       #FF6B00;
  --mp-accent-lt:    rgba(255,107,0,.1);

  /* Semantic colours */
  --mp-up:           #10B981;
  --mp-up-bg:        rgba(16,185,129,.1);
  --mp-dn:           #EF4444;
  --mp-dn-bg:        rgba(239,68,68,.1);
  --mp-amber:        #F59E0B;

  /* Light mode surfaces */
  --mp-bg:           #F8FAFC;
  --mp-surface:      #FFFFFF;
  --mp-surface2:     #F1F5F9;
  --mp-border:       #E2E8F0;
  --mp-ink:          #0F172A;
  --mp-ink2:         #334155;
  --mp-muted:        #64748B;
  --mp-shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
  --mp-shadow-lg:    0 8px 32px rgba(0,0,0,.12);

  /* Ticker */
  --mp-ticker-bg:    #0F172A;
  --mp-ticker-text:  #F8FAFC;

  /* Typography */
  --mp-font-sans:    'Sora', system-ui, -apple-system, sans-serif;
  --mp-font-serif:   'Merriweather', Georgia, serif;
  --mp-font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing */
  --mp-r:            8px;
  --mp-r2:           12px;
  --mp-r3:           16px;
  --mp-container:    1240px;
  --mp-gutter:       20px;

  /* Header */
  --mp-header-h:     64px;
  --mp-topbar-h:     36px;
}

/* Dark mode */
[data-theme="dark"] {
  --mp-bg:        #0A0F1E;
  --mp-surface:   #111827;
  --mp-surface2:  #1E293B;
  --mp-border:    rgba(255,255,255,.08);
  --mp-ink:       #F1F5F9;
  --mp-ink2:      #CBD5E1;
  --mp-muted:     #94A3B8;
  --mp-shadow:    0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2);
  --mp-shadow-lg: 0 8px 32px rgba(0,0,0,.4);
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--mp-font-sans);
  background: var(--mp-bg);
  color: var(--mp-ink);
  line-height: 1.6;
  transition: background .2s, color .2s;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mp-brand); text-decoration: none; transition: color .18s; }
a:hover { color: var(--mp-brand-dark); }
ul, ol { padding-left: 1.5rem; }
button { cursor: pointer; font-family: var(--mp-font-sans); }

/* ── Container ── */
.mp-container { max-width: var(--mp-container); margin: 0 auto; padding: 0 var(--mp-gutter); }
.mp-grid { display: grid; }
.mp-flex { display: flex; }

/* ═══════════════════════════════════════════════════════════
   TOP BAR (date, social, dark mode)
═══════════════════════════════════════════════════════════ */
.mp-topbar {
  background: var(--mp-ticker-bg);
  color: var(--mp-ticker-text);
  height: var(--mp-topbar-h);
  display: flex;
  align-items: center;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  z-index: 200;
}
.mp-topbar .mp-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.mp-topbar-left { display: flex; align-items: center; gap: 16px; color: #94A3B8; }
.mp-topbar-right { display: flex; align-items: center; gap: 12px; }
.mp-topbar-social a { color: #94A3B8; font-size: 13px; transition: color .18s; }
.mp-topbar-social a:hover { color: var(--mp-brand); }
.mp-dark-toggle {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #94A3B8;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  transition: all .2s;
}
.mp-dark-toggle:hover { background: var(--mp-brand); color: #fff; border-color: var(--mp-brand); }

/* ═══════════════════════════════════════════════════════════
   BREAKING NEWS TICKER
═══════════════════════════════════════════════════════════ */
.mp-breaking-bar {
  background: var(--mp-dn);
  color: #fff;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.mp-breaking-label {
  background: #C0392B;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
}
.mp-breaking-label .blink {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.mp-ticker-wrap { overflow: hidden; flex: 1; height: 100%; display: flex; align-items: center; }
.mp-ticker-track {
  display: flex;
  gap: 48px;
  animation: ticker linear infinite;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
.mp-ticker-item { display: flex; align-items: center; gap: 8px; }
.mp-ticker-sep { color: rgba(255,255,255,.4); }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ═══════════════════════════════════════════════════════════
   MARKET INDEX BAR
═══════════════════════════════════════════════════════════ */
.mp-market-bar {
  background: var(--mp-surface);
  border-bottom: 1px solid var(--mp-border);
  height: 40px;
  overflow: hidden;
}
.mp-market-bar .mp-container { display: flex; align-items: center; gap: 0; height: 100%; overflow-x: auto; scrollbar-width: none; }
.mp-market-bar .mp-container::-webkit-scrollbar { display: none; }
.mp-market-index {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px;
  border-right: 1px solid var(--mp-border);
  height: 100%;
  white-space: nowrap;
  flex-shrink: 0;
}
.mp-market-index:last-child { border-right: none; }
.mp-mi-name { font-size: 11.5px; font-weight: 700; color: var(--mp-muted); }
.mp-mi-val  { font-size: 13px; font-weight: 700; font-family: var(--mp-font-mono); color: var(--mp-ink); }
.mp-mi-chg  { font-size: 11px; font-weight: 600; font-family: var(--mp-font-mono); padding: 2px 7px; border-radius: 4px; }
.mp-mi-up   { background: var(--mp-up-bg); color: var(--mp-up); }
.mp-mi-dn   { background: var(--mp-dn-bg); color: var(--mp-dn); }

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.mp-header {
  background: var(--mp-surface);
  border-bottom: 1px solid var(--mp-border);
  height: var(--mp-header-h);
  position: sticky;
  top: 0;
  z-index: 150;
  box-shadow: var(--mp-shadow);
}
.mp-header .mp-container { display: flex; align-items: center; gap: 20px; height: 100%; }
.mp-logo { flex-shrink: 0; }
.mp-logo img { height: 38px; width: auto; }
.mp-logo-text { font-size: 22px; font-weight: 800; color: var(--mp-ink); }
.mp-logo-text span { color: var(--mp-brand); }

/* Main Nav */
.mp-nav { flex: 1; display: flex; align-items: center; }
.mp-nav ul { display: flex; list-style: none; padding: 0; margin: 0; gap: 2px; }
.mp-nav > ul > li { position: relative; }
.mp-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 0 14px;
  height: var(--mp-header-h);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mp-ink2);
  border-bottom: 2.5px solid transparent;
  transition: all .18s;
}
.mp-nav > ul > li > a:hover,
.mp-nav > ul > li.current-menu-item > a { color: var(--mp-brand); border-bottom-color: var(--mp-brand); }

/* Dropdown */
.mp-nav li.menu-item-has-children > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 0 0 var(--mp-r2) var(--mp-r2);
  box-shadow: var(--mp-shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s;
  list-style: none;
  z-index: 200;
}
.mp-nav li.menu-item-has-children:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.mp-nav li.menu-item-has-children > ul a { display: block; padding: 9px 18px; font-size: 13px; color: var(--mp-ink2); border-left: 3px solid transparent; }
.mp-nav li.menu-item-has-children > ul a:hover { color: var(--mp-brand); border-left-color: var(--mp-brand); background: var(--mp-brand-lt); }

/* Header Actions */
.mp-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mp-search-btn, .mp-login-btn, .mp-subscribe-btn {
  border: none; outline: none;
  padding: 7px 14px;
  border-radius: var(--mp-r);
  font-size: 13px;
  font-weight: 600;
}
.mp-search-btn { background: var(--mp-surface2); color: var(--mp-muted); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mp-login-btn { background: var(--mp-surface2); color: var(--mp-ink); border: 1px solid var(--mp-border); }
.mp-subscribe-btn { background: var(--mp-brand); color: #fff; }
.mp-subscribe-btn:hover { background: var(--mp-brand-dark); }

/* Hamburger */
.mp-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.mp-hamburger span { display: block; width: 22px; height: 2px; background: var(--mp-ink); border-radius: 2px; transition: all .3s; }

/* ═══════════════════════════════════════════════════════════
   SEARCH OVERLAY
═══════════════════════════════════════════════════════════ */
.mp-search-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 100px;
  opacity: 0; visibility: hidden; transition: all .25s;
}
.mp-search-overlay.active { opacity: 1; visibility: visible; }
.mp-search-box { background: var(--mp-surface); border-radius: var(--mp-r3); padding: 24px; width: 100%; max-width: 640px; box-shadow: var(--mp-shadow-lg); }
.mp-search-box form { display: flex; gap: 10px; }
.mp-search-input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--mp-border); border-radius: var(--mp-r2); font-size: 15px; background: var(--mp-bg); color: var(--mp-ink); outline: none; }
.mp-search-input:focus { border-color: var(--mp-brand); }
.mp-search-submit { background: var(--mp-brand); color: #fff; border: none; padding: 12px 20px; border-radius: var(--mp-r2); font-weight: 700; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════ */
.mp-main { padding: 28px 0 48px; }
.mp-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; }
.mp-layout-full { grid-template-columns: 1fr; }
.mp-layout-wide { grid-template-columns: 1fr 300px; }

/* ═══════════════════════════════════════════════════════════
   HERO / FEATURED POSTS
═══════════════════════════════════════════════════════════ */
.mp-hero { margin-bottom: 32px; }
.mp-hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.mp-hero-main { position: relative; border-radius: var(--mp-r3); overflow: hidden; aspect-ratio: 16/9; }
.mp-hero-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mp-hero-main:hover img { transform: scale(1.03); }
.mp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 55%); }
.mp-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; color: #fff; }
.mp-hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mp-hero-cat { background: var(--mp-brand); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 3px; letter-spacing: .08em; text-transform: uppercase; }
.mp-hero-date { font-size: 11.5px; color: rgba(255,255,255,.7); }
.mp-hero-title { font-size: 22px; font-weight: 800; line-height: 1.3; color: #fff; }
.mp-hero-title a { color: #fff; }

.mp-hero-stack { display: flex; flex-direction: column; gap: 12px; }
.mp-hero-card { display: flex; gap: 12px; background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: var(--mp-r2); overflow: hidden; transition: box-shadow .2s; }
.mp-hero-card:hover { box-shadow: var(--mp-shadow); }
.mp-hero-card-img { width: 110px; flex-shrink: 0; aspect-ratio: 4/3; overflow: hidden; }
.mp-hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mp-hero-card-body { padding: 10px 12px 10px 0; display: flex; flex-direction: column; gap: 6px; }
.mp-hero-card-cat { font-size: 10px; font-weight: 700; color: var(--mp-brand); text-transform: uppercase; letter-spacing: .06em; }
.mp-hero-card-title { font-size: 13px; font-weight: 700; color: var(--mp-ink); line-height: 1.4; }
.mp-hero-card-date { font-size: 11px; color: var(--mp-muted); }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADINGS
═══════════════════════════════════════════════════════════ */
.mp-section { margin-bottom: 36px; }
.mp-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mp-border);
}
.mp-section-title {
  font-size: 16px; font-weight: 800;
  color: var(--mp-ink);
  display: flex; align-items: center; gap: 10px;
}
.mp-section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--mp-brand);
  border-radius: 2px;
}
.mp-section-link { font-size: 12px; font-weight: 600; color: var(--mp-brand); }

/* ═══════════════════════════════════════════════════════════
   POST CARDS
═══════════════════════════════════════════════════════════ */
.mp-posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.mp-posts-grid-2 { grid-template-columns: repeat(2,1fr); }
.mp-posts-grid-4 { grid-template-columns: repeat(4,1fr); }

.mp-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-r2);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.mp-card:hover { box-shadow: var(--mp-shadow); transform: translateY(-2px); }
.mp-card-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.mp-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mp-card:hover .mp-card-thumb img { transform: scale(1.05); }
.mp-card-badge { position: absolute; top: 10px; left: 10px; }
.mp-card-body { padding: 14px 16px 16px; }
.mp-card-cat { font-size: 10px; font-weight: 700; color: var(--mp-brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; display: block; }
.mp-card-title { font-size: 14.5px; font-weight: 700; color: var(--mp-ink); line-height: 1.4; margin-bottom: 8px; }
.mp-card-title a { color: inherit; }
.mp-card-title a:hover { color: var(--mp-brand); }
.mp-card-excerpt { font-size: 12.5px; color: var(--mp-muted); line-height: 1.6; margin-bottom: 10px; }
.mp-card-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--mp-muted); }
.mp-card-author { display: flex; align-items: center; gap: 5px; }
.mp-card-author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.mp-card-reading { margin-left: auto; }

/* List card */
.mp-card-list { display: flex; gap: 14px; background: var(--mp-surface); border-bottom: 1px solid var(--mp-border); padding: 14px 0; }
.mp-card-list:first-child { padding-top: 0; }
.mp-card-list:last-child { border-bottom: none; padding-bottom: 0; }
.mp-card-list .mp-card-thumb { width: 100px; flex-shrink: 0; aspect-ratio: 4/3; border-radius: var(--mp-r); }
.mp-card-list .mp-card-body { padding: 0; flex: 1; }
.mp-card-list .mp-card-title { font-size: 13.5px; }

/* Badge */
.mp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mp-badge-brand  { background: var(--mp-brand); color: #fff; }
.mp-badge-red    { background: var(--mp-dn); color: #fff; }
.mp-badge-amber  { background: var(--mp-amber); color: #fff; }
.mp-badge-premium{ background: linear-gradient(135deg,#D97706,#F59E0B); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════════ */
.mp-single-header { margin-bottom: 24px; }
.mp-single-cat { display: inline-block; background: var(--mp-brand); color: #fff; font-size: 10.5px; font-weight: 800; padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.mp-single-title { font-family: var(--mp-font-serif); font-size: clamp(22px,3.5vw,34px); font-weight: 700; line-height: 1.25; color: var(--mp-ink); margin-bottom: 16px; }
.mp-single-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--mp-muted); flex-wrap: wrap; }
.mp-single-meta .mp-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.mp-single-author { font-weight: 600; color: var(--mp-ink); }
.mp-single-divider { color: var(--mp-border); }
.mp-share-bar { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.mp-share-btn { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--mp-r); font-size: 12px; font-weight: 600; border: none; cursor: pointer; transition: all .18s; }
.mp-share-twitter { background: #1DA1F2; color: #fff; }
.mp-share-facebook { background: #1877F2; color: #fff; }
.mp-share-whatsapp { background: #25D366; color: #fff; }
.mp-share-copy { background: var(--mp-surface2); color: var(--mp-ink); border: 1px solid var(--mp-border); }

/* Article body */
.mp-article-body { font-family: var(--mp-font-serif); font-size: 17px; line-height: 1.85; color: var(--mp-ink2); }
.mp-article-body h2,.mp-article-body h3 { font-family: var(--mp-font-sans); font-weight: 800; color: var(--mp-ink); margin: 32px 0 14px; line-height: 1.3; }
.mp-article-body h2 { font-size: 22px; }
.mp-article-body h3 { font-size: 18px; }
.mp-article-body p { margin-bottom: 20px; }
.mp-article-body ul,.mp-article-body ol { margin: 0 0 20px 24px; }
.mp-article-body li { margin-bottom: 8px; }
.mp-article-body blockquote { border-left: 4px solid var(--mp-brand); padding: 16px 20px; margin: 28px 0; background: var(--mp-brand-lt); border-radius: 0 var(--mp-r2) var(--mp-r2) 0; font-style: italic; font-size: 18px; color: var(--mp-ink); }
.mp-article-body a { color: var(--mp-brand); text-decoration: underline; text-underline-offset: 3px; }
.mp-article-body img { border-radius: var(--mp-r2); margin: 24px 0; width: 100%; }
.mp-article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.mp-article-body th { background: var(--mp-surface2); font-weight: 700; padding: 10px 14px; border: 1px solid var(--mp-border); text-align: left; }
.mp-article-body td { padding: 9px 14px; border: 1px solid var(--mp-border); }
.mp-article-body tr:nth-child(even) td { background: var(--mp-bg); }

/* Premium gate */
.mp-premium-gate {
  margin: 32px 0;
  background: linear-gradient(135deg, var(--mp-surface2), var(--mp-surface));
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-r3);
  padding: 40px 32px;
  text-align: center;
  position: relative;
}
.mp-premium-gate::before { content: ''; position: absolute; inset: 0; border-radius: var(--mp-r3); background: linear-gradient(to bottom, transparent 0%, var(--mp-surface) 85%); }
.mp-premium-gate-inner { position: relative; }
.mp-premium-gate h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.mp-premium-gate p { color: var(--mp-muted); margin-bottom: 20px; }
.mp-premium-btn { display: inline-block; background: linear-gradient(135deg,#D97706,#F59E0B); color: #fff; padding: 12px 28px; border-radius: var(--mp-r2); font-weight: 800; font-size: 15px; box-shadow: 0 4px 16px rgba(217,119,6,.35); transition: all .2s; }
.mp-premium-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217,119,6,.5); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.mp-sidebar { display: flex; flex-direction: column; gap: 24px; }
.mp-widget { background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: var(--mp-r2); overflow: hidden; }
.mp-widget-title {
  font-size: 13px; font-weight: 800;
  color: var(--mp-ink);
  padding: 13px 18px;
  border-bottom: 1px solid var(--mp-border);
  background: var(--mp-surface2);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex; align-items: center; gap: 8px;
}
.mp-widget-title::before { content: ''; display: inline-block; width: 3px; height: 16px; background: var(--mp-brand); border-radius: 2px; }
.mp-widget-body { padding: 16px 18px; }

/* Trending widget */
.mp-trending-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mp-trending-item { display: flex; gap: 12px; align-items: flex-start; }
.mp-trending-num { font-size: 22px; font-weight: 800; color: var(--mp-surface2); font-family: var(--mp-font-mono); line-height: 1; flex-shrink: 0; width: 28px; }
.mp-trending-num.n1 { color: var(--mp-brand); }
.mp-trending-num.n2 { color: var(--mp-dn); }
.mp-trending-num.n3 { color: var(--mp-amber); }
.mp-trending-title { font-size: 13px; font-weight: 600; color: var(--mp-ink); line-height: 1.4; }
.mp-trending-title a { color: inherit; }
.mp-trending-date { font-size: 11px; color: var(--mp-muted); margin-top: 3px; }

/* Newsletter widget */
.mp-newsletter-widget { background: linear-gradient(135deg,#0D1B2E,#0D1117); border-color: rgba(255,255,255,.08); }
.mp-newsletter-widget .mp-widget-title { background: transparent; color: #fff; border-bottom-color: rgba(255,255,255,.1); }
.mp-newsletter-widget .mp-widget-title::before { background: var(--mp-brand); }
.mp-newsletter-body { padding: 20px 18px; }
.mp-newsletter-body p { font-size: 13px; color: #94A3B8; margin-bottom: 14px; line-height: 1.6; }
.mp-nl-form { display: flex; flex-direction: column; gap: 8px; }
.mp-nl-input { padding: 10px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--mp-r); background: rgba(255,255,255,.07); color: #fff; font-size: 13px; outline: none; }
.mp-nl-input::placeholder { color: #64748B; }
.mp-nl-input:focus { border-color: var(--mp-brand); }
.mp-nl-btn { background: var(--mp-brand); color: #fff; border: none; padding: 10px; border-radius: var(--mp-r); font-weight: 700; font-size: 13.5px; transition: background .2s; }
.mp-nl-btn:hover { background: var(--mp-brand-dark); }

/* ═══════════════════════════════════════════════════════════
   STOCK TICKER WIDGET (sidebar)
═══════════════════════════════════════════════════════════ */
.mp-stock-widget-wrap { padding: 0; }
.mp-stock-widget-header { display: flex; gap: 0; border-bottom: 1px solid var(--mp-border); overflow-x: auto; scrollbar-width: none; }
.mp-stock-widget-header::-webkit-scrollbar { display: none; }
.mp-stock-tab { flex: 1; padding: 9px 0; font-size: 11px; font-weight: 700; text-align: center; border: none; background: none; color: var(--mp-muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; font-family: inherit; transition: all .15s; }
.mp-stock-tab.active { color: var(--mp-brand); border-bottom-color: var(--mp-brand); }
.mp-stock-list { display: flex; flex-direction: column; }
.mp-stock-row { display: flex; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--mp-border); font-size: 12.5px; transition: background .15s; }
.mp-stock-row:hover { background: var(--mp-bg); }
.mp-stock-row:last-child { border-bottom: none; }
.mp-stock-sym { font-family: var(--mp-font-mono); font-weight: 700; color: var(--mp-brand); font-size: 12px; width: 80px; }
.mp-stock-price { font-family: var(--mp-font-mono); font-weight: 600; flex: 1; color: var(--mp-ink); }
.mp-stock-chg { font-family: var(--mp-font-mono); font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.mp-stock-up { background: var(--mp-up-bg); color: var(--mp-up); }
.mp-stock-dn { background: var(--mp-dn-bg); color: var(--mp-dn); }

/* ═══════════════════════════════════════════════════════════
   CATEGORY TABS
═══════════════════════════════════════════════════════════ */
.mp-cat-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--mp-border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.mp-cat-tabs::-webkit-scrollbar { display: none; }
.mp-cat-tab { padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--mp-muted); border: none; background: none; border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; font-family: inherit; transition: all .18s; }
.mp-cat-tab:hover { color: var(--mp-ink); }
.mp-cat-tab.active { color: var(--mp-brand); border-bottom-color: var(--mp-brand); }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.mp-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.mp-pagination a, .mp-pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--mp-r);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  color: var(--mp-ink);
  transition: all .18s;
}
.mp-pagination a:hover { background: var(--mp-brand); color: #fff; border-color: var(--mp-brand); }
.mp-pagination .current { background: var(--mp-brand); color: #fff; border-color: var(--mp-brand); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.mp-footer {
  background: #0A0F1E;
  color: #94A3B8;
  border-top: 1px solid rgba(255,255,255,.06);
}
.mp-footer-top { padding: 48px 0 36px; }
.mp-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.mp-footer-brand .mp-logo-text { color: #F1F5F9; margin-bottom: 12px; }
.mp-footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.mp-footer-social { display: flex; gap: 10px; }
.mp-footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #94A3B8; font-size: 14px; transition: all .2s; }
.mp-footer-social a:hover { background: var(--mp-brand); color: #fff; }
.mp-footer-col h4 { font-size: 13px; font-weight: 700; color: #F1F5F9; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.mp-footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mp-footer-col ul a { font-size: 13px; color: #64748B; transition: color .18s; }
.mp-footer-col ul a:hover { color: var(--mp-brand); }
.mp-footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 16px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.mp-footer-disclaimer { margin-top: 16px; padding: 14px 18px; background: rgba(255,255,255,.04); border-radius: var(--mp-r); font-size: 11.5px; line-height: 1.6; border-left: 3px solid var(--mp-amber); }

/* ═══════════════════════════════════════════════════════════
   MODALS: Login / Register / OTP
═══════════════════════════════════════════════════════════ */
.mp-modal-overlay { position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .25s; }
.mp-modal-overlay.active { opacity: 1; visibility: visible; }
.mp-modal { background: var(--mp-surface); border-radius: 20px; padding: 36px; width: 100%; max-width: 420px; box-shadow: var(--mp-shadow-lg); position: relative; transform: scale(.95); transition: transform .25s; }
.mp-modal-overlay.active .mp-modal { transform: scale(1); }
.mp-modal-close { position: absolute; top: 16px; right: 16px; background: var(--mp-surface2); border: none; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; color: var(--mp-muted); display: flex; align-items: center; justify-content: center; }
.mp-modal-logo { text-align: center; margin-bottom: 24px; }
.mp-modal-title { font-size: 20px; font-weight: 800; color: var(--mp-ink); text-align: center; margin-bottom: 6px; }
.mp-modal-sub { font-size: 13px; color: var(--mp-muted); text-align: center; margin-bottom: 24px; }
.mp-form-group { margin-bottom: 14px; }
.mp-form-label { display: block; font-size: 12px; font-weight: 600; color: var(--mp-ink2); margin-bottom: 6px; }
.mp-form-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--mp-border); border-radius: var(--mp-r); font-size: 14px; background: var(--mp-bg); color: var(--mp-ink); outline: none; transition: border-color .18s; font-family: inherit; }
.mp-form-input:focus { border-color: var(--mp-brand); }
.mp-form-btn { width: 100%; background: var(--mp-brand); color: #fff; border: none; padding: 13px; border-radius: var(--mp-r); font-weight: 700; font-size: 15px; margin-top: 6px; transition: background .2s; }
.mp-form-btn:hover { background: var(--mp-brand-dark); }
.mp-google-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--mp-surface); border: 1.5px solid var(--mp-border); padding: 11px; border-radius: var(--mp-r); font-weight: 600; font-size: 14px; color: var(--mp-ink); margin-bottom: 16px; transition: border-color .18s; }
.mp-google-btn:hover { border-color: var(--mp-brand); }
.mp-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--mp-muted); font-size: 12px; }
.mp-divider::before,.mp-divider::after { content: ''; flex: 1; height: 1px; background: var(--mp-border); }
.mp-otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.mp-otp-input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700; border: 2px solid var(--mp-border); border-radius: var(--mp-r); background: var(--mp-bg); color: var(--mp-ink); outline: none; transition: border-color .18s; }
.mp-otp-input:focus { border-color: var(--mp-brand); }

/* ═══════════════════════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════════════════════ */
.mp-comments { margin-top: 40px; }
.mp-comments-title { font-size: 18px; font-weight: 800; margin-bottom: 24px; }
.mp-comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--mp-border); }
.mp-comment-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.mp-comment-body { flex: 1; }
.mp-comment-name { font-weight: 700; font-size: 14px; color: var(--mp-ink); }
.mp-comment-date { font-size: 11.5px; color: var(--mp-muted); margin-left: 8px; }
.mp-comment-text { font-size: 14px; color: var(--mp-ink2); margin-top: 6px; line-height: 1.65; }
.mp-comment-reply { font-size: 12px; font-weight: 600; color: var(--mp-brand); margin-top: 8px; display: inline-block; }

/* ═══════════════════════════════════════════════════════════
   AD SLOTS
═══════════════════════════════════════════════════════════ */
.mp-ad-slot { text-align: center; padding: 12px 0; }
.mp-ad-slot-label { font-size: 10px; color: var(--mp-muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.mp-ad-banner { background: var(--mp-surface2); border: 1px dashed var(--mp-border); border-radius: var(--mp-r); display: flex; align-items: center; justify-content: center; min-height: 90px; color: var(--mp-muted); font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════════ */
.mp-text-up   { color: var(--mp-up); }
.mp-text-dn   { color: var(--mp-dn); }
.mp-text-brand{ color: var(--mp-brand); }
.mp-text-muted{ color: var(--mp-muted); }
.mp-font-mono { font-family: var(--mp-font-mono); }
.mp-hidden    { display: none !important; }
.mp-sr-only   { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .mp-layout { grid-template-columns: 1fr 300px; }
  .mp-hero-grid { grid-template-columns: 1fr; }
  .mp-hero-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .mp-posts-grid { grid-template-columns: repeat(2,1fr); }
  .mp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --mp-header-h: 56px; }
  .mp-layout { grid-template-columns: 1fr; }
  .mp-nav, .mp-header-actions .mp-login-btn, .mp-header-actions .mp-subscribe-btn { display: none; }
  .mp-hamburger { display: flex; }
  .mp-posts-grid,.mp-posts-grid-4 { grid-template-columns: 1fr; }
  .mp-posts-grid-2 { grid-template-columns: repeat(2,1fr); }
  .mp-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .mp-hero-stack { grid-template-columns: 1fr; }
  .mp-single-title { font-size: 22px; }
  .mp-article-body { font-size: 15px; }
  .mp-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  :root { --mp-gutter: 14px; }
  .mp-posts-grid-2 { grid-template-columns: 1fr; }
  .mp-hero-title { font-size: 18px; }
  .mp-modal { padding: 24px 18px; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════════════════════ */
.mp-mobile-menu {
  position: fixed; top: 0; left: -100%; width: 85%; max-width: 320px;
  height: 100vh; background: var(--mp-surface); z-index: 500;
  overflow-y: auto; transition: left .3s; box-shadow: var(--mp-shadow-lg);
  padding: 20px;
}
.mp-mobile-menu.open { left: 0; }
.mp-mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 490; display: none; }
.mp-mobile-overlay.open { display: block; }
.mp-mobile-menu ul { list-style: none; padding: 0; }
.mp-mobile-menu ul a { display: block; padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--mp-ink); border-bottom: 1px solid var(--mp-border); }
.mp-mobile-close { background: none; border: none; font-size: 22px; color: var(--mp-muted); margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════════════════ */
@media print {
  .mp-topbar,.mp-breaking-bar,.mp-market-bar,.mp-header,.mp-sidebar,.mp-footer,.mp-share-bar,.mp-ad-slot { display: none !important; }
  .mp-layout { grid-template-columns: 1fr; }
  .mp-article-body { font-size: 12pt; }
}

/* === MP RESPONSIVE FIXES (appended 2026-09-02) - mobile/tablet overflow + alignment === */
img,video,iframe,embed,object{max-width:100%;height:auto}
.mp-modal-overlay:not(.active):not(.is-open):not(.show),
.mp-search-overlay:not(.active):not(.is-open):not(.show){display:none!important}

@media (max-width:1024px){
  .mp-layout{grid-template-columns:minmax(0,1fr) 300px}
  .mp-primary,.mp-sidebar{min-width:0;max-width:100%}
}
@media (max-width:768px){
  .mp-layout{grid-template-columns:minmax(0,1fr)}
  .mp-primary,.mp-sidebar{min-width:0;max-width:100%}
  .mp-posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mp-md-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mp-market-bar,#mpMarketIndices{max-width:100vw;overflow-x:auto}
  .mp-cat-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .mp-modal,.mp-search-box{width:auto;max-width:calc(100vw - 32px)}
  .mp-footer-top div:has(> #mpFooterEmail){flex:1 1 100%;min-width:0;max-width:100%;width:100%}
  .mp-footer-top #mpFooterEmail{min-width:0;flex:1 1 160px}
  .mp-footer-top div:has(> #mpFooterEmail) > button{flex:0 0 auto}
}
@media (max-width:480px){
  .mp-posts-grid,.mp-md-grid{grid-template-columns:minmax(0,1fr)}
  .mp-md-dashboard .mp-md-head{flex-direction:column;align-items:flex-start;gap:4px}
}

/* MP RESPONSIVE FIXES v2 - topbar on phones */
@media (max-width:600px){
  .mp-topbar-left{ display:none !important; }
  .mp-topbar .mp-container{ justify-content:flex-end !important; }
  .mp-topbar{ height:auto !important; min-height:0 !important; padding:3px 0 !important; }
  .mp-topbar-right{ flex-wrap:wrap !important; justify-content:flex-end !important; }
}

/* MP RESPONSIVE FIXES v3 - let grid tracks shrink below content */
.mp-primary{ min-width:0; }
.mp-cat-tabs{ flex-wrap:wrap; }
@media (min-width:1025px){
  .mp-layout:not(.mp-layout-wide):not(.mp-layout-full){ grid-template-columns: minmax(0,1fr) 340px; }
  .mp-layout-wide{ grid-template-columns: minmax(0,1fr) 300px; }
  .mp-layout-full{ grid-template-columns: minmax(0,1fr); }
}

/* === MP FIXES v4 (2026-09-02) - hide ad placeholders + style the search overlay === */

/* Ad placeholders hidden until real ad code is in place */
.mp-ad-slot,.mp-ad-banner,.mp-ad-slot-label,.mp-widget.mp-ad-slot{display:none !important}

/* Search overlay - was showing the raw browser-default search form */
.mp-search-box{
  background:var(--mp-surface,#fff) !important;color:var(--mp-ink,#0f172a);
  border:1px solid var(--mp-border,#e5e7eb);border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);width:min(640px,calc(100vw - 32px))
}
.mp-search-box .search-form{display:flex;gap:10px;align-items:center}
.mp-search-box label{flex:1;display:block;margin:0}
.mp-search-box .screen-reader-text{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mp-search-box .search-field{
  width:100%;box-sizing:border-box;padding:12px 16px;font-size:15px;
  border:1px solid var(--mp-border,#cbd5e1);border-radius:10px;
  background:var(--mp-bg,#f8fafc);color:var(--mp-ink,#0f172a);outline:none
}
.mp-search-box .search-field:focus{border-color:var(--mp-brand,#0057ff)}
.mp-search-box .search-submit{
  padding:12px 22px;font-size:14px;font-weight:700;cursor:pointer;
  border:0;border-radius:10px;background:var(--mp-brand,#0057ff);color:#fff
}
.mp-search-box .search-submit:hover{filter:brightness(1.06)}
html[data-theme="dark"] .mp-search-box{background:#111827 !important;border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .mp-search-box .search-field{background:#0a0f1e;border-color:rgba(255,255,255,.12);color:#f1f5f9}

/* === MP FIXES v5 (2026-09-02) - header / logo / topbar / category polish === */

/* Topbar: social icons moved to the footer; keep only the theme toggle. */
.mp-topbar-social{display:none !important}
.mp-topbar-right{gap:8px}

/* Distinct logo mark + tighter wordmark. */





/* Primary nav sits on the right next to the actions (standard news layout). */
@media (min-width:1025px){
  .mp-header .mp-container{display:flex;align-items:center;gap:22px}
  .mp-nav{margin-left:auto}
}

/* Category tab strip: scroll horizontally, never wrap into an untidy grid. */
.mp-cat-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;padding-bottom:2px}
.mp-cat-tabs::-webkit-scrollbar{display:none}
.mp-cat-tab{flex:0 0 auto;white-space:nowrap}

/* Section headings + cards on small screens. */
@media (max-width:768px){
  .mp-section{margin:22px 0}
  .mp-section-title,.mp-section-head h2,.mp-section h2{font-size:18px;line-height:1.25}
  .mp-card-title{font-size:15px;line-height:1.35}
  .mp-card-excerpt{display:none}
}
@media (max-width:480px){
  .mp-hero-title{font-size:20px;line-height:1.25}
}

/* View count removed (also stripped from single.php). */
.mp-views,.post-views,[class*="post-views"]{display:none !important}

/* Footer columns: never leave an empty heading hanging. */
.mp-footer-col ul:empty,.mp-footer-col nav:empty{display:none}
.mp-footer-col ul{list-style:none;margin:0;padding:0}
.mp-footer-col li{margin:6px 0}

/* === MP FIXES v5b - logo sub-tagline (header only) + footer tidy === */




.mp-footer-col h4{font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--mp-muted,#94a3b8);margin:0 0 10px}
.mp-footer-col a{color:inherit;opacity:.85}
.mp-footer-col a:hover{opacity:1}
.mp-footer-bottom a{color:inherit;text-decoration:none}
.mp-footer-bottom a:hover{text-decoration:underline}
.mp-footer-bottom{line-height:1.7;font-size:12px}
@media (max-width:768px){
  .mp-footer-grid{grid-template-columns:1fr 1fr !important;gap:22px 16px}
  .mp-footer-brand{grid-column:1 / -1}
}
@media (max-width:460px){ .mp-footer-grid{grid-template-columns:1fr !important} }

/* === MP FIXES v5c - article share row + comment form on small screens === */
.mp-share-buttons,.mp-share,.mp-post-share{display:flex;flex-wrap:wrap;gap:8px}
.mp-share-btn{flex:0 1 auto;min-width:0}
@media (max-width:520px){
  .mp-share-buttons .mp-share-btn{flex:1 1 calc(50% - 8px);justify-content:center;font-size:13px;padding:9px 10px}
}
.mp-form-input{width:100%;box-sizing:border-box;max-width:100%}
#commentform{max-width:100%}
.mp-form-group{margin-bottom:12px}

/* === MP FIXES v5d - primary nav hugs the right on desktop === */
@media (min-width:1025px){
  .mp-header .mp-nav{flex:0 1 auto !important;margin-left:auto !important;justify-content:flex-end}
  .mp-header .mp-nav > ul,.mp-header #menu-primary{margin-left:auto;display:flex;gap:4px}
  .mp-header .mp-header-actions{margin-left:18px}
}

/* === MP LOGO REVERT - plain wordmark, no mark, no sub-tagline === */
.mp-logo-text::before,.mp-logo-text::after{content:none !important;display:none !important}
.mp-logo-text{position:static !important;padding-left:0 !important}
.mp-header .mp-logo::after{content:none !important;display:none !important}


/* ---- MP HEADER v6 : logo left, [theme toggle + search + menu] right ---- */
.mp-header .mp-container{display:flex;align-items:center}
.mp-header .mp-logo{flex:0 0 auto}
.mp-header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.mp-header-actions .mp-dark-toggle{display:inline-flex;align-items:center;gap:4px;font-size:12px;line-height:1;padding:7px 10px;white-space:nowrap;border-radius:20px}
@media(min-width:1025px){.mp-header .mp-nav{margin-left:auto !important}.mp-header-actions{margin-left:14px}}
@media(max-width:1024px){.mp-header-actions .mp-dark-toggle .mp-dark-txt{display:none}.mp-header-actions .mp-dark-toggle{padding:7px 9px}}
@media(max-width:768px){.mp-topbar{display:none}}
.mp-home-lead{margin:2px 0 12px}


/* === MP ALIGN v7 (2026-09-04) header / footer / dashboard cleanup === */
.mp-topbar{display:none !important}
#mpMarketIndices .mp-market-index:first-child{padding-left:0 !important}
.mp-live-meta{max-width:var(--mp-container,1240px) !important;margin:0 auto !important;padding:2px 20px 6px !important;justify-content:flex-start !important;font-size:11px;opacity:.72}
@media(min-width:900px){.mp-cat-tabs{flex-wrap:wrap !important;overflow:visible !important;row-gap:8px}}
.mp-footer-top{padding:30px 0 18px}
.mp-footer-grid{display:flex !important;flex-direction:column;gap:16px}
.mp-footer-brand{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;max-width:none}
.mp-footer-brand .mp-logo-text{margin:0}
.mp-footer-brand p{flex:1 1 340px;margin:0;font-size:12px;line-height:1.55}
.mp-footer-social{margin-left:auto;flex-shrink:0}
.mp-footer-col{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;border-top:1px solid var(--mp-border);padding-top:12px}
.mp-footer-col h4{flex:0 0 76px;margin:0;font-size:11px}
.mp-footer-col ul{flex-direction:row !important;flex-wrap:wrap;gap:4px 16px}
.mp-footer-col ul a{font-size:12.5px}

/* mp-logo mark v7 : icon <img> before the header wordmark */
.mp-header .mp-logo-text{display:inline-flex;align-items:center}
.mp-header .mp-logo-text::before{content:none}
.mp-header .mp-logo-mark{width:26px;height:26px;flex:0 0 auto;margin-right:9px;border-radius:7px;display:block}
@media(max-width:600px){.mp-header .mp-logo-mark{width:22px;height:22px}}

/* === MP TOP-BAR CLEANUP v8 (2026-09-04) : market bar + live-meta + top news ticker removed; [mp_ticker_block] below the header replaces them === */
#mpMarketBar,.mp-market-bar,.mp-live-meta,#mpLiveMeta,#mpTicker,.mp-ticker:not(.mp-tb){display:none !important}
#mpHeader{border-top:1px solid var(--mp-border)}


/* === MP HEADER v9 (2026-09-04) : nav dropdowns + secondary tools nav + 4-slide hero === */
/* dropdown submenu was inheriting display:flex from .mp-nav ul -> items sat in a row */
.mp-nav li.menu-item-has-children > ul{display:block !important}
.mp-nav li.menu-item-has-children > ul li{display:block;width:100%;position:relative}
.mp-nav li.menu-item-has-children > ul a{white-space:nowrap;line-height:1.35}
/* secondary tools nav below the primary header */
.mp-subnav{background:var(--mp-surface2);border-bottom:1px solid var(--mp-border);font-size:12.5px}
.mp-subnav .mp-container{display:flex;align-items:center;gap:0 2px;justify-content:flex-end;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}
.mp-subnav .mp-container::-webkit-scrollbar{display:none}
.mp-subnav a{flex:0 0 auto;display:inline-flex;align-items:center;padding:8px 11px;color:var(--mp-muted);font-weight:600;white-space:nowrap;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}
.mp-subnav a:hover{color:var(--mp-brand);border-bottom-color:var(--mp-brand)}
@media(max-width:1024px){.mp-subnav .mp-container{justify-content:flex-start}}
/* the 4-slide slider replaces the old featured-story hero on the homepage */
body.home .mp-hero{display:none !important}
body.home .mp-home-lead{margin-bottom:6px}
