@font-face {
  font-family: "DM Sans Fallback";
  src: local("Roboto"), local("Arial");
  size-adjust: 105.06%;
  ascent-override: 93.66%;
  descent-override: 27.79%;
  line-gap-override: 0%;
  font-weight: 400 700;
  font-style: normal;
}
:root {
  --bg: #f4f7f7;
  --paper: #ffffff;
  --ink: #404040;
  --muted: #55555e;
  --line: #d5e0e1;
  --teal: #004344;
  --teal-dark: #003d3e;
  --teal-soft: #3d7376;
  --blue: #0064bc;
  --accent: #004344;
  --accent-2: #003d3e;
  --ok: #1c7a4c;
  --err: #9d1f1f;
  --radius: 4px;
  --shadow: 0 1px 4px rgba(0, 67, 68, 0.08);
  --max: 980px;
  --font: "DM Sans", "DM Sans Fallback", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
main { display: block; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--teal); }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 20; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 3px solid var(--teal);
}
.topbar {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--teal);
  min-width: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--teal);
  border-radius: 4px;
  position: relative;
  flex: none;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 12px;
  border: 2px solid #fff;
  border-bottom-width: 6px;
}
.brand-mark.has-photo {
  background: transparent;
  border-radius: 50%;
}
.brand-mark.has-photo::after {
  content: none;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { display: block; font-size: 1rem; line-height: 1.2; }
.brand-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--teal-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--teal);
  font-weight: 600;
  padding: 8px 10px;
}
.nav a[aria-current="page"], .nav a:hover { color: var(--blue); }

.btn {
  appearance: none;
  border: 0;
  border-radius: 4px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--teal); border: 1px solid var(--teal); }
.btn.ghost:hover { background: #eef5f5; color: var(--teal); }
.btn.lg { padding: 12px 18px; min-height: 44px; }
.nav a.btn.primary { color: #fff; padding: 9px 14px; }
.nav a.btn.primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--teal);
}

.hero { padding: 28px 0 8px; }
.hero-inner {
  background: #fff;
  border-left: 4px solid var(--teal);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
h1, h2, h3 { color: var(--teal); letter-spacing: -0.02em; }
h1 { font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 16px; max-width: 42rem; }
.actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section { padding: 28px 0 8px; }

.prose {
  background: #fff;
  border-left: 4px solid var(--teal);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  line-height: 1.7;
}
.prose::after { content: ""; display: table; clear: both; }
.prose-float {
  float: right;
  width: min(160px, 38%);
  max-width: 160px;
  height: auto;
  aspect-ratio: 160 / 196;
  margin: 0 0 1rem 1.2rem;
}
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.2rem; margin: 20px 0 10px; clear: both; }

.cards, .trust, .ticks, .related { list-style: none; padding: 0; margin: 0; }
.cards, .trust {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cards li, .trust li {
  background: #fff;
  border-left: 4px solid var(--teal);
  padding: 18px;
  box-shadow: var(--shadow);
}
.trust li { display: flex; flex-direction: column; gap: 6px; }
.trust .kicker { font-weight: 700; color: var(--teal); }
.ticks { display: grid; gap: 8px; }
.ticks li {
  padding: 4px 0 4px 1.4rem;
  position: relative;
  background: transparent;
  box-shadow: none;
}
.ticks li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}

.form-sec .form-wrap {
  display: grid; gap: 22px;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  background: #fff;
  border-left: 4px solid var(--teal);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form label { display: grid; gap: 6px; font-weight: 650; }
.form label small { font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line);
  border-radius: 4px; padding: 10px 12px; font: inherit; background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form em { color: var(--err); font-style: normal; font-size: .9rem; font-weight: 600; }
.form .has-err input, .form .has-err select, .form .has-err textarea { border-color: var(--err); }
.form-ok { background: #e7f6ec; color: var(--ok); padding: 12px 14px; border-radius: 4px; margin: 0; }
.form-err { background: #fde8e8; color: var(--err); padding: 12px 14px; border-radius: 4px; margin: 0; }
.form-note { margin: 0; color: var(--muted); font-size: .95rem; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

.faq details {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
  margin-bottom: 0;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--teal); }
.faq details p { margin: 0 0 14px; color: var(--muted); }

.link-cloud-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--teal);
}
.link-cloud-heading:empty {
  display: none;
  margin: 0;
}
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  max-width: 72ch;
}
.link-list li { margin: 0; }
.link-list a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--teal-soft);
  padding: 2px 0;
  line-height: 1.4;
}
.link-list a:hover,
.link-list a.is-current { color: var(--blue); }

.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a {
  display: inline-flex; min-height: 40px; align-items: center;
  padding: 8px 14px; border-radius: 4px; background: #fff;
  color: var(--teal); text-decoration: none; font-weight: 600;
  border: 1px solid var(--line);
}
.related a:hover { border-color: var(--teal); color: var(--blue); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; color: var(--teal-soft); font-size: .92rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs a { color: inherit; }

.home-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
.home-card {
  display: block; background: #fff;
  border-left: 4px solid var(--teal);
  padding: 18px 20px;
  color: inherit; text-decoration: none; box-shadow: var(--shadow);
}
.home-card strong { display: block; font-size: 1.15rem; margin-bottom: 8px; color: var(--teal); }
.home-card span { color: var(--muted); }

.cat-dir {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr 1fr;
}
.cat-dir-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: .75rem;
  max-height: 420px;
  overflow: auto;
}
.cat-dir-box h3 { margin: 0 0 .5rem; font-size: .95rem; }
.cat-dir-item {
  padding: .2rem 0;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.2;
}

.site-footer {
  margin-top: 40px;
  background: var(--teal-dark);
  color: #c7d9da;
  padding: 28px 0 96px;
  font-size: 0.9rem;
}
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1.3fr 1fr 1fr; }
.foot-brand, .foot-title { color: #fff; font-weight: 800; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copy { margin: 24px auto 0; font-size: .9rem; color: #9cb8b9; }

.dock {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 12;
  background: var(--teal-dark); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.dock a {
  color: #fff; text-decoration: none; min-height: 46px;
  display: grid; place-items: center; border-radius: 4px; font-weight: 700;
  background: var(--teal);
}
.dock a:first-child { background: var(--blue); }
.dock a:nth-child(2) { background: #265a5c; }

.page > .section:nth-child(n + 3),
.link-cloud {
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px;
    z-index: 20;
  }
  .nav.open, .nav.is-open { display: flex; }
  .form-sec .form-wrap, .form-grid, .home-grid, .foot-grid, .cat-dir { grid-template-columns: 1fr; }
  .dock { display: grid; }
  body { padding-bottom: 72px; }
  .hero-inner, .prose, .form-sec .form-wrap { padding: 18px 16px; }
  .site-footer { padding-bottom: 24px; }
}
