:root {
  --navy-primary: #0B2241;
  --navy-secondary: #15345C;
  --electric-blue: #0284C7;
  --sky-accent: #38BDF8;
  --white: #FFFFFF;
  --bg-light: #F6F8FB;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EEF2F7;
  --bg-dark: #0B1320;
  --breaking-red: #DC2626;
  --gold-accent: #F59E0B;
  --success-green: #059669;
  --muted-text: #64748B;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container-max: 1340px;
  --font-sans: 'Plus Jakarta Sans', 'Inter', 'Noto Sans Sinhala', 'Noto Sans Tamil', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --article-font-scale: 1;
  --target-size: 24px;
}

@media (pointer: coarse) {
  :root {
    --target-size: 44px;
  }
}

[data-theme="dark"] {
  --bg-light: #0C1524;
  --bg-surface: #132033;
  --bg-subtle: #1B2C44;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --muted-text: #94A3B8;
  --border-color: #243752;
  --electric-blue: #38BDF8;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.44);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  scroll-padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:where(a, code) { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:where(button, select, input:not([type="checkbox"], [type="radio"]), [role="button"], .nav-link, .filter-pill, .topic-chip) {
  min-block-size: var(--target-size);
}
:focus-visible {
  outline: 2px solid var(--electric-blue);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breaking-ticker-list {
    animation: none !important;
    overflow-x: auto;
  }
  .pulse-dot {
    animation: none !important;
  }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--electric-blue); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

.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;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 18px;
}

