.resources-page,
.resource-article-page {
  position: relative;
  padding-bottom: var(--space-6);
  background:
    radial-gradient(74rem 42rem at 10% -14%, rgba(217, 72, 27, 0.18), transparent 58%),
    radial-gradient(62rem 36rem at 92% 6%, rgba(245, 245, 247, 0.1), transparent 64%),
    linear-gradient(180deg, rgba(7, 17, 33, 0.96), rgba(11, 31, 58, 1));
  overflow: clip;
}

.resources-page::before,
.resource-article-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 22%, rgba(245, 245, 247, 0.05), transparent 0 22rem),
    radial-gradient(circle at 84% 8%, rgba(245, 245, 247, 0.07), transparent 0 18rem),
    linear-gradient(120deg, transparent 35%, rgba(245, 245, 247, 0.03) 50%, transparent 64%);
  opacity: 0.85;
  z-index: 0;
}

.resources-page > *,
.resource-article-page > * {
  position: relative;
  z-index: 1;
}

.resources-hero,
.resource-article-hero {
  position: relative;
  margin-top: var(--space-4);
}

.resources-hero {
  overflow: hidden;
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.25rem, 2.8vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(115deg, rgba(245, 245, 247, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(217, 72, 27, 0.16), rgba(217, 72, 27, 0.03) 44%, rgba(11, 31, 58, 0.14)),
    rgba(10, 25, 46, 0.9);
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.4),
    0 14px 36px rgba(217, 72, 27, 0.14);
}

.resources-hero-copy {
  display: grid;
  gap: var(--space-3);
  max-width: 58rem;
}

.resources-hero-copy h1,
.resource-article-copy h1 {
  font-size: clamp(2.2rem, 5.8vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.resources-lead,
.resource-article-lead,
.resources-section-copy,
.resource-summary,
.resource-sidebar-copy {
  color: rgba(245, 245, 247, 0.82);
  line-height: 1.72;
}

.resources-hero-panel,
.resource-article-panel,
.resource-sidebar-card,
.resources-empty,
.resources-cta-band {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(13, 31, 56, 0.88);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    0 10px 24px rgba(217, 72, 27, 0.08);
}

.resources-hero-panel,
.resource-article-panel,
.resource-sidebar-card,
.resources-empty {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.resources-hero-panel {
  width: min(100%, 25rem);
  justify-self: end;
  align-self: center;
  display: grid;
  align-content: center;
  gap: 0;
}

.resources-panel-label,
.resources-section-label,
.resource-kicker,
.resource-sidebar-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.72);
}

.resources-hero-list {
  display: grid;
  gap: 0.55rem;
  margin-top: var(--space-2);
}

.resources-hero-list li {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.9);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.resources-hero-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.resources-panel-note {
  margin-top: var(--space-3);
  color: rgba(245, 245, 247, 0.66);
  font-size: 0.92rem;
}

.resources-stage,
.resources-feed,
.resources-cta,
.resource-article-layout {
  padding-top: var(--space-5);
}

.resource-feature {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(245, 245, 247, 0.07), transparent 36%),
    linear-gradient(145deg, rgba(217, 72, 27, 0.08), rgba(217, 72, 27, 0.03) 48%, rgba(255, 255, 255, 0.03)),
    rgba(10, 24, 44, 0.94);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.36),
    0 14px 40px rgba(217, 72, 27, 0.1);
}

.resource-feature::before,
.resource-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(217, 72, 27, 0.94), rgba(245, 245, 247, 0.1) 84%);
}

.resource-feature-visual {
  position: relative;
  min-height: 18rem;
  padding: clamp(1rem, 2.1vw, 1.4rem);
  background:
    radial-gradient(circle at 22% 20%, rgba(245, 245, 247, 0.28), transparent 0 12rem),
    radial-gradient(circle at 78% 84%, rgba(245, 245, 247, 0.1), transparent 0 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 34%, rgba(0, 0, 0, 0.14));
}

