/* ============================================================
   INSIGHTS HUB — Layout-only styles
   Inherits all tokens, nav, footer, buttons from styles.css
   ============================================================ */

/* Newsreader loaded in <head> — not via @import (which blocks the whole stylesheet) */
:root {
  --font-body: 'Newsreader', 'DM Sans', Georgia, serif;
}

/* Editorial feel on the hub subtitle */
.page-header .page-meta {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
}

/* ============ MASTHEAD UPGRADE ============
   Three-beat masthead matching Principal page register:
   eyebrow -> H1 -> italic tagline. Positions Insights as a
   proper publication, not just a blog.
   ============================================================ */
.insights-masthead {
  padding-bottom: 48px;
}
.insights-eyebrow {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
@media (min-width: 720px) {
  .insights-eyebrow { font-size: 12px; letter-spacing: 2.5px; margin-bottom: 24px; }
}

/* ============ TRANSITIONAL RULE ============
   Thin centred teal line replacing the default border-top between
   magazine and recent sections. Matches the .prn-rule on Principal
   and .article-rule on articles.
   ============================================================ */
.insights-rule {
  border: 0;
  height: 1px;
  background: rgba(143, 163, 176, 0.15);
  max-width: 120px;
  margin: 16px auto 48px;
}
@media (min-width: 720px) {
  .insights-rule { margin: 24px auto 64px; }
}

/* ============ MAGAZINE LAYOUT ============ */
/* 3 columns: left cards / centre hero / right sidebar */
.magazine {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 48px 40px;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 40px;
}

/* Prevent grid blowout on any viewport */
.mag-left, .mag-centre, .mag-right { min-width: 0; overflow: hidden; }

/* Left column: two stacked cards */
.mag-left { display: flex; flex-direction: column; gap: 32px; }
.mag-left-card { display: block; text-decoration: none; color: inherit; }
.mag-left-card:hover .mag-left-title { color: var(--teal); }
.mag-left-img {
  width: 100%; height: 180px; border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 12px;
}
.mag-left-img img { width: 100%; height: 100%; object-fit: cover; }
.mag-left-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 400;
  line-height: 1.3; margin-bottom: 6px; transition: color var(--transition);
}
.mag-left-excerpt {
  font-family: var(--font-body); font-size: 14px; color: var(--text-muted);
  font-weight: 300; line-height: 1.55; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: break-word; word-wrap: break-word;
}
.mag-left-meta {
  font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.4px;
}

/* Centre hero */
.mag-centre { display: block; text-decoration: none; color: inherit; }
.mag-centre:hover .mag-hero-title { color: var(--teal); }
.mag-hero-img {
  width: 100%; height: 400px; border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 24px;
}
.mag-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.mag-hero-title {
  font-family: var(--font-serif); font-size: 28px; font-weight: 400;
  line-height: 1.25; margin-bottom: 12px; text-align: center; transition: color var(--transition);
}
.mag-hero-excerpt {
  font-family: var(--font-body); font-size: 17px; color: var(--text-secondary);
  font-weight: 300; line-height: 1.55; text-align: center; margin-bottom: 12px;
  overflow-wrap: break-word; word-wrap: break-word;
}
.mag-hero-meta {
  font-size: 12px; color: var(--text-dim); text-align: center;
  text-transform: uppercase; letter-spacing: 0.4px;
}

