/* JawnLam.com — Unigrid
 * One 12-column modular grid; solid black title bands; black-and-white type and rules.
 * Color is used only as the subject code (see DESIGN.md). Flat everywhere: no texture,
 * shadow, gradient, rounded corner or drawn object (PRODUCT.md: no skeuomorphism).
 */

@font-face {
    font-family: "Archivo";
    src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Archivo";
    src: url("/assets/fonts/archivo-latin-wdth-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "STIX Two Math";
    src: url("/assets/fonts/stix-two-math.woff2") format("woff2");
    font-display: swap;
}
:root {
    --black: #000;
    --white: #fff;
    --text-2: #3b3b3b;
    --text-3: #5c5c5c;
    --rule-light: #d6d6d6;
    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --gutter: clamp(16px, 3vw, 40px);
    --col-gap: 24px;
    --max: 1440px;
    --band-h: 64px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-color: var(--black) var(--white);
    scroll-padding-top: calc(var(--band-h) + 16px);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--black);
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}

.nav-band :focus-visible,
.title-band :focus-visible,
.foot-band :focus-visible {
    outline-color: var(--white);
}

.title-band--subject :focus-visible {
    outline-color: var(--ink);
}

.wrap {
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.skip {
    position: absolute;
    left: var(--gutter);
    top: -60px;
    z-index: 100;
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    padding: 10px 14px;
}

.skip:focus {
    top: 10px;
}

/* ─── Bands ─── */

.nav-band {
    background: var(--black);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #333;
}

.nav-band .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--band-h);
    gap: 16px;
}

.mark {
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-band ul {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.4vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-band ul a {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    padding-block: 6px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s var(--ease);
}

.nav-band ul a:hover,
.nav-band ul a[aria-current="page"] {
    border-bottom-color: var(--white);
}

.nav-band .nav-call {
    background: var(--white);
    color: var(--black);
    padding: 9px 14px;
    border: 0;
}

.nav-band .nav-call:hover {
    background: #d4d4d4;
}

.title-band {
    background: var(--black);
    color: var(--white);
}

.title-band .wrap {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
    padding-block: 48px 36px;
}

.title-band h1 {
    grid-column: 1 / 9;
    margin: 0;
    font-weight: 800;
    font-size: clamp(48px, 7.5vw, 112px);
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-wrap: balance;
    overflow-wrap: break-word; /* a word longer than a phone's line breaks inside the band, never past it */
}

.title-band p {
    grid-column: 9 / 13;
    margin: 0;
    font-size: 17px;
    color: #d4d4d4;
    font-variant-numeric: tabular-nums;
}

.title-band--home .wrap {
    padding-block: 56px 40px;
}

.title-band--home h1 {
    grid-column: 1 / 8;
    font-size: clamp(56px, 9vw, 132px);
    line-height: 0.88;
    letter-spacing: -0.045em;
}

.title-band--home p {
    grid-column: 8 / 13;
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.4;
    max-width: 30ch;
}

.title-band--subject {
    background: var(--c);
    color: var(--ink);
}

.title-band--subject .wrap {
    padding-block: 48px 36px;
}

.title-band--subject h1 {
    grid-column: 1 / -1;
    max-width: 18ch;
}

.band-meta {
    grid-column: 1 / -1 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 22px 0 0 !important;
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 700;
}

.band-meta a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ─── The subject key ─── */

.key {
    display: grid;
    grid-template-columns: repeat(var(--keys, 8), minmax(0, 1fr));
}

.key a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: end;
    column-gap: 10px;
    container-type: inline-size;
    min-height: 96px;
    padding: 12px 14px;
    background: var(--c);
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.15;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

/* The name always takes two lines: the first word with its ampersand (beside the count), then the second term
   whole on a line of its own. The type steps down only when a cell is too narrow for the longest second term
   ("Organizational Development", about 13.6em, with room to spare), so no term ever breaks. */
.key-name {
    display: contents;
}

.key-name > span {
    grid-column: 1;
    font-size: clamp(10px, calc(100cqi / 14.2), 15px);
}

.key-name > span + span {
    grid-column: 1 / -1;
    grid-row: 2;
    white-space: nowrap;
}

.key-count {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.key a:hover,
.key a[aria-selected="true"] {
    background: var(--black);
    color: var(--white);
}

.key a:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
    position: relative;
}

/* On a subject page the other subjects stack in the last three columns beside the first pieces; the pieces
   fill the rows beside it and run full width below it. */
.grid--page:has(.key--side) {
    grid-auto-flow: row dense;
}

.key.key--side {
    grid-column: 10 / -1;
    grid-row: 1 / span 3;
    align-self: start;
    display: flex;
    flex-direction: column;
}

.key--side a {
    min-height: 56px;
}

/* ─── Bodies of work (home) ─── */

.works {
    --c: var(--black);
    padding-top: 40px;
}

.works + .works {
    padding-top: 56px;
}

.browse {
    margin-top: 72px;
}

.browse.is-tabs .subject {
    padding-top: 40px;
}

.mod.mod--work {
    grid-column: span 6;
}

.mod.mod--work :is(h2, h3) {
    font-size: 34px;
    letter-spacing: -0.02em;
}

.browse .subject[hidden] {
    display: none;
}

/* ─── Subject sections (home) ─── */

.subject {
    padding-top: 72px;
}

.subject:first-of-type {
    padding-top: 40px;
}

.subject-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    border-top: 12px solid var(--c);
    padding-top: 14px;
    margin-bottom: 24px;
}

.subject-head h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.subject-head h2 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.subject-head span {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.more {
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--c);
    padding-bottom: 2px;
}

.more:hover {
    background: var(--c);
    color: var(--ink);
}

/* ─── Modules ─── */

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px var(--col-gap);
}

.grid--page {
    padding-block: 40px 24px;
}

.mod {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 150px;
    padding: 12px 0 10px;
    border-top: 4px solid var(--c);
    outline: 12px solid transparent;
    outline-offset: 0;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), outline-color 0.2s var(--ease);
}

.mod--M { grid-column: span 6; }
.mod--L { grid-column: span 9; }
.mod--XL { grid-column: span 12; min-height: 220px; }

.mod:hover {
    background: var(--c);
    color: var(--ink);
    outline-color: var(--c);
}

.mod:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 4px;
}

.mod-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: auto;
    padding-top: 8px;
}

.fmt {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
}

.mod:hover .fmt,
.lib-row a:hover .fmt {
    color: inherit;
}

.mod h2,
.mod h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.mod--M :is(h2, h3) { font-size: 26px; }
.mod--L :is(h2, h3) { font-size: 34px; letter-spacing: -0.02em; }
.mod--XL :is(h2, h3) { font-size: clamp(44px, 6vw, 84px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }

.mod p {
    margin: 0;
    font-size: 15px;
    color: var(--text-2);
    max-width: 58ch;
}

.mod:hover p {
    color: inherit;
}

/* ─── Chips (subject code) ─── */

.chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    display: inline-block;
    background: var(--c);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 7px 4px;
    white-space: nowrap;
}

a.chip:hover {
    outline: 2px solid var(--black);
    outline-offset: 1px;
}

/* ─── Piece pages ─── */

.piece {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    padding-block: 48px 24px;
}

.piece-body {
    grid-column: 1 / 8;
}

/* About: the portrait, the site's one circle, in the sidebar columns beside the text (above it on a phone). */
.piece--about .piece-body {
    grid-row: 1;
}

.portrait {
    grid-column: 9 / 13;
    grid-row: 1;
    align-self: start;
    margin: 0;
}

.portrait img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

.piece-side {
    grid-column: 9 / 13;
    border-top: 4px solid var(--black);
    padding-top: 12px;
    align-self: start;
    /* Follows the reader down the page so the column never ends before the essay. */
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
}

.piece-side h2 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.piece-side .chips {
    margin-bottom: 28px;
}

.related {
    margin: 0;
    padding: 0;
    list-style: none;
}

.related a {
    display: block;
    padding: 9px 0;
    border-top: 1px solid var(--rule-light);
    font-weight: 600;
    line-height: 1.25;
}

.related a span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
    margin-top: 2px;
}

.related a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose {
    max-width: 66ch;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
    margin: 0 0 1.15em;
    font-size: 19px;
    line-height: 1.6;
}

/* About opens and closes on the same lead line, the close set off by a 4px rule. */
.prose--lead p:last-child {
    margin-top: 1.4em;
    padding-top: 0.8em;
    border-top: 4px solid var(--black);
}

