/* BD Partner Path — B2B charcoal dashboard + electric blue
   Distinct from app-guard, pay-rails, bonus-decode, cricket-desk. */

a.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.5rem 0.85rem;
  background: #3d8bff;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

a.skip-link:focus,
a.skip-link:focus-visible {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 2px solid #00d4aa;
  outline-offset: 2px;
}

:root {
  --pico-font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  --pico-primary: #1a5fd4;
  --pico-primary-background: #1a5fd4;
  --pico-primary-hover: #3d8bff;
  --pico-primary-underline: rgba(61, 139, 255, 0.45);
  --pico-background-color: #eef1f6;
  --pico-card-background-color: #ffffff;
  --pico-border-radius: 0.5rem;
  --ink: #12151c;
  --charcoal: #12151c;
  --panel: #1c212b;
  --blue: #3d8bff;
  --blue-deep: #1a5fd4;
  --mint: #00d4aa;
  --muted: #5b6575;
  --line: #d5dbe6;
  --card: #ffffff;
  --soft: #f7f9fc;
}

body {
  color: var(--ink);
  background: var(--pico-background-color);
}

/* App-shell top bar (dashboard, not scoreboard / parchment / forest) */
.shell-top {
  background: var(--charcoal);
  color: #f4f7fb;
  border-bottom: 1px solid #2a3140;
}

.shell-top a {
  color: #c9d4e6;
  text-decoration: none;
}

a.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

a.brand-lockup:hover {
  text-decoration: none;
  opacity: 0.95;
}

.site-tag {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.4);
}

.shell-top .logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  font-size: 1rem;
}

.shell-top .logo span {
  color: var(--mint);
  font-weight: 600;
  font-size: 0.75rem;
  margin-left: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Nav links: soft pill + mint glow on hover */
.shell-top nav ul:last-child li a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 0.35rem;
  color: #c9d4e6;
  border: 1px solid transparent;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.shell-top nav ul:last-child li a:hover {
  color: #fff;
  background: rgba(61, 139, 255, 0.18);
  border-color: rgba(61, 139, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.15);
}

.shell-top nav ul:last-child li a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.shell-top nav ul li a[aria-current="page"] {
  color: #fff;
  background: rgba(61, 139, 255, 0.28);
  border: 1px solid rgba(61, 139, 255, 0.55);
  border-radius: 0.35rem;
  padding: 0.35rem 0.7rem;
}

/* Sub status bar */
.status-bar {
  background: var(--panel);
  color: #aeb8c9;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #2a3140;
}

.status-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  align-items: center;
}

.status-bar a {
  color: var(--mint);
}

.badge-18 {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.2rem;
}

/* KPI strip — unique to this site */
.kpi-row {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

@media (min-width: 720px) {
  .kpi-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 2px rgba(18, 21, 28, 0.04);
}

.kpi .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.kpi .value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.kpi .hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #12151c 0%, #1c2a44 55%, #16324f 100%);
  color: #f4f7fb;
  border-radius: 0.75rem;
  padding: 1.6rem 1.4rem 1.7rem;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid #2a3a55;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.25), transparent 70%);
  pointer-events: none;
}

.hero .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.55rem;
}

.hero h1 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  max-width: 22ch;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
    max-width: 26ch;
  }
}

.hero .lede {
  color: #c5d0e0;
  max-width: 40rem;
  font-size: 1.02rem;
  margin: 0;
}

.hero .meta {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #8b98ad;
  font-style: italic;
}

/* Path cards */
.paths {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 800px) {
  .paths {
    grid-template-columns: 1fr 1fr;
  }
}

.path-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-top: 3px solid var(--blue);
}

.path-card.mint {
  border-top-color: var(--mint);
}

.path-card .tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.4rem;
}

.path-card.mint .tag {
  color: #0a8f74;
}

.path-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 750;
}

.path-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.path-card h3 a:hover {
  color: var(--blue-deep);
}

.path-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sections */
main h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

/* Lists — disc only */
.plain-list {
  list-style: disc;
  padding-left: 1.25rem;
}

.plain-list li {
  margin-bottom: 0.4rem;
}

