/* Markland Street Ontology docs. Tokens and fonts from ../css/site.css. Three columns: the page
   map, the article and "On this page". Dense, readable, built for reference and for skimming */

body.docs { background: var(--paper); color: var(--ink); }
.docs a { color: inherit; }
.d-top { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.d-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.03em; white-space: nowrap; }
.d-product { font-size: 14.5px; font-weight: 500; color: var(--soft); padding-left: 14px; border-left: 1px solid var(--rule); white-space: nowrap; }
.d-search { position: relative; flex: 1 1 280px; min-width: 0; max-width: 440px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; border-radius: 9px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); color: var(--soft); margin-left: 8px; }
.d-search > svg { width: 16px; height: 16px; flex: none; }
.d-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 500 14px var(--font); color: var(--ink); }
.d-search kbd { font: 500 11.5px var(--font); color: var(--soft); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 5px; padding: 1px 7px; }
.d-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.d-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--paper); border-radius: 10px; box-shadow: 0 0 0 1px var(--rule), var(--shadow-float); padding: 6px; display: grid; max-height: 70vh; overflow: auto; }
.d-results a { display: grid; gap: 2px; padding: 9px 10px; border-radius: 7px; }
.d-results a:hover, .d-results a:first-child { background: var(--sheet); }
.d-results b { font-size: 14px; font-weight: 600; }
.d-results span { font-size: 12.5px; color: var(--soft); }
.d-results p { margin: 0; padding: 10px; color: var(--soft); font-size: 14px; }
.d-toplinks { display: flex; gap: 2px; margin-left: auto; font-size: 14px; font-weight: 500; }
.d-toplinks a { padding: 7px 11px; border-radius: 8px; color: var(--soft); white-space: nowrap; }
.d-toplinks a:hover { color: var(--ink); background: var(--sheet); }
.d-ver { font-size: 12.5px; font-weight: 500; color: var(--soft); background: var(--sheet); border-radius: 5px; padding: 5px 11px; white-space: nowrap; }
.d-theme, .d-menu { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--sheet); flex: none; }
.d-theme svg, .d-menu svg { width: 17px; height: 17px; }
.d-menu { display: none; }
.d-cta { height: 38px; padding: 0 16px; font-size: 14px; }

.d-shell { display: grid; grid-template-columns: 284px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.d-side { position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; border-right: 1px solid var(--rule); scrollbar-width: thin; }
.d-side-in { padding: 18px 14px 40px 18px; }
.d-sec { margin-bottom: 6px; }
.d-sec summary { list-style: none; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 8px 8px 6px; display: flex; justify-content: space-between; align-items: center; border-radius: 6px; }
.d-sec summary::-webkit-details-marker { display: none; }
.d-sec summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(-45deg); transition: transform .2s; }
.d-sec[open] summary::after { transform: rotate(45deg); }
.d-sec ul { list-style: none; margin: 0 0 6px; padding: 0 0 0 8px; border-left: 1px solid var(--rule); margin-left: 8px; }
.d-sec li a { display: block; padding: 5px 10px; font-size: 13.5px; color: var(--soft); border-radius: 0 6px 6px 0; margin-left: -1px; border-left: 1.5px solid transparent; line-height: 1.35; }
.d-sec li a:hover { color: var(--ink); background: var(--sheet); }
.d-sec li a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--tape); background: var(--sheet); }
.d-side-f { margin: 24px 8px 0; font-size: 12px; color: var(--faint); line-height: 1.5; }

