/* /frameworks. Layout only: type sizes, cards (.cap / .card-icon-row), tables, buttons, chips, badges and the diagram frame come from the shared system (system.css, dg.css).
   The framework marks live in system.css (they are also used in the header menu). */
.fw-hero > .wrap { grid-template-columns: minmax(0, 1fr); }
.fw-title { display: flex; align-items: center; gap: 14px; }
.fw-title > div { display: grid; gap: var(--hero-gap); }
.fw-title .eyebrow { margin-bottom: 2px; }
.fw-sub { max-width: 64ch; }
.fw-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fw-xi { width: .62em; height: .62em; margin-left: .35em; opacity: .7; flex: none; }
.fw-head2 { margin-bottom: 14px; }
.fw-head2 h2 { scroll-margin-top: 6rem; }
.fw-note { margin-top: 12px; max-width: 62rem; }
.fw-note .link-arrow { font-size: inherit; }
.fw-more { margin-top: 12px; }

/* sticky table of contents: desktop = a quiet vertical list in the left gutter, below 75rem = a chip row */
.fw-tocbar { position: sticky; top: calc(var(--header-h) + 16px); height: 0; z-index: 5; }
.fw-toc { position: absolute; top: 28px; left: max(0px, calc((100% - var(--container)) / 2)); padding-left: var(--gutter); width: 12.5rem; }
.fw-toc__d { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--border); }
.fw-toc__d a { display: block; padding: 5px 12px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-faint); font-size: var(--text-body-size); line-height: 1.35; text-decoration: none; }
.fw-toc__d a:hover { color: var(--text); }
.fw-toc__d a[aria-current="true"] { color: var(--text); border-left-color: var(--brand-blue); }
.fw-toc__d a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fw-toc__m { display: none; margin: 0; padding: 0; list-style: none; gap: var(--btn-row); flex-wrap: wrap; }
.fw-tocbar ~ .fw-sec > .wrap { padding-left: calc(var(--gutter) + 13rem); }
@media (max-width: 74.99rem) {
  .fw-tocbar { position: static; height: auto; padding: 0 var(--gutter) 4px; max-width: var(--container); margin-inline: auto; }
  .fw-toc { position: static; width: auto; padding: 0; }
  .fw-toc__d { display: none; }
  .fw-toc__m { display: flex; }
  .fw-tocbar ~ .fw-sec > .wrap { padding-left: var(--gutter); }
}

/* what it is */
.fw-what { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 20px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-panel); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)), var(--surface-1); box-shadow: var(--elev); }
.fw-what__l { display: grid; gap: 12px; align-content: start; padding-right: 20px; border-right: 1px solid var(--border); }
.fw-what__r { display: grid; gap: 10px; align-content: start; color: var(--text-dim); font-size: var(--text-body-size); line-height: 1.55; }
.fw-what__r b { color: var(--text); font-weight: 500; }
.fw-facts { display: grid; gap: 8px; margin: 0; }
.fw-facts dt { color: var(--text-faint); font-size: var(--text-small-size); letter-spacing: .1em; text-transform: uppercase; }
.fw-facts dd { margin: 1px 0 0; color: var(--text); font-size: var(--text-body-size); line-height: 1.4; }
.fw-facts a { color: var(--text); }
@media (max-width: 47.99rem) { .fw-what { grid-template-columns: minmax(0, 1fr); } .fw-what__l { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--border); } }

/* mapping table: 13px, 40px rows, three columns */
.fw-map { font-size: var(--text-body-size); table-layout: fixed; }
.fw-map thead th { padding: 8px 12px; font-size: var(--text-small-size); }
.fw-map th, .fw-map td { padding: 8px 12px; line-height: 1.45; vertical-align: top; }
.fw-map tbody tr { min-height: 40px; }
.fw-map tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
.fw-map tbody th { width: 34%; color: var(--text); font-size: var(--text-body-size); font-weight: 500; letter-spacing: 0; text-transform: none; background: transparent; }
.fw-map th:nth-child(2), .fw-map td:nth-child(2), .fw-map th:nth-child(3), .fw-map td:nth-child(3) { width: 33%; }
.fw-ref { display: inline-block; margin: 0 4px 2px 0; padding: 0 6px; border: 1px solid var(--border-hover); border-radius: 6px; background: rgba(255, 255, 255, .04); color: var(--text); font: 500 var(--text-code-size)/1.6 var(--mono); vertical-align: 1px; }
.fw-ref--t { color: var(--text-faint); font-family: inherit; text-transform: uppercase; letter-spacing: .08em; font-size: var(--text-small-size); }
@media (max-width: 47.99rem) {
  .fw-map { min-width: 44rem; }
  .fw-map tbody th { position: sticky; left: 0; z-index: 1; min-width: 11rem; background: var(--surface-1); box-shadow: 1px 0 0 var(--border); }
}

