
/*
  FFR 3.0 Header/Footer V2 - Dark Steel Blue Gradient Theme
  Layer: site
  Purpose: Alternate modern header, utility rows, distributed nav, and footer.
  Notes:
  - Uses ffr-* naming with v2-specific classes to avoid overriding current ffr-header/ffr-nav rules.
  - Default gradient: Midnight Steel.
  - Optional gradient classes: ffr-header-v2--harbor, ffr-header-v2--deep-navy, ffr-header-v2--slate-command.
*/
@layer site {
  .ffr-header-v2,
  .ffr-footer-v2 {
    font-family: var(--ffr-font-sans, system-ui, -apple-system, sans-serif);
  }

  /* ------------------------------------------------------------
     Gradient theme options
     Apply one option class to the header and footer if desired.
     Example: class="ffr-header-v2 ffr-header-v2--harbor"
  ------------------------------------------------------------ */
  .ffr-header-v2,
  .ffr-footer-v2 {
    --ffr-v2-bg-1: #0b1826;
    --ffr-v2-bg-2: #18324a;
    --ffr-v2-bg-3: #2e536e;
    --ffr-v2-bg-4: #092d59;
    --ffr-v2-bg-5: #003a81;
    --ffr-v2-bg-6: #004293;
    --ffr-v2-bg-7: #020912;
    --ffr-v2-bg-8: #041326;
    --ffr-v2-bg-9: #071d3a;
    --ffr-v2-surface: rgba(255, 255, 255, .10);
    --ffr-v2-surface-strong: rgba(255, 255, 255, .16);
    --ffr-v2-surface-soft: rgba(255, 255, 255, .075);
    --ffr-v2-border: rgba(255, 255, 255, .18);
    --ffr-v2-border-strong: rgba(255, 255, 255, .28);
    --ffr-v2-text: rgba(255, 255, 255, .94);
    --ffr-v2-text-muted: rgba(255, 255, 255, .72);
    --ffr-v2-text-soft: rgba(255, 255, 255, .58);
    --ffr-v2-accent: var(--ffr-color-gold, #f79e00);
    --ffr-v2-accent-soft: rgba(247, 158, 0, .17);
    --ffr-v2-dropdown-bg: #ffffff;
    --ffr-v2-dropdown-text: var(--ffr-color-text-main, #0f172a);
    --ffr-v2-dropdown-hover: var(--ffr-color-primary-light, #f0f9ff);
    --ffr-v2-shadow: 0 18px 42px rgba(2, 8, 23, .30);
    --ffr-v2-glow: 0 0 0 1px rgba(255,255,255,.05), 0 22px 60px rgba(2,8,23,.28);
  }

  .ffr-header-v2--harbor,
  .ffr-footer-v2--harbor {
    --ffr-v2-bg-1: #102437;
    --ffr-v2-bg-2: #1d4764;
    --ffr-v2-bg-3: #376f8d;
  }

  .ffr-header-v2--deep-navy,
  .ffr-footer-v2--deep-navy {
    --ffr-v2-bg-1: #06111f;
    --ffr-v2-bg-2: #112943;
    --ffr-v2-bg-3: #244a68;
  }

  .ffr-header-v2--slate-command,
  .ffr-footer-v2--slate-command {
    --ffr-v2-bg-1: #111827;
    --ffr-v2-bg-2: #263c52;
    --ffr-v2-bg-3: #435f78;
  }

  .ffr-header-v2 {
    position: relative;
    overflow: visible;
    isolation: auto;
    z-index: 9000;
    color: var(--ffr-v2-text);
    background:
      radial-gradient(circle at 12% 15%, rgba(114, 191, 252, .20), transparent 30%),
      radial-gradient(circle at 86% 0%, rgba(247, 158, 0, .12), transparent 28%),
      linear-gradient(135deg, var(--ffr-v2-bg-7) 0%, var(--ffr-v2-bg-8) 52%, var(--ffr-v2-bg-9) 100%);
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--ffr-v2-shadow);
  }

  .ffr-header-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .17;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
  }

  .ffr-header-v2::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    pointer-events: none;
    z-index: 2;
  }

  .ffr-header-v2__shell {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    margin: 0 auto;
    padding: var(--ffr-space-4, 1rem) var(--ffr-space-4, 1rem) var(--ffr-space-3, .75rem);
    overflow: visible;
  }

  .ffr-header-v2__identity-row {
    display: grid;
    grid-template-columns: minmax(132px, 240px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    overflow: visible;
  }

  .ffr-header-v2__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: .65rem .75rem;
    text-decoration: none;
  }

  .ffr-header-v2__logo-link:hover,
  .ffr-header-v2__logo-link:focus-visible {
    text-decoration: none;
    transition: opacity 0.35s ease;
  }

  .ffr-header-v2__logo-img {
    display: block;
    width: min(250px, 32vw);
    max-height: 150px;
    object-fit: contain;
  }

  .ffr-header-v2__right-stack {
    display: grid;
    gap: var(--ffr-space-2, .5rem);
    justify-items: end;
    min-width: 0;
    overflow: visible;
  }

  .ffr-header-v2__utility-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--ffr-space-2, .5rem);
    width: 100%;
    border-bottom: 1px solid rgba(136, 158, 180, 0.45);
    min-width: 0;
    overflow: visible;
  }

  .ffr-header-v2__utility-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    margin: 0;
    padding: .25rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    overflow: visible;
  }

  .ffr-header-v2__utility-item {
    position: relative;
    overflow: visible;
  }

  .ffr-header-v2__utility-link,
  .ffr-header-v2__utility-toggle,
  .ffr-header-v2__search-toggle,
  .ffr-header-v2__mobile-toggle,
  .ffr-header-v2__mobile-panel-toggle {
    font-family: inherit;
    border: 0;
    cursor: pointer;
  }

  .ffr-header-v2__utility-link,
  .ffr-header-v2__utility-toggle {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .78rem;
    border-radius: 999px;
    color: var(--ffr-v2-text);
    background: transparent;
    font-size: var(--ffr-text-sm, .875rem);
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
    transition: background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
  }

  .ffr-header-v2__utility-link:hover,
  .ffr-header-v2__utility-link:focus-visible,
  .ffr-header-v2__utility-toggle:hover,
  .ffr-header-v2__utility-toggle:focus-visible,
  .ffr-header-v2__utility-item.is-open > .ffr-header-v2__utility-toggle {
    color: #ffffff;
    background: var(--ffr-v2-surface-strong);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
    text-decoration: none;
    outline: none;
    transform: translateY(-1px);
  }

  .ffr-header-v2__icon {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    flex: 0 0 auto;
  }

  .ffr-header-v2__chevron {
    width: .85rem;
    height: .85rem;
    margin-left: .1rem;
    transition: transform .16s ease;
  }

  .ffr-header-v2__utility-item.is-open > .ffr-header-v2__utility-toggle .ffr-header-v2__chevron,
  .ffr-nav-v2__item.is-open > .ffr-nav-v2__link .ffr-header-v2__chevron,
  .ffr-nav-v2__subitem.is-open > .ffr-nav-v2__sublink .ffr-header-v2__chevron {
    transform: rotate(180deg);
  }

  .ffr-header-v2__utility-menu {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    min-width: 15rem;
    list-style: none;
    margin: 0;
    padding: var(--ffr-space-2, .5rem);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: var(--ffr-radius-lg, .75rem);
    background: var(--ffr-v2-dropdown-bg);
    box-shadow: 0 18px 44px rgba(2,8,23,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 9999;
  }

  .ffr-header-v2__utility-item:hover > .ffr-header-v2__utility-menu,
  .ffr-header-v2__utility-item:focus-within > .ffr-header-v2__utility-menu,
  .ffr-header-v2__utility-item.is-open > .ffr-header-v2__utility-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .ffr-header-v2__utility-menu a {
    display: block;
    padding: .65rem .75rem;
    border-radius: var(--ffr-radius-md, .5rem);
    color: var(--ffr-v2-dropdown-text);
    font-size: var(--ffr-text-sm, .875rem);
    font-weight: 700;
    text-decoration: none;
  }

  .ffr-header-v2__utility-menu a:hover,
  .ffr-header-v2__utility-menu a:focus-visible {
    background: var(--ffr-v2-dropdown-hover);
    color: var(--ffr-color-primary-dark, #20639b);
    outline: none;
  }

  .ffr-header-v2__search {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    isolation: isolate;
  }

  .ffr-header-v2__search-toggle {
    position: relative;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #07111f;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    box-shadow: 0 10px 24px rgba(2,8,23,.22);
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
  }

  .ffr-header-v2__search-toggle:hover,
  .ffr-header-v2__search-toggle:focus-visible,
  .ffr-header-v2__search.is-open .ffr-header-v2__search-toggle {
    color: #07111f;
    background: linear-gradient(135deg, #ffffff, #fef3c7);
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(2,8,23,.28);
  }

  .ffr-header-v2__search-form {
    position: absolute;
    top: 50%;
    right: calc(100% + .55rem);
    z-index: 2;
    width: 0;
    max-width: min(22rem, calc(100vw - 7rem));
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(.5rem);
    pointer-events: none;
    transition:
      width .22s ease,
      opacity .16s ease,
      visibility .16s ease,
      transform .22s ease;
  }

  .ffr-header-v2__search.is-open .ffr-header-v2__search-form,
  .ffr-header-v2__search:focus-within .ffr-header-v2__search-form {
    width: min(22rem, calc(100vw - 7rem));
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
  }

  .ffr-header-v2__search-input {
    width: 100%;
    min-width: 0;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.38);
    background: rgba(255,255,255,.98);
    color: var(--ffr-color-text-main, #0f172a);
    padding: 0 var(--ffr-space-4, 1rem);
    font-family: inherit;
    font-size: var(--ffr-text-sm, .875rem);
    box-shadow: 0 14px 30px rgba(2,8,23,.24);
  }

  .ffr-header-v2__search-input:focus {
    outline: 2px solid rgba(247,158,0,.65);
    outline-offset: 2px;
  }

  .ffr-header-v2__search-submit {
    display: none;
  }

  .ffr-header-v2__cta-zone {
    width: min(100%, 54rem);
    min-width: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--ffr-space-2, .5rem);
    flex-wrap: wrap;
    padding: .52rem .75rem;
    color: var(--ffr-v2-text);
    box-sizing: border-box;
    overflow: hidden;
  }

  .ffr-header-v2__cta-zone a {
    color: #ffffff;
  }

  .ffr-header-v2__cta-zone .ffr-btn,
  .ffr-header-v2__cta-zone .btn {
    border-color: rgba(255,255,255,.28);
  }

  .ffr-header-v2__cta-zone:empty::before {
    content: "CTA / blueprint zone";
    color: var(--ffr-v2-text-muted);
    font-size: var(--ffr-text-sm, .875rem);
    font-weight: 800;
    letter-spacing: .02em;
  }

  /* ============================================================
     CTA ZONE SPONSOR
  ============================================================ */

  .ffr-header-v2__sponsor {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding-left: .85rem;
    margin-left: auto;
    border-left: 1px solid rgba(255,255,255,.18);
    white-space: nowrap;
  }

  .ffr-header-v2__sponsor-label {
    color: rgba(255,255,255,.58);
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  .ffr-header-v2__sponsor-link {
    display: inline-flex;
    align-items: center;
    opacity: .82;
    transition:
      opacity .16s ease,
      transform .16s ease;
  }

  .ffr-header-v2__sponsor-link:hover,
  .ffr-header-v2__sponsor-link:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
    outline: none;
  }

  .ffr-header-v2__sponsor-logo {
    height: auto;
    width: 90px;
    display: block;
    filter:
      brightness(0)
      invert(1)
      opacity(.78);
  }

  .ffr-header-v2__mobile-controls {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--ffr-space-2, .5rem);
    margin-top: var(--ffr-space-3, .75rem);
  }

  .ffr-header-v2__mobile-toggle,
  .ffr-header-v2__mobile-panel-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 999px;
    padding: 0 var(--ffr-space-4, 1rem);
    font-weight: 900;
    color: #07111f;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    box-shadow: 0 10px 22px rgba(2,8,23,.20);
  }

  .ffr-header-v2__mobile-panel-toggle {
    color: #ffffff;
    background: var(--ffr-v2-surface-strong);
    border: 1px solid var(--ffr-v2-border);
  }