.resource-feature-label {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11, 31, 58, 0.78);
}

.resource-feature-glow {
  position: absolute;
  inset: auto auto -4rem -4rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 72, 27, 0.24), transparent 70%);
  filter: blur(6px);
}

.resource-feature-ghost {
  position: absolute;
  inset: auto clamp(0.7rem, 1.5vw, 1.2rem) clamp(0.8rem, 1.6vw, 1.2rem) clamp(0.7rem, 1.5vw, 1.2rem);
  margin: 0;
  font-family: 'Barlow Condensed', 'Space Grotesk', sans-serif;
  font-size: clamp(3.4rem, 10vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: rgba(11, 31, 58, 0.82);
  max-width: 8ch;
}

.resource-feature-panel {
  display: grid;
  gap: var(--space-3);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.resource-feature-panel h2,
.resources-section-head h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.8rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.resource-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
}

.resource-meta-row span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.68);
}

.resource-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.resource-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.28rem 0.52rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.84);
}

.resource-action-row,
.resource-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.resource-card-footer {
  margin-top: auto;
}

.resources-section-head {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.resources-section-head-compact {
  margin-bottom: var(--space-2);
}

.resources-section-head-compact .resources-section-label {
  color: rgba(245, 245, 247, 0.78);
}

.resource-card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.resource-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  height: 100%;
  padding: clamp(0.9rem, 1.45vw, 1.05rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(13, 31, 56, 0.9);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.26),
    0 10px 24px rgba(217, 72, 27, 0.08);
}

.resource-card-featured {
  background:
    linear-gradient(140deg, rgba(217, 72, 27, 0.12), rgba(217, 72, 27, 0.03) 34%, rgba(255, 255, 255, 0.03)),
    rgba(13, 31, 56, 0.92);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.3),
    0 12px 26px rgba(217, 72, 27, 0.12);
}

.resource-card,
.resource-feature,
.resource-related-link,
.resource-back-link {
  transition:
    transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 220ms cubic-bezier(0.2, 0.9, 0.2, 1),
    border-color 200ms ease,
    box-shadow 200ms ease,
    background-color 200ms ease,
    color 200ms ease;
}

.resource-card:hover,
.resource-card:focus-within,
.resource-feature:hover,
.resource-feature:focus-within {
  transform: translateY(-4px);
  border-color: rgba(217, 72, 27, 0.45);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.32),
    0 12px 28px rgba(217, 72, 27, 0.14);
}

.resource-card h3 {
  font-size: clamp(0.98rem, 1.28vw, 1.18rem);
  line-height: 1.14;
}

.resource-card-featured h3 {
  font-size: clamp(1.16rem, 1.6vw, 1.5rem);
}

.resource-card .resource-summary {
  font-size: 0.92rem;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-card-featured .resource-summary {
  -webkit-line-clamp: 4;
}

.resource-card .resource-pill-row {
  gap: 0.35rem;
}

.resource-card .resource-pill {
  font-size: 0.54rem;
  padding: 0.24rem 0.44rem;
}

.resource-card h3 a:hover,
.resource-card h3 a:focus-visible {
  color: var(--accent);
}

.resource-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.resource-link-arrow::after {
  content: '\2192';
}

.resources-empty,
.resources-empty-state {
  display: grid;
  gap: var(--space-3);
}

.resources-empty h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.resources-empty p {
  color: rgba(245, 245, 247, 0.84);
}

.resources-empty code {
  font-family: 'Courier New', Courier, monospace;
  color: rgba(245, 245, 247, 0.94);
}

.resources-cta-band {
  display: grid;
  gap: var(--space-3);
  padding: clamp(1rem, 2.3vw, 1.65rem);
  border-color: rgba(217, 72, 27, 0.34);
  background:
    linear-gradient(110deg, rgba(217, 72, 27, 0.2), rgba(217, 72, 27, 0.06) 42%, rgba(255, 255, 255, 0.03)),
    rgba(13, 31, 56, 0.9);
}

.resources-cta-band h2 {
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.resource-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.78);
}