/* diagrams: wide and flat */
.fw-dg:not(.dg) ol { display: grid; gap: .5rem; padding-left: 1.25rem; list-style: decimal; color: var(--text-dim); font-size: var(--text-body-size); }
.fw-dg.dg { padding-block: 12px; --dg-max-w: 52rem; }
@media (min-width: 48rem) { .fw-dg .dg__svg { max-height: 190px; } }

/* evidence */
.fw-ev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; align-items: stretch; }
.fw-ev .code { display: flex; flex-direction: column; }
.fw-ev .code pre { flex: 1; font-size: var(--text-code-size); }
.fw-arts { display: grid; margin: 0; padding: 0; list-style: none; }
.fw-arts li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: var(--text-body-size); line-height: 1.4; }
.fw-arts b { color: var(--text); font-weight: 500; }
.fw-arts span { color: var(--text-dim); }
@media (max-width: 59.99rem) { .fw-ev { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 39.99rem) { .fw-arts li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* scope and limits: lit border with a warning tint */
.fw-scope { border-color: color-mix(in srgb, var(--notice) 42%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--notice) 7%, transparent), color-mix(in srgb, var(--notice) 2%, transparent)), var(--surface-1); }
.fw-scope .c-ico { color: var(--notice); }
.fw-scope .limits { display: grid; gap: 4px; color: var(--text-dim); font-size: var(--text-body-size); line-height: 1.45; }
.fw-lh { color: var(--text); font-size: var(--text-body-size) !important; font-weight: 500; margin-top: 4px !important; }

/* sources */
.fw-src { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: var(--text-body-size); }
.fw-src li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--border); color: var(--text-dim); }
.fw-src a { overflow-wrap: anywhere; }
.fw-acc { color: var(--text-faint); font: 400 var(--text-code-size)/1.4 var(--mono); white-space: nowrap; }

/* index: filter bar, grid, matrix */
.fw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.fw-h2 { margin-right: auto; }
.fw-chips { flex-wrap: wrap; }
.fw-bar .meta { min-width: 9.5rem; text-align: right; }
@media (max-width: 47.99rem) { .fw-bar .meta { display: none; } .fw-chips { width: 100%; } }
.fw-card__b { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-card__b .badge { padding: 1px 8px; font-size: var(--text-small-size); }
.fw-card__b .badge { max-width: 100%; }
.fw-card__b .fw-cl { white-space: normal; border-radius: 12px; }
.fw-card--cta { border-style: dashed; }
.fw-card[hidden] { display: none; }

/* ---- coverage matrix ----
   Rows are 40px, type is the card-body token (capability name), the small token (badges, headers, labels) and the code token (chips). Chips: solid = direct, outlined = supporting, tint = number of references.
   Sticky header row and sticky first column; the soft edge gradients sit on a non-scrolling parent. All motion is inside prefers-reduced-motion: no-preference. */
.fw-sym { position: absolute; width: 0; height: 0; overflow: hidden; }
.fw-mxsec > .wrap { max-width: min(92rem, 100%); }
.fw-note--top { margin: 0 0 14px; }

/* the four counters (same pattern as /partners/: an SVG number filled with the logo gradient, counted up once by calm.js) */
.fw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-head); margin: 0 0 14px; padding: 0; list-style: none; }
.fw-stat { height: 100%; gap: .25rem; }
.fw-cn { display: block; width: 5.5rem; height: auto; margin: 0; overflow: visible; }
.fw-cn text { font-family: var(--mono); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fw-stat__l { margin: 0; color: var(--text-dim); font-size: var(--text-small-size); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 47.99rem) { .fw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* control bar */
.fw-mxbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.fw-mxsearch { flex: 0 1 17rem; min-width: 11rem; }
.fw-mxsearch .input { width: 100%; min-height: 2.25rem; font-size: var(--text-body-size); }
.fw-mxall { display: inline-flex; gap: 12px; }
.fw-mxcount { margin-left: auto; min-width: 9rem; text-align: right; }
.fw-mxfw { flex: 1 1 100%; }
.fw-fwbtn, .fw-fwtab { display: inline-flex; align-items: center; gap: 8px; }
.fw-fwbtn .fw-mark, .fw-fwtab .fw-mark { margin-left: -10px; }
.fw-fwbtn[aria-pressed="false"] { opacity: .55; border-style: dashed; }
.fw-fwbtn[aria-pressed="false"] .fw-mark { filter: grayscale(1); }
.fw-fwbtn:focus-visible, .fw-fwtab:focus-visible, .fw-stbtn:focus-visible, .fw-how > summary:focus-visible, .fw-nc > summary:focus-visible, .fw-lock:focus-visible, .fw-mx-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* legend bar and the "How to read this" panel */
.fw-lg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0 0 6px; color: var(--text-dim); font-size: var(--text-small-size); }
.fw-lg__i { display: inline-flex; align-items: center; gap: 8px; }
.fw-lg__s { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.fw-how { margin: 0 0 12px; }
.fw-how > summary { display: inline-block; padding: 4px 0; cursor: pointer; color: var(--text-dim); font-size: var(--text-small-size); letter-spacing: .08em; text-transform: uppercase; }
.fw-how > summary:hover { color: var(--text); }
.fw-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--text-dim); font-size: var(--text-body-size); }
.fw-legend li { display: inline-flex; align-items: center; gap: 8px; }
.fw-legend--st { margin-top: 8px; gap: 6px 18px; }
.fw-legend--st li { align-items: baseline; }
.fw-legend--st li > span:last-child { max-width: 24rem; line-height: 1.35; }
.fw-mxcap { margin: 10px 0 0; max-width: 62rem; color: var(--text-dim); font-size: var(--text-small-size); line-height: 1.5; }

