:root {
  --fc-navy: #000a22;
  --fc-blue: #0b84ff;
  --fc-bg: #f6f8fb;
  --fc-surface: #ffffff;
  --fc-text: #1a2332;
  --fc-muted: #5c6b7a;
  --fc-border: #d8e0ea;
  --fc-radius: 8px;
  --fc-focus: #0b84ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--fc-bg);
  color: var(--fc-text);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--fc-blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--fc-focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--fc-navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  background: var(--fc-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-header a {
  color: #fff;
  text-decoration: none;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.875rem;
  opacity: 0.9;
}

.nav-list a[aria-current="page"] {
  text-decoration: underline;
  opacity: 1;
}

main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1 {
  font-size: 1.75rem;
  color: var(--fc-navy);
  margin-top: 0;
}

.card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  margin-bottom: 1rem;
}

button,
.btn {
  display: inline-block;
  background: var(--fc-blue);
  color: #fff;
  border: none;
  border-radius: var(--fc-radius);
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

button.secondary,
.btn.secondary {
  background: transparent;
  color: var(--fc-blue);
  border: 1px solid var(--fc-blue);
}

.status {
  padding: 0.75rem;
  border-radius: var(--fc-radius);
  margin-bottom: 1rem;
}

.status.error {
  background: #fde8e8;
  color: #9b1c1c;
}

.status.success {
  background: #e6f7ed;
  color: #0d5c2e;
}

.status.info {
  background: #e8f2ff;
  color: var(--fc-navy);
}

.muted {
  color: var(--fc-muted);
  font-size: 0.875rem;
}

.lede {
  color: var(--fc-muted);
  max-width: 36rem;
}

.hint {
  color: var(--fc-muted);
  font-size: 0.875rem;
  margin: 0.25rem 0 1rem;
}

.gate-panel {
  margin-top: 1rem;
  border: 1px solid var(--fc-border);
}

.gate-text {
  white-space: pre-wrap;
  background: #f0f3f7;
  padding: 0.75rem;
  border-radius: var(--fc-radius);
  font-size: 0.875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--fc-muted);
  font-size: 0.8125rem;
}

.message-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.message-list li {
  border-bottom: 1px solid var(--fc-border);
  padding: 0.75rem 0;
}

@media (max-width: 600px) {
  .nav-list {
    width: 100%;
  }
}