.prose--lead p:first-child,
.prose--lead p:last-child {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.prose h2 {
    margin: 1.8em 0 0.6em;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.prose h3 {
    margin: 1.6em 0 0.5em;
    font-size: 21px;
    font-weight: 700;
}

.prose ul,
.prose ol {
    padding-left: 1.2em;
}

.prose li {
    margin-bottom: 0.4em;
}

.prose a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
/* Outbound links (DESIGN.md, Outbound Links): a credited work's page, same tab, rel="noopener"; underlined like any
   link in prose, no icon and no color of their own. The thinkers page's work titles follow the same rule. */
.prose a[href^="http"],
.thk-works a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.prose a[href^="http"]:hover,
.thk-works a:hover {
    text-decoration-thickness: 2px;
}

.prose blockquote {
    margin-left: 0;
    padding-left: 20px;
    border-left: 1px solid var(--black);
}

.small-note {
    font-size: 14px;
    color: var(--text-3);
}

/* ─── Buttons ─── */

.button {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    font-weight: 700;
    font-size: 17px;
    padding: 14px 20px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.button:hover {
    background: #333;
}

.button--inverse {
    background: var(--white);
    color: var(--black);
}

.button--inverse:hover {
    background: #d4d4d4;
}

/* ─── Subjects index ─── */

.subject-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--col-gap);
    padding-block: 40px 24px;
}

.subject-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 260px;
    padding: 16px 16px 18px;
    background: var(--c);
    color: var(--ink);
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.subject-tile h2 {
    margin: 0;
    min-height: 2.1em;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.subject-tile .count {
    font-size: 14px;
    font-weight: 700;
}

.subject-tile ul {
    margin: 16px 0 0;
    padding: 10px 0 0;
    list-style: none;
    border-top: 2px solid currentColor;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.subject-tile:hover {
    background: var(--black);
    color: var(--white);
}

/* ─── Library ─── */

.library {
    padding-block: 32px 24px;
}

/* the Thinkers Directory, set apart above the controls: black and white (it is no subject), under a 12px black rule
   and over a 4px one, the whole block one link that turns black on hover */
.lib-feature {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px var(--col-gap);
    align-items: baseline;
    margin-bottom: 32px;
    padding: 18px 12px 22px;
    border-top: 12px solid var(--black);
    border-bottom: 4px solid var(--black);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.lib-feature:hover {
    background: var(--black);
    color: var(--white);
}

.lib-feature .fmt {
    grid-column: 1 / -1;
}

.lib-feature-title {
    grid-column: span 4;
    font-weight: 800;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.lib-feature-summary {
    grid-column: span 5;
    font-size: 17px;
    line-height: 1.4;
    color: var(--text-2);
}

.lib-feature-go {
    grid-column: span 3;
    justify-self: end;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.lib-feature:hover .fmt,
.lib-feature:hover .lib-feature-summary {
    color: inherit;
}

@media (max-width: 860px) {
    .lib-feature-title,
    .lib-feature-summary,
    .lib-feature-go {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

.lib-controls {
    display: grid;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 4px solid var(--black);
}

.lib-controls[hidden] {
    display: none;
}

.search input {
    width: 100%;
    font: inherit;
    font-size: 20px;
    padding: 12px 0;
    border: 0;
    border-bottom: 2px solid var(--black);
    background: transparent;
    color: var(--black);
    border-radius: 0;
}

.search input::placeholder {
    color: var(--text-3);
}

.search input:focus {
    outline: none;
    border-bottom-width: 4px;
    padding-bottom: 10px; /* the thicker rule takes the 2px from the padding, so focus never moves the page */
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter {
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 10px;
    border: 2px solid var(--c, var(--black));
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.filter[aria-pressed="true"] {
    background: var(--c, var(--black));
    color: var(--ink, var(--white));
}

.filter:hover:not([aria-pressed="true"]) {
    background: #eee;
}

.lib-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lib-row[hidden] {
    display: none;
}

.lib-row a {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px var(--col-gap);
    align-items: baseline;
    padding: 14px 12px 12px;
    border-bottom: 1px solid var(--rule-light);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.lib-row a:hover {
    background: var(--c);
    color: var(--ink);
}

.lib-row a:hover .lib-summary,
.lib-row a:hover .lib-len {
    color: inherit;
}

.lib-title {
    grid-column: span 4;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.2;
}

.lib-summary {
    grid-column: span 4;
    font-size: 15px;
    color: var(--text-2);
}

.lib-meta {
    grid-column: span 4;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px 10px;
}

.lib-meta .chips {
    justify-content: flex-end;
}

.lib-len {
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.lib-empty {
    padding: 24px 0;
    font-size: 18px;
}

/* ─── Footer ─── */

.foot-band {
    background: var(--black);
    color: var(--white);
    margin-top: 96px;
}

.foot-band .wrap {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
    padding-block: 64px 48px;
}

.foot-band h2 {
    grid-column: 1 / 8;
    margin: 0;
    font-size: clamp(44px, 6vw, 84px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.foot-cta {
    grid-column: 9 / 13;
    display: grid;
    gap: 18px;
    justify-items: start;
}

.foot-links {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
    font-size: 15px;
}

.foot-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.foot-cta small {
    color: #a8a8a8;
    font-size: 13px;
}

/* ─── Responsive ─── */

@media (max-width: 1320px) {
    .key {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    /* a last cell alone on its row (the ninth, the thirteenth) spans the row, as the phone key's odd cell does */
    .key a:last-child:nth-child(4n + 1) {
        grid-column: span 4;
    }
}

@media (max-width: 1080px) {

    .subject-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .title-band h1,
    .title-band p,
    .title-band--home h1,
    .title-band--home p {
        grid-column: 1 / -1;
    }

    .title-band p {
        margin-top: 18px;
    }

    .mod,
    .mod--M,
    .mod--L {
        grid-column: span 6;
    }

    .piece-body,
    .piece-side {
        grid-column: 1 / -1;
    }

    .portrait {
        grid-column: 1 / -1;
        margin-bottom: 32px;
    }

    .portrait img {
        max-width: 200px;
    }

    .piece--about .piece-body {
        grid-row: 2;
    }

    .piece-side {
        margin-top: 40px;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .foot-band h2,
    .foot-cta {
        grid-column: 1 / -1;
    }

    .foot-cta {
        margin-top: 28px;
    }

    .lib-row a {
        grid-template-columns: 1fr;
    }

    .lib-title,
    .lib-summary,
    .lib-meta {
        grid-column: 1 / -1;
    }

    .lib-meta .chips {
        justify-content: flex-start;
    }

    .key.key--side {
        grid-column: 1 / -1;
        grid-row: auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        margin-top: 24px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .nav-band ul {
        gap: 12px;
    }

    .nav-band ul a {
        font-size: 13.5px;
        font-stretch: 85%;
    }

    .nav-band .nav-call {
        padding: 7px 9px;
    }

    .mark {
        font-size: 16px;
    }

    .key {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .key a {
        min-height: 64px;
    }

    .key a:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    /* on a phone the home page leaves the key out: the subjects are one tap away under Subjects in the nav */
    .front > .key {
        display: none;
    }

    .mod,
    .mod--M,
    .mod--L,
    .mod--XL,
    .mod.mod--work {
        grid-column: 1 / -1;
        min-height: 0;
    }

    .mod.mod--work :is(h2, h3) {
        font-size: 28px;
    }

    .subject-tiles {
        grid-template-columns: 1fr;
    }

    .subject-tile {
        min-height: 0;
    }

    .prose p,
    .prose ul,
    .prose ol {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Mathematical notation (MathML from build.py). Notation, not text, so it takes a math font (DESIGN.md, The One Face Rule). */
math {
    font-family: "STIX Two Math", math;
    font-size: 1.12em;
}
.math {
    overflow-x: auto;
    margin: 0 0 1.2em;
    padding-block: 6px;
}
.math math {
    display: inline math;
    math-style: normal;
    font-size: 1.12em;
}
@media (max-width: 560px) {
    .math math {
        font-size: 0.92em;
    }
}


/* Map of metrics (build.py metric_map, assets/js/metric-map.js). Black and white: the link type is carried by
   line style (solid exact, dashed causal, dotted proxy), the node's role by fill and border weight. */
.prose figure.mm {
    margin: 2em 0 2.4em;
    border-top: 4px solid var(--black);
    padding-top: 14px;
}
.prose .mm figcaption p {
    margin: 0 0 0.4em;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-2);
}
.prose .mm figcaption .mm-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--black);
}
.mm-app {
    margin-top: 14px;
}
.mm-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mm-btn {
    font: 700 14px/1 var(--font);
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    padding: 8px 12px;
    min-width: 40px;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.mm-btn:hover {
    background: var(--black);
    color: var(--white);
}
.mm-btn--text {
    margin-left: auto;
}
.mm-btn:focus-visible,
.mm-node:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}
.prose .mm .mm-key {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--text-3);
}
.mm-canvas {
    height: 640px;
    margin-top: 8px;
    border-top: 1px solid var(--black);
    border-bottom: 1px solid var(--black);
    background: var(--white);
}
.mm-canvas svg {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    font-family: var(--font);
}
.mm-link {
    stroke: var(--black);
    stroke-width: 1.25px;
}
.mm-sign {
    font-size: 17px;
    font-weight: 700;
    text-anchor: middle;
    paint-order: stroke;
    stroke: var(--white);
    stroke-width: 6px;
    fill: var(--black);
}
.mm-node {
    cursor: pointer;
}
.mm-node rect {
    fill: var(--white);
    stroke: var(--black);
    stroke-width: 2px;
}
.mm-node.is-leaf rect {
    stroke-width: 1px;
}
.mm-node.is-construct rect {
    stroke-dasharray: 5 3;
}
.mm-node.is-on rect {
    stroke-width: 4px;
}
/* Colour by level out from the root, taken from the page's own subjects (build.py map_vars): root in the
   primary subject's colour, level 1 black, level 2 the second subject's colour, then white. */
.mm-node.is-root rect { fill: var(--mm-a, var(--black)); }
.mm-node.lv-1 rect { fill: var(--black); }
.mm-node.lv-2 rect { fill: var(--mm-b, #3b3b3b); }
.is-root .mm-label,
.is-root .mm-sub { fill: var(--mm-a-ink, var(--white)); }
.mm-node.lv-1 .mm-label,
.mm-node.lv-1 .mm-sub,
.mm-node.lv-1.is-ref .mm-label { fill: var(--white); }
.mm-node.lv-2 .mm-label,
.mm-node.lv-2 .mm-sub,
.mm-node.lv-2.is-ref .mm-label { fill: var(--mm-b-ink, var(--white)); }
.mm-node.lv-1.is-on rect { stroke: var(--mm-b, #8a8a8a); }
.mm-node.lv-1.is-ref rect,
.mm-node.lv-2.is-ref rect { opacity: 0.72; }
.mm-node:hover rect {
    stroke-width: 3px;
}
.mm-label {
    font-size: 14px;
    font-weight: 700;
    text-anchor: middle;
    fill: var(--black);
}
.mm-sub {
    font-size: 13px;
    text-anchor: middle;
    fill: var(--text-3);
    font-variant-numeric: tabular-nums;
}
.is-root .mm-label {
    font-size: 15px;
}
.is-ref .mm-label {
    fill: var(--text-3);
}
.mm-detail {
    padding: 14px 0 4px;
}
.prose .mm .mm-dname {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
}
.mm-dname span {
    margin-left: 0.6em;
    font-weight: 400;
    color: var(--text-2);
}
.mm-detail dl {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 6px 16px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}
.mm-detail dt {
    font-weight: 700;
}
.mm-detail dd {
    margin: 0;
    color: var(--text-2);
}
.prose ul.mm-tree,
.prose .mm-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
}
.mm-outline {
    margin-top: 12px;
}
.prose .mm-tree ul {
    margin-left: 7px;
    padding-left: 14px;
    border-left: 1px solid var(--rule-light);
}
.prose .mm-tree li {
    margin: 0;
    padding: 5px 0;
}
.mm-tree summary {
    cursor: pointer;
    font-weight: 700;
}
.mm-tree li > span {
    font-weight: 700;
}
.mm-tree small {
    display: block;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-3);
}
.mm-tree .mm-e {
    display: inline-block;
    min-width: 1.1em;
}
@media (max-width: 560px) {
    .mm-detail dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
    .mm-detail dd {
        margin-bottom: 8px;
    }
}

/* Structure map (build.py structure_map): the same drawing for a tree of what contains what. No level colours:
   the root black, every other node white with a black border; the one colour is the marked node, this essay's,
   filled in the second subject's colour (as the span's "This essay") under a 4px black rule. */
.mm--structure .mm-node.lv-1 rect,
.mm--structure .mm-node.lv-2 rect { fill: var(--white); }
.mm--structure .mm-node.is-root rect { fill: var(--black); }
.mm--structure .mm-node.lv-1 .mm-label,
.mm--structure .mm-node.lv-2 .mm-label { fill: var(--black); }
.mm--structure .mm-node.lv-1 .mm-sub,
.mm--structure .mm-node.lv-2 .mm-sub { fill: var(--text-3); }
.mm--structure .mm-node.lv-1.is-on rect { stroke: var(--black); }
.mm--structure .mm-node.lv-1.is-ref rect,
.mm--structure .mm-node.lv-2.is-ref rect { opacity: 1; }
.mm--structure .mm-node.is-ref rect { stroke-dasharray: 5 3; }
.mm--structure .mm-node.is-ref .mm-label { fill: var(--text-3); }
.mm--structure .mm-node.is-mark rect {
    fill: var(--mm-b, var(--black));
    stroke: var(--black);
    stroke-width: 4px;
}
.mm--structure .mm-node.is-mark .mm-label,
.mm--structure .mm-node.is-mark .mm-sub { fill: var(--mm-b-ink, var(--white)); }
.mm--structure .mm-node.is-markref rect { stroke-width: 3px; }
.prose .mm-detail a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mm-tree small.mm-note {
    color: var(--text-2);
}
.mm-tree .is-mark > span,
.mm-tree .is-mark > details > summary {
    display: block;
    background: var(--mm-b, var(--black));
    color: var(--mm-b-ink, var(--white));
    padding: 6px 8px;
    border-left: 4px solid var(--black);
}
.mm-tree .is-mark > span small,
.mm-tree .is-mark > details > summary small { color: inherit; }
.mm-tree .mm-tag {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.prose .mm-tree a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Essay figures (build.py figure, assets/js/figures.js): span, chart, calculator, record strip. Same rules as
   the map: a 4px black rule, a caption that says what is measured, black and white plus the piece's own subject
   colours (--mm-a primary, --mm-b second), square corners, no shadow. */
.prose figure.fg {
    margin: 2em 0 2.4em;
    border-top: 4px solid var(--black);
    padding-top: 14px;
}
.prose .fg figcaption p {
    margin: 0 0 0.5em;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-2);
}
.prose .fg figcaption .fg-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--black);
}
.prose .fg p.fg-note,
.prose .fg p.fg-detail,
.prose .fg p.fg-legend,
.prose .fg p.fg-plabel {
    font-size: 15px;
    line-height: 1.5;
    margin: 0.6em 0;
}
.prose .fg p.fg-plabel {
    margin: 1.2em 0 0.2em;
    font-weight: 700;
}
.prose .fg p.fg-note {
    color: var(--text-2);
}

/* Span: entry metric, the drivers in order, exit metric. */
.fg-span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    margin-top: 12px;
}
/* Four drivers or more: give the drivers the room and narrow the two ends. */
.fg-span:has(.fg-drivers > li:nth-child(4)) {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 4fr) minmax(0, 0.7fr);
}
.fg-span:has(.fg-drivers > li:nth-child(4)) .fg-drivers li {
    padding: 10px;
}
.fg-span:has(.fg-drivers > li:nth-child(4)) .fg-dname {
    font-size: 14px;
}
.prose .fg p.fg-end {
    margin: 0;
    padding: 12px;
    background: var(--black);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    display: flex;
    align-items: center;
}
.prose .fg p.fg-end--to {
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.prose ol.fg-drivers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    border-top: 1px solid var(--black);
    border-bottom: 1px solid var(--black);
}
.prose .fg-drivers li {
    margin: 0;
    padding: 10px 12px;
    border-left: 1px solid var(--rule-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    line-height: 1.4;
}
.prose .fg-drivers li.is-current {
    background: var(--mm-b, var(--black));
    color: var(--mm-b-ink, var(--white));
}
.fg-dname {
    font-weight: 700;
    font-size: 15px;
    overflow-wrap: break-word;
}
.prose a.fg-dname {
    color: inherit;
}
.fg-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fg-does {
    color: inherit;
    opacity: 0.85;
}

/* Chart: one panel per series, sharing the months. */
.fg-chart {
    display: block;
    width: 100%;
    height: auto;
    font-family: var(--font);
}
.fg-bar.fg-a { fill: var(--mm-a, var(--black)); }
.fg-bar.fg-b { fill: var(--mm-b, var(--black)); }
.fg-bar.fg-ink { fill: var(--black); }
.fg-bar:hover { fill: var(--black); }
.fg-line {
    fill: none;
    stroke: var(--black);
    stroke-width: 2px;
}
.fg-dot {
    fill: var(--white);
    stroke: var(--black);
    stroke-width: 2px;
}
.fg-dot:hover { fill: var(--black); }
.fg-axis {
    stroke: var(--black);
    stroke-width: 1px;
}
/* Bar values, reference lines and bands: values in black on the bar or just above the axis for a bar below
   zero; a reference line dashed black, a band a flat Filter Wash field behind the marks; their labels bold at
   the right end with a white halo so they read over a bar. */
.fg-val {
    font-size: 11px;
    font-weight: 700;
    text-anchor: middle;
    fill: var(--black);
    font-variant-numeric: tabular-nums;
    paint-order: stroke;
    stroke: var(--white);
    stroke-width: 3px;
    stroke-linejoin: miter;
}
/* A value moved inside its bar (to clear an overlay point or a reference line) takes the bar's ink. */
.fg-val.is-in { stroke: none; }
.fg-val.is-in-a { fill: var(--mm-a-ink, var(--white)); }
.fg-val.is-in-b { fill: var(--mm-b-ink, var(--white)); }
.fg-val.is-in-ink { fill: var(--white); }
.fg-ref {
    stroke: var(--black);
    stroke-width: 1.5px;
    stroke-dasharray: 6 4;
}
.fg-band {
    fill: #eeeeee;
}
.fg-rlabel {
    font-size: 11px;
    font-weight: 700;
    text-anchor: end;
    fill: var(--black);
    paint-order: stroke;
    stroke: var(--white);
    stroke-width: 3px;
    stroke-linejoin: miter;
}
.fg-rlabel.fg-rkey {
    text-anchor: start;
}
.fg-data tr.fg-tref th,
.fg-data tr.fg-tref td {
    color: var(--text-2);
}
.fg-data tr:not(.fg-tref) + tr.fg-tref th,
.fg-data tr:not(.fg-tref) + tr.fg-tref td {
    border-top: 1px solid var(--black);
}
/* Legend of a bar panel with an overlay line: a square of the bar colour, a short black line with an open dot. */
.fg-kbar {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--black);
}
.fg-kbar.fg-a { background: var(--mm-a, var(--black)); }
.fg-kbar.fg-b { background: var(--mm-b, var(--black)); }
.fg-kline {
    display: inline-block;
    position: relative;
    width: 22px;
    height: 2px;
    background: var(--black);
}
.fg-kline::after {
    content: "";
    position: absolute;
    left: 7px;
    top: -4px;
    width: 6px;
    height: 6px;
    border: 2px solid var(--black);
    background: var(--white);
    border-radius: 50%;
}
.fg-tick {
    font-size: 12px;
    text-anchor: middle;
    fill: var(--text-3);
}
.fg-scale {
    font-size: 12px;
    text-anchor: end;
    fill: var(--text-3);
    font-variant-numeric: tabular-nums;
}
.fg-data summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}
.fg-scroll {
    overflow-x: auto;
}
.fg-data table {
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}
.fg-data th,
.fg-data td {
    text-align: right;
    padding: 4px 10px;
    border-bottom: 1px solid var(--rule-light);
}
.fg-data th[scope="row"],
.fg-data thead th:first-child {
    text-align: left;
}

/* Calculator: sliders over the essay's own example. */
.fg-calc {
    margin-top: 12px;
}
.fg-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 16px;
    margin-bottom: 14px;
    font-size: 15px;
}
.fg-in label {
    font-weight: 700;
}
.fg-in output {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
/* The slider is drawn by the site, not the browser: a 1px Hairline Grey track, the part up to the thumb a 4px
   bar in the primary subject colour, and an 18px square thumb in that colour with a 2px black border (the
   control border of .mm-btn and the strip cells). The filled part is two flat single-colour layers sized by
   --p (0 to 1, written by the build and kept current by figures.js); the thumb's centre travels from 9px to
   the width less 9px, so the fill ends under it. Keyboard focus: the site's 3px black outline. */
.fg-in input[type="range"] {
    grid-column: 1 / -1;
    width: 100%;
    height: 22px;
    margin: 4px 0 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background:
        linear-gradient(var(--mm-a, var(--black)), var(--mm-a, var(--black))) 0 50% / calc(9px + (100% - 18px) * var(--p, 0)) 4px no-repeat,
        linear-gradient(var(--rule-light), var(--rule-light)) 0 50% / 100% 1px no-repeat;
    border-radius: 0;
}
.fg-in input[type="range"]::-webkit-slider-runnable-track {
    height: 22px;
    background: transparent;
    border: 0;
}
.fg-in input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background: var(--mm-a, var(--black));
    border: 2px solid var(--black);
    border-radius: 0;
}
.fg-in input[type="range"]::-moz-range-track {
    height: 22px;
    background: transparent;
    border: 0;
}
.fg-in input[type="range"]::-moz-range-progress {
    background: transparent;
}
.fg-in input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--mm-a, var(--black));
    border: 2px solid var(--black);
    border-radius: 0;
}
.fg-in input[type="range"]:focus {
    outline: none;
}
.fg-in input[type="range"]:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}
.fg-outs {
    margin: 6px 0 14px;
    border-top: 1px solid var(--black);
}
.fg-out {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: 15px;
}
.fg-out dt {
    color: var(--text-2);
}
.fg-out dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.fg-out.is-lead {
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
    padding: 10px 12px;
}
.fg-out.is-lead dt {
    color: inherit;
}
.fg-out.is-lead dd {
    font-size: 21px;
}

/* Record strip: twelve months as twelve cells. */
.fg-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    color: var(--text-2);
}
.fg-li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
}
.fg-key {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--black);
}
.fg-key.is-on { background: var(--mm-b, var(--black)); border-color: var(--mm-b, var(--black)); }
.fg-key.is-off { background: var(--white); border-style: dashed; }
.fg-keyn {
    font-weight: 700;
    font-size: 13px;
    border: 1px solid var(--black);
    padding: 0 5px;
}
.fg-row {
    margin-top: 14px;
}
.prose .fg p.fg-rname {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}
.fg-rname span {
    display: block;
    font-weight: 400;
    color: var(--text-2);
    font-size: 14px;
}
.prose ol.fg-cells {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
}
.prose .fg-cells li {
    margin: 0;
}
.fg-cell {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    border: 2px solid var(--black);
    background: var(--white);
    font: 700 13px/1 var(--font);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    cursor: pointer;
}
.fg-cell.is-on {
    background: var(--mm-b, var(--black));
    border-color: var(--mm-b, var(--black));
    color: var(--mm-b-ink, var(--white));
}
.fg-cell.is-off {
    background: var(--white);
    border-style: dashed;
}
.fg-cell.is-sel {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}
.fg-cell:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}
.fg-m {
    font-size: 11px;
    font-weight: 400;
}
.fg-n {
    font-size: 15px;
    background: var(--white);
    color: var(--black);
    padding: 1px 4px;
}
.prose .fg p.fg-detail {
    min-height: 1.5em;
    color: var(--text-2);
}

.fg-chart.fg-narrow {
    display: none;
}
.fg-narrow .fg-tick,
.fg-narrow .fg-scale {
    font-size: 11px;
}
@media (max-width: 560px) {
    .fg-chart.fg-wide {
        display: none;
    }
    .fg-chart.fg-narrow {
        display: block;
    }
}
@media (max-width: 700px) {
    .fg-span,
    .fg-span:has(.fg-drivers > li:nth-child(4)) {
        grid-template-columns: minmax(0, 1fr);
    }
    .prose ol.fg-drivers {
        grid-auto-flow: row;
    }
    .prose .fg-drivers li {
        border-left: 0;
        border-bottom: 1px solid var(--rule-light);
    }
    .prose ol.fg-cells {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Path: the six anchors in order; select one for its underwriter, evidence and growth. Without script every
   anchor's detail shows in turn. */
.prose ol.fg-path {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    /* One column per step, up to six (the build writes --n); a longer path wraps to a second row. */
    grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr));
    gap: 4px;
}
.prose .fg-path li {
    margin: 0;
}
.fg-anchor {
    width: 100%;
    height: 100%;
    min-height: 120px;
    text-align: left;
    padding: 10px;
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    font: 400 13px/1.35 var(--font);
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.fg-anchor .fg-aname {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
}
/* A long word ("classification", "Approaching") breaks inside its tile instead of running past the border. */
.fg-anchor .fg-aname,
.fg-anchor .fg-awho {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.fg-anchor .fg-aname {
    -webkit-hyphens: auto;
    hyphens: auto;
}
/* Six tiles across leave about 80px for a name: tighten the tile so a word like "Distribution" fits whole. */
@media (min-width: 861px) {
    .fg-path[data-n="6"] .fg-anchor {
        padding: 10px 7px;
    }
    .fg-path[data-n="6"] .fg-anchor .fg-aname {
        font-size: 14px;
    }
}
.fg-anchor .fg-awho {
    color: var(--text-2);
}
.fg-anchor:hover {
    background: #eeeeee;
}
.fg-anchor.is-on {
    background: var(--mm-a, var(--black));
    border-color: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.fg-anchor.is-on .fg-awho {
    color: inherit;
}
.fg-anchor:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}
.fg-adetails {
    margin-top: 12px;
    border-top: 1px solid var(--black);
}
.fg-adetail {
    padding: 12px 0 4px;
    border-bottom: 1px solid var(--rule-light);
}
.fg--path.is-live .fg-adetail {
    border-bottom: 0;
}
/* With script every detail sits in one grid cell and only the selected one is visible, so the panel keeps the
   height of the longest and selecting a tile moves nothing below it (the Never-Moves Rule). */
.fg--path.is-live .fg-adetails {
    display: grid;
}
.fg--path.is-live .fg-adetail {
    grid-area: 1 / 1;
    visibility: hidden;
}
.fg--path.is-live .fg-adetail.is-on {
    visibility: visible;
}
.prose .fg p.fg-aname,
.fg-adetail .fg-aname {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}
.fg-adetail dl {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 6px 16px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}
.fg-adetail dt {
    font-weight: 700;
}
.fg-adetail dd {
    margin: 0;
    color: var(--text-2);
}

/* Finder: the entry checks in order, stopping at the first failure. */
.fg-finder ol {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    counter-reset: chk;
    border-top: 1px solid var(--black);
}
.prose .fg-finder li {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: 16px;
    line-height: 1.45;
}
.fg-finder label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    cursor: pointer;
}
.fg-finder input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--mm-a, var(--black));
}
.fg-finder li.is-ignored span {
    color: var(--text-3);
    text-decoration: line-through;
}
.prose .fg p.fg-result {
    margin: 14px 0 0;
    padding: 12px;
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fg-result span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fg-result strong {
    font-size: 19px;
    line-height: 1.3;
}
.prose .fg p.fg-stopped {
    min-height: 1.5em;
    font-size: 14px;
    color: var(--text-2);
}

/* Series: a "part of" line in the sidebar, previous and next at the foot of the piece, contents on the hub. */
.sr-side {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.5;
}
.sr-side a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Series contents in the sidebar: a fold per group, the reader's group open, the current piece marked. */
.sr-toc {
    border-top: 1px solid var(--black);
}
.sr-fold summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule-light);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
}
.sr-fold summary::-webkit-details-marker {
    display: none;
}
.sr-fold summary::after {
    content: "+";
    font-weight: 700;
    flex: none;
}
.sr-fold[open] summary::after {
    content: "\2212";
}
.sr-fold summary:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sr-fold ul {
    list-style: none;
    margin: 0;
    padding: 4px 0 10px;
    border-bottom: 1px solid var(--rule-light);
}
.sr-fold li {
    padding: 4px 0 4px 10px;
    font-size: 14px;
    line-height: 1.35;
    border-left: 3px solid transparent;
}
.sr-fold li a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sr-fold li.sr-bridge,
.sr-fold li.sr-paper,
.sr-fold li.sr-entry,
.sr-fold li.sr-exit,
.sr-fold li.sr-span {
    font-weight: 600;
}
.sr-fold li.sr-span {
    margin-top: 6px;
}
.sr-fold li.sr-driver,
.sr-fold li.sr-essay {
    padding-left: 24px;
    font-weight: 400;
}
.sr-fold li.is-current {
    border-left-color: var(--black);
    font-weight: 700;
}
.sr-fold li > span {
    color: inherit;
}
.sr-fold li small {
    margin-left: 6px;
    font-size: 12px;
    color: var(--text-3);
}
.sr-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 14px;
    border-top: 4px solid var(--black);
    max-width: 66ch;
}
.sr-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
}
.sr-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sr-nav small {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
}
.sr-nav .sr-next {
    grid-column: 2;
    text-align: right;
}
.prose .sr-contents {
    margin-top: 1.4em;
    border-top: 4px solid var(--black);
}
.prose .sr-contents p.sr-count {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--text-2);
}
.prose .sr-group h3 {
    margin: 1.4em 0 0.4em;
    font-size: 19px;
}
.prose .sr-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--black);
}
.prose .sr-group li {
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: 16px;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.prose .sr-group li a {
    font-weight: 700;
}
.prose .sr-group li span {
    color: var(--text-3);
}
.prose .sr-group li small {
    color: var(--text-3);
    font-size: 13px;
    white-space: nowrap;
}
.prose .sr-group li.sr-bridge,
.prose .sr-group li.sr-paper,
.prose .sr-group li.sr-entry,
.prose .sr-group li.sr-exit {
    font-weight: 700;
}
.prose .sr-group li.sr-span {
    padding-left: 0;
}
.prose .sr-group li.sr-driver,
.prose .sr-group li.sr-essay {
    padding-left: 18px;
}
@media (max-width: 860px) {
    .prose ol.fg-path {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .prose ol.fg-path {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fg-adetail dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
    .fg-adetail dd {
        margin-bottom: 8px;
    }
    .sr-nav {
        grid-template-columns: 1fr;
    }
    .sr-nav .sr-next {
        grid-column: 1;
        text-align: left;
    }
}

/* Tally: items sorted into two verdicts, each with its reason, and totals. In guess mode the verdicts start
   hidden and are revealed one by one; the totals appear once every verdict is shown. */
.prose .fg-tally ul.fg-items {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    border-top: 1px solid var(--black);
}
.prose .fg-items li {
    margin: 0;
    border-bottom: 1px solid var(--rule-light);
}
.fg-ibtn {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 11rem;
    gap: 12px;
    align-items: baseline;
    padding: 10px 0;
    background: none;
    border: 0;
    text-align: left;
    font: 400 16px/1.4 var(--font);
    color: var(--black);
    cursor: default;
}
.fg-iamt {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.fg-iverdict {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    justify-self: end;
    /* Always the last column, so the label keeps one width whether or not an item has an amount, and
       revealing a verdict in guess mode never re-wraps the label. */
    grid-column: -2;
    grid-row: 1;
}
.fg-ilabel {
    grid-column: 1;
}
.fg-item.is-yes .fg-iverdict {
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.fg-item.is-no .fg-iverdict {
    border: 2px dashed var(--black);
}
.prose .fg-items p.fg-iwhy {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-2);
}
.fg-tally.is-live .fg-ibtn {
    cursor: pointer;
}
/* Guess mode: until an item is revealed its verdict and reason are held in place but not shown, and the "Select to
   see" hint sits in the verdict's cell (the same grid cell, so the row is as tall as the taller of the two).
   Revealing swaps the hint for the verdict and shows the reason, and nothing on the page moves (the Never-Moves
   Rule); the totals below are likewise held in place until every verdict is shown. */
.fg-ihint {
    display: none;
    /* Inset from the right edge so the last glyph's ink never touches (or is clipped at) the figure's edge. */
    padding: 3px 4px 3px 0;
    font-size: 13px;
    color: var(--text-3);
    white-space: nowrap;
    justify-self: end;
    align-self: center;
}
.fg-tally.is-live .fg-ihint {
    display: block;
    grid-column: -2;
    grid-row: 1;
    visibility: hidden;
}
.fg-tally.is-live .fg-item:not(.is-shown) .fg-iverdict,
.fg-tally.is-live .fg-item:not(.is-shown) .fg-iwhy,
.fg-tally.is-live .fg-outs.is-held {
    visibility: hidden;
}
.fg-tally.is-live .fg-item:not(.is-shown) .fg-ihint {
    visibility: visible;
}
.fg-ibtn:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}
.prose .fg p.fg-guess {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--text-2);
}
@media (max-width: 560px) {
    .fg-ibtn {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .fg-iverdict {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: start;
    }
    /* On a phone the verdict's slot is the line under the label, so the hint sits there, in the same cell. */
    .fg-iverdict {
        grid-row: 2;
    }
    .fg-tally.is-live .fg-ihint {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }
}
.fg-bar.is-neg {
    fill: var(--white);
    stroke: var(--black);
    stroke-width: 2px;
    stroke-dasharray: 4 3;
}

/* Trace: a cycle's record as a ruled timeline, one row per entry: the phase in words, who acted (actor in the
   primary colour, target outlined, the cycle in Filter Wash), the note, and any resource spent (dashed tag),
   returned (filled) or held (outlined). A sub-cycle sits indented under its entry behind a left rule; with
   script it starts closed behind a toggle that names it and counts its entries. */
.prose .fg p.fg-clabel {
    margin: 14px 0 0;
    font-size: 15px;
    font-weight: 700;
}
.prose .fg ol.fg-entries {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    border-top: 1px solid var(--black);
}
.prose .fg-entries li.fg-entry {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--rule-light);
}
.prose .fg-entries li.fg-entry:last-child {
    border-bottom: 0;
}
.prose .fg-cycle > ol.fg-entries {
    border-bottom: 1px solid var(--black);
}
.fg-erow {
    display: grid;
    grid-template-columns: 10rem 6.5rem minmax(0, 1fr);
    gap: 4px 14px;
    align-items: baseline;
    padding: 9px 0;
    font-size: 15px;
    line-height: 1.45;
}
.fg-phase {
    font-weight: 700;
}
.fg-who {
    justify-self: start;
    padding: 1px 6px;
    border: 2px solid var(--black);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: nowrap;
}
.fg-who.is-actor {
    background: var(--mm-a, var(--black));
    border-color: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.fg-who.is-cycle {
    background: #eeeeee;
    border-color: #eeeeee;
}
.fg-enote {
    overflow-wrap: break-word;
}
.fg-ress {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.fg-res {
    padding: 1px 7px;
    border: 2px solid var(--black);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}
.fg-res.is-spent {
    border-style: dashed;
}
.fg-res.is-returned {
    background: var(--black);
    color: var(--white);
}
.fg-sub {
    margin: 0 0 12px 1.5rem;
    padding-left: 14px;
    border-left: 2px solid var(--black);
}
.prose .fg p.fg-sublabel {
    margin: 0;
    padding-top: 2px;
    font-size: 14px;
    font-weight: 700;
}
.fg-subbtn {
    display: inline-flex;
    gap: 12px;
    max-width: 100%;
    padding: 6px 10px;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    font: 700 14px/1.3 var(--font);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.fg-subbtn::after {
    content: "+";
    flex: none;
}
.fg-subbtn[aria-expanded="true"]::after {
    content: "\2212";
}
.fg-subbtn:hover {
    background: var(--black);
    color: var(--white);
}
.fg-subbtn:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}
@media (max-width: 560px) {
    .fg-erow {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .fg-enote {
        grid-column: 1 / -1;
    }
    .fg-sub {
        margin-left: 2px;
        padding-left: 10px;
    }
}

/* Maneuver Replay (build.py replay_page, assets/js/replay.js): a selector of the series' maneuvers, a sticky
   bar of square step buttons, the record in the trace figure's language growing one entry at a time (the newest
   row on Filter Wash), and the panel of where the maneuver stands. The only colour is the primary subject's, on
   the chosen maneuver and the actor tags. */
.rp {
    padding-block: 40px 24px;
}
.rp-pick ol {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.rp-pick li {
    display: flex;
    flex-direction: column;
}
.rp-choice {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--black);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: break-word;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.rp-choice:hover {
    background: #eeeeee;
}
.rp-choice.is-on {
    background: var(--mm-a, var(--black));
    border-color: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.rp-choice:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}
.rp-essay {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-3);
}
.rp-essay a {
    font-weight: 700;
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.rp-essay small {
    font-size: 12px;
}
.rp-bar {
    position: sticky;
    top: var(--band-h);
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 0;
    background: var(--white);
    border-bottom: 1px solid var(--black);
}
.rp-bar[hidden] {
    display: none;
}
.rp-bar .mm-btn:disabled {
    background: var(--white);
    color: var(--text-3);
    border-color: var(--rule-light);
    cursor: default;
}
.rp-count {
    margin: 0 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.rp-keys {
    margin: 0 0 0 auto;
    font-size: 13px;
    color: var(--text-3);
}
.rp-brief {
    display: none;
}
.rp-stage {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 24px 32px;
    align-items: start;
    margin-top: 20px;
}
.prose.rp-record {
    max-width: none;
}
.prose .rp-m + .rp-m {
    margin-top: 48px;
}
.rp.is-live .prose .rp-m + .rp-m {
    margin-top: 0;
}
.prose .rp-m h2.rp-mtitle {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.prose .rp-m p.rp-cap {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-2);
}
.prose .rp-m p.rp-empty {
    margin: 14px 0 0;
    padding: 12px 0;
    border-top: 1px solid var(--black);
    font-size: 15px;
    color: var(--text-3);
}
.rp-trace .fg-erow {
    padding-inline: 6px;
}
.rp-trace li.is-now > .fg-erow {
    background: #eeeeee;
}
.rp-trace li.fg-entry {
    scroll-margin-top: calc(var(--band-h) + 80px);
    scroll-margin-bottom: 24px;
}
.rp-panel {
    position: sticky;
    top: calc(var(--band-h) + 80px);
    border-top: 4px solid var(--black);
    padding-top: 12px;
}
.rp-panel h2 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
}
.rp-state {
    margin: 0;
}
.rp-state dt {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.rp-state dd {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: break-word;
}
.rp-state ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule-light);
}
.rp-state li {
    padding: 4px 0;
    border-bottom: 1px solid var(--rule-light);
}
.rp-state li strong,
.rp-state dd small {
    display: block;
}
.rp-state li span {
    font-size: 14px;
    color: var(--text-2);
}
.rp-state dd small {
    font-size: 13px;
    color: var(--text-3);
}
.rp-none {
    color: var(--text-3);
}
@media (max-width: 860px) {
    .rp-pick ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rp-stage {
        grid-template-columns: minmax(0, 1fr);
    }
    .rp-panel {
        position: static;
        order: -1;
    }
    .rp-bar p.rp-brief {
        display: block;
        flex-basis: 100%;
        margin: 0;
        font-size: 14px;
        line-height: 1.4;
        color: var(--text-2);
    }
}
@media (max-width: 560px) {
    .rp-pick ol {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .rp-keys {
        display: none;
    }
    .rp-bar .mm-btn {
        padding: 8px 10px;
    }
}

/* Cycle (build.py cycle_html): the whole cycle as a flow across both parties. The drawing shows only when the
   figure is at least 760px wide, at its own size or larger, so its text never shrinks; narrower, the same flow
   is an ordered outline. Black and white: the actor's band white with a 4px edge in the primary colour, the
   target's band in Filter Wash, the cycle's own outcome filled black; solid arrows for flow, dotted lines for
   naming. Addresses are notation, set in the system monospace. */
.prose figure.fg--cycle {
    container-type: inline-size;
}
/* On a wide screen the drawing takes its own 780px, reaching past the prose measure into the empty grid column
   before the sidebar, so it is never drawn smaller than its type. */
@media (min-width: 1260px) {
    .prose figure.fg--cycle {
        width: 780px;
    }
}
.fg-cycwrap {
    display: none;
    margin-top: 12px;
}
.fg-cyc {
    display: block;
    width: 100%;
    height: auto;
    font-family: var(--font);
}
.fg-cyc-a { fill: var(--white); }
.fg-cyc-edge { fill: var(--mm-a, var(--black)); }
.fg-cyc-t { fill: #eeeeee; }
.fg-cyc-band {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    fill: var(--text-3);
}
.fg-cyc-box {
    fill: var(--white);
    stroke: var(--black);
    stroke-width: 2px;
}
/* Fill by who performs the constituent, the trace's code in tints of the piece's primary subject color: the
   actor a 22% tint, the target an 8% tint under a border in the subject color, the cycle's own Hairline Grey,
   a name only white. Text stays black on every fill. */
.fg-cyc-box.is-actor { fill: #f3cad1; fill: color-mix(in srgb, var(--mm-a, #000000) 22%, #ffffff); }
.fg-cyc-box.is-target { fill: #fcebee; fill: color-mix(in srgb, var(--mm-a, #000000) 8%, #ffffff); stroke: var(--mm-a, var(--black)); }
.fg-cyc-box.is-cycle { fill: var(--rule-light); }
.fg-cyc-box.is-name { fill: var(--white); }
.fg-cyc-sw {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: -1px;
    border: 2px solid var(--black);
    background: var(--white);
}
.fg-cyc-sw.is-actor { background: #f3cad1; background: color-mix(in srgb, var(--mm-a, #000000) 22%, #ffffff); }
.fg-cyc-sw.is-target { background: #fcebee; background: color-mix(in srgb, var(--mm-a, #000000) 8%, #ffffff); border-color: var(--mm-a, var(--black)); }
.fg-cyc-sw.is-cycle { background: var(--rule-light); }
.fg-cyc-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 8px;
}
.prose .fg .fg-cyc-tools p.fg-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    font-size: 14px;
}
/* Addresses off (figures.js, the default with script): hidden in place in the drawing, the names and pairs
   moved down to sit in the middle of their boxes, nothing else moves; removed from the outline. */
.fg.is-noaddr .fg-cyc-addr { visibility: hidden; }
.fg.is-noaddr .fg-cyc-np { transform: translateY(7px); }
/* Hidden, not removed, so the outline keeps its height whichever way the toggle is set (the Never-Moves Rule). */
.fg.is-noaddr .fg-caddr,
.fg.is-noaddr .fg-ccells { visibility: hidden; }
.fg-cyc-grid {
    stroke: var(--black);
    stroke-width: 1px;
}
.fg-cyc-name {
    font-size: 12px;
    font-weight: 700;
}
.fg-cyc-pair {
    font-size: 12px;
}
.fg-cyc-addr,
.fg-caddr {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
}
.fg-cyc-label {
    font-size: 11px;
    fill: var(--text-2);
}
.fg-cyc-flow,
.fg-cyc-names {
    fill: none;
    stroke: var(--black);
    stroke-width: 1.5px;
}
.fg-cyc-names {
    stroke-dasharray: 2 3;
}
.fg-cyc marker path { fill: var(--black); }
.fg-cyc a:hover .fg-cyc-box,
.fg-cyc a:focus-visible .fg-cyc-box {
    stroke-width: 4px;
}
.fg-cyc a:focus-visible {
    outline: none;
}
.prose .fg-cycout p.fg-cband {
    margin: 16px 0 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--black);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.prose .fg-cycout ol.fg-clist {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.prose .fg-clist > li {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: 15px;
    line-height: 1.45;
}
.fg-cname {
    font-weight: 700;
}
.prose .fg-cname a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.fg-cpair {
    margin-left: 4px;
}
.fg-caddr {
    margin-left: 4px;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.fg-cwho {
    display: block;
    font-size: 14px;
    color: var(--text-2);
}
.prose .fg-clist ul {
    list-style: none;
    margin: 4px 0 0;
    padding: 0 0 0 14px;
    border-left: 1px solid var(--rule-light);
}
.prose .fg-clist ul li {
    margin: 2px 0;
    font-size: 14px;
}
.prose .fg-clist ul.fg-cto li {
    color: var(--text-2);
}
@container (min-width: 760px) {
    .fg-cycwrap { display: block; }
    .fg-cycout { display: none; }
}
.prose .fg-cyc a {
    text-decoration: none;
}
.fg-cyc a:hover .fg-cyc-name,
.fg-cyc a:focus-visible .fg-cyc-name {
    text-decoration: underline;
}

/* Home as a front page: the format sections close 72px above the footer. */
.front .works:last-child {
    padding-bottom: 24px;
}

/* Catalog (build.py catalog_page, assets/js/catalog.js): a long reference list on the 12-column grid. Search and
   square filters above a 4px black rule (revealed by script), family heads over a 12px black rule, cluster heads,
   then one compact row per entry between hairlines, linking to its page. The only colours are the title band's subject color and the lever
   mark's green and red (see the lever mark below). */
.cat {
    padding-block: 40px 24px;
}
.cat [hidden] {
    display: none !important;
}
.prose.cat-intro p {
    margin-bottom: 28px;
}
.cat-controls {
    display: grid;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 4px solid var(--black);
}
.cat-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px 48px;
}
.cat-group {
    display: grid;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}
.cat-glabel {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}
.cat-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.cat-slabel {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
}
/* "How it works" laid out as the lever mark is: columns for the preferred position and the adverse alternative,
   rows for benefits and costs, one toggle per cell. */
.cat-lvf {
    display: grid;
    /* fixed switch columns, so nothing in the group can resize them when a switch changes */
    grid-template-columns: auto 140px 140px;
    align-items: center;
    gap: 8px;
}
.cat-lvf .cat-slabel:nth-child(-n + 3) {
    text-align: center;
}
/* Each cell's three-way switch: Any, the cell's sample square (changed in its direction), a white square
   (unchanged); the chosen segment fills black. */
.cat-seg {
    display: inline-flex;
    border: 2px solid var(--black);
}
.cat-seg button {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: var(--white);
    color: var(--black);
    font: 700 13px/1 var(--font);
    cursor: pointer;
}
.cat-seg button + button {
    border-left: 2px solid var(--black);
}
.cat-seg button:hover:not([aria-pressed="true"]) {
    background: #eee;
}
.cat-seg button[aria-pressed="true"] {
    background: var(--black);
    color: var(--white);
}
.cat-seg .cat-lv1 {
    margin: 0;
}
.cat-seg i {
    background: var(--white);
}
.cat-lvsum {
    /* takes the grid's width but never sets it, and keeps the height of its longest wording, so changing a switch
       moves nothing on the page */
    width: 0;
    min-width: 100%;
    min-height: calc(var(--lvsum-lines, 4) * 1.4em);
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-3);
}
.cat-select select {
    max-width: 100%;
    font: 700 14px/1.3 var(--font);
    padding: 8px 36px 8px 10px;
    border: 2px solid var(--black);
    border-radius: 0;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px;
    color: var(--black);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.15s var(--ease);
}
.cat-select select:hover {
    background-color: #eeeeee;
}
/* The tools kind's selects hold long options (a step's whole title, a full name): they never set the controls' width,
   and on a phone they take the full width, their text cut inside the box. */
.cat-select--fill {
    grid-template-columns: minmax(0, 1fr);
}
.cat-select--fill select {
    width: 100%;
    min-width: 0;
    text-overflow: ellipsis;
}
@media (max-width: 560px) {
    .cat-select--fill {
        width: 100%;
    }
}
.cat-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}
.cat-count {
    /* as wide as "783 of 783 tactics", so the Clear filters button beside it never slides */
    min-width: 19ch;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.cat-clear.is-off {
    visibility: hidden;
}
/* the count itself, right-aligned in a slot as wide as the total, so "9 of 783" never pulls the words after it */
.cat-count [data-cat-count] {
    display: inline-block;
    min-width: var(--cat-cw, 3ch);
    text-align: right;
}
/* The tools kind's row: the form tags (the visibility tag's style), then the originators' surnames in Slate. */
.cat-t .cat-or {
    flex-basis: 100%;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-3);
}
.cat-key {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-3);
}
.cat-key a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.cat-key a:hover {
    color: var(--black);
    text-decoration-thickness: 2px;
}
.cat-empty {
    /* where the first family head would start, so the line takes the heads' place without anything moving */
    margin: 56px 0 0;
    padding: 0 0 24px;
    font-size: 18px;
}
.cat-fam {
    margin-top: 56px;
}
.cat-fhead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    border-top: 12px solid var(--black);
    padding-top: 14px;
}
.cat-fhead h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
}
.cat-fhead span {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.cat-chead {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 4px;
    align-items: baseline;
    padding: 32px 12px 12px;
    border-bottom: 1px solid var(--black);
}
.cat-chead h3 {
    grid-column: 1 / 5;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.cat-chead p {
    grid-column: 5 / 10;
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-2);
}
.cat-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.cat-fhead + .cat-list {
    margin-top: 16px;
    border-top: 1px solid var(--black);
}
.cat-t {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 6px;
    align-items: start;
    padding: 14px 12px 12px;
    border-bottom: 1px solid var(--rule-light);
}
.cat-t:target {
    background: #eeeeee;
}
.cat-t > h4 {
    grid-column: 1 / 5;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
}
.cat-t > h4 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.cat-t > p {
    grid-column: 5 / 10;
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-2);
}
.cat-t > div {
    grid-column: 10 / 13;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding-top: 2px;
}
/* The lever mark: a grid, the preferred position's column and the adverse alternative's, rows for benefits and costs. The site's one semantic color pair, by Jawn's decision: green with an up arrow is an increase, red with
   a down arrow a decrease (the arrow carries it for readers who cannot tell the two apart), white is unchanged. */
.cat,
.cat-page {
    --lv-up: #1E7B34;
    --lv-down: #B3261E;
}
.cat-lv {
    display: inline-grid;
    grid-template-columns: repeat(2, 12px);
    flex: none;
    gap: 3px;
}
.cat-lv i,
.cat-lv b,
.cat-lvt i,
.cat-lvt b {
    display: block;
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    border: 1px solid var(--rule-light);
}
.cat-lv b,
.cat-lvt b {
    position: relative;
    border: 0;
    color: var(--white);
}
.cat-lv b.u,
.cat-lvt b.u {
    background: var(--lv-up);
}
.cat-lv b.d,
.cat-lvt b.d {
    background: var(--lv-down);
}
.cat-lv b::before,
.cat-lvt b::before {
    position: absolute;
    inset: 0;
    font-size: 7px;
    line-height: 12px;
    text-align: center;
}
.cat-lv b.u::before,
.cat-lvt b.u::before {
    content: "\25B2";
}
.cat-lv b.d::before,
.cat-lvt b.d::before {
    content: "\25BC";
}
.cat-lv1 {
    display: inline-grid;
    grid-template-columns: 12px;
    vertical-align: -1px;
    margin: 0 2px 0 6px;
}
.cat-lvt {
    border-collapse: collapse;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.2;
}
.cat-lvt th {
    padding: 3px 10px 3px 0;
    font-weight: 600;
    text-align: left;
    color: var(--text-3);
}
.cat-lvt thead th {
    padding: 0 6px 4px;
    text-align: center;
}
.cat-lvt td {
    padding: 3px 6px;
}
.cat-lvt td b,
.cat-lvt td i {
    width: 16px;
    height: 16px;
    margin: 0 auto;
}
.cat-lvt b::before {
    font-size: 9px;
    line-height: 16px;
}
.cat-vis {
    padding: 3px 6px 2px;
    border: 1px solid var(--black);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.cat-use,
.cat-borderline,
.cat-defend {
    /* one width for both, so the lever marks beside them line up down the list */
    min-width: 92px;
    text-align: center;
    padding: 3px 6px 2px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.cat-use {
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
}
.cat-borderline {
    background: #eeeeee;
    border: 1px solid #eeeeee;
}
.cat-defend {
    border: 1px dashed var(--black);
}
/* A tactic's own page (build.py tactic_page): the piece-page layout, the summary as its lead. */
.prose p.cat-lead {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
}
/* A tool's page (build.py tool_page): the credit line under the band, in Slate, its work title linked when it has a
   public page; the step and source lists plain. */
.prose p.cat-credit {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-3);
}
.prose .cat-soon {
    font-size: 14px;
    color: var(--text-3);
}
.piece-side .cat-side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.prose p.cat-note {
    margin-top: -0.4em;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-3);
}
.prose .cat-runin {
    display: table;
    margin-bottom: 4px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.prose .cat-runin:hover {
    text-decoration-thickness: 2px;
}
/* two people who wrote the work together lead one paragraph: one run-in line, each name its own link */
.prose .cat-runin--pair { text-decoration: none; }
.prose .cat-runin--pair a:hover { text-decoration-thickness: 2px; }
.cat-side-th {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.4;
}
.cat-side-th li + li {
    margin-top: 4px;
}
.cat-side-th a,
.cat-hub-link a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cat-side-th a:hover,
.cat-hub-link a:hover {
    text-decoration-thickness: 2px;
}
.cat-hub-link {
    margin: 16px 0 0;
    font-weight: 700;
}
.cat-page .prose h2:first-of-type {
    margin-top: 1.4em;
}
.cat-back {
    margin: 32px 0 0;
    font-weight: 700;
}
.cat-back a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cat-back a:hover {
    text-decoration-thickness: 2px;
}
.piece-side .cat-side-tier {
    margin: 0 0 24px;
    font-size: 17px;
    font-weight: 700;
}
.piece-side .cat-side-how {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.4;
}
.cat-side-how p {
    margin: 0;
}
.piece-side .cat-side-p {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.4;
}
.piece-side .cat-side-group {
    margin-bottom: 8px;
    font-weight: 700;
}
.cat-sibs {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--black);
}
.cat-sibs li {
    padding: 7px 0 7px 10px;
    border-bottom: 1px solid var(--rule-light);
    border-left: 3px solid transparent;
    font-size: 15px;
    line-height: 1.3;
}
.cat-sibs li.is-current {
    border-left-color: var(--black);
    font-weight: 700;
}
.cat-sibs a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 860px) {
    .cat-chead,
    .cat-t {
        grid-template-columns: minmax(0, 1fr);
    }
    .cat-chead > h3,
    .cat-chead > p,
    .cat-t > h4,
    .cat-t > p,
    .cat-t > div {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .cat-t > div {
        padding-top: 4px;
    }
}
@media (max-width: 560px) {
    .cat-fam,
    .cat-empty {
        margin-top: 44px;
    }
    .cat-chead,
    .cat-t {
        padding-inline: 0;
    }
    .cat-t:target {
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
    }
    .cat-groups {
        gap: 16px;
    }
    .cat-controls .filters,
    .cat-sub {
        gap: 6px;
    }
    .cat-controls .filter {
        padding: 6px 8px;
        font-size: 13px;
    }
    .cat-slabel {
        flex-basis: 100%;
    }
    .cat-lvf {
        gap: 6px;
    }
    .cat-key {
        align-items: flex-start;
    }
    .cat-key .cat-lv {
        margin-top: 2px;
    }
}

/* Thinkers (build.py thinkers_page): one section per thinker on the 12-column grid under a 4px black rule, the
   name and its dates and field in columns 1 to 4, works, ideas, what the work explains and the tactics that draw
   on it in 5 to 12 at the prose measure. Black and white only. */
.thk-page {
    padding-block: 40px 24px;
}
.thk-page > .prose p {
    margin-bottom: 20px;
}
.thk-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
}
.thk-jump a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.thk-jump a:hover {
    text-decoration-thickness: 2px;
}
.thk {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    padding-top: 14px;
    margin-top: 40px;
    border-top: 4px solid var(--black);
}
.thk-head {
    grid-column: 1 / 5;
}
.thk-head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.thk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 700;
}
.thk-body {
    grid-column: 5 / 13;
    max-width: 66ch;
}
.thk-body h3 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
}
.thk-body h3 ~ h3 {
    margin-top: 18px;
}
.thk-body p,
.thk-works {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.55;
}
.thk-works {
    padding: 0;
    list-style: none;
}
.thk-caveat {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: var(--text-3);
}
.thk-more {
    margin-top: 16px;
}
.thk-more summary {
    display: inline-flex;
    gap: 12px;
    max-width: 100%;
    padding: 6px 10px;
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    font: 700 14px/1.3 var(--font);
    cursor: pointer;
    list-style: none;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.thk-more summary::-webkit-details-marker {
    display: none;
}
.thk-more summary::after {
    content: "+";
    flex: none;
}
.thk-more[open] summary::after {
    content: "\2212";
}
.thk-more summary:hover {
    background: var(--black);
    color: var(--white);
}
.thk-tactics {
    columns: 2 16em;
    column-gap: var(--col-gap);
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.35;
}
.thk-tactics li {
    break-inside: avoid;
    padding: 4px 0;
    border-bottom: 1px solid var(--rule-light);
}
.thk-tactics a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 860px) {
    .thk {
        grid-template-columns: minmax(0, 1fr);
    }
    .thk-head,
    .thk-body {
        grid-column: 1 / -1;
    }
    .thk-head {
        margin-bottom: 16px;
    }
}

/* ADAPT figures (build.py: loop, funnel, matrix, utilities, odds, diamond; assets/js/figures-adapt.js). Same rules
   as every essay figure: black and white, the piece's own subject colours and their tints, Filter Wash and Hairline
   Grey, square corners, no shadow. The Never-Moves Rule: a panel whose content changes lays every variant in one
   grid cell (.fg-stk) and shows only the current one, so it keeps the height of its longest; numbers sit in fixed
   slots (.fg-num); buttons keep one width whatever they say; drawings change only inside their SVG. */
.fg-stk {
    display: grid;
}
.fg-stk > .fg-v {
    grid-area: 1 / 1;
    visibility: hidden;
}
.fg-stk > .fg-v.is-on {
    visibility: visible;
}
/* fit-panels.js: a panel with no control below it in its figure takes only its current variant's height */
.fg-stk.fg-stk--fit > .fg-v:not(.is-on),
.fg--path.is-live .fg-adetails.fg-stk--fit > .fg-adetail:not(.is-on) {
    display: none;
}
/* Without script a listing panel reads whole: every variant in order, the placeholder dropped. */
.fg:not(.is-live) .fg-stk--list {
    display: block;
}
.fg:not(.is-live) .fg-stk--list > .fg-v {
    display: block;
    visibility: visible;
    margin-bottom: 0.5em;
}
.fg:not(.is-live) .fg-stk--list > .fg-v[data-v="none"] {
    display: none;
}
.fg-num {
    display: inline-block;
    width: 2.6ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.fg-num--n {
    width: 2ch;
    text-align: center;
}
.fg-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 12px 0;
}
.fg-seg {
    display: inline-flex;
    flex-wrap: wrap;
    padding-left: 2px;
}
.fg-segb {
    font: 700 14px/1.15 var(--font);
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    margin: 0 0 -2px -2px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.fg-segb:hover {
    background: var(--filter-hover, #eeeeee);
}
.fg-segb[aria-pressed="true"] {
    background: var(--black);
    color: var(--white);
}
.fg-segb:focus-visible,
.fg-stb:focus-visible,
.fg-ut-row:focus-visible,
.fg-fn-pick:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
    position: relative;
    z-index: 1;
}
.mm-btn.fg-play,
.mm-btn.fg-reset {
    width: 6.5em;
    text-align: center;
}
.prose .fg p.fg-lp-panel,
.prose .fg p.fg-fn-panel,
.prose .fg p.fg-dm-panel {
    margin: 12px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--black);
    font-size: 15px;
    line-height: 1.5;
}
.fg-lp-ph,
.fg-fn-ph,
.fg-dm-ph {
    color: var(--text-3);
}

/* Loop: the master diagram (800px, shown when the figure has that room: 1300px screens and wider, which leave it
   clear of the sidebar) or its outline; the beats view. */
.prose figure.fg--loop {
    container-type: inline-size;
}
@media (min-width: 1300px) {
    .prose figure.fg--loop:has(.fg-lp--full) {
        width: 800px;
    }
}
.fg-lp-wrap {
    display: none;
}
@container (min-width: 780px) {
    .fg-lp-wrap { display: block; }
    .fg-lp-out { display: none; }
}
.fg-lp-svg,
.fg-lp-bsvg {
    display: block;
    width: 100%;
    height: auto;
    font-family: var(--font);
}
.fg-lp-bsvg.fg-wide { display: none; max-width: 560px; }
.fg-lp-bsvg.fg-narrow { max-width: 358px; }
@container (min-width: 560px) {
    .fg-lp-bsvg.fg-wide { display: block; }
    .fg-lp-bsvg.fg-narrow { display: none; }
}
.fg-lp-tg {
    display: inline-block;
    width: 1.3em;
    margin-right: 6px;
    text-align: center;
    background: var(--black);
    color: var(--white);
}
.fg-segb[aria-pressed="true"] .fg-lp-tg,
.fg-lp-tagb.is-lit .fg-lp-tg {
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.fg-lp-tagb.is-lit {
    background: #eeeeee;
}
.fg-lp-zp { fill: var(--white); }
.fg-lp-edge { fill: var(--mm-a, var(--black)); }
.fg-lp-zc { fill: #eeeeee; }
.fg-lp-zone {
    font-size: 12px;
    font-weight: 700;
    fill: var(--black);
}
.fg-lp-rev {
    font-weight: 800;
    text-decoration: underline;
}
.fg-lp-btag rect,
.fg-lp-btg { fill: var(--black); }
.fg-lp-bt {
    font-size: 13px;
    font-weight: 800;
    fill: var(--white);
}
.fg-lp-bn {
    font-size: 13px;
    font-weight: 700;
    fill: var(--black);
}
.fg-lp-btag.is-lit rect,
.fg-lp-n.is-hi .fg-lp-btg { fill: var(--mm-a, var(--black)); }
.fg-lp-btag.is-lit .fg-lp-bt,
.fg-lp-n.is-hi .fg-lp-bt { fill: var(--mm-a-ink, var(--white)); }
.fg-lp-box {
    fill: var(--white);
    stroke: var(--black);
    stroke-width: 2;
    transition: fill 0.2s var(--ease);
}
.fg-lp-n.is-gate .fg-lp-box { fill: var(--rule-light); }
.fg-lp-n.is-sel .fg-lp-box { fill: #f3cad1; fill: color-mix(in srgb, var(--mm-a, #000000) 22%, #ffffff); }
.fg-lp-n.is-gap .fg-lp-box { fill: #fcebee; fill: color-mix(in srgb, var(--mm-a, #000000) 8%, #ffffff); }
.fg-lp-n.is-hi .fg-lp-box {
    stroke-width: 3;
    fill: #f3cad1;
    fill: color-mix(in srgb, var(--mm-a, #000000) 22%, #ffffff);
}
.fg-lp-nm {
    font-size: 12px;
    font-weight: 700;
    fill: var(--black);
}
.fg-lp-gl {
    font-size: 11px;
    fill: var(--text-2);
}
.fg-lp-bsvg .fg-lp-nm { font-size: 14px; }
.fg-lp-bsvg .fg-lp-gl { font-size: 12px; }
.fg-lp-grid {
    stroke: var(--rule-light);
    stroke-width: 1;
}
.fg-lp-mh,
.fg-lp-mr {
    font-size: 11px;
    font-weight: 700;
    fill: var(--black);
}
.fg-lp-mc {
    font-size: 11px;
    fill: var(--text-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.fg-lp-mt {
    font-size: 11px;
    font-weight: 600;
    fill: var(--text-2);
}
.fg-lp-e {
    fill: none;
    stroke: var(--black);
    stroke-width: 1.5;
}
.fg-lp-e.is-names {
    stroke-dasharray: 2 3;
}
.fg-lp-e.is-cross {
    stroke-width: 2.5;
}
.fg-lp-svg marker path,
.fg-lp-bsvg marker path { fill: var(--black); }
.fg-lp-svg marker path.fg-lp-arrl,
.fg-lp-bsvg marker path.fg-lp-arrl { fill: var(--mm-a, var(--black)); }
.fg-lp-el {
    font-size: 11px;
    fill: var(--text-2);
}
.fg-lp-lp {
    fill: none;
    stroke: var(--mm-a, var(--black));
    stroke-width: 2;
    stroke-dasharray: 6 4;
}
.fg-lp-ll,
.fg-lp-cross {
    font-size: 11px;
    font-weight: 700;
    fill: var(--black);
}
.fg-lp-bsvg .fg-lp-ll,
.fg-lp-bsvg .fg-lp-cross { font-size: 12px; }
.fg-lp-mpath {
    fill: none;
    stroke: #ffffff;
    stroke-width: 26;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 0;
}
.fg-lp-marker {
    fill: var(--black);
    stroke: var(--white);
    stroke-width: 2;
    opacity: 0;
}
.fg.is-moving .fg-lp-marker { opacity: 1; }
.fg-lp.is-terse .t-dec,
.fg-lp:not(.is-terse) .t-terse { visibility: hidden; }
.fg-lp.is-terse .fg-lp-og { visibility: hidden; }
.fg-lp [data-beat].is-dim { opacity: 0.3; }
.fg-lp [data-beat] { transition: opacity 0.2s var(--ease); }
/* The outline (narrow figures, and every figure without room for the drawing). */
.prose .fg-lp-out p.fg-cband {
    margin: 14px 0 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.prose .fg-lp-out ol.fg-lp-ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--black);
}
.prose .fg-lp-out ol.fg-lp-ol > li {
    margin: 0;
    padding: 8px 0 6px;
    border-bottom: 1px solid var(--rule-light);
}
.prose .fg-lp-out p.fg-lp-obh {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}
.fg-lp-otag {
    display: inline-block;
    width: 1.4em;
    margin-right: 8px;
    text-align: center;
    background: var(--black);
    color: var(--white);
}
.prose .fg-lp-out ol ol {
    list-style: none;
    margin: 0;
    padding: 0 0 0 10px;
    border-left: 4px solid var(--rule-light);
}
.prose .fg-lp-out ol ol > li,
.prose .fg-lp-out ul li {
    margin: 2px 0;
    padding: 2px 6px;
    font-size: 14px;
    line-height: 1.45;
}
.prose .fg-lp-out ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
}
.prose .fg-lp-out ul.fg-cto li {
    color: var(--text-2);
}
.fg-lp-og {
    color: var(--text-2);
}
.prose .fg-lp-out li.is-at {
    background: #eeeeee;
}

/* Funnel: six trapezoid bands narrowing, each row its definition and the example's value. */
.prose ol.fg-fn-rows {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    border-top: 1px solid var(--black);
}
.prose .fg-fn-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0 16px;
    margin: 0;
    padding: 0;
}
.fg-fn-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
}
.fg-fn-pick {
    cursor: pointer;
}
.fg-fn-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.fg-fn-svg polygon {
    fill: var(--mm-a, var(--black));
    stroke: var(--black);
    stroke-width: 0;
    vector-effect: non-scaling-stroke;
    transition: fill 0.2s var(--ease);
}
.fg-fn-name {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    color: var(--mm-a-ink, var(--white));
}
.fg-fn-pick:hover .fg-fn-name {
    text-decoration: underline;
}
.fg-fn-text {
    padding: 10px 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-2);
}
.fg-fn-val {
    display: block;
    margin-top: 2px;
    font-weight: 700;
    color: var(--black);
}
.fg-fn-tags {
    display: inline-grid;
    margin-left: 8px;
    vertical-align: 1px;
}
.fg-fn-tag {
    display: inline-block;
    padding: 1px 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    border: 1px solid var(--black);
    color: var(--black);
    white-space: nowrap;
}
.fg-fn-tag.is-miss,
.fg-fn-tag.is-touched {
    background: var(--black);
    color: var(--white);
}
.fg-fn-tag.is-drift {
    border-style: dashed;
}
.fg-fn-tag.is-read {
    border-width: 2px;
    padding: 0 5px;
}
.fg-fn-row.is-miss polygon,
.fg-fn-row.is-touched polygon { fill: var(--black); }
.fg-fn-row.is-miss .fg-fn-name,
.fg-fn-row.is-touched .fg-fn-name { color: var(--white); }
.fg-fn-row.is-drift polygon {
    fill: var(--white);
    stroke-width: 2;
    stroke-dasharray: 6 4;
}
.fg-fn-row.is-read polygon {
    fill: var(--white);
    stroke-width: 4;
}
.fg-fn-row.is-drift .fg-fn-name,
.fg-fn-row.is-read .fg-fn-name { color: var(--black); }
.fg-fn-row.is-drift .fg-fn-val { color: var(--text-3); }
@media (max-width: 559px) {
    .prose .fg-fn-row { grid-template-columns: 128px minmax(0, 1fr); gap: 0 12px; }
    .fg-fn-name { font-size: 13px; }
}

/* Matrix: options as columns on one row grid (subgrid), cards under the width the columns need. */
.prose figure.fg--matrix {
    container-type: inline-size;
}
@media (min-width: 1260px) {
    .prose figure.fg--matrix:has(.fg-mx[data-n="4"]),
    .prose figure.fg--matrix:has(.fg-mx[data-n="5"]) {
        width: 780px;
    }
}
.fg-mx-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0 20px;
    margin: 12px 0 8px;
}
.fg-mx-tools .fg-in { margin: 0; }
.fg-mx-tools .fg-in output { width: 3.6ch; text-align: right; }
.fg-mx {
    display: grid;
    grid-template-columns: 7.2rem repeat(var(--n), minmax(0, 1fr));
    grid-template-rows: repeat(10, auto);
    column-gap: 14px;
    border-top: 1px solid var(--black);
    font-size: 14px;
    line-height: 1.4;
}
.fg-mx-labels,
.fg-mx-opt {
    display: grid;
    grid-row: 1 / span 10;
    grid-template-rows: subgrid;
}
.fg-mx-labels > *,
.fg-mx-opt > * {
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid var(--rule-light);
}
.fg-mx-l {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
}
.fg-mx-l small {
    display: block;
    font-size: 12px;
    font-weight: 400;
}
.fg-mx-cl {
    display: none;
}
.prose .fg p.fg-mx-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    padding: 8px 6px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.fg-mx-id {
    display: inline-block;
    min-width: 1.6em;
    padding: 0 4px;
    margin-right: 4px;
    text-align: center;
    border: 2px solid currentColor;
}
.fg-mx-seltag {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    visibility: hidden;
}
.fg-mx-opt.is-sel .fg-mx-name {
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.fg-mx-opt.is-sel .fg-mx-seltag {
    visibility: visible;
}
.prose .fg p.fg-mx-pp,
.prose .fg p.fg-mx-aa {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-2);
}
.fg-mx-c {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}
.fg-step {
    display: inline-grid;
    grid-template-columns: 30px 3.2ch 30px;
    align-items: center;
}
.fg-stb {
    width: 30px;
    height: 30px;
    padding: 0;
    font: 700 18px/1 var(--font);
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.fg-stb:hover {
    background: var(--black);
    color: var(--white);
}
.fg-stb[aria-disabled="true"] {
    color: var(--text-3);
    border-color: var(--rule-light);
    background: var(--white);
    cursor: default;
}
.fg-stv {
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.fg-mx-val {
    font-size: 16px;
}
.fg-mx-u .fg-num {
    font-size: 17px;
}
.fg-mx-ns {
    font-size: 13px;
    color: var(--text-3);
}
.prose .fg p.fg-mx-mark {
    font-size: 13px;
    line-height: 1.4;
}
.fg-mx-tag {
    display: inline-block;
    margin: 0 4px 2px 0;
    padding: 1px 6px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--black);
}
.fg-mx-tag.is-work {
    background: var(--black);
    color: var(--white);
}
.fg-mx-tag.is-bet {
    border-style: dashed;
}
.prose .fg p.fg-mx-sel {
    margin: 14px 0 0;
    padding: 12px;
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
    font-size: 15px;
    line-height: 1.4;
}
.fg-mx-sel .fg-v {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.fg-mx-sh {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fg-mx-sel strong {
    font-size: 19px;
    line-height: 1.3;
}
/* Cards: each option its own block with the same cells, preferred position left, adverse alternative right. */
@container (max-width: 559px) {
    .fg-mx { display: block; border-top: 0; }
}
@container (max-width: 699px) {
    .fg-mx[data-n="4"],
    .fg-mx[data-n="5"] { display: block; border-top: 0; }
}
@container (max-width: 779px) {
    .fg-mx[data-n="5"] { display: block; border-top: 0; }
}
@container (max-width: 559px) {
    .fg-mx .fg-mx-labels { display: none; }
    .fg-mx .fg-mx-opt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; column-gap: 12px; margin-bottom: 18px; border-top: 2px solid var(--black); }
    .fg-mx .fg-mx-name, .fg-mx .fg-mx-pp, .fg-mx .fg-mx-aa, .fg-mx .fg-mx-mark { grid-column: 1 / -1; }
    .fg-mx .fg-mx-r-b_pp { grid-column: 1; grid-row: 4; }
    .fg-mx .fg-mx-r-c_pp { grid-column: 1; grid-row: 5; }
    .fg-mx .fg-mx-r-u_pp { grid-column: 1; grid-row: 6; }
    .fg-mx .fg-mx-r-b_aa { grid-column: 2; grid-row: 4; }
    .fg-mx .fg-mx-r-c_aa { grid-column: 2; grid-row: 5; }
    .fg-mx .fg-mx-r-u_aa { grid-column: 2; grid-row: 6; }
    .fg-mx .fg-mx-mark { grid-row: 7; }
    .fg-mx .fg-mx-cl { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); }
    .fg-mx .fg-mx-c { justify-content: space-between; }
    .fg-mx-tools { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .fg-mx-tools .mm-btn { justify-self: start; }
}
@container (min-width: 560px) and (max-width: 699px) {
    .fg-mx[data-n="4"] .fg-mx-labels, .fg-mx[data-n="5"] .fg-mx-labels { display: none; }
    .fg-mx[data-n="4"] .fg-mx-opt, .fg-mx[data-n="5"] .fg-mx-opt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; column-gap: 12px; margin-bottom: 18px; border-top: 2px solid var(--black); }
    .fg-mx[data-n="4"] .fg-mx-opt > :is(.fg-mx-name, .fg-mx-pp, .fg-mx-aa, .fg-mx-mark), .fg-mx[data-n="5"] .fg-mx-opt > :is(.fg-mx-name, .fg-mx-pp, .fg-mx-aa, .fg-mx-mark) { grid-column: 1 / -1; }
    .fg-mx[data-n="4"] .fg-mx-r-b_pp, .fg-mx[data-n="5"] .fg-mx-r-b_pp { grid-column: 1; grid-row: 4; }
    .fg-mx[data-n="4"] .fg-mx-r-c_pp, .fg-mx[data-n="5"] .fg-mx-r-c_pp { grid-column: 1; grid-row: 5; }
    .fg-mx[data-n="4"] .fg-mx-r-u_pp, .fg-mx[data-n="5"] .fg-mx-r-u_pp { grid-column: 1; grid-row: 6; }
    .fg-mx[data-n="4"] .fg-mx-r-b_aa, .fg-mx[data-n="5"] .fg-mx-r-b_aa { grid-column: 2; grid-row: 4; }
    .fg-mx[data-n="4"] .fg-mx-r-c_aa, .fg-mx[data-n="5"] .fg-mx-r-c_aa { grid-column: 2; grid-row: 5; }
    .fg-mx[data-n="4"] .fg-mx-r-u_aa, .fg-mx[data-n="5"] .fg-mx-r-u_aa { grid-column: 2; grid-row: 6; }
    .fg-mx[data-n="4"] .fg-mx-mark, .fg-mx[data-n="5"] .fg-mx-mark { grid-row: 7; }
    .fg-mx[data-n="4"] .fg-mx-cl, .fg-mx[data-n="5"] .fg-mx-cl { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); }
    .fg-mx[data-n="4"] .fg-mx-c, .fg-mx[data-n="5"] .fg-mx-c { justify-content: space-between; }
}

/* Utilities: one shared scale with three lanes; the outputs in words; the cycles form adds rows and a chart. */
.prose figure.fg--utilities {
    container-type: inline-size;
}
.fg-ut-svg,
.fg-ut-chart {
    display: block;
    width: 100%;
    height: auto;
    font-family: var(--font);
}
.fg-ut-svg.fg-wide,
.fg-ut-chart.fg-wide { display: none; max-width: 640px; }
.fg-ut-svg.fg-narrow,
.fg-ut-chart.fg-narrow { max-width: 358px; }
@container (min-width: 560px) {
    .fg-ut-svg.fg-wide, .fg-ut-chart.fg-wide { display: block; }
    .fg-ut-svg.fg-narrow, .fg-ut-chart.fg-narrow { display: none; }
}
.fg-ut-scale {
    margin: 12px 0 6px;
}
.fg-ut-tick {
    stroke: var(--rule-light);
    stroke-width: 1;
}
.fg-ut-tick.is-zero {
    stroke: var(--black);
}
.fg-ut-tl {
    font-size: 11px;
    fill: var(--text-3);
    font-variant-numeric: tabular-nums;
}
.fg-ut-ln {
    font-size: 13px;
    font-weight: 700;
    fill: var(--black);
}
.fg-ut-lane {
    stroke: var(--black);
    stroke-width: 1;
}
.fg-ut-span.is-err {
    stroke: var(--black);
    stroke-width: 2;
    stroke-dasharray: 4 3;
}
.fg-ut-span.is-gap {
    stroke: var(--mm-a, var(--black));
    stroke-width: 5;
}
.fg-ut-mk rect {
    stroke: var(--black);
    stroke-width: 2;
    fill: var(--white);
}
.fg-ut-mk.is-actual rect { fill: var(--black); }
.fg-ut-mk.is-perceived rect { fill: var(--mm-a, var(--black)); }
.fg-ut-mv {
    font-size: 12px;
    font-weight: 700;
    fill: var(--black);
    font-variant-numeric: tabular-nums;
}
.fg-ut-in .fg-in {
    margin-bottom: 10px;
}
.fg-ut-in .fg-in output {
    width: 3.6ch;
    text-align: right;
}
.fg-ut-outs .fg-out {
    grid-template-columns: 10.5rem minmax(0, 1fr);
}
.fg-ut-outs .fg-out dt small {
    display: block;
    font-size: 12px;
}
.fg-ut-outs .fg-out dd {
    font-weight: 400;
}
.fg-ut-outs .fg-out.is-lead dd {
    font-size: 16px;
}
.fg-ut-outs .fg-out.is-lead dd strong {
    display: block;
    font-size: 19px;
}
@container (max-width: 559px) {
    .fg-ut-outs .fg-out { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.prose ol.fg-ut-rows {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    border-top: 1px solid var(--black);
}
.prose .fg-ut-rows li {
    margin: 0;
}
.fg-ut-row {
    display: grid;
    width: 100%;
    gap: 2px;
    padding: 8px 10px 8px 12px;
    border: 0;
    border-bottom: 1px solid var(--rule-light);
    border-left: 4px solid transparent;
    background: var(--white);
    font: 400 14px/1.45 var(--font);
    color: var(--black);
    text-align: left;
    cursor: pointer;
}
.fg-ut-row:hover {
    background: #eeeeee;
}
.fg-ut-row[aria-pressed="true"] {
    border-left-color: var(--black);
    background: #eeeeee;
}
.fg-ut-rl {
    font-weight: 700;
    font-size: 15px;
}
.fg-ut-rv {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.fg-ut-cv span {
    font-weight: 400;
    color: var(--text-2);
}
.fg-ut-rw {
    color: var(--text-2);
}
.fg-ut-bel {
    color: var(--text-2);
    visibility: hidden;
}
.fg.is-comp .fg-ut-bel,
.fg:not(.is-live) .fg-ut-bel {
    visibility: visible;
}
.fg-ut-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 14px 0 4px;
}
.prose .fg .fg-ut-tools p.fg-legend {
    margin: 0;
    font-size: 14px;
}
.mm-btn.fg-ut-comp[aria-pressed="true"] {
    background: var(--black);
    color: var(--white);
}
.fg-ut-k {
    display: inline-block;
    width: 18px;
    height: 0;
    border-top: 2px solid var(--black);
}
.fg-ut-k.is-belief {
    border-top-color: var(--mm-a, var(--black));
}
.fg-ut-ser polyline {
    fill: none;
    stroke: var(--black);
    stroke-width: 2;
}
.fg-ut-ser .fg-ut-dot {
    fill: var(--black);
}
.fg-ut-ser.is-belief polyline {
    stroke: var(--mm-a, var(--black));
}
.fg-ut-ser.is-belief .fg-ut-dot {
    fill: var(--white);
    stroke: var(--mm-a, var(--black));
    stroke-width: 2;
}
.fg-ut-xl {
    font-size: 11px;
    fill: var(--text-2);
}

/* Odds: the headline against the distribution, each outcome a probability range on one 0 to 100% scale. */
.prose .fg p.fg-od-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 2px solid var(--black);
    font-size: 15px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.fg-od-head strong {
    font-size: 21px;
}
.fg.is-head .fg-od-head {
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.prose .fg p.fg-od-cap {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-3);
}
.prose ol.fg-od-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--black);
}
.prose .fg-od-row {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr) 6.5rem;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: 14px;
    transition: opacity 0.2s var(--ease);
}
.fg-od-l {
    font-weight: 700;
}
.fg-od-p {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.fg-od-track {
    position: relative;
    height: 16px;
    background: linear-gradient(var(--rule-light), var(--rule-light)) 0 50% / 100% 1px no-repeat;
}
.fg-od-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--mm-a, var(--black));
}
.prose .fg-od-axis {
    border-bottom: 0;
    padding-top: 2px;
}
.fg-od-t {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-3);
}
.fg-od-t:first-child { transform: none; }
.fg-od-t:last-child { transform: translateX(-100%); }
.fg.is-head .fg-od-row:not(.fg-od-axis) {
    opacity: 0.3;
}
@container (max-width: 559px) {
    .prose .fg-od-row { grid-template-columns: minmax(0, 1fr) 5.5rem; }
    .fg-od-track { grid-column: 1 / -1; grid-row: 2; }
}
.prose figure.fg--odds { container-type: inline-size; }

/* Diamond: the 4R baseball diamond, designed at 358px and never drawn smaller. */
.prose figure.fg--diamond {
    container-type: inline-size;
}
.fg-dm-art svg {
    display: block;
    width: 358px;
    max-width: 100%;
    height: auto;
    font-family: var(--font);
}
@container (min-width: 560px) {
    .fg-dm:not(.fg-dm--field) .fg-dm-art svg { width: 440px; }
}
.fg-dm-svg.fg-wide { display: none; }
@container (min-width: 600px) {
    .fg-dm--field .fg-dm-svg.fg-wide { display: block; width: 100%; max-width: 100%; }
    .fg-dm--field .fg-dm-svg.fg-narrow { display: none; }
}
.fg-dm-seg line {
    stroke: var(--black);
    stroke-width: 2;
}
.fg-dm-arr {
    fill: none;
    stroke: var(--black);
    stroke-width: 1.5;
}
.fg.is-lg .fg-dm-svg > .fg-dm-d .fg-dm-seg:not(.is-lit) line,
.fg.is-lg .fg-dm-back .fg-dm-seg:not(.is-lit) line {
    stroke: var(--rule-light);
}
.fg.is-lg .fg-dm-svg > .fg-dm-d .fg-dm-seg:not(.is-lit) .fg-dm-arr,
.fg.is-lg .fg-dm-back .fg-dm-seg:not(.is-lit) .fg-dm-arr {
    visibility: hidden;
}
.fg.is-lg .fg-dm-svg > .fg-dm-d .fg-dm-seg.is-lit line,
.fg.is-lg .fg-dm-back .fg-dm-seg.is-lit line {
    stroke-width: 3;
}
.fg-dm-back,
.fg-dm-allstar {
    visibility: hidden;
}
.fg.is-back .fg-dm-back {
    visibility: visible;
}
.fg.is-back .fg-dm-svg > .fg-dm-d .fg-dm-arr {
    visibility: hidden;
}
.fg.is-allstar .fg-dm-allstar {
    visibility: visible;
}
.fg.is-allstar .fg-dm-svg > .fg-dm-d,
.fg.is-allstar .fg-dm-back {
    visibility: hidden;
}
.fg.is-allstar .fg-dm-allstar .fg-dm-d {
    visibility: visible;
}
.fg-dm-base {
    fill: var(--white);
    stroke: var(--black);
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.2s var(--ease);
}
.fg-dm-base.is-home {
    fill: var(--mm-a, var(--black));
}
.fg-dm-base.is-sel,
.fg-dm-base.is-lit {
    fill: var(--mm-b, var(--black));
}
.fg-dm-name {
    font-size: 13px;
    font-weight: 700;
    fill: var(--black);
}
.fg-dm-name.is-small {
    font-size: 11px;
}
.fg-dm-who {
    font-size: 12px;
    font-weight: 700;
    fill: var(--black);
}
.fg-dm-runner {
    fill: var(--black);
    stroke: var(--white);
    stroke-width: 2;
}
.fg--leagues .fg-dm-runner,
.fg-dm--leagues .fg-dm-runner {
    visibility: hidden;
}
.fg-dm-sub {
    opacity: 0.35;
    transition: opacity 0.4s var(--ease);
}
.fg-dm-sub.is-on,
.fg:not(.is-live) .fg-dm-sub {
    opacity: 1;
}
.fg-dm-tether {
    stroke: var(--black);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}
.fg-dm-link path {
    fill: none;
    stroke: var(--black);
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}
.fg-dm-link.is-sel path {
    stroke-width: 3;
}
.fg.is-link .fg-dm-link:not(.is-sel) path {
    stroke: var(--rule-light);
}
.fg-dm-holds {
    display: block;
    color: var(--text-2);
}
.fg-dm-svg marker path {
    fill: var(--black);
}
.fg-dm-step {
    display: block;
    margin-top: 2px;
}
.fg-dm-gap {
    display: block;
    margin-top: 2px;
    font-weight: 700;
}
.fg-dm-q {
    display: block;
    margin-top: 2px;
    color: var(--text-2);
}

/* Finder, independent checks (`each`): the line under each check, reserved at its longer wording. */
.fg-fline {
    display: block;
    margin: 4px 0 0 34px;
    font-size: 14px;
    color: var(--text-2);
}
.fg-finder.is-each li:has(input:checked) .fg-fline {
    color: var(--text-3);
}
.fg-result strong .fg-stk {
    display: grid;
}
.fg-lp-bsvg.fg-narrow .fg-lp-nm { font-size: 13px; }
.prose .fg p.fg-dm-key {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-3);
}
/* Without script a lap reads once, base by base (each base's entry already carries its steps). */
.fg:not(.is-live) .fg-dm-panel .fg-v[data-v^="step-"] {
    display: none;
}

