:root {
  --text: #1c2430;
  --muted: #56616f;
  --line: #d8dde4;
  --soft: #f3f5f8;
  --accent: #0b4a8f;
  --band: #12375e;
  --link: #0b57b0;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); }
h1, h2, h3 { line-height: 1.25; }
h2 { margin: 0 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 1.45rem; }
h3 { margin: 0 0 6px; font-size: 1.08rem; }
ol { padding-left: 1.4em; }
li + li { margin-top: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; padding: 6px 10px; background: #fff; }

/* Header and footer */
.site-header { border-bottom: 3px solid var(--accent); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: var(--text); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.site-header ul, .site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.site-header li + li, .site-footer li + li { margin-top: 0; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a:hover { color: var(--link); text-decoration: underline; }
.site-header nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; padding-top: 20px; padding-bottom: 20px; }

/* Home page */
.band { padding: 42px 0 46px; background: var(--band); color: #fff; }
.band h1 { margin: 0 0 8px; font-size: 2.6rem; }
.band p { max-width: 44rem; margin: 0 0 24px; font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; padding: 9px 20px; border: 1px solid #fff; border-radius: 4px; background: #fff; color: var(--band); font-weight: 600; text-decoration: none; }
.button:hover { background: var(--soft); }
.button.secondary { background: transparent; color: #fff; }
.button.secondary:hover { background: #fff; color: var(--band); }

main section { margin-top: 38px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px; }
.card p { margin: 0; color: var(--muted); }

/* Text pages */
main > h1 { margin: 32px 0 12px; font-size: 2rem; }
main > h2 { margin-top: 32px; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { border-bottom: 2px solid var(--line); }
tbody tr:nth-child(odd) { background: var(--soft); }
.facts th { width: 14rem; font-weight: 600; }
.table-scroll { overflow-x: auto; }
.files td:nth-child(2), .files td:nth-child(3) { white-space: nowrap; }
.files td:last-child code { font-size: 0.8em; word-break: break-all; }

/* Code */
code { font-family: var(--mono); font-size: 0.9em; }
pre { overflow-x: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); line-height: 1.5; }

td code { overflow-wrap: anywhere; }

/* On narrow screens each image becomes a block, so the checksum gets the full width. */
@media (max-width: 760px) {
  .files thead { display: none; }
  .files tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .files td { display: inline-block; padding: 0 14px 0 0; border: 0; }
  .files td:first-child, .files td:last-child { display: block; padding: 2px 0; }
}

@media (max-width: 560px) {
  .band h1 { font-size: 2.1rem; }
  .facts th { width: 40%; }
}
