/* Supply Chain Skills Lab — skim-first, hub navy + soft --sc accent */
.theme-sc {
  --sc: #0062D6;
  --sc-soft: #004BB0;
  --sc-deep: #004BB0;
  --hub-navy: #1a2b3c;
  --hub-navy-2: #0f1e2a;
  --ink: #1D2D3E;
  --ink-soft: #2a3140;
  --muted: #556B82;
  --line: rgba(18, 21, 28, 0.1);
  --line-strong: rgba(18, 21, 28, 0.16);
  --panel: #ffffff;
  --panel-soft: #f4f6f8;
  --bg: #F5F6F7;
  --accent: var(--sc);
  --accent-2: var(--sc-soft);
  --warn: #8A5A00;
  --danger: #AA0808;
  --ok: var(--sc);
  --shadow: 0 1px 2px rgba(18, 21, 28, 0.04), 0 12px 40px rgba(18, 21, 28, 0.06);
  --radius: 14px;
  --font: "Figtree", "Segoe UI", sans-serif;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.theme-sc .skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--hub-navy);
  font-weight: 650;
  text-decoration: none;
}
.theme-sc .skip-link:focus { top: 0.75rem; }

/* Hub navy nav */
.theme-sc .site-header {
  background: var(--hub-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
}
.theme-sc .brand { color: #E8EEF5; }
.theme-sc .brand-tag { color: #E8EEF5 !important; }
.theme-sc .brand-photo {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.theme-sc .nav-links a { color: #E8EEF5; }
.theme-sc .nav-links a:hover,
.theme-sc .nav-links a[aria-current="page"] {
  color: #7CB8FF;
  font-weight: 650;
}
.theme-sc a { color: var(--sc-deep); }

.theme-sc .nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

/* Hub navy hero */
.sc-hero {
  background: #1A2B3C;
  color: #E8EEF5;
  padding: 2.25rem 1.25rem 2rem;
}
.sc-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.sc-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 96px;
}
.sc-mark-img {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 18px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}
.sc-mark-label {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8EEF5;
  text-align: center;
  max-width: 14ch;
  line-height: 1.35;
}
.theme-sc .breadcrumb { color: #E8EEF5; margin-bottom: 0.35rem; }
.theme-sc .breadcrumb a { color: #E8EEF5; }
.theme-sc .eyebrow {
  color: #E8EEF5;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.theme-sc .sc-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: #E8EEF5;
  margin: 0.2rem 0 0.55rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 22ch;
}
.theme-sc .sc-hero .lead {
  color: #E8EEF5;
  max-width: 56ch;
  line-height: 1.6;
  margin: 0;
  font-size: 1.02rem;
}
.sc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.theme-sc .sc-hero .btn-primary {
  background: var(--sc);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.theme-sc .sc-hero .btn-primary:hover { background: var(--sc-soft); filter: none; }
.theme-sc .sc-hero .btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #E8EEF5;
  background: transparent;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.theme-sc .sc-hero .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.sc-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.sc-pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #E8EEF5;
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 650;
}
.sc-pill.accent {
  border-color: rgba(0, 98, 214, 0.55);
  background: rgba(0, 98, 214, 0.45);
  color: #E8EEF5;
}

.theme-sc .section h2 {
  font-family: var(--display);
  color: var(--ink);
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
}
.theme-sc .section .sub {
  color: var(--muted);
  margin: 0 0 1.1rem;
  max-width: 68ch;
}
.theme-sc .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.theme-sc .kpi {
  background: var(--panel-soft);
  border: 1px solid var(--line);
}
.theme-sc .kpi .label { color: var(--muted); }
.theme-sc .kpi .value { color: var(--ink); }
.theme-sc th { color: var(--muted); }
.theme-sc td { color: var(--ink); }
.theme-sc th,
.theme-sc td { border-bottom-color: var(--line); }

.theme-sc .step-num {
  background: rgba(0, 98, 214, 0.12);
  color: var(--sc-deep);
}
.theme-sc .footer {
  border-top-color: var(--line);
  color: var(--muted);
}
.theme-sc .btn-primary {
  background: var(--sc);
  color: #fff;
  border-radius: 8px;
}
.theme-sc .btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}
.theme-sc .btn-ghost:hover { border-color: var(--sc); }

.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  background: var(--panel-soft);
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  margin: 0 0 1.15rem;
  line-height: 1.5;
}

.lab-anchor { scroll-margin-top: 80px; }
#network-lab,
#modules,
#finance-impact { scroll-margin-top: 80px; }

.section-band {
  border-top: 1px solid var(--line);
  margin-top: 0.25rem;
  padding-top: 1.75rem;
}

.skim-top { padding-top: 1.25rem; }

/* Module chips */
.sc-module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.sc-module-chips a {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}
.sc-module-chips a:hover {
  border-color: var(--sc);
  color: var(--sc-deep);
  text-decoration: none;
}

/* Module details accordion */
.sc-module-stack {
  display: grid;
  gap: 0.55rem;
}
.sc-mod {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(18, 21, 28, 0.04);
}
.sc-mod > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--ink);
}
.sc-mod > summary::-webkit-details-marker { display: none; }
.sc-mod > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
  font-size: 1.15rem;
}
.sc-mod[open] > summary::after { content: "–"; }
.sc-mod .mod-name { font-size: 0.95rem; }
.sc-mod .mod-hint {
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--muted);
  margin-left: 0.15rem;
}
.sc-mod-body {
  padding: 0 1rem 1.05rem;
  border-top: 1px solid var(--line);
}
.sc-mod-blurb {
  margin: 0.85rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 72ch;
}
.module-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 0.5rem;
  border-radius: 7px;
  background: #1A2B3C;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.module-code.fund { background: #1A2B3C; }
