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

:root {
  --navy: #0A1628;
  --slate: #1E293B;
  --ocean: #0369A1;
  --sky: #38BDF8;
  --amber: #F59E0B;
  --rust: #DC2626;
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --text-primary: #1A1D23;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--bg);
  color: #1a1a1a;
  line-height: 1.7;
  font-size: 17px;
}

/* ── Header ───────────────────────────────────────────────────────── */
.header {
  background: var(--navy);
  color: white;
  padding: 8px 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-sep {
  width: 2px;
  height: 28px;
  background: var(--amber);
  opacity: 0.6;
}

.logo-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
  opacity: 0.8;
  font-weight: 500;
}

/* ── Navigation ───────────────────────────────────────────────────── */
.nav {
  width: 100%;
  z-index: 99;
}

.nav-container {
  background: #f0f1f3;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
}

.nav-groups {
  display: flex;
  align-items: flex-end;
  max-width: 1100px;
  width: 100%;
  gap: 32px;
  padding: 12px 1rem;
}

.nav-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.nav-column:last-child { border-right: none; }

.group-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 2px;
  font-weight: 500;
  white-space: nowrap;
}

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

.link-row a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.link-row a:hover {
  background: var(--ocean);
  color: white;
}

.link-row a.active {
  background: var(--ocean);
  color: white;
  font-weight: 700;
}

/* ── Main Content ─────────────────────────────────────────────────── */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem 2.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.main { animation: fadeIn 0.3s ease-in; }

/* ── Typography ───────────────────────────────────────────────────── */
.page-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.page-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
  margin-bottom: 0.75rem;
}

.page-desc:last-of-type {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}

/* ── Cards ────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card-body {
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-body p { margin-bottom: 1rem; }
.card-body p:last-child { margin-bottom: 0; }

/* ── Stats Grid ───────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.stat-card {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 16px;
  transition: all 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column-reverse;
  min-height: 90px;
  justify-content: center;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.stat-value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a5276;
}

.stat-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

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

/* ── Callout Boxes ────────────────────────────────────────────────── */
.callout {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid;
  margin: 1.5rem 0;
  line-height: 1.7;
  border-radius: 0 4px 4px 0;
}

.callout-info {
  background: rgba(3, 105, 161, 0.05);
  border-color: var(--ocean);
  color: var(--text-primary);
}

.callout-warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: var(--amber);
}

.callout-critical {
  background: rgba(220, 38, 38, 0.05);
  border-color: var(--rust);
}

.callout-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.callout-info .callout-label { color: var(--ocean); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.benefits-grid .callout {
  margin: 0;
  border-left: none;
  border-top: 4px solid;
  border-radius: 8px;
}

@media (max-width: 968px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

.callout-next {
  margin: 1rem 0 2rem;
}
.callout-warning .callout-label { color: var(--amber); }
.callout-critical .callout-label { color: var(--rust); }

/* ── Next Page Button ────────────────────────────────────────────── */
.next-page-btn {
  display: block;
  margin: 2rem 0;
  padding: 0.75rem 1.5rem;
  background: var(--ocean);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: background 0.2s;
}
.next-page-btn:hover {
  background: #025e8c;
}
.next-page-btn .next-label {
  font-weight: 700;
  margin-right: 0.5rem;
}
.next-page-btn .next-desc {
  font-weight: 400;
  opacity: 0.9;
}

/* ── Chart Container ──────────────────────────────────────────────── */
.chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.chart-header { margin-bottom: 1.5rem; }

.chart-title {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.chart-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.chart-canvas { max-height: 400px; }

.chart-annotation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ── Controls ─────────────────────────────────────────────────────── */
.controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.control-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.control-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: white;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
  font-family: inherit;
}

.control-btn:not(:last-child) {
  border-right: 1px solid var(--border);
}

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

.control-btn.active {
  background: var(--ocean);
  color: white;
}

/* ── Stepper ──────────────────────────────────────────────────────── */
.stepper {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.step {
  flex: 1;
  min-width: 200px;
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.step::before {
  content: attr(data-step);
  position: absolute;
  top: -12px;
  left: 1rem;
  background: white;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.step:hover { border-color: var(--ocean); }

.step.active {
  border-color: var(--ocean);
  border-width: 3px;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.15);
}

.step.active::before { color: var(--ocean); }

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

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Model Cards ──────────────────────────────────────────────────── */
.model-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.model-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.model-card:hover {
  border-color: var(--ocean);
  transform: translateY(-2px);
}

.model-card.selected {
  border-color: var(--ocean);
  border-width: 3px;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.15);
}

.model-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.model-card p { font-size: 0.8rem; color: var(--text-secondary); margin: 0.15rem 0; }

/* ── Topic Rows ───────────────────────────────────────────────────── */
.topic-row {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.topic-row:last-child { border-bottom: none; }

.topic-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ── Comparison Grid ──────────────────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.comparison-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid;
  border-radius: 8px;
  padding: 1.5rem;
}

.comparison-panel:first-child { border-left-color: var(--rust); }
.comparison-panel:last-child { border-left-color: var(--ocean); }

.comparison-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.comparison-panel:first-child .comparison-label { color: var(--rust); }
.comparison-panel:last-child .comparison-label { color: var(--ocean); }

.comparison-summary {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(3, 105, 161, 0.05);
  border-left: 4px solid var(--ocean);
  border-radius: 4px;
}

.comparison-summary strong { color: var(--ocean); }

/* ── RAG Dual Panel ───────────────────────────────────────────────── */
.rag-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.rag-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.rag-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 3px solid;
  font-weight: 700;
  font-size: 1rem;
}

.rag-panel:first-child .rag-header {
  background: rgba(3, 105, 161, 0.05);
  border-color: var(--ocean);
  color: var(--ocean);
}

.rag-panel:last-child .rag-header {
  background: rgba(245, 158, 11, 0.05);
  border-color: var(--amber);
  color: var(--amber);
}

.rag-body {
  padding: 1.5rem;
  min-height: 300px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.rag-body h2 { font-size: 1rem; margin: 1.25rem 0 0.5rem; color: var(--text-primary); }
.rag-body p { margin-bottom: 0.75rem; }

.rag-meta {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rag-meta p { margin: 0.25rem 0; }

.rag-input-container { margin-bottom: 2rem; }

.rag-select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
  color: var(--text-primary);
}

.rag-select:focus {
  outline: none;
  border-color: var(--ocean);
}

/* ── Event Banner ─────────────────────────────────────────────────── */
.event-banner {
  background: var(--navy);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Data Table ───────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th, .data-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--bg);
  font-weight: 600;
  position: sticky;
  top: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.data-table tr:hover { background: var(--bg); }

/* ── Model Description Card ────────────────────────────────────────── */
.model-desc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ocean);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 1rem 0 2rem;
}

.model-desc-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* ── Model Overview Card ───────────────────────────────────────────── */
.model-overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr auto 2fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.model-overview-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.model-overview-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean);
  margin-bottom: 0.75rem;
}

