.shoug-site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  z-index: 10000;
  background: rgba(5, 5, 8, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.shoug-header-inner {
  width: min(1440px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.shoug-header-logo {
  color: #f8f7fb;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.shoug-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  flex: 1;
}

.shoug-header-nav a {
  color: #8f8b9a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color 160ms ease,
    text-shadow 160ms ease;
}

.shoug-header-nav a:hover,
.shoug-header-nav a.active {
  color: #b829ea;
  text-shadow: 0 0 14px rgba(184, 41, 234, 0.35);
}

.shoug-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.breadcrumb-link {
  color: var(--text-dim, #8b7ea8);
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--brand-purple, #b829ea);
}

.shoug-icon-btn:focus,
.shoug-lang-btn:focus,
.shoug-theme-btn:focus {
  outline: none;
}

.shoug-icon-btn,
.shoug-lang-btn,
.shoug-theme-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: #f8f7fb;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.shoug-icon-btn:hover,
.shoug-lang-btn:hover,
.shoug-theme-btn:hover {
  color: #b829ea;
  border-color: rgba(184, 41, 234, 0.55);
  background: rgba(184, 41, 234, 0.08);
}

.shoug-icon-btn svg,
.shoug-theme-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

.shoug-contact-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #ff2a4b;
  background: transparent;
  color: #ff2a4b;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.shoug-contact-btn:hover {
  background: #ff2a4b;
  color: #050508;
  box-shadow: 0 0 24px rgba(255, 42, 75, 0.28);
}

.shoug-auth-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(184, 41, 234, 0.5);
  background: transparent;
  color: #c940f5;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.shoug-site-footer {
  position: relative;
  z-index: 5;
  width: 100%;
  display: block !important;
  box-sizing: border-box;
  margin-top: 80px;
  padding: 64px clamp(28px, 5vw, 96px) 52px;
  background: #050508;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8f7fb;
  font-family: Inter, sans-serif;
}

.shoug-footer-grid {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 0.8fr));
  gap: clamp(32px, 5vw, 92px);
  align-items: start;
}

