/*
 * CANONICAL FONT RULES — DO NOT MODIFY WITHOUT EXPLICIT INSTRUCTION
 * Feed headlines:    .article-card .article-headline → Roboto 700 italic
 * Top story:         .article-card.top-story .article-headline → Roboto 700 italic
 * Footer brand:      .footer-brand h3 → Roboto 500 italic uppercase
 * Masthead name:     inline style on div.masthead-name in index.html → Roboto 500 italic
 * Masthead tagline:  inline style on div.masthead-tagline in index.html → Roboto 400 italic
 * Body default:      Inter
 * Article headlines: Source Serif 4 bold (article.html)
 * CANONICAL BACKUP:  css/styles.css.CANONICAL
 * LAST UPDATED: 2026-03-04
 */
/* ============================================================
   Pulse News Wire — Stylesheet with Light/Dark Theme
   Bloomberg/Reuters-inspired financial news design
   ============================================================ */

/* --- Theme Variables --- */
:root {
  --bg-body: #0c1017;
  --bg-surface: #121820;
  --bg-raised: #1a2230;
  --bg-raised-hover: #222e3e;
  --text-primary: #e0e4ea;
  --text-mid: #8a94a4;
  --text-dim: #556070;
  --text-heading: #ffffff;
  --text-summary-top: #a0a8b8;
  --accent: #4a90c4;
  --accent-bright: #6bb0e0;
  --accent-hover: #8dc8f0;
  --border-color: #1e2a38;
  --border-subtle: #2a3545;
  --api-promo-bg: linear-gradient(135deg, #1a2230, #142c4a);
  --api-promo-border: #2a4d73;
}

html[data-theme="light"] {
  --bg-body: #ffffff;
  --bg-surface: #f4f6f8;
  --bg-raised: #f4f6f8;
  --bg-raised-hover: #e0e4e8;
  --text-primary: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-dim: #666666;
  --text-heading: #1a1a1a;
  --text-summary-top: #4a4a4a;
  --accent: #4a90c4;
  --accent-bright: #4a90c4;
  --accent-hover: #3a7eb2;
  --border-color: #e4e7eb;
  --border-subtle: #d0d5dc;
  --api-promo-bg: #1e3a5f;
  --api-promo-border: #1e3a5f;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent-bright); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* --- Utility Bar (always dark) --- */
.utility-bar {
  background: #080c12;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 12px;
  color: #556070;
  border-bottom: 1px solid #1e2a38;
}
.utility-bar a { color: #8a94a4; font-size: 12px; min-height: 48px; display: inline-flex; align-items: center; padding: 0 4px; }
.utility-bar a:hover { color: #e0e4ea; }
.utility-links { display: flex; gap: 16px; align-items: center; }
.utility-links .sep { color: #2a3545; }

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: none;
  color: #8a94a4;
  cursor: pointer;
  font-size: 15px;
  padding: 2px 0;
  line-height: 1;
  transition: color .15s;
  vertical-align: middle;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover { color: #e0e4ea; }

/* --- Masthead (always dark) --- */
.masthead {
  background: #1a2230;
  padding: 18px 24px 0;
  border-bottom: 1px solid #1e2a38;
}
.masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.masthead-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.masthead-logo {
  width: 165px;
  height: 100px;
}
.masthead-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
header .masthead-brand .masthead-name,
.masthead .masthead-brand .masthead-name {
  font-family: 'Roboto', sans-serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1.2;
}
header .masthead-brand .masthead-tagline,
.masthead .masthead-brand .masthead-tagline {
  font-family: 'Roboto', sans-serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 13px;
  color: #8a94a4;
  letter-spacing: .5px;
  line-height: 1.3;
}
.masthead-stats {
  display: flex;
  gap: 24px;
  align-items: center;
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-family: 'Exo 2', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #6bb0e0;
  line-height: 1.2;
}
.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #556070;
  letter-spacing: .5px;
}

/* --- Category Nav (always on dark masthead) --- */
#article-feed {
  min-height: 800px;
}

.category-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding-top: 14px;
  min-height: 48px;
}
.category-tab {
  background: none;
  border: none;
  color: #8a94a4;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 8px 16px 12px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all .15s;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.category-tab:hover { color: #e0e4ea; }
.category-tab.active {
  color: #ffffff;
  border-bottom-color: #4a90c4;
}

/* --- Ticker Strip (always dark) --- */
.ticker-strip {
  background: #121820;
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #1e2a38;
  padding: 0 24px;
}
.ticker-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #4a90c4;
  margin-right: 16px;
  flex-shrink: 0;
}
.ticker-live .dot {
  width: 6px; height: 6px;
  background: #4a90c4;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.ticker-track {
  display: flex;
  animation: scroll-ticker 60s linear infinite;
  gap: 32px;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #8a94a4;
  flex-shrink: 0;
}
.ticker-item .ticker-sym {
  color: #6bb0e0;
  font-weight: 600;
}
.ticker-item .ticker-headline {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Main Layout --- */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

/* --- Article Feed --- */
.feed-section { min-width: 0; }

.feed-header {
  font-family: 'Exo 2', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding-bottom: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent);
}

/* Top Story */
.article-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}
.article-card:first-child { padding-top: 0; }

.article-card.top-story .article-headline {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  color: var(--text-heading);
}
.article-card .article-headline {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.article-card .article-headline a { color: inherit; }
.article-card .article-headline a:hover { color: var(--accent-bright); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.article-meta .category-badge {
  background: var(--bg-raised);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.article-meta .meta-sep { color: var(--border-subtle); }
.article-meta .ticker-link {
  color: var(--accent-bright);
  font-weight: 600;
}

.article-summary {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-top: 6px;
}
.article-card.top-story .article-summary {
  font-size: 16px;
  color: var(--text-summary-top);
}

.article-card-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.article-card-row .article-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  background: #1e3a5f;
  padding: 4px;
  flex-shrink: 0;
}
.article-card.top-story .article-card-row .article-logo {
  width: 80px;
  height: 80px;
}
.article-card-row .article-logo.article-logo-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  background: #1e3a5f;
  border-radius: 6px;
  user-select: none;
}
.article-card-content { flex: 1; min-width: 0; }

/* Load More */
.load-more-wrap {
  text-align: center;
  padding: 24px 0;
}
.load-more-btn {
  background: var(--bg-raised);
  color: var(--accent-bright);
  border: 1px solid var(--border-color);
  padding: 10px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
}
.load-more-btn:hover { background: var(--bg-raised-hover); border-color: var(--accent); }
.load-more-btn:disabled { opacity: .5; cursor: default; }

/* --- Sidebar --- */
.sidebar { min-width: 0; }

.sidebar-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 20px;
}
.sidebar-title {
  font-family: 'Exo 2', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

/* Enterprise API promo — always dark background */
.api-promo {
  background: var(--api-promo-bg);
  border-color: var(--api-promo-border);
}
.api-promo .sidebar-title { color: #6bb0e0; border-bottom-color: var(--api-promo-border); }
.api-promo p { font-size: 13px; color: #b0b8c8; line-height: 1.5; margin-bottom: 12px; }
.api-promo .api-btn {
  display: inline-block;
  background: #4a90c4;
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.api-promo .api-btn:hover { background: #3a7eb2; color: #fff; }

/* Coverage stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-box { text-align: center; }
.stat-box .stat-value {
  font-family: 'Exo 2', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-bright);
}
.stat-box .stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Latest disclosures */
.latest-list { list-style: none; min-height: 280px; }
.latest-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.latest-item:last-child { border-bottom: none; }
.latest-item a {
  font-size: 13px;
  color: var(--text-primary);
  display: block;
  line-height: 1.4;
}
.latest-item a:hover { color: var(--accent-bright); }
.latest-item .latest-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* --- Article Detail Page --- */
.article-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.article-page .back-link {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: inline-block;
}
.article-page .back-link:hover { color: var(--accent-bright); }

.article-page .article-logo-wrap {
  text-align: center;
  margin: 8px 0 28px;
}
.article-page .article-logo-wrap img {
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
  background: var(--bg-raised);
  border-radius: 8px;
  padding: 16px;
}

.article-page .article-category-badge {
  display: inline-block;
  background: var(--bg-raised);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.article-page h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.article-page .article-date {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.article-page .article-reading-time {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.article-body {
  border-top: 2px solid var(--accent);
  padding-top: 24px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
}
.article-body p { margin-bottom: 16px; }
.article-body h2, .article-body h3 {
  font-family: 'Exo 2', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-style: italic;
  color: var(--text-heading);
  margin: 24px 0 12px;
}
.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 20px; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.article-body th, .article-body td {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  text-align: left;
}
.article-body th {
  background: var(--bg-raised);
  color: var(--text-mid);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .5px;
}
.article-body a { color: var(--accent-bright); }
.article-body ul, .article-body ol {
  margin: 12px 0 12px 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body img {
  max-width: 100%;
  border-radius: 4px;
  margin: 16px 0;
}

.article-footer-meta {
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.article-footer-meta .ticker-badge {
  background: var(--bg-raised);
  color: var(--accent-bright);
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 600;
}

/* Error Report Form */
.error-report {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}
.error-report-trigger {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.error-report-trigger:hover { border-color: var(--accent); color: var(--text-primary); }
.error-report-form {
  display: none;
  margin-top: 16px;
}
.error-report-form.open { display: block; }
.error-report-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.error-report-form input,
.error-report-form textarea {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin-bottom: 12px;
  transition: border-color .15s;
}
.error-report-form input:focus,
.error-report-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.error-report-form textarea { resize: vertical; min-height: 80px; }
.error-report-actions { display: flex; gap: 10px; }
.error-report-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.error-report-submit:hover { background: #3a7eb2; }
.error-report-cancel {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.error-report-cancel:hover { border-color: var(--accent); color: var(--text-primary); }
.error-report-success {
  font-size: 13px;
  color: #15803d;
  margin-top: 12px;
}

/* Related Articles */
.related-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.related-section h3 {
  font-family: 'Exo 2', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.related-list { list-style: none; }
.related-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.related-list li:last-child { border-bottom: none; }
.related-list a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.related-list a:hover { color: var(--accent-bright); }
.related-list .related-time { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* --- Footer (always dark) --- */
.site-footer {
  background: #080c12;
  border-top: 1px solid #1e2a38;
  padding: 40px 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand h3 {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px;
  color: #556070;
  line-height: 1.5;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #8a94a4;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #556070; font-size: 13px; }
.footer-col a:hover { color: #e0e4ea; }

.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid #1e2a38;
  font-size: 12px;
  color: #3a4555;
  text-align: center;
}

/* --- Static Pages --- */
.static-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.static-page h1 {
  font-family: 'Exo 2', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-heading);
  margin-bottom: 24px;
}
.static-page h2 {
  font-family: 'Exo 2', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  margin: 28px 0 12px;
}
.static-page p, .static-page li {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 14px;
}
.static-page ul { margin-left: 24px; margin-bottom: 16px; }
.static-page a { color: var(--accent-bright); }

.contact-email {
  display: inline-block;
  background: var(--bg-raised);
  color: var(--accent-bright);
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

/* --- Loading / Empty States --- */
.loading-spinner {
  text-align: center;
  padding: 48px;
  color: var(--text-dim);
  font-size: 14px;
}
.loading-spinner::before {
  content: '';
  display: block;
  width: 28px; height: 28px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-dim);
  font-size: 14px;
}

/* --- Article Reads Counter --- */
.article-reads-counter {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

/* --- Paywall Banner (homepage) --- */
.paywall-banner {
  background: linear-gradient(135deg, #142c4a, #1a2230);
  color: #b0b8c8;
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  border-bottom: 1px solid #1e2a38;
}
.paywall-banner a {
  color: #6bb0e0;
  font-weight: 600;
}
.paywall-banner a:hover { color: #8dc8f0; }

/* --- Paywall Overlay (article page) --- */
.paywall-overlay {
  position: relative;
  margin-top: -60px;
}
.paywall-fade {
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-body));
  pointer-events: none;
}
.paywall-content {
  background: linear-gradient(135deg, #0f1923, #142c4a);
  border: 1px solid #2a4d73;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
html[data-theme="light"] .paywall-content {
  background: linear-gradient(135deg, #1a2230, #142c4a);
}
.paywall-content h3 {
  font-family: 'Exo 2', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 10px;
}
.paywall-content p {
  font-size: 15px;
  color: #8a94a4;
  margin-bottom: 24px;
  line-height: 1.5;
}
.paywall-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.paywall-btn {
  display: block;
  padding: 14px 24px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: all .15s;
}
.paywall-btn-primary {
  background: #4a90c4;
  color: #ffffff;
}
.paywall-btn-primary:hover { background: #3a7eb2; color: #fff; }
.paywall-btn-secondary {
  background: transparent;
  color: #6bb0e0;
  border: 1px solid #2a4d73;
}
.paywall-btn-secondary:hover { border-color: #4a90c4; color: #8dc8f0; }
.paywall-btn-secondary span { font-size: 13px; color: #8a94a4; }
.paywall-signin {
  font-size: 13px;
  color: #556070;
  margin-bottom: 0;
}
.paywall-signin a { color: #6bb0e0; }

/* --- Modal System --- */
.pnw-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  padding: 24px;
  box-sizing: border-box;
}
.pnw-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.pnw-modal {
  background: linear-gradient(135deg, #1a2230, #142c4a);
  border: 1px solid #2a4d73;
  border-radius: 10px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform .2s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}
.pnw-modal-overlay.open .pnw-modal { transform: translateY(0); }
/* Force dark styling in light mode */
html[data-theme="light"] .pnw-modal-overlay { background: rgba(0, 0, 0, 0.75); }
html[data-theme="light"] .pnw-modal { background: linear-gradient(135deg, #1a2230, #142c4a); color: #ffffff; }
html[data-theme="light"] .pnw-modal h2 { color: #ffffff; }
html[data-theme="light"] .pnw-modal .modal-subtitle { color: #8a94a4; }
html[data-theme="light"] .pnw-modal .signin-form input { background: rgba(255,255,255,0.06); border-color: #2a3545; color: #e0e4ea; }
html[data-theme="light"] .pnw-modal .signin-form input::placeholder { color: #556070; }
html[data-theme="light"] .pnw-modal .signin-status { color: #8a94a4; }
html[data-theme="light"] .pnw-modal .signin-status.error { color: #e08a8a; }
html[data-theme="light"] .pnw-modal .plan-card { background: rgba(255,255,255,0.05); border-color: #2a3545; }
html[data-theme="light"] .pnw-modal .plan-card:hover { border-color: #4a90c4; background: rgba(74,144,196,0.08); }
html[data-theme="light"] .pnw-modal .plan-name { color: #8a94a4; }
html[data-theme="light"] .pnw-modal .plan-price { color: #ffffff; }
html[data-theme="light"] .pnw-modal .plan-desc { color: #556070; }
.pnw-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #8a94a4;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
  padding: 0;
}
.pnw-modal-close:hover { color: #e0e4ea; }
.pnw-modal h2 {
  font-family: 'Exo 2', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 6px;
}
.modal-subtitle {
  font-size: 14px;
  color: #8a94a4;
  margin-bottom: 28px;
}

/* Plan cards (subscribe modal) */
.plan-cards {
  display: flex;
  gap: 16px;
}
.plan-card {
  flex: 1;
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #2a3545;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  transition: all .15s;
  position: relative;
}
.plan-card:hover {
  border-color: #4a90c4;
  background: rgba(74, 144, 196, 0.08);
  color: inherit;
}
.plan-card-featured {
  border-color: #4a90c4;
  background: rgba(74, 144, 196, 0.1);
}
.plan-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #4a90c4;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
}
.plan-name {
  font-size: 13px;
  font-weight: 600;
  color: #8a94a4;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.plan-price {
  font-family: 'Exo 2', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 8px;
}
.plan-price span {
  font-size: 16px;
  color: #8a94a4;
  font-weight: 400;
}
.plan-desc {
  font-size: 13px;
  color: #556070;
}

/* Sign in form (sign in modal) */
.signin-form {
  margin-top: 4px;
}
.signin-form input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #2a3545;
  border-radius: 6px;
  color: #e0e4ea;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  margin-bottom: 12px;
  transition: border-color .15s;
}
.signin-form input:focus {
  outline: none;
  border-color: #4a90c4;
}
.signin-form input::placeholder { color: #556070; }
.signin-btn {
  width: 100%;
  padding: 12px;
  background: #4a90c4;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.signin-btn:hover { background: #3a7eb2; }
.signin-btn:disabled { opacity: .6; cursor: default; }
.signin-status {
  margin-top: 16px;
  font-size: 14px;
  color: #8a94a4;
  line-height: 1.5;
}
.signin-status.error { color: #e08a8a; }
.signin-status a.plan-link {
  color: #6bb0e0;
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .main-container {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .masthead-stats { align-self: flex-start; }
  .masthead-logo { width: 132px !important; height: 80px !important; max-height: 80px; }
  .masthead-name { font-size: 17px; letter-spacing: 1px; }
  .masthead-tagline { font-size: 11px; }
  .category-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .category-tab { padding: 8px 12px; white-space: nowrap; min-height: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .article-card.top-story .article-headline { font-size: 22px; }
  .article-page h1 { font-size: 26px; }
  .utility-bar { padding: 0 12px; }
  .ticker-strip { padding: 0 12px; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .masthead { padding: 12px 12px 0; }
  .masthead-tagline { font-size: 10px; }
  .masthead-name { font-size: 15px; }
  .masthead-logo { width: 132px !important; height: 80px !important; max-height: 80px; }
  .article-card-row { flex-direction: column; }
  .article-card-row .article-logo { width: 48px; height: 48px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .utility-links { gap: 10px; }
  .plan-cards { flex-direction: column; }
  .pnw-modal { padding: 28px 20px; }
  .paywall-content { padding: 28px 20px; }
}

/* MASTHEAD ITALIC OVERRIDE - MUST REMAIN LAST */
/*
  Target elements (from index.html):
    <div class="masthead-name">PULSE NEWS WIRE</div>
    <div class="masthead-tagline">Clear, Actionable Intelligence</div>
  Inside: div.masthead-brand > div.masthead-text > div.masthead-name / div.masthead-tagline

  Rules setting font-family to Inter in this file:
    Line 53:  body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
    Line 177: .utility-bar
    Line 372: .category-tab
    Line 545: .article-meta
    Line 605: .sidebar-section
    Line 633: .trending-item
    Line 651: .sidebar-section h3
    Line 664: .sidebar-tag
    Line 795: .pnw-modal
    Line 895: .paywall-content
    Line 1073: .plan-card
    Line 1090: .plan-feature

  No second stylesheet loaded. Only css/styles.css and Google Fonts.
*/
div.masthead-brand div.masthead-name,
div.masthead-brand .masthead-name,
.masthead-name {
  font-family: 'Roboto', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
}
div.masthead-brand div.masthead-tagline,
div.masthead-brand .masthead-tagline,
.masthead-tagline {
  font-family: 'Roboto', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

/* --- Recent Disclosures Bridge (SEO section, theme-aware) --- */
.recent-disclosures-bridge {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 32px;
  border-top: 3px solid #2b9e9e;
  background: transparent;
}

html[data-theme="light"] .recent-disclosures-bridge {
  background: #f3f2ef;
}

.recent-disclosures-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 24px 0 12px;
}

html[data-theme="light"] .recent-disclosures-heading {
  color: #1a2a4a;
}

.recent-disclosures-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px 24px;
}

.recent-disclosures-list li a {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

html[data-theme="light"] .recent-disclosures-list li a {
  color: #1a2a4a;
}

.recent-disclosures-list li a:hover {
  color: var(--accent-bright);
}

html[data-theme="light"] .recent-disclosures-list li a:hover {
  color: #2b9e9e;
}
