/* Insights – tiny shared stylesheet (no frameworks) */
/* Place at: /public/insights/insights.css */

/* CSS reset-ish */
* { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

/* Design tokens */
:root{
  --bg: #ffffff;
  --text: #0e1116;
  --muted: #5d6b7a;
  --border: #e5eaf0;
  --brand: #0a66c2; /* LinkedIn blue-ish, looks professional */
  --accent: #13315c;
  --card-bg: #ffffff;
  --card-hover: #0a66c20f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,0.06), 0 8px 24px rgba(16,24,40,0.06);

  --font-sans: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --maxw: 1120px;

  --fs-xxs: 12px;
  --fs-xs: 14px;
  --fs-sm: 15px;
  --fs-md: 17px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
}

/* Base */
body{
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: var(--fs-md);
}

.container{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
}

/* Use global site header styles from /styles.css */

.site-title{
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
  margin: 0;
}

.site-subtitle{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* Breadcrumb */
.breadcrumb{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 8px 0 0;
}
.breadcrumb a{
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover{ text-decoration: underline; }

/* Cards grid (index) */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.card:hover{
  background: var(--card-hover);
  transform: translateY(-1px);
}
.card a{
  color: inherit;
  text-decoration: none;
  display: block;
}
.card-title{
  font-size: var(--fs-lg);
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.card-meta{
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--fs-xs);
}
.card-desc{
  margin: 0;
  color: #273448;
  font-size: var(--fs-sm);
}

/* Article */
.article{
  max-width: 820px;
  margin: 24px auto 56px;
}
.article header h1{
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 8px;
}
.byline{
  color: var(--muted);
  font-size: var(--fs-xs);
  margin: 0 0 18px;
}
.intro{
  font-size: var(--fs-lg);
  color: #1a2433;
  margin: 16px 0 18px;
}

/* Key Takeaways */
.takeaways{
  border: 1px solid var(--border);
  background: #f9fbff;
  border-radius: var(--radius);
  padding: 16px;
  margin: 18px 0 6px;
}
.takeaways h2{
  font-size: var(--fs-md);
  margin: 0 0 8px;
}
.takeaways ul{
  margin: 0;
  padding-left: 18px;
}

/* Figures */
.figure{
  margin: 20px 0;
}
.figure img{
  border: 1px solid var(--border);
  border-radius: 10px;
}
.figure figcaption{
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 8px;
}

/* CTA + footer note */
.cta{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 24px 0;
  background: #f7fafc;
}
.cta a{
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.cta a:hover{ text-decoration: underline; }

.source-note{
  color: var(--muted);
  font-size: var(--fs-xs);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 28px;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 18px 0;
  color: var(--muted);
  font-size: var(--fs-xs);
}

/* Responsiveness helpers */
@media (min-width: 900px){
  .container{ padding: 32px; }
}

/* Ensure header text is visible on navy bar (match homepage) */
.site-header .brand-name { color: #ffffff; }
.site-header .menu a { color: #ffffff; }
