/*
Theme Name: Tech Tabloid
 * Updated: 2026-09-10T12:17:33.000Z
Theme URI: https://github.com/yononsensedude/tech-tabloid
GitHub Theme URI: yononsensedude/tech-tabloid
Primary Branch: main
Author: Tech Tabloid
Author URI: https://github.com/yononsensedude/tech-tabloid
Description: A premium, ultra-polished WordPress theme for modern technology publications. Combines fast-loading semantic layouts with automated editorial workflows, original visual production, REST search, and side-reading drawers.
Version: 2.5.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tech-tabloid
*/

:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-blue: #5122e2;
  --accent-blue-hover: #3d15b8;
  --accent-blue-light: #f3f0ff;

  --accent-red: #dc2626;
  --accent-green: #16a34a;
  --accent-yellow: #facc15;

  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;

  /* Fonts */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max-width: 1280px;
  --header-height: 72px;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-secondary);
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 60px 0;
}

/* Category Pill */
.category-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.category-pill.mini {
  font-size: 0.68rem;
  padding: 2px 6px;
}

/* Buttons */
.btn-primary {
  background-color: var(--accent-blue);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 82, 255, 0.15);
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  box-shadow: 0 4px 8px rgba(0, 82, 255, 0.25);
}

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.btn-text {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.btn-text:hover {
  color: var(--accent-blue-hover);
  gap: 6px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Header & Top Navigation */
.top-navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), top var(--transition-fast);
  will-change: transform;
}

.top-navigation.nav-hidden {
  transform: translateY(-100%);
}

/* Adjust sticky header position when WordPress Admin Bar is present */
.admin-bar .top-navigation {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .top-navigation {
    top: 46px;
  }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}

.nav-brand .logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-brand .logo span {
  color: var(--accent-blue);
}

/* Logo Image Styling (SVG from Assets / Customizer) */
.logo-image,
.custom-logo-link img,
.footer-logo img,
.menu-overlay-logo-link img,
.drawer-brand img {
  height: 38px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

@media screen and (max-width: 768px) {
  .logo-image,
  .custom-logo-link img,
  .footer-logo img,
  .menu-overlay-logo-link img,
  .drawer-brand img {
    height: 30px;
    max-width: 180px;
  }
}

.nav-categories {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
  padding: 5px 0;
}

.nav-categories::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Support for WordPress Nav Menu */
.nav-categories ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-categories a,
.nav-categories ul li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-categories a:hover,
.nav-categories ul li a:hover {
  color: var(--accent-yellow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-navigation .btn-icon {
  color: rgba(255, 255, 255, 0.7);
}

.top-navigation .btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-yellow);
}


.bookmark-btn-nav {
  position: relative;
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--accent-blue);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Breaking News Ticker */
.breaking-bar {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  font-size: 0.85rem;
}

.breaking-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.breaking-label {
  color: #dc2626;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.breaking-ticker {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  height: 20px;
}

.ticker-content {
  position: relative;
  height: 100%;
}

.ticker-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.ticker-item:hover {
  color: var(--accent-blue);
}

.ticker-item.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.breaking-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-ticker-control {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.btn-ticker-control:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr;
  gap: 32px;
  margin-top: 32px;
}

/* Left Hero: Large Card */
.hero-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-normal);
}

