/* Family and product pages (tools/layouts.py).
 *
 * The order of a product page follows the questions a buyer asks: is this for me,
 * who signs and who uses it, what changes, how it works, what it does, who uses it
 * already, how it is deployed, what else connects to it. Colours and type come from
 * site.css; this file adds an evidence colour and the layout.
 */

:root {
  --ok: hsl(166 62% 28%);
  --ok-tint: hsl(166 45% 93%);
  --hero-ink: hsl(227 32% 14%);
  --hero-panel: hsl(227 30% 20%);
  --hero-line: hsl(227 25% 30%);
  --coral: #ED4021;
  /* The line illustrations are dark navy with pink dots on transparent ground. */
  --icon-filter: none;
  --logo-tile: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ok: hsl(166 55% 60%); --ok-tint: hsl(166 40% 16%);
    --hero-ink: hsl(227 34% 8%); --hero-panel: hsl(227 30% 14%); --hero-line: hsl(227 22% 26%);
    --icon-filter: invert(1) hue-rotate(180deg);
    --logo-tile: hsl(220 37% 94%);
  }
}
:root[data-theme="dark"] {
  --ok: hsl(166 55% 60%); --ok-tint: hsl(166 40% 16%);
  --hero-ink: hsl(227 34% 8%); --hero-panel: hsl(227 30% 14%); --hero-line: hsl(227 22% 26%);
  --icon-filter: invert(1) hue-rotate(180deg);
  --logo-tile: hsl(220 37% 94%);
}

.product-page { min-width: 0; }
.product-page section { margin: 0; }

/* ---------------------------------------------------------------- breadcrumb and suite tabs */

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: .5rem 0 1rem; padding: 0; font-size: .85rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--link); }

.suite-tabs {
  display: flex; align-items: center; gap: .35rem; overflow-x: auto;
  margin: 0 0 1rem; padding: .35rem; border: 1px solid var(--line);
  border-radius: var(--radius-pill); background: var(--panel);
  /* The scrollbar was hidden, so a row that ran past its container looked like
     the whole set. On Case Nexus the current tab sat at x=613 inside a
     container ending at 409 and nothing said there was more. The scrollbar is
     the browser's normal width: a thin one is too small a target to drag. */
  scroll-behavior: smooth;
}
.suite-name {
  font: 500 .72rem/1 var(--font-head); letter-spacing: .02em;
  color: var(--ink-soft); padding: 0 .75rem 0 .6rem; border-right: 1px solid var(--line); white-space: nowrap;
}
.suite-tabs a {
  font-family: var(--font-head); font-size: .9rem; color: var(--ink);
  padding: .45rem .95rem; border-radius: var(--radius-pill); white-space: nowrap; text-decoration: none;
}
.suite-tabs a:hover { background: var(--light-accent); text-decoration: none; }
.suite-tabs a[aria-current="page"] { background: var(--hero-ink); color: #EDF1F9; }

/* ---------------------------------------------------------------- hero */

.phero {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 1fr); gap: 2rem;
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(237 64 33 / .22) 0%, transparent 46%),
    var(--hero-ink);
  color: var(--on-dark);
  border-radius: var(--radius-hero);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  margin-bottom: 1rem;
}
.phero-main { min-width: 0; align-self: center; }
.eyebrow {
  font: 500 .74rem/1 var(--font-head); letter-spacing: .02em;
  color: var(--on-dark-soft); margin: 0 0 1.1rem;
}
.pname { font: 500 1.05rem/1.2 var(--font-head); color: var(--coral); margin: 0 0 .6rem; }
.phero h1 { color: #EDF1F9; font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3rem); max-width: 22ch; margin: 0 0 1rem; }
.phero .question { color: var(--on-dark-soft); font-size: 1.1rem; line-height: 1.55; max-width: 52ch; margin: 0; }
.phero .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.75rem 0 0; }
.phero .btn { font-size: .92rem; padding: .7rem 1.5rem; }

