/* Canonical chrome for every public secondary website page. The two homepages are explicit exceptions. */

:root {
  --secondary-chrome-header-height: 76px;
  --secondary-chrome-frame: var(--vf-frame, 1400px);
  --secondary-chrome-pad: clamp(1.15rem, 4vw, 3.5rem);
  --secondary-chrome-line: var(--vf-line-accent, rgba(103, 232, 249, 0.24));
  --secondary-chrome-text: var(--vf-text, #ffffff);
  --secondary-chrome-muted: var(--vf-muted, rgba(255, 255, 255, 0.78));
  --secondary-chrome-accent: var(--vf-cyan, #67e8f9);
  --secondary-chrome-surface: var(--vf-surface, rgba(255, 255, 255, 0.07));
}

.secondary-chrome-frame {
  width: min(var(--secondary-chrome-frame), 100%);
  margin-inline: auto;
  padding-inline: var(--secondary-chrome-pad);
}

.secondary-chrome-header {
  position: sticky;
  z-index: 800;
  top: 0;
  width: 100vw;
  height: var(--secondary-chrome-header-height);
  box-sizing: border-box;
  border-bottom: 1px solid var(--secondary-chrome-line);
  background: rgba(26, 55, 62, 0.88);
  box-shadow: 0 12px 38px rgba(4, 18, 32, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.secondary-chrome-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.secondary-chrome-brand {
  display: inline-flex;
  min-width: max-content;
  min-height: 44px;
  align-items: center;
  gap: 0.85rem;
  color: var(--secondary-chrome-text);
  text-decoration: none;
}

.secondary-chrome-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(103, 232, 249, 0.3));
}

.secondary-chrome-brand__name,
.secondary-chrome-brand__role {
  display: block;
  line-height: 1.05;
}

.secondary-chrome-brand__name {
  color: var(--secondary-chrome-text);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.secondary-chrome-brand__role {
  margin-top: 0.28rem;
  color: var(--secondary-chrome-accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.secondary-chrome-nav {
  display: flex;
  min-width: 0;
  margin-left: auto;
  align-items: center;
  gap: 0.25rem;
}

.secondary-chrome-nav a,
.secondary-chrome-footer__links a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--secondary-chrome-muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.secondary-chrome-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
}

.secondary-chrome-nav a:hover,
.secondary-chrome-nav a:focus-visible {
  background: var(--secondary-chrome-surface);
  color: var(--secondary-chrome-text);
}

.secondary-chrome-nav a.secondary-chrome-access,
.secondary-chrome-footer__links a.secondary-chrome-access,
.secondary-chrome-nav a.secondary-chrome-access:hover,
.secondary-chrome-nav a.secondary-chrome-access:focus-visible,
.secondary-chrome-footer__links a.secondary-chrome-access:hover,
.secondary-chrome-footer__links a.secondary-chrome-access:focus-visible {
  background: var(--secondary-chrome-accent);
  color: var(--vf-on-cyan, #0b1f22);
  box-shadow: 0 18px 40px rgba(103, 232, 249, 0.16);
}

.secondary-chrome-minima {
  display: inline-flex;
  min-width: max-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(103, 232, 249, 0.5);
  border-radius: 999px;
  background: rgba(10, 28, 38, 0.5);
  color: var(--secondary-chrome-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(103, 232, 249, 0.11);
}

.secondary-chrome-minima strong {
  margin-left: 0.28rem;
  color: var(--secondary-chrome-text);
}

body.secondary-chrome-page .secondary-chrome-footer {
  width: 100vw;
  height: 88px;
  box-sizing: border-box;
  margin-top: auto;
  padding: 0 !important;
  border-top: 1px solid var(--secondary-chrome-line);
  border-color: var(--secondary-chrome-line) !important;
  background: rgba(26, 55, 62, 0.88) !important;
}

.secondary-chrome-footer__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.secondary-chrome-footer p {
  margin: 0;
  color: var(--secondary-chrome-muted);
  font-size: 0.78rem;
}

.secondary-chrome-footer__signature {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--secondary-chrome-muted);
  font-weight: 750;
  text-decoration: none;
}

.secondary-chrome-footer__signature:hover,
.secondary-chrome-footer__signature:focus-visible {
  color: var(--secondary-chrome-accent);
}

.secondary-chrome-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.secondary-chrome-footer__links a {
  padding: 0.45rem 0.7rem;
}

.secondary-chrome-footer__links a:hover,
.secondary-chrome-footer__links a:focus-visible {
  color: var(--secondary-chrome-accent);
}

.secondary-chrome-footer__links .secondary-chrome-minima {
  padding: 0.45rem 0.7rem;
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(10, 28, 38, 0.5);
  color: var(--secondary-chrome-muted);
  font-size: 0.62rem;
}

body.secondary-chrome-page .site-chrome-main--links,
body.secondary-chrome-page .site-chrome-main--document {
  padding-top: 0;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

body.secondary-chrome-page .new-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

body.secondary-chrome-page .new-access-main {
  flex: 1;
}

body.secondary-chrome-page {
  overflow-x: clip;
}

html:has(body.secondary-chrome-page) {
  overflow-x: clip;
}

@media (max-width: 700px) {
  body.secondary-chrome-page .agent-fab {
    right: 22px !important;
  }

  .secondary-chrome-brand img {
    width: 40px;
    height: 40px;
  }

  .secondary-chrome-brand__name {
    font-size: 0.92rem;
    letter-spacing: 0.11em;
  }

  /* Phone footer (founder 2026-09-03, "the elements must stay well aligned on all devices"):
     one centred column, the content sets the height, every link the same height, one gap, and
     the Minima badge on its own centred line rather than wrapping wherever the row breaks. */
  .secondary-chrome-footer__inner {
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 1.15rem;
  }

  body.secondary-chrome-page .secondary-chrome-footer {
    height: auto;
    min-height: 164px;
  }

  .secondary-chrome-footer p {
    text-align: center;
  }

  .secondary-chrome-footer__links {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }

  .secondary-chrome-footer__links a {
    min-height: 44px; /* the same 44px target on every width */
    padding: 0.4rem 0.7rem;
  }

  /* A zero-height full-width item placed just before the badge breaks the row there, so the
     badge always starts a new centred line instead of landing wherever the wrap happens. */
  .secondary-chrome-footer__links::after {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 1;
  }

  .secondary-chrome-footer__links .secondary-chrome-minima {
    order: 2;
  }
}
