/* Instagram Growth Research — Shared Styles */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.page { max-width: 1000px; margin: 0 auto; padding: 60px 24px 80px; }
.page--narrow { max-width: 900px; }

/* Navigation */
.nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: #999;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.nav a { color: #999; text-decoration: none; }
.nav a:hover { color: #1a1a1a; }
.nav .current { color: #1a1a1a; font-weight: 600; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 24px; }
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: #1a1a1a; }

/* Typography */
h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 8px; }
h2 { font-size: 20px; font-weight: 600; margin-top: 48px; margin-bottom: 16px; }
h3 { font-size: 16px; font-weight: 600; margin-top: 32px; margin-bottom: 12px; }
p { font-size: 15px; margin-bottom: 16px; }
.subtitle { font-size: 16px; color: #666; margin-bottom: 32px; }

/* Links */
a { color: #4a7aff; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #4a7aff; }

/* Card Grid */
.grid { display: grid; gap: 16px; margin-bottom: 32px; }
.grid--large { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--medium { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.grid--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

/* Cards */
.card {
  display: block;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); text-decoration: none; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.card-desc { font-size: 14px; color: #666; margin-bottom: 12px; }
.card-meta { font-size: 12px; color: #999; }

.card--compact { padding: 16px; }
.card--compact .card-title { font-size: 14px; margin-bottom: 4px; }
.card--compact .card-desc { font-size: 13px; margin-bottom: 0; }

/* Tier Labels */
.tier-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 4px;
}
.tier-desc { font-size: 14px; color: #666; margin-bottom: 16px; }

/* Key Stat Callout */
.stat-callout {
  background: #f0f4ff;
  border-left: 3px solid #4a7aff;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
}
.stat-callout .stat-number { font-size: 24px; font-weight: 600; }
.stat-callout .stat-context { font-size: 14px; color: #666; margin-top: 4px; }
.stat-callout .stat-source { color: #999; }

/* Relevance Box */
.relevance {
  background: #f7f7f5;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
}
.relevance-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 8px;
}
.relevance p { font-size: 15px; color: #444; margin-bottom: 0; }

/* Open Questions Box */
.open-questions {
  background: #fffbeb;
  border-left: 3px solid #d97706;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.open-questions-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #92400e;
  margin-bottom: 8px;
}
.open-questions ul { padding-left: 20px; font-size: 14px; color: #444; }
.open-questions li { margin-bottom: 6px; }
.open-questions .tag { font-size: 12px; color: #92400e; font-style: italic; }

/* Evidence List */
.evidence { padding-left: 20px; margin-bottom: 24px; }
.evidence li { font-size: 15px; line-height: 1.8; margin-bottom: 4px; }
.evidence sup { font-size: 11px; color: #999; }

/* Execution Steps */
.steps { padding-left: 20px; margin-bottom: 24px; }
.steps li { font-size: 15px; line-height: 1.8; margin-bottom: 4px; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 24px; }
th {
  background: #f7f7f5;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #e5e5e5;
}
td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
td:first-child { font-weight: 500; }

/* Related Links */
.related {
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
  margin-top: 48px;
  margin-bottom: 24px;
}
.related-label { font-size: 13px; color: #999; margin-bottom: 8px; }
.related-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }

/* Citations */
.citations {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}
.citations a { color: #999; }
.citations div { margin-bottom: 2px; }

/* Inline citation superscript */
sup a { color: #999; text-decoration: none; font-size: 11px; }
sup a:hover { color: #4a7aff; }

/* Opportunity callout (dashboard) */
.opportunity {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
}
.opportunity-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #166534;
  margin-bottom: 8px;
}

/* Key numbers grid (dashboard) */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.number-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.number-card .num { font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.number-card .label { font-size: 13px; color: #666; }
.number-card .source { font-size: 11px; color: #999; margin-top: 4px; }

/* Compact list (Tier 3) */
.compact-list { font-size: 14px; color: #444; line-height: 2.2; }
.compact-list span { margin-right: 8px; }
.compact-list .stat { color: #999; font-size: 12px; }

/* Responsive */
@media (max-width: 600px) {
  .page { padding: 32px 16px 48px; }
  h1 { font-size: 24px; }
  .nav { gap: 16px; }
  .grid--large,
  .grid--medium,
  .grid--compact,
  .numbers-grid { grid-template-columns: 1fr; }
  .related-links { flex-direction: column; gap: 8px; }
}
