/* ForgeSDLC product site — dark forge aesthetic */
:root {
  --fs-bg: #0a0e17;
  --fs-bg-elevated: #111827;
  --fs-bg-sidebar: #0d121c;
  --fs-border: rgba(148, 163, 184, 0.12);
  --fs-text: #e5e7eb;
  --fs-text-muted: #94a3b8;
  --fs-amber: #f59e0b;
  --fs-amber-dim: rgba(245, 158, 11, 0.15);
  --fs-cyan: #06b6d4;
  --fs-cyan-dim: rgba(6, 182, 212, 0.12);
  --fs-mint: #5eead4;
  --fs-shell-max: min(118rem, calc(100vw - 1.5rem));
  --fs-prose-max: 42rem;
  /* Proxima Nova: add Adobe Fonts kit or @font-face. */
  --fs-font-display: "Proxima Nova Black", "Proxima Nova", "proxima-nova", "Open Sans", system-ui, sans-serif;
  --fs-font-sans: "Open Sans", system-ui, -apple-system, sans-serif;
  --fs-font-mono: "Courier New", Courier, ui-monospace, monospace;
}

html,
body {
  background-color: var(--fs-bg);
  color: var(--fs-text);
  font-family: var(--fs-font-sans);
}

/* --- Embed mode (?fs-embed=1): iframe / in-page preview — hide global chrome --- */
html.fs-embed .forge-theme-dropdown,
html.fs-embed .fs-mobile-bar,
html.fs-embed .fs-primary-nav-global,
html.fs-embed #fsNav,
html.fs-embed .fs-offcanvas,
html.fs-embed .fs-sidebar {
  display: none !important;
}

/* Topic preview modal hoists Markdown .toc to parent; hide duplicate inside iframe */
html.fs-embed.fs-preview-rail .fs-main .toc {
  display: none !important;
}

