:root {
  --bg: #f6f8f7;
  --text: #101412;
  --muted: #596660;
  --line: rgba(16, 20, 18, 0.13);
  --panel: #ffffff;
  --panel-soft: #edf4f1;
  --accent: #0f766e;
  --accent-soft: #eef8f6;
  --success: #11643b;
  --success-bg: #ecfdf3;
  --error: #a32020;
  --error-bg: #fff1f1;
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family, "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-color: var(--line);
  background: var(--bg);
}

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.brand img {
  display: block;
  width: 12rem;
  height: 3rem;
  object-fit: contain;
}

.desktop-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.desktop-nav a,
.site-footer a {
  text-decoration: none;
}

.desktop-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.mobile-nav {
  display: none;
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-main {
  padding: 2rem 1.5rem;
}

.content-page,
.news-detail,
.resources-page,
.jobs-page {
  max-width: 64rem;
  margin: 0 auto;
}

.content-page {
  max-width: 52rem;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 650;
}

h2 {
  margin: 2.4rem 0 1rem;
  font-size: 1.45rem;
  font-weight: 600;
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

p,
li {
  font-size: 1.05rem;
  line-height: 1.75;
}

code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.muted {
  color: var(--muted);
}

.large {
  font-size: 1.12rem;
}

.eyebrow,
.step-label {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.latest-banner {
  max-width: 72rem;
  margin: -0.5rem auto 1.5rem;
}

.latest-banner a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  text-decoration: none;
}

.latest-banner span {
  font-weight: 700;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 1fr);
  gap: 3rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 0 2.5rem;
}

.hero-copy h1 {
  font-size: 2.45rem;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.12);
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero-media img.active {
  opacity: 1;
}

.button-row,
.jobs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 2.75rem;
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--text);
  cursor: pointer;
  white-space: normal;
}

.button-primary {
  background: var(--text);
  color: #ffffff;
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

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

.feature-grid,
.form-grid,
.opening-meta-grid,
.alert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-grid {
  max-width: 72rem;
  margin: 2.5rem auto 0;
}

.feature-grid article,
.article-card,
.panel,
.callout,
.portal-callout,
.notice,
.opening-card,
.application-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid article,
.article-card,
.panel,
.callout,
.notice,
.faq-list details {
  padding: 1rem;
}

.portal-callout {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-color: rgba(15, 118, 110, 0.22);
  background: var(--accent-soft);
}

.map-image {
  display: block;
  width: 12.5rem;
  border-radius: 6px;
  margin: 0 0 1.5rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
  max-width: 100%;
}

.compact-form {
  max-width: 28rem;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label,
legend {
  font-size: 0.92rem;
  font-weight: 650;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #ffffff;
  padding: 0.72rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
}

textarea {
  resize: vertical;
}

small,
.form-note {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.radio-group {
  border: 0;
  padding: 0;
  margin: 0;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.55rem 1rem 0 0;
  font-weight: 500;
}

.radio-group input,
.option-card input,
.checklist input {
  width: auto;
  margin: 0;
}

.honeypot,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-result {
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-result-success {
  border: 1px solid rgba(17, 100, 59, 0.25);
  background: var(--success-bg);
  color: var(--success);
}

.form-result-error {
  border: 1px solid rgba(163, 32, 32, 0.25);
  background: var(--error-bg);
  color: var(--error);
}

.article-list {
  display: grid;
  gap: 1.2rem;
}

.article-list.compact p {
  font-size: 0.92rem;
}

.date {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.news-detail {
  max-width: 48rem;
}

.article-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1.5rem;
}

.notice-slate {
  background: #f4f7f9;
}

.notice-amber {
  border-color: #f2c074;
  background: #fff8e8;
}

.resource-shell {
  margin-top: 2rem;
}

.resource-heading,
.resource-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 0.5rem;
}

.tab-list a {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-size: 0.92rem;
}

.tab-list a.active {
  background: var(--text);
  color: #ffffff;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 650;
}

.spec-selector {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #faf7f0 60%, #efe9df);
  padding: 1.25rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.option-grid,
.stacked-options,
.reference-list,
.checklist {
  display: grid;
  gap: 0.8rem;
}

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

.option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.9rem;
}

.option-card span {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.option-card.active {
  border-color: var(--text);
  background: #ffffff;
}

.reference-list {
  padding-left: 0;
  list-style: none;
}

.reference-list li {
  display: grid;
  gap: 0.2rem;
  font-size: 0.92rem;
}

.reference-list span {
  color: var(--muted);
  font-size: 0.8rem;
}

.checklist label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.6rem;
}

.checklist small {
  grid-column: 2;
}

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

.alert-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
}

.jobs-page {
  max-width: 72rem;
}

.jobs-intro {
  max-width: 52rem;
}

.opening-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.opening-card {
  overflow: hidden;
}

.opening-card summary {
  cursor: pointer;
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem;
}

.opening-card summary strong {
  font-size: 1.45rem;
}

.opening-body {
  border-top: 1px solid var(--line);
  padding: 1.25rem;
}

.opening-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.opening-meta-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 0.85rem;
}

.opening-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.opening-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.application-panel {
  margin-top: 3rem;
  padding: 2rem;
}

.full-width {
  width: 100%;
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav summary {
    cursor: pointer;
    font-weight: 700;
  }

  .mobile-nav nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 10;
    display: grid;
    gap: 1rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    padding: 1rem 1.5rem;
  }

  .site-footer,
  .resource-heading,
  .resource-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero,
  .feature-grid,
  .form-grid,
  .spec-grid,
  .option-grid,
  .alert-grid,
  .opening-columns,
  .opening-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .application-panel {
    padding: 1.2rem;
  }

  .tab-list {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .tab-list a {
    border-radius: 6px;
  }
}
