/* classes that set display would otherwise beat the hidden attribute the script toggles */
.bs-wrap [hidden] { display: none !important; }
.bs-main { padding: 24px 16px 64px; }
.bs-wrap { max-width: 720px; margin: 0 auto; font-family: inherit; line-height: 1.5; }
.bs-wrap h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.15; margin: 0 0 .4em; }
.bs-lede { font-size: 1.05rem; }
.bs-tips { background: #f7f3ea; border-radius: 8px; padding: 12px 16px 12px 32px; margin: 16px 0; }
.bs-form fieldset { border: 1px solid #d9d2c3; border-radius: 10px; padding: 14px 16px 16px; margin: 0 0 16px; }
.bs-form legend { font-weight: 700; padding: 0 6px; }
.bs-form label { display: block; margin: 12px 0 4px; font-weight: 600; }
.bs-hint { font-weight: 400; color: #5b564c; }
.bs-form input:not([type=checkbox]):not([type=file]), .bs-form select { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid #a99f8c; border-radius: 6px; background: #fff; min-height: 44px; }
.bs-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.bs-check input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.bs-btn { display: inline-block; font: inherit; font-weight: 700; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid #990000; background: #990000; color: #fff; cursor: pointer; text-decoration: none; }
.bs-btn:hover { background: #7a0000; border-color: #7a0000; }
.bs-btn { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; box-sizing: border-box; }
/* The theme colours links on hover and on visit; say the button colours out loud so the label never matches its background. */
.bs-wrap a.bs-btn, .bs-wrap a.bs-btn:visited, .bs-wrap a.bs-btn:hover, .bs-wrap a.bs-btn:focus-visible { color: #fff; text-decoration: none; }
.bs-wrap a.bs-btn--quiet, .bs-wrap a.bs-btn--quiet:visited { color: #990000; }
.bs-wrap a.bs-btn--quiet:hover, .bs-wrap a.bs-btn--quiet:focus-visible { color: #7a0000; background: #f7ecec; }
.bs-wrap button.bs-btn:hover, .bs-wrap button.bs-btn:focus-visible { color: #fff; }
.bs-wrap button.bs-btn--quiet:hover, .bs-wrap button.bs-btn--quiet:focus-visible { color: #7a0000; }
.bs-btn--quiet { background: #fff; color: #990000; }
.bs-btn--quiet:hover { background: #f7ecec; color: #7a0000; }
.bs-btn--stop { background: #222; border-color: #222; }
.bs-btn--go { width: 100%; font-size: 1.1rem; }
.bs-btn:disabled { opacity: .6; cursor: wait; }
.bs-btn:focus-visible, .bs-form input:focus-visible, .bs-form select:focus-visible, .bs-link:focus-visible, .bs-report:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
.bs-rec__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bs-timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.bs-meter { border: 1px solid #a99f8c; border-radius: 3px; background: #fff; }
.bs-or { margin: 10px 0; color: #5b564c; }
.bs-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bs-file:focus-within .bs-btn { outline: 3px solid #1a5fb4; outline-offset: 2px; }
.bs-preview { margin-top: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bs-preview audio { max-width: 100%; }
.bs-link, .bs-report { background: none; border: 0; padding: 6px 2px; color: #990000; text-decoration: underline; cursor: pointer; font: inherit; }
.bs-note { color: #5b564c; font-size: .92rem; margin: 8px 0 0; }
.bs-err { color: #b00020; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.bs-map { width: 100%; height: 300px; border: 1px solid #a99f8c; border-radius: 8px; touch-action: none; display: block; margin-top: 8px; background: #f4efe4; }
.bs-maptools { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bs-maptools .bs-btn { min-width: 44px; }
.bs-hits { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid #a99f8c; border-radius: 6px; background: #fff; }
.bs-hits button { width: 100%; text-align: left; font: inherit; padding: 10px 12px; min-height: 44px; border: 0; background: none; cursor: pointer; }
.bs-hits button:hover, .bs-hits button:focus-visible { background: #f7ecec; }
.bs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bs-done { background: #eef6ee; border: 1px solid #b8d8b8; border-radius: 10px; padding: 16px 20px; }
.bs-hero { padding: 8px 0 20px; }
.bs-eyebrow { margin: 0 0 6px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #990000; }
.bs-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; }
.bs-empty { background: #fff; border: 1px solid #e2dccd; border-radius: 16px; padding: 28px 24px 30px; text-align: center; box-shadow: 0 1px 2px rgba(60, 40, 20, .06); }
.bs-wave { color: #990000; opacity: .85; margin: 0 auto 6px; display: block; }
.bs-empty h2 { font-size: 1.3rem; margin: 6px 0 8px; }
.bs-empty p { margin: 0 auto 14px; max-width: 34em; }
.bs-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; margin: 0 0 18px; }
.bs-chips li { background: #f7ecec; color: #7a0000; border-radius: 999px; padding: 6px 14px; font-size: .95rem; font-weight: 600; }
.bs-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; }
.bs-item { background: #fff; border: 1px solid #e2dccd; border-left: 5px solid #990000; border-radius: 12px; padding: 14px 18px 12px; box-shadow: 0 1px 2px rgba(60, 40, 20, .06); }
.bs-item h2 { font-size: 1.2rem; margin: 0 0 4px; }
.bs-cap { margin: 0 0 4px; }
.bs-item audio { width: 100%; margin: 8px 0; }
.bs-credit { color: #5b564c; font-size: .9rem; margin: 0; }
.bs-how { margin-top: 36px; }
.bs-how h2 { font-size: 1.1rem; margin: 0 0 12px; }
.bs-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding: 0; margin: 0; }
.bs-steps li { counter-increment: step; position: relative; background: #f7f3ea; border-radius: 12px; padding: 14px 16px 14px 54px; display: flex; flex-direction: column; gap: 2px; }
.bs-steps li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: #990000; color: #fff; font-weight: 800; display: grid; place-items: center; }
.bs-steps span { color: #5b564c; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .bs-empty, .bs-steps li { background: transparent; border: 1px solid #555; } .bs-chips li { background: #3a2323; color: #f0c8c8; } .bs-tips, .bs-form fieldset, .bs-item { background: transparent; border-color: #555; } .bs-hint, .bs-note, .bs-or, .bs-credit { color: #b9b4a8; } }

.bs-suggest { margin: 8px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bs-suggest .bs-note { margin: 0; flex: 1 1 220px; }