html.fs-embed .fs-layout .row > main.col-lg-9,
html.fs-embed .fs-layout .row > main {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

html.fs-embed .landing-header {
  display: none !important;
}

/* Markdown TOC in iframe preview (?fs-embed=1): in-flow, not full-bleed; cap height and scroll
   inside the box; contain overscroll for nested browsing context. */
html.fs-embed .fs-main .toc {
  margin-top: 0;
  max-width: min(22rem, 100%);
  max-height: min(40vh, 18rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Topic preview trigger — distinct from pathway forge-cards (accent rail + compact) */
@keyframes fs-topic-preview-breathe {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 0 0 1px rgba(0, 0, 0, 0.22),
      0 4px 20px rgba(245, 158, 11, 0.1),
      0 0 32px rgba(245, 158, 11, 0.06);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 0 0 1px rgba(245, 158, 11, 0.14),
      0 10px 44px rgba(245, 158, 11, 0.22),
      0 0 72px rgba(245, 158, 11, 0.14);
  }
}

@keyframes fs-topic-preview-breathe-light {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 1px 4px rgba(15, 23, 42, 0.05),
      0 6px 24px rgba(217, 119, 6, 0.08);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 2px 8px rgba(15, 23, 42, 0.06),
      0 12px 40px rgba(217, 119, 6, 0.18),
      0 0 56px rgba(217, 119, 6, 0.1);
  }
}

.fs-topic-preview-card {
  display: block;
  width: 100%;
  max-width: 28rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 1.35rem 1.5rem 1.15rem;
  margin: 0 0 1rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: linear-gradient(
    145deg,
    rgba(42, 34, 24, 0.94) 0%,
    rgba(24, 20, 16, 0.96) 42%,
    rgba(14, 17, 26, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 4px 20px rgba(245, 158, 11, 0.1),
    0 0 32px rgba(245, 158, 11, 0.06);
  animation: fs-topic-preview-breathe 3.4s ease-in-out infinite;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.fs-topic-preview-card:hover {
  animation: none;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(6, 182, 212, 0.12),
    0 12px 40px rgba(6, 182, 212, 0.08);
  text-decoration: none;
  color: inherit;
  transform: translateY(-1px);
}

.fs-topic-preview-card:focus-visible {
  outline: 2px solid var(--fs-cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .fs-topic-preview-card {
    animation: none;
  }
}

.fs-topic-preview-card__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fs-mint);
  margin-bottom: 0.5rem;
}

.fs-topic-preview-card__title {
  display: block;
  font-family: var(--fs-font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: -0.02em;
  color: var(--fs-text);
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

.fs-topic-preview-card__desc {
  font-size: 0.9rem;
  color: var(--fs-text-muted);
  line-height: 1.5;
  margin: 0;
}

.fs-topic-preview-card__hint {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.55);
}

/* card_grid on home: topic preview triggers in Bootstrap columns (match forge-card tile height) */
.fs-main article .row.g-3.mb-4 > [class*="col-"].d-flex {
  display: flex !important;
}

.fs-main article .row.g-3.mb-4 > [class*="col-"].d-flex > a.fs-topic-preview-card {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.fs-main article .row.g-3.mb-4 > [class*="col-"].d-flex > a.fs-topic-preview-card .fs-topic-preview-card__hint {
  margin-top: auto;
}

.fs-layout {
  min-height: 100vh;
}

.fs-sidebar {
  background: var(--fs-bg-sidebar);
  border-right: 1px solid var(--fs-border);
  min-height: 100vh;
}

@media (min-width: 992px) {
  .fs-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100vh;
    overflow-y: auto;
  }
}

.fs-brand {
  font-family: var(--fs-font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--fs-text) !important;
}

.fs-brand span.fs-accent {
  color: var(--fs-amber);
}

.fs-nav-tier {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fs-cyan);
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  padding-left: 0.5rem;
}

.fs-nav-tier:first-child {
  margin-top: 0;
}

.fs-sidebar .nav-link {
  color: var(--fs-text-muted);
  border-radius: 0.375rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

.fs-sidebar .nav-link:hover {
  color: var(--fs-text);
  background: var(--fs-cyan-dim);
}

.fs-sidebar .nav-link.active {
  color: var(--fs-bg);
  background: linear-gradient(135deg, var(--fs-amber), #d97706);
  font-weight: 500;
}

.fs-main {
  padding: 1.5rem 1.25rem 3rem;
  max-width: 52rem;
}

.fs-main--product-wide {
  max-width: min(62rem, 100%);
}

@media (min-width: 768px) {
  .fs-main {
    padding: 2rem 2.5rem 4rem;
  }
}

.fs-main article {
  line-height: 1.65;
}

.fs-main h1 {
  font-family: var(--fs-font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--fs-text), var(--fs-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fs-main h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--fs-border);
  color: var(--fs-amber);
}

.fs-main h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: var(--fs-text);
}

.fs-main a {
  color: var(--fs-cyan);
  text-decoration: none;
  text-underline-offset: 2px;
}

.fs-main a:hover {
  color: var(--fs-amber);
  text-decoration: underline;
}

.fs-main a:focus-visible {
  text-decoration: underline;
}

/* Whole-card links: do not apply prose .fs-main a:hover (amber + underline) */
.fs-main article a.fs-topic-preview-card,
.fs-main--product-wide article a.fs-topic-preview-card {
  color: inherit;
  text-decoration: none;
}

.fs-main article a.fs-topic-preview-card:hover,
.fs-main article a.fs-topic-preview-card:focus,
.fs-main article a.fs-topic-preview-card:focus-visible,
.fs-main--product-wide article a.fs-topic-preview-card:hover,
.fs-main--product-wide article a.fs-topic-preview-card:focus,
.fs-main--product-wide article a.fs-topic-preview-card:focus-visible {
  color: inherit;
  text-decoration: none;
}

.fs-main .fs-landing-rail a:hover,
.fs-main .fs-landing-rail a:focus-visible {
  color: var(--fs-cyan);
  text-decoration: underline;
}

.fs-main code,
.fs-main kbd {
  font-family: var(--fs-font-mono);
  font-size: 0.88em;
  background: var(--fs-bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  border: 1px solid var(--fs-border);
}

.fs-main pre {
  background: var(--fs-bg-elevated);
  border: 1px solid var(--fs-border);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
}

.fs-main pre code {
  border: none;
  padding: 0;
  background: transparent;
  font-size: 0.85rem;
}

.fs-main table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.fs-main th,
.fs-main td {
  border: 1px solid var(--fs-border);
  padding: 0.5rem 0.65rem;
}

.fs-main th {
  background: var(--fs-bg-elevated);
  color: var(--fs-amber);
  font-weight: 600;
}

.fs-main blockquote {
  border-left: 3px solid var(--fs-amber);
  margin: 1rem 0;
  padding: 0.35rem 0 0.35rem 1rem;
  color: var(--fs-text-muted);
  background: var(--fs-amber-dim);
  border-radius: 0 0.375rem 0.375rem 0;
}

.fs-main .toc {
  background: var(--fs-bg-elevated);
  border: 1px solid var(--fs-border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.fs-main .toc ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.fs-cross-refs {
  border: 1px solid var(--fs-cyan);
  background: var(--fs-cyan-dim);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
}

.fs-cross-refs .fs-cross-refs-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fs-cyan);
  margin-bottom: 0.5rem;
}

.fs-cross-refs ul {
  margin: 0;
  padding-left: 1.1rem;
}

.fs-cross-refs a {
  font-weight: 500;
  text-decoration: none;
}

.fs-cross-refs a:hover,
.fs-cross-refs a:focus-visible {
  text-decoration: underline;
}

.fs-cross-refs--subtle {
  border: 1px solid var(--fs-border);
  background: rgba(17, 24, 39, 0.45);
  padding: 0.65rem 0.85rem;
  margin: 0 0 1.25rem;
}

.fs-cross-refs--subtle .fs-cross-refs-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--fs-text-muted);
  margin-bottom: 0.35rem;
}

.fs-cross-refs--subtle a {
  font-weight: 400;
  color: var(--fs-text-muted);
}

.fs-cross-refs--subtle a:hover,
.fs-cross-refs--subtle a:focus-visible {
  color: var(--fs-cyan);
}

.fs-main .landing-support-nav {
  font-size: 0.8125rem;
  color: var(--fs-text-muted);
  margin: 1.25rem 0 1.5rem;
  line-height: 1.5;
}

.fs-main .landing-support-nav a {
  color: var(--fs-cyan);
  font-weight: 500;
  text-decoration: none;
}

.fs-main .landing-support-nav a:hover,
.fs-main .landing-support-nav a:focus-visible {
  text-decoration: underline;
}

.fs-main .landing-authorship {
  max-width: 40rem;
  margin: 2rem auto 0.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--fs-border);
  text-align: center;
}

.fs-main .landing-authorship-lead {
  font-family: var(--fs-font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fs-text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.fs-main .landing-authorship-support {
  font-size: 0.8125rem;
  line-height: 1.55;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Product home (landing_page): larger executive hero */
.landing-hero {
  padding: 5.5rem 1.25rem 3.75rem;
  max-width: 58rem;
}

@media (min-width: 768px) {
  .landing-hero {
    padding: 6.75rem 2rem 4.25rem;
  }
}

.landing-hero .landing-hero-kicker {
  font-family: var(--fs-font-sans);
  font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fs-amber);
  margin-bottom: 1rem;
}

/* Descenders on "g" (and gradient text) were clipped: line-height 1.04 is too tight
   for background-clip:text; hero band also uses overflow:hidden -- keep glyphs inside the line box. */
.landing-hero .product-landing-title {
  font-size: clamp(2.85rem, 8vw, 4.5rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  padding-bottom: 0.08em;
}

.landing-hero-copy {
  overflow: visible;
}

.landing-hero .landing-hero-tagline {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--fs-text-muted);
}

.landing-hero .landing-hero-clarification {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.55;
  color: var(--fs-text);
}

.landing-hero .landing-hero-explainer {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.95rem, 1.85vw, 1.05rem);
  line-height: 1.55;
  color: var(--fs-text-muted);
}

.landing-hero .landing-hero-audience {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  line-height: 1.5;
}

.landing-hero .landing-hero-actions {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0.25rem;
}

.landing-hero .landing-hero-secondary-links {
  font-size: 0.8125rem;
  line-height: 1.6;
}

.landing-hero .landing-hero-secondary-link {
  color: var(--fs-text-muted);
  text-decoration: none;
}

.landing-hero .landing-hero-secondary-link:hover,
.landing-hero .landing-hero-secondary-link:focus-visible {
  color: var(--fs-cyan);
  text-decoration: underline;
}

.landing-hero .landing-hero-secondary-sep {
  color: var(--fs-border);
  user-select: none;
}

/* --- WP1 / shell: wide landing body ----------------------------------- */
.fs-landing-body-shell {
  width: 100%;
  max-width: var(--fs-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: clamp(2.5rem, 4vw, 4.5rem);
}

.fs-landing-body-shell > .fs-main {
  max-width: none;
  width: 100%;
  padding-left: clamp(0.65rem, 1.5vw, 1.25rem);
  padding-right: clamp(0.65rem, 1.5vw, 1.25rem);
}

.fs-prose-flow {
  max-width: var(--fs-prose-max);
  width: 100%;
}

.fs-landing-model-row {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.fs-landing-rail {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fs-landing-model-diagram {
  border-radius: 0.5rem;
  border: 1px solid var(--fs-border);
  background: linear-gradient(
    165deg,
    rgba(6, 182, 212, 0.06) 0%,
    rgba(245, 158, 11, 0.09) 50%,
    rgba(26, 22, 18, 0.35) 100%
  );
  padding: 1rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fs-model-schematic {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fs-model-schematic__track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(6, 182, 212, 0.35) 30%,
    rgba(245, 158, 11, 0.4) 70%,
    transparent
  );
}

.fs-model-schematic__nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  align-items: center;
}

.fs-model-node {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid var(--fs-border);
}

.fs-model-node--human {
  color: var(--fs-amber);
  background: var(--fs-amber-dim);
  border-color: rgba(245, 158, 11, 0.25);
}

.fs-model-node--agent {
  color: var(--fs-cyan);
  background: var(--fs-cyan-dim);
  border-color: rgba(6, 182, 212, 0.22);
}

@media (max-width: 991.98px) {
  .fs-landing-rail {
    position: static;
    margin-top: 1.5rem;
  }

  .fs-prose-flow {
    max-width: none;
  }
}

/* --- WP2: primary nav (landing + product) ----------------------------- */
.fs-primary-nav-global {
  position: sticky;
  top: 0;
  z-index: 28;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fs-border);
}

.fs-primary-nav-global-inner {
  max-width: var(--fs-shell-max);
  margin: 0 auto;
  padding: 0.4rem clamp(0.5rem, 1.5vw, 1.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
}

@media (min-width: 992px) {
  .fs-primary-nav-global-inner {
    justify-content: flex-end;
    padding-right: clamp(1rem, 2vw, 2rem);
  }

  .fs-layout .fs-primary-nav-global-inner {
    padding-right: clamp(0.75rem, 1.5vw, 1.5rem);
  }
}

.fs-primary-nav-global a {
  font-family: var(--fs-font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fs-text-muted);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.fs-primary-nav-global a:hover {
  color: var(--fs-text);
  background: var(--fs-cyan-dim);
  border-color: rgba(6, 182, 212, 0.28);
}

.fs-primary-nav-global a:focus-visible {
  outline: 2px solid var(--fs-cyan);
  outline-offset: 2px;
}

.fs-primary-nav-global a.active {
  color: var(--fs-cyan);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.35);
}

@media (max-width: 575.98px) {
  .fs-primary-nav-global-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}

/* --- WP3 / WP4 / WP10: wide hero + signal + hero atmosphere -------------- */
.fs-landing-hero-band.landing-hero {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.fs-landing-hero-band.landing-hero::before {
  content: "";
  position: absolute;
  inset: -15% -5% auto -5%;
  height: 85%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 75% 35%, rgba(6, 182, 212, 0.09) 0%, transparent 58%),
    radial-gradient(ellipse 40% 50% at 20% 60%, rgba(245, 158, 11, 0.05) 0%, transparent 55%);
  opacity: 0.9;
}

.landing-hero-wide {
  position: relative;
  z-index: 1;
  max-width: var(--fs-shell-max);
  margin-left: auto;
  margin-right: auto;
}

.landing-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
}

.landing-signal-field {
  width: 100%;
  max-width: 28rem;
  opacity: 0.92;
  filter: drop-shadow(0 0 28px rgba(6, 182, 212, 0.08));
}

.landing-signal-field__svg {
  width: 100%;
  height: auto;
  display: block;
}

.landing-signal-field__routes {
  animation: lsf-drift 38s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .landing-signal-field__routes {
    animation: none;
  }
}

@keyframes lsf-drift {
  from {
    transform: translate(0, 0);
    opacity: 0.85;
  }
  to {
    transform: translate(6px, -4px);
    opacity: 1;
  }
}

@media (min-width: 1200px) {
  .landing-hero-copy.text-xl-start .landing-hero-tagline,
  .landing-hero-copy.text-xl-start .landing-hero-clarification,
  .landing-hero-copy.text-xl-start .landing-hero-explainer,
  .landing-hero-copy.text-xl-start .landing-hero-audience {
    margin-left: 0;
    margin-right: 0;
    max-width: 38rem;
  }

  .landing-hero-copy.text-xl-start .landing-hero-kicker {
    text-align: left;
  }

  .landing-hero-copy.text-xl-start .landing-hero-actions {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    max-width: 38rem;
  }

  .landing-hero-copy.text-xl-start .product-landing-title {
    text-align: left;
  }
}

/* --- WP5 / WP7: panels + pillar identity -------------------------------- */
.forge-stat-band .forge-stat {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fs-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}

.forge-stat--amber {
  border-color: rgba(245, 158, 11, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(245, 158, 11, 0.08),
    0 0 24px rgba(245, 158, 11, 0.06);
}

.forge-stat--cyan {
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(6, 182, 212, 0.06),
    0 0 24px rgba(6, 182, 212, 0.05);
}

.forge-stat--emerald {
  border-color: rgba(52, 211, 153, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(52, 211, 153, 0.05),
    0 0 22px rgba(52, 211, 153, 0.04);
}

.fs-main article .row.g-3.mb-4.landing-pathway-row {
  max-width: min(100%, 90rem);
}

.forge-card--lead {
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.25);
  background: linear-gradient(
    165deg,
    rgba(17, 24, 39, 0.95) 0%,
    rgba(10, 14, 23, 0.88) 100%
  );
}

/* --- WP6 / WP8 / WP10: sections + authorship bridge --------------------- */
.fs-landing-section {
  position: relative;
  padding-top: clamp(1rem, 2vw, 1.75rem);
  padding-bottom: clamp(0.5rem, 1.5vw, 1.25rem);
  margin-bottom: 0.25rem;
}

.fs-landing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 0.5rem;
  opacity: 0.55;
}

.fs-landing-section > * {
  position: relative;
  z-index: 1;
}

.fs-section-model[data-fs-section="model"]::before {
  background: radial-gradient(
    ellipse 80% 60% at 70% 20%,
    rgba(6, 182, 212, 0.07) 0%,
    transparent 65%
  );
}

.fs-landing-model-row.fs-landing-section {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.fs-section-pillars[data-fs-section="pillars"]::before {
  background: radial-gradient(
    circle at 50% 0%,
    rgba(245, 158, 11, 0.06) 0%,
    transparent 55%
  );
}

.fs-section-authorship[data-fs-section="authorship"]::before {
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.05) 0%,
    transparent 40%,
    rgba(6, 182, 212, 0.05) 100%
  );
}

.fs-section-pathways-understand::before,
.fs-section-pathways-product::before,
.fs-section-pathways-engineering::before,
.fs-section-pathways-adoption::before {
  background: radial-gradient(
    ellipse 100% 80% at 50% 0%,
    rgba(6, 182, 212, 0.04) 0%,
    transparent 60%
  );
}

.fs-section-pathways-agents::before {
  background: radial-gradient(
    ellipse 90% 70% at 30% 30%,
    rgba(6, 182, 212, 0.08) 0%,
    rgba(245, 158, 11, 0.05) 100%
  );
}

.fs-main .landing-authorship--bridge {
  border-top: none;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 182, 212, 0.04) 50%,
    transparent 100%
  );
  border-radius: 0.375rem;
}

.fs-main .landing-authorship--bridge .landing-authorship-lead {
  color: var(--fs-amber);
  opacity: 0.95;
}

.fs-footer {
  border-top: 1px solid var(--fs-border);
  margin-top: 3rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--fs-text-muted);
}