/* A toggle button's two labels in one grid cell (build.py two_labels, metric-map.js): the button keeps the width of
   its longer label whichever shows, so clicking it moves nothing. */
.mm-lbl {
    display: inline-grid;
}
.mm-lbl > span {
    grid-area: 1 / 1;
    visibility: hidden;
}
.mm-lbl > span.is-on {
    visibility: visible;
}
/* A calculator's values sit right-aligned in a column as wide as their widest value (build.py calc_width), so a
   slider never changes the width of anything beside it. */
.fg-calc .fg-out dd,
.fg-calc .fg-in output {
    text-align: right;
}
.fg.is-rest .fg-lp-bsvg .fg-lp-marker { opacity: 0; }

/* SOLVE eX figures (build.py: bank, rubric, canvas, ladder, grid, classes, coin, process; assets/js/figures-solvex.js).
   The same rules as every figure: black and white, the piece's own subject colors (--mm-a primary), Filter Wash and
   Hairline Grey, square corners, no shadow. The Never-Moves Rule: every changing panel holds its variants in one grid
   cell (.fg-stk); counts and scores sit in fixed tabular slots; a hidden-until-needed button keeps its place
   (visibility); a text box has a fixed number of lines and scrolls inside. */
.fg--bank input[type="checkbox"],
.fg--ladder input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    border: 2px solid var(--black);
    border-radius: 0;
    background: var(--white);
    cursor: pointer;
}
.fg--bank input[type="checkbox"]:checked,
.fg--ladder input[type="checkbox"]:checked {
    background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
}
.fg--bank input[type="checkbox"]:focus-visible,
.fg--ladder input[type="checkbox"]:focus-visible,
.fg-ld-tog:focus-visible,
.fg-gd-tag:focus-visible,
.fg textarea:focus-visible,
.fg-txt:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}
.fg-copied {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
}
.fg-off,
.mm-btn.is-off {
    visibility: hidden;
}

