/* IR Brief - Webflow Export - Shared Styles */
/* Iridium Brand Colors & Variables */
:root {
  --iridium-purple: hsl(300, 60%, 30%);
  --iridium-purple-dark: hsl(290, 65%, 20%);
  --iridium-teal: hsl(174, 100%, 35%);
  --primary: hsl(300, 60%, 30%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(174, 100%, 35%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 15%, 20%);
  --muted: hsl(220, 15%, 96%);
  --muted-foreground: hsl(220, 10%, 50%);
  --border: hsl(220, 15%, 90%);
  --table-header: hsl(0, 0%, 97%);
  --table-row-alt: hsl(0, 0%, 99%);
  --table-border: hsl(220, 15%, 92%);
  --positive: hsl(145, 60%, 40%);
  --negative: hsl(0, 70%, 50%);
}

.ir-brief-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
}

/* Layout */
.ir-brief-page {
  min-height: 100vh;
  background: var(--background);
}

.ir-brief-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .ir-brief-header {
    padding: 1.5rem 2rem;
  }
}

.ir-brief-title {
  font-size: 1.5rem;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

@media (min-width: 1024px) {
  .ir-brief-title {
    font-size: 2.25rem;
  }
}

.ir-brief-title .highlight {
  font-weight: 700;
  color: var(--primary);
}

.ir-brief-meta {
  color: var(--muted-foreground);
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.ir-brief-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ir-brief-logo-text {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .ir-brief-logo-text {
    font-size: 2.25rem;
  }
}

.ir-brief-logo-text strong {
  font-weight: 700;
}

.ir-brief-logo-dots {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.ir-brief-logo-dots-row {
  display: flex;
  gap: 2px;
}

.ir-brief-logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

@media (min-width: 1024px) {
  .ir-brief-logo-dot {
    width: 8px;
    height: 8px;
  }
}

.ir-brief-logo-dot.single {
  margin-left: auto;
}

/* Grid Layout */
.ir-brief-grid {
  display: block;
}

@media (min-width: 1024px) {
  .ir-brief-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
  }
}

.ir-brief-main {
  padding: 1rem;
  border-right: none;
}

@media (min-width: 1024px) {
  .ir-brief-main {
    padding: 2rem;
    border-right: 1px solid var(--border);
  }
}

.ir-brief-sidebar {
  padding: 1rem;
  background: color-mix(in srgb, var(--muted) 20%, transparent);
}

@media (min-width: 1024px) {
  .ir-brief-sidebar {
    padding: 2rem;
  }
}

/* Typography */
.ir-brief-headline {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .ir-brief-headline {
    font-size: 1.875rem;
  }
}

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

.ir-brief-section {
  margin-bottom: 2rem;
}

.ir-brief-section h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ir-brief-section p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

/* Food for Thought */
.food-for-thought {
  background: color-mix(in srgb, var(--muted) 30%, transparent);
  border-radius: 0.5rem;
  overflow: hidden;
}

.food-for-thought-header {
  padding: 0.5rem 0.75rem;
  background: color-mix(in srgb, var(--muted) 50%, transparent);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
}

.food-for-thought-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
}

.food-for-thought-item:last-child {
  border-bottom: none;
}

.food-for-thought-source {
  font-weight: 500;
  color: var(--muted-foreground);
  min-width: 5rem;
}

.food-for-thought-headline {
  flex: 1;
}

/* Tables */
.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* Wider tables need more min-width */
.data-table.markets-table {
  min-width: 650px;
}

.data-table.leaderboard-table {
  min-width: 500px;
}

.data-table th {
  background: var(--table-header);
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  border-bottom: 2px solid color-mix(in srgb, var(--primary) 20%, transparent);
}

.data-table th.text-right {
  text-align: right;
}

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

.data-table td.text-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr:nth-child(even) {
  background: var(--table-row-alt);
}

.data-table .text-positive {
  color: var(--positive);
}

.data-table .text-negative {
  color: var(--negative);
}

/* Chart container - fixed height to prevent Chart.js resize loop */
.chart-container {
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chart-canvas-wrapper {
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  width: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.chart-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.chart-value {
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Footer */
.report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.report-footer .tagline {
  font-weight: 600;
}

.report-footer .link {
  color: var(--secondary);
}

/* Page 2 - Sector/Company tables */
.sector-table,
.company-table,
.macro-table {
  min-width: 450px;
}

.sector-table td:first-child,
.company-table td:first-child {
  font-weight: 600;
  width: 6rem;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .sector-table td:first-child,
  .company-table td:first-child {
    width: 7rem;
  }
  
  .company-table td:first-child {
    width: 8rem;
  }
}

.macro-table td:first-child {
  font-weight: 600;
  width: 6rem;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .macro-table td:first-child {
    width: 7rem;
  }
}

/* About Iridium box */
.about-box {
  background: color-mix(in srgb, var(--muted) 50%, transparent);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.about-box h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-box p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.about-box p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact-section h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.contact-section p {
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

/* Disclaimer */
.disclaimer {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-top: 1rem;
}

.sources {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