/* Right sidebar: Most Popular */
.mag-sidebar-title {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.mag-sidebar-list { display: flex; flex-direction: column; gap: 24px; }
.mag-sidebar-item {
  display: flex; gap: 12px; align-items: flex-start;
  text-decoration: none; color: inherit;
}
.mag-sidebar-item:hover .sidebar-item-title { color: var(--teal); }
.sidebar-item-text { flex: 1; min-width: 0; }
.sidebar-item-title {
  font-size: 14px; font-weight: 500; line-height: 1.35;
  margin-bottom: 4px; transition: color var(--transition);
}
.sidebar-item-meta {
  font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.3px;
}
.sidebar-item-thumb {
  width: 64px; height: 64px; border-radius: var(--radius);
  overflow: hidden; flex-shrink: 0;
}
.sidebar-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============ RECENT POSTS GRID ============ */
.recent-section {
  max-width: var(--max-width); margin: 0 auto; padding: 0 48px 40px;
}
.recent-section h2 {
  font-family: var(--font-serif); font-size: 22px; font-weight: 400; margin-bottom: 32px;
}
.recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.recent-card { display: block; text-decoration: none; color: inherit; }
.recent-card:hover .recent-card-title { color: var(--teal); }
.recent-card-img {
  width: 100%; height: 180px; border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 16px;
}
.recent-card-img img { width: 100%; height: 100%; object-fit: cover; }
.recent-card-title {
  font-family: var(--font-serif); font-size: 16px; font-weight: 400;
  line-height: 1.3; margin-bottom: 6px; transition: color var(--transition);
}
.recent-card-meta {
  font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.4px;
}

/* ============ CTA BLOCK ============ */
.insights-cta {
  max-width: 720px; margin: 60px auto 96px; padding: 0 48px;
}
.insights-cta-inner {
  background: var(--dark-deeper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.insights-cta-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--teal); margin-bottom: 16px; font-weight: 600;
}
.insights-cta-inner h3 {
  font-family: var(--font-serif); font-size: 24px; font-weight: 400; margin-bottom: 12px;
}
.insights-cta-sub {
  font-size: 14px; color: var(--text-muted); font-weight: 300; margin-bottom: 24px;
}
.insights-cta-btn {
  display: inline-block; background: var(--teal); color: var(--dark);
  padding: 14px 32px; border-radius: var(--radius); font-weight: 600;
  font-size: 14px; transition: background var(--transition);
}
.insights-cta-btn:hover { background: var(--teal-hover); color: var(--dark); }

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .magazine { grid-template-columns: 1fr; padding: 40px 20px 0; gap: 36px; }
  /* Prevent grid children from overflowing viewport */
  .mag-left, .mag-centre, .mag-right { min-width: 0; }
  .mag-right { overflow: hidden; }
  /* Hero first, left cards second, sidebar last */
  .mag-centre { order: -1; }
  .mag-left   { order: 0; }
  .mag-right  { order: 1; }
  .mag-sidebar-list {
    flex-direction: row; overflow-x: auto; gap: 16px; padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .mag-sidebar-item { flex-shrink: 0; width: 200px; }
  .mag-hero-img { height: 280px; }
  .recent-grid { grid-template-columns: 1fr; }
  .recent-section { padding: 16px 20px 32px; }
  .insights-cta { padding: 0 20px; margin-top: 36px; margin-bottom: 64px; }
  .insights-cta-inner { padding: 40px 24px; }
}
@media (max-width: 600px) {
  .magazine { padding: 32px 16px 0; gap: 28px; }
  .mag-hero-img { height: 220px; }
  .mag-hero-title { font-size: 22px; }
  .mag-hero-excerpt { font-size: 15px; }
  .mag-left-img { height: 140px; }
  .recent-section { padding: 12px 16px 28px; }
  .insights-cta { padding: 0 16px; }
  .insights-cta-inner { padding: 32px 20px; }
  .insights-cta-inner h3 { font-size: 20px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .recent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .magazine { grid-template-columns: 240px 1fr 240px; gap: 24px; }
}

/* ============================================================
   INSIGHTS HUB — ADDITIONS (Nov 2026)
   Editorial framing, category badges, secondary CTA, subscribe
   ============================================================ */

/* ---- Editorial framing paragraph (above magazine) ---- */
.insights-intro {
  max-width: 780px;
  margin: 8px auto 0;
  padding: 0 24px;
  text-align: center;
  font-family: 'Newsreader', serif;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.55;
  color: var(--text-primary, #e8e6e1);
  font-weight: 300;
}
.insights-intro em {
  color: var(--teal, #4A9B9B);
  font-style: italic;
}
@media (min-width: 720px) {
  .insights-intro { padding: 0 32px; margin-top: 12px; }
}

/* ---- Category badges (currently hidden; flip display to restore) ---- */
.mag-cat,
.mag-hero-cat-wrap,
.mag-left-cat-wrap,
.recent-card-cat-wrap {
  display: none;
}
.mag-cat {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  line-height: 1.3;
}
.mag-cat-thesis   { background: rgba(74, 155, 155, 0.15);  color: #6CBBBB; border: 1px solid rgba(74, 155, 155, 0.3); }
.mag-cat-analysis { background: rgba(217, 168, 78, 0.12);  color: #E5B760; border: 1px solid rgba(217, 168, 78, 0.28); }
.mag-cat-note     { background: rgba(148, 170, 185, 0.1); color: #94aab9; border: 1px solid rgba(148, 170, 185, 0.25); }

/* ---- Sidebar rename "Featured" (was Most Popular) styled as-is, no change here ---- */

/* ---- In-sidebar secondary CTA ---- */
.mag-sidebar-cta {
  margin-top: 28px;
  padding: 20px 18px;
  background: rgba(74, 155, 155, 0.06);
  border: 1px solid rgba(74, 155, 155, 0.22);
  border-radius: var(--radius, 6px);
}
.mag-sidebar-cta-label {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal, #4A9B9B);
  margin: 0 0 8px;
}
.mag-sidebar-cta-title {
  font-family: "DM Serif Display", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary, #e8e6e1);
  margin: 0 0 10px;
}
.mag-sidebar-cta-body {
  font-family: "Newsreader", serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted, #94aab9);
  margin: 0 0 14px;
  font-weight: 300;
}
.mag-sidebar-cta-btn {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--teal, #4A9B9B);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(74, 155, 155, 0.35);
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}
.mag-sidebar-cta-btn:hover {
  background: rgba(74, 155, 155, 0.08);
  border-color: var(--teal, #4A9B9B);
}
@media (max-width: 900px) {
  .mag-sidebar-cta { display: none; }
}

/* ---- Subscribe / Follow block (quieter inline strip) ---- */
.insights-subscribe {
  max-width: var(--max-width);
  margin: 64px auto 0;
  padding: 0 48px;
  box-sizing: border-box;
}
.insights-subscribe-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 24px;
  text-align: center;
  border-top: 1px solid rgba(143, 163, 176, 0.12);
}
.insights-subscribe-label {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal, #4A9B9B);
  margin: 0 0 12px;
}
.insights-subscribe h3 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(19px, 3vw, 22px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary, #e8e6e1);
  margin: 0 0 8px;
}
.insights-subscribe p {
  font-family: "Newsreader", serif;
  font-size: clamp(14px, 2vw, 15px);
  line-height: 1.55;
  color: var(--text-muted, #94aab9);
  font-weight: 300;
  margin: 0 auto 20px;
  max-width: 520px;
}
.insights-subscribe-links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.insights-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.insights-subscribe-btn-primary {
  background: transparent;
  color: var(--teal, #4A9B9B);
  border: 1px solid var(--teal, #4A9B9B);
}
.insights-subscribe-btn-primary:hover {
  background: rgba(74, 155, 155, 0.08);
}
.insights-subscribe-btn-ghost {
  background: transparent;
  color: var(--text-muted, #94aab9);
  border: 1px solid rgba(143, 163, 176, 0.25);
}
.insights-subscribe-btn-ghost:hover {
  border-color: var(--teal, #4A9B9B);
  color: var(--teal, #4A9B9B);
}
@media (max-width: 600px) {
  .insights-subscribe { padding: 0 24px; margin-top: 48px; }
  .insights-subscribe-inner { padding: 32px 0 20px; }
}

/* ---- Fine-tune hero meta spacing when category badge present ---- */
.mag-hero-title { margin-top: 0; }