/* the card: edge gradients, pointer spotlight and the scan line live on this non-scrolling parent */
.fw-mxedge { position: relative; border-radius: var(--r-panel); }
.fw-mxedge::before, .fw-mxedge::after { content: ""; position: absolute; top: 1px; bottom: 1px; width: 44px; z-index: 7; pointer-events: none; opacity: 0; }
.fw-mxedge::after { right: 1px; background: linear-gradient(270deg, var(--surface-1), transparent); border-radius: 0 var(--r-panel) var(--r-panel) 0; }
.fw-mxedge::before { left: calc(1px + 22rem); background: linear-gradient(90deg, rgba(0, 0, 0, .3), transparent); }
.fw-mxedge[data-edge="right"]::after, .fw-mxedge[data-edge="both"]::after, .fw-mxedge[data-edge="both"]::before, .fw-mxedge[data-edge="left"]::before { opacity: 1; }
.fw-spot, .fw-scan { position: absolute; pointer-events: none; z-index: 8; opacity: 0; }
.fw-spot { inset: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, .05), transparent 70%); }
.fw-mxedge:hover .fw-spot { opacity: 1; }
.fw-scan { left: 1px; right: 1px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--brand-blue), var(--brand-magenta), transparent); box-shadow: 0 0 14px 1px color-mix(in srgb, var(--brand-blue) 50%, transparent); }