/* SECTION 01: TOP INFO BAR */
.top-info-bar {
  background: var(--navy-primary);
  color: #E2E8F0;
  font-size: 12px;
  min-height: 36px;
  border-bottom: 1px solid rgba(53, 182, 255, 0.18);
}
.top-info-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.top-info-left, .top-info-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(53, 182, 255, 0.14);
  color: #FFFFFF;
  font-weight: 600;
}
.lang-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  padding: 2px;
  border-radius: 6px;
}
.lang-pill {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11.5px;
  color: #CBD5E1;
  transition: background 0.18s, color 0.18s;
}
.lang-pill.active {
  background: var(--electric-blue);
  color: var(--navy-primary);
}
.top-social-links { display: inline-flex; align-items: center; gap: 6px; }
.social-pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.social-pill-icon.fb { background: #1877F2; border-color: #1877F2; }
.social-pill-icon.yt { background: #E11D48; border-color: #E11D48; }
.social-pill-icon.ig { background: linear-gradient(135deg, #F58529 0%, #DD2A7B 55%, #8134AF 100%); border-color: transparent; }
.social-pill-icon.tw { background: #1E293B; border-color: rgba(255,255,255,0.35); }
.social-pill-icon.mail { background: #059669; border-color: #059669; }
.social-pill-icon:hover { color: #FFFFFF; transform: translateY(-1px) scale(1.06); filter: brightness(1.08); }

/* LAYER 02: PURE-WHITE SIGNATURE MASTHEAD HEADER */
.brand-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}
.brand-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.brand-logo-wrap { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo-wrap img, .brand-logo-img {
  height: 68px;
  width: auto;
  max-width: 310px;
  object-fit: contain;
  background: transparent;
}
.logo-for-dark { display: none; }
[data-theme="dark"] .logo-for-light { display: none; }
[data-theme="dark"] .logo-for-dark { display: block; }
.footer-brand-logo {
  height: 94px;
  width: auto;
  margin-bottom: 12px;
  background: transparent;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-wordmark .flex-word {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--navy-primary);
}
[data-theme="dark"] .brand-wordmark .flex-word { color: #FFFFFF; }
.brand-wordmark .lanka-word {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--navy-secondary);
  margin-top: 2px;
}
[data-theme="dark"] .brand-wordmark .lanka-word { color: var(--electric-blue); }
.brand-wordmark .lanka-word span { color: var(--breaking-red); }
.brand-tagline-center {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--navy-secondary);
  padding: 6px 16px;
  border-left: 3px solid var(--gold-accent);
  border-right: 3px solid var(--electric-blue);
}
[data-theme="dark"] .brand-tagline-center { color: var(--gold-accent); }
.brand-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.icon-btn, .pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.icon-btn:hover, .pill-btn:hover {
  border-color: var(--electric-blue);
  color: var(--navy-primary);
  background: rgba(53, 182, 255, 0.14);
}
[data-theme="dark"] .icon-btn:hover, [data-theme="dark"] .pill-btn:hover {
  color: #FFFFFF;
}
.pill-btn.primary {
  background: var(--navy-primary);
  color: #FFFFFF;
  border-color: var(--navy-primary);
}
.pill-btn.primary:hover {
  background: var(--navy-secondary);
  color: #FFFFFF;
}

/* LAYER 03: CRISP LIGHT STICKY NAVIGATION + MEGA MENU */
.main-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-surface);
  color: var(--text-primary);
  border-bottom: 2px solid var(--navy-primary);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
[data-theme="dark"] .main-nav-wrap {
  background: #0F1D30;
  border-bottom-color: var(--electric-blue);
}
.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-primary);
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--breaking-red);
  background: rgba(2, 132, 199, 0.06);
  border-bottom-color: var(--breaking-red);
}
[data-theme="dark"] .nav-link { color: #E2E8F0; }
[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: #FFFFFF;
  border-bottom-color: var(--sky-accent);
}
.nav-live-pill {
  background: var(--breaking-red);
  color: #FFFFFF !important;
  border-radius: 6px;
  padding: 5px 10px;
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #FFFFFF;
  display: inline-block;
  animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.mega-menu-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--electric-blue);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-md);
  padding: 20px;
  z-index: 100;
}
.mega-menu-panel.open { display: block; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}
.mega-item {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-item:hover { border-color: var(--electric-blue); }
.mega-item strong { font-size: 13.5px; }
.mega-item span { font-size: 11.5px; color: var(--muted-text); }

/* LAYER 03B: AIRY EDITORIAL BREAKING NEWS TICKER */
.breaking-bar {
  background: #FFF1F2;
  border-bottom: 1px solid #FECDD3;
  color: #881337;
}
[data-theme="dark"] .breaking-bar {
  background: #1C1017;
  border-bottom-color: var(--breaking-red);
  color: #F8FAFC;
}
.breaking-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  overflow: hidden;
}
.breaking-badge {
  background: var(--breaking-red);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breaking-ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.breaking-ticker-list {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 34s linear infinite;
}
.breaking-bar:hover .breaking-ticker-list,
.breaking-bar:focus-within .breaking-ticker-list {
  animation-play-state: paused;
}
.breaking-ticker-item {
  font-size: 13.5px;
  font-weight: 700;
  color: #1E293B;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
[data-theme="dark"] .breaking-ticker-item { color: #F8FAFC; }
.breaking-ticker-item:hover { color: var(--breaking-red); }
.breaking-sep { color: var(--breaking-red); font-weight: 900; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 12-COLUMN GRID & SECTIONS */
.page-section { padding: 22px 0; }
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-3 { grid-column: span 3; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--navy-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
[data-theme="dark"] .section-title { color: #FFFFFF; }
.section-title::before {
  content: '';
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: var(--electric-blue);
  display: inline-block;
}
.section-title.red::before { background: var(--breaking-red); }
.section-title.gold::before { background: var(--gold-accent); }
.section-title.green::before { background: var(--success-green); }

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
}
.filter-pill.active, .filter-pill:hover {
  background: var(--navy-primary);
  color: #FFFFFF;
  border-color: var(--navy-primary);
}
[data-theme="dark"] .filter-pill.active {
  background: var(--electric-blue);
  color: var(--navy-primary);
  border-color: var(--electric-blue);
}

/* HERO SECTION */
.hero-lead-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-primary);
  box-shadow: var(--shadow-md);
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-lead-card img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.hero-lead-card:hover img.hero-bg { transform: scale(1.03); }
.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 28px;
  background: linear-gradient(180deg, rgba(16,24,32,0.12) 0%, rgba(16,24,32,0.72) 45%, rgba(16,24,32,0.95) 100%);
  color: #FFFFFF;
}
.hero-overlay h1 {
  margin: 10px 0 10px;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.22;
  font-weight: 900;
}
.hero-overlay p {
  margin: 0 0 14px;
  color: #E2E8F0;
  font-size: 15px;
  max-width: 70ch;
}
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--electric-blue);
  color: var(--navy-primary);
}
.cat-badge.breaking { background: var(--breaking-red); color: #FFFFFF; }
.cat-badge.sponsored { background: var(--gold-accent); color: var(--navy-primary); }
.cat-badge.demo { background: #334155; color: #F8FAFC; }

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted-text);
}
.hero-overlay .meta-row { color: #CBD5E1; }

.top-stories-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.top-story-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: start;
}
.top-story-item:last-child { border-bottom: 0; padding-bottom: 0; }
.top-story-item img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.top-story-item h3 {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

/* CARDS */
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.news-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.35);
}
.news-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-primary);
}
.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.news-card:hover .news-card-thumb img {
  transform: scale(1.04);
}
.news-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-card-body h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.42;
  font-weight: 800;
  transition: color 0.15s ease;
}
.news-card:hover .news-card-body h3 a {
  color: var(--electric-blue);
}
.news-card-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted-text);
  font-weight: 600;
}

