:root {
  color-scheme: light dark;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #edf2f1;
  --text: #17232b;
  --muted: #5f6e77;
  --border: #d7e0df;
  --accent: #107a62;
  --accent-dark: #0b604d;
  --blue: #105289;
  --orange: #c8652d;
  --shadow: 0 18px 48px rgba(23, 35, 43, .14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10171d;
    --surface: #151f27;
    --surface-soft: #1d2a33;
    --text: #edf4f6;
    --muted: #a9b7bf;
    --border: #273742;
    --accent: #3abf98;
    --accent-dark: #76d8bd;
    --blue: #6aa9df;
    --orange: #e39255;
    --shadow: 0 18px 48px rgba(0, 0, 0, .34);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 20;
}

@supports not (background: color-mix(in srgb, black 50%, transparent)) {
  .site-header {
    background: var(--bg);
  }
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  padding: 9px 12px;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  background: var(--surface-soft);
  color: var(--text);
}

.portal-hero,
.page-hero,
.split-section,
.image-feature,
.card-grid,
.service-strip,
.news-list,
.article-page,
.content-page {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 40px;
  padding-right: 40px;
}

.portal-hero {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding-bottom: 54px;
  padding-top: 64px;
}

.page-hero {
  padding-bottom: 40px;
  padding-top: 70px;
}

.page-hero.narrow,
.content-page,
.article-page {
  max-width: 900px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 6vw, 70px);
}

h2 {
  font-size: clamp(28px, 3.6vw, 46px);
}

h3 {
  font-size: 22px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  margin: 22px 0 0;
  max-width: 62ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button:hover,
.button:focus,
.text-link:hover,
.text-link:focus {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.button.primary:hover,
.button.primary:focus {
  background: var(--accent-dark);
  color: #fff;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.latest-panel {
  background: linear-gradient(135deg, #17232b, #123328);
  border-radius: 8px;
  color: #fff;
  padding: 28px;
}

@media (prefers-color-scheme: dark) {
  .latest-panel {
    background: linear-gradient(135deg, #17232b, #0e3a2e);
    border: 1px solid #29443c;
  }
}

.latest-panel span {
  color: #77d6bf;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.latest-panel h2 {
  font-size: 30px;
}

.latest-panel p {
  color: #d6e2e6;
}

.service-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-bottom: 70px;
}

.service-strip a,
.card-grid > a,
.card-grid > article,
.news-card a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: block;
  min-height: 128px;
  padding: 20px;
}

.service-strip a:hover,
.service-strip a:focus,
.card-grid > a:hover,
.card-grid > a:focus,
.news-card a:hover,
.news-card a:focus {
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(16, 122, 98, .12);
}

.service-strip span,
.news-card span {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.service-strip strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
}

.split-section {
  align-items: start;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr);
  padding-bottom: 82px;
  padding-top: 72px;
}

.text-stack p,
.content-page p,
.article-body p,
.article-body li,
.card-grid p {
  color: var(--muted);
  font-size: 17px;
}

.image-feature {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  padding-bottom: 70px;
}

.image-feature img,
.article-page > img,
.news-card img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  gap: 16px;
  padding-bottom: 76px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 80px;
}

.news-card a {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.news-card img {
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}

.news-card span,
.news-card h2,
.news-card p {
  margin-left: 22px;
  margin-right: 22px;
}

.news-card span {
  margin-top: 20px;
}

.news-card h2 {
  font-size: 28px;
}

.news-card p {
  color: var(--muted);
  margin-bottom: 22px;
}

.article-page {
  padding-bottom: 82px;
  padding-top: 70px;
}

.article-page > img {
  margin-top: 34px;
  width: 100%;
}

.article-body {
  margin-top: 34px;
}

.article-body h2 {
  font-size: 30px;
  margin-top: 34px;
}

.article-body ul {
  padding-left: 22px;
}

.content-page {
  padding-bottom: 82px;
}

.content-page h2 {
  font-size: 34px;
  margin-bottom: 18px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: center;
  min-height: 86px;
  padding: 20px;
}

.site-footer span {
  color: var(--text);
  font-weight: 800;
}

.site-footer a {
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    position: static;
  }

  .site-nav {
    overflow-x: auto;
    width: 100%;
  }

  .portal-hero,
  .split-section,
  .image-feature,
  .card-grid.two,
  .card-grid.three,
  .news-list {
    grid-template-columns: 1fr;
  }

  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-hero,
  .page-hero,
  .split-section,
  .image-feature,
  .card-grid,
  .service-strip,
  .news-list,
  .article-page,
  .content-page {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 540px) {
  .service-strip {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 17px;
  }
}
