/* ==========================================================================
   SDA Hymnals Online — components added in the 2026-10 UX pass.
   Loaded after style.css. Phone layout (< 768px) is at the bottom.
   ========================================================================== */

:root {
    --nav-height: 70px;
    --tab-bar-height: 62px;
    --radius: 12px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 10000;
    background: var(--brand-gold);
    color: var(--brand-green-dark);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.skip-link:focus {
    left: 8px;
}

:focus-visible {
    outline: 3px solid rgba(197, 160, 67, 0.65);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

/* ---------- Navbar ---------- */
.site-nav .navbar-brand span {
    white-space: nowrap;
}

.site-nav .nav-link i {
    width: 1.1em;
    text-align: center;
}

.site-nav .nav-text {
    margin-left: 8px;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tablets: icons only for the secondary links so the bar never wraps */
    .site-nav .nav-text {
        display: none;
    }

    .site-nav .hymnal-switcher-label {
        max-width: 160px;
    }
}

.nav-icon-btn {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nav-icon-btn:hover {
    color: var(--brand-gold);
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--brand-green-dark);
    border-top: 2px solid var(--brand-gold);
    padding: 24px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--brand-gold);
}

/* ---------- Page headers ---------- */
.page-header {
    margin-bottom: 18px;
}

.page-header .page-title {
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.page-subtitle a {
    color: var(--brand-green-light);
}

.narrow-page {
    max-width: 760px;
    margin: 0 auto;
}

.narrow-page > .page-subtitle {
    margin-bottom: 22px;
}

.section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 10px;
}

.lang-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--brand-green-dark);
    background-color: rgba(197, 160, 67, 0.18);
    border: 1px solid rgba(197, 160, 67, 0.45);
    margin-right: 4px;
}

.error-code {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--brand-gold);
    opacity: 0.6;
    line-height: 1;
    margin-bottom: 12px;
}

/* ---------- Search fields ---------- */
.search-field {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-page);
    border: 2px solid var(--border-color);
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field:focus-within {
    border-color: var(--brand-green-light);
    box-shadow: 0 0 0 4px rgba(28, 92, 82, 0.1);
    background: var(--bg-card);
}

.search-field-icon {
    position: absolute;
    left: 18px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-field-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 13px 8px 13px 46px;
    font-size: 1.05rem;
    color: var(--text-primary);
    outline: none;
}

.search-field-input::-webkit-search-cancel-button {
    cursor: pointer;
}

.search-field-btn {
    flex-shrink: 0;
    margin: 5px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 6px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 48px;
    min-height: 36px;
}

.search-field-btn[aria-pressed="true"] {
    background: var(--brand-green-dark);
    color: #fff;
    border-color: var(--brand-green-dark);
}

.search-field-submit {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--brand-green-dark);
    padding: 6px 18px;
}

.search-field-lg .search-field-input {
    font-size: 1.15rem;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Hymnal page: search pinned below the navbar */
.list-search {
    position: sticky;
    top: var(--nav-height);
    z-index: 5;
    background: var(--bg-card);
    padding: 10px 0;
    margin: -10px 0 8px;
}

.best-match a {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--brand-green-dark);
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.best-match a:hover {
    background: var(--brand-green-accent);
}

.best-match-key {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--brand-gold);
    color: var(--brand-green-dark);
    padding: 2px 8px;
    border-radius: 6px;
}

.search-everywhere {
    display: block;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    color: var(--brand-green-light);
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.search-everywhere:hover {
    background: rgba(197, 160, 67, 0.06);
}

/* ---------- Hymn lists ---------- */
.hymn-list,
.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hymn-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}

.hymn-row,
.result-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    min-height: 56px;
}

.hymn-row:hover,
.result-row:hover {
    border-color: var(--brand-gold);
    background: rgba(197, 160, 67, 0.05);
    color: var(--text-primary);
}

.hymn-row-num {
    flex-shrink: 0;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-green-dark);
    background: rgba(197, 160, 67, 0.12);
}

.hymn-row-title {
    flex: 1;
    font-weight: 500;
    line-height: 1.3;
}

.hymn-row-arrow {
    color: var(--border-color);
    font-size: 0.75rem;
}

.result-list li {
    position: relative;
    margin-bottom: 8px;
}

.result-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 2px;
}

.result-title {
    font-weight: 600;
    line-height: 1.3;
}