/* ------------------------------------------------------------
   Navigation
------------------------------------------------------------ */

.ffr-nav-v2 {
  position: relative;
  z-index: 9500;
  width: 100vw;
  margin-top: var(--ffr-space-3, .75rem);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: visible;
}

.ffr-nav-v2__bar {
  position: relative;
  z-index: 9501;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.12);
  overflow: visible;
}

.ffr-nav-v2__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Lists */
.ffr-nav-v2__list,
.ffr-nav-v2__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ffr-nav-v2__list {
  width: 100%;
  max-width: 80rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .15rem;
  margin: 0 auto;
  padding: .25rem var(--ffr-space-4, 1rem);
  position: relative;
  z-index: 9502;
  overflow: visible;
}

/* Make sure sublists inside dropdowns have a solid background */
.ffr-nav-v2__dropdown .ffr-nav-v2__sublist,
.ffr-nav-v2__dropdown--nested .ffr-nav-v2__sublist {
  background: var(--ffr-v2-dropdown-bg, #ffffff);
  border-radius: var(--ffr-radius-lg, .75rem);
}

/* Items */
.ffr-nav-v2__item,
.ffr-nav-v2__subitem {
  position: relative;
  z-index: 9503;
  overflow: visible;
}

/* Raise parent item when dropdown is active */
.ffr-nav-v2__item:hover,
.ffr-nav-v2__item:focus-within,
.ffr-nav-v2__item.is-open,
.ffr-nav-v2__subitem:hover,
.ffr-nav-v2__subitem:focus-within,
.ffr-nav-v2__subitem.is-open {
  z-index: 10010;
}

/* Top-level links */
.ffr-nav-v2__link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 0 .88rem;
  border-radius: 999px;
  color: var(--ffr-v2-text);
  font-size: var(--ffr-text-sm, .875rem);
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  background: transparent;
  box-shadow: none;
  transition:
    background-color .16s ease,
    color .16s ease,
    transform .16s ease,
    box-shadow .16s ease;
}

