/**
 * styles_global.css — sCAFfold shared styles
 *
 * Include this on EVERY page (before any page-specific stylesheet):
 *   <link rel="stylesheet" href="/css/styles_global.css">
 *
 * Contains:
 *  1. CSS variables (design tokens)
 *  2. Global base reset (replaces the legacy html>body block)
 *  3. Navbar (.sc-navbar and children)
 *  4. Shared utilities (.sc-btn, .hidden, etc.)
 */


/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --sc-blue-deep:    #0d2a4a;
  --sc-blue-mid:     #1a4a7a;
  --sc-blue-light:   #2a6db5;
  --sc-orange:       #e07820;
  --sc-orange-hover: #c46510;
  --sc-text-dark:    #1a2a3a;
  --sc-text-mid:     #334455;
  --sc-text-light:   #ffffff;
  --sc-bg-light:     #f4f7fb;
  --sc-bg-white:     #ffffff;
  --sc-font:         "Open Sans", "Helvetica", "Arial", sans-serif;
  --sc-navbar-h:     68px;
}


/* ============================================================
   2. GLOBAL BASE RESET
   Replaces the old html>body block. Scoped to body.scaffold-new
   so it won't affect any page not yet migrated.
   ============================================================ */
body.scaffold-new {
  margin: 0;
  padding: 0;
  font-family: var(--sc-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--sc-text-dark);
  background: var(--sc-bg-white);
  -webkit-font-smoothing: antialiased;
}

body.scaffold-new *,
body.scaffold-new *::before,
body.scaffold-new *::after {
  box-sizing: border-box;
}

body.scaffold-new a {
  text-decoration: none;
}

body.scaffold-new ul,
body.scaffold-new ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.scaffold-new h1,
body.scaffold-new h2,
body.scaffold-new h3,
body.scaffold-new h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

body.scaffold-new p {
  margin: 0;
}

body.scaffold-new img {
  display: block;
  max-width: 100%;
}


/* ============================================================
   3. NAVBAR
   ============================================================ */
.sc-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--sc-navbar-h);
  background: var(--sc-blue-deep);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.sc-navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

/* Brand */
.sc-navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.sc-navbar__logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.sc-navbar__wordmark {
  font-family: var(--sc-font);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.sc-navbar__wordmark em {
  font-style: normal;
  color: var(--sc-orange);
}

/* Nav links */
.sc-navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  /* Override legacy: nav { position: absolute; bottom: 0 } */
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  width: auto !important;
}

.sc-navbar__link {
  display: inline-block;
  font-family: var(--sc-font);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
  /* Override legacy: nav a { width: 33%; height: inherit } */
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  margin-bottom: 0 !important;
  text-align: left !important;
  vertical-align: middle;
}

.sc-navbar__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.sc-navbar__link--active {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sc-navbar__link--btn {
  border: 1.5px solid rgba(255, 255, 255, 0.50);
  border-radius: 5px;
  margin-left: 8px;
  color: #ffffff;
}

.sc-navbar__link--btn:hover {
  background: rgba(255, 255, 255, 0.15);
}


/* ============================================================
   3b. DROPDOWN MENU
   ============================================================ */

.sc-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* The trigger link — same look as other nav links */
.sc-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}

.sc-dropdown__arrow {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
  display: inline-block;
  line-height: 1;
}

/* Rotate arrow when open */
.sc-dropdown.is-open .sc-dropdown__arrow {
  transform: rotate(180deg);
}

/* The dropdown panel */
.sc-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);   /* reduced gap */
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 1001;
  border-top: 3px solid var(--sc-orange);
  /* Invisible top padding extends the hover zone upward over the gap */
  padding-top: 6px;
}

/* Visible state (toggled by jQuery) */
.sc-dropdown__menu.is-visible {
  display: block;
  animation: sc-dropdown-in 0.18s ease;
}

@keyframes sc-dropdown-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Each item row */
.sc-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  text-decoration: none;
  color: var(--sc-text-dark);
  transition: background 0.15s ease;
  border-radius: 0;
}

.sc-dropdown__item:hover {
  background: var(--sc-bg-light);
}

.sc-dropdown__item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--sc-blue-mid);
  line-height: 1.3;
}

.sc-dropdown__item small {
  display: block;
  font-size: 12px;
  color: #778899;
  margin-top: 2px;
  line-height: 1.3;
}

.sc-dropdown__item-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

/* Disabled item (Under construction) */
.sc-dropdown__item--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* Divider between items */
.sc-dropdown__menu li + li {
  border-top: 1px solid #eef1f5;
}


/* ============================================================
   4. SHARED UTILITIES
   ============================================================ */

/* Buttons */
.sc-btn {
  display: inline-block;
  font-family: var(--sc-font);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  line-height: 1;
}

.sc-btn--orange {
  background: var(--sc-orange);
  color: #ffffff;
}

.sc-btn--orange:hover {
  background: var(--sc-orange-hover);
  transform: translateY(-1px);
}

/* Section titles — full definitions live in styles_index.css (page-specific).
   Global pages can define their own .sc-section-title styles as needed. */

/* Bands */

.sc-section-title--light {

  color: #ffffff;
}


.sc-band {
  width: 100%;
  padding: 64px 0;
}

.sc-band--light {
  background: var(--sc-bg-light);
}

.sc-band--dark {
  background: linear-gradient(135deg, var(--sc-blue-deep) 0%, var(--sc-blue-mid) 100%);
  color:#ffffff;
}

.sc-band__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.sc-band--centered {
  text-align: center;
}

/* Visibility */
.sc-hidden { display: none !important; }


/* ============================================================
   5. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sc-navbar__link {
    font-size: 13px;
    padding: 6px 10px;
  }
}

@media (max-width: 700px) {
  .sc-navbar__wordmark {
    display: none;
  }

  .sc-band {
    padding: 40px 0;
  }

  .sc-band__inner {
    padding: 0 20px;
  }
}


/* ============================================================
   6. TALL NAVBAR VARIANT (inner pages)
   Add class="scaffold-new sc-page--inner" to <body>.
   The index page keeps the default 68px navbar.
   ============================================================ */

:root {
  --sc-navbar-h-tall: 100px;
}

.sc-page--inner .sc-navbar {
  height: var(--sc-navbar-h-tall);
}

/* Logo scales up proportionally inside the taller bar */
.sc-page--inner .sc-navbar__logo {
  height: 75px;
}

/* Wordmark grows slightly to match */
.sc-page--inner .sc-navbar__wordmark {
  font-size: 24px;
}

/* Push main content down to clear the taller navbar */
.sc-page--inner .sc-page-body {
  padding-top: var(--sc-navbar-h-tall);
}


/* ============================================================
   7. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sc-navbar__link {
    font-size: 13px;
    padding: 6px 10px;
  }
}

@media (max-width: 700px) {
  .sc-navbar__wordmark {
    display: none;
  }

  .sc-band {
    padding: 40px 0;
  }

  .sc-band__inner {
    padding: 0 20px;
  }
}