.shoug-footer-label {
  margin-bottom: 16px;
  color: #ff2a4b;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.shoug-footer-brand {
  color: #f8f7fb;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.shoug-footer-text,
.shoug-footer-link,
.shoug-footer-meta {
  display: block;
  color: #8f8b9a;
  font-family: Inter, sans-serif;
  font-size: 0.86rem;
  line-height: 1.85;
  text-decoration: none;
  max-width: 34ch;
}

.shoug-footer-link {
  transition: color 160ms ease;
  width: fit-content;
}

.shoug-footer-link:hover {
  color: #b829ea;
}

.shoug-footer-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

header.shoug-site-header,
footer.shoug-site-footer {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
header.shoug-site-header {
  padding: 0;
  display: block;
}
header.shoug-site-header button {
  border-radius: 0;
  padding: 0 12px;
  background: transparent;
}
.shoug-header-inner {
  width: calc(100% - 48px);
  max-width: none;
}
header.shoug-site-header .shoug-theme-btn {
  padding: 0;
}
.shoug-header-menu-btn,
.shoug-header-backdrop {
  display: none;
}
.commerce-page .shoug-directory-btn {
  display: none;
}
.shoug-site-header {
  --font-mono: monospace;
}
.shoug-site-header button {
  font-size: 12px;
}
.shoug-site-footer a {
  border: 0;
}
.shoug-site-footer {
  line-height: 1.65;
}
.commerce-page {
  padding-top: 68px;
}
.commerce-page main {
  min-height: 65vh;
}
.commerce-page .checkout-shell {
  padding-top: 36px;
}
.commerce-page .shoug-site-footer {
  margin-top: 48px;
}
.shoug-light-mode {
  --bg: #f8f6ff;
  --panel: #eee8f5;
  --text: #21152f;
  --muted: #62536e;
  --line: #cfc2dc;
  --accent: #8423a8;
}
.shoug-light-mode .shoug-site-header,
.shoug-light-mode .shoug-site-footer {
  background: #f8f6ff;
  color: #21152f;
}
.shoug-light-mode .shoug-header-logo,
.shoug-light-mode .shoug-footer-brand {
  color: #21152f;
}
.shoug-light-mode .shoug-site-header {
  background: rgba(248, 246, 255, 0.92);
  border-bottom-color: #cfc2dc;
}
.shoug-light-mode .shoug-site-footer {
  border-top-color: #cfc2dc;
}
.shoug-light-mode .shoug-header-nav a,
.shoug-light-mode .shoug-footer-text,
.shoug-light-mode .shoug-footer-link,
.shoug-light-mode .shoug-footer-meta {
  color: #62536e;
}
.shoug-light-mode .shoug-header-nav a:hover,
.shoug-light-mode .shoug-header-nav a.active,
.shoug-light-mode .shoug-footer-link:hover {
  color: #8423a8;
  text-shadow: none;
}
.shoug-light-mode .shoug-icon-btn,
.shoug-light-mode .shoug-lang-btn,
.shoug-light-mode .shoug-theme-btn {
  border-color: #cfc2dc;
  color: #21152f;
}
.shoug-light-mode .shoug-icon-btn:hover,
.shoug-light-mode .shoug-lang-btn:hover,
.shoug-light-mode .shoug-theme-btn:hover {
  border-color: #8423a8;
  color: #8423a8;
}
.shoug-light-mode .shoug-auth-btn {
  border-color: #8423a8;
  color: #8423a8;
}
.shoug-light-mode .shoug-contact-btn {
  border-color: #c7132e;
  color: #c7132e;
}
.shoug-light-mode .shoug-contact-btn:hover {
  background: #c7132e;
  color: #fff;
}
.shoug-light-mode .shoug-footer-label {
  color: #c7132e;
}
.shoug-light-mode.mobile-nav-open .shoug-header-nav {
  background: #f8f6ff;
  border-bottom: 1px solid #cfc2dc;
}
@media (max-width: 1100px) {
  .shoug-header-nav {
    display: none;
  }
  .shoug-header-menu-btn {
    display: block;
  }
  .mobile-nav-open .shoug-header-nav {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 24px;
    background: #080411;
    flex-wrap: wrap;
  }
  .shoug-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .shoug-header-actions {
    gap: 6px;
  }
  .shoug-icon-btn {
    display: none;
  }
}
@media (max-width: 560px) {
  .shoug-header-inner {
    width: calc(100% - 24px);
    gap: 10px;
  }
  .shoug-contact-btn {
    display: none;
  }
  .shoug-footer-grid {
    grid-template-columns: 1fr;
  }
}
/* Keep account styles from overriding the compact shared mobile header. */
header.shoug-site-header .shoug-header-menu-btn {
  height: 34px;
  border: 1px solid #594364;
  color: #dbc3ee;
  font: 600 11px monospace;
  cursor: pointer;
}
.shoug-light-mode header.shoug-site-header .shoug-header-menu-btn {
  border-color: #cfc2dc;
  color: #21152f;
}
/* firebase-auth.js and course-transfers.css style these buttons for dark. */
.shoug-light-mode header.shoug-site-header .shoug-icon-btn {
  background: transparent;
  border-color: #cfc2dc;
  box-shadow: none;
}
.shoug-light-mode header.shoug-site-header .shoug-icon-btn:hover {
  background: #e4d8ef;
  border-color: #8423a8;
}
.shoug-light-mode header.shoug-site-header button:hover:not(:disabled) {
  background: #e4d8ef;
  color: #21152f;
}
body.shoug-light-mode footer #shoug-blueprint-bar,
body.shoug-light-mode footer #shoug-blueprint-bar a {
  color: #62536e;
}
@media (max-width: 1100px) {
  header.shoug-site-header .shoug-icon-btn {
    display: none !important;
  }
  header.shoug-site-header .shoug-header-menu-btn {
    display: inline-flex;
    align-items: center;
  }
  header.shoug-site-header .shoug-header-logo {
    flex-shrink: 0;
  }
  header.shoug-site-header .shoug-header-actions {
    gap: 6px;
  }
}
@media (max-width: 560px) {
  header.shoug-site-header .shoug-contact-btn,
  header.shoug-site-header .shoug-theme-btn {
    display: none !important;
  }
  header.shoug-site-header .shoug-auth-btn {
    font-size: 10px;
    padding: 0 8px;
  }
  header.shoug-site-header .shoug-header-inner {
    gap: 8px;
  }
}
