:root {
  --bg: #6f8fb3;
  --surface: #ece9d8;
  --surface-strong: #ece9d8;
  --surface-alt: #f8f6ec;
  --border: #4c4c4c;
  --text: #111111;
  --muted: #404040;
  --accent: #2b5797;
  --accent-strong: #1f4e8c;
  --success: #1f6b2b;
  --danger: #9e1c1c;
  --shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
  --container: min(1225px, calc(100vw - 16px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Tahoma, Verdana, "Segoe UI", sans-serif;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  display: flex;
  flex-direction: column;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #d4d0c8;
  border-bottom: 2px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--border);
  color: #ffffff;
  font-weight: 700;
  background: var(--accent);
}

.brand-text {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.nav-link {
  padding: 10px 14px;
  border: 2px solid var(--border);
  color: var(--text);
  background: var(--surface);
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: #ffffff;
  background: var(--accent);
  outline: none;
}

main {
  flex: 1;
}

.card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-heading {
  display: grid;
  gap: 12px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2,
.table-header h2,
.filters-header h2,
.notes-header h2 {
  margin: 0;
  line-height: 1.04;
}

.section-heading p,
.section-description,
.table-note,
.results-summary,
.notes-list,
.status-text,
.status-meta {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #ffffff;
  font-weight: 700;
  background: var(--accent);
}

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

.button-inline {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
  color: var(--text);
  background: #d4d0c8;
}

.site-footer {
  padding: 28px 0 40px;
}

.footer-content {
  color: #f3f3f3;
  font-size: 0.94rem;
}

.single-page {
  padding: 24px 0 40px;
}

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

@media (max-width: 900px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav-link {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100vw - 24px, 100%);
  }

  .brand {
    align-items: flex-start;
  }

  .brand-text {
    font-size: 0.88rem;
  }
}
