:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5e6a7d;
  --line: #dce3ed;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --brand: #0b6bcb;
  --brand-dark: #074b91;
  --notice: #eef7ff;
  --warning: #fff8e6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.85;
}

a { color: var(--brand-dark); }

.topbar {
  background: linear-gradient(135deg, #073b71, #0b6bcb);
  color: white;
  padding: 34px 20px;
}

.topbar-inner,
main,
.footer-inner {
  width: min(940px, calc(100% - 32px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  font-size: 20px;
  font-weight: 700;
}

.topbar h1 { margin: 14px 0 2px; font-size: clamp(26px, 5vw, 40px); }
.topbar p { margin: 0; color: #e5f2ff; }

nav {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav a,
.button {
  display: inline-block;
  border-radius: 9px;
  padding: 8px 13px;
  text-decoration: none;
  font-weight: 700;
}

nav a {
  color: white;
  border: 1px solid rgba(255,255,255,.42);
}

main { padding: 28px 0 52px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: 0 8px 25px rgba(23,32,51,.06);
}

.card + .card { margin-top: 20px; }
h2 { margin: 30px 0 8px; color: #123d69; font-size: 22px; }
h2:first-child { margin-top: 0; }
h3 { margin: 21px 0 6px; font-size: 18px; }
p { margin: 7px 0 13px; }
ul, ol { padding-inline-start: 24px; }
li + li { margin-top: 6px; }

.meta,
.small { color: var(--muted); font-size: 14px; }
.notice,
.warning {
  margin: 18px 0;
  border-inline-start: 5px solid var(--brand);
  border-radius: 10px;
  padding: 14px 16px;
}
.notice { background: var(--notice); }
.warning { background: var(--warning); border-color: #d89700; }

.button { background: var(--brand); color: white; padding: 11px 18px; }
.button.secondary { background: #e9f2fc; color: var(--brand-dark); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
}
th, td { border: 1px solid var(--line); padding: 10px; vertical-align: top; text-align: start; }
th { background: #f0f5fb; }

footer { border-top: 1px solid var(--line); background: white; padding: 22px 0; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

@media (max-width: 640px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  td { border-top: 0; }
  tr:first-child td:first-child { border-top: 1px solid var(--line); }
}
