:root {
  --gims-primary: #0f2740;
  --gims-accent: #147a8a;
  --gims-highlight: #d59c3d;
  --gims-text: #1c2733;
  --gims-subtle: #e6eef2;
  --gims-surface: #f7fbfd;
  --gims-surface-strong: #ffffff;
  --gims-border: rgba(15, 39, 64, 0.12);
  --gims-shadow: 0 24px 56px rgba(15, 39, 64, 0.12);
  /* typography tokens: h1 52/700, h2 34/700, h3 24/650, h4 18/600, body 18/450, small 14/500, Merriweather, Inter */
}

html {
  background: var(--gims-surface);
}

body.site-body {
  background:
    radial-gradient(circle at top right, rgba(21, 122, 138, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfeff 0%, #eef5f7 100%);
  color: var(--gims-text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 18px;
  font-weight: 450;
  min-height: 100vh;
}

.site-main {
  padding-bottom: 4rem;
}

.site-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.identity-band {
  background: linear-gradient(90deg, rgba(15, 39, 64, 0.98), rgba(20, 122, 138, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.identity-grid {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.identity-mark {
  align-items: center;
  color: #fff;
  display: inline-flex;
  gap: 1rem;
  text-decoration: none;
}

.identity-mark strong,
.footer-title,
.hero-copy h1,
.page-title,
.content-stream h1,
.content-stream h2,
.content-stream h3,
.content-stream h4,
.listing-card h3 {
  font-family: "Merriweather", Georgia, serif;
}

.identity-mark strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.identity-mark small {
  color: rgba(255, 255, 255, 0.74);
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.identity-badge {
  align-items: center;
  background: linear-gradient(180deg, var(--gims-highlight), #f3c674);
  border-radius: 999px;
  color: #2b1b00;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.utility-search input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin: 0;
  padding-inline: 1rem;
}

.nav-band {
  background: var(--gims-primary);
  box-shadow: 0 10px 24px rgba(15, 39, 64, 0.18);
}

.nav-band__inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 4rem;
}

.nav-band__tagline {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
}

.desktop-nav ul,
.mobile-nav__list,
.footer-links,
.breadcrumbs ol,
.service-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.desktop-nav a,
.desktop-nav summary,
.mobile-nav a,
.mobile-nav summary {
  color: #fff;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav summary:hover,
.mobile-nav a:hover,
.mobile-nav summary:hover,
.footer-links a:hover,
.breadcrumbs a:hover {
  color: var(--gims-highlight);
}

.mobile-nav {
  display: none;
}

.mobile-nav summary,
.desktop-nav summary {
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown ul {
  background: #fff;
  border: 1px solid var(--gims-border);
  border-radius: 0.85rem;
  box-shadow: var(--gims-shadow);
  min-width: 13rem;
  padding: 0.5rem;
  position: absolute;
  z-index: 5;
}

.desktop-nav .nav-dropdown ul {
  top: calc(100% + 0.35rem);
}

.nav-dropdown ul a {
  color: var(--gims-primary);
  display: block;
  padding: 0.55rem 0.75rem;
}

.hero-panel {
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.hero-panel__grid {
  align-items: stretch;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.hero-copy,
.hero-media {
  border-radius: 1.5rem;
  overflow: hidden;
}

.hero-copy {
  background: linear-gradient(160deg, var(--gims-primary), #12385c);
  box-shadow: var(--gims-shadow);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
}

.hero-eyebrow,
.listing-card__eyebrow,
.service-sidebar__eyebrow,
.page-meta {
  color: var(--gims-highlight);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.hero-copy h1,
.page-title {
  color: var(--gims-primary);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  font-weight: 700;
  margin-top: 0;
}

.hero-summary,
.article-summary,
.footer-copy {
  color: rgba(28, 39, 51, 0.72);
  line-height: 1.7;
}

.hero-copy .hero-summary {
  color: rgba(255, 255, 255, 0.8);
}

.hero-media img,
.listing-card__image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.page-section {
  padding-bottom: 2rem;
}

.page-layout,
.article-grid {
  align-items: start;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
}

.page-layout__sidebar {
  position: sticky;
  top: 1.25rem;
}

.service-sidebar,
.document-card,
.toc-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--gims-border);
  border-radius: 1.4rem;
  box-shadow: var(--gims-shadow);
}

.service-sidebar {
  padding: 1.25rem;
}

.service-sidebar__header h2 {
  color: var(--gims-primary);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.service-sidebar li + li,
.footer-links li + li {
  margin-top: 0.45rem;
}

.service-sidebar a,
.footer-links a,
.breadcrumbs a,
.listing-card a,
.content-stream a,
.toc-panel a {
  color: var(--gims-accent);
  text-decoration: none;
}

.service-sidebar a {
  border-bottom: 1px solid rgba(15, 39, 64, 0.05);
  color: var(--gims-primary);
  display: block;
  padding-bottom: 0.65rem;
  padding-top: 0.65rem;
}

.document-card {
  padding: 1.65rem;
}

.document-card--hero {
  margin-top: -2rem;
  position: relative;
}

.page-title {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
  margin-top: 0;
}

.variant-longform {
  border-top: 6px solid var(--gims-accent);
}

.variant-data {
  border-top: 6px solid var(--gims-highlight);
}

.variant-schedule {
  border-top: 6px solid #89b7c0;
}

.variant-compact,
.variant-plain {
  border-top: 4px solid rgba(15, 39, 64, 0.16);
}

.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumbs li {
  color: rgba(28, 39, 51, 0.7);
  font-size: 14px;
  font-weight: 500;
}

.breadcrumbs li + li::before {
  color: rgba(28, 39, 51, 0.4);
  content: "/";
  margin-right: 0.5rem;
}

.content-stream > * + *,
.content-list li + li {
  margin-top: 1rem;
}

.content-stream h1 {
  font-size: 52px;
  font-weight: 700;
}

.content-stream h2 {
  font-size: 34px;
  font-weight: 700;
}

.content-stream h3 {
  font-size: 24px;
  font-weight: 650;
}

.content-stream h4 {
  font-size: 18px;
  font-weight: 600;
}

.content-stream p,
.content-stream li,
.content-stream td,
.content-stream th,
.content-stream blockquote {
  color: var(--gims-text);
  font-size: 18px;
  font-weight: 450;
  line-height: 1.78;
}

.content-stream img {
  border-radius: 1rem;
  height: auto;
  max-width: 100%;
}

.media-figure,
.article-lead-image {
  margin: 1.4rem 0;
}

.media-figure figcaption {
  color: rgba(28, 39, 51, 0.58);
  font-size: 14px;
  font-weight: 500;
  margin-top: 0.55rem;
}

.table-wrap {
  overflow-x: auto;
}

.content-table {
  background: var(--gims-surface-strong);
  border-collapse: collapse;
  width: 100%;
}

.content-table th,
.content-table td {
  border: 1px solid rgba(15, 39, 64, 0.1);
  vertical-align: top;
}

.content-table th {
  background: var(--gims-subtle);
  color: var(--gims-primary);
}

.content-list {
  padding-left: 1.3rem;
}

.content-stream blockquote {
  border-left: 4px solid var(--gims-highlight);
  margin-left: 0;
  padding-left: 1rem;
}

.embed-frame,
.generic-block {
  background: var(--gims-subtle);
  border-radius: 1rem;
  padding: 1rem;
}

.gallery-grid,
.listing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.listing-grid--horizontal {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.listing-grid--minimal .listing-card {
  padding: 1rem 1.1rem;
}

.listing-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(230, 238, 242, 0.7));
  border: 1px solid var(--gims-border);
  border-radius: 1.2rem;
  box-shadow: 0 18px 34px rgba(15, 39, 64, 0.08);
  padding: 1.2rem;
}

.listing-card h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 0.7rem;
  margin-top: 0;
}

.listing-card__image {
  border-radius: 0.95rem;
  height: 12rem;
  margin-bottom: 0.9rem;
}

.read-more {
  font-size: 14px;
  font-weight: 500;
}

.article-shell {
  display: grid;
  gap: 1rem;
}

.article-grid {
  grid-template-columns: minmax(0, 1fr);
}

.toc-panel {
  padding: 1rem 1.1rem;
}

.toc-panel strong {
  color: var(--gims-primary);
  display: block;
  margin-bottom: 0.65rem;
}

.toc-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-panel li + li {
  margin-top: 0.4rem;
}

.toc-mobile {
  display: none;
}

.article-card {
  max-width: 860px;
}

.article-summary {
  margin-bottom: 1rem;
}

.article-lead-image {
  float: right;
  margin-left: 1.5rem;
  max-width: 20rem;
}

.site-footer {
  background: var(--gims-primary);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 3rem;
  padding-bottom: 2rem;
  padding-top: 2.25rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.65rem;
  margin-top: 0;
}

.footer-copy,
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
}

small {
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 980px) {
  .identity-grid,
  .hero-panel__grid,
  .page-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-layout__sidebar {
    position: static;
  }

  .desktop-nav,
  .nav-band__tagline {
    display: none;
  }

  .mobile-nav {
    display: block;
    width: 100%;
  }

  .mobile-nav summary {
    color: #fff;
  }

  .mobile-nav__list {
    background: rgba(9, 22, 36, 0.96);
    border-radius: 1rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
  }

  .mobile-nav__list li + li {
    margin-top: 0.35rem;
  }

  .document-card--hero {
    margin-top: 0;
  }

  .toc-mobile {
    display: block;
  }

  .toc-desktop {
    display: none;
  }

  .article-lead-image {
    float: none;
    margin-left: 0;
    max-width: 100%;
  }
}

@media (min-width: 981px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc-mobile {
    display: none;
  }
}

@media print {
  .identity-band,
  .nav-band,
  .service-sidebar,
  .site-footer,
  .toc-panel {
    display: none !important;
  }

  body.site-body {
    background: #fff;
    color: #000;
  }

  .document-card {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* Compact header: keep nav/header under 33% of viewport (verify-deploy) */
.site-header .desktop-nav > ul{flex-wrap:nowrap !important;max-height:52px;overflow:hidden}
.site-header .nav-band{padding-top:6px;padding-bottom:6px}
.site-header .identity-band{padding-top:8px;padding-bottom:8px}
.site-header .identity-mark small{display:none}
