.shell {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 24px;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-header {
  padding: 14px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 20, 24, 0.96);
}

.site-header p,
.site-footer p {
  margin: 0;
}

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

.site-nav a {
  padding: 10px 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--text);
  background: transparent;
  border-bottom-color: var(--accent-strong);
}

.page-content {
  display: grid;
  gap: 24px;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 18px 20px 0;
}

.hero-grid,
.two-column-grid,
.three-column-grid,
.simulator-grid {
  display: grid;
  gap: 24px;
}

.hero-grid,
.two-column-grid {
  grid-template-columns: 1.5fr 1fr;
}

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

.simulator-grid {
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  align-items: start;
}

.simulator-grid-primary {
  grid-template-columns: minmax(280px, 320px) minmax(480px, 1fr) minmax(240px, 266px);
  gap: 18px;
}

.site-footer {
  width: min(100%, var(--max-width));
  margin: 26px auto 0;
  padding: 0 20px;
}

.site-footer-branded {
  display: block;
  width: 100%;
  max-width: none;
  margin: 34px 0 -24px;
  padding: 2rem max(1.2rem, calc((100vw - 1240px) / 2));
  border-top: 6px solid #d89b36;
  color: #d8e9e6;
  background: #173b40;
}

.site-footer-branded p {
  max-width: 900px;
  margin: 0.3rem 0;
}

.site-footer-branded a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.footer-logo-link {
  display: inline-block;
  max-width: min(360px, 78vw);
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: white;
}

.footer-logo {
  display: block;
  width: 100%;
  height: auto;
}

.footer-brand {
  color: white;
  font-size: 1.08rem;
}

.site-brand {
  min-width: 240px;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #205f79, #1d5368);
  color: #d8eef8;
  font-size: 0.95rem;
}

.site-action-text {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .hero-grid,
  .two-column-grid,
  .three-column-grid,
  .simulator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .shell {
    padding-top: 0;
  }

  .site-header,
  .site-footer:not(.site-footer-branded) {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-content,
  .site-footer:not(.site-footer-branded) {
    padding-left: 14px;
    padding-right: 14px;
  }
}
