/* CSS Variable System for Dynamic Themes */
:root {
  /* Default: Newsprint (Cream) Theme */
  --bg-color: #fbfbfa;
  --panel-bg: #ffffff;
  --text-primary: #111111;
  --text-secondary: #4a4a46;
  --text-muted: #767670;
  --border-color: #d8d8d3;
  --border-light: #e5e5e0;
  --accent-color: #0f3c5f; /* Classic deep corporate blue */
  --accent-red: #8e1c19; /* Editorial red */
  --bg-highlight: #f3f3f0;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-serif-header: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --transition-speed: 0.25s;
  
  /* Layout Metrics */
  --line-height-body: 1.75;
  --font-size-body: 1.125rem; /* 18px */
}

/* Dark Theme Variables */
[data-global-theme="dark"] {
  --bg-color: #121212;
  --panel-bg: #1e1e1e;
  --text-primary: #f2f2eb;
  --text-secondary: #b0b0a8;
  --text-muted: #808078;
  --border-color: #333330;
  --border-light: #262624;
  --accent-color: #3e88c0;
  --accent-red: #df4c49;
  --bg-highlight: #282826;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Base resets & document settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------------------------------------------------------
   TICKER AND BANNER
--------------------------------------------------------- */
.top-banner {
  background-color: var(--text-primary);
  color: var(--bg-color);
  font-size: 0.75rem;
  font-weight: 500;
  height: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-animation 45s linear infinite;
  padding-left: 100%;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 48px;
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.ticker-label {
  font-weight: 700;
  margin-right: 6px;
  text-transform: uppercase;
}

.ticker-val {
  font-weight: 400;
  margin-right: 6px;
}

.ticker-change {
  font-size: 0.7rem;
  font-weight: 600;
}

.ticker-change.positive {
  color: #10b981;
}

.ticker-change.negative {
  color: #ef4444;
}

@keyframes ticker-animation {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* ---------------------------------------------------------
   HEADER & MASTHEAD
--------------------------------------------------------- */
.main-header {
  border-bottom: 2px solid var(--text-primary);
  background-color: var(--bg-color);
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px 0 24px;
}

.header-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  font-weight: 500;
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.edition-badge {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  border-left: 1px solid var(--border-color);
  padding-left: 16px;
  color: var(--accent-red);
}

.meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.nav-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-highlight);
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 16px 0;
  text-align: center;
}

.masthead-brand {
  width: 100%;
  max-width: 950px;
}

.masthead-title {
  font-family: var(--font-serif-header);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  letter-spacing: -2px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 0.95;
  margin-bottom: 8px;
  transition: color var(--transition-speed);
}

.masthead-divider {
  height: 1.5px;
  background-color: var(--text-primary);
  width: 90%;
  margin: 12px auto;
  transition: background-color var(--transition-speed);
}

.masthead-tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.55rem, 1.3vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-speed);
}

/* Main Navigation */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--text-primary);
  padding: 8px 0;
  margin-top: 6px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
}

.nav-links-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links-list a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  padding: 4px 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-links-list a:hover,
.nav-links-list a.active {
  color: var(--text-primary);
}

.nav-links-list a.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
}

.search-bar {
  display: flex;
  align-items: center;
  position: relative;
}

.search-bar input {
  border: 1px solid var(--border-color);
  background-color: var(--panel-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  padding: 6px 32px 6px 12px;
  font-size: 0.8rem;
  border-radius: 20px;
  width: 200px;
  transition: all 0.2s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--text-primary);
  width: 240px;
}

