/* CopStopReady site nav + global tokens. BC-SITE-NAV-1. */
:root {
  --csr-bg: #000;
  --csr-bg-card: #0a0a0a;
  --csr-fg: #fff;
  --csr-fg-dim: #aaa;
  --csr-fg-mute: #666;
  --csr-accent: #FF0000;
  --csr-accent-hover: #FF3838;
  --csr-border: #222;
  --csr-nav-height: 56px;
  --csr-max-width: 1080px;
}

/* Reserve space at top of every page so content does not slide under fixed nav. */
body { padding-top: var(--csr-nav-height); }

#csr-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--csr-nav-height);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--csr-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.csr-nav-inner {
  width: 100%;
  max-width: var(--csr-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.csr-nav-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-decoration: none;
  white-space: nowrap;
}
.csr-nav-brand .copstop { color: var(--csr-fg); }
.csr-nav-brand .ready   { color: var(--csr-accent); }

/* Mobile: hamburger button right side. */
.csr-nav-toggle {
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.csr-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--csr-fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 1px;
}
.csr-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.csr-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.csr-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu: full-screen drawer. */
.csr-nav-menu {
  position: fixed;
  top: var(--csr-nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--csr-bg);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.csr-nav-menu[data-open="true"] { transform: translateX(0); }

.csr-nav-link {
  display: block;
  padding: 16px 12px;
  color: var(--csr-fg);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--csr-border);
  letter-spacing: 0.2px;
}
.csr-nav-link:hover { color: var(--csr-accent); }
.csr-nav-link[aria-current="page"] { color: var(--csr-accent); }

/* Desktop nav: horizontal inline links. */
@media (min-width: 768px) {
  .csr-nav-toggle { display: none; }
  .csr-nav-menu {
    position: static;
    transform: none;
    flex-direction: row;
    background: transparent;
    padding: 0;
    gap: 4px;
    overflow: visible;
  }
  .csr-nav-link {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 0;
    border-radius: 4px;
    letter-spacing: 0.3px;
  }
  .csr-nav-link:hover { background: var(--csr-bg-card); }
  .csr-nav-brand { font-size: 20px; }
}

/* Prevent body scroll when mobile menu is open. */
body[data-nav-open="true"] { overflow: hidden; }

/* ============================================================ */
/* BC-SITE-GRID-BG-1: red grid background, mirrors the in-app   */
/* home-screen aesthetic. Pure CSS, no images.                  */
/* ============================================================ */
html {
  background-color: var(--csr-bg);
  background-image:
    /* gridMinor vertical (sub-squares). */
    linear-gradient(to right, rgba(34, 197, 94, 0.04) 1px, transparent 1px),
    /* gridMinor horizontal (sub-squares). */
    linear-gradient(to bottom, rgba(34, 197, 94, 0.04) 1px, transparent 1px),
    /* gridMajor vertical. */
    linear-gradient(to right, rgba(34, 197, 94, 0.12) 1px, transparent 1px),
    /* gridMajor horizontal. */
    linear-gradient(to bottom, rgba(34, 197, 94, 0.12) 1px, transparent 1px);
  background-size:
    9px 9px,
    9px 9px,
    36px 36px,
    36px 36px;
  background-attachment: fixed, fixed, fixed, fixed;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat, repeat;
}

/* Body inherits transparent so html grid shows through. */
body {
  background: transparent;
}

/* On small screens, denser grid feels right; keep 36px. */
@media (min-width: 768px) {
  html {
    background-size:
      12px 12px,
      12px 12px,
      48px 48px,
      48px 48px;
  }
}

/* Privacy page container has its own dark bg; lift it so the   */
/* grid shows through edges but content is still readable.      */
.container {
  background: rgba(0, 0, 0, 0.55);
}
