/* ── Site-wide header and footer ──────────────────────────────────────────
   Injected into every static page by lib/chrome.js, and mirrored by
   src/components/Chrome.jsx for the React homepage.

   Every selector is namespaced .oc-ch* on purpose. The pages this lands in
   were each written standalone with their own CSS conventions (.ed, .solid-bg,
   editorial.css, system.css…), so the chrome has to be unable to collide with
   any of them, in either direction.
   ------------------------------------------------------------------------ */

:root {
  --och-bg:      #060d1a;
  --och-surface: #0b1526;
  --och-line:    rgba(255, 255, 255, .1);
  --och-text:    #f5f8fb;
  --och-muted:   #8fa6bd;
  --och-accent:  #00c5a1;
  --och-ink:     #05292b;
}

.oc-ch-header,
.oc-ch-header * { box-sizing: border-box; }
.oc-ch-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--och-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--och-line);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.oc-ch-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  flex-wrap: wrap;
}

.oc-ch-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--och-text);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  margin-right: auto;
}
.oc-ch-brand img { height: 26px; width: auto; display: block; }

.oc-ch-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 26px);
  flex-wrap: wrap;
}
.oc-ch-nav a {
  box-sizing: border-box;
  line-height: 1.3;
  color: var(--och-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.oc-ch-nav a:hover,
.oc-ch-nav a:focus-visible { color: var(--och-text); border-bottom-color: var(--och-accent); }
.oc-ch-nav a[aria-current="page"] { color: var(--och-text); border-bottom-color: var(--och-accent); }

.oc-ch-cta {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  line-height: 1.2;
  background: var(--och-accent);
  color: var(--och-ink) !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 18px !important;
  border-radius: 999px;
  min-height: 40px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.oc-ch-cta:hover,
.oc-ch-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px var(--och-accent);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.oc-ch-footer {
  background: var(--och-surface);
  border-top: 1px solid var(--och-line);
  color: var(--och-muted);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 0;
}
.oc-ch-footer-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 40px) 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 820px) {
  .oc-ch-footer-in { grid-template-columns: 1fr 1fr; }
  .oc-ch-footer-brand { grid-column: 1 / -1; }
}

.oc-ch-footer-brand p { margin: 12px 0 0; max-width: 42ch; color: var(--och-muted); }
.oc-ch-footer-brand .oc-ch-brand { margin-right: 0; }

.oc-ch-footer h4 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--och-text);
  margin: 0 0 14px;
  font-weight: 700;
}
.oc-ch-footer ul { list-style: none; margin: 0; padding: 0; }
.oc-ch-footer li { margin-bottom: 9px; }
.oc-ch-footer a { color: var(--och-muted); text-decoration: none; }
.oc-ch-footer a:hover, .oc-ch-footer a:focus-visible { color: var(--och-accent); }

.oc-ch-assure {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.oc-ch-assure-in {
  border-top: 1px solid var(--och-line);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 13.5px;
}
.oc-ch-assure-in span { display: inline-flex; align-items: center; gap: 8px; }
.oc-ch-assure-in span::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--och-accent);
  flex: none;
}

.oc-ch-legal {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 36px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--och-muted);
  border-top: 1px solid var(--och-line);
  padding-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .oc-ch-cta, .oc-ch-nav a { transition: none; }
  .oc-ch-cta:hover { transform: none; }
}