.result-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.result-snippet {
    font-family: 'Lora', serif;
    font-size: 0.88rem;
    color: var(--text-secondary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.result-snippet mark {
    background: rgba(197, 160, 67, 0.3);
    color: inherit;
    padding: 0 1px;
    border-radius: 3px;
}

.row-remove {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.row-remove:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #b02a37;
}

.result-list li:has(.row-remove) .result-row {
    padding-right: 52px;
}

.search-page-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.search-hymnal-select {
    border-radius: 999px;
    border: 1px solid var(--border-color);
    padding-left: 18px;
    color: var(--text-secondary);
}

.search-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-height: 1.2em;
}

.search-tips {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.idle-section {
    margin-bottom: 28px;
}

.small-empty {
    padding: 18px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
}

/* Popular hymns strip (phones and tablets) */
.popular-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0 12px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.popular-strip::-webkit-scrollbar {
    display: none;
}

.popular-strip-title {
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.popular-strip-title i {
    color: #e0a526;
}

.popular-chip {
    flex-shrink: 0;
    white-space: nowrap;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-page);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.popular-chip strong {
    color: var(--brand-green-light);
}

/* All hymnals page */
.hymnal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.hymnal-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
}

.hymnal-card:hover {
    border-color: var(--brand-gold);
    color: var(--text-primary);
    background: rgba(197, 160, 67, 0.05);
}

.hymnal-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.hymnal-card-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.hymnal-card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hymnal-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hymnal-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.hymnal-chip:hover {
    border-color: var(--brand-gold);
}

/* ---------- Hymn page ---------- */
.hymn-page {
    max-width: 820px;
    margin: 0 auto;
}

.hymn-crumbs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.hymn-crumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.hymn-crumbs a:hover {
    color: var(--brand-green-light);
}

.hymn-crumbs-steps {
    gap: 6px;
}

.hymn-crumbs-steps a {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 4px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
}

.hymn-header {
    text-align: center;
    margin-bottom: 18px;
}

.hymn-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-gold-hover);
    margin-bottom: 4px;
}

.hymn-title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    margin: 0;
}

.hymn-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tool-group {
    display: inline-flex;
    gap: 4px;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tool-btn:hover:not(:disabled) {
    border-color: var(--brand-gold);
    background: rgba(197, 160, 67, 0.06);
}

.tool-btn:disabled {
    opacity: 0.4;
}

.tool-btn-sm {
    min-width: 44px;
    padding: 6px 10px;
    font-weight: 700;
}

.tool-btn.active {
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.4);
    background: rgba(192, 57, 43, 0.06);
}

.lyrics-canvas.xlarge-font {
    font-size: 2.05rem;
    line-height: 1.75;
}

.lyrics-canvas .verse {
    margin: 0 auto 28px;
}

.verse-label {
    font-family: 'Outfit', sans-serif;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 4px;
}

.lyrics-canvas .chorus .verse-label {
    color: var(--brand-gold-hover);
    opacity: 0.9;
}

.lyrics-missing {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.lyrics-meta {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 10px 0 0;
}

/* Repeated choruses: collapsed to a label, tap to expand */
.lyrics-canvas details.is-repeat {
    padding-top: 8px;
    padding-bottom: 8px;
}

.lyrics-canvas details.is-repeat > summary {
    cursor: pointer;
    list-style: none;
    margin: 0;
}

.lyrics-canvas details.is-repeat > summary::-webkit-details-marker {
    display: none;
}

.lyrics-canvas details.is-repeat > summary::after {
    content: ' (repeat) ▾';
    text-transform: none;
    letter-spacing: 0;
}

.lyrics-canvas details.is-repeat[open] > summary::after {
    content: ' ▴';
}

.lyrics-canvas details.is-repeat[open] > summary {
    margin-bottom: 4px;
}

.swipe-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hymn-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.hymn-pager-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    min-width: 0;
}

.hymn-pager-link.is-next {
    text-align: right;
    grid-column: 2;
}

.hymn-pager-link:hover {
    border-color: var(--brand-gold);
    color: var(--text-primary);
}

.hymn-pager-dir {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-green-light);
}

.hymn-pager-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* ---------- Presenter mode ---------- */
.presenter-overlay:not([hidden]) {
    display: flex;
}

body.presenting {
    overflow: hidden;
}

.presenter-header h2 {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presenter-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.presenter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.presenter-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.presenter-body {
    position: relative;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.presenter-slide-content {
    color: #ffffff;
}

.presenter-slide-content.enter-right {
    transform: translateX(24px);
}

.presenter-slide-content.enter-left {
    transform: translateX(-24px);
}

.presenter-slide-content.active {
    transform: none;
}

.slide-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-gold);
    margin-bottom: 12px;
}

