:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #132236;
  background: #f8f8f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #132236;
  --teal: #087c70;
  --muted: #5c6d76;
  --line: #dce5e1;
  --paper: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  line-height: 1.8;
}

a { color: #075f58; text-underline-offset: .18em; }
a:hover { color: #043d39; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--teal);
}

.header-inner, main, .site-footer-inner {
  width: min(100% - 36px, 900px);
  margin-inline: auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand { color: #fff; text-decoration: none; font-size: 1.22rem; font-weight: 750; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-inline-end: 9px; border-radius: 12px; background: var(--teal); }
.main-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: #e4f0ee; }

main { padding-block: 42px 58px; }
h1, h2, h3 { color: var(--navy); line-height: 1.4; }
h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.025em; }
h2 { margin: 34px 0 8px; font-size: 1.35rem; }
h3 { margin: 22px 0 7px; font-size: 1.08rem; }
p, ul, ol { margin-block: 10px; }
li + li { margin-top: 6px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 70ch; }
.page-meta { color: var(--muted); font-size: .94rem; }
.content-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 34px); box-shadow: 0 8px 28px #1322360b; }
.notice { padding: 15px 18px; border: 1px solid #e2c89b; border-radius: 12px; background: #fff8e9; color: #694d20; }
.notice[hidden] { display: none; }
.notice strong { display: block; margin-bottom: 4px; }
.notice[data-kind="error"] { border-color: #efc9c1; background: #fff1ee; color: #8c382c; }
.notice[data-kind="success"] { border-color: #b9ded0; background: #eef8f3; color: #185c48; }
.notice[data-kind="pending"] { border-color: #e2c89b; background: #fff8e9; color: #694d20; }
.field-group { display: grid; gap: 9px; margin-block: 18px; }
.field-group label { font-weight: 700; }
.field-group .check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.field-group input[type="checkbox"] { width: 20px; min-width: 20px; min-height: 20px; margin-top: 5px; accent-color: var(--teal); }
.field-group input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cbd8d4; border-radius: 9px; background: #fff; color: var(--navy); font: inherit; }
.field-group input:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.field-group small { color: var(--muted); }
.button-link { border: 0; cursor: pointer; font: inherit; }
.button-link:disabled { cursor: wait; opacity: .6; }
.field-group button + button { margin-inline-start: 8px; }
.field-group[hidden], [hidden] { display: none !important; }
code { display: inline-block; direction: ltr; user-select: all; }
.contact-list { padding: 0; list-style: none; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.button-link { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 9px 17px; border-radius: 9px; background: var(--teal); color: white; font-weight: 700; text-decoration: none; }
.button-link:hover { background: #06665d; color: white; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer-inner { padding-block: 22px 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 14px; gap: 6px; }
  .main-nav { gap: 10px 16px; }
  main { padding-block: 28px 42px; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .button-link { transition: color .15s ease, background-color .15s ease; }
}
