html { font-size: 14px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 15px; } }

body { margin-bottom: 60px; background: #f5f6f8; }

.footer { position: absolute; bottom: 0; width: 100%; line-height: 50px; white-space: nowrap; background: #fff; }

.brand-mark { color: #ffd966; }

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.field-validation-error { font-size: .875em; }
.input-validation-error { border-color: #dc3545 !important; }

/* ---------- presenter ---------- */
.presenter .panel { height: calc(100vh - 170px); min-height: 520px; display: flex; flex-direction: column; }
.presenter .panel .card-body { overflow: hidden; display: flex; flex-direction: column; }
.presenter .tab-content > .tab-pane.active { display: flex; flex-direction: column; min-height: 0; }
.presenter .scroll { overflow-y: auto; flex: 1 1 auto; }
@media (max-width: 991.98px) { .presenter .panel { height: auto; min-height: 0; } .presenter .scroll { max-height: 360px; } }

.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; }
.chapter-grid .btn { padding: 2px 0; font-size: .85rem; }

.slide-list .list-group-item { cursor: pointer; font-size: .9rem; }
.slide-list .list-group-item .slide-label { font-weight: 600; min-width: 2.2rem; display: inline-block; color: #6c757d; }
.slide-list .list-group-item.active .slide-label { color: #fff; }
.slide-list .list-group-item.is-live { border-left: 4px solid #dc3545; }
.slide-list .group-header { background: #eef1f5; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; cursor: default; }

/* 16:9 screen previews */
.screen { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; color: #fff;
  background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.screen .screen-inner { position: absolute; inset: 6%; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.screen .screen-text { white-space: pre-line; line-height: 1.25; }
.screen .screen-ref { margin-top: .6em; font-size: .55em; opacity: .95; }
.screen .screen-text2 { white-space: pre-line; line-height: 1.25; margin-top: .6em; padding-top: .6em; border-top: 1px solid rgba(255,255,255,.3); }
.screen.is-blank .screen-inner { display: none; }
.screen.is-blank { background: #000 !important; }
.screen.is-cleared .screen-inner { visibility: hidden; }
.screen-badge { position: absolute; top: 6px; left: 8px; font-size: .7rem; z-index: 2; }

.kbd-hint kbd { font-size: .75rem; }

/* ---------- themes ---------- */
.theme-swatch { aspect-ratio: 16/9; border-radius: 6px; display: flex; align-items: center; justify-content: center; padding: 8%;
  background-size: cover; background-position: center; overflow: hidden; }

.verse-row:hover .verse-actions { visibility: visible; }
.verse-actions { visibility: hidden; }
@media (hover: none) { .verse-actions { visibility: visible; } }
.verse-num { font-weight: 700; color: #6c757d; vertical-align: super; font-size: .75em; margin-right: .25rem; }
.verse-text[contenteditable="true"] { outline: 2px dashed #0d6efd; padding: 2px 4px; border-radius: 4px; background: #fff; }

.section-card .handle { cursor: grab; }
mark { padding: 0 .1em; }
