:root {
  color-scheme: light;
  color: #0f172a;
  background: #f7f9fc;
  font-family: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 35%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 30%),
    #f7f9fc;
  color: #111827;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: #1d4ed8;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #2563eb;
  text-decoration: underline;
}

button,
input[type='submit'],
button[type='submit'],
.arrow-button {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  background: #2563eb;
  color: #fff;
  border-radius: 0.85rem;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

button:hover,
input[type='submit']:hover,
button[type='submit']:hover,
.arrow-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.14);
}

button:focus-visible,
input[type='submit']:focus-visible,
button[type='submit']:focus-visible,
.arrow-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.page__header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  max-height: 12rem;
  overflow: hidden;
}

.header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.header__logo-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo-links::before {
  content: 'SOAR Works';
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-menu ul,
.page-menu ul.menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.page-menu a {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(59, 130, 246, 0.08);
  color: #1e293b;
  font-weight: 600;
}

.page-menu a:hover,
.page-menu a:focus {
  background: rgba(37, 99, 235, 0.14);
}

.gov-banner,
.gov-banner__accordion {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

.gov-banner p {
  margin: 0;
  color: #334155;
}

.gov-banner strong {
  color: #0f172a;
}

.gov-banner__accordion-image,
.gov-banner__accordion-image--inline {
  max-width: 3rem;
  width: 3rem;
  height: auto;
}

.gov-banner__accordion-image--inline {
  width: 1em;
  vertical-align: middle;
  margin: 0 0.35rem;
}

.page__main {
  padding: 2.25rem 0 3rem;
}

.page__content-body {
  display: grid;
  gap: 1.75rem;
}

.page__content-body > *:first-child {
  margin-top: 0;
}

article,
section,
main {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  padding: 2rem;
}

.page__content-body > article:first-child,
.page__content-body > section:first-child {
  padding-top: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #0f172a;
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 2.4vw, 3rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
}

p,
li,
dt,
dd {
  color: #334155;
  margin: 0;
}

p + p,
li + li,
dd + dd,
.block + .block {
  margin-top: 1rem;
}

ul,
ol {
  margin: 1rem 0 1rem 1.5rem;
  color: #334155;
}

ul li,
ol li {
  margin-bottom: 0.75rem;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.25rem;
  border-left: 4px solid #2563eb;
  background: rgba(37, 99, 235, 0.05);
  color: #0f172a;
  border-radius: 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  overflow: hidden;
  border-radius: 1rem;
}

table th,
table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

table th {
  background: #f8fafc;
  font-weight: 700;
  text-align: left;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 1rem;
  overflow-x: auto;
}

input[type='text'],
input[type='search'],
textarea,
select,
.form-text,
.form-textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.95rem 1rem;
  color: #0f172a;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input[type='text']:focus,
input[type='search']:focus,
textarea:focus,
select:focus,
.form-text:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.page__content-body .node-teaser,
.node-teaser--key-resource {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
}

.node-teaser--key-resource h2,
.node-teaser--key-resource h3,
.node-teaser--key-resource h4 {
  margin-bottom: 0.5rem;
}

.node-teaser--key-resource a {
  color: #1d4ed8;
}

.node-teaser--key-resource a:hover {
  text-decoration: underline;
}

.site-form {
  width: 100%;
}

.search--text,
.search--submit {
  width: 100%;
}

.search--text {
  margin-bottom: 0.75rem;
}

.search--submit {
  display: flex;
  justify-content: flex-start;
}

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

  .page-menu ul,
  .page-menu ul.menu {
    justify-content: flex-end;
  }

  .search--text {
    margin-bottom: 0;
  }

  .search--submit {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .header__main-inner,
  .page-menu ul,
  .page-menu ul.menu {
    flex-direction: column;
    align-items: stretch;
  }

  .page-menu a {
    width: 100%;
  }

  .gov-banner {
    padding: 1rem;
  }

  article,
  section {
    padding: 1.5rem;
  }
}