.search-icon {
  position: absolute;
  right: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* ---------------------------------------------------------
   NEWSPAPER GRID LAYOUT
--------------------------------------------------------- */
.newspaper-grid {
  display: grid;
  grid-template-columns: 220px 1fr 310px;
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.grid-col {
  display: flex;
  flex-direction: column;
}

/* Vertical dividers inside columns */
.newspaper-grid > .grid-col:not(:last-child) {
  border-right: 1px solid var(--border-color);
  padding-right: 28px;
}

.col-header {
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 6px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.col-header h2 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-indicator {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(223, 76, 73, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(223, 76, 73, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(223, 76, 73, 0);
  }
}

/* ---------------------------------------------------------
   COLUMN 1: THE BRIEFING
--------------------------------------------------------- */
.briefing-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brief-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.brief-item:last-child {
  border-bottom: none;
}

.brief-meta {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brief-sector-badge {
  font-size: 0.6rem;
  padding: 1px 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-weight: 800;
}

.brief-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.brief-title:hover {
  color: var(--accent-red);
}

.brief-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 4px;
}

/* ---------------------------------------------------------
   COLUMN 2: CENTRAL EDITORIAL
--------------------------------------------------------- */
/* Lead Splash Story */
.lead-story {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-img-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--bg-highlight);
  position: relative;
  border: 1px solid var(--border-light);
}

.lead-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lead-story:hover .lead-img-wrapper img {
  transform: scale(1.02);
}

.story-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--text-primary);
  color: var(--bg-color);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lead-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-title {
  font-family: var(--font-serif-header);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.lead-title:hover {
  color: var(--accent-color);
}

.lead-meta, .card-meta {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.meta-author {
  font-weight: 700;
  color: var(--text-secondary);
}

.lead-summary {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Action controls for articles */
.article-actions {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.action-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.action-btn:hover {
  color: var(--accent-color);
}

.action-btn.read-btn {
  color: var(--accent-red);
}

.action-btn.read-btn:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.editorial-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 24px 0;
}

/* Sector Multi-Column Grid inside Center */
.sector-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.sector-subcol {
  display: flex;
  flex-direction: column;
  transition: all var(--transition-speed);
}

.sector-subcol:not(:last-child) {
  border-right: 1px solid var(--border-light);
  padding-right: 20px;
}

@media (max-width: 1300px) {
  .sector-columns-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .sector-subcol {
    border-right: none !important;
    padding-right: 0 !important;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
  }
  
  .sector-subcol:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.sector-header {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.font-ai-tech {
  color: #1e3a8a;
  border-bottom-color: #1e3a8a;
}
.font-finance {
  color: #065f46;
  border-bottom-color: #065f46;
}
.font-pharma {
  color: #9d174d;
  border-bottom-color: #9d174d;
}

.sector-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-story {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.card-title:hover {
  color: var(--accent-color);
}

.card-summary {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ---------------------------------------------------------
   COLUMN 3: OPINION & MOST READ
--------------------------------------------------------- */
.op-ed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.op-ed-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.op-ed-card:last-child {
  border-bottom: none;
}

.op-ed-author {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-red);
}

.op-ed-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  cursor: pointer;
}

.op-ed-title:hover {
  color: var(--accent-color);
}

.section-divider {
  border-top: 1px double var(--border-color);
  margin: 20px 0;
}

/* Most Read list */
.most-read-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.most-read-item {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.most-read-item:last-child {
  border-bottom: none;
}

.most-read-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--border-color);
  line-height: 1;
}

.most-read-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.most-read-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  cursor: pointer;
}

.most-read-title:hover {
  text-decoration: underline;
}

.most-read-category {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Promo Boxes */
.promo-box {
  background-color: var(--bg-highlight);
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-top: 24px;
  border-top: 3px solid var(--text-primary);
}

.promo-box h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.promo-box p {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-color);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 7px 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-highlight);
  border-color: var(--text-primary);
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.65rem;
}

.w-100 {
  width: 100%;
}

/* Shimmer Loading Animations */
.shimmer-card {
  padding: 12px 0;
}
.shimmer-line {
  height: 10px;
  background-color: var(--border-light);
  margin-bottom: 8px;
  border-radius: 4px;
  animation: shimmer 1.5s infinite linear;
}
.shimmer-line.short { width: 40%; }
.shimmer-line.long { width: 80%; }
.shimmer-box {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--border-light);
  margin-bottom: 12px;
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* ---------------------------------------------------------
   DISTRACTION-FREE READER OVERLAY (FULL SCREEN)
--------------------------------------------------------- */
.reader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-primary);
  z-index: 1000;
  display: none; /* Managed by JS */
  flex-direction: column;
  overflow: hidden;
}

/* Apply specific reader mode variables for custom settings */
.reader-overlay[data-reader-theme="newsprint"] {
  --bg-color: #fafaf6;
  --text-primary: #121210;
  --text-secondary: #4a4a45;
  --border-color: #dedede;
  --bg-highlight: #f3f3ee;
}
.reader-overlay[data-reader-theme="sepia"] {
  --bg-color: #f4ebd8;
  --text-primary: #3c2f2f;
  --text-secondary: #5c4d4d;
  --border-color: #e5d8bc;
  --bg-highlight: #ebdcb9;
}
.reader-overlay[data-reader-theme="dark"] {
  --bg-color: #1e1e1e;
  --text-primary: #e2e2da;
  --text-secondary: #ababab;
  --border-color: #333333;
  --bg-highlight: #282828;
}
.reader-overlay[data-reader-theme="pitch"] {
  --bg-color: #000000;
  --text-primary: #dcdcdc;
  --text-secondary: #8c8c8c;
  --border-color: #222222;
  --bg-highlight: #151515;
}

/* Applied settings classes */
.reader-article-content.font-serif {
  font-family: var(--font-serif);
}
.reader-article-content.font-sans {
  font-family: var(--font-sans);
}
.reader-article-content.spacing-normal {
  --line-height-body: 1.7;
}
.reader-article-content.spacing-wide {
  --line-height-body: 2.0;
}

.reader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-color);
  transition: background-color var(--transition-speed);
}

