/* ========================================
   SleepWell - UK Sleep Guides & Advice Site
   Mobile-First Responsive Design
   ======================================== */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #ea580c;
  --primary-light: #f97316;
  --primary-dark: #55280e;
  --accent: #2f855a;
  --accent-light: #48bb78;
  --bg: #fff7ed;
  --bg-white: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --success: #10b981;
  --warning: #d97706;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-height: 64px;
  --bg-secondary: #edf2f7;
  --text-secondary: #1a202c;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-white: #1a1a2e;
  --text: #e2e8f0;
  --text-light: #94a3b8;
  --text-muted: #64748b;
  --border: #2d3748;
  --border-light: #1e293b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
  --bg-secondary: #1e293b;
  --text-secondary: #e2e8f0;
}

[data-theme="dark"] .header {
  background: #1a1a2e;
  border-bottom-color: #2d3748;
}

[data-theme="dark"] .nav-mobile {
  background: #1a1a2e;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #2d1a4e 100%);
}

[data-theme="dark"] .hero-search input {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .search-results {
  background: #1a1a2e !important;
  border-color: #2d2d4a !important;
}

[data-theme="dark"] .search-results a {
  color: #e5e7eb !important;
}

[data-theme="dark"] .search-results a:hover,
[data-theme="dark"] .search-results a:focus {
  background: #252540 !important;
}

[data-theme="dark"] .newsletter {
  background: linear-gradient(135deg, #0a0a1a, #1a1a3e);
}

[data-theme="dark"] .footer {
  background: #0a0a1a;
}

[data-theme="dark"] .author-bio {
  background: #1e293b !important;
  color: #e2e8f0;
}

[data-theme="dark"] .author-bio h3,
[data-theme="dark"] .author-bio strong,
[data-theme="dark"] .author-bio p,
[data-theme="dark"] .author-bio * {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .author-box {
  background: #1e293b !important;
  color: #e2e8f0;
}

/* TLDR / Key Takeaways boxes get proper bg/text via CSS variables.
   Any element using --bg-secondary as inline style gets proper text contrast. */
[data-theme="dark"] [style*="bg-secondary"] {
  color: var(--text-secondary);
}

[data-theme="dark"] [style*="bg-secondary"] strong,
[data-theme="dark"] [style*="bg-secondary"] li {
  color: var(--text-secondary);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.nav-desktop {
  display: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  background: var(--border-light);
  transform: scale(1.1);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Mobile Nav */
.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 99;
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  font-weight: 500;
}

.nav-mobile a:hover {
  color: var(--primary);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-search {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: 1rem;
  background: rgba(255,255,255,0.15);
  color: white;
  backdrop-filter: blur(10px);
}

.hero-search input::placeholder {
  color: rgba(255,255,255,0.7);
}

.hero-search input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.25);
}

.hero-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.7;
}

/* === CATEGORIES GRID === */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.category-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* === ARTICLE CARDS === */
.article-grid {
  display: grid;
  gap: 1rem;
}

.article-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.article-image {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-content {
  padding: 1.25rem;
}

.article-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--border-light);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.article-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.3;
}

.article-excerpt {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === NEWSLETTER === */
.newsletter {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.newsletter h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.7);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* === FOOTER === */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  padding: 0.25rem 0;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  text-align: center;
}

/* === RESPONSIVE === */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.25rem; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    gap: 0.25rem;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav-desktop a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
  }
  
  .nav-desktop a:hover {
    background: var(--bg);
    color: var(--primary);
  }
  
  .hero { padding: 4rem 2rem; }
  .hero h1 { font-size: 2.5rem; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 3rem 2rem; }
}

@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(6, 1fr); }
  .article-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === UTILITY === */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* === LEGAL PAGES === */
.legal-page {
  min-height: 60vh;
  padding: 2rem 1rem 4rem;
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.legal-container h1 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-container h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
}

.legal-container h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 1rem 0 0.5rem;
}

