mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-11-09 10:39:41 -06:00
1124 lines
45 KiB
CSS
1124 lines
45 KiB
CSS
/* ML Systems Taxonomy, styled like established taxonomy sites (MITRE ATT&CK,
|
|
ATLAS, SFIA): a concept-map landing view, a matrix view (#view=matrix), entry
|
|
pages with a sidebar tree, a facts box, guides, and tables. Neutral surfaces
|
|
matching mlsysbook.ai; color carries no category, and crimson marks interaction only. */
|
|
.bok {
|
|
--bok-ink: #111;
|
|
--bok-muted: #5b5f66;
|
|
--bok-faint: #686e77;
|
|
--bok-page: var(--bs-body-bg, #fff);
|
|
--bok-surface: #fff;
|
|
--bok-band: #f6f6f7;
|
|
--bok-line: rgba(0, 0, 0, 0.1);
|
|
--bok-line-strong: rgba(0, 0, 0, 0.22);
|
|
--bok-edge: #b4b8bf;
|
|
--bok-accent: #a51c30;
|
|
--bok-accent-soft: rgba(165, 28, 48, 0.07);
|
|
--bok-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
--viz-ink: var(--bok-ink);
|
|
--viz-o-context: 0.07;
|
|
--viz-o-rest: 0.18;
|
|
--viz-o-related: 0.55;
|
|
--viz-o-strong: 0.85;
|
|
--viz-o-dimmed: 0.03;
|
|
--viz-hair: 0.75px;
|
|
--viz-rule: 1px;
|
|
--viz-emph: 1.5px;
|
|
--viz-sel: 2px;
|
|
max-width: 1240px;
|
|
margin: 0 auto;
|
|
padding: 2.2rem 24px 4rem;
|
|
color: var(--bok-ink);
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
font-size: 15px;
|
|
line-height: 1.55;
|
|
}
|
|
body.quarto-dark .bok {
|
|
--bok-ink: #e6e6e6;
|
|
--bok-muted: #a9adb4;
|
|
--bok-faint: #a0a6af;
|
|
--bok-page: #0d0e11;
|
|
--bok-surface: #16171b;
|
|
--bok-band: #111215;
|
|
--bok-line: rgba(255, 255, 255, 0.1);
|
|
--bok-line-strong: rgba(255, 255, 255, 0.24);
|
|
--bok-edge: #5a6069;
|
|
--bok-accent: #ff6b81;
|
|
--bok-accent-soft: rgba(255, 107, 129, 0.12);
|
|
--bok-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
|
--viz-o-context: 0.11;
|
|
--viz-o-rest: 0.27;
|
|
--viz-o-related: 0.72;
|
|
--viz-o-strong: 0.92;
|
|
--viz-o-dimmed: 0.05;
|
|
}
|
|
body:has(.bok) #title-block-header { display: none; }
|
|
.bok *, .bok *::before, .bok *::after { box-sizing: border-box; }
|
|
.bok [hidden] { display: none !important; }
|
|
.bok :is(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
|
|
#quarto-content .bok :is(h1, h2, h3, h4) { border: 0; padding: 0; background: none; color: var(--bok-ink); font-family: inherit; }
|
|
.bok :is(h2, h3)::before, .bok :is(h2, h3)::after { content: none !important; }
|
|
.bok a { color: inherit; text-decoration: none; }
|
|
.bok :focus-visible { outline: 2px solid var(--bok-accent); outline-offset: 2px; border-radius: 3px; }
|
|
.bok-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
.bok-code, .bok-mono { font: 600 0.82em/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bok-faint); }
|
|
.bok-code { margin-right: 0.5em; }
|
|
#quarto-content .bok code, .bok code { font-size: 0.85em; color: var(--bok-ink); background: var(--bok-band); border: 1px solid var(--bok-line); padding: 1px 5px; border-radius: 4px; }
|
|
.bok a.is-background { color: var(--bok-muted); }
|
|
.bok-loading { padding: 3rem 0; color: var(--bok-muted); }
|
|
|
|
/* ------------------------------------------------------------------- hero */
|
|
.bok-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bok-muted); }
|
|
.bok-draft { margin-left: 0.6rem; padding: 0.1rem 0.45rem; border: 1px solid var(--bok-line-strong); border-radius: 999px; font-size: 0.66rem; letter-spacing: 0.08em; }
|
|
#quarto-content .bok .bok-title { margin-top: 0.5rem; font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
|
|
.bok-lede { max-width: 50rem; margin-top: 0.7rem !important; font-size: 1.03rem; color: var(--bok-muted); }
|
|
.bok-lede :is(strong, em) { color: var(--bok-ink); }
|
|
.bok-lede strong { font-weight: 600; }
|
|
.bok-lede a { color: var(--bok-ink); font-weight: 550; text-decoration: underline; text-decoration-color: var(--bok-line-strong); white-space: nowrap; }
|
|
.bok-lede a:hover { color: var(--bok-accent); text-decoration-color: var(--bok-accent); }
|
|
|
|
/* Overview and direct paths into the vocabulary. */
|
|
.bok-overview { margin-top: 0.8rem !important; color: var(--bok-muted); font-size: 0.85rem; }
|
|
.bok-start { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 0.85rem; }
|
|
.bok-start a { font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--bok-line-strong); }
|
|
.bok-start a:hover { color: var(--bok-accent); }
|
|
|
|
/* ---------------------------------------------------------------- toolbar */
|
|
.bok-toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 1.6rem; padding-bottom: 12px; border-bottom: 1px solid var(--bok-line); scroll-margin-top: var(--bok-header-offset, 80px); }
|
|
.bok-search { position: relative; flex: 1 1 340px; max-width: 480px; }
|
|
.bok-search > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--bok-faint); pointer-events: none; }
|
|
.bok-search input { width: 100%; height: 40px; padding: 0 40px 0 38px; border: 1px solid var(--bok-line-strong); border-radius: 8px; background: var(--bok-surface); color: var(--bok-ink); font: inherit; font-size: 0.93rem; }
|
|
.bok :is(input, select)::placeholder { color: var(--bok-faint); }
|
|
.bok :is(.bok-search, .bok-picker, .bok-gloss-bar) input:focus { outline: none; border-color: var(--bok-accent); box-shadow: 0 0 0 3px var(--bok-accent-soft); }
|
|
.bok-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 0 6px; border: 1px solid var(--bok-line-strong); border-radius: 5px; font: 600 0.72rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bok-faint); }
|
|
.bok-results { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; list-style: none; max-height: 380px; overflow-y: auto; padding: 6px !important; border: 1px solid var(--bok-line); border-radius: 10px; background: var(--bok-surface); box-shadow: var(--bok-shadow); }
|
|
.bok-results li { display: grid; grid-template-columns: 64px 1fr auto; column-gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
|
|
.bok-results li[aria-selected="true"], .bok-results li:hover { background: var(--bok-accent-soft); }
|
|
.bok-res-kind { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bok-faint); }
|
|
.bok-res-label { font-weight: 550; font-size: 0.92rem; }
|
|
.bok-res-where { font: 600 0.74rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bok-faint); }
|
|
.bok-results .bok-noresult { display: block; color: var(--bok-muted); cursor: default; }
|
|
.bok-views { display: inline-flex; gap: 24px; }
|
|
.bok-views a { padding: 8px 0; border-bottom: 2px solid transparent; font-size: 0.92rem; font-weight: 550; color: var(--bok-muted); }
|
|
.bok-views a:hover { color: var(--bok-ink); }
|
|
.bok-views a[aria-current="page"] { color: var(--bok-ink); border-bottom-color: var(--bok-ink); }
|
|
|
|
/* ----------------------------------------------------------------- matrix */
|
|
.bok-matrix-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 1.2rem; }
|
|
.bok-matrix-stats { font-size: 0.84rem; color: var(--bok-muted); font-variant-numeric: tabular-nums; }
|
|
.bok-matrix-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
|
|
.bok-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
|
|
.bok-filter-label { margin-right: 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bok-faint); }
|
|
.bok-filter button, #bok-show-concepts, .bok-cite-actions button { height: 28px; padding: 0 10px; border: 1px solid var(--bok-line); border-radius: 6px; background: var(--bok-surface); color: var(--bok-muted); font: inherit; font-size: 0.8rem; cursor: pointer; }
|
|
.bok-filter button:hover, #bok-show-concepts:hover, .bok-cite-actions button:hover { border-color: var(--bok-line-strong); color: var(--bok-ink); }
|
|
.bok-filter button[aria-pressed="true"], #bok-show-concepts[aria-pressed="true"] { border-color: var(--bok-ink); background: var(--bok-ink); color: var(--bok-page); }
|
|
.bok-band { margin-top: 1.6rem; }
|
|
#quarto-content .bok .bok-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--bok-ink); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
|
|
.bok-band-head span:last-child { font-size: 0.8rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--bok-muted); }
|
|
.bok-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 10px; margin-top: 10px; }
|
|
.bok-col-head { display: block; min-height: 2.9em; font-size: 0.9rem; font-weight: 650; line-height: 1.3; }
|
|
.bok-col-head:hover span:last-child { color: var(--bok-accent); }
|
|
.bok-col-head .bok-code { display: block; margin: 0 0 2px; }
|
|
.bok-col-count { margin: 2px 0 6px !important; font-size: 0.74rem; color: var(--bok-faint); }
|
|
.bok-col ul { list-style: none; display: grid; gap: 4px; }
|
|
.bok-cell { position: relative; display: block; padding: 6px 8px; border: 1px solid var(--bok-line); border-radius: 4px; background: var(--bok-surface); font-size: 0.82rem; line-height: 1.3; transition: border-color 0.12s, opacity 0.12s; }
|
|
.bok-cell:hover { border-color: var(--bok-accent); }
|
|
.bok-cell:hover .bok-cell-label { color: var(--bok-accent); }
|
|
.bok-cell .bok-code { display: block; margin: 0 0 1px; font-size: 0.68rem; }
|
|
.bok-cell.is-dim { opacity: 0.32; }
|
|
.bok-cell-concepts { display: block; margin-top: 4px; font-size: 0.72rem; line-height: 1.4; color: var(--bok-muted); }
|
|
|
|
/* ------------------------------------------------------- download & cite */
|
|
.bok-release { margin-top: 3rem; scroll-margin-top: 120px; }
|
|
#quarto-content .bok .bok-release h2, #quarto-content .bok .bok-entry-head h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
|
|
.bok-release-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; margin-top: 0.6rem; }
|
|
.bok-release-lede { max-width: 40rem; margin-bottom: 0.6rem !important; font-size: 0.92rem; color: var(--bok-muted); }
|
|
.bok-files td:first-child a { font-weight: 600; }
|
|
.bok-files td:nth-child(2) { font: 600 0.74rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bok-faint); white-space: nowrap; }
|
|
.bok-cite { align-self: start; padding: 16px 18px; border: 1px solid var(--bok-line); border-radius: 6px; background: var(--bok-band); }
|
|
.bok-cite-text { margin-top: 0.4rem !important; font-size: 0.9rem; line-height: 1.55; }
|
|
.bok-cite-actions { display: flex; align-items: center; gap: 12px; margin-top: 0.8rem !important; font-size: 0.86rem; }
|
|
.bok-cite-actions a { font-weight: 600; border-bottom: 1px solid var(--bok-line-strong); }
|
|
.bok-cite-meta { margin-top: 0.8rem !important; font-size: 0.76rem; color: var(--bok-faint); }
|
|
.bok-cite-meta a { text-decoration: underline; }
|
|
|
|
/* ---------------------------------------------------------------- tables */
|
|
.bok-table { width: 100%; margin-top: 0.4rem; border-collapse: collapse; font-size: 0.88rem; }
|
|
/* Quarto's theme stripes and shades every table; these are plain reference tables. */
|
|
.bok .bok-table { --bs-table-bg: transparent; --bs-table-striped-bg: transparent; --bs-table-accent-bg: transparent; margin-bottom: 0; }
|
|
.bok .bok-table > :is(thead, tbody) > tr > :is(th, td) { background: transparent !important; box-shadow: none !important; color: inherit; }
|
|
.bok .bok-table tr { background: transparent !important; }
|
|
/* The site theme forces nowrap on table cells at phone width; reference tables must wrap. */
|
|
.bok .bok-table, .bok .bok-table :is(th, td) { white-space: normal !important; overflow: visible; }
|
|
.bok .bok-table td.bok-mono { white-space: nowrap !important; }
|
|
#quarto-content .bok .bok-section + .bok-table { margin-top: 0.4rem; }
|
|
.bok-table th { padding: 7px 10px; border-bottom: 1px solid var(--bok-line-strong); text-align: left; font-size: 0.78rem; font-weight: 600; color: var(--bok-muted); }
|
|
.bok-table td { padding: 8px 10px; border-bottom: 1px solid var(--bok-line); vertical-align: top; }
|
|
.bok-table td:first-child { white-space: normal; min-width: 9rem; }
|
|
.bok-table td.bok-mono { min-width: 0; width: 4.5rem; white-space: nowrap; }
|
|
.bok-table td.bok-mono + td { min-width: 12rem; }
|
|
.bok-table td a { font-weight: 550; }
|
|
.bok-table td a:hover { color: var(--bok-accent); }
|
|
.bok-table .bok-num { text-align: right; font-variant-numeric: tabular-nums; }
|
|
.bok-tag { margin-left: 4px; padding: 0 6px; border: 1px dashed var(--bok-line-strong); border-radius: 999px; font-size: 0.68rem; font-weight: 400; color: var(--bok-muted); }
|
|
.bok-rels td:first-child { width: 45%; }
|
|
.bok-rels b { font-weight: 650; }
|
|
.bok-rels tr.bok-group-start td { border-top: 1px solid var(--bok-line-strong); }
|
|
.bok-rels td:last-child { color: var(--bok-muted); font-size: 0.82rem; }
|
|
|
|
/* ----------------------------------------------------------- entry pages */
|
|
.bok-entry-main { min-width: 0; }
|
|
.bok-entry-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; margin-top: 1.4rem; }
|
|
.bok-tree { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 8px; font-size: 0.84rem; }
|
|
.bok-tree-box summary { display: none; }
|
|
.bok-tree-group { margin: 1rem 0 0.3rem !important; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bok-faint); }
|
|
.bok-tree-box > .bok-tree-group:first-of-type { margin-top: 0 !important; }
|
|
.bok-tree ul { list-style: none; }
|
|
.bok-tree li a { display: block; padding: 3px 6px; border-left: 2px solid transparent; border-radius: 0 4px 4px 0; color: var(--bok-muted); }
|
|
.bok-tree li a:hover { color: var(--bok-ink); }
|
|
.bok-tree li a.is-open { color: var(--bok-ink); font-weight: 600; }
|
|
.bok-tree li a[aria-current="page"] { border-left-color: var(--bok-accent); background: var(--bok-accent-soft); color: var(--bok-ink); font-weight: 600; }
|
|
.bok-tree li ul { margin: 2px 0 6px 10px !important; }
|
|
.bok-tree .bok-code { margin-right: 0.4em; }
|
|
.bok-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--bok-faint); }
|
|
.bok-crumbs a { color: var(--bok-muted); }
|
|
.bok-crumbs a:hover { color: var(--bok-accent); }
|
|
.bok-entry-head { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; margin-top: 0.8rem; }
|
|
.bok-entry-head:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
|
|
.bok-lead { max-width: 46rem; margin-top: 0.6rem !important; font-size: 1.05rem; line-height: 1.6; }
|
|
.bok-text { max-width: 46rem; margin-top: 0.5rem !important; font-size: 0.9rem; color: var(--bok-muted); }
|
|
.bok-text-label, .bok-facts-label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bok-faint); }
|
|
.bok-text-label { margin-top: 1rem !important; }
|
|
.bok-aliases { margin-top: 0.3rem !important; font-size: 0.86rem; color: var(--bok-faint); }
|
|
.bok-facts { align-self: start; padding: 12px 14px; border: 1px solid var(--bok-line-strong); border-radius: 6px; font-size: 0.86rem; }
|
|
.bok-facts p + p { margin-top: 0.6rem !important; padding-top: 0.6rem !important; border-top: 1px solid var(--bok-line); }
|
|
.bok-facts a { font-weight: 550; }
|
|
.bok-facts a:hover { color: var(--bok-accent); }
|
|
.bok-list { margin: 0.4rem 0 0 1.1rem !important; max-width: 46rem; font-size: 0.88rem; color: var(--bok-muted); }
|
|
.bok-list li { margin: 0.2rem 0; }
|
|
.bok-list a { color: var(--bok-ink); font-weight: 550; }
|
|
.bok-list a:hover { color: var(--bok-accent); }
|
|
#quarto-content .bok .bok-section { margin-top: 1.8rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bok-faint); }
|
|
|
|
/* The concept map sits in the page as a figure, at full text size. */
|
|
.bok-mapbox { margin-top: 1.6rem; padding: 12px 0 8px; border-top: 1px solid var(--bok-line); border-bottom: 1px solid var(--bok-line); }
|
|
.bok-canvas { width: 100%; height: 320px; }
|
|
.bok-mapbox figcaption { margin-top: 0.4rem; font-size: 0.78rem; color: var(--bok-faint); text-align: center; }
|
|
.bok-relate { margin-top: 0.4rem; }
|
|
.bok-picker { position: relative; max-width: 380px; margin-top: 0.5rem; }
|
|
.bok-picker input, .bok-gloss-bar input, .bok-gloss-bar select { width: 100%; height: 34px; padding: 0 12px; border: 1px solid var(--bok-line-strong); border-radius: 6px; background: var(--bok-surface); color: var(--bok-ink); font: inherit; font-size: 0.86rem; }
|
|
.bok-path { margin-top: 1rem; }
|
|
.bok-path ol { margin: 0.3rem 0 0 1.2rem !important; }
|
|
.bok-path li { padding: 5px 0; font-size: 0.92rem; }
|
|
.bok-path a { font-weight: 600; }
|
|
.bok-path a:hover, .bok-trail a:hover { color: var(--bok-accent); }
|
|
.bok-verb { margin: 0 0.25rem; color: var(--bok-muted); font-style: italic; }
|
|
.bok-cond { margin-top: 2px !important; font-size: 0.8rem; color: var(--bok-faint); }
|
|
.bok-trail { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 1.6rem !important; font-size: 0.84rem; color: var(--bok-faint); }
|
|
.bok-trail > span:first-child { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
|
|
.bok-trail a { color: var(--bok-ink); }
|
|
.bok-note { margin-top: 1.4rem !important; font-size: 0.76rem; color: var(--bok-faint); }
|
|
|
|
/* --------------------------------------------------------------- glossary */
|
|
.bok-glossary { margin-top: 1.4rem; }
|
|
.bok-gloss-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 1.2rem; }
|
|
.bok-gloss-bar input { flex: 1 1 260px; max-width: 380px; }
|
|
.bok-gloss-bar select { width: auto; }
|
|
.bok-gloss-count { margin-left: auto; font-size: 0.8rem; color: var(--bok-faint); font-variant-numeric: tabular-nums; }
|
|
.bok-jump { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 2px; margin-top: 0.8rem; padding: 8px 0; background: var(--bok-page); border-bottom: 1px solid var(--bok-line); }
|
|
.bok-jump a { min-width: 26px; padding: 3px 6px; border-radius: 4px; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--bok-muted); }
|
|
.bok-jump a:hover { background: var(--bok-accent-soft); color: var(--bok-accent); }
|
|
.bok-jump a.is-empty { opacity: 0.3; pointer-events: none; }
|
|
.bok-gloss { margin-top: 0.4rem; }
|
|
.bok-gloss tbody { scroll-margin-top: 120px; }
|
|
.bok-gloss .bok-letter-row th { padding-top: 1.2rem; border-bottom: 1px solid var(--bok-line-strong); font-size: 1rem; font-weight: 700; color: var(--bok-faint); }
|
|
.bok-gloss td:first-child { width: 26%; }
|
|
.bok-gloss td:last-child { width: 4.5rem; text-align: right; }
|
|
.bok-gloss .bok-alias { display: block; margin-top: 2px; font-size: 0.74rem; color: var(--bok-faint); }
|
|
.bok-term { scroll-margin-top: 130px; transition: background 0.4s; }
|
|
.bok-term.is-focus { background: var(--bok-accent-soft); }
|
|
|
|
/* ------------------------------------------------------------------ about */
|
|
.bok-about { max-width: 58rem; margin-top: 0.8rem; scroll-margin-top: 120px; }
|
|
.bok-about + .bok-about { margin-top: 0.45rem; }
|
|
.bok-about summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--bok-muted); }
|
|
.bok-about summary:hover { color: var(--bok-ink); }
|
|
.bok-about-body { display: grid; gap: 0.7rem; max-width: 58rem; margin-top: 0.9rem; font-size: 0.88rem; color: var(--bok-muted); }
|
|
.bok-about-body a { text-decoration: underline; text-decoration-color: var(--bok-line-strong); color: var(--bok-ink); font-weight: 550; }
|
|
.bok-about-body a:hover { color: var(--bok-accent); }
|
|
.bok-about-body :is(ul, ol) { margin: 0.3rem 0 0 1.2rem !important; }
|
|
.bok-howto-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem 1.2rem; margin-top: 0.2rem !important; }
|
|
.bok-howto-list > div { padding: 0.65rem 0.8rem; border: 1px solid var(--bok-line); border-radius: 6px; background: var(--bok-surface); }
|
|
.bok-howto-list dt { font-size: 0.82rem; font-weight: 650; color: var(--bok-ink); margin-bottom: 0.2rem; }
|
|
.bok-howto-list dd { font-size: 0.84rem; line-height: 1.48; color: var(--bok-muted); }
|
|
.bok-known-gaps ul { margin: 0.3rem 0 0 1.1rem !important; columns: 2 260px; }
|
|
.bok-known-gaps ul.bok-cases { columns: 1; }
|
|
.bok-known-gaps li { break-inside: avoid; }
|
|
.bok-known-gaps p + ul + p { margin-top: 0.7rem; }
|
|
.bok-method { font-size: 0.76rem; color: var(--bok-faint); }
|
|
.bok-print-outline { display: none; }
|
|
|
|
/* Ways to use it: four worked entry points under the lede. */
|
|
.bok-uses { margin: 1.25rem 0 0.75rem; }
|
|
.bok-uses-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bok-muted); margin: 0 0 0.6rem; }
|
|
.bok-uses-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
|
|
.bok-use { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 0.85rem 1rem; border: 1px solid var(--bok-line); border-radius: 8px; background: var(--bok-surface); color: var(--bok-ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
|
|
.bok-use:hover, .bok-use:focus-visible { border-color: var(--bok-accent); box-shadow: var(--bok-shadow); color: var(--bok-ink); }
|
|
.bok-use-who { font-size: 0.78rem; font-weight: 600; color: var(--bok-accent); }
|
|
.bok-use-what { font-size: 0.92rem; line-height: 1.45; color: var(--bok-muted); flex: 1; }
|
|
.bok-use-what strong { color: var(--bok-ink); }
|
|
.bok-use-go { font-size: 0.85rem; font-weight: 600; }
|
|
|
|
/* ------------------------------------------------------------- responsive */
|
|
@media (max-width: 1100px) {
|
|
.bok-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
|
|
.bok-uses-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
@media (max-width: 900px) {
|
|
.bok-entry-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
|
|
.bok-tree { position: static; max-height: none; padding: 0; }
|
|
.bok-tree-box summary { display: list-item; list-style-position: inside; padding: 8px 0; cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--bok-muted); border-bottom: 1px solid var(--bok-line); }
|
|
.bok-entry-head { grid-template-columns: minmax(0, 1fr); }
|
|
.bok-release-grid { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
@media (max-width: 760px) {
|
|
.bok-uses-list, .bok-howto-list { grid-template-columns: 1fr; }
|
|
}
|
|
@media (max-width: 640px) {
|
|
.bok { padding: 1.6rem 16px 3rem; }
|
|
.bok-kbd { display: none; }
|
|
.bok-views { width: 100%; justify-content: space-between; }
|
|
.bok-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.bok-table, .bok-table tbody, .bok-table tr, .bok-table td { display: block; width: 100% !important; }
|
|
.bok-table thead { display: none; }
|
|
.bok-table tr { padding: 8px 0; border-bottom: 1px solid var(--bok-line); }
|
|
.bok-table td { padding: 2px 0; border: 0; text-align: left !important; }
|
|
.bok-gloss-count { margin-left: 0; }
|
|
.bok-picker { max-width: none; }
|
|
.bok-viz-expand-label {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
}
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.bok * { transition: none !important; }
|
|
}
|
|
|
|
/* Print / Save as PDF: the full outline only. */
|
|
@media print {
|
|
.bok-viz-expand { display: none; }
|
|
body.bok-printing :is(#quarto-header, .quarto-announcement, .alert-primary, footer, .nav-footer) { display: none !important; }
|
|
body.bok-printing .bok > :not(.bok-print-outline) { display: none !important; }
|
|
body.bok-printing .bok-print-outline { display: block; font-size: 10.5pt; }
|
|
body.bok-printing .bok-print-outline h2 { font-size: 18pt; margin-bottom: 8pt; }
|
|
body.bok-printing .bok-print-outline h3 { margin-top: 14pt; font-size: 13pt; border-bottom: 1.5pt solid #000; }
|
|
body.bok-printing .bok-print-outline h4 { margin-top: 10pt; font-size: 11pt; break-after: avoid; }
|
|
body.bok-printing .bok-print-outline dt { margin-top: 5pt; font-weight: 600; break-after: avoid; }
|
|
body.bok-printing .bok-print-outline dd { margin: 0 0 0 12pt; break-inside: avoid; }
|
|
body.bok-printing .bok { padding: 0; max-width: none; }
|
|
}
|
|
|
|
/* Guides (2026-10-28): roles, symptoms, and learning paths reuse the glossary table style. */
|
|
.bok-guides h3 { margin-top: 2rem !important; scroll-margin-top: 120px; }
|
|
.bok-guide-table { margin-top: 0.4rem; }
|
|
.bok-guide-table tr { scroll-margin-top: 120px; }
|
|
.bok-guide-table td:first-child { width: 28%; }
|
|
.bok-guide-table .bok-alias { display: block; margin-top: 0.25rem; font-size: 0.86rem; color: var(--bok-muted); }
|
|
.bok-guide-list { list-style: none; padding: 0; margin: 0; }
|
|
.bok-guide-list li { margin: 0 0 0.2rem; }
|
|
.bok-guide-subject .bok-code { margin-right: 0.35em; }
|
|
.bok-muted { color: var(--bok-muted); }
|
|
.bok-guide-path { margin-top: 1.2rem; scroll-margin-top: 120px; }
|
|
.bok-guide-path li { margin-bottom: 0.35rem; }
|
|
.bok-guides .is-focus { background: var(--bok-accent-soft); }
|
|
.bok-guide-path h4 { margin: 0 !important; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
|
|
.bok-guide-path ol { margin: 0.6rem 0 0 !important; padding-left: 2.2rem !important; }
|
|
.bok-guide-path .bok-code { color: var(--bok-muted); }
|
|
|
|
/* ------------------------------------------- full-width entry when no tree */
|
|
.bok-entry-layout:has(> .bok-tree[hidden]), .bok-entry-layout.is-full {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
/* --------------------------------------------------------- matrix overlays */
|
|
.bok-overlay-picker { display: inline-flex; align-items: center; gap: 6px; }
|
|
.bok-overlay-picker select {
|
|
height: 28px;
|
|
padding: 0 24px 0 9px;
|
|
border: 1px solid var(--bok-line);
|
|
border-radius: 6px;
|
|
background: var(--bok-surface);
|
|
color: var(--bok-ink);
|
|
font: inherit;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
}
|
|
.bok-overlay-picker select:hover { border-color: var(--bok-line-strong); }
|
|
.bok-overlay-picker select.is-active {
|
|
border-color: var(--bok-ink);
|
|
font-weight: 600;
|
|
}
|
|
.bok-overlay-banner {
|
|
margin-top: 0.85rem;
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--bok-line-strong);
|
|
border-radius: 4px;
|
|
background: var(--bok-band);
|
|
font-size: 0.84rem;
|
|
}
|
|
.bok-overlay-head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 8px 16px;
|
|
}
|
|
.bok-overlay-title { font-weight: 650; color: var(--bok-ink); }
|
|
.bok-overlay-desc { color: var(--bok-muted); margin-left: 6px; }
|
|
.bok-overlay-meta {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 0.78rem;
|
|
color: var(--bok-muted);
|
|
}
|
|
.bok-overlay-meta a, .bok-overlay-btn {
|
|
font: inherit;
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
color: var(--bok-ink);
|
|
background: none;
|
|
border: 0;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--bok-line-strong);
|
|
}
|
|
.bok-overlay-meta a:hover, .bok-overlay-btn:hover {
|
|
color: var(--bok-accent);
|
|
border-bottom-color: var(--bok-accent);
|
|
}
|
|
.bok-legend-dot, .bok-legend-ring {
|
|
display: inline-block;
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
margin-right: 4px;
|
|
vertical-align: middle;
|
|
}
|
|
.bok-legend-dot { background: var(--bok-ink); }
|
|
.bok-legend-ring { border: 1.5px solid var(--bok-ink); background: var(--bok-surface); }
|
|
|
|
/* Learning path step strip above the matrix */
|
|
.bok-step-strip {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 4px;
|
|
margin-top: 10px;
|
|
padding: 8px 4px 4px;
|
|
overflow-x: auto;
|
|
}
|
|
.bok-step-strip::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 18px;
|
|
right: 18px;
|
|
top: 16px;
|
|
height: 1px;
|
|
background: var(--bok-line-strong);
|
|
z-index: 0;
|
|
}
|
|
.bok-step-node {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 3px;
|
|
min-width: 48px;
|
|
background: none;
|
|
border: 0;
|
|
padding: 0 2px;
|
|
cursor: pointer;
|
|
color: var(--bok-ink);
|
|
font: inherit;
|
|
}
|
|
.bok-step-circle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--bok-ink);
|
|
background: var(--bok-surface);
|
|
font: 600 0.66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--bok-ink);
|
|
transition: background 0.12s, border-color 0.12s, color 0.12s;
|
|
}
|
|
.bok-step-code {
|
|
font: 600 0.68rem/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
color: var(--bok-muted);
|
|
}
|
|
.bok-step-node:hover .bok-step-circle {
|
|
border-color: var(--bok-accent);
|
|
color: var(--bok-accent);
|
|
}
|
|
.bok-step-node.is-active .bok-step-circle {
|
|
background: var(--bok-accent);
|
|
border-color: var(--bok-accent);
|
|
color: #fff;
|
|
}
|
|
body.quarto-dark .bok-step-node.is-active .bok-step-circle {
|
|
color: #111;
|
|
}
|
|
.bok-step-node.is-active .bok-step-code {
|
|
color: var(--bok-accent);
|
|
font-weight: 700;
|
|
}
|
|
.bok-step-detail {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 6px 14px;
|
|
margin-top: 6px;
|
|
padding-top: 6px;
|
|
border-top: 1px solid var(--bok-line);
|
|
font-size: 0.82rem;
|
|
}
|
|
.bok-step-detail-nav {
|
|
display: inline-flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Cell annotations for overlays */
|
|
.bok-cell.is-overlay-dim { opacity: 0.35; }
|
|
.bok-cell.is-overlay-active {
|
|
border-color: var(--bok-accent);
|
|
box-shadow: 0 0 0 1px var(--bok-accent);
|
|
}
|
|
.bok-cell-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 4px;
|
|
margin-bottom: 1px;
|
|
}
|
|
.bok-cell-head .bok-code { margin: 0; }
|
|
.bok-cell-mark-core, .bok-cell-mark-working {
|
|
display: inline-block;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
.bok-cell-mark-core { background: var(--bok-ink); }
|
|
.bok-cell-mark-working { border: 1.5px solid var(--bok-ink); background: var(--bok-surface); }
|
|
.bok-cell:hover .bok-cell-mark-core { background: var(--bok-accent); }
|
|
.bok-cell:hover .bok-cell-mark-working { border-color: var(--bok-accent); }
|
|
.bok-cell-step {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--bok-ink);
|
|
background: var(--bok-surface);
|
|
font: 600 0.64rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--bok-ink);
|
|
flex-shrink: 0;
|
|
}
|
|
.bok-cell.is-overlay-active .bok-cell-step {
|
|
background: var(--bok-accent);
|
|
border-color: var(--bok-accent);
|
|
color: #fff;
|
|
}
|
|
body.quarto-dark .bok-cell.is-overlay-active .bok-cell-step {
|
|
color: #111;
|
|
}
|
|
.bok-cell-vol {
|
|
font: 600 0.64rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
color: var(--bok-muted);
|
|
}
|
|
|
|
/* ------------------------------------------- shared textbook figure system */
|
|
.bok-viz-figure {
|
|
--bok-viz-inline-h: min(68vh, 620px);
|
|
margin-top: 1.2rem;
|
|
padding: 14px 0 12px;
|
|
border-top: 1px solid var(--bok-line-strong);
|
|
border-bottom: 1px solid var(--bok-line);
|
|
scroll-margin-top: 84px;
|
|
}
|
|
.bok .bok-viz-figure :is(g, path, rect, circle)[tabindex]:focus:not(:focus-visible) {
|
|
outline: none;
|
|
}
|
|
.bok-viz-bar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px 16px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.bok-viz-controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px 14px;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
.bok-viz-controls select {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
.bok-viz-seg {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
gap: 2px;
|
|
padding: 2px;
|
|
border: 1px solid var(--bok-line-strong);
|
|
border-radius: 4px;
|
|
background: var(--bok-band);
|
|
}
|
|
.bok-viz-seg button {
|
|
height: 25px;
|
|
padding: 0 9px;
|
|
border: 0;
|
|
border-radius: 2px;
|
|
background: transparent;
|
|
color: var(--bok-muted);
|
|
font: inherit;
|
|
font-size: 0.76rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
.bok-viz-seg button:hover { color: var(--bok-ink); }
|
|
.bok-viz-seg button[aria-pressed="true"] {
|
|
background: var(--bok-surface);
|
|
color: var(--bok-ink);
|
|
font-weight: 600;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
}
|
|
.bok-viz-split {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.85fr);
|
|
gap: 20px;
|
|
align-items: start;
|
|
}
|
|
.bok .bok-viz-split > *,
|
|
.bok .bok-viz-body > * {
|
|
grid-column: auto !important;
|
|
min-width: 0;
|
|
}
|
|
.bok-viz-stage {
|
|
position: relative;
|
|
width: 100%;
|
|
background: var(--bok-surface);
|
|
border: 1px solid var(--bok-line);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
}
|
|
.bok-viz-stage svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
max-height: var(--bok-viz-inline-h);
|
|
margin-inline: auto;
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
}
|
|
.bok-viz-panel {
|
|
border: 1px solid var(--bok-line-strong);
|
|
border-radius: 2px;
|
|
background: var(--bok-surface);
|
|
padding: 12px 14px 16px;
|
|
font-size: 0.83rem;
|
|
max-height: var(--bok-viz-inline-h);
|
|
overflow-y: auto;
|
|
}
|
|
#bok-symptom-detail {
|
|
margin-top: 10px;
|
|
max-height: 280px;
|
|
overflow-y: auto;
|
|
}
|
|
.bok-viz-expand {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
height: 28px;
|
|
margin-left: auto;
|
|
padding: 0 10px;
|
|
border: 1px solid var(--bok-line-strong);
|
|
border-radius: 4px;
|
|
background: var(--bok-surface);
|
|
color: var(--bok-muted);
|
|
font: inherit;
|
|
font-size: 0.76rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
.bok-viz-expand:hover,
|
|
.bok-viz-expand[aria-pressed="true"] {
|
|
color: var(--bok-accent);
|
|
border-color: var(--bok-accent);
|
|
}
|
|
.bok-viz-more {
|
|
margin-top: 6px;
|
|
font-size: 0.76rem;
|
|
}
|
|
.bok-viz-more > summary {
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
color: var(--bok-muted);
|
|
padding: 4px 0;
|
|
}
|
|
.bok-viz-more > summary:hover {
|
|
color: var(--bok-accent);
|
|
}
|
|
html.bok-viz-locked,
|
|
html.bok-viz-locked body {
|
|
overflow: hidden !important;
|
|
}
|
|
html.bok-viz-locked #quarto-header {
|
|
display: none !important;
|
|
}
|
|
.bok-viz-figure.is-full {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 2050;
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
height: 100dvh;
|
|
margin: 0 !important;
|
|
padding: 14px 20px;
|
|
background: var(--bok-page);
|
|
border: 0;
|
|
border-radius: 0;
|
|
box-sizing: border-box;
|
|
overscroll-behavior: contain;
|
|
}
|
|
.bok-viz-figure.is-full :is(.bok-viz-split, .bok-viz-body) {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) clamp(320px, 29vw, 460px);
|
|
gap: 18px;
|
|
min-height: 0;
|
|
height: 100%;
|
|
align-items: stretch;
|
|
}
|
|
.bok-viz-figure.is-full .bok-viz-stage {
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.bok-viz-figure.is-full .bok-viz-stage svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
max-height: none;
|
|
}
|
|
#bok-symptom-flow-fig.is-full .bok-viz-stage {
|
|
align-items: flex-start;
|
|
padding-top: 10px;
|
|
}
|
|
#bok-symptom-flow-fig.is-full .bok-viz-stage svg {
|
|
height: auto;
|
|
max-height: 100%;
|
|
}
|
|
.bok-viz-figure.is-full :is(.bok-viz-panel, #bok-symptom-detail) {
|
|
height: 100%;
|
|
max-height: none;
|
|
margin-top: 0;
|
|
}
|
|
.bok-viz-figure.is-full #bok-symptom-detail .bok-viz-prop-list {
|
|
columns: 1 !important;
|
|
}
|
|
.bok-viz-figure.is-full .bok-viz-caption {
|
|
max-height: 4.5em;
|
|
overflow-y: auto;
|
|
}
|
|
.bok-viz-panel-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--bok-line);
|
|
}
|
|
.bok-viz-panel-title {
|
|
font-size: 0.92rem;
|
|
font-weight: 650;
|
|
color: var(--bok-ink);
|
|
}
|
|
.bok-viz-panel-sub {
|
|
margin-top: 4px !important;
|
|
font-size: 0.78rem;
|
|
color: var(--bok-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.bok-viz-clear {
|
|
background: none;
|
|
border: 0;
|
|
padding: 0;
|
|
font: inherit;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--bok-muted);
|
|
border-bottom: 1px solid var(--bok-line-strong);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
.bok-viz-clear:hover { color: var(--bok-accent); border-bottom-color: var(--bok-accent); }
|
|
.bok-viz-prop-group { margin-top: 10px; }
|
|
.bok-viz-prop-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--bok-muted);
|
|
margin-bottom: 4px !important;
|
|
}
|
|
.bok-viz-swatch-out, .bok-viz-swatch-in {
|
|
display: inline-block;
|
|
width: 14px;
|
|
height: 2.5px;
|
|
border-radius: 1px;
|
|
}
|
|
.bok-viz-swatch-out { background: var(--bok-accent); }
|
|
.bok-viz-swatch-in { background: var(--bok-ink); opacity: 0.75; }
|
|
.bok-viz-swatch-internal {
|
|
display: inline-block;
|
|
width: 14px;
|
|
height: 0;
|
|
border-top: 2px dashed var(--bok-ink);
|
|
opacity: 0.7;
|
|
}
|
|
.bok-viz-prop-list {
|
|
list-style: none;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
.bok-viz-prop-list li {
|
|
padding: 5px 0;
|
|
border-bottom: 1px solid var(--bok-line);
|
|
font-size: 0.8rem;
|
|
line-height: 1.4;
|
|
}
|
|
.bok-viz-prop-list li:last-child { border-bottom: 0; }
|
|
.bok-viz-prop-list a { font-weight: 600; color: var(--bok-ink); }
|
|
.bok-viz-prop-list a:hover { color: var(--bok-accent); }
|
|
.bok-viz-pair-btn {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
padding: 5px 4px;
|
|
border: 0;
|
|
border-bottom: 1px solid var(--bok-line);
|
|
background: transparent;
|
|
color: var(--bok-ink);
|
|
font: inherit;
|
|
font-size: 0.8rem;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.bok-viz-pair-btn:hover { background: var(--bok-accent-soft); color: var(--bok-accent); }
|
|
.bok-viz-caption {
|
|
margin-top: 8px !important;
|
|
font-size: 0.78rem;
|
|
line-height: 1.45;
|
|
color: var(--bok-muted);
|
|
}
|
|
.bok-viz-caption strong { color: var(--bok-ink); font-weight: 600; }
|
|
|
|
/* SVG shared rules */
|
|
.bok-svg-mono {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 9.5px;
|
|
font-variant-numeric: tabular-nums;
|
|
fill: var(--bok-ink);
|
|
}
|
|
.bok-svg-label {
|
|
font-size: 11px;
|
|
fill: var(--bok-ink);
|
|
}
|
|
.bok-svg-group-label {
|
|
font-size: 9.5px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.07em;
|
|
text-transform: uppercase;
|
|
fill: var(--bok-muted);
|
|
}
|
|
.viz-interactive { cursor: pointer; }
|
|
.viz-bundle-edge {
|
|
fill: none;
|
|
stroke: var(--bok-ink);
|
|
stroke-linecap: round;
|
|
opacity: var(--viz-o-context);
|
|
transition: opacity 0.12s, stroke 0.12s, stroke-width 0.12s;
|
|
}
|
|
.viz-bundle-edge.is-dim { opacity: var(--viz-o-dimmed); }
|
|
.viz-bundle-edge.is-out {
|
|
stroke: var(--bok-accent);
|
|
opacity: 0.88;
|
|
}
|
|
.viz-bundle-edge.is-in {
|
|
stroke: var(--bok-ink);
|
|
opacity: var(--viz-o-related);
|
|
}
|
|
.viz-bundle-edge.is-internal {
|
|
stroke: var(--bok-ink);
|
|
stroke-dasharray: 4 2.5;
|
|
opacity: 0.62;
|
|
}
|
|
.viz-subj-node {
|
|
fill: var(--bok-ink);
|
|
transition: fill 0.12s, r 0.12s;
|
|
}
|
|
.viz-subj-label {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 9px;
|
|
font-variant-numeric: tabular-nums;
|
|
fill: var(--bok-ink);
|
|
cursor: pointer;
|
|
}
|
|
.viz-subj-label .viz-subj-name {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
fill: var(--bok-muted);
|
|
font-size: 8.5px;
|
|
}
|
|
.viz-subj-group.is-dim .viz-subj-label { opacity: 0.28; }
|
|
.viz-subj-group.is-dim .viz-subj-node { opacity: 0.25; }
|
|
.viz-subj-group.is-selected .viz-subj-label,
|
|
.viz-subj-group:hover .viz-subj-label {
|
|
fill: var(--bok-accent);
|
|
font-weight: 700;
|
|
}
|
|
.viz-subj-group.is-selected .viz-subj-label .viz-subj-name,
|
|
.viz-subj-group:hover .viz-subj-label .viz-subj-name {
|
|
fill: var(--bok-accent);
|
|
font-weight: 600;
|
|
}
|
|
.viz-subj-group.is-selected .viz-subj-node,
|
|
.viz-subj-group:hover .viz-subj-node {
|
|
fill: var(--bok-accent);
|
|
}
|
|
.viz-subj-group.is-neighbor .viz-subj-label { font-weight: 600; }
|
|
|
|
/* DSM cells */
|
|
.viz-dsm-cell { cursor: pointer; }
|
|
.viz-dsm-cell:hover rect.viz-dsm-bg {
|
|
stroke: var(--bok-accent);
|
|
stroke-width: 1.5px;
|
|
}
|
|
.viz-dsm-cell.is-selected rect.viz-dsm-bg {
|
|
stroke: var(--bok-accent);
|
|
stroke-width: 2px;
|
|
}
|
|
.viz-dsm-label {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 9.5px;
|
|
font-variant-numeric: tabular-nums;
|
|
fill: var(--bok-ink);
|
|
cursor: pointer;
|
|
}
|
|
.viz-dsm-label.is-selected, .viz-dsm-label:hover {
|
|
fill: var(--bok-accent);
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Alluvial / Sankey & Diagnostic flow ribbons */
|
|
.viz-ribbon {
|
|
fill: var(--bok-ink);
|
|
opacity: var(--viz-o-rest);
|
|
transition: opacity 0.12s, fill 0.12s;
|
|
cursor: pointer;
|
|
}
|
|
.viz-ribbon.is-working { opacity: var(--viz-o-context); }
|
|
.viz-ribbon.is-dim { opacity: var(--viz-o-dimmed); }
|
|
.viz-ribbon.is-active {
|
|
fill: var(--bok-accent);
|
|
opacity: 0.55;
|
|
}
|
|
.viz-ribbon.is-active.is-working {
|
|
fill: var(--bok-accent);
|
|
opacity: 0.3;
|
|
}
|
|
.viz-diag-edge {
|
|
fill: none;
|
|
stroke: var(--bok-ink);
|
|
stroke-width: 1.25px;
|
|
opacity: var(--viz-o-related);
|
|
transition: opacity 0.12s, stroke 0.12s, stroke-width 0.12s;
|
|
}
|
|
.viz-diag-edge.is-lever { stroke-dasharray: 4 2.5; }
|
|
.viz-diag-edge.is-causal { stroke-dasharray: 1.5 2; opacity: 0.38; }
|
|
.viz-diag-edge.is-dim { opacity: 0.06; }
|
|
.viz-diag-edge.is-active {
|
|
stroke: var(--bok-accent);
|
|
stroke-width: 2px;
|
|
opacity: 0.92;
|
|
}
|
|
.viz-diag-edge.is-via {
|
|
stroke: var(--bok-accent);
|
|
stroke-width: 1.45px;
|
|
opacity: 0.56;
|
|
}
|
|
.viz-diag-node { cursor: pointer; }
|
|
.viz-diag-node:hover text.viz-diag-title,
|
|
.viz-diag-node.is-active text.viz-diag-title {
|
|
fill: var(--bok-accent);
|
|
font-weight: 600;
|
|
}
|
|
.viz-diag-node:hover rect.viz-diag-tick,
|
|
.viz-diag-node.is-active rect.viz-diag-tick {
|
|
fill: var(--bok-accent);
|
|
}
|
|
.viz-diag-node.is-dim { opacity: 0.28; }
|
|
|
|
/* Learning path dependency arc diagram */
|
|
.bok-path-viz {
|
|
margin: 0.65rem 0 0.5rem;
|
|
padding: 8px 10px 6px;
|
|
border: 1px solid var(--bok-line);
|
|
border-radius: 2px;
|
|
background: var(--bok-surface);
|
|
}
|
|
.bok-path-viz svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
.viz-path-arc {
|
|
fill: none;
|
|
stroke: var(--bok-ink);
|
|
opacity: var(--viz-o-rest);
|
|
stroke-linecap: round;
|
|
transition: opacity 0.12s, stroke 0.12s;
|
|
}
|
|
.viz-path-arc.is-dim { opacity: var(--viz-o-dimmed); }
|
|
.viz-path-arc.is-out {
|
|
stroke: var(--bok-accent);
|
|
opacity: 0.88;
|
|
}
|
|
.viz-path-arc.is-in {
|
|
stroke: var(--bok-ink);
|
|
opacity: var(--viz-o-related);
|
|
}
|
|
.viz-path-station { cursor: pointer; outline: none; }
|
|
.viz-path-station circle {
|
|
fill: var(--bok-surface);
|
|
stroke: var(--bok-ink);
|
|
stroke-width: 1.5px;
|
|
transition: fill 0.12s, stroke 0.12s;
|
|
}
|
|
.viz-path-station:hover circle,
|
|
.viz-path-station.is-active circle {
|
|
fill: var(--bok-accent);
|
|
stroke: var(--bok-accent);
|
|
}
|
|
.viz-path-station:hover text.viz-station-num,
|
|
.viz-path-station.is-active text.viz-station-num {
|
|
fill: #fff !important;
|
|
}
|
|
body.quarto-dark .viz-path-station:hover text.viz-station-num,
|
|
body.quarto-dark .viz-path-station.is-active text.viz-station-num {
|
|
fill: #111 !important;
|
|
}
|
|
.viz-path-station:hover text.viz-station-code,
|
|
.viz-path-station.is-active text.viz-station-code {
|
|
fill: var(--bok-accent);
|
|
font-weight: 700;
|
|
}
|
|
.bok-path-viz-status {
|
|
margin-top: 4px !important;
|
|
font-size: 0.76rem;
|
|
color: var(--bok-muted);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
gap: 4px 12px;
|
|
}
|
|
.bok-guide-path ol li.is-active {
|
|
background: var(--bok-accent-soft);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* Shortest-path horizontal chain SVG */
|
|
.bok-path-chain {
|
|
margin: 0.6rem 0 0.4rem;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--bok-line);
|
|
border-radius: 2px;
|
|
background: var(--bok-surface);
|
|
overflow-x: auto;
|
|
}
|
|
.bok-path-chain svg {
|
|
display: block;
|
|
width: auto;
|
|
max-width: none;
|
|
height: auto;
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.bok-viz-split {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
.bok-viz-panel {
|
|
max-height: 360px;
|
|
}
|
|
.bok-viz-figure.is-full :is(.bok-viz-split, .bok-viz-body) {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
grid-template-rows: minmax(0, 1fr) minmax(0, 38vh);
|
|
}
|
|
}
|
|
|
|
/* Search results explain the match without treating all search terms as synonyms. */
|
|
.bok-res-description, .bok-res-context { grid-column: 2 / -1; font-size: 0.8rem; line-height: 1.45; color: var(--bok-muted); }
|
|
.bok-res-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.bok-res-context { margin-top: 3px; }
|
|
.bok-entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 1rem; }
|
|
.bok-entry-actions button, .bok-entry-actions a { font: inherit; font-size: 0.85rem; color: var(--bok-ink); }
|
|
.bok-entry-actions button { padding: 6px 10px; background: var(--bok-surface); border: 1px solid var(--bok-line-strong); border-radius: 5px; cursor: pointer; }
|
|
.bok-entry-actions a { text-decoration: underline; text-underline-offset: 3px; }
|
|
.bok-entry-actions :is(button, a):hover { color: var(--bok-accent); }
|
|
.bok-action-status { min-height: 1.5em; margin-top: 0.4rem !important; color: var(--bok-muted); font-size: 0.82rem; }
|
|
.bok-copy-fallback { width: 100%; padding: 6px; color: var(--bok-ink); background: var(--bok-surface); border: 1px solid var(--bok-line-strong); }
|
|
|
|
/* Flex children must be allowed to shrink around long overlay names. */
|
|
.bok-matrix-tools, .bok-overlay-picker { min-width: 0; max-width: 100%; }
|
|
.bok-overlay-picker select { min-width: 0; max-width: 100%; flex: 1; }
|
|
.bok-matrix-tools { width: 100%; }
|
|
.bok-overlay-picker { flex-wrap: wrap; }
|
|
|
|
/* Native area selectors make dense diagrams usable without precise pointing. */
|
|
.bok-area-pickers { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 12px 0; }
|
|
.bok-area-pickers label { display: flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; font-size: 0.82rem; color: var(--bok-muted); }
|
|
.bok-area-pickers select { min-width: 0; max-width: 100%; padding: 7px; border: 1px solid var(--bok-line-strong); border-radius: 5px; color: var(--bok-ink); background: var(--bok-surface); font: inherit; }
|
|
@media (max-width: 640px) {
|
|
.bok-area-pickers label { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; }
|
|
}
|
|
#bok-coupling-figure.is-full { grid-template-rows: auto auto minmax(0, 1fr) auto; }
|
|
@media (max-width: 640px) {
|
|
#bok-coupling-figure.is-full { display: block; overflow-y: auto; }
|
|
#bok-coupling-figure.is-full .bok-viz-split { height: auto; grid-template-rows: auto auto; }
|
|
#bok-coupling-figure.is-full .bok-viz-stage { height: auto; }
|
|
#bok-coupling-figure.is-full .bok-viz-stage svg { height: auto; }
|
|
}
|