.slide-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slide-title-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-gold);
}

.slide-title-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.2;
}

.slide-title-book {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.presenter-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    z-index: 1;
}

.presenter-nav.prev {
    left: 0;
}

.presenter-nav.next {
    right: 0;
}

.presenter-nav:disabled {
    opacity: 0;
    pointer-events: none;
}

.presenter-pagination {
    flex-wrap: wrap;
    justify-content: center;
}

.presenter-page-link {
    min-width: 40px;
    min-height: 36px;
}

/* ---------- Feedback & offline ---------- */
.offline-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    z-index: 1050;
    max-width: calc(100% - 32px);
    background: var(--brand-green-dark);
    color: #fff;
    border: 1px solid var(--brand-gold);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.85rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* ---------- Tab bar (phones) ---------- */
.tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(7, 31, 27, 0.98);
    border-top: 1px solid rgba(197, 160, 67, 0.5);
    padding-bottom: env(safe-area-inset-bottom);
    backdrop-filter: blur(10px);
}

.tab-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: var(--tab-bar-height);
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
}

.tab-bar a i {
    font-size: 1.15rem;
}

.tab-bar a.active {
    color: var(--brand-gold);
}

.tab-bar a.active i.far {
    font-weight: 900;
}

/* ==========================================================================
   Phones (< 768px): app-style layout
   ========================================================================== */
@media (max-width: 767.98px) {
    :root {
        --nav-height: 56px;
    }

    body {
        padding-bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom));
    }

    .site-nav {
        padding: 8px 0;
    }

    .site-nav .navbar-brand {
        font-size: 1.05rem;
        gap: 8px;
    }

    .site-nav .nav-logo {
        max-height: 30px;
    }

    /* Content runs edge to edge instead of a card inside the page */
    main.container {
        padding-left: 0;
        padding-right: 0;
    }

    .content-container {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
        margin: 0;
        padding: 18px 16px 24px;
        min-height: calc(100vh - var(--nav-height) - var(--tab-bar-height));
    }

    .page-title {
        font-size: 1.6rem;
        margin-bottom: 14px;
    }

    .list-search {
        margin: 0 -16px 8px;
        padding: 8px 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .hymn-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hymn-row {
        border: 0;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        padding: 8px 2px;
        min-height: 52px;
        background: transparent;
    }

    .hymn-row-num {
        min-width: 38px;
        height: 34px;
        font-size: 0.9rem;
    }

    .result-row {
        padding: 10px 12px;
    }

    .hymn-crumbs {
        margin-bottom: 6px;
    }

    .hymn-toolbar {
        display: grid;
        grid-template-columns: 1fr 0.7fr 0.7fr 1fr 1fr 1fr 1fr;
        gap: 2px;
        margin: 0 -10px 4px;
    }

    .tool-group {
        display: contents;
    }

    .tool-btn {
        flex-direction: column;
        gap: 2px;
        border: 0;
        background: transparent;
        border-radius: 10px;
        padding: 6px 2px;
        font-size: 0.68rem;
        min-height: 52px;
    }

    .tool-btn i {
        font-size: 1.05rem;
    }

    .tool-btn-sm {
        flex-direction: row;
        font-size: 1.05rem;
        min-width: 0;
    }

    .lyrics-canvas {
        margin: 8px -16px 0;
        padding: 24px 14px;
        border-radius: 0;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    .lyrics-canvas.small-font {
        font-size: 1rem;
    }

    .lyrics-canvas.normal-font {
        font-size: 1.15rem;
        line-height: 1.75;
    }

    .lyrics-canvas.large-font {
        font-size: 1.4rem;
        line-height: 1.7;
    }

    .lyrics-canvas.xlarge-font {
        font-size: 1.7rem;
        line-height: 1.6;
    }

    .lyrics-canvas .chorus {
        padding: 12px 10px;
        margin: 20px auto;
    }

    .hymn-pager-link {
        padding: 10px 12px;
    }

    .presenter-header h2 {
        font-size: 0.95rem;
    }

    .presenter-nav {
        display: none;
    }

    .site-footer {
        padding: 18px 0 20px;
    }

    .offline-banner {
        bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom) + 12px);
    }

    /* Bootstrap's toast/fab from older pages sit above the tab bar */
    .toast-container {
        bottom: calc(var(--tab-bar-height) + 16px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