/* SIDEBAR WIDGETS */
.sidebar-stack { display: flex; flex-direction: column; gap: 20px; }
.widget-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.ranked-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}
.ranked-item:last-child { border-bottom: 0; padding-bottom: 0; }
.rank-num {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 6px;
  background: var(--navy-primary);
  color: var(--gold-accent);
  font-weight: 900;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.ranked-item h4 { margin: 0 0 4px; font-size: 13.5px; line-height: 1.35; }

/* AD SLOTS */
.ad-slot-wrapper {
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  margin: 12px 0;
}
.ad-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 6px;
}
.ad-native-card {
  background: linear-gradient(135deg, #102849 0%, #173D68 100%);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: left;
}
.ad-native-card h4 { margin: 0 0 6px; font-size: 16px; color: var(--gold-accent); }
.ad-native-card p { margin: 0 0 12px; font-size: 13px; color: #E2E8F0; }
.ad-cta {
  display: inline-block;
  background: var(--electric-blue);
  color: var(--navy-primary);
  font-weight: 800;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 6px;
}

.mobile-sticky-ad {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--bg-surface);
  border-top: 2px solid var(--electric-blue);
  padding: 6px 12px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
}
.mobile-sticky-close {
  position: absolute;
  top: 4px; right: 8px;
  background: var(--navy-primary);
  color: #FFFFFF;
  border: 0;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
}

/* NEWSLETTER BANNER */
.newsletter-band {
  background: linear-gradient(135deg, #102849 0%, #173D68 60%, #0E4D82 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}
.newsletter-band h2 { margin: 0 0 8px; font-size: 24px; font-weight: 900; }
.newsletter-band p { margin: 0; color: #CBD5E1; font-size: 14.5px; }
.newsletter-form-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.input-control {
  width: 100%;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
}

/* ARTICLE PAGE */
.article-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.article-headline {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.22;
  font-weight: 900;
  margin: 10px 0;
}
.article-subheadline {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 14px 0;
}
.article-body {
  font-size: calc(17px * var(--article-font-scale));
  line-height: 1.78;
  color: var(--text-primary);
}
.article-body p { margin: 0 0 1.2em; }
.key-facts-box {
  background: var(--bg-subtle);
  border-left: 4px solid var(--electric-blue);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}
.sources-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 22px 0;
}

/* FOOTER */
.site-footer {
  background: var(--navy-primary);
  color: #E2E8F0;
  margin-top: 32px;
  padding: 44px 0 24px;
  border-top: 4px solid var(--electric-blue);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-accent);
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 13.5px; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #CBD5E1;
}

/* MODAL */
dialog.fl-dialog {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-surface);
  color: var(--text-primary);
  max-inline-size: min(680px, calc(100dvw - 24px));
  width: calc(100% - 24px);
  max-block-size: 90dvh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: var(--shadow-md);
}
dialog.fl-dialog::backdrop {
  background: rgba(16, 24, 32, 0.65);
  backdrop-filter: blur(2px);
}

/* ========================================================================= */
/* 2-IN-1 MODERN NEWS & MAGAZINE LANDING PAGE COMPONENTS (LAYERED UI)        */
/* ========================================================================= */

.hero-layer { padding: 20px 0 12px; }
.ad-layer { padding: 4px 0 8px; }
.band-subtle { background: var(--bg-subtle); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.main-feed-stack { display: flex; flex-direction: column; gap: 22px; }
.editorial-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  container-type: inline-size;
}
.widget-box {
  container-type: inline-size;
}
.section-more-link {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--electric-blue);
  white-space: nowrap;
}
.section-more-link:hover { text-decoration: underline; }

/* LAYER 01: BENTO MAGAZINE HERO + 2x2 MOSAIC */
.bento-hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 18px;
  align-items: stretch;
}
.bento-lead-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bento-lead-card {
  min-height: 400px;
  flex: 1;
}
.hero-read-cta {
  color: var(--gold-accent);
  font-weight: 800;
}
.hero-trending-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hero-mini-tile {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.hero-mini-tile:hover {
  transform: translateY(-2px);
  border-color: var(--electric-blue);
}
.hero-mini-tile img {
  width: 78px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.hero-mini-body { min-width: 0; }
.mini-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--electric-blue);
}
.hero-mini-body h4 {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-mosaic-col {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.mosaic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.bento-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}
.mosaic-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 222px;
  background: var(--navy-primary);
}
.mosaic-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.mosaic-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.mosaic-card:hover img { transform: scale(1.05); }
.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,34,65,0.08) 18%, rgba(11,34,65,0.88) 100%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  color: #FFFFFF;
}
.mosaic-overlay h3 {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.32;
  font-weight: 800;
  color: #FFFFFF;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mosaic-time {
  font-size: 11px;
  color: #CBD5E1;
  font-weight: 600;
}