.model-overview-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.variation-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.variation-item {
  padding-left: 1rem;
  border-left: 3px solid var(--ocean);
}

.variation-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.variation-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 968px) {
  .model-overview-card {
    grid-template-columns: 1fr;
  }
  .model-overview-divider {
    width: 100%;
    height: 1px;
  }
}

/* ── Accordion ─────────────────────────────────────────────────────── */
.accordion {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.accordion-toggle {
  padding: 1rem 1.5rem;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ocean);
  transition: background 0.2s;
}

.accordion-toggle:hover {
  background: rgba(3, 105, 161, 0.04);
}

.accordion-toggle::-webkit-details-marker { display: none; }

.accordion-toggle::after {
  content: '▸';
  font-size: 1rem;
  color: var(--ocean);
  transition: transform 0.2s;
}

.accordion[open] .accordion-toggle::after {
  transform: rotate(90deg);
}

.accordion[open] .pipeline-grid {
  padding: 0 1.5rem 1.5rem;
}

/* ── Pipeline Grid ─────────────────────────────────────────────────── */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.pipeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all 0.2s;
}

.pipeline-card:hover {
  border-color: var(--ocean);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.1);
}

.pipeline-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-family: inherit;
  font-weight: 400;
  font-size: 1.1rem;
}

.pipeline-content { flex: 1; }

.pipeline-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.pipeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.pipeline-insight {
  font-size: 0.85rem;
  color: var(--ocean);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 968px) {
  .pipeline-grid { grid-template-columns: 1fr; }
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ocean);
  border-top: 2px solid var(--border);
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* ── Prototype Banner ──────────────────────────────────────────────── */
.prototype-banner {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fef3cd;
  color: #856404;
  text-align: center;
  padding: 6px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  width: fit-content;
  margin: 8px auto;
  border-radius: 4px;
  border: 1px solid #ffeeba;
}

/* ── Feedback ──────────────────────────────────────────────────────── */
.feedback-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ocean);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
  transition: all 0.2s;
  z-index: 200;
}

.feedback-btn:hover {
  background: #0284C7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(3, 105, 161, 0.4);
}

.feedback-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.feedback-box {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feedback-box h3 {
  font-family: inherit;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feedback-box textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.2s;
}

.feedback-box textarea:focus {
  outline: none;
  border-color: var(--ocean);
}

.feedback-submit {
  padding: 0.6rem 1.5rem;
  background: var(--ocean);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.feedback-submit:hover { background: #0284C7; }

.feedback-cancel {
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.feedback-cancel:hover { background: var(--bg); }

/* ── Hidden ────────────────────────────────────────────────────────── */
.hidden { display: none; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 968px) {
  .rag-container, .compare-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 1.5rem; }
  .main { padding: 1.5rem 1rem; }
  .stepper { flex-direction: column; }

  /* Nav scrolls horizontally on small screens */
  .nav-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-container::-webkit-scrollbar { display: none; }

  /* Topics layout stacks */
  .topics-layout { grid-template-columns: 1fr; }
  .topics-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .filter-buttons { flex-direction: row; flex-wrap: wrap; }

  /* Trends layout stacks */
  .trends-layout { grid-template-columns: 1fr; }
  .trends-legend {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
  }
}
