:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #eef3f8;
  color: #172033;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, #15202b 0, #1d2c3b 18rem, #eef3f8 18rem);
}

a { color: #075bb5; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f2a900;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #111;
}

.skip-link:focus { top: 1rem; }

header,
main,
footer {
  width: min(100% - 2rem, 920px);
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 9rem;
  color: #fff;
}

header img {
  width: 72px;
  height: 72px;
  border-radius: 15px;
}

.brand-name {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
}

.brand-subtitle { margin: 0.2rem 0 0; color: #d9e4ef; }

main {
  padding: clamp(1.4rem, 4vw, 3.5rem);
  border: 1px solid #d7e0ea;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 64px rgb(18 42 65 / 15%);
}

h1 {
  margin-top: 0;
  font-size: clamp(2rem, 6vw, 3.3rem);
  line-height: 1.05;
}

h2 { margin-top: 2.2rem; font-size: 1.5rem; }
h3 { margin-top: 1.6rem; }
p, li, td, th { line-height: 1.65; }
li + li { margin-top: 0.35rem; }

.meta,
.notice {
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  background: #edf4fb;
}

.notice { border-left: 4px solid #f2a900; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.1rem;
  border-radius: 0.65rem;
  background: #075bb5;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid #075bb5;
  background: transparent;
  color: #075bb5;
}

.button-disabled {
  cursor: not-allowed;
  opacity: 0.65;
  user-select: none;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem;
  border: 1px solid #ccd7e2;
  vertical-align: top;
  text-align: left;
}

th { background: #edf4fb; }

footer {
  padding: 2rem 0 3rem;
  color: #384858;
  text-align: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

@media (prefers-color-scheme: dark) {
  :root { background: #0c1219; color: #eef5fb; }
  body { background: linear-gradient(180deg, #0b1118 0, #111d28 18rem, #0c1219 18rem); }
  main { border-color: #304151; background: #121c26; box-shadow: none; }
  a { color: #8ec5ff; }
  .meta, .notice, th { background: #1b2a38; }
  .button.secondary { border-color: #8ec5ff; color: #8ec5ff; }
  th, td { border-color: #3c4d5d; }
  footer { color: #c4d1dc; }
}