.fw-mx-wrap { position: relative; max-height: min(78vh, 52rem); overflow: auto; overscroll-behavior: contain; }
.fw-mx { table-layout: fixed; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-small-size); }
.fw-col-cap { width: 22rem; }
.fw-w9 { width: 9rem; }
.fw-w9_5 { width: 9.5rem; }
.fw-w10 { width: 10rem; }
.fw-w10_5 { width: 10.5rem; }
.fw-w11 { width: 11rem; }
.fw-w11_5 { width: 11.5rem; }
.fw-w12 { width: 12rem; }
.fw-w12_5 { width: 12.5rem; }
.fw-w13 { width: 13rem; }
.fw-w13_5 { width: 13.5rem; }
.fw-w14 { width: 14rem; }
.fw-w14_5 { width: 14.5rem; }
.fw-w15 { width: 15rem; }
.fw-w15_5 { width: 15.5rem; }
.fw-w16 { width: 16rem; }
.fw-w16_5 { width: 16.5rem; }
.fw-col-lock { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 5px, transparent 5px 11px); }
.fw-mx th, .fw-mx td { padding: 0 8px; border-bottom: 1px solid var(--border); line-height: 1.2; vertical-align: middle; }
.fw-mx thead th { position: sticky; top: 0; z-index: 4; height: 66px; background: var(--surface-2); text-align: center; font-weight: 500; letter-spacing: 0; text-transform: none; transition: none; }
.fw-mx thead th::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-hover), transparent); }
.fw-mx thead th.fw-mx__capth { left: 0; z-index: 6; padding-inline: 12px; text-align: left; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; box-shadow: 1px 0 0 var(--border-hover); }
.fw-mx tbody tr[id] > * { height: 40px; box-sizing: border-box; }
.fw-mx tbody th.fw-mx__cap { position: sticky; left: 0; z-index: 3; padding: 2px 8px 2px 12px; text-align: left; font-weight: 500; letter-spacing: 0; text-transform: none; background: var(--surface-1); box-shadow: 1px 0 0 var(--border-hover), inset 0 0 0 999px var(--hl, transparent); }
.fw-mx tbody td { box-shadow: inset 0 0 0 999px var(--hl, transparent); }
.fw-capbtn { display: block; max-width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: 500 var(--text-body-size)/17px var(--font); text-align: left; cursor: pointer; }
.fw-capbtn > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-capm { display: flex; align-items: center; gap: 6px; margin-top: 1px; overflow: hidden; }
.fw-st { padding: 0 .5rem; font-size: var(--text-small-size); line-height: 15px; white-space: nowrap; }
.fw-capbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.fw-capbtn:focus-visible, .fw-cell:focus-visible, .fw-catbtn:focus-visible, .fw-mxm__row:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: 6px; }

/* locked columns (no reference, the official text could not be read): a lock in the header with its tooltip, hatched background, the quiet dots stay */
.fw-mx__fw--lock { color: var(--text-dim); }
.fw-lock { position: absolute; top: 4px; right: 4px; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--text-dim); cursor: help; }
.fw-lock__i { width: 12px; height: 12px; }
.fw-tip { position: absolute; top: calc(100% + 6px); right: -6px; z-index: 9; width: 15.5rem; padding: 8px 10px; border: 1px solid var(--border-hover); border-radius: var(--r-control); background: var(--surface-2); color: var(--text); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); font-size: var(--text-small-size); font-weight: 400; line-height: 1.4; text-align: left; opacity: 0; visibility: hidden; pointer-events: none; }
.fw-lock:hover .fw-tip, .fw-lock:focus-visible .fw-tip { opacity: 1; visibility: visible; }

/* group rows: thin gradient rule, name, count, heat segments, chevron */
.fw-mx__cat th { position: static; height: 36px; padding: 0; text-align: left; border-bottom: 0; background: linear-gradient(90deg, var(--brand-blue), var(--brand-magenta) 38%, transparent 82%) left bottom / 100% 1px no-repeat, var(--surface-2); }
.fw-catbtn { position: sticky; left: 0; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border: 0; background: none; color: var(--text); font: 600 var(--text-small-size)/1 var(--font); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.fw-chev { width: 11px; height: 11px; }
.fw-catbtn[aria-expanded="false"] .fw-chev { transform: rotate(-90deg); }
.fw-catn { color: var(--text-dim); font: 500 var(--text-code-size)/1 var(--mono); }
.fw-catbar { display: inline-flex; gap: 2px; margin-left: 8px; }
.fw-catbar i { width: 12px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--brand-blue) calc(var(--h, 0) * 100%), rgba(255, 255, 255, .09)); }
.fw-catbar i[data-h="1"] { --h: 0.1; }
.fw-catbar i[data-h="2"] { --h: 0.2; }
.fw-catbar i[data-h="3"] { --h: 0.3; }
.fw-catbar i[data-h="4"] { --h: 0.4; }
.fw-catbar i[data-h="5"] { --h: 0.5; }
.fw-catbar i[data-h="6"] { --h: 0.6; }
.fw-catbar i[data-h="7"] { --h: 0.7; }
.fw-catbar i[data-h="8"] { --h: 0.8; }
.fw-catbar i[data-h="9"] { --h: 0.9; }
.fw-catbar i[data-h="10"] { --h: 1; }
.fw-mx tr[data-off] { display: none; }

.fw-pf { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 0 7px 0 5px; border: 1px solid var(--border-hover); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--text-dim); font: 500 var(--text-code-size)/15px var(--mono); white-space: nowrap; }
.fw-pf > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.fw-pi { width: 12px; height: 12px; flex: none; color: var(--brand-blue); }