.glance {
  align-self: start; display: flex; flex-direction: column; gap: 1rem;
  background: var(--hero-panel); border: 1px solid var(--hero-line);
  border-radius: var(--radius-card); padding: 1.4rem;
}
.glance:has(ul) { align-self: stretch; }
.glance dl { margin: 0; display: grid; gap: .9rem; }
.glance dt { font: 500 .72rem/1 var(--font-head); letter-spacing: .02em; color: var(--on-dark-soft); margin-bottom: .35rem; }
.glance dd { margin: 0; color: #EDF1F9; font-size: .95rem; line-height: 1.45; }
.glance ul { list-style: none; margin: auto 0 0; padding: 1rem 0 0; border-top: 1px solid var(--hero-line); display: grid; gap: .55rem; }
.glance li { font-size: .9rem; line-height: 1.45; color: var(--on-dark); padding-left: 1.2rem; position: relative; }
.glance li::before { content: ""; position: absolute; left: 0; top: .5em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--coral); }

/* ---------------------------------------------------------------- sections */

.ps { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 0; }
.ps > h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 1.5rem; max-width: 30ch; }
.ps > p, .ps > ul:not([class]) { max-width: 46rem; }
.ps-intro { padding-top: 2.5rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }
.ps-intro p:last-child { margin-bottom: 0; }

/* The problem, set large: the buyer recognises the situation before the product. */
.ps-problem { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.6fr); gap: 1rem 2.5rem; align-items: start; }
.ps-problem > h2 {
  font: 500 .78rem/1.3 var(--font-head); letter-spacing: .02em;
  color: var(--link); margin: .5rem 0 0; padding-top: .9rem; border-top: 2px solid var(--accent);
}
.problem-text p { font: 500 clamp(1.2rem, 1rem + .8vw, 1.6rem)/1.4 var(--font-head); color: var(--ink); max-width: 38ch; margin: 0 0 .9rem; }
.problem-text p + p { font: 400 1.05rem/1.6 var(--font-body); color: var(--ink-soft); max-width: 52ch; }

/* Benefits: outcome, then how, then the evidence for it. */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.benefits[data-items="2"], .benefits[data-items="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.benefit {
  display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius-card); padding: 1.5rem;
}
.benefit h3 { font-size: 1.2rem; margin: 0 0 .75rem; }
.benefit p { font-size: .96rem; color: var(--ink-soft); margin: 0 0 1rem; }
.benefit .evidence {
  margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink); line-height: 1.5;
}
.benefit .evidence span {
  display: block; font: 500 .7rem/1 var(--font-head); letter-spacing: .02em;
  color: var(--ok); margin-bottom: .45rem;
}

/* How it works: numbered steps in a row, joined by a rule. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; position: relative; }
.steps[data-items="3"] { --n: 3; } .steps[data-items="5"] { --n: 5; }
.steps::before { content: ""; position: absolute; top: 1.2rem; left: 1.2rem; right: 1.2rem; border-top: 2px dashed var(--line); }
.steps li { position: relative; display: grid; gap: .9rem; align-content: start; }
.step-n {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--hero-ink); color: #EDF1F9; font: 500 1rem/1 var(--font-head);
  box-shadow: 0 0 0 6px var(--white);
  border: 1px solid var(--line);
}
.steps h3 { font-size: 1.08rem; margin: 0 0 .35rem; }
.steps p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

/* Capabilities: a list a buyer can copy into requirements. */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; max-width: none; }
.checks li { position: relative; padding: .9rem 0 .9rem 2rem; border-bottom: 1px solid var(--line); font-size: .98rem; margin: 0; }
.checks li::before {
  content: ""; position: absolute; left: .15rem; top: 1.25rem; width: .75rem; height: .4rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.checks li p { margin: 0; }

/* Evidence: figures with their source, one endorsement, the deployments. */
.evidence-grid { display: grid; gap: 1.5rem; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; margin: 0; }
.figures > div { background: var(--light-accent); border-radius: var(--radius-card); padding: 1.5rem; }
.figures dt { font: 500 clamp(2rem, 1.5rem + 1.6vw, 2.8rem)/1 var(--font-head); color: var(--link); margin-bottom: .6rem; }
.figures dd { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.endorse {
  margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-card);
  background: var(--panel); border: 1px solid var(--line);
}
.endorse::before { content: "\201C"; font: 500 4.5rem/.8 var(--font-head); color: var(--accent); grid-row: span 2; }
.endorse blockquote { margin: 0; padding: 0; border: 0; }
.endorse blockquote p { font: 500 clamp(1.1rem, .95rem + .6vw, 1.4rem)/1.45 var(--font-head); color: var(--ink); margin: 0; max-width: 54ch; }
.endorse figcaption { font-size: .9rem; color: var(--ink-soft); }
.deploy-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.deploy-label { font: 500 .72rem/1 var(--font-head); letter-spacing: .02em; color: var(--ink-soft); }
.deployments { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; max-width: none; }
.deployments li { margin: 0; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--panel); font-size: .9rem; }
.deployments li p { margin: 0; }
.evidence-grid > p { max-width: 46rem; color: var(--ink-soft); }
.evidence-grid > p img { display: inline-block; height: 56px; width: auto; margin: 0 1.25rem .5rem 0; vertical-align: middle; }

