/* The frame's styles, from his approved mockup (site-3d.html at tsf-ops 65dd505): its colours, header,
   menu and footer. Styles live in files only, so the policy's style-src stays 'self'. */
:root {
  --page: #ffffff;
  --alt: #f4f6f9;
  --raised: #eef2f6;
  --line: #e3e7ee;
  --ink: #0f1b2d;
  --text: #3b4756;
  --muted: #6b7785;
  --green: #0e7c66;
  --on-green: #ffffff;
  --mint: #e3f4ee;
  --mint-ink: #0b5a49;
  --money: #00c48c;
  --band-a: #0f1b2d;
  --band-b: #0e7c66;
  --band-quiet: #cfe9e1;
  --helper: #f2f7fb;
  --helper-edge: #d7e6f2;
  --mo: #1d4f7a;
  --mo-bg: #dbe9f6;
  --flag-bg: #e3e6e8;
  --flag-ink: #3e4448;
  --ok-bg: #d8efe7;
  --ok-ink: #0b5a49;
  --navy: #1d3557;
  --illu-1: #cdeee2;
  --illu-2: #0e7c66;
  --illu-3: #00c48c;
  --illu-4: #f4f6f9;
  --illu-5: #0f1b2d;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* 100%, not the mockup's 16px: identical at the browser's default (16px to 1rem), and the reader's own
   text-size setting now scales every rem size (point 9, the CTO's ruling, 2 Dec). */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--page);
  color: var(--text);
  font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}
svg.i {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: var(--green);
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.page {
  display: none;
}
.page.on {
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand svg {
  width: 30px;
  height: 30px;
  color: var(--green);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  background: var(--green);
  color: var(--on-green);
  transition: background 0.2s;
  border: 0;
}
.btn:hover {
  background: var(--mint-ink);
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--money);
  outline-offset: 3px;
}
.btn.sm {
  padding: 10px 20px;
  font-size: 0.92rem;
}

/* Review build only: the test mark on every page (the app's C222 "Test version" line) */
.testline {
  background: var(--flag-bg);
  color: var(--flag-ink);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 4px 12px;
  letter-spacing: 0.02em;
}

/* His change 1's waiver card: the made-up mark on its own line below the buttons (the CI, 2 Dec) */
.wv-made {
  margin-top: 12px;
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 26px;
}
.navlinks a.lk {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.navlinks a.lk:hover {
  color: var(--green);
}
.navlinks a.lk.on {
  color: var(--green);
  border-bottom-color: var(--green);
}
.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--alt);
}

/* Footer */
.site-foot {
  background: var(--alt);
  padding: 56px 0 72px;
  font-size: 0.92rem;
}
.fcols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fcols h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 12px;
}
.fcols a,
.flegal a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
}
.fcols a:hover,
.flegal a:hover {
  color: var(--green);
}
.flegal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.flegal span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
}
.fline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
.fline svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

/* Reduced motion: no animation anywhere */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
html.still *,
html.still *::before,
html.still *::after {
  animation: none !important;
  transition: none !important;
}

/* Narrower screens */
@media (max-width: 1040px) {
  .navlinks {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 27, 45, 0.08);
  }
  .site-head.open .navlinks {
    display: flex;
  }
  .navlinks a.lk {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .navlinks a.lk.on {
    border-bottom-color: var(--line);
  }
  .navlinks .btn {
    margin-top: 14px;
  }
  .menu-btn {
    display: inline-flex;
  }
}
@media (max-width: 860px) {
  .wrap {
    padding: 0 20px;
  }
  .nav {
    height: 64px;
  }
  .navlinks {
    top: 64px;
    padding: 8px 20px 20px;
  }
  .fcols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
}