/* COMPACT NUMBERED EDITORIAL GRID (SRI LANKA DESK - MAGAZINE STYLE) */
.compact-numbered-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.compact-news-row {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-light);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.compact-news-row:hover {
  border-color: var(--electric-blue);
  background: var(--bg-surface);
}
.compact-thumb {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compact-num {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: var(--breaking-red);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
}
.compact-meta {
  font-size: 11px;
  color: var(--muted-text);
  margin-bottom: 4px;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.compact-body h3 {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.38;
  font-weight: 800;
}

/* RANKED SIDEBAR WITH MINI THUMBNAILS */
.ranked-with-thumb { align-items: center; }
.ranked-thumb {
  width: 68px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.ranked-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-navy { background: var(--navy-secondary); color: #FFFFFF; }

/* STAY CONNECTED SOCIAL MEDIA VISIT WIDGET */
.social-connect-list {
  display: grid;
  gap: 9px;
}
.social-connect-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #FFFFFF !important;
  font-weight: 700;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}
.social-connect-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}
.social-connect-btn.social-fb { background: linear-gradient(135deg, #1877F2 0%, #0D5BD9 100%); }
.social-connect-btn.social-yt { background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%); }
.social-connect-btn.social-ig { background: linear-gradient(135deg, #F58529 0%, #DD2A7B 55%, #8134AF 100%); }
.social-connect-btn.social-x  { background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%); }
.social-connect-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-connect-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
}
.social-connect-meta strong { font-size: 13.5px; }
.social-connect-meta small { font-size: 11px; opacity: 0.88; font-weight: 500; }
.social-connect-cta {
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* FOOTER SOCIAL VISIT BUTTONS */
.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF !important;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.footer-social-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.footer-social-btn.fb { background: #1877F2; }
.footer-social-btn.yt { background: #DC2626; }
.footer-social-btn.ig { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.footer-social-btn.tw { background: #334155; border: 1px solid rgba(255,255,255,0.22); }

/* ALWAYS-VISIBLE "YOUR AD HERE" DEMO ADVERTISING SLOTS */
.ad-demo-slot {
  background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 48%, #FFFBEB 100%);
  border: 2px dashed #0284C7;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 10px 0;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .ad-demo-slot {
  background: linear-gradient(135deg, #10253F 0%, #162B47 55%, #1E293B 100%);
  border-color: var(--sky-accent);
}
.ad-demo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ad-variant-sidebar .ad-demo-inner {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 206px;
}
.ad-variant-mobile {
  padding: 8px 12px;
  margin: 0;
}
.ad-demo-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ad-demo-pill {
  background: var(--navy-primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.ad-demo-size {
  font-size: 11px;
  font-weight: 800;
  color: var(--electric-blue);
  background: rgba(2, 132, 199, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}
.ad-demo-headline {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--navy-primary);
  line-height: 1.25;
}
[data-theme="dark"] .ad-demo-headline { color: #FFFFFF; }
.ad-variant-mobile .ad-demo-headline { font-size: 13.5px; }
.ad-demo-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.ad-demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0B2241 0%, #0284C7 100%);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.ad-demo-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* SRI LANKA POLITICS SPOTLIGHT + QUICK TOPICS + READING PROGRESS + BACK TO TOP */
.quick-topics-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 7px 0;
}
.quick-topics-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 12px;
}
.quick-topics-inner::-webkit-scrollbar { display: none; }
.quick-topics-label {
  font-weight: 900;
  color: var(--breaking-red);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.topic-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.topic-chip:hover {
  background: var(--navy-primary);
  border-color: var(--navy-primary);
  color: #FFFFFF;
}
.politics-panel {
  border-top: 4px solid var(--breaking-red);
}
.politics-spotlight-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: start;
}
.politics-lead-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.politics-lead-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-primary);
}
.politics-lead-thumb img { width: 100%; height: 100%; object-fit: cover; }
.politics-lead-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.politics-lead-body h3 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 900; }
.politics-lead-body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.politics-side-list {
  display: grid;
  gap: 11px;
}
.read-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #DC2626 0%, #F59E0B 50%, #0284C7 100%);
  z-index: 120;
  transition: width 0.08s linear;
}
.back-top-btn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: var(--navy-primary);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(11, 34, 65, 0.28);
  cursor: pointer;
  z-index: 92;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top-btn:hover { background: var(--electric-blue); }

/* RESPONSIVE */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.search-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.search-result-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.push-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.dialog-search-row {
  display: flex;
  gap: 8px;
}

/* NATIVE <dialog> MOBILE NAVIGATION DRAWER (Swipe-to-Dismiss Scroll Snap) */
.Drawer {
  --drawer-width: min(21rem, 84dvw, 100dvw - 24px);
  --drawer-backdrop: 0;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}
.Drawer::backdrop {
  background: #000;
  opacity: calc(var(--drawer-backdrop) / 2);
}
.Drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.Drawer-scroller::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .Drawer-scroller {
    scroll-behavior: smooth;
  }
}
.Drawer-scroller::after {
  content: '';
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}
.Drawer-sheet {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100svh;
  background: var(--navy-primary);
  color: #F8FAFC;
  overflow-y: auto;
  scroll-snap-align: start;
  scrollbar-width: none;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
}
.Drawer-sheet::-webkit-scrollbar { display: none; }
@supports (animation-timeline: scroll()) {
  .Drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }
  .Drawer-scroller {
    scroll-timeline: --drawer-fade x;
  }
  @property --drawer-backdrop {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
  }
  @keyframes fade-drawer-backdrop {
    0% { --drawer-backdrop: 1; }
    100% { --drawer-backdrop: 0; }
  }
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(14px, env(safe-area-inset-top, 0px)) 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.drawer-brand img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.drawer-body {
  padding: 14px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-lang-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.drawer-lang-pill {
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.drawer-lang-pill.active {
  background: var(--sky-accent);
  color: var(--navy-primary);
  border-color: var(--sky-accent);
}
.drawer-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.drawer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.drawer-action-btn.is-primary {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  color: #FFFFFF;
}
.drawer-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-top: 4px;
}
.drawer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.drawer-nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #E2E8F0;
  border: 1px solid transparent;
}
.drawer-nav-list a[aria-current="page"] {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--sky-accent);
  color: #FFFFFF;
}

/* Container-aware adaptation for editorial panels */
@container (inline-size < 520px) {
  .compact-numbered-grid { grid-template-columns: 1fr; }
  .news-grid-2, .news-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .bento-hero-grid, .politics-spotlight-grid { grid-template-columns: 1fr; }
  .bento-mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .col-8, .col-4 { grid-column: span 12; }
  .news-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-header-inner { grid-template-columns: auto 1fr auto; }
  .brand-tagline-center { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter-band { grid-template-columns: 1fr; }
  .search-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mobile-menu-btn { display: inline-flex; }
  .brand-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .brand-logo-wrap { justify-content: center; }
  .brand-logo-img { height: 50px; max-width: 210px; }
  .header-alerts-btn, .header-auth-btn, .app-header-btn { display: none; }
  .action-btn-label { display: none; }
  .mega-menu-panel {
    max-block-size: calc(100dvh - 8rem);
    overflow-y: auto;
  }
}
@media (max-width: 720px) {
  .container { padding: 0 14px; }
  .top-info-bar { font-size: 11.5px; }
  .top-info-inner { gap: 8px; padding: 5px 0; }
  .top-social-links, .top-app-link { display: none; }
  .mobile-menu-label { display: none; }
  .brand-header { padding: 10px 0; }
  .brand-logo-img { height: 44px; max-width: 175px; }
  .nav-link { padding: 11px 11px; font-size: 12px; }
  .news-grid-3, .news-grid-2, .footer-grid, .compact-numbered-grid, .hero-trending-strip, .bento-mosaic-grid { grid-template-columns: 1fr; }
  .col-6, .col-3 { grid-column: span 12; }
  .search-filter-grid, .search-result-card, .form-grid-2, .push-cat-grid { grid-template-columns: 1fr; }
  .dialog-search-row { flex-direction: column; }
  .editorial-panel, .article-header-card { padding: 15px; border-radius: 12px; }
  .hero-overlay { padding: 18px; }
  .hero-overlay h1 { font-size: clamp(1.25rem, 1rem + 2.5vw, 1.85rem); }
  .article-headline { font-size: clamp(1.35rem, 1.05rem + 2.5vw, 2rem); }
  .section-title { font-size: clamp(1.05rem, 0.95rem + 1vw, 1.25rem); }
  .bento-lead-card { min-height: 280px; }
  .mosaic-card { min-height: 185px; }
  .compact-news-row { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .compact-body { min-width: 0; }
  .newsletter-band { padding: 20px 16px; }
  .newsletter-form-grid { grid-template-columns: 1fr; }
  .mobile-sticky-ad {
    display: block;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  }
  body:not(.mobile-ad-dismissed) { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .back-top-btn {
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
  body.mobile-ad-dismissed .back-top-btn {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .audio-status-col { min-width: 0; }
  .audio-title { max-width: 100%; }
}
@media (max-width: 480px) {
  .top-info-left > span:first-child,
  .top-info-left > span:nth-child(2) { display: none; }
  .top-story-item { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .top-story-item img { width: 76px; height: 54px; }
  .politics-lead-body h3 { font-size: 17px; }
  .article-toolbar { padding: 10px; gap: 8px; }
  .toolbar-btn { padding: 7px 10px; font-size: 12.5px; }
  .phone-floating-pill { left: 8px; top: 12px; padding: 6px 10px; font-size: 11px; }
}

/* ===================================================================== */
/* ARTICLE READER TOOLBAR & UNIVERSAL AUDIO PLAYER                      */
/* ===================================================================== */
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.font-step-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-subtle);
}
.font-step-btn {
  border: 0;
  border-right: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.16s ease;
}
.font-step-btn:last-child {
  border-right: 0;
}
.font-step-btn:hover {
  background: rgba(53, 182, 255, 0.12);
  color: var(--navy-primary);
}
.font-step-btn.is-active {
  background: var(--navy-primary);
  color: #FFFFFF;
}
[data-theme="dark"] .font-step-btn.is-active {
  background: var(--electric-blue);
  color: #0F172A;
}
.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}
.toolbar-btn:hover {
  border-color: var(--electric-blue);
  background: rgba(53, 182, 255, 0.12);
  color: var(--navy-primary);
  transform: translateY(-1px);
}
[data-theme="dark"] .toolbar-btn:hover {
  color: #FFFFFF;
}
.toolbar-btn.tts-active {
  background: rgba(53, 182, 255, 0.18);
  border-color: var(--electric-blue);
  color: var(--navy-primary);
}
[data-theme="dark"] .toolbar-btn.tts-active {
  color: var(--electric-blue);
}
.toolbar-btn.bookmarked {
  background: rgba(244, 185, 66, 0.14);
  border-color: var(--gold-accent);
  color: #B45309;
}
[data-theme="dark"] .toolbar-btn.bookmarked {
  color: var(--gold-accent);
}
.share-btn-wa:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.12);
  color: #128C7E;
}
.share-btn-fb:hover {
  border-color: #1877F2;
  background: rgba(24, 119, 242, 0.12);
  color: #1877F2;
}
.share-btn-tg:hover {
  border-color: #229ED9;
  background: rgba(34, 158, 217, 0.12);
  color: #229ED9;
}
.share-btn-x:hover {
  border-color: var(--text-primary);
  background: rgba(128, 128, 128, 0.12);
}
.share-btn-mail:hover {
  border-color: #EA4335;
  background: rgba(234, 67, 53, 0.12);
  color: #EA4335;
}
.share-btn-copy:hover {
  border-color: var(--electric-blue);
  background: rgba(53, 182, 255, 0.14);
  color: var(--electric-blue);
}
.share-btn-copy.copied {
  border-color: #159B69;
  background: rgba(21, 155, 105, 0.14);
  color: #159B69;
}

/* AUDIO PLAYER DOCKED BAR */
.fl360-audio-bar {
  background: var(--bg-surface);
  border: 1px solid var(--electric-blue);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0 18px;
  box-shadow: 0 4px 12px rgba(53, 182, 255, 0.12);
}
.audio-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.audio-status-col {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  flex: 1;
}
.audio-wave-anim {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  width: 20px;
}
.audio-wave-anim span {
  width: 3px;
  background: var(--electric-blue);
  border-radius: 2px;
  animation: fl360AudioWave 1s ease-in-out infinite alternate;
}
.audio-wave-anim span:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.audio-wave-anim span:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.audio-wave-anim span:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.audio-wave-anim span:nth-child(4) { height: 80%; animation-delay: 0.4s; }
.audio-wave-anim.is-paused span {
  animation-play-state: paused;
  opacity: 0.5;
}
@keyframes fl360AudioWave {
  0% { height: 25%; }
  100% { height: 100%; }
}
.audio-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.audio-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-progress-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted-text);
}
.audio-controls-col {
  display: flex;
  align-items: center;
  gap: 8px;
}
.audio-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.16s ease;
}
.audio-ctrl-btn:hover {
  background: var(--electric-blue);
  color: #FFFFFF;
  border-color: var(--electric-blue);
}
.audio-ctrl-btn.play-pause-btn {
  width: 36px;
  height: 36px;
  background: var(--navy-primary);
  color: #FFFFFF;
  border-color: var(--navy-primary);
}
.audio-ctrl-btn.play-pause-btn:hover {
  background: var(--electric-blue);
  color: #FFFFFF;
  border-color: var(--electric-blue);
}
.audio-ctrl-btn.speed-btn {
  border-radius: 12px;
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================================
   MOBILE & DESKTOP APP PLATFORMS ECOSYSTEM (UNIVERSAL STYLING)
   Platforms: Android, Huawei, Apple iOS, Chrome OS, Mac, Windows
   ========================================================================== */

/* 1. TOP BAR & NAVIGATION ELEMENTS */
.top-app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--sky-accent);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.16s ease;
  margin-right: 8px;
}
.top-app-link:hover {
  background: var(--sky-accent);
  color: var(--navy-primary);
  border-color: var(--sky-accent);
}
.top-app-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 6px var(--success-green);
  animation: fl360DotPulse 2s infinite ease-in-out;
}
@keyframes fl360DotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.5; }
}

