/* Symbol library UI layer (stickers, entities, places, scenes, figures, claims, language).
   Applied by tools/apply_shell.py to the library pages; the original app.css stays the source of truth. */

/* list thumbnails: keep tall symbols (receptors, pores) inside their tile */
.list-grid .mini, .mini { overflow: hidden }
.list-grid .mini svg, .mini svg { width: 100%; height: 36px; max-width: 52px; overflow: hidden }

/* folded technical details on a symbol page */
.om-lib-tech { margin-top: 14px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper, transparent) }
.om-lib-tech > summary { cursor: pointer; list-style: none; padding: 10px 14px; font: 600 .8125rem/1.3 var(--font-text); color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px }
.om-lib-tech > summary::-webkit-details-marker { display: none }
.om-lib-tech > summary::after { content: "+"; font-weight: 400; color: var(--ink-3) }
.om-lib-tech[open] > summary::after { content: "–" }
.om-lib-tech > div { padding: 0 14px 14px }
.om-lib-tech dl { margin-top: 4px }
.om-lib-tech .panel { margin-top: 12px }

/* folded anchors table */
.om-lib-anchors > summary { cursor: pointer; list-style: none; padding: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px }
.om-lib-anchors > summary::-webkit-details-marker { display: none }
.om-lib-anchors > summary h2 { margin: 0; font: 420 clamp(1.75rem,1.3rem + 1.6vw,2.5rem)/1.08 var(--font-display); letter-spacing: -.02em }
.om-lib-anchors[open] > summary { margin-bottom: 14px }
.om-lib-anchors > summary::after { content: "Show"; font: 600 .8125rem/1 var(--font-text); color: var(--accent-text) }
.om-lib-anchors[open] > summary::after { content: "Hide" }

/* symbol cards on an entity or place page: the export layer the Worker adds (worker/export-pages.js, legacy-export.js)
   puts the PowerPoint, SVG and PNG buttons inside the picture's tile, over the drawing. The drawing then keeps the 4:3
   tile for itself and the buttons sit under it, so the two never share a box (sweep m04) */
.stk-tile:has(> .om-export-controls) { aspect-ratio: auto; background: none; border: 0; border-radius: 0 }
.stk-tile:has(> .om-export-controls) > svg { position: static; display: block; box-sizing: border-box; width: 100%; height: auto; aspect-ratio: 4 / 3; padding: 9% 12%; background: var(--tile); border: 1px solid var(--rule); border-radius: 3px }
.stk:hover .stk-tile:has(> .om-export-controls) > svg { border-color: var(--accent-text) }
.stk-tile > .om-export-controls { margin: 8px 0 0 }
