:root {
  --text: #111111;
  --muted: #555555;
  --line: #dddddd;
  --light: #f6f6f6;
  --blue: #003c7c;
  --red: #c4001a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner,
.main,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand span {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  color: var(--text);
}

.nav .button {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--text);
  color: var(--text);
  border-radius: 3px;
}

.social-link {
  display: inline-flex;
  align-items: center;
}

.social-link img {
  width: 20px;
  height: 20px;
}

.hero {
  padding: 44px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.2;
}

h1 {
  max-width: 560px;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 3vw, 36px);
}

h3 {
  font-size: 20px;
}

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

.hero-image {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
}

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

.button {
  display: inline-block;
  padding: 11px 18px;
  background: var(--blue);
  color: #ffffff;
  border: 1px solid var(--blue);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.button:hover {
  text-decoration: none;
  background: #002b59;
  border-color: #002b59;
  box-shadow: 0 5px 14px rgba(0, 60, 124, 0.18);
  transform: translateY(-1px);
}

.button:active,
.nav .button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.button.secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--text);
}

.button.secondary:hover {
  background: var(--light);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
}

.nav .button:hover {
  background: var(--text);
  color: #ffffff;
  text-decoration: none;
}

.button:focus-visible,
.nav .button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 60, 124, 0.22);
  outline-offset: 3px;
}

.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.vatsim-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.vatsim-status {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.vatsim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.vatsim-card {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vatsim-card h3 {
  margin-bottom: 6px;
}

.vatsim-card dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 5px 12px;
  margin: 12px 0 0;
  font-size: 14px;
}

.vatsim-card dt {
  color: var(--muted);
}

.vatsim-card dd {
  margin: 0;
  font-weight: 700;
}

.vatsim-empty {
  padding: 18px;
  color: var(--muted);
}

.live-map {
  min-height: 430px;
  margin-top: 18px;
  border: 1px solid var(--line);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  min-width: 760px;
}

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

.data-table th {
  background: var(--light);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--muted);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.partner-card {
  padding: 22px;
  border: 1px solid var(--line);
  text-align: center;
}

.partner-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
}

.card p,
.section p {
  color: var(--muted);
}

.simple-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid #bbbbbb;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  margin-top: 40px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  padding: 28px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
}

.footer-brand img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.footer-brand span {
  max-width: 340px;
  font-size: 28px;
  line-height: 1.3;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links strong {
  margin-bottom: 4px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.small-print {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .header-inner,
  .hero-grid,
  .two-column,
  .card-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 12px;
  }

  .hero {
    padding-top: 28px;
  }

  .footer-brand img {
    width: 96px;
    height: 96px;
  }
}

.docs-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.docs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.docs-topbar .brand img {
  width: 48px;
  height: 48px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
  padding-top: 28px;
}

.docs-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.docs-sidebar strong {
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-sidebar a {
  display: block;
  padding: 9px 10px;
  border-left: 3px solid transparent;
  color: var(--text);
  font-weight: 700;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
  background: var(--light);
  border-left-color: var(--blue);
  text-decoration: none;
}

.docs-subnav {
  display: grid;
  gap: 6px;
  margin: 0 0 10px 12px;
}

.docs-subnav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.docs-content {
  max-width: 820px;
}

.docs-content h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 54px);
}

.docs-content h2 {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.docs-content p,
.docs-content li {
  color: var(--muted);
}

.docs-content ul,
.docs-content ol {
  padding-left: 22px;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.docs-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--text);
}

.docs-card:hover {
  background: var(--light);
  text-decoration: none;
}

.docs-nav-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.docs-nav-bottom .button:only-child {
  margin-left: auto;
}

@media (max-width: 860px) {
  .docs-layout,
  .docs-card-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }
}