.hero-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.hero-card:hover .hero-image-wrapper img {
  transform: scale(1.03);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 60%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.btn-bookmark-card {
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-bookmark-card:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-bookmark-card.bookmarked {
  color: var(--accent-blue);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

.hero-card:hover .hero-title {
  color: var(--accent-blue);
}

.hero-excerpt {
  font-size: 0.98rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.read-story-link {
  color: var(--accent-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-story-link .arrow {
  transition: var(--transition-fast);
}

.hero-card:hover .read-story-link .arrow {
  transform: translateX(4px);
}

/* Right Hero: Sidebar Feed */
.hero-latest-sidebar {
  display: flex;
  flex-direction: column;
  background-color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.latest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-yellow);
  margin-bottom: 16px;
  color: #ffffff;
}

.latest-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.live-pulse {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--accent-red);
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.latest-sidebar-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.latest-sidebar-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition-fast);
}

.latest-sidebar-item:hover {
  transform: translateX(4px);
}

.latest-sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.latest-sidebar-item:first-child {
  padding-top: 0;
}

.sidebar-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.sidebar-time {
  font-size: 0.75rem;
}

.sidebar-item-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 0;
  transition: color 0.15s ease;
}

.latest-sidebar-item:hover .sidebar-item-title {
  color: var(--accent-yellow);
}

.sidebar-item-excerpt {
  display: none !important;
}

/* Custom mini category pill override for dark slate background */
.hero-latest-sidebar .category-pill.mini {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 500;
}

/* Live Tech Dashboard Widget */
.stock-widget {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.widget-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stock-item {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.5fr 1.5fr;
  align-items: center;
  font-size: 0.82rem;
  padding: 6px 8px;
  border-radius: 6px;
  background-color: var(--bg-secondary);
  transition: var(--transition-fast);
}

.stock-item:hover {
  background-color: var(--bg-tertiary);
}

.stock-sym {
  font-weight: 700;
  color: var(--text-primary);
}

.stock-name {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-price {
  font-family: monospace;
  font-weight: 600;
  text-align: right;
  padding-right: 12px;
}

.stock-change {
  text-align: right;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.stock-change.positive {
  color: #16a34a;
  background-color: rgba(22, 163, 74, 0.12);
}

.stock-change.negative {
  color: #dc2626;
  background-color: rgba(220, 38, 38, 0.12);
}

/* Brand Banner Copy */
.brand-positioning-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-top: 48px;
  padding: 40px 0;
  text-align: center;
}

.brand-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.brand-heading {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 14px;
}

.brand-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Dashboard Row: Trending Today + Ticker widget */
.dashboard-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr;
  gap: 32px;
  align-items: start;
}

/* Trending Today */
.trending-today-section {
  padding-top: 48px;
}

.trending-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.trending-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.trending-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending-item {
  display: flex;
  gap: 20px;
  padding: 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
}

.trending-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}

.trending-rank {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-secondary);
  line-height: 1;
  min-width: 40px;
}

.trending-item:hover .trending-rank {
  color: var(--accent-blue);
}

.trending-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trending-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.trending-item:hover .trending-title {
  color: var(--accent-blue);
}

.trending-meta {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trending-meta .middot {
  margin: 0 6px;
}

/* Latest News Grid (3 Columns) */
.latest-news-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.latest-grid-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.latest-grid-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-normal);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.news-card:hover .card-img-wrapper img {
  transform: scale(1.03);
}

.news-card .btn-bookmark-card {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-card:hover .card-title {
  color: var(--accent-blue);
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.read-more-link {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Category Sections styling */
.category-section {
  border-bottom: 1px solid var(--border-light);
}

.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.category-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

/* Category Left Column (Featured story layout) */
.cat-featured-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  cursor: pointer;
  transition: var(--transition-normal);
}

.cat-featured-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.cat-feat-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.cat-feat-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.cat-featured-card:hover .cat-feat-img-wrapper img {
  transform: scale(1.03);
}

.cat-featured-card .btn-bookmark-card {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.9);
}

.cat-feat-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-feat-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.cat-featured-card:hover .cat-feat-title {
  color: var(--accent-blue);
}

.cat-feat-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cat-feat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Category Right Column (List of 3 small row items) */
.cat-small-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.cat-small-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  flex-grow: 1;
}

.cat-small-row:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-hover);
}

