/*
 * Static ISP pages use the same public-site tokens and header as Begin Purpose.
 * Keep this file separate so both hard-coded pages stay visually in sync.
 */
:root {
  --bp-background: #fcfbf8;
  --bp-foreground: #1b2e4b;
  --bp-muted: #697181;
  --bp-border: #e7e3dc;
  --bp-gold: #c9922a;
  --bp-gold-dark: #996d18;
  --bp-gold-soft: #f8f0df;
  --bp-navy: #1b2e4b;
  --bp-navy-soft: #253f63;
  --bp-white: #ffffff;

  /* Shared with the framework document. */
  --bg: var(--bp-background) !important;
  --bg-alt: #f5efe2 !important;
  --surface: var(--bp-white) !important;
  --surface-line: var(--bp-border) !important;
  --text: var(--bp-foreground) !important;
  --text-muted: var(--bp-muted) !important;
  --text-faint: #8a919d !important;
  --accent: var(--bp-gold) !important;
  --accent-soft: var(--bp-gold-soft) !important;
  --accent-ink: var(--bp-gold-dark) !important;
  --warm: var(--bp-gold) !important;
  --warm-soft: var(--bp-gold-soft) !important;
  --warm-ink: var(--bp-gold-dark) !important;
  --line: var(--bp-border) !important;
  --shadow: 0 8px 24px -12px rgba(27, 46, 75, .22) !important;
}

html { background: var(--bp-background); }

body {
  background: var(--bp-background) !important;
  color: var(--bp-foreground) !important;
  font-family: "Plus Jakarta Sans", "Public Sans", system-ui, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lora", Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
}

h1 {
  font-size: clamp(28px, 4.5vw, 52px) !important;
  line-height: 1.12 !important;
}

h2 {
  font-size: clamp(26px, 4vw, 42px) !important;
  line-height: 1.15 !important;
}

h3 {
  font-size: clamp(18px, 2.5vw, 24px) !important;
  line-height: 1.25 !important;
}

/* The public site uses tracked bold sans labels rather than a typewriter face. */
.eyebrow,
.kicker,
.step-number,
.protocol-number,
.mono,
.label,
.wk-label,
.meta-line,
.chainflow {
  font-family: "Plus Jakarta Sans", "Public Sans", system-ui, sans-serif !important;
  font-weight: 700 !important;
}

/* PublicLayout's header translated to static HTML. */
.bp-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(231, 227, 220, .92);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 8px rgba(27, 46, 75, .03);
  backdrop-filter: blur(10px);
}

.bp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1280px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 0;
}

.bp-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  color: var(--bp-foreground) !important;
  text-decoration: none !important;
}

.bp-brand img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(27, 46, 75, .14));
  transition: transform .2s ease;
}

.bp-brand:hover img { transform: scale(1.05); }

.bp-brand span {
  color: var(--bp-foreground);
  font-family: "Lora", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.bp-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.55vw, 22px);
  margin-left: auto;
}

.bp-desktop-nav a,
.bp-login {
  color: #697181 !important;
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s ease;
}

.bp-desktop-nav a:hover,
.bp-login:hover { color: var(--bp-foreground) !important; }

.bp-dropdown {
  position: relative;
}

.bp-dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #697181;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 500;
  list-style: none;
  white-space: nowrap;
  transition: color .18s ease;
}

.bp-dropdown > summary::-webkit-details-marker { display: none; }
.bp-dropdown > summary:hover,
.bp-dropdown[open] > summary { color: var(--bp-foreground); }

.bp-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -12px;
  z-index: 70;
  display: grid;
  gap: 2px;
  width: 286px;
  padding: 8px;
  border: 1px solid var(--bp-border);
  border-radius: 12px;
  background: var(--bp-white);
  box-shadow: 0 14px 32px rgba(27, 46, 75, .14);
}

.bp-dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--bp-foreground) !important;
  text-decoration: none !important;
  white-space: normal;
}

.bp-dropdown-menu a:hover { background: var(--bp-gold-soft); }

