/* a cluster's mnemonic (render.js) — /tools/mnemonics and /db's 📖 panel */
.mn-note { font-size: .85rem; color: #6f6e68; }
.mn-pic { border: 1px solid rgba(128, 128, 128, .25); border-radius: .4rem; overflow: hidden; }
.mn-pic img { width: 100%; height: auto; display: block; cursor: zoom-in; background: #fff; }
.mn-pic .mn-cap { padding: .5rem .7rem; font-size: .92rem; }
.mn-pic .mn-style { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #6f6e68; }
.mn-fail { padding: 2rem 1rem; text-align: center; color: #6f6e68; }
.mn-terms { display: flex; flex-wrap: wrap; gap: .3rem .35rem; margin-top: .55rem; }
.mn-t { font-size: .82rem; border-radius: 1rem; padding: .1rem .55rem; border: 1px solid currentColor; white-space: nowrap; }
.mn-t.red { color: #c62828; font-weight: 600; }
.mn-t.oth { color: #e65100; }
.mn-t.miss { opacity: .55; border-style: dashed; }
.mn-t.drawn { border-style: dotted; }
.mn-cov { font-size: .82rem; color: #6f6e68; margin-left: .3rem; align-self: center; }
.mn-links { font-size: .85rem; margin: .4rem 0 0; padding-left: 1.1rem; }
.mn-links li { margin: .1rem 0; }
.mn-facts { font-size: .88rem; margin: .5rem 0 .3rem; padding-left: 1.1rem; }
.mn-facts li { margin: .12rem 0; }
.mn-t[title] { cursor: help; }
.mn-art { position: relative; line-height: 0; }
.mn-art img { width: 100%; height: auto; display: block; }
.mn-box { position: absolute; border: 3px solid #ffd600; box-shadow: 0 0 0 1px rgba(0, 0, 0, .7); border-radius: 3px; cursor: pointer; transition: border-color .15s, background .15s; }
.mn-box span { position: absolute; left: -3px; top: -3px; background: #c62828; color: #fff; font: 700 .8rem/1.4 Arial, sans-serif; padding: 0 .35rem; border-radius: 3px 0 3px 0; }
.mn-box.on { border-color: #ff1744; background: rgba(255, 214, 0, .18); z-index: 2; }
.mn-art:has(.mn-box.on) .mn-box:not(.on) { opacity: .35; }
.mn-details { font-size: .9rem; margin: .5rem 0 .3rem; padding-left: 1.4rem; }
.mn-details li { margin: .2rem 0; cursor: pointer; border-radius: .25rem; padding: .05rem .25rem; }
.mn-details li.on { background: rgba(255, 214, 0, .25); }
.mn-details li.nobox { cursor: default; opacity: .75; }
.mn-guide { border: 1px solid rgba(128, 128, 128, .25); border-radius: .4rem; padding: .3rem .8rem .6rem; margin-top: .6rem; }
.mn-play { margin-top: .2rem; display: flex; align-items: center; gap: .5rem; }
.mn-play audio { height: 32px; max-width: 100%; }
.mn-mode { font-weight: 600; margin: .9rem 0 .35rem; }
.mn-refs { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: flex-end; margin: .4rem 0 .2rem; }
.mn-refs a { display: flex; flex-direction: column; align-items: center; font-size: .75rem; text-decoration: none; max-width: 120px; text-align: center; }
.mn-refs img { height: 72px; width: auto; max-width: 120px; object-fit: cover; border-radius: .25rem; border: 1px solid rgba(128, 128, 128, .3); }
[data-bs-theme="dark"] .mn-note, [data-bs-theme="dark"] .mn-cov { color: #a3a29a; }
.mn-story { margin: .5rem 0 .2rem; font-size: .9rem; }
#wk-panel .mn-pic { border: 0; }
#wk-panel .mn-pic .mn-cap { padding: .4rem 0; }
#wk-panel .mn-facts, #wk-panel .mn-details { font-size: .86rem; }
.mn-work + .mn-work { margin-top: .8rem; }
.mn-people { display: grid; gap: .5rem; margin-top: .8rem; }
.mn-person { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; }
.mn-person img { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: .4rem; flex: none; cursor: zoom-in; }
.mn-t.b-name { color: var(--ngram-proper-noun, #fd7e14); }
.mn-t.b-rare { color: var(--ngram-rare, rgb(171, 71, 188)); font-weight: 600; }
.mn-t.b-other { color: var(--ngram-other, rgb(38, 166, 154)); }
.mn-t.red { color: var(--ngram-answer-line, #c62828); }

/* /tools/mnemonics: how many clusters of each category have a picture */
.mn-cov-box { border: 1px solid rgba(128, 128, 128, .25); border-radius: .4rem; padding: .5rem .8rem; max-width: 60rem; }
.mn-cov-box summary { cursor: pointer; }
.mn-cov-wrap { overflow-x: auto; max-height: 26rem; overflow-y: auto; margin-top: .4rem; }
.mn-cov-t { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
.mn-cov-t th, .mn-cov-t td { padding: .18rem .6rem .18rem 0; text-align: left; border-bottom: 1px solid rgba(128, 128, 128, .15); white-space: nowrap; }
.mn-cov-t thead th { position: sticky; top: 0; background: var(--bs-body-bg, #fff); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6f6e68; }
.mn-cov-t .num { text-align: right; }
.mn-cov-t td.bar { width: 40%; min-width: 7rem; padding-right: 0; }
.mn-cov-t .mn-bar { display: block; height: .55rem; border-radius: .3rem; background: rgba(128, 128, 128, .18); overflow: hidden; }
.mn-cov-t .mn-bar > i { display: block; height: 100%; background: #3f8f6b; border-radius: .3rem; }
.mn-cov-t tr.all td { font-weight: 700; border-top: 2px solid rgba(128, 128, 128, .35); }
.mn-cov-t tr.cat td { font-weight: 700; }
.mn-cov-t tr.cat td:first-child { padding-top: .45rem; }
.mn-cov-t tr.sub td:first-child { padding-left: 1.4rem; }
.mn-cov-t tr.sub td { font-weight: 400; }
.mn-cov-t tr.alt td:first-child { font-style: italic; }
.mn-cov-t tr.alt.first td { border-top: 1px dashed rgba(128, 128, 128, .4); }
