/* System maps (system-map.js) and their building-blocks sheet. */
.system-map { margin:12px 0; min-width:0; }
.system-map-crumb { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px; margin:0 0 6px; font-size:0.95rem; }
.system-map-crumb button { font:inherit; color:var(--link, inherit); background:none; border:0; padding:2px 0; text-decoration:underline; cursor:pointer; }
.system-map-crumb [aria-current] { font-weight:600; }
.system-map-drawing { width:100%; min-width:0; overflow:hidden; }
/* the focus chooser: a long row name shortens the control, never widens the page */
.system-map-focus { display:flex; align-items:baseline; gap:6px; max-width:100%; margin:0 0 6px; }
.system-map-focus select { flex:1 1 auto; min-width:0; max-width:100%; font:inherit; }
.system-map-svg { display:block; }
.system-map-svg [data-open] { cursor:pointer; }
.system-map-svg [data-open]:hover > *, .system-map-svg [data-open]:focus-visible > * { filter:brightness(0.93); }
.system-map-svg [data-open]:focus-visible { outline:3px solid var(--focus, #2563eb); outline-offset:1px; }

.mark-sheet { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap:12px; padding:0; list-style:none; }
.mark-sheet li { display:grid; grid-template-columns:72px 1fr; gap:10px; align-items:start; padding:10px; border:1px solid var(--rule); background:var(--cream-raised); }
.mark-sample { width:72px; height:56px; display:grid; place-items:center; background:#f6f8fb; border-radius:6px; overflow:hidden; }
.mark-sample svg { display:block; max-width:100%; max-height:100%; }
.mark-sheet h3 { margin:0 0 2px; font-size:1rem; }
.mark-sheet p { margin:0; font-size:0.92rem; }
.mark-sheet .mark-from { color:var(--muted, #64748b); font-size:0.82rem; margin-top:4px; }

/* What happens when (what-happens.js): the scenario tree, its fold control
   and the author's unverified notes outside the frame. */
.what-happens-svg { display:block; }
.what-happens-svg [data-open] { cursor:pointer; }
.what-happens-svg [data-open]:hover > *, .what-happens-svg [data-open]:focus-visible > * { filter:brightness(0.93); }
.what-happens-svg [data-open]:focus-visible { outline:3px solid var(--focus, #2563eb); outline-offset:1px; }
.what-happens-cross { font:inherit; font-size:0.9rem; margin:0 0 6px; padding:4px 10px; border:1px solid #c9b8ee; border-radius:6px; background:#f1ecfb; color:#5b3fa8; cursor:pointer; }
.what-happens-cross[aria-pressed="true"] { background:#fff; }
.wh-notes { margin:8px 0 0; padding:10px 12px; border:1px dashed var(--rule, #d0d7e2); font-size:0.92rem; overflow-wrap:anywhere; }
.wh-notes h3 { margin:0 0 4px; font-size:1rem; }
.wh-notes p { margin:0 0 6px; color:var(--muted, #64748b); }
.wh-notes ul { margin:0; padding-left:18px; }
.wh-note-kind { font-weight:600; }
.wh-note-at { color:var(--muted, #64748b); font-family:ui-monospace, monospace; font-size:0.85em; }
