:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #17212b;
  background: #f6f8f9;
  --ink: #17212b;
  --muted: #5c6875;
  --blue: #1d4d8f;
  --cyan: #38a7c4;
  --line: #dce4ea;
  --panel: #ffffff;
  --green: #2c6b57;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 72px);
  color: #fff;
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(168px, 28vw, 320px);
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.1vw, 18px);
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
}

nav a,
.submenu-trigger {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.submenu-trigger {
  padding: 0;
  border: 0;
  font: inherit;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

.nav-item {
  position: relative;
  margin: -10px 0;
  padding: 10px 0;
}

.has-submenu > .submenu-trigger::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  display: grid;
  min-width: 240px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(13, 33, 52, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.submenu a {
  padding: 10px 12px;
  border-radius: 4px;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.submenu-open .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-cta,
.button,
form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-header .nav-cta {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(10px);
}

.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
}

.menu-button {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: 560px;
  padding: clamp(128px, 13vw, 178px) clamp(18px, 6vw, 88px) clamp(56px, 8vw, 104px);
  color: #fff;
  background: url("../assets/images/page-header.png") center / cover;
}

.listing-hero,
.contact-hero {
  min-height: 430px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #64d2e8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.15;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.lede {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
}

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

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel span {
  color: #b9eaf4;
  font-weight: 700;
}

.hero-panel strong {
  font-size: 30px;
  line-height: 1.1;
}

.content-band {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(46px, 7vw, 86px) clamp(18px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.content-band:nth-of-type(even) {
  background: #eef5f7;
}

.feature-band {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 46%);
  align-items: center;
}

.feature-band .section-heading,
.feature-band .section-body {
  grid-column: 1;
}

.feature-image {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.feature-image a {
  display: block;
}

.feature-image img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.feature-image-stack {
  display: grid;
  gap: 16px;
}

.feature-image-stack img {
  max-height: 260px;
}

.section-body {
  max-width: 900px;
  color: var(--muted);
  font-size: 18px;
}

.section-body p:first-child {
  margin-top: 0;
}

ul {
  margin: 0;
  padding-left: 22px;
}

li {
  margin: 8px 0;
}

.table-wrap {
  width: 100%;
  margin: 18px 0 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 16px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: #eef5f7;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.card-grid.compact {
  padding: 38px clamp(18px, 6vw, 88px);
  background: #f6f8f9;
}

.card-grid article,
.article-list article,
.contact-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.card-grid p,
.article-list p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats div {
  padding: 22px;
  border-left: 4px solid var(--cyan);
  background: #f7fbfc;
}

.stats strong {
  display: block;
  color: var(--blue);
  font-size: 34px;
}

.gallery,
.article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 6vw, 88px);
}

figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.image-placeholder {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 18px;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

figcaption,
time,
.category {
  color: var(--muted);
  font-size: 14px;
}

.article-list h2 {
  margin-top: 8px;
  font-size: 24px;
}

.article-thumb {
  display: block;
  margin: -24px -24px 18px;
}

.article-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
}

.article-list h2 a,
.text-link,
.back-link {
  color: var(--blue);
  font-weight: 800;
}

.post-page {
  position: relative;
  padding-top: 118px;
  background: #fff;
}

.post-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 118px;
  background:
    linear-gradient(rgba(0, 20, 43, 0.68), rgba(0, 20, 43, 0.68)),
    url("../assets/images/page-header.png") center top / cover no-repeat;
}

.post {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 20px;
  background: #fff;
}

.post h1 {
  margin: 12px 0;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 66px);
}

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

.post-hero {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 30px 0;
  object-fit: cover;
  border-radius: 6px;
}

.post-hero-link {
  display: block;
  cursor: pointer;
}

.post-hero-link .post-hero {
  transition: filter 160ms ease, transform 160ms ease;
}

.post-hero-link:hover .post-hero,
.post-hero-link:focus-visible .post-hero {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.post-pdf-link {
  margin-top: 10px;
}

.markdown-body {
  color: #24313d;
  font-size: 18px;
  line-height: 1.72;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 42px 0 14px;
  color: var(--ink);
}

.markdown-body h2 {
  font-size: 32px;
}

.markdown-body h3 {
  font-size: 25px;
}

.markdown-body h4 {
  font-size: 20px;
}

.markdown-body ul,
.markdown-body ol {
  margin: 18px 0 28px;
  padding-left: 28px;
}

.markdown-body li {
  margin: 8px 0;
}

.markdown-body img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.markdown-body figure {
  margin: 34px 0;
}

.markdown-body blockquote {
  max-width: 720px;
  margin: 34px auto;
  padding: 24px 30px;
  border: 1px solid #c7e8ef;
  border-top: 4px solid var(--cyan);
  border-radius: 6px;
  background: #eef8fb;
  color: #1d3f4c;
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.48;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

input {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #b7c6d3;
  border-radius: 4px;
}

.form-note {
  margin: 0;
  color: #d4f2f8;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 34px clamp(18px, 6vw, 88px);
  color: #d7e2ec;
  background: #17212b;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: #9ca9b5;
}

@media (max-width: 980px) {
  .site-header {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .brand img {
    width: clamp(166px, 52vw, 260px);
  }

  .menu-button {
    display: inline-flex;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 4px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
  }

  nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    background: rgba(13, 33, 52, 0.94);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
  }

  .nav-item {
    display: grid;
    gap: 8px;
  }

  .submenu-trigger {
    text-align: left;
  }

  .submenu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 4px 0 4px 14px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .submenu a {
    padding: 8px 0;
  }

  nav.open {
    display: flex;
  }

  .hero,
  .content-band,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .feature-band .section-heading,
  .feature-band .section-body,
  .feature-image {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-panel {
    max-width: 420px;
  }

  .card-grid,
  .gallery,
  .article-list,
  .stats {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
  }
}