.plain-list li::before {
  content: none;
  display: none;
}

/* Pipeline steps (horizontal on desktop) */
.pipeline {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  counter-reset: pipe;
}

@media (min-width: 800px) {
  .pipeline {
    grid-template-columns: repeat(5, 1fr);
  }
}

.pipeline > li {
  counter-increment: pipe;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.9rem 0.85rem;
  position: relative;
}

.pipeline > li::marker,
.pipeline > li::before {
  /* number badge via background, not bullet */
}

.pipeline > li .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.3rem;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.pipeline > li strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.pipeline > li span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Compare matrix */
.matrix {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  margin: 1.25rem 0;
}

.matrix table {
  margin: 0;
}

.matrix th {
  background: var(--charcoal);
  color: #f4f7fb;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.matrix tr:nth-child(even) td {
  background: var(--soft);
}

/* Notes */
.panel-note {
  background: #eef5ff;
  border: 1px solid #c5dbff;
  border-left: 4px solid var(--blue);
  border-radius: 0 0.4rem 0.4rem 0;
  padding: 0.9rem 1.05rem;
  margin: 1.25rem 0;
}

.panel-note.warn {
  background: #fff8eb;
  border-color: #f0d9a8;
  border-left-color: #d4a017;
}

.panel-note strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

/* Figures */
.shot {
  margin: 1.5rem auto;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #e6ebf2;
  box-shadow: 0 6px 20px rgba(18, 21, 28, 0.06);
}

.shot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.shot--wide {
  width: 100%;
}

.shot--wide img {
  width: 100%;
  height: auto;
}

.shot--panel {
  max-width: min(100%, 22rem);
}

.shot figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.55rem 0.85rem;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* TOC horizontal chips */
nav.menu-map {
  display: block;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 1rem 1.1rem 1.15rem;
  margin: 1.5rem 0 2rem;
}

nav.menu-map h2 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: none;
  display: block;
  margin: 0 0 0.75rem;
  padding: 0;
  font-weight: 800;
}

nav.menu-map ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mm;
}

nav.menu-map li {
  list-style: none;
  margin: 0;
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
  counter-increment: mm;
}

nav.menu-map li::marker,
nav.menu-map li::before {
  content: none;
  display: none;
}

nav.menu-map a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.7rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

nav.menu-map a::before {
  content: counter(mm);
  flex: 0 0 1.4rem;
  height: 1.4rem;
  border-radius: 0.25rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

nav.menu-map a:hover {
  border-color: var(--blue);
  background: #fff;
}

/* BN */
.bn-panel {
  background: var(--panel);
  color: #e8eef8;
  border-radius: 0.55rem;
  padding: 1.05rem 1.15rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--mint);
}

.bn-panel a {
  color: var(--mint);
}

/* Links row */
.jump {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .jump {
    grid-template-columns: 1fr 1fr;
  }
}