.cat-small-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.cat-small-info .card-meta {
  justify-content: flex-start;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.cat-small-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.cat-small-row:hover .cat-small-title {
  color: var(--accent-blue);
}

.cat-small-excerpt {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-small-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cat-small-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Newsletter CTA section */
.newsletter-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.newsletter-box {
  background-color: var(--text-primary);
  color: #ffffff;
  padding: 48px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.newsletter-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-info h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.newsletter-info p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.newsletter-form-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--accent-blue);
  background-color: rgba(255, 255, 255, 0.12);
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.btn-newsletter-submit {
  background-color: var(--accent-blue);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.btn-newsletter-submit:hover:not(:disabled) {
  background-color: var(--accent-blue-hover);
}

.btn-newsletter-submit:disabled {
  background-color: var(--accent-green);
  cursor: default;
}

.newsletter-form-container .form-footer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Footer Section */
.footer {
  background-color: var(--accent-blue);
  border-top: none;
  padding: 60px 0 30px 0;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.footer-logo span {
  color: var(--accent-yellow);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  background-color: var(--accent-yellow);
  color: var(--text-primary);
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-links ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

.footer-links a:hover,
.footer-links ul li a:hover {
  color: var(--accent-yellow); /* Neon yellow hover highlight */
  padding-left: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-legal-links a:hover {
  color: var(--accent-yellow);
}

/* Slide-out Reading Drawer */
.article-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 640px;
  height: 100vh;
  z-index: 1000;
  background-color: var(--bg-primary);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.article-drawer.open {
  transform: translateX(0);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-primary);
}

.drawer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.drawer-brand span {
  color: var(--accent-blue);
}

.btn-close-drawer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.btn-close-drawer:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.drawer-scroll-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 32px 24px;
  scrollbar-width: thin;
}

.drawer-scroll-body::-webkit-scrollbar {
  width: 6px;
}

.drawer-scroll-body::-webkit-scrollbar-thumb {
  background-color: var(--border-hover);
  border-radius: 3px;
}

.drawer-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.drawer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.drawer-read-time {
  font-weight: 600;
}

.drawer-headline {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.drawer-actions-bar {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

.btn-action-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.btn-action-outline:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-action-outline.bookmarked {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background-color: var(--accent-blue-light);
}

.drawer-hero-image,
.single-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  background-color: var(--bg-secondary);
}

.drawer-hero-image img,
.single-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Morning Brew Inspired Takeaways */
.explained-simply-card {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent-blue);
  border-radius: 4px var(--radius-md) var(--radius-md) 4px;
  padding: 20px;
  margin-bottom: 28px;
}

.esc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.esc-icon {
  font-size: 1.1rem;
}

.esc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.esc-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
}

.drawer-story-body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-story-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 16px;
  line-height: 1.3;
}

.drawer-story-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 10px;
}

.drawer-story-body p {
  margin-bottom: 8px;
}

.drawer-story-body a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: inherit !important;
  transition: color var(--transition-fast);
}

.drawer-story-body a strong,
.drawer-story-body strong a,
.drawer-story-body a b,
.drawer-story-body b a {
  font-weight: inherit !important;
}

.drawer-story-body a:hover {
  color: var(--accent-blue-hover);
}

.drawer-story-body blockquote {
  border-left: 3px solid var(--text-primary);
  padding-left: 16px;
  font-style: italic;
  color: var(--text-primary);
  margin: 12px 0;
}

.drawer-story-body ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Search Screen Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay-header {
  display: flex;
  justify-content: flex-end;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.search-box-container {
  max-width: 720px;
  width: 100%;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 8px;
}

.search-icon-svg {
  color: var(--text-muted);
  position: absolute;
  left: 0;
}

.search-input-field {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-left: 40px;
}

.search-input-field::placeholder {
  color: var(--text-muted);
}

.search-results-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  margin-top: 10px;
}

.search-results-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

.search-empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  padding: 40px 0;
}

.search-result-item {
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: var(--bg-primary);
  transition: var(--transition-fast);
}

.search-result-item:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.search-result-item:hover .result-title {
  color: var(--accent-blue);
}

.result-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bookmarks Saved List Modal */
.bookmark-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.bookmark-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.bookmark-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.bookmark-modal.open~.bookmark-modal-overlay {
  opacity: 1;
  pointer-events: auto;
}

.bookmark-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bookmark-modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.bookmark-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.bookmarks-list-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bookmarked-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bookmarked-row:last-child {
  border-bottom: none;
}

