:root {
  color-scheme: light;
  --bg: #f3f7f8;
  --ink: #0c2230;
  --muted: #617483;
  --line: #d8e4ea;
  --panel: #ffffff;
  --accent: #075f77;
  --accent-dark: #063b58;
  --accent-soft: #e5f4f7;
  --green: #2f6f4f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  min-height: 70px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-auth {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 14px;
}

.brand {
  align-items: center;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  gap: 10px;
  text-decoration: none;
}

.brand::before {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 8px;
  color: #fff;
  content: "CP";
  display: grid;
  font-size: 14px;
  font-weight: 900;
  height: 38px;
  place-items: center;
  width: 38px;
}

nav {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.local-role-picker {
  align-items: center;
  border-left: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-self: end;
  padding-left: 14px;
}

.local-role-picker span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.local-role-picker select {
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 38px;
  min-width: 118px;
  padding: 6px 28px 6px 10px;
}

nav a {
  border-radius: 7px;
  color: var(--muted);
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
}

nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.shell {
  margin: 0 auto;
  padding: 56px 24px 82px;
  width: min(1180px, 100%);
}

.hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 6.5rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 920px;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 22px 0 0;
  max-width: 740px;
}

.roots {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  margin-top: 28px;
}

.roots a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 112px;
  padding: 16px;
  text-decoration: none;
}

.roots a:hover {
  border-color: #8bbdca;
  box-shadow: 0 14px 36px rgba(12, 34, 48, 0.08);
}

.roots .featured {
  background: var(--accent-soft);
  border-color: #a7cdd7;
}

.roots span {
  color: var(--accent);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.roots strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.3;
  margin-top: 26px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, 300px) 1fr;
  justify-content: space-between;
  margin: 0 auto;
  padding: 24px;
  width: min(1180px, 100%);
}

.site-footer div {
  display: grid;
  gap: 7px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer span {
  line-height: 1.45;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: end;
}

.site-footer a {
  font-size: 0.86rem;
}

.legal-page {
  max-width: 780px;
}

.legal-page h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 32px 0 8px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-page a {
  color: var(--accent);
}

@media (max-width: 700px) {
  .topbar {
    align-items: start;
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 16px;
    position: static;
  }

  nav {
    justify-content: start;
    flex-wrap: wrap;
  }

  .local-role-picker {
    border-left: 0;
    justify-self: start;
    padding-left: 0;
  }

  .shell {
    padding: 34px 16px 56px;
  }

  .site-footer {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-footer nav {
    justify-content: start;
  }
}