.legal-container p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-container ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-container li {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

.legal-container a {
  color: var(--primary-light);
  text-decoration: underline;
}

.legal-container section {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.legal-container section:last-child {
  border-bottom: none;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 2px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 10000;
  padding: 1rem 1.5rem;
  display: none;
  animation: slideUp 0.3s ease-out;
}

.cookie-consent.show { display: block; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}

.cookie-consent-text a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cookie-btn-accept {
  background: var(--primary);
  color: white;
}

.cookie-btn-accept:hover {
  background: var(--primary-light);
}

.cookie-btn-reject {
  background: var(--border);
  color: var(--text);
}

.cookie-btn-reject:hover {
  background: var(--text-muted);
  color: white;
}

.cookie-btn-settings {
  background: transparent;
  color: var(--text-light);
  text-decoration: underline;
  font-weight: 400;
}

.cookie-btn-settings:hover {
  color: var(--text);
}

/* Cookie Settings Panel */
.cookie-settings {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-settings.show { display: flex; }

.cookie-settings-panel {
  background: var(--bg-white);
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.cookie-settings-panel h3 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-label {
  flex: 1;
}

.cookie-option-label strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cookie-option-label span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider:before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.toggle input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-settings-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* Responsive cookie banner */
@media (max-width: 640px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-consent-buttons {
    justify-content: center;
  }
}

/* === ADS === */
.ad-unit-wrap {
  margin: 2rem 0;
  padding: 1rem 0;
  text-align: center;
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.ad-unit-wrap .ad-label {
  font-size: 0.65rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.ad-unit {
  display: block;
  max-width: 100%;
}
.ad-unit-wrap--mid {
  margin: 3rem 0;
}
.ad-unit-wrap--bottom {
  margin: 3rem 0 1rem;
}
@media (max-width: 480px) {
  .ad-unit-wrap {
    min-height: 60px;
    margin: 1.5rem 0;
  }
}

/* === ARTICLE CONTENT COMPONENTS === */

/* Key Takeaways Box */
.key-takeaways {
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.key-takeaways h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.key-takeaways ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: none;
}

.key-takeaways ul li {
  position: relative;
  padding: 0.35rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.key-takeaways ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Quick Picks */
.quick-picks {
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--bg-white);
}

.quick-picks h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.quick-picks-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .quick-picks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .quick-picks-grid { grid-template-columns: repeat(3, 1fr); }
}

.quick-pick-card {
  border-left: 4px solid var(--primary);
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.quick-pick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quick-pick-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.quick-pick-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 1.5rem 0;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.share-buttons a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Author Box */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.author-box .author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-box .author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.author-box .author-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* Roundup Hero */
.roundup-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.roundup-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: white;
}

.roundup-hero .article-category {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.roundup-hero .article-intro {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Disclaimer */
.disclaimer {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.6;
}

.disclaimer strong {
  color: #78350f;
}

/* Related Articles */
.related-articles {
  background: var(--bg-secondary);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.related-articles h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles ul li {
  margin-bottom: 0.5rem;
}

.related-articles ul li a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.related-articles ul li a:hover {
  background: var(--primary);
  color: white;
}

/* === DARK MODE OVERRIDES - ARTICLE COMPONENTS === */
[data-theme="dark"] .key-takeaways {
  background: var(--bg-secondary);
  border-left-color: var(--primary-light);
}

[data-theme="dark"] .key-takeaways h3 {
  color: var(--primary-light);
}

[data-theme="dark"] .key-takeaways ul li {
  color: var(--text-secondary);
}

[data-theme="dark"] .key-takeaways ul li::before {
  color: var(--primary-light);
}

[data-theme="dark"] .quick-picks {
  background: var(--bg-white);
  border-color: var(--primary-light);
}

[data-theme="dark"] .quick-picks h2 {
  color: var(--primary-light);
}

[data-theme="dark"] .quick-pick-card {
  background: var(--bg-secondary);
  border-left-color: var(--primary-light);
}

[data-theme="dark"] .quick-pick-card h4 {
  color: var(--text-secondary);
}

[data-theme="dark"] .share-buttons a {
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-color: var(--border);
}

[data-theme="dark"] .share-buttons a:hover {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}

[data-theme="dark"] .author-box {
  background: var(--bg-secondary);
}

[data-theme="dark"] .author-box .author-info h4 {
  color: var(--text-secondary);
}

[data-theme="dark"] .author-box .author-info p {
  color: var(--text-light);
}

[data-theme="dark"] .roundup-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #2d1a4e 100%);
}

[data-theme="dark"] .roundup-hero h1 {
  color: #e2e8f0;
}

[data-theme="dark"] .roundup-hero .article-category {
  background: rgba(255,255,255,0.1);
}

[data-theme="dark"] .roundup-hero .article-intro {
  color: #cbd5e1;
}

[data-theme="dark"] .disclaimer {
  background: #451a03;
  border-left-color: #f59e0b;
  color: #fbbf24;
}

[data-theme="dark"] .disclaimer strong {
  color: #fcd34d;
}

[data-theme="dark"] .related-articles {
  background: var(--bg-secondary);
}

[data-theme="dark"] .related-articles h3 {
  color: var(--text-secondary);
}

[data-theme="dark"] .related-articles ul li a {
  background: var(--bg-white);
  color: var(--text-secondary);
}

[data-theme="dark"] .related-articles ul li a:hover {
  background: var(--primary-light);
  color: white;
}