:root {
  --cp-shell-navy: #0b1524;
  --cp-shell-panel: #112035;
  --cp-shell-panel-2: #152540;
  --cp-shell-amber: #e8a020;
  --cp-shell-green: #2a9d6e;
  --cp-shell-white: #f4f1ec;
  --cp-shell-muted: rgba(244, 241, 236, 0.62);
  --cp-shell-dim: rgba(244, 241, 236, 0.38);
  --cp-shell-border: rgba(244, 241, 236, 0.12);
  --cp-shell-mono: 'IBM Plex Mono', monospace;
  --cp-shell-sans: 'Instrument Sans', sans-serif;
}

nav.cp-site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  min-height: 64px;
  padding: 0 24px;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  background: rgba(11, 21, 36, 0.97);
  border: 0;
  border-bottom: 1px solid var(--cp-shell-border);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--cp-shell-white);
  font-family: var(--cp-shell-sans);
  text-align: left;
}

.cp-site-brand,
.cp-site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cp-shell-white);
  text-decoration: none;
}

.cp-site-brand-mark {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  background: var(--cp-shell-amber);
  clip-path: polygon(0 100%, 38% 0, 100% 0, 62% 100%);
}

.cp-site-brand-text,
.cp-site-footer-brand {
  font-family: var(--cp-shell-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cp-site-brand-text span,
.cp-site-footer-brand span { color: var(--cp-shell-amber); }

.cp-site-desktop-nav,
.cp-site-actions {
  display: flex;
  align-items: center;
}

.cp-site-desktop-nav {
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.cp-site-actions {
  justify-content: flex-end;
  gap: 12px;
}

.cp-site-nav-link,
.cp-site-dropdown-trigger,
.cp-site-recover-trigger {
  min-height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--cp-shell-muted);
  font-family: var(--cp-shell-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.cp-site-nav-link:hover,
.cp-site-dropdown-trigger:hover,
.cp-site-recover-trigger:hover,
.cp-site-nav-link[aria-current="page"],
.cp-site-dropdown.is-active > .cp-site-dropdown-trigger,
.cp-site-dropdown.is-open > .cp-site-dropdown-trigger {
  color: var(--cp-shell-white);
  background: rgba(244, 241, 236, 0.06);
}

.cp-site-dropdown { position: relative; }

.cp-site-dropdown-trigger::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.cp-site-dropdown.is-open > .cp-site-dropdown-trigger::after {
  transform: translateY(2px) rotate(225deg);
}

.cp-site-dropdown-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  width: 230px;
  padding: 8px;
  display: none;
  background: var(--cp-shell-panel);
  border: 1px solid var(--cp-shell-border);
  border-top: 2px solid var(--cp-shell-amber);
  border-radius: 4px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.cp-site-dropdown.is-open > .cp-site-dropdown-menu { display: block; }

.cp-site-dropdown-menu a {
  min-height: 36px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  color: var(--cp-shell-muted);
  font-family: var(--cp-shell-sans);
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
  border-radius: 3px;
}

.cp-site-dropdown-menu a:hover,
.cp-site-dropdown-menu a[aria-current="page"] {
  color: var(--cp-shell-white);
  background: rgba(244, 241, 236, 0.06);
}

.cp-site-guides-menu { width: 270px; }
.cp-site-menu-lead { padding-bottom: 7px; border-bottom: 1px solid var(--cp-shell-border); }
.cp-site-menu-lead a { color: var(--cp-shell-amber); font-family: var(--cp-shell-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cp-site-menu-label { padding: 12px 10px 4px; color: var(--cp-shell-dim); font-family: var(--cp-shell-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.cp-site-primary {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cp-shell-amber);
  border: 1px solid var(--cp-shell-amber);
  border-radius: 3px;
  color: var(--cp-shell-navy);
  font-family: var(--cp-shell-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease;
}

.cp-site-primary:hover { background: #f0b13e; transform: translateY(-1px); }

.cp-site-recovery { position: relative; }
.cp-site-recover-trigger { color: var(--cp-shell-dim); }

.cp-site-recover-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 18px;
  background: var(--cp-shell-panel);
  border: 1px solid var(--cp-shell-border);
  border-top: 2px solid var(--cp-shell-green);
  border-radius: 4px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.46);
}

.cp-site-recover-panel[hidden] { display: none; }
.cp-site-recover-heading { margin-bottom: 4px; color: var(--cp-shell-white); font-family: var(--cp-shell-sans); font-size: 15px; font-weight: 700; }
.cp-site-recover-panel label { display: block; margin-bottom: 5px; color: var(--cp-shell-white); font-family: var(--cp-shell-sans); font-size: 14px; font-weight: 700; }
.cp-site-recover-panel p { margin: 0 0 12px; color: var(--cp-shell-muted); font-family: var(--cp-shell-sans); font-size: 12px; line-height: 1.5; }
.cp-site-pathway-recovery { display: block; padding: 12px; border: 1px solid rgba(42, 157, 110, 0.45); border-radius: 3px; background: rgba(42, 157, 110, 0.09); color: var(--cp-shell-white); font-family: var(--cp-shell-sans); text-decoration: none; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.cp-site-pathway-recovery:hover { border-color: var(--cp-shell-green); background: rgba(42, 157, 110, 0.16); transform: translateY(-1px); }
.cp-site-pathway-recovery strong { display: block; color: var(--cp-shell-green); font-family: var(--cp-shell-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.cp-site-pathway-recovery span { display: block; margin-top: 5px; color: var(--cp-shell-muted); font-size: 12px; line-height: 1.45; }
.cp-site-recover-divider { display: flex; align-items: center; gap: 8px; margin: 14px 0 12px; color: var(--cp-shell-dim); font-family: var(--cp-shell-mono); font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.cp-site-recover-divider::before, .cp-site-recover-divider::after { content: ''; height: 1px; flex: 1; background: var(--cp-shell-border); }
.cp-site-recover-divider span { text-align: center; }
.cp-site-recover-panel input { width: 100%; height: 42px; margin: 0 0 8px; padding: 0 11px; background: var(--cp-shell-navy); border: 1px solid var(--cp-shell-border); border-radius: 3px; color: var(--cp-shell-white); font: 13px var(--cp-shell-sans); }
.cp-site-recover-panel button { width: 100%; min-height: 40px; padding: 8px 12px; background: var(--cp-shell-green); border: 0; border-radius: 3px; color: var(--cp-shell-navy); font: 700 10px/1.2 var(--cp-shell-mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.cp-site-recover-status { min-height: 0; margin-top: 8px; color: var(--cp-shell-muted); font-family: var(--cp-shell-sans); font-size: 12px; line-height: 1.45; }
.cp-site-recover-status.is-error { color: #ef7777; }

.cp-site-menu-trigger {
  width: 42px;
  height: 42px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--cp-shell-border);
  border-radius: 3px;
  cursor: pointer;
}

.cp-site-menu-trigger span { width: 18px; height: 1px; display: block; background: var(--cp-shell-white); transition: transform 160ms ease, opacity 160ms ease; }
.cp-site-menu-trigger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cp-site-menu-trigger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cp-site-menu-trigger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.cp-site-mobile-menu {
  position: fixed;
  inset: 64px 0 0;
  z-index: 999;
  padding: 22px 20px 40px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
  background: rgba(11, 21, 36, 0.99);
  border-top: 1px solid var(--cp-shell-border);
}

.cp-site-mobile-menu[hidden] { display: none; }
.cp-site-mobile-group { display: grid; align-content: start; gap: 4px; }
.cp-site-mobile-label { padding: 0 8px 8px; color: var(--cp-shell-amber); font-family: var(--cp-shell-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cp-site-mobile-menu a { min-height: 40px; padding: 9px 8px; display: flex; align-items: center; color: var(--cp-shell-muted); border-radius: 3px; font-family: var(--cp-shell-sans); font-size: 14px; text-decoration: none; }
.cp-site-mobile-menu a:hover, .cp-site-mobile-menu a[aria-current="page"] { color: var(--cp-shell-white); background: rgba(244, 241, 236, 0.06); }
body.cp-site-menu-open { overflow: hidden; }

footer.cp-site-footer {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 44px 24px 22px;
  display: block;
  background: #08111e;
  border: 0;
  border-top: 1px solid var(--cp-shell-border);
  border-radius: 0;
  color: var(--cp-shell-white);
  font-family: var(--cp-shell-sans);
  text-align: left;
}

.cp-site-footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(120px, 1fr));
  gap: 42px;
}

.cp-site-footer-intro p { max-width: 420px; margin: 16px 0 10px; color: var(--cp-shell-muted); font-size: 14px; line-height: 1.65; }
.cp-site-footer-intro > span { display: block; color: var(--cp-shell-dim); font-family: var(--cp-shell-mono); font-size: 9px; line-height: 1.55; letter-spacing: 0.04em; text-transform: uppercase; }
.cp-site-footer-group { display: grid; align-content: start; gap: 9px; }
.cp-site-footer-label { margin-bottom: 3px; color: var(--cp-shell-amber); font-family: var(--cp-shell-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cp-site-footer-group a, .cp-site-footer-base a { color: var(--cp-shell-muted); font-size: 12px; line-height: 1.4; text-decoration: none; }
.cp-site-footer-group a:hover, .cp-site-footer-base a:hover { color: var(--cp-shell-white); }

.cp-site-footer-base {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--cp-shell-border);
  color: var(--cp-shell-dim);
  font-family: var(--cp-shell-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cp-site-footer-base > div { display: flex; gap: 18px; flex-wrap: wrap; }
.cp-site-footer-base a { color: var(--cp-shell-dim); font-family: inherit; font-size: inherit; }

.cp-site-header :focus-visible,
.cp-site-mobile-menu :focus-visible,
.cp-site-footer :focus-visible {
  outline: 2px solid var(--cp-shell-amber);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  nav.cp-site-header { grid-template-columns: auto 1fr auto; }
  .cp-site-desktop-nav { display: none; }
  .cp-site-menu-trigger { display: flex; }
}

@media (max-width: 700px) {
  nav.cp-site-header { min-height: 58px; padding: 0 14px; gap: 12px; }
  .cp-site-actions { gap: 8px; }
  .cp-site-recovery, .cp-site-primary { display: none; }
  .cp-site-mobile-menu { top: 58px; grid-template-columns: 1fr; }
  .cp-site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .cp-site-footer-intro { grid-column: 1 / -1; }
  .cp-site-footer-base { flex-direction: column; }
  footer.cp-site-footer { padding-bottom: 92px; }
}

@media (max-width: 390px) {
  .cp-site-brand-text { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-site-header *, .cp-site-mobile-menu * { scroll-behavior: auto !important; transition: none !important; }
}
