/* =========================================================
   NATIONS PRAYER BRIEF
   Major Section Icon System v1

   Scope: ONLY the three editorial transitions:
   Pray Now / Watching Closely / Give Thanks

   Load AFTER production-density-refinement.css.
   This intentionally neutralizes the v0.5.4 rule-led header treatment.
   ========================================================= */

body.npd-nb-framework-production-density-staging .ttt-nb-section__header {
  display: block;
  max-width: calc(var(--ttt-nb-reading) + 13rem);
  margin-inline: auto;
  padding-top: 0;
  border-top: 0;
  grid-template-columns: none;
}

body.npd-nb-framework-production-density-staging .ttt-nb-section__header::before {
  display: none;
  width: 0;
  height: 0;
  margin: 0;
  background: none;
  content: none;
}

body.npd-nb-framework-production-density-staging .ttt-nb-section__chapter {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, var(--ttt-nb-reading));
  gap: clamp(1.15rem, 2.2vw, 1.6rem);
  justify-content: center;
  align-items: center;
}

body.npd-nb-framework-production-density-staging .ttt-nb-section__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  color: var(--ttt-nb-accent);
  background: linear-gradient(145deg, #ffffff 0%, #f7f3ea 100%);
  border: 1px solid rgba(138, 100, 41, 0.30);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.055);
}

body.npd-nb-framework-production-density-staging .ttt-nb-section__icon svg {
  display: block;
  width: 2.05rem;
  height: 2.05rem;
  overflow: visible;
}

body.npd-nb-framework-production-density-staging .ttt-nb-section__icon svg * {
  vector-effect: non-scaling-stroke;
}

body.npd-nb-framework-production-density-staging .ttt-nb-section__title-group {
  min-width: 0;
  padding-top: 0.08rem;
}

body.npd-nb-framework-production-density-staging .ttt-nb-section__header .ttt-nb-section__eyebrow {
  max-width: none;
  margin: 0 0 0.32rem;
  color: var(--ttt-nb-accent);
  font-size: clamp(0.67rem, 0.64rem + 0.08vw, 0.74rem);
  font-weight: 780;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

body.npd-nb-framework-production-density-staging .ttt-nb-section__header .ttt-nb-section__title {
  max-width: 24ch;
  margin: 0;
  color: var(--ttt-nb-ink);
  font-size: clamp(2.05rem, 1.72rem + 1.02vw, 2.72rem);
  font-weight: 800;
  letter-spacing: -0.036em;
  line-height: 1.05;
  text-wrap: balance;
}

/* The first country follows the chapter marker closely enough to feel connected. */
body.npd-nb-framework-production-density-staging .ttt-nb-section__header + .ttt-nb-entry {
  margin-top: clamp(2.15rem, 3.5vw, 3rem);
}

/* Contextual icon sizing only; palette and typography remain unified. */
body.npd-nb-framework-production-density-staging .ttt-nb-section--watching-closely .ttt-nb-section__icon svg {
  width: 2.12rem;
  height: 2.12rem;
}

body.npd-nb-framework-production-density-staging .ttt-nb-section--give-thanks .ttt-nb-section__icon svg {
  width: 2.15rem;
  height: 2.15rem;
}

@media (max-width: 43.75rem) {
  body.npd-nb-framework-production-density-staging .ttt-nb-section__chapter {
    grid-template-columns: 3.35rem minmax(0, 1fr);
    gap: 0.95rem;
  }

  body.npd-nb-framework-production-density-staging .ttt-nb-section__icon {
    width: 3.35rem;
    height: 3.35rem;
    box-shadow: 0 7px 18px rgba(23, 32, 51, 0.05);
  }

  body.npd-nb-framework-production-density-staging .ttt-nb-section__icon svg,
  body.npd-nb-framework-production-density-staging .ttt-nb-section--watching-closely .ttt-nb-section__icon svg,
  body.npd-nb-framework-production-density-staging .ttt-nb-section--give-thanks .ttt-nb-section__icon svg {
    width: 1.68rem;
    height: 1.68rem;
  }

  body.npd-nb-framework-production-density-staging .ttt-nb-section__header .ttt-nb-section__eyebrow {
    margin-bottom: 0.24rem;
    font-size: 0.65rem;
    letter-spacing: 0.115em;
  }

  body.npd-nb-framework-production-density-staging .ttt-nb-section__header .ttt-nb-section__title {
    font-size: clamp(1.82rem, 1.66rem + 0.8vw, 2.08rem);
    line-height: 1.08;
  }

  body.npd-nb-framework-production-density-staging .ttt-nb-section__header + .ttt-nb-entry {
    margin-top: 1.95rem;
  }
}

@media (max-width: 26rem) {
  body.npd-nb-framework-production-density-staging .ttt-nb-section__chapter {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.78rem;
  }

  body.npd-nb-framework-production-density-staging .ttt-nb-section__icon {
    width: 3rem;
    height: 3rem;
  }

  body.npd-nb-framework-production-density-staging .ttt-nb-section__icon svg,
  body.npd-nb-framework-production-density-staging .ttt-nb-section--watching-closely .ttt-nb-section__icon svg,
  body.npd-nb-framework-production-density-staging .ttt-nb-section--give-thanks .ttt-nb-section__icon svg {
    width: 1.55rem;
    height: 1.55rem;
  }
}

@media (forced-colors: active) {
  body.npd-nb-framework-production-density-staging .ttt-nb-section__icon {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  body.npd-nb-framework-production-density-staging .ttt-nb-section__header .ttt-nb-section__eyebrow,
  body.npd-nb-framework-production-density-staging .ttt-nb-section__header .ttt-nb-section__title {
    color: CanvasText;
  }
}

@media print {
  body.npd-nb-framework-production-density-staging .ttt-nb-section__icon {
    background: transparent;
    border-color: #999;
    box-shadow: none;
  }
}
