/* Government Contracting page (page-government.php). Builds on affiliates.css. */

/* Hero background: the National Archives (Unsplash, Margaret Giatras, photo
   j3VuKymcjwc, free licence) held well back under the brand navy, darkest
   behind the text on the left. */
.gov .aff-hero {
  background:
    linear-gradient(100deg, rgba(9, 17, 37, 0.86) 0%, rgba(14, 27, 57, 0.68) 45%, rgba(14, 27, 57, 0.42) 100%),
    url("../img/gov-hero-2400.webp") right center / cover no-repeat,
    var(--bg-deeper);
}
@media (max-width: 900px) {
  .gov .aff-hero {
    background:
      linear-gradient(180deg, rgba(9, 17, 37, 0.82), rgba(14, 27, 57, 0.74)),
      url("../img/gov-hero-1200.webp") 70% center / cover no-repeat,
      var(--bg-deeper);
  }
}

/* The lighter overlay lets the photo through, so the hero text gets a
   brighter colour and a soft shadow to stay sharp over the columns. */
.gov .aff-hero__sub { color: rgba(255, 255, 255, 0.9); }
.gov .aff-hero__h,
.gov .aff-hero__sub,
.gov .aff-eyebrow { text-shadow: 0 2px 14px rgba(9, 17, 37, 0.7); }
.gov .gov-badges li { background: rgba(9, 17, 37, 0.55); }

/* Business-type pills in the hero */
.gov-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 2rem;
}
.gov-badges li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  background: hsla(38, 68%, 38%, 0.12);
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Company data: identifiers on the left, point of contact on the right */
.gov-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.gov-data {
  margin: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 30px hsla(222, 60%, 14%, 0.06);
}
.gov-data__row {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.gov-data__row:last-child { border-bottom: 0; }
.gov-data dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.gov-data dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.gov-contact {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-deeper));
  color: var(--text-on-dark);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.gov-contact p { margin: 0; }
.gov-contact__k,
.gov-contact__types {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.gov-contact__name { margin-top: 0.5rem !important; font-size: 1.25rem; font-weight: 700; color: #fff; }
.gov-contact__role { color: var(--text-on-dark-muted); margin-bottom: 0.75rem !important; }
.gov-contact a {
  display: block;
  width: fit-content;
  color: var(--text-on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.gov-contact a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.gov-contact a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }
.gov-contact__types { margin-top: 1.25rem !important; }
.gov-contact ul { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: grid; gap: 0.4rem; }
.gov-contact li { position: relative; padding-left: 1.25rem; font-size: 0.9375rem; color: var(--text-on-dark); }
.gov-contact li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.5rem;
  height: 0.28rem;
  border-left: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(-45deg);
}
.gov-contact__note { font-size: 0.875rem; line-height: 1.6; color: var(--text-on-dark-muted); }

/* Capabilities: three across */
.gov-cap__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.aff-card .gov-naics {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-text);
  letter-spacing: 0.02em;
}

/* Why us: no numbers on these cards */
.gov-why { margin-bottom: 0; }

/* Full code lists */
.gov-codes { list-style: none; margin: 0; padding: 0 1.25rem 1.25rem; display: grid; gap: 0.5rem; }
.gov-codes li { line-height: 1.5; color: var(--text-secondary); font-size: 0.9375rem; }
.gov-codes span {
  display: inline-block;
  min-width: 4.25rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .gov-cap__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .gov-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gov-cap__grid { grid-template-columns: 1fr; }
  .gov-data__row { grid-template-columns: 1fr; gap: 0.25rem; padding: 0.9rem 1.15rem; }
}