/* Deployment and security: the rows a procurement team copies into a business case. */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 .78rem/1.4 var(--font-head); letter-spacing: .02em; color: var(--ink-soft); padding-top: .15rem; }
.facts dd { margin: 0; font-size: .97rem; }

/* Comparison table: the first column labels each row. */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--panel); }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 500 .78rem/1.3 var(--font-head); letter-spacing: .02em; color: var(--ink-soft); background: var(--light-accent); }
.compare thead th:last-child { color: var(--link); }
.compare td:first-child { font-family: var(--font-head); font-weight: 500; width: 22%; }
.compare td:last-child { color: var(--ink); }
.compare td:not(:first-child):not(:last-child) { color: var(--ink-soft); }

@media (max-width: 640px) {
  .compare-wrap { overflow: visible; border: 0; background: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; min-width: 0; width: auto; }
  .compare thead { display: none; }
  .compare tr { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: .9rem 1.1rem; margin-bottom: .75rem; }
  .compare td { border: 0; padding: .3rem 0; }
  .compare td:first-child { width: auto; font-size: 1.02rem; padding-bottom: .5rem; }
  .compare td:not(:first-child)::before {
    content: attr(data-label); display: block; font: 500 .7rem/1.3 var(--font-head);
    letter-spacing: .02em; color: var(--ink-soft); margin-bottom: .15rem;
  }
  .compare td:last-child::before { color: var(--link); }
}

/* Questions */
.ps-questions { max-width: 52rem; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font: 500 1.05rem/1.4 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--link); }
.faq[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.faq > div { padding: 0 0 1.2rem; color: var(--ink-soft); max-width: 46rem; }
.faq > div p:last-child { margin-bottom: 0; }

/* Product cards: the whole card is one link. */
/* min() rather than a bare 15rem: a track may not be wider than the grid it is
   in, however narrow that gets. Without it a card keeps its minimum and pushes
   the page sideways instead of shrinking. */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 1rem; }
/* Two families, so two columns rather than two narrow cards and empty tracks.
 * The class was .ps-suites until the 12 November rename moved it to .ps-families. */
.ps-families .pcards { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.pcard {
  display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 1.25rem; transition: border-color .15s, transform .15s;
}
.pcard:hover { border-color: var(--link); text-decoration: none; transform: translateY(-2px); }
/* A platform is what the other products run on, so its card takes the whole row
 * rather than sitting as one narrow card among them. */
.pcard-wide { grid-column: 1 / -1; }
.pcard:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.pcard :is(h3, h5) { font-family: var(--font-head); font-weight: 500; font-size: 1.08rem; margin: 0; }
.pcard p { font-size: .9rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.pcard-tag { font: 500 .72rem/1.3 var(--font-head); letter-spacing: .02em; color: var(--link); margin: -.2rem 0 .1rem; }
.pcard-foot { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pcard-more { font: 500 .85rem/1 var(--font-head); color: var(--link); margin-left: auto; }
.pcard-more::after { content: " \2192"; }
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } .pcard:hover { transform: none; } }

/* Closing action */
.close-band {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem) !important;
  background: var(--hero-ink); color: var(--on-dark); border-radius: var(--radius-hero);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 2rem; align-items: center;
}
.close-band h2 { color: #EDF1F9; margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.close-band p { color: var(--on-dark-soft); margin: 0; max-width: 56ch; grid-column: 1; }
.close-band .actions { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: .6rem; }
.close-band .btn { font-size: .92rem; padding: .7rem 1.5rem; }

/* ---------------------------------------------------------------- family page */

.family-hero { grid-template-columns: minmax(0, 1fr); }
.family-hero h1 { max-width: 26ch; }
.family-intro { max-width: 52rem; }

/* ---------------------------------------------------------------- sector page */

/* One column, as a family page. A sector page has no "Built for" and "Used by",
 * so its proof lines are a row along the lower edge of the hero instead of a side
 * panel that held nothing else. */
.sector-hero { grid-template-columns: minmax(0, 1fr); }
.sector-hero h1 { max-width: 26ch; }
.hero-proof {
  list-style: none; margin: 0; padding: 1.25rem 0 0;
  border-top: 1px solid var(--hero-line);
  display: flex; flex-wrap: wrap; gap: .6rem 2.5rem;
}
.hero-proof li { position: relative; padding-left: 1.2rem; max-width: 46ch; font-size: .92rem; line-height: 1.45; color: var(--on-dark); }
.hero-proof li::before { content: ""; position: absolute; left: 0; top: .5em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--coral); }

