/* ── Local token bridge — insights page only ── */
:root {
  --clr-primary:       #1A4B8C;
  --clr-primary-dark:  #0F2E5C;
  --clr-primary-xlight:#E8F0F8;
  --clr-accent:        #0E7B82;
  --clr-accent-dark:   #064146;
  --clr-bg:            #F5F7FA;
  --clr-border:        #C8D8E8;
  --clr-border-light:  #E8F0F8;
  --clr-text-dark:     #0E1530;
  --clr-text-medium:   #555B6E;
  --radius-md:         8px;
  --radius-full:       9999px;
  --transition-base:   200ms cubic-bezier(0.4,0,0.2,1);
  --transition-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --shadow-md:         0 8px 24px rgba(14,21,48,0.08);
  --gradient-hero:     linear-gradient(135deg, #0a1628 0%, #1a4b8c 60%, #0e7b82 100%);
  --hero-bg:           #0a1628;
  --grad-hero:         linear-gradient(135deg, #0a1628 0%, #1a4b8c 60%, #0e7b82 100%);
}
\n/* ============================================================
   Datasolix — Insights Styles
   Covers: list page (hero, featured post, grid) +
           detail page (hero, cover, prose, share, related)
   Depends on: main.css (design tokens + base utilities)
   ============================================================ */

:root {
  --navy: #0A1628;
  --navy-mid: #1A2E55;
  --navy-end: #0E3060;
  --blue: #1A4B8C;
  --blue-dark: #0F3468;
  --blue-mid: #2D6AB5;
  --blue-xl: #E8F0F8;
  --teal: #0E7B82;
  --teal-dark: #085F65;
  --teal-glow: #7ECFCF;
  --grad-brand: linear-gradient(135deg, #1A56DB 0%, #6C3AE5 100%);
  --grad-hero: linear-gradient(145deg, #0A1628 0%, #1A2E55 42%, #0E3060 100%);
  --sans: 'Plus Jakarta Sans', sans-serif;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: 24px;
}

.hero-grid-pattern,
.hero-grid-pattern--post {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}


/* ── Shared: Breadcrumb ─────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: rgba(255, 255, 255, 0.8); }
.breadcrumb-sep    { color: rgba(255, 255, 255, 0.22); }


/* ── Shared: Tags, Meta ─────────────────────────────────── */
.post-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.post-date {
  font-size: 0.8rem;
  color: var(--clr-text-light);
}
.post-read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--clr-text-light);
}
.post-read-time svg { flex-shrink: 0; }


/* ── Shared: Scroll Reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible   { opacity: 1; transform: translateY(0); }
.reveal-delay-1   { transition-delay: 0.1s; }
.reveal-delay-2   { transition-delay: 0.2s; }
.reveal-delay-3   { transition-delay: 0.3s; }


/* ============================================================
   LIST PAGE
   ============================================================ */

/* ── List Hero ──────────────────────────────────────────── */
.insights-hero {
  background: #0a1628;
  background: var(--grad-hero, linear-gradient(135deg, #0a1628 0%, #1a4b8c 60%, #0e7b82 100%));
  color: #fff;
  padding: 80px 0 68px;
  position: relative;
  overflow: hidden;
}
.insights-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 75% at 85% 50%,
    rgba(14, 123, 130, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.insights-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 64px 64px;
}
.insights-hero .eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #7ECFCF;
}
.insights-hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 640px;
  margin-bottom: 14px;
}
.hero-lede {
  font-size: 1.02rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ── Category Filter Pills ──────────────────────────────── */
.insights-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.filter-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.filter-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.filter-pill-active {
  background: #fff;
  color: var(--clr-primary);
  border-color: #fff;
}
.filter-pill-active:hover {
  background: #edf2ff;
  color: var(--clr-primary-dark);
}

/* ── Empty State ────────────────────────────────────────── */
.insights-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--clr-text-light);
}
.insights-empty svg {
  margin: 0 auto 16px;
  opacity: 0.35;
}
.insights-empty p {
  font-size: 1.05rem;
}

/* ── Featured Post ──────────────────────────────────────── */
.post-featured {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--clr-border-light);
  text-decoration: none;
  color: inherit;
  margin-bottom: 56px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.post-featured:hover {
  box-shadow: 0 20px 56px rgba(26, 75, 140, 0.14);
  transform: translateY(-3px);
}

.post-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: var(--clr-primary-xlight);
}
.post-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.post-featured:hover .post-featured-img img {
  transform: scale(1.04);
  filter: brightness(0.95);
}
.post-featured-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 60%,
    rgba(10, 22, 40, 0.12) 100%
  );
}

.post-featured-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.post-featured-body .post-meta {
  margin-bottom: 16px;
}
.post-featured-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--clr-text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  transition: color var(--transition-fast);
}
.post-featured:hover .post-featured-title { color: var(--clr-primary); }
.post-featured-excerpt {
  font-size: 0.95rem;
  color: var(--clr-text-medium);
  line-height: 1.72;
  margin-bottom: 28px;
  flex: 1;
}
.post-featured .btn {
  align-self: flex-start;
}

/* ── Posts Grid ─────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.posts-grid-related {
  /* inherits 3-col layout */
}

/* ── Post Card ──────────────────────────────────────────── */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E8EDF4;
  border-radius: 22px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.post-card:hover {
  box-shadow: 0 20px 56px rgba(26, 75, 140, .15);
  transform: translateY(-5px);
  border-color: rgba(26, 75, 140, .1);
}

