:root {
  --res-bg: #050812;
  --res-surface: #0b1326;
  --res-surface-2: #101c35;
  --res-text: #f4f7fb;
  --res-muted: #a9b7ca;
  --res-dark: #111827;
  --res-blue: #3b82f6;
  --res-blue-bright: #5ecbff;
  --res-gold: #e9c46a;
  --res-border: rgba(255, 255, 255, 0.13);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.resources-site {
  margin: 0;
  background: var(--res-bg);
  color: var(--res-text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
}

.resources-site img { display: block; max-width: 100%; }
.resources-site a { color: inherit; }
.resources-site [hidden] { display: none !important; }

.resource-skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  background: var(--res-text);
  color: var(--res-dark);
  padding: 0.75rem 1rem;
}

.resource-skip-link:focus { top: 1rem; }

.resource-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  background: rgba(5, 8, 18, 0.96);
  border-bottom: 1px solid var(--res-border);
  backdrop-filter: blur(16px);
}

.resource-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-logo img {
  width: 44px;
  height: 34px;
  object-fit: contain;
  background: #fff;
}

.resource-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
}

.resource-nav a {
  color: #c7d2e2;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.resource-nav a:hover,
.resource-nav a:focus-visible { color: #fff; }

.resource-header-cta,
.resource-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  background: linear-gradient(90deg, #2563eb, #59c7f5);
  color: #061020;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.resource-btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.resource-btn-gold {
  background: var(--res-gold);
  color: #111827;
}

.resource-btn.is-disabled,
.resource-btn[aria-disabled="true"] {
  background: transparent;
  border-color: var(--res-border);
  color: #77869b;
  cursor: not-allowed;
}

.resource-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--res-border);
  background: transparent;
  color: #fff;
  font: inherit;
}

.resource-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.resource-container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.resource-hero {
  min-height: 590px;
  display: grid;
  align-items: center;
  padding: clamp(5rem, 9vw, 8rem) 0;
  background:
    radial-gradient(ellipse 55% 65% at 90% 20%, rgba(37, 99, 235, 0.34), transparent 70%),
    linear-gradient(130deg, #050812 15%, #09142c 100%);
  border-bottom: 1px solid var(--res-border);
}

.resource-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: center;
}