/* bank: the question bank */
.fg-bk-tools {
    margin: 14px 0 0;
}
.prose .fg p.fg-bk-count {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}
.fg-bk-panel {
    margin: 10px 0 0;
    padding: 10px 0;
    border-top: 1px solid var(--black);
    border-bottom: 1px solid var(--black);
    font-size: 16px;
    line-height: 1.45;
}
.fg-bk-ph {
    color: var(--text-3);
    font-size: 15px;
}
.prose .fg ol.fg-bk-drawn {
    margin: 0;
    padding-left: 1.4em;
    font-size: 16px;
    line-height: 1.45;
}
.prose .fg ol.fg-bk-drawn li {
    margin: 0 0 4px;
}
.prose .fg h3.fg-bk-h {
    margin: 1.4em 0 0.25em;
    font-size: 21px;
    font-weight: 700;
}
.prose .fg p.fg-bk-desc {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-2);
}
.prose .fg ol.fg-bk-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--black);
}
.prose .fg ol.fg-bk-list > li {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: 16px;
    line-height: 1.45;
}
.fg-bk-list label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    cursor: pointer;
}
.fg-bk-note {
    display: block;
    margin: 3px 0 0 30px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-3);
}
.prose .fg ul.fg-bk-sub {
    margin: 4px 0 0 30px;
    padding-left: 1.1em;
    font-size: 15px;
    line-height: 1.45;
}
.prose .fg ul.fg-bk-sub li {
    margin: 0;
}
.fg--bank:not(.is-live) .fg-bk-tools,
.fg--bank:not(.is-live) .fg-bk-panel {
    display: none;
}
.fg--bank:not(.is-live) .fg-bk-list input {
    visibility: hidden;
}