.jump a {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 0.4rem;
  background: var(--charcoal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.jump a:hover {
  background: var(--blue-deep);
  color: #fff;
}

/* Footer */
.shell-end {
  margin-top: 3rem;
  background: var(--charcoal);
  color: #e8eef8;
  padding: 1.6rem 0 2.2rem;
  border-top: 3px solid var(--blue);
}

.shell-end a {
  color: var(--mint);
}

.shell-end .rg {
  color: #f4f7fb;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.shell-end .meta {
  color: #aeb8c9;
  font-size: 0.85rem;
}

/* —— Responsive site nav (shared pattern; site-tinted) —— */
.site-header .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  min-height: 3.25rem;
}

.site-header a.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-header .site-tag {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(61,139,255,0.45);
  border-radius: 0.35rem;
  background: rgba(255,255,255,0.06);
  color: #f4f7fb;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  width: auto;
  height: auto;
}

.nav-toggle:hover,
.nav-toggle:focus {
  background: rgba(61,139,255,0.18);
  border-color: #3d8bff;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 1.1rem;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  width: 100%;
  background: #f4f7fb;
  border-radius: 1px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Kill Pico nav stacking hacks */
nav.site-nav {
  display: block;
  justify-content: initial;
  align-items: initial;
  overflow: visible;
  border-top: 1px solid #2a3140;
  width: 100%;
  margin: 0;
  padding: 0;
}

nav.site-nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.1rem;
  list-style: none;
  margin: 0 !important;
  padding: 0.35rem 0 0.55rem !important;
  width: 100%;
  float: none;
}

nav.site-nav li {
  display: block !important;
  float: none !important;
  position: relative;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
  width: auto;
}

nav.site-nav li::before {
  content: none !important;
  display: none !important;
  float: none !important;
}

nav.site-nav li a {
  position: relative;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0.35rem 0.5rem !important;
  color: #c9d4e6;
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  float: none !important;
  width: auto;
  box-sizing: border-box;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

nav.site-nav li a:hover {
  color: #fff;
  background: rgba(61,139,255,0.18);
  text-decoration: none;
}

nav.site-nav li a[aria-current="page"] {
  font-weight: 700;
  color: #fff;
  background: rgba(61,139,255,0.28);
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

  nav.site-nav {
    display: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #2a3140;
    background: #1c212b;
  }

  nav.site-nav.is-open {
    display: block !important;
    padding: 1rem 0 1.15rem;
  }

  nav.site-nav.is-open.container {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  nav.site-nav.is-open ul {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: min(100% - 2rem, 22rem) !important;
    max-width: 22rem;
    margin: 0 auto !important;
    padding: 0.35rem 0 !important;
    height: auto !important;
    min-height: 0 !important;
    background: transparent;
    list-style: none !important;
  }

  nav.site-nav.is-open li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    flex: none !important;
    height: auto !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(201,212,230,0.12);
  }

  nav.site-nav.is-open li:last-child {
    border-bottom: none;
  }

  nav.site-nav.is-open li::before {
    content: none !important;
    display: none !important;
    float: none !important;
  }

  nav.site-nav.is-open li a {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 1rem 1.15rem !important;
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
    text-align: center !important;
    border-radius: 0 !important;
    white-space: normal !important;
    border: none !important;
    background: transparent !important;
    color: #f4f7fb !important;
    float: none !important;
    height: auto !important;
    box-sizing: border-box;
  }

  nav.site-nav.is-open li a::after {
    display: none !important;
    content: none !important;
  }

  nav.site-nav.is-open li a:hover,
  nav.site-nav.is-open li a:focus-visible {
    background: rgba(61,139,255,0.16) !important;
    text-decoration: none;
  }

  nav.site-nav.is-open li a[aria-current="page"] {
    background: rgba(61,139,255,0.28) !important;
    font-weight: 700;
    color: #f4f7fb !important;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none !important;
  }

  nav.site-nav {
    display: block !important;
  }

  nav.site-nav li a {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.86rem !important;
  }
}

@media (min-width: 1100px) {
  nav.site-nav li a {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.9rem !important;
  }
}
/* header-bar site tweaks */

.site-header.shell-top .header-bar {
  /* shell dark */
}

/* Desktop: brand left, menu right (same row). Mobile: hamburger + full-width panel */
.site-header .header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  min-height: 3.25rem;
}

.site-header .header-bar > .brand-lockup,
.site-header .header-bar > .brand-line {
  flex: 0 1 auto;
  min-width: 0;
  order: 1;
}

.site-header .header-bar > .nav-toggle {
  order: 2;
  margin-left: auto;
}

.site-header .header-bar > nav.site-nav {
  order: 3;
}

/* Desktop single row: brand | flexible spacer nav right-aligned | (toggle hidden) */
@media (min-width: 900px) {
  .site-header .header-bar {
    flex-wrap: nowrap;
  }

  .site-header .header-bar > nav.site-nav {
    order: 2;
    flex: 1 1 auto;
    display: block !important;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .site-header .header-bar > .nav-toggle {
    display: none !important;
    order: 3;
  }

  nav.site-nav ul {
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    gap: 0.15rem 0.25rem !important;
  }
}

@media (max-width: 899px) {
  .site-header .header-bar > nav.site-nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
  }

  /* full-bleed panel relative to header when open */
  nav.site-nav.is-open {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

