.resource-article-page {
  --article-dark: #0f102f;
  --article-indigo: #4338ca;
  --article-gold: #d4af37;
  --article-ink: #111827;
  --article-copy: #475569;
  --article-muted: #64748b;
  --article-border: #e2e8f0;
  background: #f1f5f9;
  padding-bottom: 4rem;
}

.resource-article-hero {
  /* Flat navy (not the old diagonal gradient) to match the site header and
     .hero-gradient elsewhere — see the note on .hero-gradient in public.css. */
  position: relative;
  overflow: hidden;
  background: var(--article-dark);
  color: #fff;
  padding: 3rem 1rem 7.5rem;
  text-align: center;
}

/* Same soft ring as the rest of the site's dark hero bands (.hero-gradient::after
   in public.css, .sg-cover::before in public_editorial.css). */
.resource-article-hero::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: -8rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5rem rgba(67, 56, 202, 0.1);
  pointer-events: none;
}

.resource-article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  margin: 0 auto;
}

.resource-back-link {
  display: inline-flex;
  color: #cbd5e1;
  font-size: .875rem;
  text-decoration: none;
}

.resource-back-link:hover { color: #fff; }

.resource-type {
  display: block;
  margin-top: 2rem;
  color: var(--article-gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.resource-article-hero h1 {
  max-width: 56rem;
  margin: 1rem auto 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .98;
  text-wrap: balance;
}

.resource-article-hero p {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.75;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.4rem;
  margin-top: 1.5rem;
  color: #94a3b8;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.resource-article-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 12rem minmax(0, 47rem);
  gap: 2.5rem;
  max-width: 68rem;
  margin: -4.25rem auto 0;
  padding: 2.5rem;
  border: 1px solid var(--article-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 16, 47, .12);
}

.resource-desktop-toc {
  align-self: start;
  position: sticky;
  top: 1.5rem;
  padding-top: .4rem;
}

.resource-desktop-toc > span,
.resource-mobile-toc > summary {
  color: var(--article-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.resource-desktop-toc nav {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: 1rem;
}

.resource-desktop-toc a,
.resource-mobile-toc a {
  color: var(--article-muted);
  font-size: .8rem;
  line-height: 1.4;
  text-decoration: none;
}

.resource-desktop-toc a {
  border-left: 2px solid transparent;
  padding-left: .75rem;
}

.resource-desktop-toc a:hover,
.resource-desktop-toc a:focus {
  border-color: var(--article-gold);
  color: var(--article-indigo);
}

.resource-mobile-toc { display: none; }

.resource-article-content {
  min-width: 0;
  color: var(--article-copy);
  font-size: 1rem;
  line-height: 1.85;
}

.resource-article-content p { margin: 0 0 1.35rem; }

.resource-article-content .resource-article-lead {
  color: var(--article-ink);
  font-size: 1.35rem;
  line-height: 1.6;
}

.resource-article-content h2 {
  scroll-margin-top: 1.5rem;
  margin: 2.75rem 0 1rem;
  color: var(--article-ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.resource-article-content h2:first-child { margin-top: 0; }

.resource-article-content h3 {
  scroll-margin-top: 1.5rem;
  margin: 2rem 0 .75rem;
  color: var(--article-ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.resource-article-content ul,
.resource-article-content ol {
  margin: .25rem 0 1.75rem;
  padding: 1.25rem 1.5rem 1.25rem 2.75rem;
  border: 1px solid #e0e7ff;
  border-radius: .75rem;
  background: #f8faff;
}

.resource-article-content li { padding-left: .3rem; }
.resource-article-content li + li { margin-top: .55rem; }
.resource-article-content li::marker { color: var(--article-indigo); font-weight: 700; }

.resource-external-link {
  display: inline-flex;
  margin-top: 1rem;
  border-radius: .6rem;
  background: var(--article-indigo);
  color: #fff;
  padding: .7rem 1.1rem;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.resource-whitepaper-cta {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: .9rem;
  background: var(--article-dark);
  color: #fff;
}

.resource-whitepaper-cta > span {
  color: var(--article-gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.resource-article-content .resource-whitepaper-cta h2 {
  margin: .65rem 0 .75rem;
  color: #fff;
  font-size: 1.4rem;
}

.resource-article-content .resource-whitepaper-cta p {
  max-width: 38rem;
  margin-bottom: 1.25rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.resource-whitepaper-cta a {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1rem;
  border-radius: .55rem;
  background: var(--article-gold);
  color: var(--article-dark);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.resource-whitepaper-cta a:hover { background: #f2c94c; }

.resource-next-article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 68rem;
  margin: 2.25rem auto 0;
  padding: 1.75rem 2rem;
  border-radius: 1rem;
  background: var(--article-dark);
  color: #fff;
  text-decoration: none;
}

.resource-next-article small {
  display: block;
  margin-bottom: .45rem;
  color: var(--article-gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.resource-next-article strong {
  display: block;
  max-width: 42rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.resource-next-article b { color: var(--article-gold); font-size: 1.75rem; }

@media (max-width: 72rem) {
  .resource-article-shell,
  .resource-next-article { margin-left: 1rem; margin-right: 1rem; }
}

@media (max-width: 48rem) {
  .resource-article-hero { padding: 2.5rem 1rem 6.5rem; }
  .resource-article-shell { display: block; margin-top: -3.5rem; padding: 1.5rem; }
  .resource-desktop-toc { display: none; }
  .resource-mobile-toc { display: block; margin-bottom: 2rem; padding: 1rem; border: 1px solid var(--article-border); border-radius: .75rem; background: #f8fafc; }
  .resource-mobile-toc summary { cursor: pointer; }
  .resource-mobile-toc nav { display: flex; flex-direction: column; gap: .7rem; margin-top: 1rem; }
  .resource-article-content .resource-article-lead { font-size: 1.2rem; }
  .resource-article-content h2 { font-size: 1.4rem; }
  .resource-next-article { padding: 1.35rem 1.5rem; }
}