/* chips */
.fw-ref { display: inline-block; margin: 0 4px 2px 0; padding: 0 6px; border: 1px solid var(--border-hover); border-radius: 6px; background: rgba(255, 255, 255, .04); color: var(--text); font: 500 var(--text-code-size)/1.6 var(--mono); vertical-align: 1px; }
.fw-ref--c { margin: 0; padding: 0 6px; border-radius: 5px; font-size: var(--text-code-size); line-height: 18px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.fw-ref--direct { border-color: var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 30%, var(--surface-2)); color: var(--text); }
.fw-ref--supporting { border-color: var(--border-hover); background: transparent; color: var(--text-dim); }
.fw-ref.is-same { border-color: var(--text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-blue) 55%, transparent); color: var(--text); }
.fw-c { padding: 0 6px; text-align: center; }
.fw-cellw { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 100%; }
.fw-cell { display: inline-flex; align-items: center; justify-content: center; min-width: 0; max-width: 100%; min-height: 26px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.fw-cell:hover .fw-ref, .fw-cell:focus-visible .fw-ref { border-color: var(--text); }
.fw-plus { min-height: 22px; padding: 0 5px; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .09); color: var(--text-dim); font: 600 var(--text-code-size)/18px var(--mono); cursor: pointer; }
.fw-plus:hover, .fw-plus[aria-expanded="true"] { background: rgba(255, 255, 255, .18); color: var(--text); }
.fw-plus:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.fw-pop { text-align: left; position: fixed; inset: auto; margin: 0; width: min(24rem, calc(100vw - 16px)); max-height: 60vh; overflow: auto; padding: 10px 12px; border: 1px solid var(--border-hover); border-radius: var(--r-control); background: var(--surface-2); color: var(--text); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); font-size: var(--text-small-size); }
.fw-pop__h { margin: 0 0 6px; color: var(--text-dim); text-transform: uppercase; }
.fw-pop ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fw-pop li { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 10px; align-items: baseline; }
.fw-pop__t { color: var(--text-dim); line-height: 1.3; }
.fw-pop a { grid-column: 2; display: inline-flex; align-items: center; gap: 4px; justify-self: start; color: var(--text-dim); font-size: var(--text-small-size); }
.fw-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); opacity: .7; vertical-align: middle; }
.fw-c { --tn: 0; }
.fw-t1 { --tn: 1; } .fw-t2 { --tn: 2; } .fw-t3 { --tn: 3; } .fw-t4 { --tn: 4; }
.fw-c[class*="fw-t"] { background: linear-gradient(135deg, color-mix(in srgb, var(--brand-blue) calc(var(--tn) * 5%), transparent), color-mix(in srgb, var(--brand-indigo) calc(var(--tn) * 4%), transparent) 55%, color-mix(in srgb, var(--brand-magenta) calc(var(--tn) * 3%), transparent)); }
.fw-tint { display: inline-flex; gap: 2px; vertical-align: middle; }
.fw-tint i { width: 14px; height: 14px; border: 1px solid var(--border-hover); border-radius: 3px; }
.fw-tint i:nth-child(1) { background: linear-gradient(135deg, color-mix(in srgb, var(--brand-blue) 5%, transparent), color-mix(in srgb, var(--brand-magenta) 3%, transparent)); }
.fw-tint i:nth-child(2) { background: linear-gradient(135deg, color-mix(in srgb, var(--brand-blue) 10%, transparent), color-mix(in srgb, var(--brand-magenta) 6%, transparent)); }
.fw-tint i:nth-child(3) { background: linear-gradient(135deg, color-mix(in srgb, var(--brand-blue) 20%, transparent), color-mix(in srgb, var(--brand-magenta) 12%, transparent)); }

/* header marks */
.fw-mh { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--text-dim); }
.fw-mh .fw-mark { --ms: 28px; }
.fw-mh__n { font: 500 var(--text-small-size)/1.15 var(--font); max-width: 9rem; text-wrap: balance; }
.fw-mh:hover .fw-mark, .fw-mh:focus-visible .fw-mark { color: var(--text); border-color: var(--brand-blue); }

