/* Iridium Quant Lens - Webflow Export */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(260, 20%, 20%);
  --muted: hsl(260, 10%, 95%);
  --muted-foreground: hsl(260, 10%, 45%);
  --border: hsl(260, 10%, 90%);
  --accent: hsl(173, 54%, 46%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --iridium-purple-dark: hsl(275, 70%, 12%);
  --iridium-purple: hsl(280, 60%, 18%);
  --iridium-purple-light: hsl(280, 50%, 30%);
  --iridium-teal: hsl(173, 54%, 46%);
  --chart-line: hsl(260, 30%, 35%);
  --card: hsl(0, 0%, 100%);
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
}

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', serif;
}

/* Layout */
.min-h-screen { min-height: 100vh; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-1 { margin-left: 0.25rem; }
.mt-1 { margin-top: 0.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.opacity-30 { opacity: 0.3; }
.overflow-x-auto { overflow-x: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.leading-relaxed { line-height: 1.625; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-t { border-radius: 0.25rem 0.25rem 0 0; }
.rounded-b { border-radius: 0 0 0.25rem 0.25rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-l-4 { border-left: 4px solid var(--accent); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-white { color: white; }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }
.text-destructive { color: var(--destructive); }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.italic { font-style: italic; }

/* Gradients */
.gradient-cover {
  background: linear-gradient(135deg, var(--iridium-purple-dark) 0%, var(--iridium-purple) 50%, hsl(285, 50%, 25%) 100%);
}

.gradient-footer {
  background: linear-gradient(90deg, var(--iridium-purple-dark) 0%, var(--iridium-purple) 100%);
}

/* Components */
.page-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  font-weight: 300;
}

.highlight-box {
  background: hsl(260, 10%, 95%, 0.5);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--accent);
}

.stat-card {
  background: var(--card);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid var(--border);
}

.chart-container {
  background: var(--card);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.data-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 0.75rem;
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.data-table .text-center { text-align: center; }

.toc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(260, 10%, 90%, 0.5);
}

.exhibit-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.exhibit-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

/* Chart heights */
.chart-height-sm { height: 14rem; }
.chart-height-md { height: 16rem; }
.chart-height-lg { height: 20rem; }

@media (min-width: 768px) {
  .chart-height-sm { height: 16rem; }
  .chart-height-md { height: 18rem; }
  .chart-height-lg { height: 20rem; }
  .px-6 { padding-left: 3rem; padding-right: 3rem; }
  .section-title { font-size: 2.25rem; }
  .section-subtitle { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
  .px-6 { padding-left: 5rem; padding-right: 5rem; }
}

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.items-end { align-items: flex-end; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:block { display: block; }
}

/* Sidebar */
.toc-sidebar {
  display: none;
  width: 16rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .toc-sidebar { display: block; width: 16rem; }
}

@media (min-width: 1024px) {
  .toc-sidebar { width: 20rem; }
}

/* Range bar chart */
.range-bar-container {
  position: relative;
  height: 2rem;
}

.range-bar {
  position: absolute;
  height: 1rem;
  background: var(--muted);
  border-radius: 0.25rem;
  top: 0.5rem;
}

.range-dot {
  position: absolute;
  width: 1rem;
  height: 1rem;
  background: var(--iridium-teal);
  border-radius: 9999px;
  top: 0.5rem;
  transform: translateX(-50%);
}

.range-avg {
  position: absolute;
  width: 2px;
  height: 1.5rem;
  background: var(--accent);
  top: 0.25rem;
}

/* Beats chart dots */
.beats-dot { width: 1rem; height: 1rem; border-radius: 9999px; }
.beats-dot-accent { background: var(--accent); }
.beats-dot-muted { background: var(--muted); }
.beats-dot-line { background: var(--chart-line); }

@media (min-width: 768px) {
  .beats-dot { width: 1.25rem; height: 1.25rem; }
}

/* Methodology flow */
.methodology-step { flex: 1; min-width: 0; }
.methodology-step-label { padding: 0.75rem; border-radius: 0.25rem 0.25rem 0 0; font-size: 0.75rem; font-weight: 600; text-align: center; }
.methodology-step-content { background: var(--card); border: 1px solid var(--border); padding: 0.75rem; border-radius: 0 0 0.25rem 0.25rem; height: 7rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.methodology-step-label.teal { background: var(--iridium-teal); color: white; }
.methodology-step-label.muted { background: var(--muted); color: var(--foreground); }

/* Table styling */
.bg-iridium-purple-5 { background: hsl(280, 60%, 18%, 0.05); }
.bg-iridium-teal-10 { background: hsl(173, 54%, 46%, 0.1); }
.bg-iridium-teal-20 { background: hsl(173, 54%, 46%, 0.2); }
.border-b-2 { border-bottom-width: 2px; }
.border-b-accent { border-bottom-color: var(--accent); }
.border-b-muted { border-bottom-color: var(--muted-foreground); }

/* White text with opacity */
.text-white-80 { color: rgba(255, 255, 255, 0.8); }
.text-white-60 { color: rgba(255, 255, 255, 0.6); }
.text-white-50 { color: rgba(255, 255, 255, 0.5); }
.text-white-70 { color: rgba(255, 255, 255, 0.7); }

/* Min widths */
.min-w-600 { min-width: 600px; }
.min-w-800 { min-width: 800px; }

/* Hidden/visible */
.hidden { display: none; }
@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-1\/2 { width: 50%; }
}

/* Aspect ratio */
.aspect-square { aspect-ratio: 1 / 1; }
.max-w-md { max-width: 28rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Hover */
a:hover { text-decoration: underline; }