.bookmarked-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bookmark-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.bookmarked-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.bookmarked-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.remove-bookmark-btn {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.remove-bookmark-btn:hover {
  color: var(--accent-red);
}

.empty-state {
  text-align: center;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Custom Toast System */
.custom-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1100;
  background-color: var(--text-primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.custom-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.custom-toast.success {
  background-color: var(--accent-blue);
  border-left: 4px solid var(--accent-green);
}

.custom-toast.error {
  background-color: var(--accent-red);
}

/* Media Queries & Responsive Design */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dashboard-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .newsletter-box {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .brand-heading {
    font-size: 1.8rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section-padding {
    padding: 40px 0;
  }

  .top-navigation {
    position: relative;
  }

  .nav-categories {
    border-top: 1px solid var(--border-light);
    width: 100vw;
    margin-left: -16px;
    padding: 10px 16px;
    background-color: var(--bg-secondary);
  }

  .nav-container {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .cat-feat-title {
    font-size: 1.15rem;
  }

  .cat-small-row {
    flex-direction: row-reverse;
  }

  .cat-small-thumb {
    width: 90px;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .article-drawer {
    max-width: 100%;
  }

  .drawer-headline {
    font-size: 1.4rem;
  }

  .search-input-field {
    font-size: 1.4rem;
  }
}

/* SVG Logo Styling */
.logo-image {
  display: block;
  width: auto;
  transition: opacity var(--transition-fast);
}

.logo .logo-image {
  height: 32px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo a {
  display: inline-flex;
  align-items: center;
}

.footer-logo .logo-image {
  height: 28px;
}

.drawer-brand {
  display: inline-flex;
  align-items: center;
}

.drawer-brand a {
  display: inline-flex;
  align-items: center;
}

.drawer-brand .logo-image {
  height: 24px;
}

/* Hover transitions */
.logo:hover .logo-image,
.footer-logo a:hover .logo-image,
.drawer-brand a:hover .logo-image {
  opacity: 0.8;
}

/* Hamburger Menu Full Page Overlay Styles */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: #0a0a0a;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow: hidden;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-bar .menu-overlay {
  top: 32px;
  padding-top: var(--header-height);
}

@media screen and (max-width: 782px) {
  .admin-bar .menu-overlay {
    top: 46px;
    padding-top: var(--header-height);
  }
}



.btn-close-menu-overlay {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-close-menu-overlay:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--accent-yellow);
}

@media screen and (max-width: 768px) {
  .btn-close-menu-overlay {
    right: 16px;
  }
}

.menu-overlay-body-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  padding: 48px 0;
}

.menu-overlay-body-container {
  display: grid;
  grid-template-columns: 2fr 1px 1fr;
  gap: 40px;
  align-items: start;
}

.menu-overlay-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.menu-overlay-topics-col {
  display: flex;
  flex-direction: column;
}

.menu-overlay-topics-scroll {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.1);
}

.menu-overlay-topics-scroll::-webkit-scrollbar {
  width: 8px;
}

.menu-overlay-topics-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.menu-overlay-topics-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.menu-overlay-topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

.menu-topics-subcol {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-overlay-topic-link {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 2px 0;
}

.menu-overlay-topic-link:hover {
  color: var(--accent-yellow);
  transform: translateX(4px);
}

.menu-overlay-divider {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  align-self: stretch;
}

.menu-overlay-more-col {
  display: flex;
  flex-direction: column;
  padding-left: 20px;
}

.menu-overlay-more-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-overlay-more-links a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 2px 0;
}

.menu-overlay-more-links a:hover {
  color: var(--accent-yellow);
  transform: translateX(4px);
}

/* Adjust overlay header position when WordPress Admin Bar is present */
.admin-bar .menu-overlay {
  top: 32px;
  height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .menu-overlay {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

@media screen and (max-width: 900px) {
  .nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .nav-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%;
    z-index: 1;
  }

  .nav-actions {
    position: relative;
    z-index: 2;
    margin-left: auto;
  }

  .nav-categories {
    display: none !important; /* Hide scrolling category links on mobile to prevent white bar & keep navbar single-row */
  }

  .menu-overlay-body-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .menu-overlay-divider {
    display: none;
  }

  .menu-overlay-more-col {
    padding-left: 0;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 32px;
  }

  .menu-overlay-topics-scroll {
    max-height: none;
    /* Let page scroll on mobile */
    overflow-y: visible;
  }
}

@media screen and (max-width: 480px) {
  .nav-brand {
    max-width: 45%;
  }

  .nav-brand .logo-image {
    height: 26px;
  }

  .nav-actions {
    gap: 6px;
  }

  .breaking-controls {
    display: none !important;
  }

  .breaking-container {
    gap: 8px;
  }
}

/* Trending & Stock Ticker Section Indigo/Violet Background Styles */
.dashboard-section-wrapper {
  background-color: var(--accent-blue);
  /* Indigo-violet color from screenshot */
  color: #ffffff;
  padding: 60px 0;
  margin: 48px 0;
}

.dashboard-section-wrapper .trending-today-section {
  padding-top: 0;
}

.dashboard-section-wrapper .dashboard-sidebar-widgets {
  padding-top: 0;
}

.dashboard-section-wrapper .trending-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.dashboard-section-wrapper .trending-header h2 {
  color: #ffffff;
}

.dashboard-section-wrapper .trending-item {
  background-color: var(--accent-blue-hover);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dashboard-section-wrapper .trending-item:hover {
  background-color: #2c0a9e;
  border-color: rgba(255, 255, 255, 0.25);
}

.dashboard-section-wrapper .trending-rank {
  color: rgba(255, 255, 255, 0.6);
}

.dashboard-section-wrapper .trending-item:hover .trending-rank {
  color: var(--accent-yellow);
}

.dashboard-section-wrapper .category-pill.mini {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.dashboard-section-wrapper .trending-title {
  color: #ffffff;
}

.dashboard-section-wrapper .trending-item:hover .trending-title {
  color: var(--accent-yellow);
  /* Vivid electric yellow hover color */
}

.dashboard-section-wrapper .trending-meta {
  color: rgba(255, 255, 255, 0.7);
}

.dashboard-section-wrapper .stock-widget {
  background-color: var(--accent-blue-hover);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dashboard-section-wrapper .widget-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-section-wrapper .widget-title {
  color: #ffffff;
}

.dashboard-section-wrapper .widget-status {
  color: rgba(255, 255, 255, 0.7);
}

.dashboard-section-wrapper .stock-item {
  background-color: #2c0a9e;
}

.dashboard-section-wrapper .stock-item:hover {
  background-color: #210385;
}

.dashboard-section-wrapper .stock-sym {
  color: #ffffff;
}

.dashboard-section-wrapper .stock-name {
  color: rgba(255, 255, 255, 0.85);
}

.dashboard-section-wrapper .stock-price {
  color: #ffffff;
}

.dashboard-section-wrapper .stock-change.positive {
  color: #4ade80;
  /* lighter green for dark bg */
  background-color: rgba(74, 222, 128, 0.15);
}

.dashboard-section-wrapper .stock-change.negative {
  color: #f87171;
  /* lighter red for dark bg */
  background-color: rgba(248, 113, 113, 0.15);
}

/* ==========================================================================
   Content Engine 2.0 Rich Story Components
   ========================================================================== */

/* 1. Stat Grid */
.tabloid-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.tabloid-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tabloid-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1.25;
  margin-bottom: 6px;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

.tabloid-stat-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.35;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

/* 2. Responsive Comparison Tables */
.tabloid-table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tabloid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
  background: var(--bg-primary);
}

.tabloid-table th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-light);
}

.tabloid-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.tabloid-table tr:last-child td {
  border-bottom: none;
}

.tabloid-table tr:hover td {
  background-color: rgba(81, 34, 226, 0.03);
}

/* 3. Social Tweet / X Mock Embed Cards */
.tabloid-social-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.tabloid-social-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tabloid-social-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), #9333ea);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.tabloid-social-author-info {
  line-height: 1.3;
}

.tabloid-social-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.tabloid-social-badge {
  display: inline-block;
  color: #1d9bf0;
  margin-left: 3px;
  font-size: 0.85rem;
}

.tabloid-social-handle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tabloid-social-body {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.tabloid-social-footer {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
}

/* 4. Executive Pull-Quotes */
.tabloid-pullquote {
  position: relative;
  background: linear-gradient(135deg, rgba(81, 34, 226, 0.04), rgba(147, 51, 234, 0.04));
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px;
  margin: 28px 0;
  font-size: 1.15rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-primary);
}

.tabloid-pullquote-author {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  font-style: normal;
  color: var(--accent-blue);
  margin-top: 12px;
}

/* 5. Historical Progression Timelines */
.tabloid-timeline {
  border-left: 2px solid var(--border-light);
  margin: 28px 0 28px 12px;
  padding-left: 20px;
}

.tabloid-timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.tabloid-timeline-item:last-child {
  margin-bottom: 0;
}

.tabloid-timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid var(--bg-primary);
}

.tabloid-timeline-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-blue);
  margin-bottom: 2px;
}