.app-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--electric-blue);
  font-weight: 700;
  font-size: 13px;
}
.app-header-btn:hover {
  color: var(--sky-accent);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.18s ease;
}
.nav-app-pill:hover {
  background: var(--electric-blue);
  color: #FFFFFF;
  border-color: var(--electric-blue);
}
.nav-platform-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.p-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.p-dot.p-android { background: #3DDC84; }
.p-dot.p-huawei  { background: #E21A22; }
.p-dot.p-apple   { background: #94A3B8; }
.p-dot.p-chrome  { background: #34A853; }
.p-dot.p-mac     { background: #38BDF8; }

/* MEGA MENU APP BAR */
.mega-app-bar {
  grid-column: 1 / -1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mega-app-lead {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mega-app-logo {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.mega-app-lead strong {
  display: block;
  font-size: 14.5px;
  color: var(--text-primary);
}
.mega-app-lead p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted-text);
}
.mega-app-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 2. REUSABLE STORE BADGES */
/* Full Variant (Cards) */
.fl360-store-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.store-badge-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0B1320;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 14px;
  border-radius: 12px;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.store-badge-card:hover {
  transform: translateY(-2px);
  border-color: var(--sky-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  background: #111D32;
}
.store-badge-android:hover { border-color: #00C168; box-shadow: 0 6px 18px rgba(0, 193, 104, 0.25); }
.store-badge-apk:hover     { border-color: #3DDC84; box-shadow: 0 6px 18px rgba(61, 220, 132, 0.25); }
.store-badge-huawei:hover  { border-color: #E21A22; box-shadow: 0 6px 18px rgba(226, 26, 34, 0.25); }
.store-badge-apple:hover   { border-color: #FFFFFF; box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2); }
.store-badge-chromeos:hover{ border-color: #34A853; box-shadow: 0 6px 18px rgba(52, 168, 83, 0.25); }
.store-badge-mac:hover     { border-color: #38BDF8; box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25); }
.store-badge-windows:hover { border-color: #00A4EF; box-shadow: 0 6px 18px rgba(0, 164, 239, 0.25); }

.store-badge-icon-wrap {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.store-badge-svg {
  width: 24px;
  height: 24px;
}
.store-badge-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-badge-sub {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94A3B8;
  font-weight: 600;
}
.store-badge-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
}
.store-badge-pill {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.45);
}

/* Compact Row Variant */
.fl360-store-compact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.store-btn-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0B1320;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  transition: all 0.15s ease;
}
.store-btn-compact:hover {
  transform: translateY(-1px);
  border-color: var(--sky-accent);
  background: #14243F;
}
.store-btn-compact .store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.store-btn-compact .store-label small {
  font-size: 8.5px;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.4px;
}
.store-btn-compact .store-label strong {
  font-size: 12px;
  color: #FFFFFF;
}

/* Chips Variant */
.fl360-store-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.store-chip:hover {
  background: var(--electric-blue);
  color: #FFFFFF;
  border-color: var(--electric-blue);
}
.store-chip-icon {
  display: flex;
  align-items: center;
}
.store-chip-icon svg {
  width: 15px;
  height: 15px;
}

/* Sidebar List Variant */
.sidebar-store-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-store-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.16s ease;
}
.sidebar-store-item:hover {
  background: var(--bg-surface);
  border-color: var(--electric-blue);
  transform: translateX(3px);
}
.sidebar-store-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-store-icon svg {
  width: 20px;
  height: 20px;
}
.sidebar-store-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.sidebar-store-sub {
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--muted-text);
  font-weight: 600;
}
.sidebar-store-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.sidebar-store-arrow {
  color: var(--electric-blue);
  font-weight: 800;
  font-size: 13px;
}

/* 3. SIDEBAR APP DOWNLOAD WIDGET */
.app-download-widget {
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-subtle));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 18px;
  position: relative;
  overflow: hidden;
}
.app-widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.app-widget-badge-wrap {
  position: relative;
  flex-shrink: 0;
}
.app-widget-icon {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.app-widget-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success-green);
  border: 2px solid var(--bg-surface);
}
.app-widget-meta {
  flex: 1;
}
.app-widget-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.app-widget-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.app-widget-rating .stars {
  color: var(--gold-accent);
  letter-spacing: -1px;
}
.app-widget-rating .rating-num {
  font-weight: 800;
  color: var(--text-primary);
}
.badge-free {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-green);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.app-widget-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 14px;
}
.app-widget-stores {
  margin-bottom: 12px;
}
.app-widget-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  text-align: center;
}
.app-widget-hub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--electric-blue);
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.app-widget-hub-link:hover {
  background: var(--bg-subtle);
  color: var(--sky-accent);
}

/* 4. HOMEPAGE APP SHOWCASE PANEL */
.app-showcase-layer {
  padding: 20px 0;
}
.app-showcase-panel {
  background: linear-gradient(135deg, #071224 0%, #0B1E38 60%, #07101F 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.app-showcase-panel::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
  pointer-events: none;
}
.app-showcase-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}
.app-showcase-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--sky-accent);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.app-showcase-badge-pill .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 8px var(--success-green);
}
.app-showcase-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0 0 10px;
}
.app-showcase-subtitle {
  font-size: 15px;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 0 0 22px;
}
.app-feature-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.app-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.app-feature-item .feat-icon {
  font-size: 20px;
  background: rgba(255, 255, 255, 0.08);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.app-feature-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}
.app-feature-item p {
  font-size: 12px;
  color: #94A3B8;
  margin: 0;
  line-height: 1.45;
}
.app-stores-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sky-accent);
  margin-bottom: 10px;
  font-weight: 800;
}

