:root {
  --csp-brand-navy: #00274a;
  --csp-page-bg: #f8fafc;
  --csp-border: #e5e7eb;
  --csp-text: #111827;
  --csp-muted: #64748b;
}

.csp-site-header,
.csp-site-footer {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.csp-site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--csp-border);
  position: relative;
  z-index: 200;
}

.csp-site-header__brandbar {
  min-height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--csp-brand-navy);
}

.csp-site-header__brand,
.csp-site-header__logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.csp-site-header__brand {
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
}

.csp-site-header__brand .dashicons {
  color: #ef4444;
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.csp-site-header__logout {
  color: #cbd5e1 !important;
  font-size: 12px;
}

.csp-site-header__logout:hover { color: #fff !important; }

.csp-site-header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 18px;
  background: #fff;
}

.csp-site-header__divider {
  width: 1px;
  height: 22px;
  margin: 0 3px;
  background: #d1d5db;
}

.csp-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 6px 12px;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.csp-nav-pill:hover {
  transform: translateY(-1px);
  filter: brightness(.97);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.csp-nav-pill .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.csp-nav-pill--blue { background: #e6f1fb; color: #0c447c !important; }
.csp-nav-pill--blue.is-active { background: #1a56db; color: #fff !important; }
.csp-nav-pill--purple { background: #eeedfe; color: #3c3489 !important; }
.csp-nav-pill--purple.is-active { background: #534ab7; color: #fff !important; }
.csp-nav-pill--amber { background: #faeeda; color: #633806 !important; }
.csp-nav-pill--amber.is-active { background: #ba7517; color: #fff !important; }
.csp-nav-pill--teal { background: #e1f5ee; color: #085041 !important; }
.csp-nav-pill--teal.is-active { background: #0f6e56; color: #fff !important; }

.csp-site-footer {
  width: min(1100px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 28px 0 40px;
  color: #4b5563;
  font-size: 13px;
}

.csp-site-footer__inner { max-width: 620px; }
.csp-site-footer strong { color: #111827; }
.csp-site-footer p { margin: 12px 0 0; }

body.csp-exercise-builder-page,
body.csp-facilitator-dashboard-page,
body.csp-participant-dashboard-page,
body.csp-manage-participants-page,
body.csp-trial-guide-page,
body.csp-messages-page,
body.csp-news-page,
body.csp-social-page,
body.csp-login-page,
body.csp-set-password-page,
body.csp-trial-registration-page {
  background: var(--csp-page-bg);
}

/* The builder and participant components provide their own headings. */
body.csp-exercise-builder-page .wp-block-post-title,
body.csp-participant-dashboard-page .wp-block-post-title,
body.csp-manage-participants-page .wp-block-post-title,
body.csp-trial-guide-page .wp-block-post-title,
body.csp-login-page .wp-block-post-title,
body.csp-set-password-page .wp-block-post-title,
body.csp-messages-page .wp-block-post-title,
body.csp-news-page .wp-block-post-title,
body.csp-social-page .wp-block-post-title,
body.csp-trial-registration-page .wp-block-post-title {
  display: none !important;
}

body.csp-exercise-builder-page main,
body.csp-participant-dashboard-page main,
body.csp-manage-participants-page main,
body.csp-trial-guide-page main,
body.csp-messages-page main,
body.csp-news-page main,
body.csp-social-page main,
body.csp-trial-registration-page main {
  margin-top: 0 !important;
}

body.csp-news-page .csp-site-footer {
  color: #cbd5e1;
}
body.csp-news-page .csp-site-footer strong { color: #fff; }

@media (max-width: 760px) {
  .csp-site-header__brandbar { padding: 0 14px; }
  .csp-site-header__nav { padding: 7px 10px; gap: 5px; }
  .csp-site-header__divider { display: none; }
  .csp-nav-pill { padding: 6px 9px; font-size: 11px; }
  .csp-site-footer { margin-top: 44px; }
}


body.csp-trial-registration-page,
body.csp-trial-registration-page main,
body.csp-trial-registration-page .wp-site-blocks {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