.tabloid-timeline-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 6. Market Ticker Badges */
.tabloid-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  margin: 4px 4px 4px 0;
  border: 1px solid var(--border-light);
}

.tabloid-ticker-up {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.2);
}

.tabloid-ticker-down {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

/* 7. AIO FAQ Accordion */
.tabloid-faq-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 36px 0 20px 0;
}

.tabloid-faq-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tabloid-faq-item {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.tabloid-faq-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.tabloid-faq-question {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tabloid-faq-answer {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 8. Source Attribution & Evidence Ledger Box */
.tabloid-source-box {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 28px;
  box-shadow: var(--shadow-sm);
}

.tabloid-source-box ul {
  list-style-type: disc;
  margin: 8px 0 0 0;
  padding-left: 18px;
}

.tabloid-source-box li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.tabloid-source-box a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.tabloid-source-box a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.source-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.3px;
}

.source-badge.primary {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
}

.source-badge.corroborating {
  background: var(--bg-primary);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   9. Legal & Policy Pages (Privacy Policy, Terms of Service)
   ========================================================================== */
.legal-page-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.legal-article-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .legal-article-card {
    padding: 24px 20px;
  }
}

.legal-page-header {
  margin-bottom: 28px;
}

.legal-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.legal-date {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.legal-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.legal-lead-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.legal-lead-text a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, rgba(81, 34, 226, 0.1) 100%);
  margin-top: 24px;
}

.legal-page-body {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-page-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.legal-page-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-page-body p {
  margin-bottom: 16px;
}

.legal-page-body ul,
.legal-page-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.legal-page-body li {
  margin-bottom: 8px;
}

.legal-page-body a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.legal-page-body code {
  background-color: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--accent-blue);
}

.legal-callout-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
}

