:root { --navy: #0b3a5b; --text: #14324a; --muted: #5b7388; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #eef3f7; color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.seo-top { background: var(--navy); padding: 14px 18px; }
.seo-top a { color: #fff; font-weight: 700; text-decoration: none; }
.seo-main { max-width: 860px; margin: 0 auto; padding: 28px 18px 12px; }
.seo-main h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 0 0 16px; }
.seo-body { font-size: 17px; line-height: 1.65; color: #1b3346; }
.seo-links h2 { font-size: 18px; margin: 28px 0 8px; }
.seo-links ul { margin: 0; padding-left: 18px; }
.seo-links.cols, .seo-links ul.cols { columns: 2; }
@media (min-width: 800px) { .seo-links ul.cols { columns: 3; } }
.seo-links a { color: var(--navy); }
.seo-form-wrap { margin-top: 12px; border-top: 1px solid #d7e3ee; background: var(--navy); }
.seo-form { display: block; width: 100%; height: 100dvh; min-height: 640px; border: 0; }

html:has(body.seo-home),
body.seo-home {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--navy);
}
body.seo-home .seo-top,
body.seo-home .seo-main {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
body.seo-home .seo-form-wrap {
  position: fixed;
  inset: 0;
  z-index: 2;
  margin: 0;
  border: 0;
  height: 100%;
  height: 100dvh;
}
body.seo-home .seo-form { height: 100%; min-height: 100%; min-height: 100dvh; }

@media (max-width: 767px) {
  html:has(body.seo-page),
  body.seo-page {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #eef3f7;
  }
  body.seo-page {
    display: flex;
    flex-direction: column;
  }
  body.seo-page .seo-top {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
  }
  body.seo-page .seo-main {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    max-width: none;
    margin: 0;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 12px;
  }
  body.seo-page .seo-main h1 { margin: 0; font-size: 22px; }
  body.seo-page .seo-body {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }
  body.seo-page .seo-form-wrap {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    border: 0;
    height: auto;
  }
  body.seo-page .seo-form { height: 100%; min-height: 0; }
}

@media (min-width: 768px) {
  html, body { height: 100%; height: 100dvh; overflow: hidden; background: var(--navy); }
  .seo-top, .seo-main {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
  }
  .seo-form-wrap {
    position: fixed;
    inset: 0;
    z-index: 2;
    margin: 0;
    border: 0;
    height: 100%;
    height: 100dvh;
  }
  .seo-form { height: 100%; min-height: 100%; min-height: 100dvh; }
}