.card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #E8F0F8;
  flex-shrink: 0;
  display: block;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.9);
  transition: transform .55s ease, filter .55s ease;
}
.post-card:hover .card-img img {
  transform: scale(1.06);
  filter: brightness(1);
}
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.18) 0%, transparent 55%);
}
.card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.card-body {
  padding: 22px 22px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.card-date {
  font-size: .75rem;
  color: #718096;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 8px;
}
.card-title a {
  color: #0D1B35;
  transition: color .15s ease;
}
.post-card:hover .card-title a {
  color: #1A4B8C;
}
.card-excerpt {
  font-size: .875rem;
  color: #4A5568;
  line-height: 1.7;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  margin-top: 16px;
  border-top: 1px solid #E8EDF4;
}
.card-read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8125rem;
  font-weight: 600;
  color: #1A4B8C;
  transition: gap .15s ease, color .15s ease;
}
.card-read-link:hover {
  gap: 8px;
  color: #0F3468;
}
.card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E8F0F8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1A4B8C;
  transition: background .25s ease, color .25s ease;
}
.post-card:hover .card-arrow {
  background: #1A4B8C;
  color: #fff;
}

.cat-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cat--smart-finance { background: #E0F5F6; color: #085F65; }
.cat--ai-enhancements { background: #E8F0F8; color: #1A4B8C; }
.cat--ai-finance { background: #EDE9FE; color: #5B21B6; }
.cat--oracle-epm { background: #FEF3E2; color: #9A5A00; }
.cat--default { background: #F0F2F5; color: #4A5568; }

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  color: #718096;
}


/* ============================================================
   DETAIL PAGE
   ============================================================ */

/* ── Post Hero ──────────────────────────────────────────── */
.post-hero {
  background: #06101F;
  background: var(--grad-hero, linear-gradient(145deg, #0A1628 0%, #1A2E55 42%, #0E3060 100%));
  color: #fff;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 70% at 80% 40%,
    rgba(14, 123, 130, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.post-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 64px 64px;
}
.post-hero .container { position: relative; z-index: 2; }

/* Narrow container for prose alignment */
.container-narrow { max-width: 800px; }

.post-hero-inner { max-width: 760px; }
.post-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.post-hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 640px;
  margin-bottom: 14px;
}
.post-hero-excerpt {
  font-size: 1.02rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 32px;
}

/* Author strip */
.post-author-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.author-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}
.author-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* ── Cover Image ────────────────────────────────────────── */
.post-cover-wrap {
  background: #fff;
  padding: 0;
}
.post-cover {
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  max-height: 520px;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.94);
}

/* ── Article Body ───────────────────────────────────────── */
.post-body { padding: 64px 0 80px; }
.post-layout {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 48px;
  align-items: start;
}
.post-share-col {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.share-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-medium);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.post-cover { padding: 0 0 48px; }
.post-cover-inner {
  border-radius: 16px;
  overflow: hidden;
  max-height: 480px;
}
.post-cover-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-share-col { display: none; }
}
.post-article {
  position: relative;
}

/* Sticky share sidebar */
.post-share {
  position: absolute;
  left: -80px;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.post-share-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-light);
  margin-bottom: 2px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-medium);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}
.share-btn:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

/* Prose typography */
.prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--clr-text-dark);
}
.prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2.5em 0 0.75em;
  padding-top: 0.5em;
  border-top: 1px solid var(--clr-border-light);
  color: var(--clr-text-dark);
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2em 0 0.6em;
}
.prose h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75em 0 0.5em;
  color: var(--clr-primary);
}
.prose p {
  margin-bottom: 1.55em;
}
.prose a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--clr-primary-dark); }
.prose strong { font-weight: 700; }
.prose em     { font-style: italic; }
.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.55em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li {
  margin-bottom: 0.5em;
  line-height: 1.72;
}
.prose blockquote {
  border-left: 3px solid var(--clr-accent);
  padding: 4px 0 4px 24px;
  margin: 2em 0;
  color: var(--clr-text-medium);
  font-size: 1.1rem;
  font-style: italic;
}
.prose blockquote p { margin-bottom: 0; }
.prose code {
  background: var(--clr-primary-xlight);
  color: var(--clr-primary-dark);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.88em;
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.prose pre {
  background: var(--clr-text-dark);
  color: #e2e8f0;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 2em 0;
  font-size: 0.875em;
}
.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 1em;
}
.prose img {
  border-radius: var(--radius-lg);
  margin: 2em 0;
  width: 100%;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--clr-border-light);
  margin: 2.5em 0;
}
/* Pull-quote style via .callout class inside prose */
.prose .callout {
  background: var(--clr-primary-xlight);
  border-left: 3px solid var(--clr-primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2em 0;
}

/* Article footer */
.post-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  margin-top: 56px;
  border-top: 1px solid var(--clr-border-light);
}


/* ── Section Head ───────────────────────────────────────── */
.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 52px;
}
.section-head h2    { margin-bottom: 12px; }
.section-head p {
  color: var(--clr-text-medium);
  font-size: 1.05rem;
  line-height: 1.7;
}


/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .post-featured {
    grid-template-columns: 1fr;
  }
  .post-featured-img {
    min-height: 280px;
    aspect-ratio: 16 / 7;
  }
  .post-featured-body { padding: 36px 32px; }
  .post-share { display: none; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .insights-hero { padding: 60px 0 56px; }
  .post-hero     { padding: 60px 0 56px; }
  .posts-grid    { grid-template-columns: 1fr; }
  .post-featured-body { padding: 28px 24px; }
  .post-body-section  { padding: 48px 0 64px; }
}