/* 
   Hover / active pill state:
   - Keeps the pill background effect
   - Removes orange background fill
   - Uses orange accent for text only
*/
.ffr-nav-v2__link:hover,
.ffr-nav-v2__link:focus-visible,
.ffr-nav-v2__item.is-active > .ffr-nav-v2__link,
.ffr-nav-v2__item.is-active-path > .ffr-nav-v2__link,
.ffr-nav-v2__item.is-open > .ffr-nav-v2__link {
  color: var(--ffr-v2-accent, #f7941d);
  background: rgba(255,255,255,.15);
  box-shadow: none;
  text-decoration: none;
  outline: none;
  transform: translateY(-1px);
}

/* ------------------------------------------------------------
   Dropdowns
------------------------------------------------------------ */

/* First-level dropdown */
.ffr-nav-v2__dropdown {
  position: absolute;
  top: calc(100% + .6rem);
  left: 0;
  min-width: 17rem;
  padding: var(--ffr-space-2, .5rem);
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: var(--ffr-radius-lg, .75rem);
  background: var(--ffr-v2-dropdown-bg, #ffffff);
  box-shadow: 0 18px 44px rgba(2,8,23,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity .16s ease,
    transform .16s ease,
    visibility .16s ease;
  z-index: 9999;
  overflow: visible;
}

/* Nested dropdowns: second, third, and deeper */
.ffr-nav-v2__dropdown--nested,
.ffr-nav-v2__dropdown .ffr-nav-v2__dropdown,
.ffr-nav-v2__dropdown .ffr-nav-v2__dropdown--nested {
  position: absolute;
  top: 0;
  left: calc(100% + .5rem);
  min-width: 17rem;
  padding: var(--ffr-space-2, .5rem);
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: var(--ffr-radius-lg, .75rem);
  background: var(--ffr-v2-dropdown-bg, #ffffff);
  box-shadow: 0 18px 44px rgba(2,8,23,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity .16s ease,
    transform .16s ease,
    visibility .16s ease;
  z-index: 10020;
  overflow: visible;
}

/* Third-level or deeper dropdown background support */
.ffr-nav-v2__dropdown--nested .ffr-nav-v2__dropdown--nested,
.ffr-nav-v2__dropdown .ffr-nav-v2__dropdown .ffr-nav-v2__dropdown,
.ffr-nav-v2__dropdown .ffr-nav-v2__dropdown .ffr-nav-v2__dropdown--nested {
  background: var(--ffr-v2-dropdown-bg, #ffffff);
  z-index: 10030;
}

/* Invisible bridge between parent and flyout so hover does not drop */
.ffr-nav-v2__subitem > .ffr-nav-v2__dropdown--nested::before,
.ffr-nav-v2__subitem > .ffr-nav-v2__dropdown::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  width: .5rem;
  height: 100%;
  background: transparent;
}

/* Show dropdowns */
.ffr-nav-v2__item:hover > .ffr-nav-v2__dropdown,
.ffr-nav-v2__item:focus-within > .ffr-nav-v2__dropdown,
.ffr-nav-v2__item.is-open > .ffr-nav-v2__dropdown,
.ffr-nav-v2__subitem:hover > .ffr-nav-v2__dropdown,
.ffr-nav-v2__subitem:focus-within > .ffr-nav-v2__dropdown,
.ffr-nav-v2__subitem.is-open > .ffr-nav-v2__dropdown,
.ffr-nav-v2__subitem:hover > .ffr-nav-v2__dropdown--nested,
.ffr-nav-v2__subitem:focus-within > .ffr-nav-v2__dropdown--nested,
.ffr-nav-v2__subitem.is-open > .ffr-nav-v2__dropdown--nested {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Sub Links
------------------------------------------------------------ */

.ffr-nav-v2__sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ffr-space-4, 1rem);
  padding: .7rem .75rem;
  border-radius: var(--ffr-radius-md, .5rem);
  color: var(--ffr-v2-dropdown-text);
  background: transparent;
  font-size: var(--ffr-text-sm, .875rem);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color .16s ease,
    color .16s ease,
    transform .16s ease;
}

/*
   Dropdown hover / active state:
   - Keeps a subtle hover background for usability
   - Removes orange background fill
   - Uses orange accent for text only
*/
.ffr-nav-v2__sublink:hover,
.ffr-nav-v2__sublink:focus-visible,
.ffr-nav-v2__subitem.is-active > .ffr-nav-v2__sublink,
.ffr-nav-v2__subitem.is-active-path > .ffr-nav-v2__sublink,
.ffr-nav-v2__subitem.is-open > .ffr-nav-v2__sublink {
  background: rgba(32, 99, 155, .08);
  color: var(--ffr-v2-accent, #f7941d);
  outline: none;
  text-decoration: none;
}

/* Make nested submenu links readable over the fixed background */
.ffr-nav-v2__dropdown--nested .ffr-nav-v2__sublink,
.ffr-nav-v2__dropdown .ffr-nav-v2__dropdown .ffr-nav-v2__sublink {
  color: var(--ffr-v2-dropdown-text, #1f2937);
  background: transparent;
}

.ffr-nav-v2__dropdown--nested .ffr-nav-v2__sublink:hover,
.ffr-nav-v2__dropdown--nested .ffr-nav-v2__sublink:focus-visible,
.ffr-nav-v2__dropdown--nested .ffr-nav-v2__subitem.is-active > .ffr-nav-v2__sublink,
.ffr-nav-v2__dropdown--nested .ffr-nav-v2__subitem.is-active-path > .ffr-nav-v2__sublink,
.ffr-nav-v2__dropdown--nested .ffr-nav-v2__subitem.is-open > .ffr-nav-v2__sublink,
.ffr-nav-v2__dropdown .ffr-nav-v2__dropdown .ffr-nav-v2__sublink:hover,
.ffr-nav-v2__dropdown .ffr-nav-v2__dropdown .ffr-nav-v2__sublink:focus-visible {
  background: rgba(32, 99, 155, .08);
  color: var(--ffr-v2-accent, #f7941d);
}

  /* ------------------------------------------------------------
     Footer
  ------------------------------------------------------------ */

  .ffr-footer-v2 {
    margin-top: var(--ffr-space-10, 4rem);
    color: var(--ffr-v2-text);
    background:
      radial-gradient(circle at 8% 12%, rgba(114, 191, 252, .18), transparent 30%),
      radial-gradient(circle at 90% 20%, rgba(247, 158, 0, .10), transparent 25%),
      linear-gradient(135deg, var(--ffr-v2-bg-1) 0%, var(--ffr-v2-bg-2) 55%, #07111f 100%);
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .ffr-footer-v2__shell {
    max-width: 80rem;
    margin: 0 auto;
    padding: var(--ffr-space-10, 4rem) var(--ffr-space-4, 1rem) var(--ffr-space-6, 1.5rem);
  }

  .ffr-footer-v2__grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(150px, 1fr));
    gap: clamp(1.25rem, 4vw, 3rem);
  }

  .ffr-footer-v2__logo-img {
    max-width: 210px;
    height: auto;
    display: block;
    margin-bottom: var(--ffr-space-4, 1rem);
    filter: drop-shadow(0 8px 18px rgba(2,8,23,.30));
  }

  .ffr-footer-v2__text {
    max-width: 32rem;
    color: var(--ffr-v2-text-muted);
    margin: 0;
    font-size: var(--ffr-text-sm, .875rem);
  }

  .ffr-footer-v2__heading {
    margin: 0 0 var(--ffr-space-3, .75rem);
    color: var(--ffr-v2-accent);
    font-size: var(--ffr-text-base, 1rem);
    text-transform: uppercase;
    letter-spacing: .05em;
  }

  .ffr-footer-v2__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
  }

  .ffr-footer-v2__links a {
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-size: var(--ffr-text-sm, .875rem);
    font-weight: 700;
  }

  .ffr-footer-v2__links a:hover,
  .ffr-footer-v2__links a:focus-visible {
    color: var(--ffr-v2-accent);
    text-decoration: underline;
    outline: none;
  }

  .ffr-footer-v2__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--ffr-space-3, .75rem);
    margin-top: var(--ffr-space-8, 2rem);
    padding-top: var(--ffr-space-4, 1rem);
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.72);
    font-size: var(--ffr-text-sm, .875rem);
  }

  .ffr-footer-v2__bottom a {
    color: inherit;
  }

  @media (max-width: 980px) {
    .ffr-header-v2__identity-row {
      grid-template-columns: 1fr;
      justify-items: center;
      text-align: center;
    }

    .ffr-header-v2__right-stack,
    .ffr-header-v2__utility-row,
    .ffr-header-v2__cta-zone {
      justify-items: center;
      justify-content: center;
      width: 100%;
    }

    .ffr-header-v2__search.is-open .ffr-header-v2__search-form,
    .ffr-header-v2__search:focus-within .ffr-header-v2__search-form {
      width: min(20rem, calc(100vw - 7rem));
    }

    .ffr-footer-v2__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  /* ------------------------------------------------------------
     Mobile
  ------------------------------------------------------------ */

  @media (max-width: 760px) {
    .ffr-header-v2__shell {
      padding-bottom: var(--ffr-space-3, .75rem);
    }

    .ffr-header-v2__identity-row {
      grid-template-columns: auto 1fr;
      justify-items: stretch;
      text-align: left;
    }

    .ffr-header-v2__logo-link {
      padding: .5rem;
    }

    .ffr-header-v2__logo-img {
      width: min(154px, 42vw);
      max-height: 64px;
    }

    .ffr-header-v2__mobile-controls {
      display: flex;
      grid-column: 1 / -1;
    }

    .ffr-header-v2__right-stack {
      display: none;
      grid-column: 1 / -1;
      justify-items: stretch;
      align-items: stretch;
      padding-top: var(--ffr-space-3, .75rem);
      border-top: 1px solid var(--ffr-v2-border);
    }

    .ffr-header-v2.is-panel-open .ffr-header-v2__right-stack {
      display: grid;
    }

    .ffr-header-v2__utility-row,
    .ffr-header-v2__utility-list,
    .ffr-header-v2__cta-zone,
    .ffr-header-v2__search {
      width: 100%;
      min-width: 0;
      flex: 1 1 100%;
      justify-content: stretch;
    }

    .ffr-header-v2__utility-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: .5rem;
      border-radius: var(--ffr-radius-lg, .75rem);
      padding: .5rem;
    }

    .ffr-header-v2__utility-link,
    .ffr-header-v2__utility-toggle {
      width: 100%;
      justify-content: space-between;
      border: 1px solid var(--ffr-v2-border);
      border-radius: var(--ffr-radius-lg, .75rem);
      background: rgba(255,255,255,.07);
    }

    .ffr-header-v2__utility-menu {
      position: static;
      display: none;
      min-width: 0;
      width: 100%;
      margin-top: .4rem;
      opacity: 1;
      visibility: visible;
      transform: none;
      box-shadow: none;
    }

    .ffr-header-v2__utility-item.is-open > .ffr-header-v2__utility-menu {
      display: block;
    }

    .ffr-header-v2__search {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: .5rem;
    }

    .ffr-header-v2__search-form,
    .ffr-header-v2__search.is-open .ffr-header-v2__search-form,
    .ffr-header-v2__search:focus-within .ffr-header-v2__search-form {
      position: static;
      width: 100%;
      max-width: none;
      opacity: 1;
      visibility: visible;
      transform: none;
      pointer-events: auto;
    }

    .ffr-header-v2__sponsor {
      width: 100%;
      justify-content: flex-start;
      margin-left: 0;
      padding-left: 0;
      border-left: 0;
      padding-top: .35rem;
      border-top: 1px solid rgba(255,255,255,.12);
    }

    .ffr-cta-ff-v1__link {
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: .5rem;
    }

    .ffr-cta-ff-v1__graphic {
      display: none;
    }

    .ffr-cta-ff-v1__headline,
    .ffr-cta-ff-v1__details {
      white-space: normal;
    }

    .ffr-nav-v2 {
      display: none;
      margin-top: var(--ffr-space-3, .75rem);
    }

    .ffr-header-v2.is-nav-open .ffr-nav-v2 {
      display: block;
    }

    .ffr-nav-v2__bar {
      border-radius: 0;
    }

    .ffr-nav-v2__list {
      display: grid;
      grid-template-columns: 1fr;
      gap: .2rem;
      padding: var(--ffr-space-2, .5rem);
    }

    .ffr-nav-v2__link {
      width: 100%;
      justify-content: space-between;
      border-radius: var(--ffr-radius-md, .5rem);
    }

    .ffr-nav-v2__dropdown,
    .ffr-nav-v2__dropdown--nested {
      position: static;
      display: none;
      min-width: 0;
      width: calc(100% - var(--ffr-space-3, .75rem));
      margin: .35rem 0 .35rem var(--ffr-space-3, .75rem);
      opacity: 1;
      visibility: visible;
      transform: none;
      box-shadow: none;
      border-radius: var(--ffr-radius-md, .5rem);
    }

    .ffr-nav-v2__item.is-open > .ffr-nav-v2__dropdown,
    .ffr-nav-v2__subitem.is-open > .ffr-nav-v2__dropdown {
      display: block;
    }

    .ffr-nav-v2__sublink {
      white-space: normal;
    }

    .ffr-footer-v2__grid {
      grid-template-columns: 1fr;
    }

    .ffr-footer-v2__bottom {
      flex-direction: column;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .ffr-header-v2 *,
    .ffr-footer-v2 *,
    .ffr-cta-ff-v1__link::before,
    .ffr-cta-ff-v1__football,
    .ffr-cta-ff-v1__wake {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
    }
  }
}

/* ============================================================
   BODY-PORTALED NAV DROPDOWN FIX
   Important:
   - This intentionally sits OUTSIDE @layer site.
   - This allows it to outrank layered/CMS styles.
   - Used with the updated JS below.
============================================================ */

body > .ffr-nav-v2__dropdown.ffr-nav-v2__dropdown--portal {
  position: fixed !important;
  z-index: 2147483647 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  background: var(--ffr-v2-dropdown-bg, #ffffff) !important;
  color: var(--ffr-v2-dropdown-text, #0f172a) !important;
}

body > .ffr-nav-v2__dropdown.ffr-nav-v2__dropdown--portal.is-hidden {
  display: none !important;
}

/* Utility dropdown safety override */
.ffr-header-v2__utility-menu {
  z-index: 2147483646 !important;
}

/* Keep the visible header above common site content */
.ffr-header-v2 {
  position: relative !important;
  overflow: visible !important;
  z-index: 2147483000 !important;
  isolation: auto !important;
}

.ffr-header-v2,
.ffr-header-v2__shell,
.ffr-header-v2__identity-row,
.ffr-header-v2__right-stack,
.ffr-header-v2__utility-row,
.ffr-header-v2__utility-list,
.ffr-header-v2__utility-item,
.ffr-nav-v2,
.ffr-nav-v2__bar,
.ffr-nav-v2__list,
.ffr-nav-v2__item,
.ffr-nav-v2__subitem {
  overflow: visible !important;
}

/* Keep common content wrappers below the header */
.subContent,
#subContent,
.main-content,
#mainContent,
.content,
.content-wrapper,
.page-content,
.site-content,
main {
  position: relative;
  z-index: 1;
}

/* ============================================================
   DESKTOP MULTI-LEVEL NAVIGATION STABILITY ENHANCEMENTS
   Purpose:
   - Keep nested level 2/3 flyouts inside the active top-level dropdown.
   - Remove the hover gap that caused parent hover states to collapse.
   - Automatically allow nested menus to open left near the viewport edge.
   - Add visual indicators for items with child navigation.
============================================================ */

@media (min-width: 761px) {
  .ffr-nav-v2__dropdown {
    box-sizing: border-box;
  }

  .ffr-nav-v2__dropdown--nested {
    top: 0 !important;
    left: calc(100% - 2px) !important;
    right: auto !important;
    margin: 0 !important;
    min-width: 17rem;
    z-index: 2147483647 !important;
  }

  .ffr-nav-v2__dropdown--nested.opens-left {
    left: auto !important;
    right: calc(100% - 2px) !important;
  }

  .ffr-nav-v2__subitem.has-children > .ffr-nav-v2__sublink {
    padding-right: 2rem;
  }

  .ffr-nav-v2__subitem.has-children > .ffr-nav-v2__sublink::after {
    content: "›";
    flex: 0 0 auto;
    margin-left: .75rem;
    color: currentColor;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    opacity: .72;
  }

  .ffr-nav-v2__item.has-children > .ffr-nav-v2__link::after {
    content: "▾";
    flex: 0 0 auto;
    margin-left: .15rem;
    font-size: .75rem;
    line-height: 1;
    opacity: .78;
  }

  .ffr-nav-v2__subitem.is-open,
  .ffr-nav-v2__subitem:hover,
  .ffr-nav-v2__subitem:focus-within {
    z-index: 2147483647;
  }

  body > .ffr-nav-v2__dropdown.ffr-nav-v2__dropdown--portal .ffr-nav-v2__dropdown--nested {
    position: absolute !important;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
  }

  body > .ffr-nav-v2__dropdown.ffr-nav-v2__dropdown--portal .ffr-nav-v2__subitem:hover > .ffr-nav-v2__dropdown--nested,
  body > .ffr-nav-v2__dropdown.ffr-nav-v2__dropdown--portal .ffr-nav-v2__subitem:focus-within > .ffr-nav-v2__dropdown--nested,
  body > .ffr-nav-v2__dropdown.ffr-nav-v2__dropdown--portal .ffr-nav-v2__subitem.is-open > .ffr-nav-v2__dropdown--nested {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ============================================================
   Utility Link Color Override - No Child Dropdown Version
   Purpose:
   - Keeps top-level utility links styled like the previous utility toggles.
   - Prevents CMS/global hyperlink styles from turning these links blue.
   - Place this outside @layer site, near the end of the header CSS file.
============================================================ */

.ffr-header-v2__utility-list > .ffr-header-v2__utility-item > .ffr-header-v2__utility-link,
.ffr-header-v2__utility-list > .ffr-header-v2__utility-item > .ffr-header-v2__utility-link:visited {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .78rem;
  border-radius: 999px;
  color: var(--ffr-v2-text, rgba(255, 255, 255, .94)) !important;
  background: transparent;
  font-family: inherit;
  font-size: var(--ffr-text-sm, .875rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.ffr-header-v2__utility-list > .ffr-header-v2__utility-item > .ffr-header-v2__utility-link:hover,
.ffr-header-v2__utility-list > .ffr-header-v2__utility-item > .ffr-header-v2__utility-link:focus-visible {
  color: #ffffff !important;
  background: var(--ffr-v2-surface-strong, rgba(255, 255, 255, .16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  text-decoration: none !important;
  outline: none;
  transform: translateY(-1px);
}

.ffr-header-v2__utility-link .ffr-header-v2__icon,
.ffr-header-v2__utility-link span {
  color: inherit;
  stroke: currentColor;
}