.resource-back-link::before {
  content: '\2190';
}

.resource-back-link:hover,
.resource-back-link:focus-visible {
  color: var(--accent);
  transform: translateX(-2px);
}

.resource-article-head {
  display: grid;
  gap: var(--space-3);
  padding: clamp(1.25rem, 2.8vw, 2.2rem);
  margin-top: var(--space-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(118deg, rgba(245, 245, 247, 0.05), transparent 34%),
    linear-gradient(140deg, rgba(217, 72, 27, 0.14), rgba(217, 72, 27, 0.03) 46%, rgba(255, 255, 255, 0.03)),
    rgba(10, 24, 44, 0.92);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.36),
    0 12px 30px rgba(217, 72, 27, 0.12);
}

.resource-article-copy {
  display: grid;
  gap: var(--space-3);
}

.resource-article-panel {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

.resource-article-layout {
  display: grid;
  gap: var(--space-3);
}

.resource-article-sidebar {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.resource-toc {
  display: grid;
  gap: 0.55rem;
  margin-top: var(--space-2);
}

.resource-toc a {
  color: rgba(245, 245, 247, 0.82);
  font-size: 0.94rem;
  line-height: 1.45;
}

.resource-toc a.level-3 {
  padding-left: 0.8rem;
  color: rgba(245, 245, 247, 0.68);
}

.resource-toc a:hover,
.resource-toc a:focus-visible {
  color: var(--accent);
}

.resource-related-list {
  display: grid;
  gap: 0.75rem;
  margin-top: var(--space-2);
}

.resource-related-link {
  display: grid;
  gap: 0.18rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.resource-related-link:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.resource-related-link span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.62);
}

.resource-related-link strong {
  font-size: 1rem;
  line-height: 1.35;
}

.resource-related-link:hover,
.resource-related-link:focus-visible {
  color: var(--accent);
  transform: translateX(2px);
}

.resource-prose {
  padding: clamp(1.1rem, 2.3vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(13, 31, 56, 0.9);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.28),
    0 10px 24px rgba(217, 72, 27, 0.08);
}

.resource-prose > :first-child {
  margin-top: 0;
}

.resource-prose > :last-child {
  margin-bottom: 0;
}

.resource-prose h2,
.resource-prose h3,
.resource-prose h4 {
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  scroll-margin-top: calc(7rem + var(--space-3));
}

.resource-prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.resource-prose h3 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.08;
}

.resource-prose p,
.resource-prose li,
.resource-prose figcaption {
  color: rgba(245, 245, 247, 0.86);
  line-height: 1.76;
  font-size: 1rem;
}

.resource-prose .resource-lede {
  max-width: 52rem;
  font-size: clamp(1.08rem, 1.3vw, 1.26rem);
  line-height: 1.84;
  color: rgba(245, 245, 247, 0.94);
}

.resource-prose .resource-source-note {
  padding: 0.95rem 1rem;
  border-left: 2px solid rgba(217, 72, 27, 0.72);
  background:
    linear-gradient(90deg, rgba(217, 72, 27, 0.12), rgba(217, 72, 27, 0.03) 38%, rgba(255, 255, 255, 0.03)),
    rgba(10, 24, 44, 0.82);
  color: rgba(245, 245, 247, 0.8);
}

.resource-prose p,
.resource-prose ul,
.resource-prose ol,
.resource-prose blockquote,
.resource-prose pre,
.resource-prose figure,
.resource-prose hr,
.resource-jump-nav,
.resource-inline-cta-row {
  margin: 0 0 1.15rem;
}

.resource-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(217, 72, 27, 0.12), rgba(217, 72, 27, 0.03) 40%, rgba(255, 255, 255, 0.03)),
    rgba(10, 24, 44, 0.82);
}