/* rubric: scored rows, a result and a verdict */
.fg-rb {
    margin-top: 12px;
    border-top: 1px solid var(--black);
}
.fg-rb-head,
.fg-rb-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 16px;
}
.fg-rb-head {
    padding: 8px 0 6px;
    border-bottom: 1px solid var(--rule-light);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-3);
}
.fg-rb-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--rule-light);
}
.fg-rb-cells {
    display: grid;
    grid-template-columns: repeat(var(--cols, 1), 96px);
    align-items: center;
    gap: 8px;
}
.fg-rb.is-multi .fg-rb-cells {
    grid-template-columns: repeat(var(--cols, 1), 96px) 64px;
}
.fg-rb-head .fg-rb-cells > span {
    text-align: center;
}
.fg-rb-c,
.fg-rb-avg {
    display: grid;
    justify-items: center;
    gap: 2px;
}
.fg-rb-cl {
    display: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
}
.fg-rb-avg .fg-num {
    font-size: 16px;
}
.prose .fg p.fg-rb-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
}
.fg-rb-w {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-3);
    white-space: nowrap;
}
.fg-rb-in,
.fg-txt {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    padding: 8px 10px;
    border: 2px solid var(--black);
    border-radius: 0;
    background: var(--white);
    color: var(--black);
    font: 400 17px/1.4 var(--font);
}
.fg-rb-in::placeholder,
.fg-txt::placeholder,
.fg textarea::placeholder {
    color: var(--text-3);
}
.fg-rb-out {
    margin-top: 14px;
}
.prose .fg p.fg-rb-total {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}
.fg-rb-total strong {
    font-size: 22px;
}
.prose .fg p.fg-rb-verdict,
.prose .fg p.fg-cn-res {
    margin-top: 10px;
}
.fg-rb-verdict .fg-stk,
.fg-rb-verdict .fg-v,
.fg-rb-verdict .fg-v span,
.fg-cn-res .fg-stk,
.fg-cn-res .fg-v,
.fg-cn-res .fg-v span {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    text-transform: none;
}
.fg-rb-verdict .fg-v strong,
.fg-cn-res .fg-v strong {
    display: block;
    font-size: 19px;
    line-height: 1.3;
}
.fg-rb-verdict .fg-v span {
    display: block;
    font-size: 15px;
    line-height: 1.45;
}
.fg-rb-rank {
    margin-top: 14px;
}
.prose .fg p.fg-rb-rl {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
}
.prose .fg .fg-rb-rank ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--black);
}
.prose .fg .fg-rb-rank li {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: 15px;
    line-height: 1.4;
}
.fg-rb-rt {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 560px) {
    .fg-rb-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .fg-rb-head {
        display: none;
    }
    .fg-rb.is-multi .fg-rb-cl {
        display: block;
    }
    .fg-rb-cells {
        grid-template-columns: repeat(var(--cols, 1), minmax(0, 96px));
    }
    .fg-rb.is-multi .fg-rb-cells {
        grid-template-columns: repeat(var(--cols, 1), minmax(0, 96px)) minmax(0, 64px);
    }
}