.module-code.des { background: #037C77; }
.module-code.dyn { background: #0062D6; }
.module-code.an { background: #004BB0; }
.module-code.tech { background: #1A2B3C; }

.problem-block {
  margin-top: 0.25rem;
  padding: 1rem 1.05rem;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.problem-block h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--ink);
}
.problem-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.problem-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.problem-block p {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}
.problem-block .approach {
  color: var(--muted);
  font-size: 0.86rem;
}
.result-callout {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border-left: 3px solid var(--sc);
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.5;
}

.strategy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}
.strategy-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}
.strategy-tabs button.active {
  color: #fff;
  background: var(--sc);
  border-color: transparent;
}

.panel h3 {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.sc-context {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.sc-context-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.sc-context-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}
.sc-context-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.theme-sc .badge-ok { background: rgba(37, 111, 58, 0.12); color: #256F3A; }
.theme-sc .badge-warn { background: rgba(138, 90, 0, 0.12); color: #8A5A00; }
.theme-sc .badge-bad { background: rgba(170, 8, 8, 0.12); color: #AA0808; }

.essay-nest {
  margin-top: 0.75rem;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #fff;
}
.essay-nest > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
}
.essay-nest > summary::-webkit-details-marker { display: none; }
.essay-nest p {
  margin: 0;
  padding: 0 0.85rem 0.85rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .sc-hero-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .sc-logo-block {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }
  .sc-mark-img { width: 72px; height: 72px; border-radius: 14px; }
  .sc-mark-label { text-align: left; max-width: none; }
  .theme-sc .nav-toggle { display: inline-flex; }
  .theme-sc .nav { flex-wrap: wrap; }
  .theme-sc .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.35rem 0 0.6rem;
  }
  .theme-sc .nav-links.open { display: flex; }
  .sc-mod .mod-hint { display: none; }
}

/* Dark bar and hero: body link colour must not land on #1A2B3C */
.theme-sc .site-header a { color: #E8EEF5; }
.theme-sc .site-header .nav-home-btn,
.theme-sc .site-header .nav-links a:hover,
.theme-sc .site-header .nav-links a[aria-current="page"] { color: #7CB8FF; }
.theme-sc .sc-hero h1,
.theme-sc .sc-hero .lead,
.theme-sc .breadcrumb,
.theme-sc .breadcrumb a,
.theme-sc .eyebrow,
.sc-mark-label { color: #E8EEF5; }