/* crosshair: the row lights through :hover, the column through .is-hc (set by the script); headers brighten */
.fw-mx tbody tr[id]:hover > * { --hl: rgba(255, 255, 255, .05); }
.fw-mx td.is-hc, .fw-mx tbody tr[id]:hover > td.is-hc { --hl: color-mix(in srgb, var(--brand-blue) 10%, transparent); }
.fw-mx tbody tr[id]:hover > td.is-hc { --hl: color-mix(in srgb, var(--brand-blue) 20%, transparent); }
.fw-mx thead th.is-hc { background: color-mix(in srgb, var(--brand-blue) 16%, var(--surface-2)); color: var(--text); box-shadow: inset 0 -2px 0 var(--brand-blue); }
.fw-mx thead th.is-hc .fw-mh { color: var(--text); }

/* not counted as coverage: a muted, dashed panel; collapsed by default */
.fw-nc { margin-top: 18px; padding: 0 14px; border: 1px dashed var(--border-hover); border-radius: var(--r-panel); background: color-mix(in srgb, var(--text) 2.5%, transparent); }
.fw-nc > summary { padding: 12px 0; cursor: pointer; color: var(--text-dim); font-weight: 500; font-size: var(--text-body-size); }
.fw-nc[open] > summary { color: var(--text); }
.fw-nc__i { margin: 0 0 12px; max-width: 62rem; color: var(--text-dim); font-size: var(--text-body-size); line-height: 1.45; }
.fw-ncl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; list-style: none; }
.fw-ncc.cap { border-style: dashed; background: transparent; }
.fw-ncc .fw-cl { padding: 0 .5rem; font-size: var(--text-small-size); line-height: 15px; }
.fw-ncc .fw-card__b { margin-top: 2px; }
.fw-evs, .fw-panel__ev { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fw-evl { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 8px; border: 1px solid var(--border-hover); border-radius: 999px; color: var(--text-dim); text-decoration: none; }
.fw-evl code { overflow: hidden; text-overflow: ellipsis; font: 500 var(--text-code-size)/1.5 var(--mono); }
.fw-evl:hover { color: var(--text); border-color: var(--text); }
@media (max-width: 47.99rem) { .fw-ncl { grid-template-columns: minmax(0, 1fr); } }

.fw-acc { color: var(--text-faint); font: 400 var(--text-code-size)/1.4 var(--mono); white-space: nowrap; }

/* by-framework view: the default on phones; a switch on larger screens */
.fw-mxtabs, .fw-mxm { display: none; }
.fw-mxsec[data-view="fw"] .fw-mxtabs { display: flex; }
.fw-mxsec[data-view="fw"] .fw-mxm { display: block; }
.fw-mxsec[data-view="fw"] :is(.fw-mxedge, .fw-mxall, .fw-mxfw) { display: none; }
.fw-mxm__cat { margin: 14px 0 6px; font: 600 var(--text-small-size)/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.fw-mxm__ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.fw-mxm__row { display: grid; gap: 6px; width: 100%; height: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface-1); color: var(--text); text-align: left; cursor: pointer; }
.fw-mxm__row:hover { border-color: var(--border-hover); background: color-mix(in srgb, var(--brand-blue) 6%, var(--surface-1)); }
.fw-mxm__l { font-size: var(--text-body-size); font-weight: 500; line-height: 1.3; }
.fw-mxm__c { display: flex; flex-wrap: wrap; gap: 4px; }
.fw-mxm__p { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 47.99rem) {
  .fw-mxedge, .fw-mxfw, .fw-mxall, .fw-mxview, .fw-mxcount { display: none; }
  .fw-mxtabs, .fw-mxm { display: flex; }
  .fw-mxm { display: block; }
  .fw-mxsec[data-view] .fw-mxtabs { display: flex; }
  .fw-mxsec[data-view] .fw-mxm { display: block; }
  .fw-mxm__ul { grid-template-columns: minmax(0, 1fr); }
  .fw-mxstat { flex: 1 1 100%; }
  .fw-mxsearch { flex: 1 1 100%; }
}

/* detail drawer: slides in from the right, a bottom sheet on phones */
.fw-panel { --fw-from: translateX(28px); position: fixed; inset: 0 0 0 auto; width: min(34rem, 100vw); max-width: 100vw; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--border-hover); background: var(--surface-1); color: var(--text); box-shadow: -24px 0 60px rgba(0, 0, 0, .45); overflow: hidden; }
.fw-panel::backdrop { background: rgba(3, 4, 8, .6); }
.fw-panel[open] { display: flex; flex-direction: column; }
.fw-panel__top { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.fw-pn-nav { display: flex; gap: 8px; }
.fw-pn-ar { width: 14px; height: 14px; }
.fw-pn-nb:disabled { opacity: .4; cursor: default; }
.fw-pn-pos { flex: 1; min-width: 0; margin: 0; color: var(--text-dim); font-size: var(--text-small-size); letter-spacing: .06em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-panel__body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; display: grid; gap: 14px; align-content: start; font-size: var(--text-body-size); line-height: 1.5; }
.fw-panel__body > *, .fw-pref > * { min-width: 0; overflow-wrap: anywhere; }
.fw-panel h3 { margin: 0; }
.fw-panel h4 { margin: 0 0 4px; color: var(--text-dim); text-transform: uppercase; }
.fw-panel p { margin: 0; color: var(--text-dim); }
.fw-pref { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-control); background: rgba(255, 255, 255, .02); }
.fw-pref__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.fw-pref__t { color: var(--text); font-weight: 500; }
.fw-pref a { display: inline-flex; align-items: center; justify-self: start; color: var(--text-dim); font-size: var(--text-body-size); }
.fw-panel .code pre { font-size: var(--text-code-size); margin: 0; overflow-x: auto; white-space: pre; }
.fw-panel__note { font-size: var(--text-body-size); color: var(--text-dim); }
.fw-panel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--text-body-size); }
.fw-panel__ul { display: grid; gap: 4px; margin: 0; padding-left: 1.1rem; color: var(--text-dim); }
.fw-panel__ev code { font-size: var(--text-code-size); overflow-wrap: anywhere; }
.fw-pref__rel { font-size: var(--text-small-size) !important; color: var(--text-dim) !important; }
@media (max-width: 47.99rem) {
  .fw-panel { --fw-from: translateY(36px); inset: auto 0 0 0; width: 100vw; height: min(88dvh, 46rem); border-left: 0; border-top: 1px solid var(--border-hover); border-radius: var(--r-panel) var(--r-panel) 0 0; box-shadow: 0 -24px 60px rgba(0, 0, 0, .45); }
}