.fs-landing-footer-band {
  position: relative;
  max-width: var(--fs-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0.65rem, 1.5vw, 1.25rem);
  padding-right: clamp(0.65rem, 1.5vw, 1.25rem);
}

.fs-landing-footer-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(
      rgba(148, 163, 184, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
}

.fs-landing-footer-band > * {
  position: relative;
  z-index: 1;
}

.fs-footer a {
  color: var(--fs-amber);
  text-decoration: none;
}

.fs-footer a:hover {
  text-decoration: underline;
}

.fs-mobile-bar {
  background: var(--fs-bg-sidebar);
  border-bottom: 1px solid var(--fs-border);
}

.fs-offcanvas {
  background: var(--fs-bg-sidebar);
}

.fs-offcanvas .btn-close {
  filter: invert(1);
}

/*
 * ks_blocks card_grid (e.g. landing “Start here”) — product article only.
 * Forge generator emits: h2 + .row.g-3.mb-4 > .col-* > a.forge-card
 */
.fs-main h2.text-center {
  border-bottom: none;
  padding-bottom: 0;
}

.fs-main h2.landing-pathway-title {
  text-align: start;
  font-size: 1.15rem;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0;
  color: var(--fs-text-muted);
  font-family: var(--fs-font-sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fs-main h2.landing-pathway-title:first-of-type {
  margin-top: 0.5rem;
}

.fs-main article .row.g-3.mb-4 {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
  max-width: min(100%, 68rem);
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.fs-main article .row.g-3.mb-4 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Do not inherit global .fs-main a underline on whole-card links */
.fs-main article .row.g-3.mb-4 a.forge-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  padding: 0.9rem 1rem 1.05rem;
  box-sizing: border-box;
}

.fs-main article .row.g-3.mb-4 a.forge-card:hover,
.fs-main article .row.g-3.mb-4 a.forge-card:focus,
.fs-main article .row.g-3.mb-4 a.forge-card:focus-visible {
  text-decoration: none;
}

.fs-main article .row.g-3.mb-4 a.forge-card .forge-support {
  margin-top: auto;
  padding-top: 0.45rem;
  line-height: 1.45;
  font-size: 0.8125rem;
}

.fs-main article .row.g-3.mb-4 a.forge-card .card-label {
  font-family: var(--fs-font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.fs-main article .row.g-3.mb-4 a.forge-card h3,
.fs-main article .row.g-3.mb-4 a.forge-card h4,
.fs-main article .row.g-3.mb-4 a.forge-card h5 {
  flex-shrink: 0;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

/*
 * Pathway swimlanes: consecutive pathways-* card_grid blocks are wrapped in
 * .fs-pathway-swimlanes (see Forge ks_compose). Wide viewports: columns with
 * cards stacked per lane; below xl: lanes stack in one column.
 */
.fs-pathway-swimlanes {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  align-items: start;
  margin-bottom: 0.35rem;
}

.fs-pathway-swimlanes > .fs-landing-section {
  min-width: 0;
}

.fs-pathway-swimlanes > .fs-landing-section > h2.landing-pathway-title {
  margin-top: 0.65rem;
  margin-bottom: 0.65rem;
}

.fs-pathway-swimlanes > .fs-landing-section:first-child > h2.landing-pathway-title {
  margin-top: 0.35rem;
}

@media (max-width: 1199.98px) {
  .fs-pathway-swimlanes {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .fs-pathway-swimlanes {
    grid-template-columns: repeat(auto-fit, minmax(12.75rem, 1fr));
  }
}

.fs-pathway-swimlanes .landing-pathway-row--lane {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  justify-content: stretch;
}

.fs-pathway-swimlanes .landing-pathway-row--lane > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

/* --- Light mode (html[data-bs-theme] set by forge-theme.js) ---------- */
html[data-bs-theme="light"] {
  color-scheme: light;
  --fs-bg: #f4f7fb;
  --fs-bg-elevated: #ffffff;
  --fs-bg-sidebar: #e8eef5;
  --fs-border: rgba(15, 23, 42, 0.1);
  --fs-text: #0f172a;
  --fs-text-muted: #64748b;
  --fs-amber: #d97706;
  --fs-amber-dim: rgba(245, 158, 11, 0.2);
  --fs-cyan: #0891b2;
  --fs-cyan-dim: rgba(6, 182, 212, 0.16);
}

html[data-bs-theme="light"] .fs-offcanvas .btn-close {
  filter: none;
  opacity: 0.55;
}

html[data-bs-theme="light"] .fs-sidebar .nav-link.active {
  color: #0f172a;
}

html[data-bs-theme="light"] .fs-cross-refs--subtle {
  background: rgba(15, 23, 42, 0.04);
}

html[data-bs-theme="light"] .fs-topic-preview-card {
  background: linear-gradient(145deg, #fffdfb 0%, #fef3e2 40%, #f1f5f9 100%);
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 4px rgba(15, 23, 42, 0.05),
    0 6px 24px rgba(217, 119, 6, 0.08);
  animation-name: fs-topic-preview-breathe-light;
}

html[data-bs-theme="light"] .fs-topic-preview-card:hover {
  animation: none;
  border-color: rgba(8, 145, 178, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 8px rgba(15, 23, 42, 0.06),
    0 12px 36px rgba(8, 145, 178, 0.12);
}