.ps-buyers > h2 { margin-bottom: .5rem; }
/* The sector page's own line about its products, above the first family. */
.buyers-lead { max-width: 52rem; margin: 0 0 1.5rem; color: var(--ink-soft); }
.buyer {
  display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.8fr); gap: 1.25rem 2.5rem;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.buyer:last-child { border-bottom: 0; }
.buyer-head h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.buyer-head p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
/* Two single-product departments share a row. Each keeps its heading above its
 * product rather than beside it, because half the measure is too narrow for both. */
.buyer-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.buyer-pair .buyer { display: block; }
.buyer-pair .buyer-head { max-width: none; margin-bottom: 1rem; }
.buyer-products { display: grid; gap: 1rem; min-width: 0; }
/* No width override here. Every product card uses the one .pcards track above,
 * so a card is the same width whether it is alone in its buyer group or one of
 * four. auto-fill, not auto-fit: an empty track keeps its width instead of
 * stretching the cards that are there to fill the row. */
.suite {
  background: var(--light-accent); border-radius: var(--radius-hero);
  padding: 1.4rem; display: grid; gap: .6rem;
}
.suite h4 { font-size: 1.25rem; margin: 0; }
.suite h4 a { color: var(--ink); }
.suite > p { font-size: .95rem; color: var(--ink-soft); margin: 0 0 .5rem; max-width: 60ch; }
/* The products in a suite use the same track as every other product card. */

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 960px) {
  .phero { grid-template-columns: 1fr; }
  .benefits, .benefits[data-items="2"], .benefits[data-items="4"] { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 1.2rem; bottom: 1.2rem; left: 1.2rem; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .steps li { grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding-bottom: 1.5rem; }
  .facts { grid-template-columns: 1fr; }
  .buyer { grid-template-columns: 1fr; }
  /* Two buyer groups side by side left each product grid about 190px to lay out
     15rem tracks in, and the cards ran past the edge of the screen: 443px of
     document inside a 375px viewport on /products/suptech/. */
  .buyer-pair { grid-template-columns: 1fr; }
  .ps-problem { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .checks { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: .3rem; }
  .close-band { grid-template-columns: 1fr; }
  .close-band .actions { grid-column: 1; grid-row: auto; margin-top: .75rem; }
  .endorse { grid-template-columns: 1fr; }
  .endorse::before { grid-row: auto; font-size: 3.2rem; }
  .phero .btn { width: 100%; text-align: center; }
}

/* ---------------------------------------------------------------- icons, logos, awards */

.pname { display: flex; align-items: center; gap: .6rem; }
/* The header is always dark, so its icon is always drawn light. */
.pname-icon { width: 2.4rem; height: 2.4rem; object-fit: contain; filter: invert(1) hue-rotate(180deg); }
.pcard-icon { width: 3.25rem; height: 3.25rem; object-fit: contain; margin: -.25rem 0 .25rem -.25rem; filter: var(--icon-filter); }
.suite h4 { display: flex; align-items: center; gap: .6rem; }
.suite-icon { width: 2.6rem; height: 2.6rem; object-fit: contain; filter: var(--icon-filter); }
.benefit-icon { display: block; width: 4rem; height: 4rem; object-fit: contain; margin: -.5rem 0 .5rem -.5rem; filter: var(--icon-filter); }

.logo-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  padding: 1.1rem 0 .25rem;
}
.logo-label { font: 500 .72rem/1 var(--font-head); letter-spacing: .02em; color: var(--ink-soft); }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.logos li { background: var(--logo-tile); border: 1px solid var(--line); border-radius: 10px; padding: .35rem .6rem; display: flex; align-items: center; }
.logos img { display: block; height: 3.25rem; width: auto; max-width: 8.5rem; object-fit: contain; margin: 0; }

.awards-band {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem) !important;
  background: var(--hero-ink); border-radius: var(--radius-hero);
  padding: 1.5rem clamp(1.25rem, 1rem + 2vw, 2.5rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
}
.awards-label { margin: 0; font: 500 .72rem/1 var(--font-head); letter-spacing: .02em; color: var(--on-dark-soft); }
.awards-band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.awards-band img { display: block; height: 3.75rem; width: auto; margin: 0; }

/* Why FNA: differentiators, each with its evidence in the text. */
.why { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1.5rem 2rem; }
.why[data-items="2"] { --n: 2; } .why[data-items="4"] { --n: 4; }
.why-item { border-top: 2px solid var(--accent); padding-top: 1rem; }
.why-item h3 { font-size: 1.12rem; margin: 0 0 .5rem; }
.why-item p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

/* FNA Perspective: one featured page of FNA's own analysis. */
.perspective {
  display: grid; gap: .5rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius-card); background: var(--light-accent); border-left: 4px solid var(--accent);
}
.persp-eyebrow { margin: 0; font: 500 .72rem/1 var(--font-head); letter-spacing: .02em; color: var(--link); }
.perspective h3 { margin: 0; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); }
.perspective h3 a { color: var(--ink); }
.perspective h3 a::after { content: " \2192"; color: var(--link); }
.perspective p { margin: 0; color: var(--ink-soft); max-width: 60ch; }

