:root {
  --primer-card: var(--surface, #161616);
  --primer-border: var(--border, #2a2a2a);
  --primer-accent: var(--highlight, #ff6b35);
}

/* Shared DETN primer reading system. Topic palettes remain page-specific. */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

main > h2,
main > section > h2 {
  margin-top: 2.6rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--primer-accent);
}

.quote,
.scripture,
.callout {
  border-left: 3px solid var(--primer-accent);
  border-radius: 0 8px 8px 0;
}

.definitions,
.concept-grid,
.numbered-grid {
  display: grid;
  gap: .7rem;
  margin: 1rem 0 1.35rem;
}

.definitions > div,
.concept-grid > div,
.numbered-grid > div {
  padding: .9rem 1rem;
  border: 1px solid var(--primer-border);
  border-radius: 9px;
  background: var(--primer-card);
}

.key-takeaway {
  background: rgba(196, 30, 58, .12);
  border: 1px solid rgba(196, 30, 58, .4);
}

.related .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: .95rem 0 .2rem;
}

.related .button,
.related p > a {
  display: inline-block;
  padding: .68rem .95rem;
  border: 1px solid #444;
  border-radius: 7px;
  background: #232323;
  color: #fff;
  font-weight: 750;
}

.related .button:hover,
.related p > a:hover {
  border-color: var(--primer-accent);
  text-decoration: none;
}

.cta-box {
  text-align: center;
}

@media (max-width: 640px) {
  .jump-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .35rem;
    scrollbar-width: thin;
  }

  .jump-nav a {
    flex: 0 0 auto;
  }

  .related .button-row {
    display: grid;
  }

  .related .button,
  .related p > a {
    width: 100%;
    text-align: center;
  }
}
