/* ========================================
   CYA Aviation — Article stylesheet
   Used on /insights/ pages
   Loaded alongside main style.css
   Uses shared CSS variables from style.css
   ======================================== */

/* Nav override for content pages
   On the homepage, the nav sits transparent over the hero video and gets a
   solid background only when scrolled (via JS adding .scrolled class).
   On article/hub pages there's no hero, so the nav needs to be solid
   from the start — otherwise content shows through and collides with the
   breadcrumb and title. Target only pages that add body.content-page. */
body.content-page nav#navbar .nav-inner {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(10,22,40,0.08);
  border-radius: 999px;
}
body.content-page .nav-toggle span {
  background: var(--ink);
}

/* Explicit hover states on content pages — more visible than a color-only
   subtle change. Adds underline via border-bottom so hover is obvious. */
body.content-page nav#navbar .nav-links a:hover {
  color: var(--azure);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
body.content-page nav#navbar .nav-links a.nav-cta:hover {
  color: var(--ink);
  background: var(--gold-light);
  text-decoration: none;
}
.article-breadcrumb a:hover {
  color: var(--azure) !important;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.article {
  padding: 8rem 4vw 4rem;
  background: var(--white);
}

.article-container {
  max-width: 780px;
  margin: 0 auto;
}

/* ── Breadcrumb ── */
.article-breadcrumb {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.article-breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.article-breadcrumb a:hover {
  color: var(--azure);
}
.article-breadcrumb .sep {
  color: var(--mid-gray);
  font-weight: 400;
}
.article-breadcrumb .current {
  color: var(--ink);
  font-weight: 500;
}

/* ── Header ── */
.article-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--mid-gray);
}
.article-kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 1.5rem;
}
.article-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.article-subtitle {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 2rem;
}
.article-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-muted);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.article-meta .dot {
  color: var(--mid-gray);
  font-weight: 400;
}

/* ── Body ── */
.article-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.article-body p {
  margin: 0 0 1.5rem;
}
.article-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 2rem !important;
  font-weight: 400;
}
.article-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.85rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 3.5rem 0 1.25rem;
  letter-spacing: -0.005em;
}
.article-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
}
.article-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.article-body ul li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  position: relative;
  line-height: 1.75;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.75rem;
  height: 1px;
  background: var(--gold);
}
.article-body ul li strong {
  color: var(--ink);
  font-weight: 600;
}
.article-body strong {
  color: var(--ink);
  font-weight: 600;
}
.article-body a {
  color: var(--azure);
  text-decoration: none;
  border-bottom: 1px solid rgba(2, 132, 199, 0.3);
  transition: border-color 0.2s;
}
.article-body a:hover {
  border-bottom-color: var(--azure);
}

/* ── CTA aside ── */
.article-cta {
  margin: 5rem 0 0;
  background: var(--off-white);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  border-left: 3px solid var(--gold);
}
.article-cta-inner {
  max-width: 620px;
}
.article-cta h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
.article-cta p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}
.article-cta-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}
.article-cta-btn:hover {
  background: var(--ink-soft);
  border: none;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .article {
    padding: 7rem 5vw 3rem;
  }
  .article-title {
    font-size: 2.1rem;
  }
  .article-subtitle {
    font-size: 1.15rem;
  }
  .article-lead {
    font-size: 1.1rem;
  }
  .article-body {
    font-size: 1rem;
  }
  .article-body h2 {
    font-size: 1.55rem;
    margin: 2.75rem 0 1rem;
  }
  .article-cta {
    padding: 2.25rem 1.75rem;
  }
  .article-cta h3 {
    font-size: 1.45rem;
  }
}

/* ========================================
   Hub / Insights index page styles
   ======================================== */

.hub {
  padding: 8rem 4vw 5rem;
  background: var(--white);
}
.hub-container {
  max-width: 980px;
  margin: 0 auto;
}
.hub-header {
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--mid-gray);
  max-width: 780px;
}
.hub-kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 1.25rem;
}
.hub-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.85rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.hub-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* ── Article cards ── */
.hub-articles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.hub-card {
  display: block;
  background: var(--off-white);
  border-radius: 4px;
  padding: 3rem 3rem 2.75rem;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid var(--gold);
  transition: background 0.25s, transform 0.25s;
}
.hub-card:hover {
  background: var(--light-gray);
  transform: translateY(-2px);
}
.hub-card.featured {
  padding: 3.5rem 3.5rem 3rem;
}
.hub-card-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hub-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}
.hub-card-subtitle {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  line-height: 1.35;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.hub-card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hub-card-meta .dot {
  color: var(--mid-gray);
}
.hub-card-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}
.hub-card-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--azure);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.25s;
}
.hub-card:hover .hub-card-cta {
  gap: 0.65rem;
}
.hub-card-cta .arrow {
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Hub mobile ── */
@media (max-width: 900px) {
  .hub {
    padding: 7rem 5vw 3rem;
  }
  .hub-title {
    font-size: 2.1rem;
  }
  .hub-lead {
    font-size: 1.05rem;
  }
  .hub-card,
  .hub-card.featured {
    padding: 2rem 1.75rem 1.75rem;
  }
  .hub-card-title {
    font-size: 1.55rem;
  }
  .hub-card-subtitle {
    font-size: 1rem;
  }
}