.legal-callout-box.warning {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.legal-callout-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-callout-box p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.legal-grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.legal-feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.legal-feature-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.legal-feature-card ul {
  margin-bottom: 0;
  padding-left: 18px;
}

.legal-feature-card li {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.legal-page-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.legal-footer-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.legal-footer-notice a {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: underline;
}

/* Amazon Affiliate In-Text Linking & FTC Compliance */
.drawer-story-body a,
.drawer-main-content a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: var(--transition-fast);
}

.drawer-story-body a:hover,
.drawer-main-content a:hover {
  color: var(--accent-blue-hover);
  text-decoration-thickness: 2px;
}

.affiliate-disclosure-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 28px;
  margin-bottom: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
  font-style: italic;
  display: block;
}

/* --------------------------------------------------------------------------
   Continuous Reading Stream & In-Article Callouts
   -------------------------------------------------------------------------- */
.keep-reading-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 56px 0 40px 0;
  text-align: center;
}

.krd-line {
  flex: 1;
  height: 1px;
  background-color: var(--border-light);
}

.krd-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 4px;
  white-space: nowrap;
}

.streamed-article {
  animation: fadeInArticle 0.4s ease forwards;
  margin-bottom: 48px;
}

@keyframes fadeInArticle {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* In-Article "Read Also" Recommendation Box */
.tabloid-related-callout {
  margin: 28px 0;
  padding: 14px 18px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.tabloid-related-callout:hover {
  border-color: var(--border-hover);
  background-color: rgba(37, 99, 235, 0.04);
}

.trc-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trc-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background-color: var(--accent-blue);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.trc-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  transition: var(--transition-fast);
}

.trc-link:hover {
  color: var(--accent-blue);
}

.trc-arrow {
  transition: transform 0.2s ease;
}

.trc-link:hover .trc-arrow {
  transform: translateX(4px);
}

/* Social Share Icon Buttons */
.share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

.share-icon-btn:hover {
  background-color: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

/* ==========================================================================
   10. Single Article Foundation
   ========================================================================== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), #9333ea);
  transition: width 0.1s linear;
}

.article-page {
  background: var(--bg-primary);
  padding: 68px 24px 96px;
}

.article-page-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.article-masthead {
  width: min(100%, 960px);
  margin: 0 auto 42px;
}

.article-taxonomy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.article-taxonomy .category-pill,
.article-taxonomy .format-badge {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

.article-taxonomy .category-pill::after {
  width: 3px;
  height: 3px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--border-hover);
  content: "";
}

.article-taxonomy .format-badge {
  color: var(--text-muted);
}

.article-story-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.article-story-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97706;
  content: "";
}

.article-story-status--developing::before {
  background: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.format-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(81, 34, 226, 0.2);
  border-radius: 4px;
  background: rgba(81, 34, 226, 0.08);
  color: var(--accent-blue);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-headline {
  max-width: 23ch;
  margin: 0 0 20px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.1vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.article-standfirst {
  max-width: 780px;
  margin: 0 0 30px;
  color: #334155;
  font-size: clamp(1.16rem, 2vw, 1.34rem);
  line-height: 1.5;
}

.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.article-byline-identity,
.article-byline-actions,
.article-share-actions {
  display: flex;
  align-items: center;
}

.article-byline-identity {
  gap: 12px;
}

.article-byline-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  object-fit: cover;
}

.article-byline-copy {
  font-size: 0.85rem;
  line-height: 1.35;
}

.article-byline-name {
  color: #1e293b;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 750;
}

.article-byline-name a {
  color: inherit;
}

.article-byline-prefix {
  color: var(--text-muted);
  font-weight: 500;
}

.article-byline-meta {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.updated-time {
  color: var(--accent-blue);
  font-weight: 600;
}

.article-share-primary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 650;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.article-share-primary:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.article-hero {
  width: min(100%, 1000px);
  margin: 0 auto 58px;
  border-radius: 3px;
  box-shadow: none;
}

.article-hero.single-hero-image {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}

.article-hero.single-hero-image img {
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  object-fit: cover;
}

.article-hero-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-top: 11px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.article-hero-caption {
  max-width: 72ch;
}

.article-hero-credit {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
}

a.article-hero-credit:hover {
  color: var(--accent-blue);
}

.article-reading-column {
  width: min(100%, 660px);
  margin: 0 auto;
}

.article-story-body {
  display: block;
  color: #334155;
  font-size: 1.16rem;
  line-height: 1.68;
}

.article-story-body p {
  margin: 0 0 1.35em;
}

.article-story-body > p:first-child {
  color: #243247;
  font-size: 1.08em;
}

.article-story-body h2 {
  margin: 2.15em 0 0.7em;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}

.article-story-body h3 {
  margin: 1.8em 0 0.65em;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.article-story-body ul,
.article-story-body ol {
  display: block;
  margin: 0 0 1.4em;
  padding-left: 1.35em;
}

.article-story-body li {
  padding-left: 0.25em;
}

.article-story-body li + li {
  margin-top: 0.55em;
}

.article-story-body strong {
  color: #1e293b;
  font-weight: 700;
}

.article-story-body a {
  color: #3f24b8;
  text-decoration-color: rgba(63, 36, 184, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.article-story-body blockquote {
  margin: 2em 0;
  padding: 0.1em 0 0.1em 1.25em;
  border-left: 3px solid var(--accent-blue);
  color: #1e293b;
  font-family: var(--font-display);
  font-size: 1.25em;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
}

.article-story-body hr {
  height: 1px;
  margin: 2.5em 0;
  border: 0;
  background: var(--border-light);
}

.article-story-body figure,
.article-story-body .wp-caption {
  width: calc(100% + 120px) !important;
  max-width: none;
  margin: 2.25em -60px;
}

.article-story-body figure img,
.article-story-body .wp-caption img {
  width: 100%;
  border-radius: 3px;
}

.article-story-body figcaption,
.article-story-body .wp-caption-text {
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.article-story-body table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-story-body th,
.article-story-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

.article-story-body th {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
}

.article-story-body pre {
  max-width: 100%;
  margin: 1.75em 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: 4px;
  background: #111827;
  color: #e5e7eb;
  font-size: 0.84rem;
  line-height: 1.6;
}

.article-story-body :not(pre) > code {
  padding: 0.12em 0.32em;
  border-radius: 3px;
  background: var(--bg-tertiary);
  color: #243247;
  font-size: 0.88em;
}

.article-story-body a,
.article-source-title,
.article-related-card h3 a {
  overflow-wrap: anywhere;
}

.article-story-body th,
.article-story-body td {
  overflow-wrap: anywhere;
}

.article-story-body .tabloid-stat-card,
.article-story-body .tabloid-social-card,
.article-story-body .tabloid-table-wrapper,
.article-story-body .tabloid-related-callout {
  box-shadow: none;
}

.article-story-body .tabloid-stat-card,
.article-story-body .tabloid-social-card,
.article-story-body .tabloid-table-wrapper {
  border-radius: 4px;
}

.article-story-body .tabloid-related-callout {
  margin: 2em 0;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
  padding: 16px 0;
}

.article-sources {
  margin-top: 58px;
  padding: 28px 0 10px;
  border-top: 2px solid var(--text-primary);
}

.article-sources-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.article-section-kicker {
  margin: 0;
  color: var(--accent-blue);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-sources-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.article-source-list {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border-light);
  list-style: none;
}

.article-source-item {
  border-top: 1px solid var(--border-light);
}

.article-source-item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
}

.article-source-title {
  color: #253247;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
}

.article-source-meta {
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: right;
}

.article-source-item a:hover .article-source-title {
  color: var(--accent-blue);
}

.article-correction-log {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.06);
}

.article-correction-log-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.article-correction-log-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-correction-log ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.article-correction-log li + li {
  margin-top: 6px;
}

.article-correction-log strong {
  color: var(--text-primary);
}

.article-correction-time {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.article-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.article-topics-label,
.article-share-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-topics .tag-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.article-share-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.article-share-actions {
  display: flex;
  gap: 8px;
}

.article-page .share-icon-btn {
  width: 44px;
  height: 44px;
}

.article-page :where(a, button):focus-visible {
  outline: 3px solid rgba(81, 34, 226, 0.48);
  outline-offset: 3px;
  border-radius: 3px;
}

.article-page .article-related-image:focus-visible {
  border-radius: 3px;
}

.article-endmatter {
  margin-top: 62px;
  padding-top: 4px;
  border-top: 3px solid var(--text-primary);
}

.author-profile-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: 26px 0 28px;
}

.author-profile-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  object-fit: cover;
}

.author-profile-copy {
  flex: 1;
}

.author-profile-heading {
  margin-bottom: 9px;
}

.author-profile-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
}

.author-profile-heading a {
  color: inherit;
  text-decoration: none;
}

.author-profile-role {
  color: var(--accent-blue);
  font-size: 0.76rem;
  font-weight: 650;
}

.author-profile-bio {
  max-width: 62ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.editorial-disclosure-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.editorial-disclosure-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--accent-blue);
  opacity: 0.7;
}

.article-transparency {
  padding: 17px 20px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #fafbfe;
}

.article-corrections-invite {
  margin: 10px 0 0 26px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.article-transparency a,
.article-corrections-invite a {
  color: #3f24b8;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(63, 36, 184, 0.4);
  text-underline-offset: 2px;
}

.article-endmatter-actions {
  margin-top: 26px;
}

.article-endmatter-actions .article-topics {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article-related-stories {
  width: min(100%, 1000px);
  margin: 82px auto 8px;
  padding-top: 28px;
  border-top: 3px solid var(--text-primary);
}

.article-related-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.article-related-kicker {
  margin: 0 0 4px;
  color: var(--accent-blue);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.article-related-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.article-related-card {
  min-width: 0;
}

.article-related-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 15px;
  border-radius: 3px;
  background: var(--bg-secondary);
}

.article-related-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.article-related-card:hover .article-related-image img {
  transform: scale(1.025);
}

.article-related-category {
  color: var(--accent-blue);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.article-related-card h3 {
  margin: 7px 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.article-related-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-related-excerpt {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
}

.article-related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 550;
}

@media (max-width: 800px) {
  .article-story-body figure,
  .article-story-body .wp-caption {
    width: 100% !important;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .article-page {
    padding: 44px 20px 64px;
  }

  .article-masthead {
    margin-bottom: 28px;
  }

  .article-headline {
    font-size: clamp(2rem, 10vw, 3.25rem);
    line-height: 1.05;
  }

  .article-byline {
    align-items: flex-end;
  }

  .article-related-stories {
    margin-top: 64px;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .article-related-card {
    display: grid;
    grid-template-columns: minmax(118px, 36%) minmax(0, 1fr);
    gap: 16px;
  }

  .article-related-image {
    margin-bottom: 0;
  }

  .article-related-excerpt {
    display: none;
  }
}

@media (max-width: 480px) {
  .article-page {
    padding: 32px 18px 56px;
  }

  .article-headline {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .article-standfirst {
    font-size: 1.05rem;
  }

  .article-byline-meta {
    font-size: 0.75rem;
  }

  .article-byline {
    gap: 12px;
  }

  .article-byline-identity,
  .article-byline-copy {
    min-width: 0;
  }

  .article-byline-identity {
    flex: 1;
    gap: 10px;
  }

  .article-byline-avatar {
    width: 36px;
    height: 36px;
  }

  .article-share-primary {
    width: 44px;
    min-width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0;
    white-space: nowrap;
  }

  .article-share-primary svg {
    flex: 0 0 auto;
  }

  .article-hero {
    margin-bottom: 42px;
  }

  .article-story-body {
    font-size: 1.075rem;
    line-height: 1.68;
  }

  .article-hero-meta,
  .article-sources-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .article-hero-credit {
    flex-basis: auto;
  }

  .article-source-item a {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .article-source-meta {
    text-align: left;
  }

  .article-transparency {
    padding: 15px 16px;
  }

  .article-corrections-invite {
    margin-left: 26px;
  }

  .article-share-strip {
    margin-top: 16px;
  }

  .article-related-heading {
    margin-bottom: 20px;
  }

  .article-related-card {
    grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
    gap: 13px;
  }

  .article-related-card h3 {
    margin-top: 5px;
    font-size: 0.98rem;
  }
}

@media (max-width: 360px) {
  .nav-brand {
    max-width: 55%;
  }

  .nav-brand .logo {
    font-size: 1.12rem;
    white-space: nowrap;
  }

  .article-byline-meta {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reading-progress-bar,
  .article-page *,
  .article-page *::before,
  .article-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .article-related-card:hover .article-related-image img {
    transform: none;
  }
}