.resource-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.86);
  text-decoration: none !important;
}

.resource-jump-link:hover,
.resource-jump-link:focus-visible {
  color: var(--accent);
  border-color: rgba(217, 72, 27, 0.5);
  background: rgba(217, 72, 27, 0.08);
}

.resource-inline-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.resource-inline-cta-row .btn {
  width: auto;
}

.resource-prose ul,
.resource-prose ol {
  padding-left: 1.2rem;
}

.resource-prose ul li::marker,
.resource-prose ol li::marker {
  color: var(--accent);
}

.resource-prose a {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: underline;
  text-decoration-color: rgba(217, 72, 27, 0.52);
  text-underline-offset: 0.18em;
}

.resource-prose a:hover,
.resource-prose a:focus-visible {
  color: var(--accent);
  text-decoration-color: rgba(217, 72, 27, 0.9);
}

.resource-prose strong {
  color: rgba(255, 255, 255, 0.96);
}

.resource-prose code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.94em;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12rem 0.3rem;
}

.resource-code {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 13, 26, 0.92);
  padding: 0.95rem;
}

.resource-code code {
  display: block;
  padding: 0;
  background: transparent;
  color: rgba(245, 245, 247, 0.92);
  line-height: 1.7;
}

.resource-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 14, 28, 0.86);
}

.resource-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

.resource-table th,
.resource-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.resource-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.74);
  background: rgba(255, 255, 255, 0.04);
}

.resource-table td {
  color: rgba(245, 245, 247, 0.88);
  line-height: 1.65;
}

.resource-prose blockquote {
  margin-left: 0;
  padding: 0.95rem 1rem;
  border-left: 3px solid rgba(217, 72, 27, 0.92);
  background: linear-gradient(90deg, rgba(217, 72, 27, 0.12), rgba(217, 72, 27, 0.03) 42%, rgba(255, 255, 255, 0.03));
}

.resource-prose hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.resource-figure {
  display: grid;
  gap: 0.6rem;
}

.resource-figure img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.resource-figure figcaption {
  color: rgba(245, 245, 247, 0.64);
  font-size: 0.92rem;
}

@media (min-width: 900px) {
  .resources-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .resource-feature {
    grid-template-columns: minmax(19rem, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
  }

  .resources-section-head {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.72fr);
    align-items: end;
  }

  .resources-feed--single .resources-section-head {
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: var(--space-2);
  }

  .resource-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resources-cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .resource-article-head {
    grid-template-columns: minmax(0, 1.12fr) minmax(16rem, 0.88fr);
    align-items: start;
  }

  .resource-article-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(16rem, 0.62fr);
    align-items: start;
  }

  .resource-article-sidebar {
    position: sticky;
    top: 5.8rem;
  }
}

@media (min-width: 1080px) {
  .resource-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .resources-page,
  .resource-article-page {
    padding-bottom: var(--space-5);
  }

  .resources-hero,
  .resource-article-hero {
    margin-top: var(--space-3);
  }

  .resources-hero-copy h1,
  .resource-article-copy h1 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
    line-height: 0.97;
  }

  .resources-stage,
  .resources-feed,
  .resources-cta,
  .resource-article-layout {
    padding-top: var(--space-4);
  }

  .resource-feature-visual {
    min-height: 13rem;
  }

  .resource-feature-ghost {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

  .resource-prose p,
  .resource-prose li,
  .resource-prose figcaption {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-card,
  .resource-feature,
  .resource-related-link,
  .resource-back-link {
    transition: none !important;
  }

  .resource-card:hover,
  .resource-card:focus-within,
  .resource-feature:hover,
  .resource-feature:focus-within,
  .resource-related-link:hover,
  .resource-related-link:focus-visible,
  .resource-back-link:hover,
  .resource-back-link:focus-visible {
    transform: none !important;
  }
}
