/* Network-wide visual consistency layer  staging release r3 */
:root {
  --nsa-blue: #1f5f99;
  --nsa-red: #c8102e;
  --nsa-green: #147451;
  --nsa-navy: #123b5f;
  --nsa-gold: #e4b942;
  --nsa-ink: #102d49;
  --nsa-line: #cbd8e4;
}

/* Keep primary actions consistent while preserving each pages content flow. */
main :is(a.button, button.button, a.button-red, button.button-red, a.button-dark, button.button-dark, a.button-outline, button.button-outline, a.nav-cta, a.primary-cta) {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.25;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
main :is(a.button-red, button.button-red, a.nav-cta) {
  color: #fff;
  background-color: var(--nsa-red);
  border-color: var(--nsa-red);
}
main :is(a.button-dark, button.button-dark) {
  color: #fff;
  background-color: var(--nsa-navy);
  border-color: var(--nsa-navy);
}
main :is(a.button, button.button, a.button-red, button.button-red, a.button-dark, button.button-dark, a.button-outline, button.button-outline, a.nav-cta, a.primary-cta):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(10 39 68 / 16%);
}
main :is(a.button, button.button, a.button-red, button.button-red, a.button-dark, button.button-dark, a.button-outline, button.button-outline, a.nav-cta, a.primary-cta):focus-visible {
  outline: 3px solid var(--nsa-gold);
  outline-offset: 3px;
}

/* Center the section introductions used across the home and state templates. */
main :is(.section-heading, .home-section-heading, .state-section-heading, .state-offers__head) {
  width: min(100%, 940px);
  margin-inline: auto;
  text-align: center;
}
main :is(.section-heading, .home-section-heading, .state-section-heading, .state-offers__head) :is(h2, h3, p) {
  margin-inline: auto;
  text-wrap: balance;
}

/* Use the requested strong blue, red, and green price bars on service cards. */
main .offerings-grid .offering-card:nth-child(3n + 1) .service-price {
  color: #fff;
  background: var(--nsa-blue);
  border-color: var(--nsa-blue);
}
main .offerings-grid .offering-card:nth-child(3n + 2) .service-price {
  color: #fff;
  background: var(--nsa-red);
  border-color: var(--nsa-red);
}
main .offerings-grid .offering-card:nth-child(3n) .service-price {
  color: #fff;
  background: var(--nsa-green);
  border-color: var(--nsa-green);
}
main .service-price :is(strong, b, span) { color: inherit; }

/* Keep source and local-resource cards polished and consistent across directories. */
main :is(.city-resource-card, .city-institution-card, .resource-card, .resource-result, .school-resource-card, .institution-card) {
  border-radius: 16px;
  box-shadow: 0 8px 22px rgb(14 45 73 / 7%);
}
@media (prefers-reduced-motion: reduce) {
  main :is(a.button, button.button, a.button-red, button.button-red, a.button-dark, button.button-dark, a.button-outline, button.button-outline, a.nav-cta, a.primary-cta) { transition: none; }
}
