/* Bed mesh map (/gifts/bed-mesh/): on top of the shared maker look (/gifts/globes/maker.css). */

.bm [hidden] { display: none !important; }
.bm .wm-seg button { padding: 6px 8px; white-space: normal; line-height: 1.25; }
.bm .bm-label { display: block; font-size: 0.8rem; color: var(--muted); margin: 14px 0 6px; }
.bm textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.74rem; line-height: 1.35; white-space: pre; overflow-x: auto; resize: vertical; }
.bm-read { font-size: 0.78rem; line-height: 1.4; color: var(--muted); margin: 6px 0 0; min-height: 1em; }
.bm-read:empty { display: none; }
.bm-read.bm-bad { color: #f3d38a; }
.bm-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bm-row .wm-btn { flex: 1 1 auto; justify-content: center; }
.bm-row .wm-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.bm-chips { margin-top: 4px; }
.bm-chips .wm-chip { font-size: 0.76rem; padding: 5px 10px; }
.bm-chips .wm-chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.bm-pal i { display: inline-block; width: 26px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(255, 255, 255, 0.25); }
.bm .wm-seg + .wm-field, .bm .wm-seg + .wm-range { margin-top: 12px; }

/* where to find the mesh */
.bm-where { margin: 12px 0; font-size: 0.8rem; line-height: 1.45; }
.bm-where summary { cursor: pointer; color: var(--accent); }
.bm-where ul { margin: 8px 0 4px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.bm-where code { font-size: 0.74rem; background: rgba(255, 255, 255, 0.08); padding: 1px 4px; border-radius: 4px; }

/* before and after */
.bm-more > summary { cursor: pointer; list-style: none; }
.bm-more > summary::-webkit-details-marker { display: none; }
.bm-more > summary h2 { display: inline; }
.bm-more > summary::after { content: '+'; float: right; color: var(--muted); }
.bm-more[open] > summary::after { content: '−'; }

/* colours and the filament changes */
.bm-colours { margin-top: 12px; }
.bm-lh { margin-top: 12px; }
.bm-swaps { margin: 6px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; line-height: 1.35; }
.bm-sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; border: 1px solid rgba(255, 255, 255, 0.3); }

/* warnings */
.bm-warn { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bm-warn:empty { display: none; }
.bm-warn li { font-size: 0.78rem; line-height: 1.4; color: #f3d38a; background: rgba(217, 177, 74, 0.1); border-radius: 8px; padding: 7px 9px; }

@media (max-width: 560px) {
    .bm .wm-stagebar .wm-btn span { display: none; }
}