/* PHONE MOCKUP */
.app-showcase-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone-mockup-wrap {
  position: relative;
  max-width: 290px;
  width: 100%;
}
.phone-mockup-frame {
  background: #020617;
  border: 8px solid #1E293B;
  border-radius: 36px;
  padding: 8px 4px 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(56, 189, 248, 0.25);
  position: relative;
}
.phone-mockup-speaker {
  width: 60px;
  height: 5px;
  background: #334155;
  border-radius: 4px;
  margin: 0 auto 8px;
}
.phone-screen-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
}
.phone-floating-pill {
  position: absolute;
  top: 40px;
  left: -24px;
  background: rgba(14, 26, 46, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--sky-accent);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-floating-pill .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-accent);
}
.phone-floating-qr {
  position: absolute;
  bottom: 20px;
  right: -30px;
  background: rgba(14, 26, 46, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
}
.phone-floating-qr .qr-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--sky-accent);
  margin-bottom: 6px;
}
.phone-floating-qr .qr-svg {
  background: #FFFFFF;
  color: #000000;
  padding: 4px;
  border-radius: 8px;
  display: block;
}
.phone-floating-qr .qr-sub {
  font-size: 9.5px;
  color: #94A3B8;
  margin-top: 4px;
}

/* 5. ARTICLE END-OF-CONTENT CALLOUT */
.article-app-cta-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(11, 34, 65, 0.18));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-app-cta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.article-app-icon {
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.article-app-cta-left strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
}
.article-app-cta-left p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.article-app-cta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 6. FOOTER APPS ECOSYSTEM STRIP */
.footer-apps-band {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin: 28px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-apps-lead {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-apps-icon {
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.footer-apps-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sky-accent);
  font-weight: 800;
  display: block;
}
.footer-apps-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 2px 0;
}
.footer-apps-desc {
  font-size: 12.5px;
  color: #94A3B8;
  margin: 0;
}
.footer-app-badges-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF !important;
  padding: 6px 12px;
  border-radius: 10px;
  transition: all 0.16s ease;
}
.footer-store-badge:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--sky-accent);
  transform: translateY(-2px);
}
.footer-store-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
}
.footer-store-icon svg {
  width: 18px;
  height: 18px;
}
.footer-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.footer-store-text .sub {
  font-size: 8px;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.4px;
}
.footer-store-text .name {
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .app-showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-feature-bullets {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .app-showcase-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .phone-floating-qr {
    display: none;
  }
  .footer-apps-band {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 640px) {
  .app-header-label {
    display: none;
  }
  .nav-app-text {
    display: none;
  }
  .app-showcase-panel {
    padding: 24px 16px;
  }
  .phone-floating-pill {
    left: 8px;
  }
  .article-app-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  .top-info-bar, .main-nav-wrap, .breaking-bar, .ad-slot-wrapper,
  .mobile-sticky-ad, .article-toolbar, .sidebar-stack, .site-footer, .newsletter-band {
    display: none !important;
  }
  body { background: #FFFFFF; color: #000000; }
}