.bp-dropdown-menu strong {
  font-size: .82rem;
  font-weight: 700;
}

.bp-dropdown-menu small {
  color: var(--bp-muted);
  font-size: .72rem;
  line-height: 1.4;
}

.bp-nav-chevron {
  display: inline-block;
  margin-left: 3px;
  font-size: .75em;
  transform: translateY(-1px);
}

.bp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bp-consult,
.bp-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 8px 17px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--bp-gold);
  box-shadow: 0 3px 10px rgba(201, 146, 42, .20);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.bp-consult:hover,
.bp-join:hover {
  color: #fff !important;
  background: #b9821c;
  box-shadow: 0 5px 14px rgba(201, 146, 42, .28);
  transform: translateY(-1px);
}

.bp-login { color: var(--bp-foreground) !important; }
.bp-join { padding-inline: 19px; }

.bp-menu-button {
  display: none;
  min-width: 42px;
  min-height: 37px;
  padding: 7px 10px;
  border: 1px solid var(--bp-border);
  border-radius: 9px;
  color: var(--bp-foreground);
  background: var(--bp-white);
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
}

.bp-menu-button:hover { background: var(--bp-gold-soft); }

.bp-mobile-menu {
  display: none;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 5px 0 18px;
}

.bp-mobile-menu.is-open { display: grid; gap: 2px; }

.bp-mobile-group {
  display: grid;
  gap: 2px;
  margin: 5px 0;
}

.bp-mobile-section-label {
  padding: 9px 12px 3px;
  color: rgba(105, 113, 129, .7);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bp-mobile-group a { padding-left: 24px; }

.bp-mobile-menu a {
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--bp-muted) !important;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none !important;
}

.bp-mobile-menu a:hover {
  color: var(--bp-foreground) !important;
  background: var(--bp-gold-soft);
}

.bp-mobile-menu .bp-mobile-cta {
  margin-top: 7px;
  color: #fff !important;
  background: var(--bp-gold);
  text-align: center;
}

/* The framework's secondary tabs sit directly below the public header. */
.tabbar {
  top: 68px !important;
  z-index: 40 !important;
  background: var(--bp-background) !important;
  border-bottom-color: var(--bp-border) !important;
}

.tab-btn {
  color: #8a919d !important;
  font-family: "Plus Jakarta Sans", "Public Sans", system-ui, sans-serif !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
}

/* Match the public homepage's restrained display scale on the 72-hour page. */
body .hero h1 {
  font-size: clamp(28px, 4.5vw, 52px) !important;
  line-height: 1.12 !important;
}

body .quote,
body .protocol-card .prompt,
body .guardrail-mark,
body .hypothesis p,
body .closing-line {
  font-family: "Lora", Georgia, serif !important;
}

body .hero h1,
body .hero h2,
body .hero h3 {
  font-weight: 700 !important;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--bp-gold-dark) !important;
}

.tab-btn.active { border-bottom-color: var(--bp-gold) !important; }

@media (max-width: 1120px) {
  .bp-desktop-nav { gap: 11px; }
  .bp-desktop-nav a, .bp-desktop-nav > .bp-dropdown > summary, .bp-login { font-size: .78rem; }
  .bp-consult, .bp-join { padding-inline: 13px; font-size: .78rem; }
}

@media (max-width: 930px) {
  .bp-desktop-nav, .bp-actions .bp-consult, .bp-actions .bp-login, .bp-actions .bp-join {
    display: none;
  }
  .bp-menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .bp-header-inner { min-height: 62px; }
  .tabbar { top: 62px !important; }
}

@media (max-width: 560px) {
  .bp-header-inner { width: min(100% - 28px, 1280px); }
  .bp-brand img { width: 38px; height: 38px; }
  .bp-brand span { font-size: 1rem; }
  .bp-mobile-menu { width: min(100% - 28px, 1280px); }
  .tabbar-inner { padding-inline: 16px !important; gap: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bp-brand img, .bp-consult, .bp-join { transition: none; }
}