:root {
  color-scheme: light;
  --bg: #f8f8f5;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #5c5c66;
  --border: #e4e4e4;
  --accent: #0d6efd;
  --accent-soft: rgba(13, 110, 253, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  font-size: clamp(14px, 2.5vw, 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", "Inter", serif;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 3vw, 20px) clamp(16px, 4vw, 60px);
  border-bottom: 3px solid var(--accent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  min-height: clamp(60px, 10vw, 80px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand h1 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-family: "Playfair Display", "Inter", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.muted .article-bias {
  margin-left: 6px;
  vertical-align: middle;
}

.controls-toggle {
  border: none;
  background: var(--accent);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}

.controls-toggle:hover {
  opacity: 0.92;
}

.controls-toggle:active {
  transform: scale(0.95);
}

.toggle-icon {
  display: block;
  line-height: 1;
}

.layout {
  padding: clamp(20px, 4vw, 32px) clamp(12px, 4vw, 60px) clamp(40px, 8vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 5vw, 40px);
  max-width: 1600px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Newspaper column dividers */
.layout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  bottom: 0;
  border-left: 1px dashed rgba(0, 0, 0, 0.05);
  border-right: 1px dashed rgba(0, 0, 0, 0.05);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .layout::before {
  border-left-color: rgba(255, 255, 255, 0.05);
  border-right-color: rgba(255, 255, 255, 0.05);
}

.layout > * {
  position: relative;
  z-index: 1;
}

/* Controls Overlay */
.controls-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.controls-overlay:not(.collapsed) {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.controls-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.controls-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: clamp(12px, 2.5vw, 20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  max-width: min(90vw, 600px);
  max-height: 85vh;
  width: min(90vw, 600px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.3s ease-out;
  box-sizing: border-box;
}

.controls-overlay:not(.collapsed) .controls-panel {
  transform: translate(-50%, -50%) scale(1);
}

.controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.controls-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.controls-close {
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.controls-close:hover,
.controls-close:active {
  background: var(--border);
  color: var(--text);
}

.controls-content {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 24px;
}

.control-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.control label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, var(--bg) 8%);
  color: var(--text);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 4vw, 32px);
  padding: clamp(16px, 4vw, 40px);
  background: var(--card);
  border-top: 5px solid var(--accent);
  border-bottom: 2px solid var(--border);
  margin-bottom: clamp(24px, 5vw, 40px);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    transparent,
    transparent 10px,
    var(--border) 10px,
    var(--border) 20px
  );
}

.hero .summary {
  margin: clamp(12px, 2.5vw, 16px) 0 clamp(16px, 3vw, 24px);
  font-size: clamp(15px, 3vw, 18px);
  line-height: 1.75;
  color: var(--text);
  text-align: justify;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero h2 {
  font-size: clamp(24px, 5vw, 48px);
  line-height: 1.2;
  margin: clamp(8px, 2vw, 12px) 0 clamp(12px, 2.5vw, 16px);
  font-family: "Playfair Display", "Inter", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-img {
  background: var(--accent-soft);
  min-height: 300px;
  border: 2px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--accent);
}

.section-header h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
  font-family: "Playfair Display", "Inter", serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Newspaper-style grid layout */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 3vw, 24px);
  column-gap: clamp(12px, 2.5vw, 20px);
  margin-top: clamp(20px, 4vw, 32px);
  /* Use auto sizing to allow articles to grow based on content */
  grid-auto-rows: auto;
  align-items: start;
  /* Allow articles to size based on content */
  grid-auto-flow: row dense;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 2.5vw, 16px);
    column-gap: clamp(10px, 2vw, 14px);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(10px, 2.5vw, 16px);
    column-gap: clamp(10px, 2vw, 14px);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
    gap: clamp(12px, 3vw, 16px);
    column-gap: 0;
  }
  
  /* Force all articles to single column on mobile */
  .newspaper-article {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* Newspaper Article Styles */
.newspaper-article {
  background: var(--card);
  border-top: 3px solid var(--border);
  padding: clamp(12px, 2.5vw, 20px) clamp(12px, 2vw, 16px);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  break-inside: avoid;
  page-break-inside: avoid;
  position: relative;
  cursor: pointer;
  user-select: none;
  /* Allow article to grow to fit content */
  height: auto;
  min-height: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.newspaper-article:hover {
  border-top-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px) scale(1.01);
  background: color-mix(in srgb, var(--card) 98%, var(--accent-soft) 2%);
}

.newspaper-article:active {
  transform: translateY(-1px) scale(0.99);
  transition: all 0.1s ease;
}

.newspaper-article.article-headline {
  border-top-width: 4px;
  border-top-color: var(--accent);
  padding-top: 24px;
}

.newspaper-article.article-feature {
  grid-column: span 2;
  padding: 28px 24px;
  border-top-width: 5px;
  min-height: auto;
  height: auto;
}

.newspaper-article.article-tall {
  grid-row: span 2;
  padding: 24px 20px;
  min-height: auto;
  height: auto;
}

.newspaper-article.article-medium {
  padding: 22px 18px;
  min-height: auto;
  height: auto;
}

.newspaper-article.article-standard {
  min-height: auto;
  height: auto;
}

.article-image {
  width: 100%;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--accent-soft);
  position: relative;
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.article-image:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.3s ease;
  object-fit: cover;
}

.article-image img.loaded,
.article-image img[src] {
  opacity: 1;
}

.article-image:hover img {
  transform: scale(1.05);
}

.article-feature .article-image {
  margin-bottom: 20px;
  max-height: 400px;
}

.article-feature .article-image img {
  max-height: 400px;
  object-fit: cover;
}

.article-tall .article-image {
  max-height: 250px;
}

.article-tall .article-image img {
  max-height: 250px;
  object-fit: cover;
}

.article-standard .article-image,
.article-medium .article-image {
  max-height: 200px;
}

.article-standard .article-image img,
.article-medium .article-image img {
  max-height: 200px;
  object-fit: cover;
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  /* Allow content to grow naturally */
  height: auto;
}

.article-tall .article-content {
  justify-content: flex-start;
}

.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.article-source {
  font-weight: 700;
  color: var(--accent);
}

.article-bias {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  /* Background and color are set inline via JavaScript based on bias score */
}

.reddit-disclaimer {
  margin-bottom: 8px;
  padding: 6px 10px;
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid rgba(255, 193, 7, 0.5);
  border-radius: 4px;
}

.reddit-disclaimer small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.article-date {
  opacity: 0.7;
}

.article-title {
  font-size: clamp(16px, 3vw, 20px);
  line-height: 1.3;
  margin: 0 0 clamp(8px, 1.5vw, 12px) 0;
  font-weight: 700;
  font-family: "Playfair Display", "Inter", serif;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.article-title:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.article-title:active {
  transform: translateX(1px);
}

.article-headline .article-title {
  font-size: clamp(18px, 3.5vw, 28px);
  line-height: 1.2;
}

.article-feature .article-title {
  font-size: clamp(20px, 4vw, 32px);
  line-height: 1.25;
}

.article-summary {
  line-height: 1.8;
  color: var(--text);
  flex: 1;
  font-size: clamp(13px, 2.2vw, 15px);
  margin: 0 0 clamp(12px, 2vw, 16px) 0;
  text-align: justify;
  transition: color 0.2s ease;
  user-select: text;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  /* No truncation - show full text */
}

.newspaper-article:hover .article-summary {
  color: color-mix(in srgb, var(--text) 95%, var(--accent) 5%);
}

.article-feature .article-summary {
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.75;
}

.article-tall .article-summary {
  flex: 1;
  min-height: auto;
}

.article-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.article-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.article-link:hover {
  gap: 10px;
  color: color-mix(in srgb, var(--accent) 80%, var(--text) 20%);
  transform: translateX(2px);
}

.article-link:active {
  transform: translateX(1px);
}

@media (max-width: 600px) {
  .newspaper-article.article-feature {
    grid-column: span 1 !important;
  }
  
  .newspaper-article.article-tall {
    grid-row: span 1 !important;
  }
  
  .article-feature .article-title {
    font-size: clamp(20px, 4vw, 24px);
  }
  
  .article-headline .article-title {
    font-size: clamp(18px, 3.5vw, 22px);
  }
  
  .newspaper-article {
    padding: clamp(14px, 3vw, 16px) clamp(10px, 2.5vw, 12px);
  }
  
  .article-image {
    margin-bottom: clamp(10px, 2.5vw, 12px);
  }
  
  .article-standard .article-image,
  .article-medium .article-image {
    max-height: clamp(160px, 40vw, 180px);
  }
  
  .article-standard .article-image img,
  .article-medium .article-image img {
    max-height: clamp(160px, 40vw, 180px);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  width: fit-content;
}

.pill-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
  font-size: 15px;
  transition: opacity 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.pill-btn:hover {
  opacity: 0.92;
}

.pill-btn:active {
  transform: scale(0.98);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle input {
  display: none;
}

.slider {
  position: relative;
  width: 46px;
  height: 24px;
  background: var(--border);
  border-radius: 999px;
  transition: background 0.2s;
}

.slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--card);
  border-radius: 50%;
  top: 3px;
  left: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

input:checked + .slider {
  background: var(--accent);
}

input:checked + .slider::after {
  transform: translateX(18px);
}

.toggle-label {
  font-weight: 600;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


.footer {
  border-top: 1px solid var(--border);
  padding: 24px clamp(16px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer a {
  font-weight: 700;
}

.footer-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.empty {
  border: 1px dashed var(--border);
  padding: 20px;
  text-align: center;
  border-radius: 14px;
}

/* Navigation Menu */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  z-index: 1002;
  transform: translateY(-100%);
  transition: transform 0.3s ease-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav-menu.open {
  transform: translateY(0);
}

.nav-menu-content {
  padding: 16px clamp(16px, 4vw, 48px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.nav-menu-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.nav-menu-close {
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-menu-close:hover,
.nav-menu-close:active {
  background: var(--border);
}

.nav-menu-items {
  display: grid;
  gap: 8px;
}

.nav-menu-item {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.nav-menu-item:hover,
.nav-menu-item:active {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateX(4px);
}

.nav-menu-toggle {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-menu-toggle:hover {
  opacity: 0.92;
}

.nav-menu-toggle:active {
  opacity: 0.85;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  backdrop-filter: blur(4px);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 600px) {
  .topbar {
    padding: clamp(10px, 2vw, 12px) clamp(12px, 3vw, 16px);
    min-height: clamp(50px, 10vw, 60px);
  }
  
  .brand h1 {
    font-size: clamp(18px, 4vw, 20px);
  }
  
  .brand-mark {
    width: clamp(32px, 6vw, 36px);
    height: clamp(32px, 6vw, 36px);
    font-size: clamp(12px, 2.5vw, 14px);
  }
  
  .controls-toggle {
    width: clamp(36px, 7vw, 40px);
    height: clamp(36px, 7vw, 40px);
    font-size: clamp(16px, 3.5vw, 18px);
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(6px, 1.5vw, 8px);
  }
  
  .controls-content {
    grid-template-columns: 1fr;
    padding: clamp(12px, 3vw, 16px);
    gap: clamp(10px, 2.5vw, 12px);
  }
  
  .control-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .control-actions .pill-btn,
  .control-actions .toggle,
  .control-actions .nav-menu-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .hero {
    padding: clamp(16px, 4vw, 20px);
    gap: clamp(12px, 3vw, 16px);
    grid-template-columns: 1fr;
  }
  
  .hero-img {
    min-height: clamp(150px, 35vw, 180px);
    order: -1;
  }
  
  .card-image {
    height: clamp(150px, 35vw, 180px);
  }
  
  .card-content {
    padding: clamp(12px, 3vw, 14px);
  }
  
  .nav-menu-content {
    padding: clamp(12px, 3vw, 16px);
  }
  
  .nav-menu-items {
    gap: clamp(4px, 1.5vw, 6px);
  }
  
  .nav-menu-item {
    padding: clamp(10px, 2.5vw, 12px) clamp(12px, 3vw, 14px);
    font-size: clamp(14px, 3vw, 15px);
  }
  
  .layout {
    padding: clamp(16px, 4vw, 20px) clamp(12px, 3vw, 16px) clamp(40px, 8vw, 60px);
  }
  
  .layout::before {
    display: none;
  }
  
  .controls-panel {
    width: min(95vw, 600px);
    max-height: 90vh;
  }
  
  .article-meta {
    font-size: clamp(10px, 2vw, 11px);
    gap: clamp(8px, 2vw, 12px);
    flex-wrap: wrap;
  }
  
  .article-bias {
    font-size: clamp(9px, 1.8vw, 10px);
    padding: clamp(1px, 0.5vw, 2px) clamp(4px, 1.5vw, 6px);
  }
  
  .reddit-disclaimer {
    padding: clamp(4px, 1.5vw, 6px) clamp(8px, 2.5vw, 10px);
  }
  
  .reddit-disclaimer small {
    font-size: clamp(10px, 2vw, 11px);
  }
}