.resource-eyebrow {
  margin: 0 0 1rem;
  color: var(--res-blue-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.resource-hero h1,
.resource-section h2,
.article-header h1,
.article-body h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.resource-hero h1 { font-size: clamp(3.8rem, 8vw, 7rem); }
.resource-hero h1 span { color: var(--res-blue-bright); }

.resource-hero-copy > p:not(.resource-eyebrow) {
  max-width: 720px;
  margin: 1.5rem 0 0;
  color: #c1ccdc;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.resource-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.resource-hero-graphic {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: end;
  padding: 2rem;
  border: 1px solid var(--res-border);
  background:
    linear-gradient(150deg, rgba(94, 203, 255, 0.1), transparent 45%),
    #081126;
  overflow: hidden;
}

.resource-hero-graphic::before {
  content: "PLAYBOOK";
  position: absolute;
  top: 1rem;
  right: -0.4rem;
  color: rgba(255, 255, 255, 0.055);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  letter-spacing: 0.04em;
}

.resource-hero-graphic strong {
  position: relative;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  line-height: 0.9;
}

.resource-hero-graphic span {
  position: relative;
  color: var(--res-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.resource-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.resource-section-light { background: #f3f6fa; color: var(--res-dark); }
.resource-section-navy { background: var(--res-surface); }

.resource-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.resource-section h2 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
.resource-section-heading p {
  max-width: 620px;
  margin: 0;
  color: #aebdd0;
}

.resource-section-light .resource-section-heading p { color: #526173; }

.featured-resource-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.featured-resource-card,
.download-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--res-border);
  background: rgba(255, 255, 255, 0.035);
}

.featured-resource-card.featured-primary { border-top: 3px solid var(--res-blue-bright); }
.featured-resource-card.featured-newsletter { border-top: 3px solid var(--res-gold); }
.featured-resource-card.featured-community { border-top: 3px solid #67d79a; }

.resource-card-kicker,
.article-category {
  color: var(--res-gold);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.featured-resource-card h3,
.download-card h3,
.article-card h2,
.article-card h3,
.article-card h4 {
  margin: 0.7rem 0 0;
  font-size: 1.16rem;
  line-height: 1.3;
}

.featured-resource-card p,
.download-card p {
  color: #aebdd0;
  margin: 0.8rem 0 1.5rem;
}

.featured-resource-card .resource-btn,
.download-card .resource-btn { margin-top: auto; }

.resource-secondary-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--res-blue-bright);
  font-weight: 700;
  text-underline-offset: 0.25rem;
}

.playbook-controls {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.article-search {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #111827;
  font: inherit;
}

.category-filters {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-filter {
  min-height: 42px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.category-filter[aria-pressed="true"] {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.playbook-category { margin-top: 4rem; scroll-margin-top: 90px; }
.playbook-category:first-of-type { margin-top: 0; }
.playbook-category h3 {
  margin: 0 0 1.3rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.03em;
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.article-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #d8e0ea;
  background: #fff;
  color: #111827;
}

.article-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5%;
}

.article-card-media span {
  position: absolute;
  left: 1rem;
  bottom: 0.8rem;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  line-height: 0.9;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
  background: rgba(4, 10, 24, 0.88);
}

.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.article-card p {
  margin: 0.8rem 0 1rem;
  color: #526173;
  font-size: 0.92rem;
}

.article-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: auto;
  color: #718096;
  font-size: 0.7rem;
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 1rem;
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card.is-planned { background: #edf2f7; }
.article-card.is-planned .article-card-media {
  display: grid;
  place-items: center;
  background: #dfe7f1;
}
.article-card.is-planned .article-card-media span {
  position: static;
  color: #66758a;
  font-size: 1.5rem;
}
.article-card.is-planned .article-card-link { color: #66758a; }

.article-empty {
  padding: 2rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #526173;
  text-align: center;
}

.downloads-note {
  max-width: 700px;
  color: #aebdd0;
  margin: -1rem 0 2rem;
}

.download-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.download-card strong {
  color: var(--res-blue-bright);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
}

.hub-band,
.article-cta {
  border: 1px solid rgba(233, 196, 106, 0.45);
  background: linear-gradient(115deg, rgba(233, 196, 106, 0.09), rgba(59, 130, 246, 0.12));
}

.hub-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.hub-band h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.hub-band p { max-width: 720px; color: #b8c5d7; }
.hub-actions { display: grid; gap: 0.75rem; min-width: 230px; }

.resource-footer {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 2rem;
  padding: 3rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--res-border);
  background: #02040a;
}

.resource-footer img { width: 95px; background: #fff; }
.resource-footer p { max-width: 340px; color: #8fa0b7; }
.resource-footer-links { display: grid; gap: 0.7rem; align-content: start; }
.resource-footer a {
  color: #c5d0df;
  text-decoration: none;
  font-size: 0.74rem;
}

.breadcrumbs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  color: #8393aa;
  font-size: 0.72rem;
}

.breadcrumbs a { color: #b7c5d7; }

.article-header {
  padding: clamp(4rem, 8vw, 7rem) 0 3rem;
  background: radial-gradient(ellipse 70% 65% at 90% 10%, rgba(37, 99, 235, 0.3), transparent 70%);
}

.article-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.article-header h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); }
.article-description {
  max-width: 760px;
  color: #bac7d8;
  font-size: 1.12rem;
}

.article-byline {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: #899ab1;
  font-size: 0.72rem;
}

.article-featured-image {
  border: 1px solid var(--res-border);
  background: #fff;
}

.article-featured-image img {
  width: 100%;
  aspect-ratio: 909 / 632;
  object-fit: contain;
  display: block;
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 740px);
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 4rem 0 6rem;
}

.article-toc {
  position: sticky;
  top: 95px;
  align-self: start;
  padding-left: 1rem;
  border-left: 2px solid var(--res-blue);
}

.article-toc strong {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-toc a {
  display: block;
  margin: 0.55rem 0;
  color: #9baac0;
  font-size: 0.78rem;
  text-decoration: none;
}

.article-body { min-width: 0; }
.article-body > p:first-child {
  color: #dce5f1;
  font-size: 1.12rem;
}
.article-body h2 {
  margin: 3.5rem 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  scroll-margin-top: 100px;
}
.article-body h3 {
  margin: 2.4rem 0 0.8rem;
  color: #dce5f1;
}
.article-body p,
.article-body li {
  color: #aebcd0;
  font-size: 1rem;
}
.article-body p { margin: 1rem 0; }
.article-body ul { padding-left: 1.3rem; }
.article-body strong { color: #fff; }
.article-body blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--res-gold);
  background: var(--res-surface);
  color: #dce5f1;
}

.article-cta {
  margin: 3rem 0;
  padding: 1.6rem;
}
.article-cta h2 { margin: 0 0 0.75rem; font-size: 2.3rem; }
.article-cta p { color: #b9c7d9; }

.related-articles { padding-top: 2rem; border-top: 1px solid var(--res-border); }
.related-articles h2 { font-size: 2.5rem; }
.article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}
.article-pagination a {
  padding: 1rem;
  border: 1px solid var(--res-border);
  color: #c5d2e2;
  text-decoration: none;
}
.article-pagination a:last-child { text-align: right; }

:focus-visible {
  outline: 3px solid var(--res-gold);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .resource-header { grid-template-columns: auto 1fr auto; }
  .resource-menu-button { display: block; justify-self: end; }
  .resource-nav {
    position: fixed;
    top: 68px;
    left: 1rem;
    right: 1rem;
    display: none;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--res-border);
    background: #050812;
  }
  .resource-nav.open { display: flex; }
  .resource-header-cta { display: none; }
  .resource-hero-inner,
  .article-header-grid,
  .hub-band,
  .article-layout { grid-template-columns: 1fr; }
  .resource-hero-graphic { min-height: 280px; }
  .featured-resource-grid,
  .article-card-grid,
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-toc { position: static; }
  .resource-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .resource-logo span { display: none; }
  .resource-hero { min-height: auto; }
  .resource-actions { flex-direction: column; align-items: stretch; }
  .resource-btn { width: 100%; }
  .resource-section-heading { align-items: start; flex-direction: column; }
  .featured-resource-grid,
  .article-card-grid,
  .download-grid,
  .resource-footer,
  .article-pagination { grid-template-columns: 1fr; }
  .playbook-controls { grid-template-columns: 1fr; }
  .category-filters { justify-content: flex-start; }
  .article-header { padding-top: 3rem; }
  .article-featured-image { order: -1; }
  .article-layout { padding-top: 2rem; }
  .article-pagination a:last-child { text-align: left; }
}