.reader-logo {
  font-family: var(--font-serif-header);
  font-weight: 800;
  font-size: 1.25rem;
  border: 1.5px solid var(--text-primary);
  padding: 2px 6px;
  margin-right: 12px;
}

.reader-article-category {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-red);
}

.reader-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reader-ctrl-btn {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-speed);
}

.reader-ctrl-btn:hover {
  background-color: var(--bg-highlight);
}

.reader-ctrl-btn.active {
  color: var(--accent-red);
}

.reader-ctrl-btn.close-btn {
  font-size: 1.2rem;
  margin-left: 8px;
}

/* Settings Dropdown Panel */
.settings-dropdown-wrapper {
  position: relative;
}

.reader-settings-panel {
  position: absolute;
  top: 48px;
  right: 0;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  width: 280px;
  box-shadow: var(--shadow-md);
  display: none; /* Managed by toggle */
  flex-direction: column;
  gap: 16px;
  z-index: 1010;
}

.reader-settings-panel.active {
  display: flex;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.theme-selectors {
  display: flex;
  gap: 8px;
}

.theme-select-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  font-weight: bold;
  font-size: 0.9rem;
}

.theme-select-btn.active {
  border-color: var(--text-primary);
}

.theme-select-btn.light { background-color: #fafaf6; color: #121210; }
.theme-select-btn.sepia { background-color: #f4ecd8; color: #3c2f2f; }
.theme-select-btn.dark { background-color: #1e1e1e; color: #e2e2da; }
.theme-select-btn.pitch { background-color: #000000; color: #ffffff; border: 1px solid #333; }

.font-selectors {
  display: flex;
  gap: 8px;
}

.font-select-btn {
  flex: 1;
  padding: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-primary);
  border-radius: 4px;
}

.font-select-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

.size-selectors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px;
}

.size-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-display-percent {
  font-size: 0.8rem;
  font-weight: 600;
}

.spacing-selectors {
  display: flex;
  gap: 8px;
}

.spacing-select-btn {
  flex: 1;
  padding: 6px;
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: 4px;
}

.spacing-select-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

/* Audio narration controller bar */
.audio-control-bar {
  display: none; /* Managed by JS toggle */
  background-color: var(--bg-highlight);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: background-color var(--transition-speed);
}

.audio-control-bar.active {
  display: flex;
}

.audio-info {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.audio-pulse {
  color: var(--accent-red);
}

.audio-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-btn-action {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-btn-action:hover {
  background-color: var(--bg-color);
}

.audio-btn-action.play-pause-btn {
  background-color: var(--text-primary);
  color: var(--bg-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.audio-progress-container {
  flex-grow: 1;
  max-width: 300px;
  height: 4px;
  background-color: var(--border-color);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.audio-progress-bar {
  width: 0%;
  height: 100%;
  background-color: var(--accent-red);
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.1s linear;
}

/* Reader Content scrollable container */
.reader-body-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  padding: 48px 24px;
}

.reader-article-content {
  max-width: 680px;
  margin: 0 auto;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.reader-title {
  font-family: var(--font-serif-header);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.reader-meta {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  margin-bottom: 24px;
}

.reader-author {
  font-weight: 700;
}

.reader-dot {
  color: var(--text-muted);
  margin: 0 4px;
}

.reader-ai-summary {
  background-color: var(--bg-highlight);
  border-left: 3px solid var(--accent-red);
  padding: 16px;
  margin-bottom: 24px;
}

.summary-header {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.reader-ai-summary ul {
  list-style-type: square;
  padding-left: 18px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
}

.reader-body-paragraphs p {
  margin-bottom: 20px;
}

.reader-body-paragraphs .lead-para {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
}

/* Elegant drop cap style for lead paragraph */
.reader-body-paragraphs p:first-of-type::first-letter {
  font-family: var(--font-serif-header);
  font-size: 3.5rem;
  float: left;
  line-height: 0.8;
  margin-top: 6px;
  margin-right: 8px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ---------------------------------------------------------
   MODALS (EMAIL DIGEST WIDGET)
--------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none; /* Managed by JS */
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 4px solid var(--text-primary);
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
}

.modal-left-settings {
  width: 45%;
  padding: 24px;
  overflow-y: auto;
  border-right: 1px solid var(--border-light);
}

.modal-right-preview {
  width: 55%;
  background-color: var(--bg-highlight);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.newsletter-preview-container {
  flex-grow: 1;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background-color: #f6f6f3;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-group input[type="email"],
.form-group select {
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  background-color: var(--panel-bg);
  color: var(--text-primary);
  border-radius: 4px;
}

.form-group input[type="email"]:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--text-primary);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .half {
  flex: 1;
}

.form-group input[type="time"] {
  width: 100%;
  padding: 7px 12px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  background-color: var(--panel-bg);
  color: var(--text-primary);
  border-radius: 4px;
}

/* Custom Checkbox Design */
.checkbox-group, .radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-container, .radio-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 0.8rem;
  user-select: none;
  color: var(--text-secondary);
  min-height: 20px;
}

.checkbox-container input, .radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark, .radio-mark {
  position: absolute;
  top: 1px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
}

.radio-mark {
  border-radius: 50%;
}

.checkbox-container:hover input ~ .checkmark,
.radio-container:hover input ~ .radio-mark {
  border-color: var(--text-primary);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
}
.radio-container input:checked ~ .radio-mark {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-container .checkmark::after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid var(--bg-color);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.radio-container::after {
  content: "";
  position: absolute;
  display: none;
}
.radio-container input:checked ~ .radio-mark::after {
  display: block;
}
.radio-container .radio-mark::after {
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-color);
}

/* ---------------------------------------------------------
   BOOKMARKS DRAWER (SLIDE OUT PANEL)
--------------------------------------------------------- */
.bookmarks-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  height: 100%;
  background-color: var(--panel-bg);
  border-left: 1px solid var(--border-color);
  z-index: 1500;
  box-shadow: var(--shadow-md);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.bookmarks-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h2 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.drawer-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  text-align: center;
  color: var(--text-muted);
  gap: 16px;
}

.drawer-empty-state i {
  font-size: 2rem;
}

.drawer-empty-state p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.bookmark-list-item {
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bookmark-list-item:first-child {
  padding-top: 0;
}

.bookmark-list-item:last-child {
  border-bottom: none;
}

.bookmark-item-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.bookmark-item-title:hover {
  color: var(--accent-red);
}

.bookmark-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.remove-bookmark-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.remove-bookmark-btn:hover {
  color: var(--accent-red);
}

/* Toast Messages */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--text-primary);
  color: var(--bg-color);
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3000;
  pointer-events: none;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.main-footer {
  border-top: 3px double var(--text-primary);
  background-color: var(--bg-highlight);
  max-width: 1400px;
  margin: 48px auto 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  text-align: center;
  max-width: 600px;
}

.footer-brand h2 {
  font-family: var(--font-serif-header);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-brand p {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  width: 100%;
}

/* ---------------------------------------------------------
   RESPONSIVE LAYOUTS (TABLET & MOBILE)
--------------------------------------------------------- */
@media (max-width: 1100px) {
  /* Tablet Layout - 2 columns (Briefing is hidden or stacked) */
  .newspaper-grid {
    grid-template-columns: 1fr 300px;
  }
  
  .briefing-col {
    display: none; /* Hide brief column on tablets, inject them as quick highlights inside opinion */
  }

  .newspaper-grid > .grid-col:not(:last-child) {
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
  }
  
  .sector-columns-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .sector-subcol:last-child {
    grid-column: span 2;
    border-top: 1px solid var(--border-light);
    border-right: none !important;
    padding-right: 0;
    padding-top: 16px;
    margin-top: 10px;
  }
  
  .modal-card {
    max-width: 700px;
  }
  
  .modal-body {
    flex-direction: column;
    overflow-y: auto;
  }
  
  .modal-left-settings, .modal-right-preview {
    width: 100%;
    border-right: none;
  }
  
  .modal-left-settings {
    padding-bottom: 12px;
  }
  
  .modal-right-preview {
    border-top: 1px solid var(--border-light);
    height: 450px;
  }
}

@media (max-width: 768px) {
  /* Mobile Layout - Single Column Stacked */
  .newspaper-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
  }
  
  .newspaper-grid > .grid-col {
    border-right: none !important;
    padding-right: 0 !important;
  }
  
  .editorial-divider, .section-divider {
    margin: 16px 0;
  }
  
  .sector-columns-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .sector-subcol {
    border-right: none !important;
    padding-right: 0 !important;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
  }
  
  .sector-subcol:first-child {
    border-top: none;
    padding-top: 0;
  }
  
  .sector-subcol:last-child {
    grid-column: span 1;
    margin-top: 0;
  }
  
  .header-meta-row {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    padding-bottom: 12px;
  }
  
  .meta-left {
    flex-direction: column;
    gap: 4px;
  }
  
  .edition-badge {
    border-left: none;
    padding-left: 0;
  }
  
  /* Navigation Menu collapse */
  .main-nav {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links-list {
    display: none; /* Managed by JS on toggle */
    flex-direction: column;
    gap: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 4px;
    background-color: var(--bg-highlight);
  }
  
  .nav-links-list.active {
    display: flex;
  }
  
  .nav-links-list a.active::after {
    display: none;
  }
  
  .search-bar input {
    width: 100%;
  }
  .search-bar input:focus {
    width: 100%;
  }
  
  /* Lead story title resizing */
  .lead-title {
    font-size: 1.6rem;
  }
  
  /* Reader Mode overlay details */
  .reader-header {
    padding: 10px 16px;
  }
  
  .reader-controls {
    gap: 6px;
  }
  
  .reader-body-wrapper {
    padding: 24px 16px;
  }
  
  .reader-title {
    font-size: 1.85rem;
  }
  
  .reader-settings-panel {
    width: calc(100vw - 32px);
    right: -12px;
  }
  
  .audio-control-bar {
    padding: 10px 16px;
  }
  
  .audio-info {
    width: 100%;
  }
  
  .audio-progress-container {
    max-width: 100%;
    order: 3;
    width: 100%;
  }
}

/* ---------------------------------------------------------
   SCALED UP DOUBLE BORDERS & LAYOUT LOOKALIKE
--------------------------------------------------------- */
.newspaper-grid > .grid-col:not(:last-child) {
  border-right: 3px double var(--border-color);
}
.editorial-divider, .section-divider {
  border-top: 3px double var(--border-color);
  background: none;
  height: auto;
  margin: 20px 0;
}

/* Featured Columnists */
.columnists-section {
  margin-bottom: 20px;
}
.columnists-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.columnist-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.columnist-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--text-primary);
  color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
}
.columnist-info {
  display: flex;
  flex-direction: column;
}
.columnist-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.columnist-title {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* User Account drop-down widget */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color var(--transition-speed);
}
.user-profile-header:hover {
  background-color: var(--bg-highlight);
}
.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--accent-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}
.user-name-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}
.profile-dropdown-menu {
  position: absolute;
  top: 36px;
  right: 0;
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  width: 180px;
  display: none;
  flex-direction: column;
  padding: 6px 0;
  z-index: 1000;
}
.profile-dropdown-menu.active {
  display: flex;
}
.profile-dropdown-item {
  width: 100%;
  padding: 8px 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease;
}
.profile-dropdown-item:hover {
  background-color: var(--bg-highlight);
  color: var(--text-primary);
}
.profile-dropdown-item.header-info {
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
  color: var(--text-primary);
  pointer-events: none;
  padding-bottom: 10px;
  margin-bottom: 4px;
}

/* ---------------------------------------------------------
   SUBSCRIBER PRICING SHEET
--------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 16px 0 24px 0;
}
.pricing-tier-card {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.pricing-tier-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pricing-tier-card.premium-tier {
  border: 2px solid var(--text-primary);
  background-color: var(--bg-highlight);
}
.tier-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
}
.tier-badge.active {
  background-color: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}
.tier-title {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-sans);
  margin-bottom: 12px;
}
.tier-price-row {
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
}
.tier-price-row .currency {
  font-size: 1.25rem;
  font-weight: 700;
}
.tier-price-row .price-val {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.tier-price-row .period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 2px;
}
.tier-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 20px;
  min-height: 48px;
}
.tier-features {
  list-style: none;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex-grow: 1;
}
.tier-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}
.tier-features li i {
  font-size: 0.85rem;
  color: #10b981;
}
.tier-features li i.no {
  color: var(--text-muted);
  opacity: 0.5;
}
.promo-box-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}
.promo-box-row input {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  background-color: var(--panel-bg);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
}
.promo-box-row input:focus {
  outline: none;
  border-color: var(--text-primary);
}
.promo-status {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 6px;
  min-height: 16px;
}
.promo-status.success { color: #10b981; }
.promo-status.error { color: #ef4444; }

/* Checkout wizard split */
.checkout-split {
  display: flex;
  gap: 32px;
  margin-top: 12px;
}
.checkout-form-column {
  width: 60%;
}
.checkout-form-column h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.checkout-summary-column {
  width: 40%;
}
.summary-box {
  background-color: var(--bg-highlight);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.summary-box h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.summary-item.discount {
  color: #10b981;
  font-weight: 600;
}
.summary-item.total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* User authentication switch text */
.auth-switch-text a {
  color: var(--accent-red);
  font-weight: 700;
}

/* ---------------------------------------------------------
   LIKES AND COMMENTS (READER INTERACTIONS)
--------------------------------------------------------- */
.reader-interactions {
  border-top: 3px double var(--border-color);
  margin-top: 36px;
  padding-top: 20px;
}
.interactions-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.interaction-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.interaction-btn:hover, .interaction-btn.active {
  color: var(--accent-red);
}
.comments-container h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.comment-entry-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.comment-entry-box textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--border-color);
  background-color: var(--panel-bg);
  color: var(--text-primary);
  font-family: var(--font-serif);
  padding: 12px;
  border-radius: 4px;
  font-size: 0.95rem;
  resize: vertical;
}
.comment-entry-box textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}
.comment-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guideline-text {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-item-layout {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}
.comment-item-layout:last-child {
  border-bottom: none;
}
.comment-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.comment-author-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 4px;
  background-color: var(--bg-highlight);
  border: 1px solid var(--border-color);
  border-radius: 2px;
}
.comment-time-label {
  color: var(--text-muted);
  font-weight: 400;
}
.comment-content {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Commodities & Crypto Tracker styling */
.indicators-section {
  margin-bottom: 20px;
}
.indicators-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.indicator-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding: 6px 0;
  font-size: 0.85rem;
}
.indicator-row:last-child {
  border-bottom: none;
}
.indicator-name-col {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-secondary);
}
.indicator-value-col {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
}
.indicator-price {
  font-weight: 700;
  color: var(--text-primary);
}
.indicator-pct {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  min-width: 60px;
  text-align: center;
}
.indicator-pct.up {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
}
.indicator-pct.down {
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}