/* motion: only without a reduced-motion preference */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fw-in { from { opacity: 0; transform: var(--fw-from); } to { opacity: 1; transform: none; } }
  @keyframes fw-out { to { opacity: 0; transform: var(--fw-from); } }
  @keyframes fw-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fw-rowin { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fw-scan { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
  .fw-panel[open] { animation: fw-in .3s cubic-bezier(.2, .8, .2, 1); }
  .fw-panel[open]::backdrop { animation: fw-fade .3s ease; }
  .fw-panel.is-out { animation: fw-out .16s ease-in forwards; }
  .fw-mx tr.fw-in { animation: fw-rowin .36s ease both; animation-delay: calc(var(--si, 0) * 28ms); }
  .fw-mxedge.is-scan .fw-scan { animation: fw-scan .7s ease-out; }
  .fw-spot { transition: opacity .3s ease; }
  .fw-chev { transition: transform .2s ease; }
  .fw-tip { transition: opacity .15s ease, visibility .15s; }
  .fw-mx td, .fw-mx tbody th.fw-mx__cap { transition: box-shadow .15s ease; }
}
.fw-dg { --dg-gap: 120px; --dg-node-minw: 240px; }
.fw-dg--ix { --dg-gap: 110px; --dg-node-minw: 190px; }
.fw-ev .code pre { overflow-x: auto; white-space: pre; }
.fw-facts a { white-space: nowrap; }
/* the shared card reserves eight 4px rows beside its icon; with row-gap 0 and a margin on the body text the card is exactly as tall as its content */
.fw-sec .cap { row-gap: 0; }
.fw-sec .cap > :is(p, ul, .fw-arts, a.link-arrow) { margin-top: 4px; }
.fw-hero > .wrap > :is(.cta-row, .fw-badges) { justify-self: stretch; max-width: 100%; }

/* "Where it meets": two columns from tablet up, so a body is one or two lines and row-mates differ by at most one line; an odd last card spans the row */
.caps.fw-meet { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .caps.fw-meet { grid-template-columns: repeat(2, minmax(0, 1fr)); } .caps.fw-meet > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.fw-panel section { display: grid; gap: 6px; }
.fw-panel__ul { list-style: disc; }
