/* =============================================================================
   Strategy Library (sapience-issues #1072): the catalogue and the assessment page.

   Loaded ONLY by the two library templates, so site.css (and every live page that references it) is unchanged.
   Built from site.css's tokens: the force accents, the soft shadows, the 20px card radius, Roboto.
   Spec rules carried into the look (catalogue card spec v2, sapience-issues #1072):
     - marks are filled vs empty; the force colour only reinforces them, it is never the scale;
     - an empty mark still takes its place, so 0 reads as 0;
     - the whole card is one focusable link with a visible focus ring.
   ============================================================================= */

.ff-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Each force's accent, as on the home page cards and the model wheel. */
.ff-sl-force--internal    { --sl-accent: var(--ff-internal); }
.ff-sl-force--geopolitics { --sl-accent: var(--ff-global); }
.ff-sl-force--society     { --sl-accent: var(--ff-society); }
.ff-sl-force--industry    { --sl-accent: var(--ff-industry); }
.ff-sl-force--human       { --sl-accent: var(--ff-human); }
.ff-sl-force--key         { --sl-accent: var(--ff-ink); }

/* ---------- Marks ------------------------------------------------------- */
.ff-sl-marks { display: inline-flex; align-items: center; gap: 5px; line-height: 0; }
.ff-sl-marks i {
  display: block; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid #c9d3e3; background: #fff;
}
.ff-sl-marks--action { gap: 7px; padding-inline: 1px; }
.ff-sl-marks--action i { width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); }
.ff-sl-marks i.is-on { background: var(--sl-accent, var(--ff-blue)); border-color: var(--sl-accent, var(--ff-blue)); }

/* ---------- Catalogue: head + key --------------------------------------- */
.ff-sl-hub-head .ff-container--narrow { max-width: 980px; }
.ff-sl-deck { max-width: 760px; margin-inline: auto; }
.ff-sl-deck .ff-lede + .ff-lede { margin-top: 12px; }
.ff-sl-hero__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.ff-sl-hero__talk { color: var(--ff-blue); font-size: 15px; }
.ff-sl-hero__talk:hover { color: var(--ff-blue-deep); }
.ff-sl-hub-head .ff-page-title { max-width: 30ch; margin-inline: auto; }
.ff-sl-hub-head .ff-accent { white-space: nowrap; }
.ff-sl-key {
  margin: 40px auto 0; padding: 26px 28px 22px;
  background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); box-shadow: var(--ff-shadow-sm);
}
.ff-sl-key__title { font-size: 20px; letter-spacing: -.02em; }
.ff-sl-key__scales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 14px; }
.ff-sl-key__item { padding: 4px 26px 14px 0; }
.ff-sl-key__item + .ff-sl-key__item { padding-left: 26px; border-left: 1px solid var(--ff-line); }
.ff-sl-key dt { display: flex; align-items: center; gap: 10px; color: var(--ff-ink); font-weight: 700; font-size: 16px; }
.ff-sl-key dd { margin: 8px 0 0; color: var(--ff-muted); font-size: 14.5px; line-height: 1.55; }
.ff-sl-key__scale { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--ff-body); font-size: 13.5px; }
.ff-sl-key__scale b { color: var(--ff-faint); font-weight: 500; margin-right: 2px; }
.ff-sl-key__note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ff-line-faint); color: var(--ff-muted); font-size: 14.5px; line-height: 1.6; }
.ff-sl-key__note + .ff-sl-key__note { margin-top: 0; border-top: 0; padding-top: 4px; }
.ff-sl-key__total { color: var(--ff-blue); font-weight: 700; letter-spacing: -.02em; }

