:root {
  --resource-ink: #091626;
  --resource-ink-2: #12324a;
  --resource-text: #102033;
  --resource-muted: #53677d;
  --resource-line: #d7e3eb;
  --resource-soft: #eef5f6;
  --resource-panel: #ffffff;
  --resource-teal: #07897f;
  --resource-teal-2: #14b8a6;
  --resource-lime: #d6ff63;
  --resource-gold: #f4b73f;
  --resource-shadow: 0 18px 46px rgba(9, 22, 38, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--resource-text);
  background:
    radial-gradient(circle at 10% -10%, rgba(20, 184, 166, 0.14), transparent 34rem),
    linear-gradient(180deg, #f7fbfc 0%, #edf4f5 100%);
  font-size: 13px;
  line-height: 1.55;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.topbar {
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(9, 22, 38, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand-logo {
  width: clamp(132px, 16vw, 176px);
}

.nav,
.nav-actions {
  gap: 8px;
}

.btn,
.button {
  min-height: 36px;
  padding: 8px 12px;
  border-color: #c9d8e2;
  border-radius: 5px;
  color: var(--resource-ink-2);
  font-size: 0.76rem;
  letter-spacing: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover,
.button:hover,
.card-link:hover,
.training-link:hover {
  transform: translateY(-1px);
}

.btn.primary,
.button.primary,
.card-link {
  border-color: var(--resource-ink);
  color: #fff;
  background: var(--resource-ink);
}

main {
  padding-bottom: 42px;
}

.hero {
  width: min(1180px, calc(100% - 24px));
  margin: 10px auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(9, 22, 38, 0.12);
  border-radius: 7px;
  background: var(--resource-ink);
  box-shadow: var(--resource-shadow);
}

.hero-inner {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.46fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch;
  padding: clamp(18px, 2.4vw, 28px);
}

.hero-inner > div:first-child {
  position: relative;
  z-index: 1;
}

.hero-inner > div:first-child::after {
  position: absolute;
  top: 8px;
  right: clamp(-30px, -3vw, -8px);
  width: 150px;
  height: 150px;
  border: 1px solid rgba(214, 255, 99, 0.34);
  border-radius: 50%;
  box-shadow: inset 0 0 0 14px rgba(20, 184, 166, 0.08);
  content: "";
  opacity: 0.75;
  pointer-events: none;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--resource-lime);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

h1 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead,
.hero-copy {
  max-width: 640px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.76rem, 1vw, 0.88rem);
  line-height: 1.5;
}

.summary,
.summary-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(255, 255, 255, 0.04)),
    #10253a;
  box-shadow: none;
}

.summary strong,
.summary-card strong {
  color: #fff;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.1;
}

.summary span,
.summary-card span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.55;
}

.section {
  width: min(1240px, 100%);
  max-width: 1240px;
  padding: 18px clamp(16px, 3vw, 40px);
}

.section + .section {
  padding-top: 12px;
}

.section-head {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(14px, 2.4vw, 28px);
  align-items: end;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(9, 22, 38, 0.14);
}

h2 {
  max-width: 720px;
  color: var(--resource-ink);
  font-size: clamp(1.08rem, 1.75vw, 1.5rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
}

.section-head p,
.content-card p,
.roadmap-card p,
.card p,
.note p,
.template-card p,
.flashcard p,
.step p,
.callout p,
li {
  color: var(--resource-muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.content-grid,
.grid {
  gap: 12px;
}

.content-card,
.roadmap-card,
.card,
.note,
.template-card,
.flashcard,
.audit-card,
.callout,
.flow-step,
.step {
  border: 1px solid var(--resource-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(9, 22, 38, 0.055);
}

.content-card,
.roadmap-card,
.card,
.note,
.template-card,
.audit-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.content-card::before,
.card::before,
.template-card::before,
.audit-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--resource-teal), var(--resource-lime));
  content: "";
}

.note {
  background: #f9fcfd;
}

.note.important {
  border-color: #ead48f;
  background: #fffaf0;
}

.content-card h3,
.roadmap-card h3,
.card h3,
.note h3,
template-card h3,
.flashcard h3,
.audit-card h3,
.step h3 {
  color: var(--resource-ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.tag,
.tag.live {
  min-height: 22px;
  margin-bottom: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #045e57;
  background: #dcfbf5;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag.live {
  color: var(--resource-ink);
  background: var(--resource-lime);
}

.tag.gold {
  color: #6c4a00;
  background: #fff0c5;
}

.tag.red {
  color: #8a250d;
  background: #ffe5dc;
}

.card-actions {
  margin-top: 13px;
}

.card-link {
  min-height: 32px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
}

.roadmap-grid {
  gap: 10px;
}

.roadmap-card {
  background: #fff;
}

.roadmap-card span {
  width: 28px;
  height: 28px;
  margin-bottom: 9px;
  border-radius: 5px;
  background: var(--resource-ink);
  font-size: 0.76rem;
}

.note-panel {
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(255, 255, 255, 0.72)),
    #fff;
  box-shadow: 0 14px 32px rgba(9, 22, 38, 0.055);
}

.metric strong {
  color: var(--resource-ink);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.metric span {
  font-size: 0.76rem;
}

.table {
  gap: 6px;
}

.row {
  border-radius: 6px;
  border-color: #d8e4eb;
  background: #d8e4eb;
}

.row > div {
  padding: 9px 10px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.row.header > div {
  color: var(--resource-ink);
  background: #eef3f6;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.steps {
  gap: 10px;
}

.step {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.step::before {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: var(--resource-ink);
  font-size: 0.76rem;
}

.checklist {
  gap: 7px;
}

.check-item {
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--resource-muted);
  background: #fff;
  font-size: 0.82rem;
}

.check-item::before {
  width: 15px;
  height: 15px;
  border-color: var(--resource-teal);
  border-radius: 3px;
}

.flow {
  gap: 8px;
}

.flow-step {
  min-height: 118px;
  padding: 12px;
}

.flow-step span {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: var(--resource-teal);
  font-size: 0.76rem;
}

.flashcards {
  gap: 10px;
}

.flashcard {
  min-height: 128px;
  padding: 14px;
}

.flashcard span {
  color: var(--resource-teal);
  font-size: 0.64rem;
}

.training-hero h1 {
  max-width: 720px;
}

.training-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.training-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--resource-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(9, 22, 38, 0.06);
}

.training-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.training-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--resource-lime);
  border-radius: 6px;
  background: var(--resource-ink);
  font-weight: 850;
}

.training-card h3 {
  margin: 0;
  color: var(--resource-ink);
  font-size: 1rem;
  line-height: 1.25;
}

.training-card p {
  margin: 0;
  color: var(--resource-muted);
  font-size: 0.84rem;
}

.training-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.training-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #cbdbe5;
  border-radius: 4px;
  color: var(--resource-ink);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.training-link.primary {
  color: #fff;
  border-color: var(--resource-teal);
  background: var(--resource-teal);
}

.resource-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

@media (max-width: 960px) {
  .hero,
  .section {
    width: min(100% - 24px, 1240px);
  }

  .hero-inner,
  .section-head,
  .note-panel,
  .resource-split,
  .training-library {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 18px;
  }

  .hero-inner > div:first-child::after {
    display: none;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 13px;
  }

  .topbar {
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-logo {
    width: 132px;
  }

  .nav,
  .nav-actions {
    width: 100%;
  }

  .btn,
  .button {
    flex: 1 1 auto;
    min-height: 34px;
    padding: 7px 9px;
  }

  .hero {
    width: calc(100% - 18px);
    margin-top: 10px;
  }

  .hero-inner {
    padding: 16px 14px;
  }

  h1 {
    font-size: clamp(1.28rem, 6vw, 1.75rem);
  }

  h2 {
    font-size: 1.08rem;
  }

  .section {
    width: 100%;
    padding: 14px 10px;
  }

  .section + .section {
    padding-top: 8px;
  }

  .content-grid,
  .roadmap-grid,
  .grid,
  .grid.two,
  .grid.four,
  .grid.five,
  .audit-grid,
  .flow,
  .flashcards {
    grid-template-columns: 1fr;
  }

  .row,
  .row.two,
  .row.four,
  .row.five,
  .row.soa {
    grid-template-columns: 1fr;
  }
}

/* Compact resource-page typography for all study and training material pages. */
.hero {
  width: min(1180px, calc(100% - 24px)) !important;
  margin-top: 10px !important;
}

.hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.46fr) !important;
  gap: clamp(16px, 2.4vw, 28px) !important;
  padding: clamp(18px, 2.4vw, 28px) !important;
}

h1 {
  max-width: 680px !important;
  font-size: clamp(1.3rem, 2vw, 2rem) !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

h2 {
  font-size: clamp(1.05rem, 1.6vw, 1.38rem) !important;
  line-height: 1.18 !important;
}

.lead,
.hero-copy {
  max-width: 640px !important;
  margin-top: 10px !important;
  font-size: clamp(0.76rem, 1vw, 0.9rem) !important;
  line-height: 1.5 !important;
}

.summary,
.summary-card {
  min-height: 108px !important;
  padding: 15px !important;
}

.summary strong,
.summary-card strong,
.metric strong {
  font-size: clamp(1.05rem, 1.45vw, 1.3rem) !important;
}

.summary span,
.summary-card span,
.metric span {
  font-size: 0.72rem !important;
}

.section {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.section-head {
  gap: clamp(14px, 2.4vw, 28px) !important;
  margin-bottom: 12px !important;
  padding-top: 12px !important;
}

@media (max-width: 960px) {
  .hero-inner,
  .section-head,
  .note-panel,
  .resource-split,
  .training-library {
    grid-template-columns: 1fr !important;
  }
}

/* Individual study-document pages use a light hero from their page template. */
.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero {
  width: 100% !important;
  margin: 0 !important;
  padding: clamp(24px, 4vw, 42px) clamp(18px, 5vw, 64px) 24px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, #edf8fb, #fff 64%) !important;
  box-shadow: none !important;
}

.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero .hero-inner {
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr) !important;
  align-items: end !important;
}

.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero .hero-inner > div:first-child::after {
  display: none !important;
}

.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero h1 {
  color: #081528 !important;
}

.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero .lead,
.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero .hero-copy {
  color: #526278 !important;
}

.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero .summary,
.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero .summary-card {
  color: #081528 !important;
  background: #fff !important;
  border: 1px solid #dbe7f1 !important;
  box-shadow: 0 14px 34px rgba(12, 30, 48, 0.06) !important;
}

.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero .summary strong,
.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero .summary-card strong {
  color: #081528 !important;
}

.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero .summary span,
.topbar:has(.nav[aria-label="Study document navigation"]) + main .hero .summary-card span {
  color: #526278 !important;
}

@media (max-width: 880px) {
  .topbar:has(.nav[aria-label="Study document navigation"]) + main .hero .hero-inner {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
}
