/* OLSA — single stylesheet. No external resources. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #f3f7fa;
  --text: #16222b;
  --muted: #4a5b67;
  --accent: #0a5f9e;
  --accent-strong: #074a7a;
  --border: #d6e0e7;
  --focus: #0a5f9e;

  --measure: 72ch;
  --gutter: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10171d;
    --surface: #18232b;
    --text: #e8eef3;
    --muted: #a9b8c4;
    --accent: #7cc4ff;
    --accent-strong: #a9d8ff;
    --border: #2b3a45;
    --focus: #7cc4ff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + (2 * var(--gutter)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Links */

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link */

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 0 0 0.45rem 0.45rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-130%);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--bg);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul,
.footer-links,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  padding-block: 0.15rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* Main content */

.site-main {
  padding-block: 2.25rem 3rem;
}

/* The skip link moves focus to <main tabindex="-1">; a focus ring around a
   non-interactive landmark is noise, so suppress it there only. */
.site-main:focus {
  outline: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.015em;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

.section {
  margin-top: 2.4rem;
}

.section > :last-child {
  margin-bottom: 0;
}

.effective {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.steps {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.steps li + li {
  margin-top: 0.35rem;
}

.site-main ul {
  padding-left: 1.35rem;
}

.site-main ul li + li {
  margin-top: 0.25rem;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

/* Notice block */

.notice {
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 0.45rem 0.45rem 0;
}

/* Tables */

.table-scroll {
  margin-block: 1.1rem;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.data-table th,
.data-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--surface);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.data-table tbody th {
  font-weight: 600;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table code {
  white-space: nowrap;
}

/* 404 links */

/* .site-main ul above adds list padding; this list is navigation, not prose. */
.site-main .link-list {
  margin-top: 0.5rem;
  padding-left: 0;
}

.link-list a {
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1.6rem 2rem;
  background: var(--surface);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--accent);
}

.footer-links {
  gap: 0.35rem 1.1rem;
}

/* Long contact addresses must wrap instead of widening the page on phones. */
.footer-links li {
  min-width: 0;
}

.footer-links a {
  overflow-wrap: anywhere;
}

.footer-meta {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

/* Visually hidden but available to assistive technology */

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

/* Phones */

@media (max-width: 40rem) {
  .header-inner {
    gap: 0.4rem 1rem;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
  }

  .site-nav ul {
    gap: 0.35rem 1rem;
  }

  .site-main {
    padding-block: 1.6rem 2.5rem;
  }

  .section {
    margin-top: 1.9rem;
  }

  .lead {
    font-size: 1.07rem;
  }

  .data-table {
    font-size: 0.92rem;
  }
}
