/* Federated Banking™: the project's layer over the kit's theme (brand book v1.0: calm porcelain surfaces, the Midnight Ink ground,
   Federated Crimson as the signature, Platinum Graphite for federated infrastructure). Colours are roles only (var(--c-*), from
   src/site/tokens.js). */

/* the hero: the ink ground of the brand cover with a crimson rule; the copy beside the live network (the network below the calls to
   action on a narrow screen), on the dark stage */
.hero{background:var(--c-ground);color:var(--c-on-ground);border-top:6px solid var(--c-accent);padding:56px 0 64px}
.hero__rails{display:none}
.hero__grid{grid-template-columns:minmax(0,1fr);gap:28px;align-items:center}
@media (min-width:1100px){.hero__grid{grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:40px}}
.hero__title{font-size:clamp(34px,4.4vw,56px);line-height:1.12}
.hero__title,.hero__lead,.hero__sub,.hero__note{color:var(--c-on-ground)}
.hero__sub{color:var(--c-on-ground-muted)}
.hero .eyebrow{color:var(--c-accent-on-dark);border-color:var(--c-accent-on-dark)}
.hero .vstrip li{color:var(--c-on-ground);border-color:var(--c-on-ground-muted)}
.hero .btn--ghost{color:var(--c-on-ground);border-color:var(--c-on-ground-muted)}
.hero__visual .railed,.hero__visual .mock{display:none}
.hero .kw{background:transparent;border:0;box-shadow:none;padding:0;color:var(--c-on-ground)}
.hero .kw__head{display:none}
.hero .kw-net{--kw-net-stage:var(--c-ground-raised)}
.hero .kw-net__body{grid-template-columns:minmax(0,1fr)}
.hero .kw-net__stage{border-color:var(--c-ground-raised)}
.hero .kw-net__hubname{color:var(--c-on-ground)}
.hero .kw-net__legend,.hero .kw-net__flows,.hero .kw-net__panel,.hero .kw-net__all{display:none}
.hero .kw-net__side{grid-template-columns:minmax(0,1fr);gap:10px}
.hero .kw-net__counters{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:560px){.hero .kw-net__counters{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hero .kw-btn--ghost{color:var(--c-on-ground);border-color:var(--c-on-ground-muted);background:transparent}
.hero .hero__actions .btn--primary{background:var(--c-accent);color:var(--c-on-accent)}
.hero .kw-net__counters dt{color:var(--c-on-ground-muted)}
.hero .kw-net__counters>div{background:var(--c-ground-raised);border-color:var(--c-ground-raised);color:var(--c-on-ground)}
.hero .kw-net__eventlog{color:var(--c-on-ground-muted)}

/* the explorers: the stage stays in view while the list of flows scrolls beside it, so neither side leaves an empty block */
@container kwnet (min-width:860px){.kw-net__stage{position:sticky;top:96px}}
.kw-embed--on .kw-net__flows{max-height:340px;overflow:auto;overscroll-behavior:contain;padding-inline-end:4px}

/* the network's roles: crimson participants, platinum providers (the frame's right segment: federated infrastructure) */
.kw-net{--kw-net-provider:var(--c-rail);--kw-net-infrastructure:var(--c-rail-dark)}

#live .kw-grid,#use-cases .kw-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr))}

/* chips inside cards (capabilities, rails, regions) */
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.chips>span{font-style:normal;font-size:12.5px;line-height:1.2;padding:5px 9px;border-radius:999px;background:var(--c-sink);color:var(--c-ink);border:1px solid var(--c-line)}
.section--deep .chips>span{background:var(--c-ground-raised);color:var(--c-on-ground);border-color:var(--c-ground-raised)}
.grid--5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:1180px){.grid--5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.grid--5{grid-template-columns:minmax(0,1fr)}}
#industries .explore{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){#industries .explore{grid-template-columns:1fr 1fr}}
@media (max-width:620px){#industries .explore{grid-template-columns:minmax(0,1fr)}}

/* the footer: the brand above, the owner's six columns and the site's resources in one row on a wide screen */
.footer__in{grid-template-columns:minmax(0,1fr);gap:32px}
.footer__brand{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.footer__cols{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:28px 20px;align-items:start}
@media (max-width:620px){.footer__cols{grid-template-columns:1fr 1fr}}

/* a section that shows one example already says its name: the example's own heading is kept for screen readers only */
.kw-embed--on:not(.kw-grid)>.kw>.kw__head{justify-content:flex-end}
.kw-embed--on:not(.kw-grid)>.kw>.kw__head h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* record lines read best across the full width of a grid of examples */
.kw-grid>.kw--fdbk-reconcile{grid-column:1/-1}

/* before and after on a phone: each row's label above its two cells, both columns on screen (no hidden scroll) */
@media (max-width:560px){.kw-cmp{min-width:0;font-size:13.5px}.kw-cmp tr{display:grid;grid-template-columns:1fr 1fr;column-gap:12px}
  .kw-cmp thead td:first-child{display:none}.kw-scroll:has(.kw-cmp){max-height:none;overflow:visible}.kw-cmp tbody th{grid-column:1/-1;padding-bottom:0}.kw-cmp td{padding-top:4px}}