/* ---------- Catalogue: sections + grid ---------------------------------- */
.ff-sl-section { padding-block: clamp(48px, 6vw, 80px); }
.ff-sl-section--soft { background: var(--ff-bg-soft); border-top: 1px solid var(--ff-line-faint); }
.ff-sl-section__head { margin-bottom: 28px; max-width: 760px; }
.ff-sl-section__title { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.025em; }
.ff-sl-section__intro { margin-top: 10px; color: var(--ff-muted); font-size: 17px; line-height: 1.6; }
.ff-sl-group + .ff-sl-group { margin-top: 36px; }
.ff-sl-group__title {
  margin-bottom: 16px; color: var(--ff-muted); font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
}
.ff-sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }

/* ---------- The card ---------------------------------------------------- */
.ff-sl-card {
  display: flex; flex-direction: column; color: inherit;
  background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow-sm); padding: 26px 26px 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ff-sl-card:hover { transform: translateY(-3px); box-shadow: var(--ff-shadow-md); border-color: var(--ff-line-strong); }
.ff-sl-card:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 3px; border-radius: var(--ff-radius); }
.ff-sl-card__publisher { color: var(--ff-muted); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.ff-sl-card__name { margin-top: 8px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.ff-sl-card:hover .ff-sl-card__name { color: var(--ff-blue); }
.ff-sl-card__liner { margin-top: 10px; color: var(--ff-muted); font-size: 15px; line-height: 1.55; }

.ff-sl-card__strip { margin-top: auto; padding-top: 20px; }
.ff-sl-card__columns,
.ff-sl-card__forces li { display: grid; grid-template-columns: minmax(0, 1fr) 62px 96px; align-items: center; column-gap: 12px; }
.ff-sl-card__columns { padding-bottom: 6px; color: var(--ff-faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ff-sl-card__columns span:first-child { grid-column: 2; }
.ff-sl-card__forces li { position: relative; padding-block: 8px; border-top: 1px solid var(--ff-line-faint); }
.ff-sl-card__force { display: flex; align-items: center; gap: 9px; color: var(--ff-body); font-size: 14.5px; }
.ff-sl-card__force::before {
  content: ""; flex: none; width: 4px; height: 14px; border-radius: 2px; background: var(--sl-accent);
}
.ff-sl-card__total {
  display: flex; justify-content: flex-end; margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--ff-line); color: var(--ff-muted); font-size: 14.5px;
}
.ff-sl-card__total b { margin-left: 6px; color: var(--ff-ink); font-size: 17px; letter-spacing: -.01em; }

/* ---------- Assessment page --------------------------------------------- */
.ff-sl-narrow { max-width: 880px; }
.ff-sl-head__publisher { color: var(--ff-muted); font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.ff-sl-head__liner { margin-top: 6px; max-width: 62ch; color: var(--ff-muted); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; }
.ff-sl-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ff-line); }
.ff-sl-facts dt { color: var(--ff-faint); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ff-sl-facts dd { margin: 6px 0 0; color: var(--ff-body); font-size: 15px; line-height: 1.5; }
.ff-sl-framework-link { margin-top: 26px; font-size: 15px; text-align: left; line-height: 1.3; }

.ff-sl-intro { padding-bottom: 8px; }

.ff-sl-map {
  margin-block: 36px 48px; padding: clamp(22px, 3.5vw, 34px);
  background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius-lg); box-shadow: var(--ff-shadow-md);
}
.ff-sl-map__title { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.025em; }
.ff-sl-map__intro { margin-top: 8px; color: var(--ff-muted); font-size: 15.5px; line-height: 1.6; }
.ff-sl-map__columns,
.ff-sl-map__row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 56px; align-items: center; column-gap: 18px; }
.ff-sl-map__columns { margin-top: 22px; padding-bottom: 8px; color: var(--ff-faint); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.ff-sl-map__columns span:last-child { text-align: right; }
.ff-sl-map__row { position: relative; padding-block: 16px; border-top: 1px solid var(--ff-line); }
.ff-sl-map__force { display: flex; align-items: center; gap: 10px; color: var(--ff-ink); font-weight: 700; font-size: 16px; line-height: 1.3; }
.ff-sl-map__force::before { content: ""; flex: none; width: 4px; height: 18px; border-radius: 2px; background: var(--sl-accent); }
.ff-sl-map__force:hover { color: var(--ff-blue); }
.ff-sl-map__signal { display: flex; align-items: center; gap: 10px; color: var(--ff-body); font-size: 14.5px; }
.ff-sl-map__subtotal { text-align: right; color: var(--ff-ink); font-weight: 700; font-size: 15px; }
.ff-sl-map__evidence { grid-column: 1 / -1; margin-top: 10px; padding-left: 14px; color: var(--ff-muted); font-size: 14px; line-height: 1.6; }
.ff-sl-map__total {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 8px;
  padding-top: 16px; border-top: 1px solid var(--ff-line-strong); color: var(--ff-muted); font-size: 15px;
}
.ff-sl-map__total b { color: var(--ff-ink); font-size: 22px; letter-spacing: -.02em; }
.ff-sl-map__note { margin-top: 6px; text-align: right; color: var(--ff-faint); font-size: 13.5px; }

.ff-sl-body { padding-bottom: 24px; }
.ff-sl-body h2 { font-size: clamp(22px, 2.6vw, 27px); }
.ff-sl-body table { display: block; overflow-x: auto; }
.ff-sl-body td { vertical-align: top; }

.ff-sl-onward {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px 8px; border-top: 1px solid var(--ff-line); font-size: 15.5px;
}
.ff-sl-onward a { color: var(--ff-blue); }
.ff-sl-onward a:hover { color: var(--ff-blue-deep); }

/* ---------- Method link, disclaimer, method page (#1072, live 3 Nov 2026) ---------- */
.ff-sl-utility {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap;
  margin-bottom: 30px; padding-bottom: 12px; border-bottom: 1px solid var(--ff-line);
  color: var(--ff-muted); font-size: 13.5px; line-height: 1.5; text-align: left;
}
.ff-sl-utility__line { flex: 1 1 420px; }
.ff-sl-utility a, .ff-sl-disclaimer a, .ff-sl-teaser a { color: var(--ff-blue); }
.ff-sl-utility a:hover, .ff-sl-disclaimer a:hover, .ff-sl-teaser a:hover { color: var(--ff-blue-deep); }
.ff-sl-utility__link { white-space: nowrap; font-weight: 500; }
.ff-sl-disclaimer {
  max-width: 760px; margin: 8px auto 40px; padding-top: 18px; border-top: 1px solid var(--ff-line);
  color: var(--ff-faint); font-size: 13.5px; line-height: 1.6; text-align: center;
}
.ff-sl-method .ff-prose h2 { scroll-margin-top: 110px; }

/* ---------- Hub page v2 (#1072, 5 Nov 2026): how to use, Browse by Force, gap strip, matrix, band, teaser ---------- */
.ff-sl-howto { padding-block: 8px 8px; }
.ff-sl-howto__title,
.ff-sl-browse__title { color: var(--ff-muted); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.ff-sl-howto__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 14px; padding: 0; list-style: none; }
.ff-sl-howto__item {
  padding: 18px 20px; background: var(--ff-bg-soft); border: 1px solid var(--ff-line-faint); border-radius: var(--ff-radius);
  color: var(--ff-muted); font-size: 14.5px; line-height: 1.55;
}
.ff-sl-howto__item b { display: block; margin-bottom: 4px; color: var(--ff-ink); font-size: 15.5px; }

.ff-sl-browse { padding-top: clamp(40px, 5vw, 64px); scroll-margin-top: 90px; }
.ff-sl-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ff-sl-tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--ff-pill);
  background: #fff; border: 1px solid var(--ff-line); color: var(--ff-body); font-size: 15px; font-weight: 500;
  transition: border-color .16s ease, color .16s ease;
}
.ff-sl-tabs a[class*="ff-sl-force--"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sl-accent); }
.ff-sl-tabs a:hover { border-color: var(--ff-line-strong); color: var(--ff-ink); }
.ff-sl-tabs a[aria-current="page"] { background: var(--ff-ink); border-color: var(--ff-ink); color: #fff; }
.ff-sl-tabs__helper { margin-top: 14px; color: var(--ff-muted); font-size: 15.5px; line-height: 1.6; }

.ff-sl-gap {
  margin-top: 28px; padding: clamp(22px, 3vw, 30px);
  background: var(--ff-bg-soft); border: 1px solid var(--ff-line); border-left: 4px solid var(--sl-accent); border-radius: var(--ff-radius);
}
.ff-sl-gap__head { max-width: 760px; margin-bottom: 20px; }
.ff-sl-gap__title { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }
.ff-sl-gap__body { margin-top: 8px; color: var(--ff-muted); font-size: 15.5px; line-height: 1.6; }

.ff-sl-matrix__wrap { overflow-x: auto; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); background: #fff; box-shadow: var(--ff-shadow-sm); }
.ff-sl-matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.4; }
.ff-sl-matrix caption {
  caption-side: top; padding: 18px 14px 14px; text-align: left; color: var(--ff-ink);
  font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; letter-spacing: -.02em;
}
.ff-sl-matrix th, .ff-sl-matrix td { padding: 11px 14px; border-top: 1px solid var(--ff-line-faint); text-align: left; vertical-align: top; }
.ff-sl-matrix thead th {
  border-top: 0; background: var(--ff-bg-soft); color: var(--ff-muted);
  font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.ff-sl-matrix thead th[class*="ff-sl-force--"] { box-shadow: inset 0 -3px 0 var(--sl-accent); }
.ff-sl-matrix tbody th { min-width: 200px; font-weight: 700; }
.ff-sl-matrix tbody th a { color: var(--ff-ink); }
.ff-sl-matrix tbody th a:hover { color: var(--ff-blue); }
.ff-sl-matrix td { color: var(--ff-body); min-width: 110px; }
.ff-sl-matrix td:last-child { white-space: nowrap; font-weight: 700; color: var(--ff-ink); }
.ff-sl-matrix__note { margin-top: 14px; max-width: 760px; color: var(--ff-muted); font-size: 14.5px; line-height: 1.6; }

.ff-sl-diagnostic .ff-cta-title { max-width: 26ch; margin-inline: auto; font-size: clamp(24px, 3.2vw, 36px); }
.ff-sl-diagnostic .ff-cta-copy { max-width: 60ch; margin-inline: auto; }
.ff-sl-diagnostic__support { margin-top: 16px; color: var(--ff-muted); font-size: 14.5px; }
.ff-sl-diagnostic__link { display: inline-block; margin-top: 10px; color: var(--ff-blue); font-size: 14.5px; }
.ff-sl-diagnostic__link:hover { color: var(--ff-blue-deep); }

.ff-sl-teaser { padding-block: 8px 24px; }
.ff-sl-teaser__title { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; }
.ff-sl-teaser__body p { margin-top: 12px; color: var(--ff-body); font-size: 16px; line-height: 1.65; }
.ff-sl-teaser__more { display: inline-block; margin-top: 14px; font-weight: 500; }
.ff-sl-teaser .ff-sl-disclaimer { margin-top: 32px; }

/* ---------- Narrow screens ---------------------------------------------- */
@media (max-width: 900px) {
  .ff-sl-key__scales { grid-template-columns: 1fr; }
  .ff-sl-key__item + .ff-sl-key__item { padding-left: 0; padding-top: 14px; border-left: 0; border-top: 1px solid var(--ff-line); }
  .ff-sl-howto__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-sl-facts { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .ff-sl-howto__list { grid-template-columns: 1fr; }
  .ff-sl-map__columns { display: none; }
  .ff-sl-map__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .ff-sl-map__force { grid-column: 1 / -1; }
  .ff-sl-map__subtotal { grid-row: 2; grid-column: 2; }
  .ff-sl-map__signal { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-sl-card, .ff-sl-card:hover { transition: none; transform: none; }
}