/* canvas: a worksheet of text boxes (DESIGN.md Inputs, Text box) */
.fg textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: calc(var(--l, 4) * 1.5em + 24px);
    margin: 0;
    padding: 10px;
    border: 2px solid var(--black);
    border-radius: 0;
    background: var(--white);
    color: var(--black);
    font: 400 17px/1.5 var(--font);
    resize: none;
    overflow: auto;
}
.fg-cv-row {
    display: grid;
    grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr));
    gap: 18px 20px;
    margin-top: 16px;
}
.fg-cv-cell {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.fg-cv-cell textarea {
    margin-top: auto;
}
.prose .fg p.fg-cv-name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
.prose .fg p.fg-cv-prompt {
    margin: 2px 0 8px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-3);
}
.prose .fg p.fg-cv-note {
    margin: -4px 0 8px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-3);
}
.prose .fg h3.fg-cv-h {
    margin: 1.4em 0 0;
    font-size: 21px;
    font-weight: 700;
}
.prose .fg p.fg-cv-hn {
    margin: 2px 0 0;
    font-size: 15px;
    color: var(--text-2);
}
.fg-cv-tools {
    margin-top: 16px;
}
.fg:not(.is-live) .fg-cv-tools {
    display: none;
}
@media (max-width: 860px) {
    .fg-cv-row {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 560px) {
    .fg textarea,
    .fg-rb-in,
    .fg-txt {
        font-size: 16px;
    }
}

/* ladder: a recursive breakdown behind 2px rules; the toggles are the one allowed push */
.prose .fg ul.fg-ld-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.prose .fg ul.fg-ld-list ul.fg-ld-list {
    margin: 4px 0 4px 13px;
    padding-left: 14px;
    border-left: 2px solid var(--black);
}
.prose .fg p.fg-ld-root {
    margin: 12px 0 6px;
    font-size: 17px;
    font-weight: 800;
}
.prose .fg li.fg-ld-item {
    margin: 0;
    padding: 4px 0;
    font-size: 16px;
    line-height: 1.45;
}
.fg-ld-line {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 10px;
}
.fg-ld-tog,
.fg-ld-sp {
    flex: none;
    width: 26px;
    height: 26px;
}
.fg-ld-tog {
    padding: 0;
    border: 2px solid var(--black);
    border-radius: 0;
    background: var(--white);
    color: var(--black);
    font: 700 16px/1 var(--font);
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.fg-ld-tog::after {
    content: "+";
}
.fg-ld-tog[aria-expanded="true"]::after {
    content: "\2212";
}
.fg-ld-tog:hover {
    background: var(--black);
    color: var(--white);
}
.fg-ld-text {
    flex: 1 1 12em;
    min-width: 0;
    padding-top: 1px;
}
.fg-ld-chk {
    flex: none;
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    padding-top: 1px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    cursor: pointer;
}
.fg-ld-chk input[type="checkbox"] {
    margin-top: 1px;
}
.fg-ld-item > textarea {
    margin: 6px 0 4px 36px;
    width: calc(100% - 36px);
}
.fg-ld-chain {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--black);
}
.prose .fg p.fg-ld-cl {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.45;
}
.fg-ld-cn {
    display: block;
    font-weight: 700;
}
.fg--ladder:not(.is-live) .fg-ld-tog {
    visibility: hidden;
}
@media (max-width: 560px) {
    .prose .fg ul.fg-ld-list ul.fg-ld-list {
        margin-left: 2px;
        padding-left: 10px;
    }
    .fg-ld-item > textarea {
        margin-left: 0;
        width: 100%;
    }
}

/* grid: a 3 by 3 placement */
.fg-gd {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    margin-top: 12px;
}
.prose .fg p.fg-gd-ylab,
.prose .fg p.fg-gd-xlab {
    display: flex;
    justify-content: space-between;
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-3);
}
.prose .fg p.fg-gd-ylab {
    grid-row: 1;
    grid-column: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.fg-gd-ylab strong,
.fg-gd-xlab strong {
    color: var(--black);
}
.fg-gd-cells {
    grid-row: 1;
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 2px solid var(--black);
}
.prose .fg p.fg-gd-xlab {
    grid-row: 2;
    grid-column: 2;
}
.fg-gd-cell {
    min-width: 0;
    min-height: calc(var(--slots, 1) * 30px + 26px);
    padding: 4px 6px 6px;
    border-right: 1px solid var(--rule-light);
    border-bottom: 1px solid var(--rule-light);
}
.fg-gd-cell:nth-child(3n) {
    border-right: 0;
}
.fg-gd-cell:nth-child(n + 7) {
    border-bottom: 0;
}
.fg-gd-cn {
    display: block;
    height: 16px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prose .fg ul.fg-gd-tags {
    display: grid;
    gap: 4px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}
.prose .fg ul.fg-gd-tags li {
    margin: 0;
    min-width: 0;
}
.fg-gd-tag {
    display: block;
    max-width: 100%;
    height: 26px;
    padding: 0 6px;
    border: 2px solid var(--black);
    border-radius: 0;
    background: var(--black);
    color: var(--white);
    font: 700 12px/22px var(--font);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.fg-gd-tag[aria-pressed="true"] {
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.fg-gd-panel {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--black);
    font-size: 15px;
    line-height: 1.5;
}
.fg-gd-ph {
    color: var(--text-3);
}
.fg-gd-move {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 10px;
}
.fg-gd-mv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}
.prose .fg ul.fg-gd-list {
    display: none;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.45;
}
.prose .fg ul.fg-gd-list li {
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid var(--rule-light);
}
.fg-gd-n {
    font-variant-numeric: tabular-nums;
}
.fg--grid.is-live .fg-gd-why {
    display: none;
}
.fg--grid:not(.is-live) .prose ul.fg-gd-list,
.fg--grid:not(.is-live) ul.fg-gd-list {
    display: block;
}
.fg--grid:not(.is-live) .fg-gd-panel {
    display: none;
}
@media (max-width: 560px) {
    .fg-gd {
        min-width: 358px;
    }
    .prose .fg ul.fg-gd-list {
        display: block;
    }
}

/* classes: a segmented switch per row */
.prose .fg p.fg-cl-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 12px 0 8px;
    font-size: 14px;
    font-weight: 700;
}
.prose .fg ol.fg-cl-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--black);
}
.prose .fg ol.fg-cl-rows > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 16px;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule-light);
}
.prose .fg p.fg-cl-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
}
.fg-cl-now {
    grid-column: 1;
    grid-row: 2;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
}
.fg-cl-seg {
    grid-column: 2;
    grid-row: 1 / span 2;
}
.prose .fg p.fg-cl-key {
    display: grid;
    gap: 2px;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-3);
}
.fg-cl-key strong {
    color: var(--black);
}
.fg--classes:not(.is-live) .fg-tools {
    display: none;
}
@media (max-width: 560px) {
    .prose .fg ol.fg-cl-rows > li {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
    .fg-cl-now,
    .fg-cl-seg {
        grid-column: 1;
        grid-row: auto;
    }
}

/* coin: a flip and a gut check */
.fg-cn-in {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin-top: 12px;
}
.fg-cn-side > span {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
}
.fg-cn-res .fg-v strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prose .fg ul.fg-cn-reflect {
    margin: 12px 0 0;
    padding-left: 1.2em;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-2);
}
.fg--coin:not(.is-live) .fg-cn-tools,
.fg--coin:not(.is-live) .fg-cn-res {
    display: none;
}
@media (max-width: 560px) {
    .fg-cn-in {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* process: the SOLVE eX drawing for the hub (640px, shown when the figure has that room), or the 358px phase
   drawing over an outline of every phase and step */
.prose figure.fg--process {
    container-type: inline-size;
}
.fg-pr-svg {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 12px;
    font-family: var(--font);
}
.fg-pr-wide {
    display: none;
}
.fg-pr-narrow {
    max-width: 358px;
}
@container (min-width: 640px) {
    .fg-pr-wide {
        display: block;
    }
    .fg-pr-small {
        display: none;
    }
}
.fg-pr-th {
    stroke: var(--black);
    stroke-width: 1.5;
}
.fg-pr-dm {
    fill: var(--white);
    stroke: var(--black);
    stroke-width: 2;
}
.fg-pr-dq {
    font-size: 11px;
    fill: var(--text-2);
}
.fg-pr-ph {
    fill: var(--black);
}
.fg-pr-pt {
    font-size: 13px;
    font-weight: 700;
    fill: var(--white);
}
.fg-pr-box {
    fill: var(--white);
    stroke: var(--black);
    stroke-width: 2;
}
.fg-pr-id {
    font-size: 11px;
    font-weight: 800;
}
.fg-pr-sn {
    font-size: 11px;
}
.fg-pr-lp {
    fill: none;
    stroke: var(--mm-a, var(--black));
    stroke-width: 2;
    stroke-dasharray: 6 4;
}
.fg-pr-alh {
    fill: var(--mm-a, var(--black));
}
.fg-pr-ll {
    font-size: 11px;
    font-weight: 700;
    fill: var(--text-2);
}
a.fg-pr-a:hover .fg-pr-box,
a.fg-pr-a:focus-visible .fg-pr-box,
a.fg-pr-a:hover .fg-pr-ph,
a.fg-pr-a:focus-visible .fg-pr-ph {
    fill: var(--mm-a, var(--black));
}
a.fg-pr-a:hover text,
a.fg-pr-a:focus-visible text {
    fill: var(--mm-a-ink, var(--white));
}
a.fg-pr-a:focus-visible {
    outline: 3px solid var(--black);
}
.prose a.fg-pr-a {
    text-decoration: none;
}
.prose .fg ul.fg-pr-loops {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--text-2);
}
.fg-pr-key {
    display: inline-block;
    width: 22px;
    margin-right: 8px;
    vertical-align: middle;
    border-top: 2px dashed var(--mm-a, var(--black));
}
.prose .fg ol.fg-pr-out {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--black);
}
.prose .fg ol.fg-pr-out > li {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule-light);
}
.prose .fg p.fg-pr-on {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}
.prose .fg p.fg-pr-od {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--text-2);
}
.prose .fg ol.fg-pr-out ol {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
    line-height: 1.5;
}
.prose .fg ol.fg-pr-out ol li {
    margin: 0;
}
.fg-pr-oi {
    display: inline-block;
    width: 2.4em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* a stepper's value keeps its line when blank */
.fg-step .fg-stv {
    display: block;
    min-height: 24px;
    line-height: 24px;
}
/* the bank's drawn questions: each slot stacks the drawn question over the bank's longest question (hidden) in one
   grid cell, so every slot is reserved at the longest question's height and a draw resizes nothing. (Equal flex slots
   with a zero basis once collapsed every slot to nothing, so the drawn questions overlapped.) */
.prose .fg .fg-bk-panel ol.fg-bk-drawn li {
    display: grid;
}
.fg-bk-panel .fg-bk-dq {
    grid-area: 1 / 1;
}
.fg-bk-panel .fg-bk-dmax {
    visibility: hidden;
}
/* the coin's result: the side, then the option cut to one line in a slot that takes the rest of the line */
.fg-cn-res .fg-v strong.fg-cn-r {
    display: flex;
    gap: 0.3em;
}
.fg-cn-res .fg-cn-o {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* without script the SOLVE eX figures read as their content: no buttons that would do nothing */
.prose .fg--rubric:not(.is-live) .fg-tools,
.prose .fg--grid:not(.is-live) .fg-tools,
.prose .fg--classes:not(.is-live) .fg-tools,
.prose .fg--coin:not(.is-live) .fg-tools,
.prose .fg--coin:not(.is-live) p.fg-cn-res,
.prose .fg--grid:not(.is-live) .fg-gd-move {
    display: none;
}
.fg--rubric:not(.is-live) .fg-stb,
.fg--classes:not(.is-live) .cat-seg button:not([aria-pressed="true"]) {
    visibility: hidden;
}

/* the SOLVE eX figures' button lines sit clear of what is above them */
.prose .fg--rubric p.fg-tools,
.prose .fg--canvas p.fg-tools,
.prose .fg--grid p.fg-tools,
.prose .fg--classes p.fg-tools,
.prose .fg--coin p.fg-tools {
    margin: 16px 0 0;
}
/* the ladder's own text box under its root */
.fg-ld > textarea {
    margin: 0 0 8px;
}
/* the grid's rows are tall enough for the rotated axis words (low, name, high) to sit apart */
.fg-gd-cell {
    min-height: max(110px, calc(var(--slots, 1) * 30px + 26px));
}

/* A first term of more than one word ("Problem Solving &") takes the key cell's whole first line, never breaking
   (its ampersand is held to it); the count then sits beside the second term. */
.key-name > span.key-wide {
    grid-column: 1 / -1;
    white-space: nowrap;
}
.key a:has(.key-wide) .key-name > span + span {
    grid-column: 1;
}
.key a:has(.key-wide) .key-count {
    grid-row: 2;
}

/* Thinking Tools entry figures (build.py: the general grid, tree, flow, system, sample; assets/js/figures-tools.js;
   schemas in docs/solvex-notes/FIGURE-TYPES.md, "Thinking Tools entry figures"). The same rules as every figure:
   black and white, the page's own subject colors (--mm-a) and a 14% tint of it, Filter Wash and Hairline Grey, square
   corners, no shadow. Drawings are laid out by the build in fixed pixels: the 640px form shows when the figure has
   that room (a container query on the figure), the 358px form or the outline otherwise. Every changing panel holds
   its variants in one cell (.fg-stk); hidden things keep their place (visibility). */
.prose figure.fg--gridx,
.prose figure.fg--tree,
.prose figure.fg--flow,
.prose figure.fg--system,
.prose figure.fg--sample,
.prose figure.fg--payoff,
.prose figure.fg--rubricx {
    container-type: inline-size;
}
.prose .fg .fg-tt-p,
.prose .fg div.fg-tr-panel,
.prose .fg div.fg-fl-panel,
.prose .fg div.fg-sy-panel {
    margin: 12px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--black);
    font-size: 15px;
    line-height: 1.5;
}
.fg-tint { background: #f6e3f2; background: color-mix(in srgb, var(--mm-a, #000000) 14%, #ffffff); }

/* grid, general: tray, plot (axis title, ticks, cells), panel */
.fg-gx {
    margin-top: 12px;
}
.fg-gx-tray {
    position: relative;
    margin: 0 0 10px;
    padding: 6px 8px 8px;
    background: var(--filter-hover, #eeeeee);
}
.fg-gx-trl {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    color: var(--text-3);
    pointer-events: none;
}
.prose .fg ul.fg-gx-tags {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}
.prose .fg .fg-gx-tray ul.fg-gx-tags {
    display: flex;
    flex-wrap: wrap;
}
.prose .fg ul.fg-gx-tags li {
    margin: 0;
    min-width: 0;
}
.fg-gx-tag {
    pointer-events: auto;
}
.fg-gx-tray .fg-gx-tag {
    max-width: 220px;
}
.fg-gx-plot {
    display: grid;
    grid-template-columns: 20px 20px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 4px;
}
.prose .fg p.fg-gx-yt,
.prose .fg p.fg-gx-xt {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-3);
}
.prose .fg p.fg-gx-yt {
    grid-row: 1;
    grid-column: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    color: var(--black);
}
.prose .fg p.fg-gx-yt.fg-gx-yends {
    display: flex;
    justify-content: space-between;
    color: var(--text-3);
}
.fg-gx-yends strong, .fg-gx-xends strong { color: var(--black); }
.fg-gx-yticks {
    grid-row: 1;
    grid-column: 2;
    display: grid;
}
.fg-gx-yticks span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-3);
    overflow: hidden;
}
.fg-gx-cells {
    grid-row: 1;
    grid-column: 3;
    display: grid;
    border: 2px solid var(--black);
}
.fg-gx-xticks {
    grid-row: 2;
    grid-column: 3;
    display: grid;
}
.fg-gx-xticks span {
    padding-top: 4px;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-3);
}
.prose .fg p.fg-gx-xt {
    grid-row: 3;
    grid-column: 3;
    padding-top: 2px;
    text-align: center;
    color: var(--black);
}
.prose .fg p.fg-gx-xt.fg-gx-xends {
    display: flex;
    justify-content: space-between;
    color: var(--text-3);
}
.fg-gx-cell {
    position: relative;
    min-width: 0;
    min-height: max(96px, calc(var(--slots, 1) * 30px + 26px));
    padding: 4px 6px 6px;
    outline: 1px solid var(--rule-light);
    background: var(--white);
    transition: background 0.2s var(--ease);
}
.fg-gx-cell.is-lit {
    background: #f6e3f2;
    background: color-mix(in srgb, var(--mm-a, #000000) 14%, #ffffff);
}
.fg-gx-place {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.fg-gx-place:hover {
    background: rgba(0, 0, 0, 0.04);
}
.fg-gx-place:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: -3px;
}
.fg-gx-rl {
    position: relative;
    z-index: 1;
    display: block;
    height: 16px;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.fg-gx-rl.is-hid {
    visibility: hidden;
}
.prose .fg div.fg-gx-panel p {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.5;
}
.prose .fg p.fg-gx-score {
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 700;
}
.prose .fg ul.fg-gx-list {
    display: none;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.45;
}
.prose .fg ul.fg-gx-list li {
    margin: 0;
    padding: 5px 0;
    border-bottom: 1px solid var(--rule-light);
}
.fg-gx-list .fg-stk {
    display: inline-grid;
}
.prose .fg dl.fg-gx-key,
.prose .fg div.fg-gx-sort {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.45;
}
.fg-gx-key div {
    padding: 5px 0;
    border-bottom: 1px solid var(--rule-light);
}
.fg-gx-key dt { display: inline; font-weight: 700; }
.fg-gx-key dt::after { content: ": "; }
.fg-gx-key dd { display: inline; margin: 0; }
.prose .fg .fg-gx-sort p.fg-gx-sh { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.prose .fg .fg-gx-sort ul { margin: 0; font-size: 15px; }
.fg--gridx.is-live .fg-gx-key,
.fg--gridx.is-live .fg-gx-sort,
.fg--gridx:not(.is-live) .fg-gx-panel,
.fg--gridx:not(.is-live) .fg-gx-score,
.prose .fg--gridx:not(.is-live) .fg-tools,
.fg--gridx:not(.is-live) .fg-gx-place {
    display: none;
}
@container (max-width: 559px) {
    .fg-gx { min-width: 358px; }
    .prose .fg--gridx.is-live ul.fg-gx-list { display: block; }
}

/* tree: the 640px drawing (boxes over an SVG of elbow lines) or the outline */
.fg-tr-wide { display: none; margin-top: 12px; overflow: visible; }
@container (min-width: 640px) {
    .fg-tr-wide { display: block; }
    .fg-tr-narrow { display: none; }
}
.fg-tr-draw {
    position: relative;
}
.fg-tr-svg {
    position: absolute;
    left: 0;
    top: 0;
    overflow: visible;
}
.fg-tr-ln {
    fill: none;
    stroke: var(--black);
    stroke-width: 1.5;
}
.fg-tr-ln.is-best {
    stroke: var(--mm-a, var(--black));
    stroke-width: 3;
}
.fg-tr-ln.is-hid,
.fg-tr-x {
    visibility: hidden;
}
.fg-tr-x {
    fill: none;
    stroke: var(--mm-a, var(--black));
    stroke-width: 2;
    stroke-dasharray: 6 4;
}
.fg-tr-x.is-on {
    visibility: visible;
}
.fg-tr-box {
    position: absolute;
    box-sizing: border-box;
    border: 2px solid var(--black);
    background: var(--white);
}
.fg-tr-box.is-chance { background: var(--filter-hover, #eeeeee); }
.fg-tr-box.is-hid { visibility: hidden; }
.fg-tr-box .fg-tr-sel {
    display: block;
    width: 100%;
    height: 100%;
    padding: 5px 6px;
    border: 0;
    background: transparent;
    color: var(--black);
    font: 700 13px/16px var(--font);
    text-align: left;
    vertical-align: top;
    cursor: pointer;
}
.fg-tr-box.is-decision .fg-tr-sel { box-shadow: inset 0 4px 0 var(--black); padding-top: 8px; }
.fg-tr-sel[aria-pressed="true"],
.fg-tr-box .fg-tr-sel[aria-pressed="true"] {
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.fg-tr-sel:focus-visible,
.fg-tr-tog:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
    position: relative;
    z-index: 2;
}
.fg-tr-edge {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 14px;
    color: inherit;
    opacity: 0.85;
}
.fg-tr-who {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fg-tr-lab { display: block; }
.fg-tr-val {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.fg-tr-val .fg-num { width: auto; text-align: left; }
.fg-tr-best {
    padding: 0 4px;
    font-size: 11px;
    line-height: 16px;
    background: var(--black);
    color: var(--white);
}
.fg-tr-best.is-off { visibility: hidden; }
.fg-tr-box .fg-tr-tog {
    position: absolute;
    top: 3px;
    right: 3px;
}
.fg-tr-tog {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    font: 700 14px/14px var(--font);
    cursor: pointer;
}
.fg-tr-tog::before { content: "−"; }
.fg-tr-tog[aria-expanded="false"]::before { content: "+"; }
.fg-tr-mk {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
}
.fg-tr-box .fg-tr-mk {
    position: absolute;
    left: 6px;
    bottom: 3px;
}
.fg-tr-mk input {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    border: 2px solid var(--black);
    border-radius: 0;
    background: var(--white);
}
.fg-tr-mk input:checked { background: var(--black); }
.fg-tr-mk input:disabled { border-color: var(--rule-light); }
.prose .fg p.fg-tr-key,
.prose .fg p.fg-tr-mkc {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-3);
}
.prose .fg p.fg-tr-mkc { font-size: 14px; font-weight: 700; color: var(--black); }
.prose .fg p.fg-tr-xs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 12px 0 0;
    font-size: 14px;
}
.fg-tr-xb[aria-pressed="true"] { background: var(--black); color: var(--white); }
.prose .fg ol.fg-tr-ol {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.4;
}
.prose .fg ol.fg-tr-ol ol.fg-tr-ol {
    margin-left: 9px;
    padding-left: 12px;
    border-left: 2px solid var(--black);
}
.prose .fg ol.fg-tr-top { margin-top: 12px; }
.prose .fg li.fg-tr-oi { margin: 0; }
.fg-tr-oi.is-hid > .fg-tr-line { visibility: hidden; }
.fg-tr-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 0;
}
.fg-tr-line > .fg-tr-tog { flex: none; margin-top: 2px; }
.fg-tr-sp { flex: none; width: 18px; }
.fg-tr-line .fg-tr-sel {
    flex: 1;
    min-width: 0;
    padding: 2px 6px;
    border: 1px solid var(--rule-light);
    background: var(--white);
    color: var(--black);
    font: 700 14px/1.35 var(--font);
    text-align: left;
    cursor: pointer;
}
.fg-tr-oi.is-chance > .fg-tr-line .fg-tr-sel { background: var(--filter-hover, #eeeeee); }
.fg-tr-oi.is-decision > .fg-tr-line .fg-tr-sel { border-left: 4px solid var(--black); }
.fg-tr-line .fg-tr-mk { flex: none; margin-top: 4px; }
.fg-tr-roll {
    display: block;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.fg-tr-roll .fg-num { width: auto; }
.fg-tr-panel .fg-stk > .fg-v { display: block; }
.fg-tr-ctl {
    margin-top: 12px;
    border-top: 1px solid var(--black);
}
.fg-tr-crow {
    padding: 8px 0;
    border-bottom: 1px solid var(--rule-light);
}
.prose .fg p.fg-tr-cn {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
}
.fg-tr-cbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 14px;
}
.fg-tr-cb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fg--tree:not(.is-live) .fg-tr-tog,
.fg--tree:not(.is-live) .fg-tr-ctl,
.fg--tree:not(.is-live) .fg-tr-xs,
.prose .fg--tree:not(.is-live) .fg-tools {
    display: none;
}

/* flow: the drawing (stage buttons over an SVG of arrows and the marker), the panel */
.fg-fl-wide { display: none; }
.fg-fl-narrow { margin-top: 12px; }
@container (min-width: 640px) {
    .fg-fl-wide { display: block; margin-top: 12px; }
    .fg-fl-narrow { display: none; }
}
.fg-fl-draw { position: relative; }
.fg-fl-svg {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}
.fg-fl-ar {
    fill: none;
    stroke: var(--black);
    stroke-width: 1.5;
}
.fg-fl-ah { fill: var(--black); }
.fg-fl-ahb { fill: var(--mm-a, var(--black)); }
.fg-fl-back {
    fill: none;
    stroke: var(--mm-a, var(--black));
    stroke-width: 2;
    stroke-dasharray: 6 4;
}
.fg-fl-lab {
    font: 600 11px var(--font);
    fill: var(--text-2);
    paint-order: stroke;
    stroke: var(--white);
    stroke-width: 3px;
}
.fg-fl-mk {
    fill: var(--black);
    stroke: var(--white);
    stroke-width: 2;
    opacity: 0;
}
.fg.is-playing .fg-fl-mk.is-on { opacity: 1; }
.fg-fl-st {
    position: absolute;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    text-align: left;
    vertical-align: top;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.fg-fl-st:hover { background: var(--filter-hover, #eeeeee); }
.fg-fl-st.is-at,
.fg-fl-st[aria-pressed="true"] {
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.fg-fl-st:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
    z-index: 2;
}
.fg-fl-nm {
    display: block;
    font: 700 15px/19px var(--font);
}
.fg-fl-sh {
    display: block;
    margin-top: 2px;
    font: 400 13px/17px var(--font);
}
.prose .fg p.fg-fl-party {
    position: absolute;
    top: 0;
    margin: 0;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--black);
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
}
.prose .fg ul.fg-fl-key {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: 13px;
    color: var(--text-3);
}
.prose .fg ul.fg-fl-key li { margin: 0 0 2px; display: flex; align-items: center; gap: 8px; }
.fg-fl-ks { flex: none; width: 22px; height: 0; border-top: 1.5px solid var(--black); }
.fg-fl-ks.is-back { border-top: 2px dashed var(--mm-a, var(--black)); }
.fg-fl-panel .fg-stk > .fg-v { display: block; }
.fg-fl-chs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0;
}
.fg-fl-ch {
    max-width: 100%;
    text-align: left;
    line-height: 1.3;
}
.fg-fl-ch[aria-pressed="true"] { background: var(--black); color: var(--white); }
.fg-fl-reply .fg-v { display: block; }
.fg-fl-rp { display: block; font-style: italic; }
.fg-fl-vd {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 6px;
    font-size: 13px;
    font-weight: 700;
    border: 1px dashed var(--black);
}
.fg-fl-vd.is-good { background: var(--black); color: var(--white); border-style: solid; }
.prose .fg p.fg-fl-score,
.prose .fg p.fg-fl-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 700;
}
.fg-fl-mbar { flex: none; }
.fg-fl-mtrack { fill: var(--white); stroke: var(--black); stroke-width: 1; }
.fg-fl-mfill { fill: var(--mm-a, var(--black)); }
.fg-fl-mof { font-weight: 400; color: var(--text-3); }
.prose .fg ol.fg-fl-list { display: none; margin: 12px 0 0; font-size: 15px; line-height: 1.45; }
.fg--flow:not(.is-live) ol.fg-fl-list { display: block; }
.fg--flow:not(.is-live) .fg-fl-panel,
.fg--flow:not(.is-live) .fg-fl-score,
.fg--flow:not(.is-live) .fg-fl-meter,
.prose .fg--flow:not(.is-live) .fg-tools {
    display: none;
}

/* system: the drawing (node boxes over an SVG of signed arrows and loop labels), the loop buttons, the model */
.fg-sy-wide { display: none; }
.fg-sy-narrow { margin-top: 12px; }
@container (min-width: 640px) {
    .fg-sy-wide { display: block; margin-top: 12px; }
    .fg-sy-narrow { display: none; }
}
.fg-sy-draw { position: relative; }
.fg-sy-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.fg-sy-ln {
    fill: none;
    stroke: var(--black);
    stroke-width: 1.5;
}
.fg-sy-ln.is-on { stroke: var(--mm-a, var(--black)); stroke-width: 3; }
.fg-sy-ln.is-off { stroke: var(--rule-light); }
.fg-sy-ah { fill: var(--black); }
.fg-sy-dl { stroke: var(--black); stroke-width: 1.5; }
.fg-sy-sg rect { fill: var(--white); stroke: var(--black); stroke-width: 1; }
.fg-sy-sg text { font: 700 13px var(--font); fill: var(--black); }
.fg-sy-lp rect { fill: var(--white); stroke: var(--black); stroke-width: 2; }
.fg-sy-lp text { font: 700 13px var(--font); fill: var(--black); }
.fg-sy-lp.is-on rect { fill: var(--mm-a, var(--black)); }
.fg-sy-lp.is-on text { fill: var(--mm-a-ink, var(--white)); }
.fg-sy-nd {
    position: absolute;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 6px;
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    font: 700 13px/17px var(--font);
    text-align: center;
}
.fg-sy-narrow .fg-sy-nd { font-size: 12px; line-height: 15px; padding: 3px 4px; }
button.fg-sy-nd { cursor: pointer; }
.fg-sy-nd[aria-pressed="true"],
.fg-sy-nd.is-top {
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
}
.fg-sy-nd:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; z-index: 2; }
.fg-sy-mk {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.prose .fg p.fg-sy-lps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 12px 0 0;
}
.fg-sy-lb strong { margin-right: 4px; }
.fg-sy-lb[aria-pressed="true"] { background: var(--black); color: var(--white); }
.fg-sy-views { margin-top: 12px; }
.fg-sy-rule { display: block; color: var(--text-2); }
.fg-sy-panel .fg-stk > .fg-v { display: block; }
.fg-sy-model { margin-top: 16px; }
.prose .fg p.fg-sy-t {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 700;
}
.prose .fg dl.fg-sy-key {
    display: none;
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.45;
}
.fg-sy-key div { padding: 5px 0; border-bottom: 1px solid var(--rule-light); }
.fg-sy-key dt { display: inline; font-weight: 700; }
.fg-sy-key dt::after { content: ": "; }
.fg-sy-key dd { display: inline; margin: 0; }
.fg--system:not(.is-live) dl.fg-sy-key { display: block; }
.fg--system:not(.is-live) .fg-sy-lps,
.fg--system:not(.is-live) .fg-sy-panel,
.fg--system:not(.is-live) .fg-sy-views,
.fg--system:not(.is-live) .fg-sy-model .fg-in,
.prose .fg--system:not(.is-live) .fg-tools {
    display: none;
}

/* sample: sliders, the inputs in words, the histogram and its stats */
.fg-sp-ctl { margin-top: 12px; }
.prose .fg ul.fg-sp-ins {
    margin: 4px 0 12px;
    font-size: 15px;
    line-height: 1.45;
}
.prose .fg ul.fg-sp-ins li { margin: 0 0 2px; }
.fg-sp-bar { transition: none; }
.fg-sp-tk { stroke: var(--black); stroke-width: 1; }
.prose .fg p.fg-sp-ax {
    margin: 2px 0 0;
    font-size: 13px;
    text-align: center;
    color: var(--text-3);
}
.prose .fg p.fg-sp-n {
    margin: 10px 0 4px;
    font-size: 14px;
    font-weight: 700;
}
.fg-sp-svg.fg-narrow { display: none; }
@container (max-width: 559px) {
    .fg-sp-svg.fg-wide { display: none; }
    .fg-sp-svg.fg-narrow { display: block; }
}
.fg-sp .fg-chart { max-width: 640px; }
.fg-sp .fg-chart.fg-narrow { max-width: 360px; }
.fg-sp-mark .fg-ref { stroke-dasharray: 4 3; }
.fg--sample:not(.is-live) .fg-sp-ctl,
.prose .fg--sample:not(.is-live) .fg-tools {
    display: none;
}

/* the deepened entry page's sections: How to run it (each step's imperative in bold), When to use something else */
.prose ol.cat-run li,
.prose ul.cat-instead li {
    margin-bottom: 0.6em;
}
.prose ul.cat-instead a {
    font-weight: 700;
}
/* A stacked panel inside a hidden variant stays hidden: a nested variant marked current must not show through
   (visibility is inherited, and a child set visible would otherwise appear). */
.fg-stk > .fg-v:not(.is-on) .fg-v {
    visibility: hidden;
}
/* without script a listed panel shows every variant whole, nested current values included */
.fg:not(.is-live) .fg-stk--list > .fg-v .fg-v.is-on {
    visibility: visible;
}
.prose .fg--gridx p.fg-tools,
.prose .fg--tree p.fg-tools,
.prose .fg--flow p.fg-tools,
.prose .fg--system p.fg-tools,
.prose .fg--sample p.fg-tools {
    margin: 16px 0 0;
}
.fg-tr-xsvg { z-index: 1; pointer-events: none; }

/* the additional modes: network, rounds, the row-choice grid, calc plots (container queries need the figure as the
   container, as for the five types above) */
.prose figure.fg--network,
.prose figure.fg--rounds,
.prose figure.fg--gridrows,
.prose figure.fg--calcplot {
    container-type: inline-size;
}
.prose .fg--rubricx p.fg-tools,
.prose .fg--network p.fg-tools,
.prose .fg--rounds p.fg-tools,
.prose .fg--payoff p.fg-tools,
.prose .fg--gridrows p.fg-tools {
    margin: 16px 0 0;
}

/* flow with stage values: the value in each box, the bottleneck tag, the steppers and the result band */
.fg-fl-val {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font: 700 13px/17px var(--font);
}
.fg-fl-neck {
    padding: 0 4px;
    font-size: 11px;
    line-height: 16px;
    background: var(--black);
    color: var(--white);
}
.fg-fl-neck.is-off { visibility: hidden; }
.fg-fl-vals { margin-top: 12px; border-top: 1px solid var(--black); }
.prose .fg p.fg-fl-vh { margin: 8px 0 4px; font-size: 14px; font-weight: 700; }
.fg-fl-vrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: 15px;
}
.prose .fg p.fg-fl-res { margin-top: 12px; }

/* rubric, options mode */
.fg-rx { margin-top: 12px; border-top: 1px solid var(--black); }
.fg-rx-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule-light);
}
.prose .fg .fg-rx-row p.fg-rb-text { margin: 0; font-size: 15px; line-height: 1.4; }
.fg-rx-cells {
    display: grid;
    grid-template-columns: 96px repeat(var(--n), 104px);
    gap: 6px;
    align-items: center;
    justify-items: center;
}
.fg-rx-head { font-size: 13px; font-weight: 700; padding: 6px 0; }
.fg-rx-head .fg-rx-cells span { text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 104px; }
.fg-rx-c, .fg-rx-w { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fg-rx .fg-rb-cl { display: none; font-size: 11px; color: var(--text-3); max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-rx-must { font-size: 12px; font-weight: 700; padding: 1px 6px; border: 1px solid var(--black); }
.fg-rx-pf {
    width: 72px;
    padding: 6px 0;
    font: 700 13px/1 var(--font);
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
}
.fg-rx-pf[aria-pressed="false"] { border-style: dashed; color: var(--text-3); }
.fg-rx-pf:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.fg-rx-tot .fg-num { font-size: 17px; }
.fg-rx-out {
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    border: 1px dashed var(--black);
}
.fg-rx-out.is-off { visibility: hidden; }
.fg-rx-rank .fg-rb-rt .fg-stk { display: inline-grid; }
.fg-rx-why { margin-left: 8px; font-size: 13px; color: var(--text-3); }
@container (max-width: 640px) {
    .fg-rx-row { grid-template-columns: minmax(0, 1fr); }
    .fg-rx-head { display: none; }
    .fg-rx .fg-rb-cl { display: block; }
    .fg-rx-cells { grid-template-columns: 80px repeat(var(--n), minmax(0, 1fr)); justify-items: start; }
    .fg-rx .fg-step { grid-template-columns: 26px 2.4ch 26px !important; }
    .fg-rx .fg-stb { width: 26px; height: 26px; font-size: 16px; }
    .fg-rx-pf { width: 60px; }
}
.prose figure.fg--rubricx .fg-result { margin-top: 12px; }

/* network */
.fg-nw-draw { position: relative; }
.fg-nw-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.fg-nw-tie { stroke: var(--black); stroke-width: 1.5; }
.fg-nw-tie.is-out { stroke: var(--rule-light); stroke-dasharray: 4 3; }
.fg-nw-sq { fill: var(--black); stroke: var(--white); stroke-width: 2; }
.fg-nw-sq.is-sel { fill: var(--mm-a, var(--black)); }
.fg-nw-sq.is-out { fill: var(--white); stroke: var(--rule-light); }
.fg-nw-nd {
    position: absolute;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: var(--black);
    font: 700 13px/16px var(--font);
    text-align: center;
    cursor: pointer;
}
.fg-sy-narrow .fg-nw-nd { font-size: 12px; line-height: 15px; }
.fg-nw-nd[aria-pressed="true"] { background: var(--mm-a, var(--black)); color: var(--mm-a-ink, var(--white)); }
.fg-nw-nd.is-out { color: var(--text-3); text-decoration: line-through; }
.fg-nw-nd:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.fg-nw-ms { margin-top: 12px; }
.prose .fg p.fg-nw-top { margin: 10px 0 0; font-size: 14px; color: var(--text-2); }
.fg-nw-top .fg-stk strong .fg-stk { display: inline-grid; }
.fg-nw-vals { display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.fg-nw-vals .fg-num { width: auto; }
.fg-nw-table { font-size: 14px; margin-top: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fg-nw-table th, .fg-nw-table td { padding: 4px 10px; border-bottom: 1px solid var(--rule-light); text-align: right; }
.fg-nw-table th[scope="row"], .fg-nw-table thead th:first-child { text-align: left; }
.fg--network.is-live .fg-nw-table { display: none; }
.fg--network:not(.is-live) .fg-nw-ms,
.fg--network:not(.is-live) .fg-nw-panel,
.prose .fg--network:not(.is-live) .fg-tools { display: none; }

/* calc plots */
.fg-cp { margin-top: 4px; }
.fg-cp-svg.fg-narrow { display: none; }
@container (max-width: 559px) {
    .fg-cp-svg.fg-wide { display: none; }
    .fg-cp-svg.fg-narrow { display: block; }
}
.fg-cp-grid { stroke: var(--rule-light); stroke-width: 1; }
.fg-cp-mine { fill: none; stroke: var(--mm-a, var(--black)); stroke-width: 3; }
.fg-cp-dot { fill: var(--mm-a, var(--black)); stroke: var(--black); stroke-width: 1.5; }
.fg-cp-other { fill: none; stroke: var(--black); stroke-width: 1.5; }
.fg-cp-o1 { stroke-dasharray: 6 4; }
.fg-cp-o2 { stroke-dasharray: 2 3; }
.fg-cp-km, .fg-cp-ko { display: inline-block; width: 22px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 3px solid var(--mm-a, var(--black)); }
.fg-cp-ko { border-top: 1.5px solid var(--black); }
.fg-cp-ko.fg-cp-o1 { border-top-style: dashed; }
.fg-cp-ko.fg-cp-o2 { border-top-style: dotted; }
.fg-cp-o3 { stroke-dasharray: 10 3 2 3; }
.fg-cp-ko.fg-cp-o3 { height: 2px; border-top: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='2'%3E%3Cpath d='M0 1h10M13 1h2' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x; }
.fg-cp-region { fill: #f6e3f2; fill: color-mix(in srgb, var(--mm-a, #000000) 14%, #ffffff); }
.fg-cp-frame { fill: none; stroke: var(--black); stroke-width: 1; }
.fg-cp-curve { fill: none; stroke: var(--black); stroke-width: 2; }
.fg-cp-pt { fill: var(--mm-a, var(--black)); stroke: var(--black); stroke-width: 2; }
.fg-cp-rl { font: 700 12px var(--font); fill: var(--text-2); }
.fg-cp-ylab { text-anchor: middle; }
.prose .fg p.fg-cp-band { margin-top: 10px; }

/* payoff matrix */
.fg-po { display: grid; grid-template-columns: 22px minmax(0, 1fr); margin-top: 12px; }
.prose .fg p.fg-po-colp { grid-column: 2; margin: 0 0 4px; font-size: 13px; font-weight: 700; text-align: center; }
.prose .fg p.fg-po-rowp { grid-column: 1; grid-row: 2; margin: 0; font-size: 13px; font-weight: 700; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.fg-po-grid {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(64px, auto) repeat(var(--c), minmax(0, 1fr));
    border-top: 2px solid var(--black);
    border-left: 2px solid var(--black);
}
.fg-po-grid > * { border-right: 2px solid var(--black); border-bottom: 2px solid var(--black); min-width: 0; }
.fg-po-ch, .fg-po-rh { padding: 6px; font-size: 13px; font-weight: 700; background: var(--filter-hover, #eeeeee); }
.fg-po-ch { text-align: center; }
.fg-po-cell { display: flex; flex-direction: column; gap: 6px; padding: 6px; }
.fg-po-cell.is-eq { background: #f6e3f2; background: color-mix(in srgb, var(--mm-a, #000000) 14%, #ffffff); }
.fg-po-v { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; }
.fg-po-who { width: 100%; font-weight: 700; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-po-br { font-size: 11px; font-weight: 700; padding: 0 4px; border: 1px solid var(--black); }
.fg-po-br.is-off, .fg-po-eq.is-off { visibility: hidden; }
.fg-po-eq { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 5px; background: var(--black); color: var(--white); }
.fg-po .fg-step { grid-template-columns: 26px 3ch 26px !important; }
.fg-po .fg-stb { width: 26px; height: 26px; font-size: 16px; }
.prose .fg p.fg-po-n { margin: 10px 0 4px; font-size: 15px; font-weight: 700; }
.prose .fg ul.fg-po-list { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.45; }
.prose .fg ul.fg-po-list li { margin: 0; padding: 4px 0; border-bottom: 1px solid var(--rule-light); }
.fg-po-list .fg-stk { display: inline-grid; }
.prose .fg--payoff:not(.is-live) .fg-tools { display: none; }
.fg--payoff:not(.is-live) .fg-stb { visibility: hidden; }

/* grid, rows mode */
.fg-gr { margin-top: 12px; border-top: 2px solid var(--black); }
.fg-gr-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
    gap: 6px 12px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--rule-light);
}
.prose .fg p.fg-gr-lab { margin: 0; font-size: 14px; font-weight: 700; }
.fg-gr-opts { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.fg-gr-o {
    min-width: 0;
    padding: 8px 4px;
    font: 700 13px/1.2 var(--font);
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    overflow-wrap: anywhere;
}
.fg-gr-o:hover { background: var(--filter-hover, #eeeeee); }
.fg-gr-o[aria-pressed="true"] { background: var(--mm-a, var(--black)); color: var(--mm-a-ink, var(--white)); }
.fg-gr-o:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
@container (max-width: 559px) {
    .fg-gr-row { grid-template-columns: minmax(0, 1fr); }
}
.prose .fg p.fg-gr-none { margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.prose .fg ul.fg-gr-cks { list-style: none; margin: 4px 0 0; padding: 0; font-size: 15px; line-height: 1.45; }
.prose .fg ul.fg-gr-cks li { margin: 0; padding: 4px 0 4px 10px; border-left: 3px dashed var(--black); }
.prose .fg ul.fg-gr-cks li.is-good { border-left-style: solid; }
.fg-gr-ck.is-off, .fg-gr-none.is-off { visibility: hidden; }
.prose figure.fg--gridrows .fg-outs { margin-top: 12px; }
.fg--gridrows:not(.is-live) .fg-gr-ck.is-off { visibility: visible; }
.prose .fg--gridrows:not(.is-live) .fg-tools { display: none; }
.mm-btn.is-off * { visibility: hidden; }
.fg-nw-nd { background: var(--white); }
/* result bands of the Thinking Tools modes: the stacked value reads at the band's size, not as its small label */
.fg-fl-res strong span,
.fg-rx-verdict > .fg-stk *,
.fg-cp-band > .fg-stk * {
    font-size: inherit;
    letter-spacing: 0;
    text-transform: none;
}
.fg-rx-verdict > .fg-stk,
.fg-cp-band > .fg-stk {
    font-size: 19px;
    letter-spacing: 0;
    text-transform: none;
}
.fg-fl-res strong .fg-stk { display: inline-grid; }
.mm-btn.is-off .mm-lbl > span.is-on { visibility: hidden; }
.fg-nw-nd[aria-pressed="true"].is-out { color: var(--mm-a-ink, var(--white)); }
.prose .fg--flow:not(.is-live) p.fg-fl-score,
.prose .fg--flow:not(.is-live) p.fg-fl-meter,
.prose .fg--flow:not(.is-live) div.fg-fl-vals { display: none; }
.prose .fg ol.fg-fl-list ul { margin: 4px 0 6px; font-size: 15px; }
.prose .fg ol.fg-fl-list li { font-size: 15px; }
/* without script, the live-only lines are absent (stated at the prose specificity they are set at) */
.prose .fg--system:not(.is-live) p.fg-sy-lps,
.prose .fg--tree:not(.is-live) p.fg-tr-xs,
.prose .fg--tree:not(.is-live) p.fg-tr-mkc,
.prose .fg--gridx:not(.is-live) p.fg-gx-score,
.prose .fg--network:not(.is-live) p.fg-nw-top {
    display: none;
}

/* rubric, options mode, revised: headers wrap (two lines at most, reserved alike for every header), the ranked
   list's names are never cut (an Out note takes its own line), and under 640px each criterion lists its weight and
   its options one per line, the option's full name beside its control, so four options never push the page wide */
.fg-rx-head .fg-rx-cells span {
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.2;
    min-height: 2.4em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.prose .fg .fg-rx-rank li { flex-wrap: wrap; }
.fg-rx-rank .fg-rb-rt { white-space: normal; overflow: visible; }
.fg-rx-why { flex-basis: 100%; margin: 0 0 0 calc(var(--tw, 3ch) + 12px); }
@container (max-width: 640px) {
    .fg-rx-cells {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        width: 100%;
        gap: 4px;
    }
    .fg-rx-c, .fg-rx-w {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
    }
    .fg-rx-w { justify-content: flex-start; }
    .fg-rx .fg-rb-cl {
        flex: 1;
        min-width: 0;
        max-width: none;
        font-size: 14px;
        color: var(--black);
        white-space: normal;
        overflow: visible;
    }
    .fg-rx-w .fg-rb-cl { color: var(--text-3); }
    .fg-rx-w:empty { display: none; }
    .fg-rx .fg-step { grid-template-columns: 30px 2.6ch 30px !important; }
    .fg-rx .fg-stb { width: 30px; height: 30px; font-size: 18px; }
    .fg-rx-pf { width: 72px; }
    .fg-rx-tot .fg-rx-c .fg-num { margin-left: auto; }
}
.fg-tr-val { flex-wrap: wrap; row-gap: 2px; }

/* flow stage values keep their fixed tabular slot (sized by the build to the widest value the range allows) */
.fg-fl-val .fg-num, .fg-fl-res strong .fg-num { text-align: right; }
/* a two-sided judgment (calc input `pair`): its two ends and the middle named under the slider */
.fg-in-ends {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
}
.fg-in-ends span:nth-child(2) { text-align: center; }
.fg-in-ends span:last-child { text-align: right; }
.fg-fl-neck { white-space: nowrap; }
.fg-fl-val { flex-wrap: wrap; row-gap: 2px; }

/* calc plots: a number line of ranges (bars, points, the overlap zone) and opposing forces from a center line */
.fg-cp-bar { fill: var(--black); }
.fg-cp-b1 { fill: var(--white); stroke: var(--black); stroke-width: 2; }
.fg-cp-b2 { fill: var(--text-3); }
.fg-cp-b3 { fill: var(--white); stroke: var(--black); stroke-width: 1.5; stroke-dasharray: 4 3; }
.fg-cp-zone { fill: #f6e3f2; fill: color-mix(in srgb, var(--mm-a, #000000) 14%, #ffffff); stroke: var(--mm-a, var(--black)); stroke-width: 1; }
.fg-cp-zone.is-off, .fg-cp-zl.is-off { visibility: hidden; }
.fg-cp-zl, .fg-cp-fh { font: 700 12px var(--font); fill: var(--black); }
.fg-cp-bl { font: 600 12px var(--font); fill: var(--text-2); }
.fg-cp-pm { fill: var(--mm-a, var(--black)); stroke: var(--black); stroke-width: 1.5; }
.fg-cp-pl { font: 600 11px var(--font); fill: var(--black); }
.fg-cp-fd { fill: var(--mm-a, var(--black)); }
.fg-cp-fr { fill: var(--black); }
.fg-cp-net { fill: var(--white); stroke: var(--black); stroke-width: 2; }
.fg-cp-center { stroke: var(--black); stroke-width: 1.5; }
.fg-cp-band .fg-num { text-align: right; }
.fg-sp-w { font-weight: inherit; }

/* general grid, round 3: slots packed in columns (fixed positions: a slot per item in every cell and the tray, only
   its own item visible), a spanning region drawn as one field, the resting key in the panel */
.prose .fg .fg-gx-cell ul.fg-gx-tags,
.prose .fg .fg-gx-tray ul.fg-gx-tags {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--tw, 150px), 100%), 1fr));
    gap: 4px;
}
.fg-gx-tray .fg-gx-tag { max-width: 100%; }
.fg-gx-cell {
    min-height: 72px;
    outline: 0;
    border-right: 1px solid var(--rule-light);
    border-bottom: 1px solid var(--rule-light);
}
.fg-gx-cell.fg-gx-jr, .fg-gx-cell.fg-gx-er { border-right-color: transparent; }
.fg-gx-cell.fg-gx-jb, .fg-gx-cell.fg-gx-eb { border-bottom-color: transparent; }
.fg-gx-k { display: block; margin-bottom: 2px; }
/* tree: a box with a checkbox keeps its text above the checkbox row; a button's content starts at its top */
.fg-tr-box .fg-tr-sel { display: flex; flex-direction: column; justify-content: flex-start; }
.fg-tr-box.has-mk .fg-tr-sel { height: calc(100% - 22px); }
.fg-cp-pbar { fill: var(--mm-a, var(--black)); }
.fg-cp-mine.is-ink { stroke: var(--black); stroke-width: 2; }
.fg-cp-dot.is-ink { fill: var(--white); stroke: var(--black); }
.fg-cp-km.is-ink { border-top-color: var(--black); border-top-width: 2px; }
.fg-cp-gap { stroke: var(--black); stroke-width: 1.5; stroke-dasharray: 6 4; }
.fg-cp-gl { font: 700 12px var(--font); fill: var(--black); }
.prose .cat-runin--plain { text-decoration: none; }
/* a grid cell wide enough packs at least two slot columns (tags cut, full names in the panel and the list) */
.fg-gx-cell { container-type: inline-size; }
@container (min-width: 240px) {
    .prose .fg .fg-gx-cell ul.fg-gx-tags { grid-template-columns: repeat(auto-fill, minmax(min(var(--tw, 150px), calc(50% - 2px)), 1fr)); }
}
/* each item carries its number: in a narrow cell (under 160px) the tag shows only the number, so the slots pack
   five or six to a row; the tray, the list under the grid, and the panel give the names */
.fg-gx-tag { display: flex; gap: 6px; align-items: center; }
.fg-gx-no { flex: none; font-variant-numeric: tabular-nums; opacity: 0.75; }
.fg-gx-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fg-gx-lno { display: inline-block; min-width: 1.2em; padding: 0 3px; margin-right: 2px; background: var(--black); color: var(--white); text-align: center; font-size: 12px; }
@container (max-width: 159px) {
    .prose .fg .fg-gx-cell ul.fg-gx-tags { grid-template-columns: repeat(auto-fill, 28px); }
    .fg-gx-cell .fg-gx-nm { display: none; }
    .fg-gx-cell .fg-gx-tag { justify-content: center; padding: 0; }
    .fg-gx-cell .fg-gx-no { opacity: 1; }
}
/* a shared rounds panel: the second line dashed, the third dotted, each named in the panel's key */
.fg-line.fg-line--1 { stroke-dasharray: 6 4; }
.fg-line.fg-line--2 { stroke-dasharray: 2 3; }
.fg-kline--1, .fg-kline--2 { height: 0; background: transparent; border-top: 2px dashed var(--black); vertical-align: middle; }
.fg-kline--2 { border-top-style: dotted; }
.fg-gx-panel .fg-stk > .fg-v { align-self: start; }
.fg-gx-pl { display: block; margin-bottom: 4px; }
/* rows-mode checks: slots, each a stack of every check; a lit check shows its rule, the default line none */
.prose .fg ul.fg-gr-cks li.fg-gr-slot { padding: 0; border: 0; }
.fg-gr-slot .fg-gr-ck { display: block; padding: 4px 0 4px 10px; border-left: 3px dashed var(--black); }
.fg-gr-slot .fg-gr-ck.is-good { border-left-style: solid; }
.fg-gr-slot .fg-gr-none { display: block; padding: 4px 0; font-weight: 700; }
.prose .fg ul.fg-gr-all { display: none; margin: 8px 0 0; font-size: 15px; }
.fg--gridrows:not(.is-live) ul.fg-gr-all { display: block; }
/* the flow meter: the label may wrap above; the bar, the count, and "of N" stay on one line */
.prose .fg p.fg-fl-meter { flex-wrap: wrap; row-gap: 4px; }
.fg-fl-meter .fg-num, .fg-fl-mof { white-space: nowrap; flex: none; }
@container (max-width: 559px) {
    .fg-fl-ml { flex-basis: 100%; }
}
/* two-line tags (a grid with a name over about 16 characters): every slot two lines tall, the name wrapping */
.fg-gx.is-two .fg-gx-tag { height: 40px; white-space: normal; line-height: 15px; text-align: left; }
.fg-gx.is-two .fg-gx-nm { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
@container (max-width: 159px) {
    .fg-gx.is-two .fg-gx-cell .fg-gx-tag { height: 26px; }
}
/* rows-mode outputs: a fixed value column, left-aligned; stacked under 560px */
.fg-gr-outs .fg-out { grid-template-columns: minmax(0, 1fr) minmax(8em, 40%); }
.fg-gr-outs .fg-out dd { text-align: left; }
.fg-gr-outs .fg-out dd .fg-stk { display: grid; }
@container (max-width: 559px) {
    .fg-gr-outs .fg-out { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
/* y tick labels may take two lines inside their row's band (vertical text wraps across a 30px column) */
.fg-gx-plot { grid-template-columns: 20px 30px minmax(0, 1fr); }
.fg-gx-yticks span { line-height: 1.1; overflow-wrap: anywhere; display: flex; align-items: center; justify-content: center; }

/* general grid, marker design (the lead's decision): inside a cell a placed item is a 24px numbered square (item i
   always in slot i, every slot reserved); the tray is the legend, every item's numbered tag whole, with the region
   it sits in on a reserved line under it */
.prose .fg .fg-gx-cell ul.fg-gx-tags {
    grid-template-columns: repeat(auto-fill, 24px);
    gap: 4px;
}
.fg-gx-cell { min-height: 60px; }
.fg-gx-mk {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: var(--black);
    color: var(--white);
    font: 700 12px/1 var(--font);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    pointer-events: auto;
}
.fg-gx-mk .fg-gx-nm { display: none; }
.fg-gx-mk .fg-gx-no { opacity: 1; }
.fg-gx-mk[aria-pressed="true"] { background: var(--mm-a, var(--black)); color: var(--mm-a-ink, var(--white)); }
.fg-gx-mk:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.prose .fg ul.fg-gx-legend {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 6px 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}
.prose .fg ul.fg-gx-legend li { margin: 0; min-width: 0; }
.fg-gx .fg-gx-legend .fg-gx-tag,
.fg-gx.is-two .fg-gx-legend .fg-gx-tag {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 26px;
    padding: 4px 6px;
    white-space: normal;
    text-align: left;
    line-height: 15px;
    pointer-events: auto;
}
.fg-gx .fg-gx-legend .fg-gx-nm { display: block; overflow: visible; -webkit-line-clamp: unset; }
.fg-gx-where {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    color: var(--text-3);
}
.fg-gx-rl {
    height: auto;
    min-height: 16px;
    line-height: 14px;
    white-space: normal;
    overflow: visible;
    margin-bottom: 4px;
}
/* calc xy plot: region words sit on a white halo, so the curve never runs through them unreadably */
.fg-cp-rl { paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }
.fg-tr-box.has-tog .fg-tr-sel { padding-right: 26px; }
.fg-cp-zero { stroke: var(--black); stroke-width: 1.5; }
/* markers win over every earlier tag rule (two-line tags, narrow cells): a 24px numbered square, no name */
.fg-gx .fg-gx-cell .fg-gx-mk,
.fg-gx.is-two .fg-gx-cell .fg-gx-mk {
    display: flex;
    width: 24px;
    height: 24px;
    max-width: none;
    padding: 0;
    gap: 0;
    justify-content: center;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
}
.fg-gx .fg-gx-cell .fg-gx-mk .fg-gx-nm,
.fg-gx.is-two .fg-gx-cell .fg-gx-mk .fg-gx-nm { display: none; }
.fg-gx .fg-gx-cell .fg-gx-mk .fg-gx-no { opacity: 1; }
.prose .fg .fg-gx .fg-gx-cell ul.fg-gx-tags { grid-template-columns: repeat(auto-fill, 24px); gap: 4px; }
.fg-cp-halo { paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }
/* rows-mode options: a long word hyphenates (the page is lang="en"), and under 560px the options wrap to as many
   per row as keep a word like "Segmentation" whole (at least 120px each) */
.fg-gr-o { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
@container (max-width: 559px) {
    .fg-gr-opts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); }
}
/* calc declutter plot: every decoration drawn, shown or hidden in place by its 0 or 1 input (flat, no 3D) */
.fg-dc-frame { fill: var(--filter-hover, #eeeeee); stroke: var(--black); stroke-width: 2; }
.fg-dc-grid line { stroke: var(--text-3); stroke-width: 1.5; }
.fg-dc-legend rect { fill: var(--white); stroke: var(--black); stroke-width: 1.5; }
.fg-dc-legend rect.fg-dc-sw { fill: var(--mm-a, var(--black)); stroke: none; }
.fg-dc-legend text { font: 600 12px var(--font); fill: var(--black); }
.fg-cp-ride { fill: var(--mm-a, var(--black)); stroke: var(--black); stroke-width: 2; }
.fg-cp-band > .fg-stk strong { font-size: inherit; }
.fg-calc .fg-out dd .fg-stk { text-align: right; }

/* Organizational Structures figures (build.py org and its modes; assets/js/figures-org.js; schemas in
   docs/org-structures-notes/FIGURE-TYPES.md). Black and white, the page's own subject colors (--mm-a for the
   selected or favorable thing), Filter Wash and Hairline Grey, square corners, no shadow. Drawings are laid out by the
   build in fixed pixels, 640 when the figure has the room and 358 otherwise; every changing panel holds all its
   variants in one cell (.fg-stk), and a selection only fills or outlines what is already drawn. */
figure.fg--org { container-type: inline-size; }
.prose .fg p.fg-says { font-size: 15px; line-height: 1.5; color: var(--text-2); margin: 14px 0 0; }
.prose .fg p.fg-source { font-size: 13px; line-height: 1.45; color: var(--text-3); margin: 6px 0 0; }
.os-wide { display: none; }
.os-narrow { display: block; }
@container (min-width: 640px) {
    .os-wide { display: block; }
    .os-narrow { display: none; }
}
.os-org { margin-top: 10px; }
.os-draw { position: relative; }
.os-svg { display: block; overflow: visible; }
.os-band { stroke: var(--rule-light); stroke-width: 1; }
.os-lay { font: 400 12px var(--font); fill: var(--text-3); stroke: var(--white); stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; }
.os-field { fill: var(--filter-hover, #eeeeee); }
.os-ln { fill: none; stroke: var(--black); stroke-width: 1.5; }
.os-ln--dotted { stroke-dasharray: 1.5 3; stroke-linecap: round; }
.os-ln--contract { stroke-dasharray: 6 4; }
.os-ln.is-sel { stroke: var(--mm-a, var(--black)); stroke-width: 3; }
.os-lnl, .os-gl { font: 400 11px var(--font); fill: var(--text-3); stroke: var(--white); stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; }
.os-gl.on-field { stroke: var(--filter-hover, #eeeeee); }
.os-ko { fill: var(--white); }
.os-ko.on-field { fill: var(--filter-hover, #eeeeee); }
.os-u rect { fill: var(--white); stroke: var(--black); stroke-width: 2; }
.os-ut { font: 700 12px var(--font); fill: var(--black); }
.os-narrow .os-ut { font-size: 11px; }
.os-ut--tight { font-stretch: 85%; }
.os-u.is-sel rect { fill: var(--mm-a, var(--black)); }
.os-u.is-sel .os-ut { fill: var(--mm-a-ink, var(--white)); }
.os-two rect { fill: var(--black); }
.os-two text, .os-dn text { font: 700 11px var(--font); fill: var(--white); }
.os-g line { stroke: var(--black); stroke-width: 2; }
.os-g.is-sel line { stroke: var(--mm-a, var(--black)); stroke-width: 4; }
.os-m rect { fill: var(--white); stroke: var(--black); stroke-width: 2; }
.os-m text { font: 700 11px var(--font); fill: var(--black); }
.os-m.is-sel rect { fill: var(--mm-a, var(--black)); }
.os-m.is-sel text { fill: var(--mm-a-ink, var(--white)); }
.os-dn rect { fill: var(--mm-a, var(--black)); stroke: var(--black); stroke-width: 0; }
.os-dn text { fill: var(--mm-a-ink, var(--white)); }
.os-dn.is-sel rect { fill: var(--black); }
.os-dn.is-sel text { fill: var(--white); }
.os-ub {
    position: absolute;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.os-ub:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.fg--org:not(.is-live) .os-ub { display: none; }
.prose .fg p.os-key {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-2);
}
.os-k { display: inline-flex; align-items: center; gap: 6px; }
.os-k svg { flex: none; }
.os-kl {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 2px solid var(--black);
    font: 700 11px/1 var(--font);
    color: var(--black);
}
.os-kl--two { width: 16px; height: 16px; border: 0; background: var(--black); color: var(--white); }
.os-kf { display: inline-block; width: 18px; height: 14px; background: var(--filter-hover, #eeeeee); }
.os-k--note { flex-basis: 100%; }
.prose .fg div.os-panel {
    margin: 12px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--black);
    font-size: 15px;
    line-height: 1.45;
}
.os-panel .fg-stk > .fg-v { display: block; }
.os-pm { color: var(--text-2); }
.os-view { display: block; margin-top: 4px; }
.prose .fg details.os-words { margin: 12px 0 0; font-size: 15px; line-height: 1.45; }
.os-words summary { font-weight: 700; cursor: pointer; }
.prose .fg .os-words ol, .prose .fg .os-words ul { margin: 6px 0 0; padding-left: 1.3em; }

/* comparison */
.prose .fg p.os-cmp-feat { font-size: 17px; line-height: 1.45; margin: 10px 0 0; }
.os-cmp-pair { margin-top: 8px; }
.os-cmp-side { margin-top: 14px; }
.prose .fg p.os-cmp-h { font: 700 17px/1.3 var(--font); margin: 0 0 6px; }
.os-cmp-h a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1260px) {
    .prose figure.fg--org-compare { width: 740px; }
}
@container (min-width: 740px) {
    .os-cmp-pair { display: grid; grid-template-columns: 358px 358px; column-gap: 24px; }
    .os-cmp-side .os-wide { display: none; }
    .os-cmp-side .os-narrow { display: block; }
}
.prose .fg ol.os-cmp-diffs { list-style: none; margin: 14px 0 0; padding: 0; font-size: 15px; line-height: 1.45; }
.os-cmp-diffs li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; padding: 6px 0; border-top: 1px solid var(--rule-light); }
.os-dnb {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 2px solid var(--black);
    background: var(--mm-a, var(--black));
    color: var(--mm-a-ink, var(--white));
    font: 700 12px/1 var(--font);
    cursor: pointer;
}
.os-dnb[aria-pressed="true"] { background: var(--black); color: var(--white); }
.os-dnb:focus-visible, .os-row:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; position: relative; z-index: 1; }
.prose .fg p.os-cmp-count { font-weight: 700; font-size: 15px; margin: 14px 0 0; }
.prose .fg ul.os-cmp-dims { margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; }
.os-cmp-dims li { padding: 4px 0; border-top: 1px solid var(--rule-light); }
.os-cmp-dn { display: block; color: var(--text-3); font-size: 13px; }

/* profile and fit strip: rows are buttons */
.os-rows { margin-top: 10px; }
.os-wide.os-rows { width: 640px; max-width: 100%; }
.os-row {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 6px;
    border: 0;
    border-top: 1px solid var(--rule-light);
    background: var(--white);
    color: var(--black);
    font: 400 15px/1.3 var(--font);
    text-align: left;
    cursor: pointer;
}
.os-row[aria-pressed="true"] { background: var(--filter-hover, #eeeeee); }
.os-row-h { display: flex; align-items: baseline; gap: 8px; }
.os-row-n { font-weight: 700; font-size: 15px; }
.os-row-b { margin-left: auto; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.os-tag { flex: none; padding: 1px 4px; border: 1px solid var(--black); font: 700 11px/1.2 var(--font); }
.os-frame { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 6px; border: 2px solid var(--black); background: var(--white); }
.os-seg { padding: 4px 5px; border-left: 1px solid var(--black); font-size: 12px; line-height: 1.25; }
.os-seg:first-child { border-left: 0; }
.os-seg.is-on { background: var(--mm-a, var(--black)); color: var(--mm-a-ink, var(--white)); }
.os-seg.is-alt { outline: 3px solid var(--black); outline-offset: -3px; }
.os-pf-ch { display: block; margin-top: 2px; font-size: 14px; }
.os-sqs { display: flex; gap: 4px; margin-top: 4px; }
.os-sq { width: 14px; height: 14px; box-sizing: border-box; border: 2px solid var(--black); background: var(--white); }
.os-sq.is-on { background: var(--mm-a, var(--black)); }
.os-sq.is-alt { outline: 2px solid var(--black); outline-offset: 1px; }
.os-ft-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.os-ft-row .os-row-h { flex-wrap: wrap; row-gap: 2px; }
.os-ft-row .os-row-b { margin-left: 0; flex-basis: 100%; }
.os-fcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 6px; }
.os-ft-nrow .os-fcs { margin-top: 6px; }
.os-fc {
    display: block;
    padding: 4px 6px;
    border: 2px solid var(--white);
    font-size: 12px;
    line-height: 1.25;
}
.os-fc strong { display: block; font-size: 13px; }
.os-fc.is-fits { background: var(--mm-a, var(--black)); border-color: var(--mm-a, var(--black)); color: var(--mm-a-ink, var(--white)); }
.os-fc.is-partial { background: var(--filter-hover, #eeeeee); border-color: var(--filter-hover, #eeeeee); }
.os-fc.is-strain { background: var(--white); border: 2px dashed var(--black); }
.os-fc.is-contested { background: var(--white); border: 1px solid var(--black); padding: 5px 7px; }
.os-fc.os-set { outline: 3px solid var(--black); outline-offset: 1px; }

/* Try the fit */
.os-tf { margin-top: 10px; }
.os-tf-row { margin-bottom: 6px; }
.os-tf-n { display: block; margin-bottom: 4px; font: 700 14px/1.25 var(--font); }
.os-tf-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-left: 2px; }
.os-tf-seg .fg-segb { margin: 0 0 0 -2px; min-height: 52px; padding: 6px 2px; font-size: 12px; line-height: 1.2; text-align: center; overflow-wrap: break-word; hyphens: auto; }
@container (min-width: 640px) {
    .os-tf-row { display: grid; grid-template-columns: 160px 480px; align-items: center; }
    .os-tf-n { margin: 0; padding-right: 10px; }
    .os-tf-seg .fg-segb { padding: 6px 4px; font-size: 13px; }
}
/* a phone's 89px segments: the face's width axis keeps the longest one-word level ("Unpredictable", 80px at 12px)
   whole where a browser has no hyphenation for it */
@container (max-width: 459px) {
    .os-tf-seg .fg-segb { font-stretch: 90%; }
}
.prose .fg p.os-tf-count, .prose .fg p.os-tf-rank { margin: 12px 0 0; font-size: 15px; line-height: 1.45; }
.prose .fg p.os-tf-rank { margin-top: 4px; }
.os-tf-rk { display: block; font-size: 13px; color: var(--text-3); }
.os-tf-rank .fg-stk .fg-num { width: auto; font-weight: 700; }
.os-tf-v { font-weight: 700; }
.prose .fg ul.os-tf-rules { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; line-height: 1.4; }
.os-tf-r { display: none; padding: 5px 0; border-top: 1px solid var(--rule-light); }
.os-tf-r.is-on { display: block; }
.prose .fg p.os-tf-rule { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.os-tf-tools a.mm-btn { display: inline-block; line-height: 17px; padding: 4px 8px; font-size: 13px; color: var(--black); text-decoration: none; }
.os-tf-tools a.mm-btn:hover { color: var(--white); }
.os-tf-print { margin-top: 10px; font-size: 14px; line-height: 1.4; }
.prose .fg .os-tf-print p.os-tf-ph { margin: 0; font-weight: 700; font-size: 14px; }
.prose .fg .os-tf-print ul { margin: 4px 0 0; padding-left: 1.2em; }
.fg--org-try.is-live .os-tf-print,
.fg--org-try:not(.is-live) .os-tf-sws,
.fg--org-try:not(.is-live) .os-tf-count,
.fg--org-try:not(.is-live) .os-tf-rank,
.fg--org-try:not(.is-live) .os-tf-rules,
.fg--org-try:not(.is-live) .os-tf-tools { display: none; }

/* the failure map: the network mode with two columns, labels beside the squares */
.fg-nw-nd--side { display: flex; align-items: center; justify-content: flex-start; text-align: left; padding: 0 4px; }
.fg-nw-nd--side.is-left { justify-content: flex-end; text-align: right; }
.fg-nw-link { color: var(--black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fg-nw-link:hover { background: var(--black); color: var(--white); }
.fg-nw-link:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

/* Organizational Structures, kit part 2: the timeline, span and layers, interdependence, integration, and lateral
   kinds (build.py os_<kind>_html; assets/js/figures-org.js), and the flow's stalled stage. The same rules as part 1:
   drawings in fixed pixels at 640 or 358 by a container query on the figure, panels holding every variant in one
   cell, a selection only filling or outlining what is drawn. Without script each prints its table or list in place
   of its controls (.os-fbs); with script the controls show and the tables hide. */
figure.fg--timeline, figure.fg--spanlayers, figure.fg--interdependence, figure.fg--integration, figure.fg--lateral { container-type: inline-size; }
.fg.is-live .os-fbs { display: none; }
.fg:not(.is-live) .os-live, .fg:not(.is-live) .os-sl-live { display: none; }
.prose .fg p.os-rule { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.os-fbs { margin-top: 10px; }
.os-fbs .os-fb + .os-fb { margin-top: 14px; }
.prose .fg table.os-fb { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35; }
.prose .fg table.os-fb caption { text-align: left; font-weight: 700; font-size: 14px; padding-bottom: 4px; }
.os-fb th, .os-fb td { padding: 4px 6px 4px 0; border-top: 1px solid var(--rule-light); text-align: left; vertical-align: top; }
.os-fb thead th { border-top: 1px solid var(--black); font-size: 13px; color: var(--text-2); }
.os-fb td { font-variant-numeric: tabular-nums; }
.os-dl { display: block; margin-top: 6px; }
.os-dt { display: block; margin-top: 6px; font: 700 13px/1.3 var(--font); }
.os-dd { display: block; }
.os-panel .fg-stk > .fg-v > strong:first-child { font-weight: 700; }
.os-sw3 { display: grid; grid-template-columns: repeat(3, 160px); margin-top: 10px; }
.os-sw3 .fg-segb { margin: 0 0 0 -2px; text-align: center; }
@container (max-width: 639px) {
    .os-sw3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* timeline */
.os-tl { margin-top: 10px; }
.os-tl-grid { stroke: var(--rule-light); stroke-width: 1; }
.os-tl-now { stroke: var(--black); stroke-width: 1; }
.os-tl-yr, .os-tl-fl { font: 400 12px var(--font); fill: var(--text-3); }
.os-tl-nowl { font-weight: 700; fill: var(--black); }
.os-tl-rb { fill: transparent; }
.os-tl-rb.is-sel { fill: var(--filter-hover, #eeeeee); }
.os-tl-nm { font: 400 12px var(--font); fill: var(--black); }
.os-tl-bar { fill: var(--black); }
.os-tl-bar.is-mk { fill: var(--mm-a, var(--black)); }
.os-tl-nm.is-mk { font-weight: 700; }
.os-tl-base { stroke: var(--black); stroke-width: 1; }
.os-tl-sq { fill: var(--black); }
.os-tl-sq.is-mk { fill: var(--mm-a, var(--black)); }
.os-tl-fo { fill: none; stroke: var(--black); stroke-width: 2; visibility: hidden; }
.os-tl-fo.is-on { visibility: visible; }
.os-tl-span { fill: var(--mm-a, var(--black)); }
.os-tl-ml { font: 700 12px var(--font); fill: var(--black); stroke: var(--white); stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; }
.prose .fg p.os-tl-lh { margin: 0 0 4px; font: 700 13px/1.3 var(--font); color: var(--text-2); }
.prose .fg p.os-tl-mline { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 0; font-size: 14px; line-height: 1.4; }
.os-tl-mk { flex: none; display: inline-block; width: 12px; height: 8px; background: var(--mm-a, var(--black)); }
.os-tl-panel .fg-v > span { display: block; }
.os-tl-pt { font: 700 17px/1.3 var(--font); }
.os-tl-pt a, .os-tl-t a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.os-tl-era { color: var(--text-2); font-size: 14px; }
.os-tl-h { display: block; margin-top: 8px; font: 700 13px/1.3 var(--font); }
.os-tl-t { display: block; }
.os-tl-pn2 { display: none; }
@container (max-width: 639px) {
    .fg--timeline .os-tl-panel .fg-v[data-v^="s-"] { display: none; }
    .os-tl-pw { display: none; }
    .os-tl-pn2 { display: inline; }
}
.os-tl-list { margin-top: 14px; font-size: 15px; line-height: 1.45; }
.prose .fg ol.os-tl-ss, .prose .fg ol.os-tl-fs { margin: 0; padding: 0; list-style: none; }
.os-tl-s { padding: 8px 0; border-top: 1px solid var(--rule-light); }
.os-tl-shd { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; }
.os-tl-snm { font-weight: 700; }
.os-tl-s.is-mk .os-tl-snm::before { content: ""; display: inline-block; width: 12px; height: 8px; margin-right: 8px; background: var(--mm-a, var(--black)); }
.os-tl-shd .os-tl-era { grid-column: 1; }
.os-tl-tog {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: none;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    font: 700 16px/1 var(--font);
    cursor: pointer;
}
.os-tl-tog::before { content: "+"; }
.os-tl-tog[aria-expanded="true"]::before { content: "\2212"; }
.os-tl-tog:hover { background: var(--black); color: var(--white); }
.os-tl-tog:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.fg.is-live .os-tl-tog { display: block; }
.os-tl-sbody { display: block; }
.os-tl-sbody[hidden] { display: none; }
.os-tl-fl2 { margin-top: 14px; }
.os-tl-fs li { padding: 3px 0; border-top: 1px solid var(--rule-light); font-size: 14px; }
.os-tl-fs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fg.is-live .os-tl-fl2 { display: none; }
@container (min-width: 640px) {
    .fg--timeline.is-live .os-tl-list { display: none; }
}

/* span and layers */
.os-sl { margin-top: 12px; }
.prose .fg ul.os-sl-outs { margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--black); }
.os-sl-o { padding: 8px 0; border-bottom: 1px solid var(--rule-light); }
.os-sl-o .fg-out { padding: 0; border: 0; }
.os-sl-dt { font-weight: 700; }
.os-sl-v { text-align: right; font-variant-numeric: tabular-nums; }
.os-sl-note { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.os-sl-rule { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.os-sl-rule math { font-size: 15px; color: var(--black); }

/* interdependence */
.os-id-draw { margin-top: 12px; }
.os-id-draw .fg-stk > .fg-v { display: block; }
.os-id-svg { display: block; }
.os-id-u { fill: var(--white); stroke: var(--black); stroke-width: 2; }
.os-id-t { font: 700 12px var(--font); fill: var(--black); }
.os-id-ln { stroke: var(--black); stroke-width: 1.5; fill: none; }
.os-id-ah { fill: var(--black); }

/* integration */
.prose .fg p.os-ig-h { margin: 10px 0 0; font: 700 14px/1.3 var(--font); }
.prose .fg ul.os-ig-or { margin: 4px 0 0; padding-left: 1.2em; font-size: 15px; line-height: 1.4; }

/* lateral */
.prose .fg ol.os-lt-rungs { display: flex; flex-direction: column-reverse; gap: 6px; width: 358px; max-width: 100%; margin: 12px 0 0; padding: 0; list-style: none; }
.os-lt-r { box-sizing: border-box; height: 38px; padding: 0 10px; display: flex; align-items: center; border: 2px solid var(--black); background: var(--white); font: 700 14px/1.2 var(--font); }
.os-lt-r.is-on { background: var(--mm-a, var(--black)); color: var(--mm-a-ink, var(--white)); }
.os-lt-tools .mm-btn:disabled { background: var(--white); color: var(--text-3); border-color: var(--rule-light); cursor: default; }
.prose .fg p.os-lt-oth { margin: 10px 0 0; font-size: 14px; line-height: 1.45; }
.os-lt-lv { display: block; margin-top: 4px; font-size: 14px; }
.prose .fg ol.os-lt-list { margin: 0; padding-left: 1.3em; font-size: 15px; line-height: 1.45; }

/* the flow's stalled stage (the matrix step-through) */
.fg-fl-st.is-stall { border-style: dashed; }
.fg-fl-stall { display: inline-block; margin-top: 4px; padding: 0 4px; background: var(--black); color: var(--white); font: 700 11px/16px var(--font); }
.os-pf-lv { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--text-2); }

/* ── Organizational Structures: the build's own parts (build.py os_form_page, os_thinkers_page, os_ledger,
   os_explorer_page; DESIGN.md, Structures Explorer and Form Pages). The explorer's views are source.html's and
   theme.css's; the bar, the view switch, the no-script note and Browse are the build's and are styled here. ── */
.os-led [hidden],
.os-thk [hidden],
.os-explorer [hidden] {
    display: none !important;
}
.cat-count [data-osf-count] {
    display: inline-block;
    min-width: var(--cat-cw, 3ch);
    text-align: right;
}
/* the form page: the ledger count and the case's source line in 13px Slate, the thinking's names underlined */
.prose p.os-note {
    margin-top: -0.4em;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-3);
}
.prose p.os-note a {
    color: inherit;
}
.prose p.os-note a:hover {
    color: var(--black);
    text-decoration-thickness: 2px;
}
.prose .os-runin {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.prose .os-runin:hover {
    text-decoration-thickness: 2px;
}
.prose ul.os-works {
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--black);
}
.prose .os-works li {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: 15px;
    line-height: 1.45;
}
.piece-side .os-side-fam {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}
.piece-side .os-side-co {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-2);
}
.os-side-fam a,
.os-side .os-ul {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.os-side-fam a:hover,
.os-side .os-ul:hover {
    text-decoration-thickness: 2px;
}
.os-side-gl {
    margin: 0 0 10px;
}
.os-side-gl dt {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
}
.os-side-gl dd {
    margin: 2px 0 10px;
    font-size: 15px;
    line-height: 1.4;
}
.piece-side .os-side-mech {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.4;
}
.os-marks {
    display: inline-flex;
    flex: none;
    gap: 3px;
}
.os-ctag {
    padding: 2px 5px 1px;
    border: 1px solid var(--black);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
/* the thinkers page: a letter line of 26 fixed cells, each letter a section headline over a 12px rule */
.os-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 24px;
}
.os-letters > * {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.os-letters a {
    border: 2px solid var(--black);
}
.os-letters a:hover {
    background: var(--black);
    color: var(--white);
}
.os-letters .is-empty {
    border: 2px solid var(--rule-light);
    color: var(--text-3);
}
.os-thk .cat-controls {
    margin-bottom: 8px;
}
.os-thl {
    margin-top: 56px;
}
.os-thl .thk:first-of-type {
    margin-top: 24px;
}
.thk-head h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.thk-body h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
}
.thk-body h4 ~ h4 {
    margin-top: 18px;
}
.cat-fhead h3 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
}
/* the evidence ledger, inside What the Research Found's prose: the catalog's controls over stacked rows */
.os-led {
    margin-top: 16px;
}
.prose .os-led p,
.prose .os-led ol,
.prose .os-led dl {
    margin: 0;
}
.os-led .cat-controls {
    padding-bottom: 20px;
}
.prose .os-led p.cat-glabel {
    font-size: 13px;
    line-height: 1.2;
}
.prose .os-led p.cat-count {
    font-size: 14px;
    line-height: 1.3;
}
.prose .os-led p.cat-empty {
    margin: 32px 0 0;
    font-size: 18px;
}
.os-led .filters .filter {
    text-align: left;
    line-height: 1.3;
}
.prose ol.os-led-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.prose .os-led-list > li {
    margin: 0;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--rule-light);
}
.os-led-list > li:target {
    background: #eeeeee;
}
.prose p.os-led-c {
    font-size: 16px;
    line-height: 1.45;
}
.prose p.os-led-f {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.5;
}
.prose dl.os-led-m {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 2px 12px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
}
.os-led-m dt,
.os-led-more dt {
    font-weight: 700;
}
.os-led-m dd,
.os-led-more dd {
    margin: 0;
    color: var(--text-2);
}
.os-led-more {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
}
.os-led-more summary {
    display: inline-flex;
    gap: 12px;
    padding: 4px 8px;
    border: 2px solid var(--black);
    font: 700 13px/1.3 var(--font);
    cursor: pointer;
    list-style: none;
}
.os-led-more summary::-webkit-details-marker {
    display: none;
}
.os-led-more summary::after {
    content: "+";
}
.os-led-more[open] summary::after {
    content: "\2212";
}
.os-led-more summary:hover {
    background: var(--black);
    color: var(--white);
}
.os-led-more dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 4px 12px;
    margin: 8px 0 0;
}
/* the explorer: the bar's view switch (five equal links in a 2px black frame; long and short labels in one grid cell),
   the no-script note, and Browse by family */
html:has(.os-bar:not([hidden])) {
    scroll-padding-top: calc(var(--band-h) + 68px + 16px);
}
.os-bar .wrap {
    display: flex;
    align-items: center;
}
.os-views {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: 48px;
    border: 2px solid var(--black);
    box-sizing: border-box;
}
.os-views a {
    display: grid;
    place-items: center;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
}
.os-views a + a {
    border-left: 2px solid var(--black);
}
.os-views a > span {
    grid-area: 1 / 1;
}
.os-views .os-vs {
    visibility: hidden;
}
.os-views a:hover:not([aria-current="true"]) {
    background: #eeeeee;
}
.os-views a[aria-current="true"] {
    background: var(--black);
    color: var(--white);
}
@media (min-width: 1260px) {
    .os-views {
        grid-template-columns: repeat(5, 200px);
        width: max-content;
    }
    .os-views a {
        font-size: 14px;
    }
}
@media (max-width: 559px) {
    .os-views a {
        padding: 0 2px;
        font-size: 12px;
    }
    .os-views .os-vl {
        visibility: hidden;
    }
    .os-views .os-vs {
        visibility: visible;
    }
}
.os-ex {
    padding-block: 40px 24px;
}
.os-noscript {
    max-width: 66ch;
    margin: 32px 0 0;
    font-size: 17px;
    line-height: 1.5;
}
.os-ex .os-noscript {
    margin-top: 0;
}
.os-browse .os-vh {
    margin: 32px 0 8px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.os-browse .os-vi {
    max-width: 66ch;
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.5;
}
.os-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 14px;
    font-weight: 600;
}
.os-jump a,
.os-brw-cmp {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.os-jump a:hover,
.os-brw-cmp:hover {
    text-decoration-thickness: 2px;
}
.os-fam {
    margin-top: 56px;
}
.os-fam-co {
    max-width: 66ch;
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-2);
}
.os-fam-co + .cat-list {
    margin-top: 16px;
    border-top: 1px solid var(--black);
}
.os-brw-cmp {
    font-size: 13px;
    line-height: 1.35;
}
@media (min-width: 860px) {
    /* Browse's rows stack only under 860px, as the rest of the explorer switches at 859/860; the shared catalog rule above stacks at max-width 860, so the 860px window takes the 12 columns back here */
    .os-brw > .cat-t {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .os-brw > .cat-t > h4 {
        grid-column: 1 / 5;
    }
    .os-brw > .cat-t > p {
        grid-column: 5 / 10;
    }
    .os-brw > .cat-t > div {
        grid-column: 10 / 13;
        padding-top: 2px;
    }
}
@media (max-width: 560px) {
    /* the catalog's spacing on a phone, so the no-match line takes the first head's place exactly */
    .os-thl,
    .os-fam {
        margin-top: 44px;
    }
}

/* ── The Thinkers Directory (build.py thinkers_directory, thk_person_page; DESIGN.md, Thinkers Directory). Black and
   white only: a person belongs to no subject. The index reuses the catalog rows, the structures thinkers page's
   letter line and letter heads, and os-filters.js; a person's page is the piece-page layout under a black band. ── */
.title-band--person h1 {
    grid-column: 1 / -1;
    max-width: 18ch;
}
.thk-dir [hidden] {
    display: none !important;
}
.thk-dir .cat-controls {
    margin-bottom: 8px;
}
/* as wide as "1,175 of 1,175 thinkers", so Clear filters beside it never slides */
.thk-dir .cat-count {
    min-width: 24ch;
}
/* the discipline select: one fixed width, reserved at its longest label ("Mathematics, statistics, and computing
   (108)", 300px of bold 14px text, plus the select's padding and border), so no choice changes it */
.thk-dir .thk-disc {
    width: 22rem;
    max-width: 100%;
}
/* "Cited in", the discipline select, and the field select share one line while the window has room for all three
   (Jawn, 2026-11-07), and wrap when it has not. The field select takes the room left on the line, from 14rem up to
   26em, the text cut inside the box (its longest field would set it otherwise); its width follows the window only,
   never a choice, so nothing moves when a control is used */
.thk-dir .thk-groups {
    column-gap: 24px;
}
.thk-dir .thk-field {
    flex: 1 1 14rem;
    max-width: min(26em, 100%);
}
.thk-dir .os-thl .cat-list {
    margin-top: 16px;
    border-top: 1px solid var(--black);
}
/* a row holds its person's old anchors (the retired pages' #asch, #senge-peter): out of the row's grid, at its top */
.thk-r {
    position: relative;
}
.thk-old {
    position: absolute;
    top: 0;
    left: 0;
}
.cat-t:has(> .thk-old:target) {
    background: #eeeeee;
}
/* a person's page: the works and each catalog's section in the prose; the entries in two columns between hairlines */
.thk-person .prose h2:first-child {
    margin-top: 0;
}
.thk-person .prose .thk-works {
    padding: 0;
    list-style: none;
}
.thk-person .prose .thk-works li {
    margin: 0 0 8px;
}
.thk-person .prose .thk-caveat {
    font-size: 15px;
    line-height: 1.45;
}
.thk-person .prose p.thk-caveat {
    margin-top: -0.4em;
}
.thk-person .prose .thk-tactics {
    margin-top: 8px;
    padding: 0;
    font-size: 15px;
    line-height: 1.35;
}
.thk-person .prose .thk-tactics li {
    margin: 0;
}
.thk-person .prose .thk-tactics a {
    text-decoration: none;
}
.thk-person .prose .thk-tactics a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.thk-side-in li {
    display: grid;
    gap: 2px;
}
.thk-side-in li + li {
    margin-top: 10px;
}
.thk-side-in span {
    font-size: 13px;
    color: var(--text-3);
}
@media (max-width: 560px) {
    .thk-dir .thk-disc,
    .thk-dir .thk-field {
        width: 100%;
    }
}