.d-main { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 48px; padding: 36px 40px 80px 56px; max-width: 1240px; }
.d-article { min-width: 0; max-width: 780px; font-size: 16px; line-height: 1.65; }
.d-crumb { display: flex; gap: 8px; font-size: 13px; color: var(--soft); margin: 0 0 14px; }
.d-crumb a:hover { color: var(--ink); }
.d-article h1 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; font-weight: 500; letter-spacing: -0.04em; margin: 0 0 16px; }
.d-lede { font-size: 19px; line-height: 1.55; color: var(--soft); margin: 0 0 28px; text-wrap: pretty; }
.d-article h2 { font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -0.03em; margin: 52px 0 12px; scroll-margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--rule); }
.d-article h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; margin: 32px 0 8px; scroll-margin-top: 80px; }
.d-article h4 { font-size: 15px; font-weight: 600; margin: 22px 0 6px; }
.d-article p { margin: 0 0 14px; text-wrap: pretty; }
.d-article ul, .d-article ol { margin: 0 0 16px; padding-left: 22px; }
.d-article li { margin: 4px 0; }
.d-article li::marker { color: var(--faint); }
.d-article a:not(.d-anchor):not(.d-card):not(.btn) { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; }
.d-article a:not(.d-anchor):not(.d-card):not(.btn):hover { text-decoration-color: var(--tape); }
.d-article strong, .d-article b { font-weight: 600; }
.d-article :not(pre) > code { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 0.86em; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.d-anchor { margin-left: 8px; color: var(--faint); opacity: 0; font-weight: 400; text-decoration: none; transition: opacity .2s; }
h2:hover > .d-anchor, h3:hover > .d-anchor { opacity: 1; }

/* Code */
/* Code blocks: a top strip holds the language tag and Copy, clear of the code */
pre.d-code { position: relative; margin: 0 0 20px; padding: 36px 18px 16px; border-radius: 10px; background: var(--n-deep); color: var(--n-ink); overflow: auto; font: 13px/1.6 'SF Mono', Menlo, Consolas, monospace; box-shadow: inset 0 0 0 1px rgba(238, 235, 228, 0.08); }
pre.d-code code { font: inherit; }
pre.d-code .c { color: #8a877f; } pre.d-code .k { color: #ff8a72; } pre.d-code .s { color: #9fd4ae; } pre.d-code .n { color: #e2b765; } pre.d-code .t { color: #93a9c9; } pre.d-code .p { color: #b3a6e0; }
.d-copy { position: absolute; top: 10px; right: 10px; font: 500 12px var(--font); color: var(--n-soft); background: var(--n-well); border-radius: 6px; padding: 4px 9px; opacity: 0; transition: opacity .2s; }
pre.d-code:hover .d-copy, .d-copy:focus { opacity: 1; }
.d-lang { position: absolute; top: 12px; right: 74px; font: 500 11px var(--font); color: var(--n-faint); text-transform: none; }
pre.d-code:hover .d-lang { opacity: 0; }

/* Callouts */
.d-note, .d-warn, .d-tip { margin: 0 0 20px; padding: 14px 16px 14px 18px; border-radius: 10px; font-size: 15px; line-height: 1.55; background: var(--sheet); box-shadow: inset 3px 0 0 var(--soft); }
.d-note > b:first-child, .d-warn > b:first-child, .d-tip > b:first-child { display: block; font-size: 13px; margin-bottom: 2px; }
.d-warn { background: var(--tape-wash); box-shadow: inset 3px 0 0 var(--tape); }
.d-tip { background: var(--go-wash); box-shadow: inset 3px 0 0 var(--go); }
.d-note p:last-child, .d-warn p:last-child, .d-tip p:last-child { margin: 0; }

/* "In the platform today": what runs now, what the demo shows and what is delivered on request, one point a line */
.d-today { margin: 4px 0 30px; padding: 4px 22px 4px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule), 0 18px 40px -34px rgba(18, 18, 17, 0.35); font-size: 14.5px; line-height: 1.6; }
.d-today-h { display: flex; align-items: center; gap: 9px; margin: 0; padding: 14px 0 12px; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.d-today-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 13px 0 7px; border-top: 1px solid var(--rule); }
.d-today-k { font-size: 12px; font-weight: 600; line-height: 1.9; color: var(--faint); }
.d-today-row--built .d-today-k { color: var(--built); }
.d-today-row--demo .d-today-k { color: var(--go); }
.d-today ul { margin: 0; padding: 0; list-style: none; }
.d-today li { position: relative; margin: 0 0 7px; padding-left: 15px; color: var(--ink); }
.d-today li::before { content: ""; position: absolute; left: 1px; top: calc(0.8em - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.d-today-row--built li::before { background: var(--built); }
.d-today-row--req li { color: var(--soft); }
.d-today code { font-size: 0.84em; }
@media (max-width: 760px) {
  .d-today { padding: 2px 16px 2px; }
  .d-today-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-top: 11px; }
}

/* Tables */
.d-tablewrap { overflow-x: auto; margin: 0 0 22px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); }
.d-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.d-table th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--soft); background: var(--sheet); padding: 10px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.d-table td { padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.d-table tr:last-child td { border-bottom: 0; }
.d-table td code { white-space: normal; overflow-wrap: break-word; }   /* breaks only a value too long for its cell */

/* Figures and diagrams. Shared vocabulary for every docs diagram:
   boxes .box (plain), .box-ink (the entry point), .box-tape (the thing this page is about), .box-go (stores and results);
   text .t (name), .t-on (name on ink), .s (detail), .gl (group label, sentence case);
   lines .ln, .ln-tape, .ln-dash, .ln-go; add .to for an arrowhead at the end, .from for one at the start; .grp for a dashed group */
.d-fig { margin: 10px 0 28px; padding: 26px 26px 20px; border-radius: 14px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); }
.d-fig svg { display: block; width: 100%; height: auto; font-family: var(--font); overflow: visible; }
.d-fig figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--soft); line-height: 1.5; }
.d-fig .box { fill: var(--paper); stroke: color-mix(in srgb, var(--ink) 16%, transparent); stroke-width: 1; }
.d-fig .box-ink { fill: var(--ink); stroke: none; }
.d-fig .box-tape { fill: color-mix(in srgb, var(--tape) 9%, var(--paper)); stroke: var(--tape); stroke-width: 1.25; }
.d-fig .box-go { fill: color-mix(in srgb, var(--go) 9%, var(--paper)); stroke: var(--go); stroke-width: 1.25; }
.d-fig .t { fill: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.d-fig .t-on { fill: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.d-fig .s { fill: var(--soft); font-size: 11.5px; }
.d-fig .ln { stroke: var(--faint); stroke-width: 1.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.d-fig .ln-tape { stroke: var(--tape); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.d-fig .ln-go { stroke: var(--go); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.d-fig .ln-dash { stroke: var(--faint); stroke-width: 1.2; fill: none; stroke-dasharray: 4 4; stroke-linecap: round; }
.d-fig .grp { fill: color-mix(in srgb, var(--paper) 45%, transparent); stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-dasharray: 5 4; }
.d-fig .gl { fill: var(--soft); font-size: 11.5px; font-weight: 600; letter-spacing: 0; }
.d-fig .to { marker-end: url(#d-arr); }
.d-fig .from { marker-start: url(#d-arr); }
.d-fig .ln-tape.to { marker-end: url(#d-arr-tape); }
.d-fig .ln-tape.from { marker-start: url(#d-arr-tape); }
.d-fig .ln-go.to { marker-end: url(#d-arr-go); }
.d-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#d-arr path { fill: var(--faint); }
#d-arr-tape path { fill: var(--tape); }
#d-arr-go path { fill: var(--go); }

/* Cards and specs */
.d-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.d-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .2s, transform .3s var(--out); }
.d-card:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.d-card b { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.d-card b svg { width: 17px; height: 17px; }
.d-card span { font-size: 13.5px; color: var(--soft); line-height: 1.45; }
.d-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); margin: 0 0 24px; }
.d-specs div { background: var(--paper); padding: 14px 16px; display: grid; gap: 2px; }
.d-specs b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.d-specs span { font-size: 12.5px; color: var(--soft); line-height: 1.35; }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.d-tags span { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 4px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); }
.d-endpoint { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); font: 13.5px 'SF Mono', Menlo, monospace; overflow-x: auto; white-space: nowrap; }
.d-endpoint .m { font: 700 11.5px var(--font); padding: 3px 7px; border-radius: 5px; background: var(--ink); color: var(--paper); }
.d-endpoint .m.post { background: var(--go); color: #fff; }
.d-endpoint .m.del { background: var(--tape); color: #fff; }
.d-endpoint .m.patch { background: #b07d1f; color: #fff; }
.d-steps { counter-reset: st; list-style: none; padding: 0 !important; }
.d-steps > li { counter-increment: st; position: relative; padding: 0 0 18px 46px; margin: 0 !important; }
.d-steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.d-steps > li::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--rule); }
.d-steps > li:last-child::after { display: none; }

/* On this page */
.d-toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 13px; scrollbar-width: thin; }
.d-toc-h { font-size: 12.5px; font-weight: 600; margin: 0 0 8px; }
.d-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.d-toc li a { display: block; padding: 4px 0 4px 12px; color: var(--soft); margin-left: -1px; border-left: 1.5px solid transparent; line-height: 1.35; }
.d-toc li.h3 a { padding-left: 24px; font-size: 12.5px; }
.d-toc li a:hover { color: var(--ink); }
.d-toc li a.on { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }
.d-toc-f { display: grid; gap: 6px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.d-toc-f a { color: var(--soft); font-weight: 500; }
.d-toc-f a:hover { color: var(--ink); }

/* Pager */
.d-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.d-pager a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule); text-decoration: none !important; }
.d-pager a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.d-pager .next { text-align: right; }
.d-pager small { font-size: 12.5px; color: var(--soft); }
.d-pager b { font-size: 15.5px; font-weight: 600; }
.d-artfoot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--soft); }

@media (max-width: 1240px) {
  .d-main { grid-template-columns: minmax(0, 1fr); padding: 32px 32px 80px 40px; }
  .d-toc { display: none; }
  .d-toplinks { display: none; }
}
@media (max-width: 900px) {
  .d-shell { grid-template-columns: minmax(0, 1fr); }
  .d-side { position: fixed; top: 60px; left: 0; bottom: 0; width: min(320px, 86vw); height: auto; z-index: 25; background: var(--paper); transform: translateX(-102%); transition: transform .35s var(--out); box-shadow: var(--shadow-float); }
  body.d-open .d-side { transform: none; }
  .d-menu { display: grid; }
  .d-main { padding: 24px 16px 64px; }
  .d-ver, .d-cta, .d-product { display: none; }
  .d-top { gap: 10px; padding: 0 12px; }
  .d-brand span { display: none; }
  .d-search { margin-left: 0; }
  .d-search kbd { display: none; }
  .d-cards, .d-cards.three { grid-template-columns: 1fr; }
  .d-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-pager { grid-template-columns: 1fr; }
  .d-fig { padding: 12px; overflow-x: auto; }
  .d-fig svg { min-width: 560px; }
}
.d-results[hidden] { display: none; }
.docs a.btn--go { color: var(--on-press); }
/* Code blocks: undo the site's inline code style inside pre */
pre.d-code code { display: block; white-space: pre; background: none; padding: 0; border-radius: 0; font: inherit; color: inherit; box-shadow: none; }

/* Brand mark: ink on light, paper on dark */
.d-mark-paper { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .d-mark-ink { display: none; } :root:not([data-theme="light"]) .d-mark-paper { display: block; } }
:root[data-theme="dark"] .d-mark-ink { display: none; }
:root[data-theme="dark"] .d-mark-paper { display: block; }

/* Long identifiers wrap instead of pushing the page sideways */
.d-specs code { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .d-article :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
  .d-article, .d-article p, .d-article li, .d-table td { overflow-wrap: break-word; }   /* break a word only when it cannot fit a line of its own */
  .d-table td code { overflow-wrap: break-word; }   /* identifiers stay whole; a wide table scrolls inside its frame */
  .d-table th { white-space: normal; }
  .d-endpoint { white-space: normal; overflow-wrap: anywhere; }
  .d-endpoint .m { flex-shrink: 0; white-space: nowrap; overflow-wrap: normal; }
}

/* Page type and maturity */
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 18px; font-size: 13px; }
.d-type { font-weight: 600; color: var(--soft); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 4px; padding: 3px 10px; }
/* Built is orange: the site's tape colour, a shade deeper in light theme so the label reads at small sizes. The badge
   itself is a lighter orange with white text in both themes */
:root { --built: #c2401f; --built-bg: #e8603c; --on-built: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --built: var(--tape); --built-bg: #ea6a49; } }
:root[data-theme="dark"] { --built: var(--tape); --built-bg: #ea6a49; }
.d-mat { font-weight: 600; border-radius: 4px; padding: 3px 10px; text-decoration: none !important; }
.d-mat--built, .d-meta a.d-mat--built { color: var(--on-built); background: var(--built-bg); }
.d-mat--demo { color: var(--go); background: var(--go-wash); }
.d-mat--designed { color: var(--soft); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); }
.d-matnote { color: var(--faint); }
.d-navmat { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--faint); margin-left: 6px; letter-spacing: 0.01em; }
.d-navmat--demo { color: var(--go); }
.d-navmat--built { color: var(--built); font-weight: 700; }

/* Requirements, limitations, expected output and checklists */
.d-req { margin: 0 0 24px; padding: 14px 18px; border-radius: 10px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); font-size: 14.5px; }
.d-req > b:first-child { display: block; font-size: 12.5px; letter-spacing: 0.02em; color: var(--soft); margin-bottom: 6px; }
.d-req ul { margin: 0; padding-left: 18px; }
.d-req li { margin: 3px 0; }
.d-expect { margin: -8px 0 20px; padding: 10px 14px; border-radius: 0 0 10px 10px; background: var(--go-wash); font-size: 14px; line-height: 1.5; }
.d-expect > b:first-child { font-size: 12.5px; color: var(--go); margin-right: 6px; }
.d-check, .d-article .d-check { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 2px; }
.d-check li { position: relative; padding: 9px 12px 9px 38px; border-radius: 8px; background: var(--sheet); font-size: 15px; line-height: 1.5; }
.d-check li::before { content: ""; position: absolute; left: 12px; top: 12px; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--faint); background: var(--paper); }
.d-check li b { font-weight: 600; }
.d-check li small { display: block; color: var(--soft); font-size: 13px; }
.d-sym { margin: 0 0 22px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.d-sym > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.d-sym > div:first-child { border-top: 0; }
.d-sym > div > b { font-size: 12.5px; color: var(--soft); padding-top: 2px; }
.d-sym > div > div > :last-child { margin-bottom: 0; }
@media (max-width: 600px) { .d-sym > div { grid-template-columns: 1fr; gap: 2px; } }

/* Phones: a table's first column (its row labels or keys) keeps a readable width instead of one letter a line */
@media (max-width: 900px) { .d-table td:first-child, .d-table th:empty { min-width: 7.5em; } }

/* Phones: diagrams scroll sideways at a size whose labels stay readable (about 10.5px) */
@media (max-width: 600px) { .d-fig svg { min-width: 680px; } }
