:root {
  color-scheme: light;
  --background: #f7f9fc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #4c5b73;
  --primary: #0959a8;
  --primary-dark: #063f78;
  --border: #cfd8e6;
  --notice: #eaf4ff;
  --focus: #ffbf47;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-dark);
}

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

code {
  overflow-wrap: anywhere;
}

.container {
  width: min(100% - 2rem, 860px);
  margin-inline: auto;
}

.site-header {
  padding: 4.5rem 0 3.5rem;
  color: #ffffff;
  background: #083b66;
}

.site-header.compact {
  padding: 2.75rem 0 2.25rem;
}

.site-header a {
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  margin-top: 0;
}

.lede {
  max-width: 720px;
  margin: 1rem 0 0;
  font-size: 1.15rem;
}

main {
  flex: 1;
  padding-block: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.card:hover {
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0.4rem 1.2rem rgb(23 32 51 / 10%);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.breadcrumb {
  margin-bottom: 1rem;
}

.policy section {
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
}

.policy p:last-child,
.policy ul:last-child,
.policy ol:last-child {
  margin-bottom: 0;
}

.notice {
  border-left: 0.4rem solid var(--primary) !important;
  background: var(--notice) !important;
}

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

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

@media (max-width: 520px) {
  .site-header {
    padding: 3rem 0 2.5rem;
  }

  .policy section {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    transition: border-color 150ms ease, box-shadow 150ms ease;
  }
}