@media (max-width: 960px) { .why, .why[data-items="2"], .why[data-items="4"] { grid-template-columns: 1fr; } }

/* The cycle on a family page: one SVG, written by the build from the page's
   `cycle:` lines. The viewBox is 320 wide and the drawing is capped at 420px, so
   the text renders between about 12px on a phone and 18px on a wide screen
   without a second drawing. Every color is a token, so the figure follows the
   light and dark themes. */
.cycle { margin: 1.75rem 0 0; max-width: 46rem; }
.cycle svg { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; }
.cyc-box { fill: var(--panel); stroke: var(--line); stroke-width: 1; }
.cyc-layer { fill: var(--light-accent); stroke: var(--accent); stroke-width: 1.5; }
.cyc-name { font: 600 14px var(--font-head); fill: var(--ink); }
.cyc-desc { font: 400 12px var(--font-body); fill: var(--ink-soft); }
.cyc-note {
  font: 500 10.5px var(--font-head); letter-spacing: .02em;
  fill: var(--ink-soft);
}
/* The deployment the whole cycle runs inside, where one institution holds the
   data throughout. Drawn on Suptech only: Financial Crime spans the banks and
   the payment system the data came from, so no one deployment encloses it. */
.cyc-bound { fill: none; stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 2 4; opacity: .6; }
.cyc-bound-label { font: 400 11px var(--font-body); fill: var(--ink-soft); }
.cyc-arrow { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.cyc-back { stroke-dasharray: 4 3; }
.cyc-marker > path { fill: var(--accent); }
/* The label knocks the arrow out behind itself, using the page background. */
.cyc-label {
  font: 400 11.5px var(--font-body); fill: var(--ink);
  paint-order: stroke; stroke: var(--white); stroke-width: 5px; stroke-linejoin: round;
}

/* The mesh on the Fraud Portal page: five parts and eight labelled edges, which
   is more than a phone's column holds at a legible size. So the drawing is capped
   at 640px and replaced below 620px by the same relationships in words. Both are
   written by the build from `mesh:` and `mesh_edges:`, so they cannot disagree. */
.mesh { margin: 1.75rem 0 0; max-width: 46rem; }
.mesh svg { display: block; width: 100%; max-width: 640px; height: auto; margin-inline: auto; }
/* Whoever the products serve, drawn apart from them because it is not a product:
   no fill and a dashed edge, as the deployment boundary on the Suptech cycle. */
.mesh-outside { fill: none; stroke: var(--ink-soft); stroke-dasharray: 3 3; opacity: .7; }
.mesh-said { display: none; }
@media (max-width: 620px) {
  .mesh svg { display: none; }
  .mesh-said { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
  .mesh-said li {
    margin: 0; padding: .6rem .8rem; color: var(--ink-soft);
    background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  }
  .mesh-said b { color: var(--ink); font-weight: 600; }
}

/* The ILO capabilities page. The baseline is deliberately quieter than what
   ILO adds on top: a light panel with small ticks, against a dark band with
   large numbered cards. Jeremie's brief: if the baseline dominates, the page
   says the product is a commodity. Every colour is a token, so both follow
   the light and dark themes. */
.ps-baseline {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.ps-baseline h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
/* A section is spaced by its top padding, and these two panels use their
   padding inside the panel, so the gap above them is put back as margin. */
/* Written with .product-page in front so it outweighs .product-page section,
   which sets every section's margin to zero. */
.product-page .ps-baseline, .product-page .ps-ontop { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.base-grid {
  display: grid; gap: 1.25rem 2rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.base-col h3 { font-size: 1rem; margin: 0 0 .5rem; }
.base-col .checks { grid-template-columns: 1fr; }
.base-col .checks li { padding: .45rem 0 .45rem 1.6rem; font-size: .9rem; }

.ps-ontop {
  background: var(--hero-ink); color: var(--on-dark);
  border-radius: var(--radius-hero); padding: clamp(1.75rem, 1rem + 3vw, 3rem);
}
.ps-ontop h2 { color: #EDF1F9; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.ps-ontop > p { color: var(--on-dark); max-width: 46rem; font-size: 1.1rem; }
.ontop-grid {
  display: grid; gap: 1.25rem; margin-top: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}
.ontop-card {
  background: hsl(0 0% 100% / .06); border: 1px solid hsl(0 0% 100% / .14);
  border-radius: var(--radius-card); padding: 1.25rem 1.35rem;
}
.ontop-n {
  display: block; margin-bottom: .35rem;
  /* #ff9c86, the dark theme's link colour: 6.95:1 on the light theme's card and
     8.12:1 on the dark theme's. The brand accent gave 3.60:1 and 4.20:1, below
     AA for text this size (liquidity review, 15 November 2026). */
  font: 500 .85rem var(--font-head); letter-spacing: .04em; color: #ff9c86;
}
.ontop-card h3 { color: #EDF1F9; font-size: 1.1rem; margin: 0 0 .5rem; }
.ontop-card p { color: var(--on-dark); font-size: .95rem; margin: 0; }
.ontop-card p + p { margin-top: .75rem; }
.ontop-card a { color: #EDF1F9; }

.cover-boxes {
  display: grid; gap: 1.25rem; margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}
.cover-box {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 1.25rem 1.35rem;
}
.cover-box h3 { margin-top: 0; font-size: 1.1rem; }
/* The BCBS 248 table is a checklist, not a comparison: the tool is the content
   and "Covered" is a short answer. The comparison rule above gives the first
   column 22%, which wrapped each tool's name over three lines. */
.ps-coverage .compare td:first-child { width: auto; }
.ps-coverage .compare td:last-child,
.ps-coverage .compare th:last-child { width: 7rem; white-space: nowrap; }
/* Five figures in auto-fit tracks of 14rem fitted four across and left the
   fifth alone on a second row. Five across where there is room for them, as
   the impact band does for its own count. */
@media (min-width: 70rem) {
  .figures:has(> div:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .figures:has(> div:nth-child(5):last-child) > div { padding: 1.25rem; }
  .figures:has(> div:nth-child(5):last-child) dt { font-size: clamp(1.6rem, 1.1rem + 1vw, 2rem); white-space: nowrap; }
}

/* ---------------------------------------------------------------- G20 Monitor
 * /g20-monitor/, drawn by g20_monitor() in tools/build.py from
 * content/g20-monitor.json. The filter is radio buttons and :has(), so it needs
 * no script and every card stays in the HTML. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.g20-filter { border: 0; padding: 0; margin: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.g20-filter input { position: absolute; opacity: 0; pointer-events: none; }
.g20-filter label { font: 500 .85rem var(--font-head); letter-spacing: .02em; padding: .5rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.g20-filter label:hover { border-color: var(--link); }
.g20-filter input:checked + label { background: var(--selected); border-color: var(--selected); color: var(--on-selected); }
.g20-filter input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.g20-filter .count { opacity: .75; margin-left: .25rem; }
.g20:has(#g20-macro:checked) .g20-card:not([data-areas~="macro"]),
.g20:has(#g20-micro:checked) .g20-card:not([data-areas~="micro"]),
.g20:has(#g20-misconduct:checked) .g20-card:not([data-areas~="misconduct"]) { display: none; }
.g20-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.g20-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.g20-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); margin: 0; }
.g20-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.25rem; }
/* article.page h3 (site.css) adds a 1.75rem top margin, which opened a gap under
 * the badge; this selector is more specific so the card keeps its own spacing. */
article.page .g20-card-body h3 { margin: 0 0 .6rem; font-size: 1.2rem; }
.g20-card-body p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1rem; }
.g20-card-body p.g20-badge { font: 500 .75rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .4rem; }
.g20-card-body p.g20-live { color: var(--link); }
.g20-tags { list-style: none; padding: 0; margin: auto 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.g20-tags li { font-size: .78rem; padding: .15rem .6rem; border-radius: var(--radius-pill); background: var(--light-accent); color: var(--ink-soft); margin: 0; }
.g20-card-body > a { font-family: var(--font-head); font-size: .9rem; font-weight: 500; text-decoration: none; }
.g20-card-body > a::after { content: " \2192"; }
.g20-sources { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); }
.g20-sources table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.g20-sources th, .g20-sources td { text-align: left; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.g20-sources thead th { background: var(--light-accent); font-family: var(--font-head); font-weight: 500; }
.g20-sources tbody th { font-weight: 500; width: 36%; }
.g20-sources tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 640px) {
  .g20-sources table, .g20-sources tbody, .g20-sources tr, .g20-sources th, .g20-sources td { display: block; width: auto; }
  .g20-sources thead { display: none; }
  .g20-sources tbody th { border-bottom: 0; padding-bottom: .2rem; }
}

/* The languages a page exists in: one row at the top of the page, shown only
   where a translation exists. Written by tools/translations.py. */
.languages {
  display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; justify-content: flex-end;
  max-width: var(--page, 72rem); margin-inline: auto; padding: .6rem 1.25rem 0;
  font: 500 .85rem/1.4 var(--font-head);
}
.languages a { color: var(--link); text-decoration: none; }
.languages a:hover, .languages a:focus-visible { text-decoration: underline; }
.languages [aria-current] { color: var(--ink-soft); }

/* A translated page shows a figure's relationships in words: the drawings carry
   their English text inside them. The mesh has its own list of sentences, and
   the cycle's description is written out by tools/translations.py. */
:root:not(:lang(en)) .mesh svg { display: none; }
:root:not(:lang(en)) .mesh-said { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
:root:not(:lang(en)) .mesh-said li {
  margin: 0; padding: .6rem .8rem; color: var(--ink-soft);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
:root:not(:lang(en)) .mesh-said b { color: var(--ink); font-weight: 600; }
.cycle-words {
  padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.cycle-words p { margin: 0 0 .5rem; color: var(--ink-soft); }
.cycle-words .cycle-title { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- grid, type and spacing
 *
 * Saiesha's design review, 23 November 2026, as in site.css: headings on the left
 * edge of the grid, running text in the centre eight columns, boxes across all
 * twelve, sections 80px apart, H1 48 to 56px and H2 32 to 36px. */
.phero h1, .family-hero h1, .sector-hero h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); font-weight: 500; }
.ps { padding-top: var(--section-gap); }
.close-band { margin-top: var(--section-gap) !important; }
.ps > h2, .ps-ontop h2 { font-size: clamp(1.75rem, 1.4rem + .9vw, 2.25rem); font-weight: 400; max-width: none; }
.close-band h2 { font-weight: 400; }
.ps > p, .ps > ul:not([class]), .ps-intro, .evidence-grid > p, .faq > div,
.ps-questions, .buyers-lead, .family-intro, .cycle, .mesh, .ps-ontop > p {
  max-width: min(100%, var(--text));
}
/* 80px between the hero and the text below it. */
.ps-intro { padding-top: var(--section-gap); }
.languages { max-width: var(--content); padding-inline: 0; }
/* The headline figure runs the width of the figure boxes under it. */
.evidence-grid > .stat { max-width: none; margin: 0; }
