/* ==========================================================================
   Techage Bible Portal - base design system
   Deep navy + warm gold, generous whitespace, Scripture-first typography.
   Themes: light (default), dark, sepia via [data-theme] on <html>.
   ========================================================================== */

@font-face {
    font-family: "Literata";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/fonts/literata-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Literata";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/fonts/literata-latin-400-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Literata";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../vendor/fonts/literata-latin-700-normal.woff2") format("woff2");
}

:root {
    --tb-navy: #15254a;
    --tb-navy-2: #1f3566;
    --tb-navy-soft: #e8ecf6;
    --tb-gold: #c8962e;
    --tb-gold-2: #e0b456;
    --tb-gold-soft: #fbf3e1;

    --tb-bg: #ffffff;
    --tb-surface: #ffffff;
    --tb-surface-2: #f6f7fb;
    --tb-border: #e3e6ee;
    --tb-text: #2b2f38;
    --tb-muted: #6b7180;
    --tb-heading: #15254a;
    --tb-link: #1f3f8f;
    --tb-verse-num: #b0822a;
    --tb-shadow: 0 1px 2px rgba(21, 37, 74, .06), 0 4px 16px rgba(21, 37, 74, .06);

    --tb-serif: "Literata", Georgia, "Times New Roman", serif;
    --tb-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --tb-radius: 14px;
    --tb-header-h: 60px;

    --bs-body-font-family: var(--tb-sans);
    --bs-body-color: var(--tb-text);
    --bs-body-bg: var(--tb-bg);
    --bs-link-color: var(--tb-link);
    --bs-link-color-rgb: 31, 63, 143;
    --bs-link-hover-color: var(--tb-navy);
    --bs-primary: var(--tb-navy);
    --bs-primary-rgb: 21, 37, 74;
    --bs-border-color: var(--tb-border);
}

[data-theme="dark"] {
    --tb-bg: #121418;
    --tb-surface: #1a1d23;
    --tb-surface-2: #20242c;
    --tb-border: #2d323c;
    --tb-text: #dcdfe6;
    --tb-muted: #9aa1ae;
    --tb-heading: #eef0f5;
    --tb-link: #9db8ff;
    --tb-verse-num: #d9ad5a;
    --tb-navy-soft: #1f2636;
    --tb-gold-soft: #2c2616;
    --tb-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --bs-body-color: var(--tb-text);
    --bs-body-bg: var(--tb-bg);
    --bs-link-color: var(--tb-link);
    --bs-link-color-rgb: 157, 184, 255;
    --bs-link-hover-color: #c9d7ff;
    --bs-border-color: var(--tb-border);
    --bs-secondary-color: var(--tb-muted);
    --bs-tertiary-bg: var(--tb-surface-2);
    --bs-emphasis-color: #fff;
}

[data-theme="sepia"] {
    --tb-bg: #f5ecd7;
    --tb-surface: #fbf4e4;
    --tb-surface-2: #efe3c7;
    --tb-border: #e0d1ad;
    --tb-text: #3e3222;
    --tb-muted: #7a6a50;
    --tb-heading: #3b2c14;
    --tb-link: #7a4b12;
    --tb-verse-num: #9a6a1c;
    --bs-body-color: var(--tb-text);
    --bs-body-bg: var(--tb-bg);
    --bs-link-color: var(--tb-link);
    --bs-link-color-rgb: 122, 75, 18;
    --bs-border-color: var(--tb-border);
}

html { scroll-padding-top: calc(var(--tb-header-h) + 16px); }
body {
    background: var(--tb-bg);
    color: var(--tb-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { color: var(--tb-heading); font-weight: 700; letter-spacing: -.01em; }
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.text-muted, .form-text { color: var(--tb-muted) !important; }
.serif { font-family: var(--tb-serif); }
.bg-surface { background: var(--tb-surface); }
.bg-surface-2 { background: var(--tb-surface-2); }

:focus-visible { outline: 3px solid var(--tb-gold-2); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--tb-navy); color: #fff; padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 500; }
.btn-primary { --bs-btn-bg: var(--tb-navy); --bs-btn-border-color: var(--tb-navy); --bs-btn-hover-bg: var(--tb-navy-2); --bs-btn-hover-border-color: var(--tb-navy-2); --bs-btn-active-bg: var(--tb-navy-2); --bs-btn-disabled-bg: var(--tb-navy); }
.btn-gold { --bs-btn-bg: var(--tb-gold); --bs-btn-color: #1b1406; --bs-btn-border-color: var(--tb-gold); --bs-btn-hover-bg: var(--tb-gold-2); --bs-btn-hover-border-color: var(--tb-gold-2); --bs-btn-hover-color: #1b1406; --bs-btn-active-bg: var(--tb-gold-2); }
.btn-outline-primary { --bs-btn-color: var(--tb-navy); --bs-btn-border-color: var(--tb-navy); --bs-btn-hover-bg: var(--tb-navy); --bs-btn-hover-border-color: var(--tb-navy); --bs-btn-active-bg: var(--tb-navy); }
[data-theme="dark"] .btn-outline-primary { --bs-btn-color: var(--tb-link); --bs-btn-border-color: var(--tb-link); --bs-btn-hover-color: #111; --bs-btn-hover-bg: var(--tb-link); }
[data-theme="dark"] .btn-primary { --bs-btn-bg: #2b4a8f; --bs-btn-border-color: #2b4a8f; --bs-btn-hover-bg: #3a5dab; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: var(--tb-navy);
    color: #fff;
    min-height: var(--tb-header-h);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 2px 10px rgba(0, 0, 0, .12);
}
.site-header .navbar { min-height: var(--tb-header-h); padding-top: 0; padding-bottom: 0; }
.site-header .navbar-brand { color: #fff; font-weight: 700; display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; }
.site-header .navbar-brand img { max-height: 36px; width: auto; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--tb-gold), var(--tb-gold-2)); color: var(--tb-navy); font-size: 1.05rem;
}
.site-header .nav-link { color: rgba(255, 255, 255, .82); font-weight: 500; padding: .5rem .8rem !important; border-radius: 8px; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff; background: rgba(255, 255, 255, .08); }
.site-header .nav-link.active { box-shadow: inset 0 -2px 0 var(--tb-gold-2); }
.site-header .btn-header { color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.site-header .btn-header:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-header .dropdown-menu { border-radius: 12px; border-color: var(--tb-border); box-shadow: var(--tb-shadow); }
.header-search { position: relative; max-width: 300px; }
.header-search .form-control { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: #fff; padding-left: 2.2rem; border-radius: 10px; }
.header-search .form-control::placeholder { color: rgba(255, 255, 255, .6); }
.header-search .form-control:focus { background: #fff; color: #222; }
.header-search .fa-magnifying-glass { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .6); pointer-events: none; }
.header-search .form-control:focus + .fa-magnifying-glass { color: #666; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--tb-gold); color: var(--tb-navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.6rem; }

.offcanvas.mobile-menu { background: var(--tb-surface); color: var(--tb-text); max-width: 86vw; }
.mobile-menu .list-group-item { background: transparent; color: var(--tb-text); border-color: var(--tb-border); padding: .85rem 1rem; }
.mobile-menu .list-group-item i { width: 1.4rem; color: var(--tb-gold); }

/* ---------- Search suggestions ---------- */
.suggest-wrap { position: relative; }
.suggest-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1050;
    background: var(--tb-surface); color: var(--tb-text); border: 1px solid var(--tb-border);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .16); overflow: hidden; display: none;
    max-height: 70vh; overflow-y: auto; text-align: left;
}
.suggest-list.show { display: block; }
.suggest-item { display: flex; gap: .7rem; padding: .6rem .9rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--tb-border); align-items: flex-start; }
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.active { background: var(--tb-surface-2); color: inherit; }
.suggest-item .s-icon { color: var(--tb-gold); width: 1.1rem; margin-top: .2rem; flex: none; }
.suggest-item .s-label { font-weight: 600; }
.suggest-item .s-sub { font-size: .82rem; color: var(--tb-muted); display: block; line-height: 1.35; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1200px 400px at 80% -10%, rgba(224, 180, 86, .22), transparent 60%),
        linear-gradient(160deg, var(--tb-navy) 0%, #0f1b38 100%);
    color: #fff; padding: 3.2rem 0 3.6rem;
}
.hero h1 { color: #fff; font-family: var(--tb-serif); font-size: clamp(1.8rem, 5vw, 2.8rem); }
.hero .lead { color: rgba(255, 255, 255, .8); }
.hero-search .form-control { height: 56px; border-radius: 14px; padding-left: 3rem; font-size: 1.08rem; border: 0; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.hero-search .fa-magnifying-glass { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: #888; z-index: 2; }
.hero-search .btn { position: absolute; right: 6px; top: 6px; height: 44px; z-index: 2; }
.hero-examples a { color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .2rem .75rem; font-size: .85rem; text-decoration: none; display: inline-block; margin: .2rem; }
.hero-examples a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Sections / cards ---------- */
.section { padding: 2.75rem 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title h2 { font-size: 1.45rem; margin: 0; }
.section-title .eyebrow { color: var(--tb-gold); text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; font-weight: 700; display: block; }
.tb-card {
    background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow); color: var(--tb-text);
}
a.tb-card { text-decoration: none; display: block; transition: transform .15s ease, box-shadow .15s ease; }
a.tb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(21, 37, 74, .12); color: var(--tb-text); }
.tb-card h3 { font-size: 1.08rem; }
.tb-card .card-img-top { border-radius: var(--tb-radius) var(--tb-radius) 0 0; aspect-ratio: 16/9; object-fit: cover; }
.card-cover-fallback { aspect-ratio: 16/9; border-radius: var(--tb-radius) var(--tb-radius) 0 0; background: linear-gradient(135deg, var(--tb-navy), var(--tb-navy-2)); color: var(--tb-gold-2); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--tb-surface-2); color: var(--tb-text); border: 1px solid var(--tb-border); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; text-decoration: none; }
a.chip:hover { border-color: var(--tb-gold); color: var(--tb-heading); }

/* Verse of the day */
.votd {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--tb-gold-soft), var(--tb-surface));
    border: 1px solid var(--tb-border); border-left: 4px solid var(--tb-gold); border-radius: var(--tb-radius);
    padding: 1.6rem 1.6rem 1.3rem;
}
.votd .quote { font-family: var(--tb-serif); font-size: clamp(1.15rem, 2.6vw, 1.45rem); line-height: 1.6; color: var(--tb-heading); }
.votd .ref { font-weight: 700; color: var(--tb-gold); }
.votd .fa-quote-left { position: absolute; right: 1rem; top: .5rem; font-size: 4rem; color: var(--tb-gold); opacity: .12; }

/* Book grid */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .5rem; }
.book-grid a {
    display: flex; justify-content: space-between; align-items: center; gap: .35rem;
    padding: .6rem .75rem; border-radius: 10px; background: var(--tb-surface); border: 1px solid var(--tb-border);
    color: var(--tb-text); text-decoration: none; font-size: .92rem; font-weight: 500; min-height: 44px;
}
.book-grid a:hover { border-color: var(--tb-gold); background: var(--tb-gold-soft); color: var(--tb-heading); }
.book-grid a small { color: var(--tb-muted); font-weight: 400; font-size: .75rem; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: .45rem; }
.chapter-grid a { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 10px; border: 1px solid var(--tb-border); background: var(--tb-surface); color: var(--tb-text); text-decoration: none; font-weight: 600; }
.chapter-grid a:hover, .chapter-grid a.current { background: var(--tb-navy); color: #fff; border-color: var(--tb-navy); }
.testament-tabs .nav-link { color: var(--tb-muted); font-weight: 600; border-radius: 10px; }
.testament-tabs .nav-link.active { background: var(--tb-navy); color: #fff; }

/* Breadcrumbs */
.breadcrumb { font-size: .85rem; margin-bottom: .75rem; }
.breadcrumb a { color: var(--tb-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--tb-link); }
.breadcrumb-item.active { color: var(--tb-text); }

/* Progress */
.progress { background: var(--tb-surface-2); border-radius: 999px; }
.progress-bar { background: linear-gradient(90deg, var(--tb-gold), var(--tb-gold-2)); }

/* Forms */
.form-control, .form-select { border-radius: 10px; border-color: var(--tb-border); background-color: var(--tb-surface); color: var(--tb-text); min-height: 44px; }
.form-control:focus, .form-select:focus { border-color: var(--tb-gold); box-shadow: 0 0 0 .2rem rgba(200, 150, 46, .2); background-color: var(--tb-surface); color: var(--tb-text); }
.form-label { font-weight: 600; font-size: .9rem; }
.auth-card { max-width: 460px; margin: 2.5rem auto; }
.auth-card .tb-card { padding: 2rem; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Rich content (topics, devotionals, pages) */
.prose { font-size: 1.05rem; line-height: 1.8; max-width: 72ch; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose blockquote { border-left: 4px solid var(--tb-gold); padding: .25rem 1rem; color: var(--tb-muted); font-family: var(--tb-serif); font-style: italic; }
.scripture-quote { font-family: var(--tb-serif); font-size: 1.08rem; line-height: 1.7; }
.passage-card .ref { font-weight: 700; color: var(--tb-heading); text-decoration: none; }
.passage-card .ref:hover { color: var(--tb-link); }

/* Announcements & ads */
.announcement { border-radius: 0; margin: 0; border: 0; border-bottom: 1px solid var(--tb-border); font-size: .92rem; }
.ad-slot { margin: 1.5rem auto; text-align: center; max-width: 100%; }
.ad-slot .ad-label { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tb-muted); margin-bottom: .25rem; }
.ad-slot img { max-height: 250px; border-radius: 8px; }

/* Footer */
.site-footer { background: #0f1b38; color: rgba(255, 255, 255, .72); padding: 3rem 0 1.5rem; margin-top: 3rem; font-size: .92rem; }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: var(--tb-gold-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); margin-right: .35rem; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.25rem; font-size: .82rem; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1080; max-width: 560px; margin-left: auto; background: var(--tb-surface); color: var(--tb-text); border: 1px solid var(--tb-border); border-radius: var(--tb-radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .2); padding: 1rem 1.2rem; display: none; }
.cookie-banner.show { display: block; }

/* Account sidebar */
.account-nav .list-group-item { border: 0; border-radius: 10px !important; margin-bottom: .2rem; background: transparent; color: var(--tb-text); display: flex; align-items: center; gap: .6rem; }
.account-nav .list-group-item i { width: 1.2rem; color: var(--tb-muted); }
.account-nav .list-group-item.active { background: var(--tb-navy-soft); color: var(--tb-heading); font-weight: 600; }
.account-nav .list-group-item.active i { color: var(--tb-gold); }
.stat-tile { padding: 1rem 1.1rem; }
.stat-tile .num { font-size: 1.6rem; font-weight: 700; color: var(--tb-heading); line-height: 1.1; }
.stat-tile .lbl { font-size: .82rem; color: var(--tb-muted); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--tb-muted); }
.empty-state i { font-size: 2.5rem; color: var(--tb-gold); opacity: .6; margin-bottom: .75rem; }

/* Error pages */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page .code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; color: var(--tb-gold); line-height: 1; font-family: var(--tb-serif); }

/* Installer */
.install-body { background: var(--tb-surface-2); }
.install-steps li { background: var(--tb-surface); border: 1px solid var(--tb-border); font-size: .9rem; color: var(--tb-muted); }
.install-steps li.active { background: var(--tb-navy); color: #fff; border-color: var(--tb-navy); }

/* Toastr theming */
#toast-container > div { border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2) !important; opacity: 1; font-family: var(--tb-sans); }
#toast-container > .toast-success { background-color: #1f7a4d; }
#toast-container > .toast-error { background-color: #b42318; }
#toast-container > .toast-info { background-color: var(--tb-navy); }
@media (max-width: 575.98px) {
    #toast-container.toast-bottom-center > div, #toast-container.toast-top-right > div { width: calc(100vw - 2rem); }
}

/* Dark-theme tweaks for Bootstrap components */
[data-theme="dark"] .table { --bs-table-color: var(--tb-text); --bs-table-bg: transparent; --bs-table-border-color: var(--tb-border); --bs-table-striped-bg: rgba(255, 255, 255, .03); --bs-table-hover-bg: rgba(255, 255, 255, .04); --bs-table-hover-color: var(--tb-text); --bs-table-striped-color: var(--tb-text); }
[data-theme="dark"] .dropdown-menu, [data-theme="dark"] .modal-content, [data-theme="dark"] .offcanvas, [data-theme="dark"] .list-group-item, [data-theme="dark"] .card { background: var(--tb-surface); color: var(--tb-text); border-color: var(--tb-border); }
[data-theme="dark"] .dropdown-item { color: var(--tb-text); }
[data-theme="dark"] .dropdown-item:hover { background: var(--tb-surface-2); color: #fff; }
[data-theme="dark"] .btn-close { filter: invert(1); }
[data-theme="dark"] .bg-light { background: var(--tb-surface-2) !important; }
[data-theme="dark"] .text-dark { color: var(--tb-text) !important; }
[data-theme="dark"] .form-control::placeholder { color: #7f8694; }
[data-theme="sepia"] .dropdown-menu, [data-theme="sepia"] .modal-content, [data-theme="sepia"] .offcanvas, [data-theme="sepia"] .list-group-item, [data-theme="sepia"] .card { background: var(--tb-surface); color: var(--tb-text); border-color: var(--tb-border); }

@media (max-width: 991.98px) {
    .section { padding: 2rem 0; }
    .hero { padding: 2.2rem 0 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .reader-toolbar, .reader-nav, .ad-slot, .cookie-banner, .verse-sheet, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ---------- Search page ---------- */
.search-hero { background: linear-gradient(160deg, var(--tb-navy) 0%, #0f1b38 100%); padding: 1.25rem 0 1.5rem; }
.search-hero .breadcrumb a, .search-hero .breadcrumb-item.active, .search-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .65); }
.search-form .search-icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: #8a8f9c; z-index: 2; pointer-events: none; }
.search-form .form-control-lg { height: 58px; border-radius: 14px; padding-left: 3rem; padding-right: 7.5rem; border: 0; font-size: 1.08rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); background: #fff; color: #222; }
.search-form .search-submit { position: absolute; right: 7px; top: 7px; height: 44px; padding: 0 1.3rem; z-index: 2; }
.search-options { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.option-group { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.btn-pill { border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .88); padding: .3rem .85rem; min-height: 36px; }
.btn-pill:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.btn-check:checked + .btn-pill { background: var(--tb-gold); border-color: var(--tb-gold); color: #1b1406; font-weight: 600; }
.btn-check:focus-visible + .btn-pill { outline: 3px solid var(--tb-gold-2); outline-offset: 2px; }
.search-book { border-radius: 999px; min-height: 36px; max-width: 200px; background-color: rgba(255, 255, 255, .95); color: #222; }
.search-tip { display: flex; gap: .9rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px dashed var(--tb-border); }
.tip-key { flex: 0 0 110px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85rem; background: var(--tb-surface-2); border: 1px solid var(--tb-border); border-radius: 6px; padding: .1rem .45rem; text-align: center; color: var(--tb-heading); }
.search-summary .chip-remove { background: var(--tb-gold-soft); border-color: var(--tb-gold); }
.result-card { background: var(--tb-surface); border: 1px solid var(--tb-border); border-left: 4px solid var(--tb-gold); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .7rem; box-shadow: var(--tb-shadow); }
.result-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.result-ref { font-weight: 700; font-size: 1.02rem; color: var(--tb-heading); text-decoration: none; }
.result-ref:hover { color: var(--tb-link); text-decoration: underline; }
.result-testament { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tb-muted); }
.result-text { font-family: var(--tb-serif); font-size: 1.06rem; line-height: 1.7; margin: .35rem 0 .6rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.result-actions .btn { background: var(--tb-surface-2); border: 1px solid var(--tb-border); color: var(--tb-text); font-size: .8rem; min-height: 34px; }
.result-actions .btn:hover { border-color: var(--tb-gold); color: var(--tb-heading); }
.search-sidebar { position: sticky; top: calc(var(--tb-header-h) + 1rem); }
.testament-link { display: flex; justify-content: space-between; padding: .55rem .8rem; border: 1px solid var(--tb-border); border-radius: 10px; text-decoration: none; color: var(--tb-text); }
.testament-link:hover { border-color: var(--tb-gold); background: var(--tb-gold-soft); color: var(--tb-heading); }
.book-hits { max-height: 60vh; overflow-y: auto; display: grid; gap: .3rem; }
.book-hit { display: block; padding: .35rem .5rem; border-radius: 8px; text-decoration: none; color: var(--tb-text); font-size: .9rem; }
.book-hit:hover, .book-hit.active { background: var(--tb-surface-2); color: var(--tb-heading); }
.book-hit .bar { display: block; height: 4px; background: var(--tb-surface-2); border-radius: 2px; margin-top: .2rem; overflow: hidden; }
.book-hit .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--tb-gold), var(--tb-gold-2)); }
mark { background: color-mix(in srgb, var(--tb-gold-2) 45%, transparent); color: inherit; padding: 0 .12em; border-radius: 3px; box-shadow: inset 0 -2px 0 var(--tb-gold); }
@media (max-width: 575.98px) {
    .search-form .form-control-lg { padding-right: 1rem; }
    .search-form .search-submit { position: static; width: 100%; margin-top: .6rem; }
    .search-form .search-icon { top: 29px; }
    .tip-key { flex-basis: 90px; }
}

/* ---------- Password show/hide toggle ---------- */
.pw-wrap { position: relative; }
.pw-wrap > input { padding-right: 2.75rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--tb-muted); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; z-index: 5; }
.pw-toggle:hover { color: var(--tb-heading); background: var(--tb-surface-2); }
.pw-wrap > .invalid-feedback { display: block; }
.pw-wrap > input.form-control-sm ~ .pw-toggle { width: 30px; height: 30px; }

/* ---------- Install app ---------- */
.install-app-btn[hidden] { display: none !important; }

/* ==========================================================================
   Quick jump (Book -> Chapter -> Verse -> Version) - phone layout first.
   ========================================================================== */
.quick-jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; align-items: end; }
.quick-jump .qj-book, .quick-jump .qj-go, .quick-jump .qj-note { grid-column: 1 / -1; }
.quick-jump .form-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; color: var(--tb-muted); }
.quick-jump .form-select, .quick-jump .btn { min-height: 48px; font-size: 16px; }
.quick-jump .qj-note { color: var(--tb-muted); }
@media (min-width: 576px) {
    .quick-jump:not(.quick-jump-compact) { grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) auto; }
    .quick-jump:not(.quick-jump-compact) .qj-book, .quick-jump:not(.quick-jump-compact) .qj-go { grid-column: auto; }
    .quick-jump:not(.quick-jump-compact) .qj-go .btn { padding-inline: 1.4rem; }
}
.hero-jump { max-width: 680px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: .9rem; text-align: left; }
.hero-jump-title { color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.hero-jump .form-label, .hero-jump .qj-note { color: rgba(255, 255, 255, .75); }
.hero-jump .qj-note a { color: var(--tb-gold-2); }
.text-gold { color: var(--tb-gold); }

/* Touch targets (phones and any touch screen, e.g. tablets) and no horizontal scroll */
html, body { overflow-x: clip; }
@media (max-width: 575.98px), (pointer: coarse) {
    .btn, .form-select, .form-control { min-height: 44px; }
    .btn-sm, .result-actions .btn { min-height: 40px; }
    .btn-sm, .result-actions .btn { display: inline-flex; align-items: center; justify-content: center; }
    input, select, textarea { font-size: 16px !important; } /* iOS does not zoom on focus at 16px */
    .table-responsive { -webkit-overflow-scrolling: touch; }
}
.audio-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.audio-books a { display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .55rem .75rem; border: 1px solid var(--tb-border); border-radius: 12px; background: var(--tb-surface); color: var(--tb-text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.audio-books a i { width: 30px; height: 30px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tb-navy); color: #fff; font-size: .7rem; }
.audio-books a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.audio-books a small { color: var(--tb-muted); font-weight: 500; }
.audio-books a:hover { border-color: var(--tb-gold); background: var(--tb-gold-soft); }
@media (min-width: 768px) { .audio-books { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }

/* Header stays on one row on phones: the site name truncates instead of pushing buttons down. */
.site-header .navbar > .container { flex-wrap: nowrap; gap: .5rem; }
.site-header .navbar-brand { min-width: 0; flex: 0 1 auto; margin-right: 0; }
.site-header .navbar-brand .brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header .navbar-brand .brand-mark { flex: none; }
.site-header .navbar > .container > .d-flex { flex: none; gap: .35rem !important; }
.site-header .btn-header.btn-icon, .site-header .btn-header.btn-sm { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 374.98px) { .site-header .navbar-brand .brand-name { font-size: .92rem; } }
@media (max-width: 575.98px) {
    .result-actions .btn { min-height: 44px; flex: 1 1 auto; justify-content: center; display: inline-flex; align-items: center; }
}
@media (min-width: 992px) {
    .site-header .navbar-brand { flex: none; }
    .site-header .navbar-nav .nav-link { white-space: nowrap; }
    .site-header .header-search { width: 190px; }
}
@media (min-width: 1400px) { .site-header .header-search { width: 240px; } }

/* ==========================================================================
   Bible quiz (mobile-first)
   ========================================================================== */
.quiz-hero { background: linear-gradient(135deg, var(--tb-navy) 0%, var(--tb-navy-2) 100%); color: #fff; padding: 1.5rem 0 1.75rem; }
.quiz-hero h1 { color: #fff; font-family: var(--tb-serif); font-size: clamp(1.7rem, 5vw, 2.4rem); margin: .25rem 0 .35rem; }
.quiz-hero p { color: rgba(255, 255, 255, .8); max-width: 640px; }
.quiz-hero .breadcrumb, .quiz-hero .breadcrumb a, .quiz-hero .breadcrumb-item.active { color: rgba(255, 255, 255, .7); }
.quiz-start { padding: 1.1rem; }
@media (min-width: 768px) { .quiz-start { padding: 1.6rem; } }
.quiz-step { display: flex; align-items: center; gap: .55rem; font-weight: 700; margin-bottom: .6rem; color: var(--tb-heading); }
.quiz-step span { width: 26px; height: 26px; border-radius: 50%; background: var(--tb-gold); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.quiz-pick { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: .6rem; }
.quiz-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.quiz-chip { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 2px solid var(--tb-border); border-radius: 12px; font-weight: 700; cursor: pointer; background: var(--tb-surface); color: var(--tb-text); margin: 0; }
.btn-check:checked + .quiz-chip { border-color: var(--tb-gold); background: var(--tb-gold-soft); color: var(--tb-heading); }
.btn-check:focus-visible + .quiz-chip, .btn-check:focus-visible + .quiz-mode { outline: 3px solid var(--tb-gold-2); outline-offset: 2px; }
.quiz-modes { display: grid; gap: .6rem; }
@media (min-width: 576px) { .quiz-modes { grid-template-columns: 1fr 1fr; } }
.quiz-mode { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; align-items: center; padding: .85rem 1rem; border: 2px solid var(--tb-border); border-radius: 14px; cursor: pointer; background: var(--tb-surface); margin: 0; }
.quiz-mode i { grid-row: span 2; font-size: 1.4rem; color: var(--tb-gold); width: 1.6rem; text-align: center; }
.quiz-mode strong { color: var(--tb-heading); }
.quiz-mode small { color: var(--tb-muted); line-height: 1.35; }
.btn-check:checked + .quiz-mode { border-color: var(--tb-gold); background: var(--tb-gold-soft); }
.quiz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; text-align: center; }
.quiz-stats div { background: var(--tb-surface-2); border-radius: 12px; padding: .6rem .25rem; }
.quiz-stats strong { display: block; font-size: 1.2rem; color: var(--tb-heading); }
.quiz-stats span { font-size: .72rem; color: var(--tb-muted); }
.quiz-history { list-style: none; margin: 0; padding: 0; }
.quiz-history li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--tb-border); }
.quiz-history-score { width: 52px; flex: none; text-align: center; font-weight: 800; border-radius: 10px; padding: .35rem 0; font-size: .9rem; }
.quiz-history-score.good { background: #dcf5e6; color: #146c35; }
.quiz-history-score.ok { background: #fef3c7; color: #92400e; }
.quiz-history-score.low { background: #fee4e2; color: #9b1c1c; }

/* Play screen */
.quiz-bar { position: sticky; top: var(--tb-header-h); z-index: 1010; background: color-mix(in srgb, var(--tb-surface) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tb-border); padding: .6rem 0 0; }
.quiz-bar-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.quiz-bar-title { font-weight: 700; color: var(--tb-heading); }
.quiz-mode-badge { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .5rem; border-radius: 999px; vertical-align: middle; }
.quiz-mode-badge.practice { background: #dcf5e6; color: #146c35; }
.quiz-mode-badge.exam { background: var(--tb-navy-soft); color: var(--tb-navy); }
.quiz-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--tb-muted); white-space: nowrap; }
.quiz-progress { height: 5px; background: var(--tb-border); margin: 0 -.75rem; }
.quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--tb-gold), var(--tb-gold-2)); transition: width .3s ease; }
.quiz-form { max-width: 720px; padding-top: 1rem; padding-bottom: 2rem; }
.quiz-card { background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: 18px; padding: 1.1rem; margin-bottom: 1rem; box-shadow: var(--tb-shadow); }
.quiz-play.js-on .quiz-card { display: none; }
.quiz-play.js-on .quiz-card.is-current { display: block; animation: quiz-in .22s ease-out; }
@keyframes quiz-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-card-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.quiz-num { width: 30px; height: 30px; border-radius: 50%; background: var(--tb-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.quiz-type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tb-gold); }
.quiz-prompt { font-size: 1.15rem; font-weight: 700; color: var(--tb-heading); margin: 0 0 .6rem; outline: none; }
.quiz-quote { font-size: 1.08rem; line-height: 1.65; margin: 0 0 1rem; padding: .7rem .9rem; border-left: 3px solid var(--tb-gold); background: var(--tb-gold-soft); border-radius: 0 12px 12px 0; color: var(--tb-text); }
.quiz-quote cite { display: block; font-style: normal; font-family: var(--tb-sans); font-size: .8rem; color: var(--tb-muted); margin-top: .3rem; }
.quiz-options { display: grid; gap: .55rem; }
.quiz-radio { position: absolute; opacity: 0; pointer-events: none; }
.quiz-option { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .6rem .85rem; margin: 0; border: 2px solid var(--tb-border); border-radius: 14px; background: var(--tb-surface); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .1s ease; -webkit-tap-highlight-color: transparent; }
.quiz-option:active { transform: scale(.99); }
.quiz-letter { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--tb-surface-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--tb-heading); }
.quiz-option-text { flex: 1; font-size: 1.02rem; }
.quiz-mark { margin-left: auto; font-size: 1.15rem; }
.quiz-radio:focus-visible + .quiz-option { outline: 3px solid var(--tb-gold-2); outline-offset: 2px; }
.quiz-radio:checked + .quiz-option { border-color: var(--tb-navy); background: var(--tb-navy-soft); }
.quiz-radio:checked + .quiz-option .quiz-letter { background: var(--tb-navy); color: #fff; }
.quiz-radio:disabled + .quiz-option { cursor: default; }
.quiz-option.is-right { border-color: #16803c !important; background: #e9f9ef !important; }
.quiz-option.is-right .quiz-letter { background: #16803c !important; color: #fff !important; }
.quiz-option.is-right .quiz-mark::before { content: "\f058"; color: #16803c; }
.quiz-option.is-wrong { border-color: #d92d20 !important; background: #fef3f2 !important; }
.quiz-option.is-wrong .quiz-letter { background: #d92d20 !important; color: #fff !important; }
.quiz-option.is-wrong .quiz-mark::before { content: "\f057"; color: #d92d20; }
.quiz-feedback { margin-top: .85rem; padding: .7rem .9rem; border-radius: 12px; font-size: .95rem; }
.quiz-feedback.good { background: #e9f9ef; color: #146c35; }
.quiz-feedback.bad { background: #fef3f2; color: #9b1c1c; }
.quiz-feedback a { font-weight: 600; margin-left: .25rem; }
.quiz-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.quiz-nav .btn { min-height: 48px; padding-inline: 1.2rem; font-weight: 600; }
.quiz-nav .js-qz-prev { margin-right: auto; }
@media (max-width: 575.98px) { .quiz-nav .btn:not(.js-qz-prev) { flex: 1; } }
.quiz-play:not(.js-on) .quiz-nav .js-qz-finish { width: 100%; }
.quiz-dots { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 1rem; }
.quiz-dots button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--tb-border); background: var(--tb-surface); font-size: .8rem; font-weight: 700; color: var(--tb-muted); }
.quiz-dots button.is-done { background: var(--tb-navy-soft); color: var(--tb-navy); border-color: transparent; }
.quiz-dots button.is-current { border: 2px solid var(--tb-gold); color: var(--tb-heading); }

/* Result */
.quiz-score-card { padding: 1.5rem 1rem; }
.quiz-ring { --pct: 0; width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: conic-gradient(var(--tb-gold) calc(var(--pct) * 1%), var(--tb-border) 0); }
.quiz-ring span { width: 118px; height: 118px; border-radius: 50%; background: var(--tb-surface); display: flex; align-items: center; justify-content: center; font-size: 2.1rem; font-weight: 800; color: var(--tb-heading); }
.quiz-result-actions { display: grid; gap: .5rem; max-width: 520px; margin: 0 auto; }
@media (min-width: 576px) { .quiz-result-actions { grid-template-columns: 1fr 1fr; } }
.quiz-result-actions .btn { min-height: 48px; font-weight: 600; width: 100%; }
.quiz-review { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.quiz-review-item { background: var(--tb-surface); border: 1px solid var(--tb-border); border-left: 4px solid #16803c; border-radius: 14px; padding: .85rem 1rem; }
.quiz-review-item.is-wrong { border-left-color: #d92d20; }
.quiz-review-head { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .4rem; }
.quiz-review-icon { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; color: #fff; background: #16803c; }
.is-wrong .quiz-review-icon { background: #d92d20; }
.quiz-review .quiz-quote { font-size: .95rem; margin-bottom: .5rem; }
[data-theme="dark"] .quiz-option.is-right, [data-theme="dark"] .quiz-feedback.good { background: rgba(22, 128, 60, .18) !important; color: #b8f0cb; }
[data-theme="dark"] .quiz-option.is-wrong, [data-theme="dark"] .quiz-feedback.bad { background: rgba(217, 45, 32, .18) !important; color: #ffc9c4; }
[data-theme="dark"] .quiz-history-score.good { background: rgba(22, 128, 60, .25); color: #b8f0cb; }
[data-theme="dark"] .quiz-history-score.ok { background: rgba(245, 158, 11, .2); color: #fde68a; }
[data-theme="dark"] .quiz-history-score.low { background: rgba(217, 45, 32, .2); color: #ffc9c4; }
.quiz-promo { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 18px; text-decoration: none; color: #fff;
    background: linear-gradient(120deg, var(--tb-navy) 0%, var(--tb-navy-2) 100%); box-shadow: var(--tb-shadow); flex-wrap: wrap; }
.quiz-promo:hover { color: #fff; }
.quiz-promo .small { color: rgba(255, 255, 255, .78); }
.quiz-promo-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; background: rgba(224, 180, 86, .18); color: var(--tb-gold-2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
@media (max-width: 575.98px) { .quiz-promo .btn { width: 100%; } }
.quiz-chapter-link { display: flex; align-items: center; gap: .8rem; margin: 1.5rem 0 0; padding: .85rem 1rem; border: 1px solid var(--tb-border); border-radius: 14px;
    background: var(--tb-gold-soft); color: var(--tb-text); text-decoration: none; font-family: var(--tb-sans); }
.quiz-chapter-link > i:first-child { font-size: 1.4rem; color: var(--tb-gold); }
.quiz-chapter-link strong { display: block; color: var(--tb-heading); }
.quiz-chapter-link small { color: var(--tb-muted); }
.quiz-chapter-link:hover { border-color: var(--tb-gold); color: var(--tb-text); }
.quiz-mode-badge.preview { background: #fbf1dc; color: #a8761a; }

/* ---------- Main navigation (refined) ---------- */
.site-header .main-nav { gap: .15rem; }
.site-header .main-nav .nav-link { font-weight: 600; font-size: .95rem; }
.site-header .main-nav .nav-link.active { background: rgba(255, 255, 255, .1); box-shadow: inset 0 -2px 0 var(--tb-gold-2); }
.site-header .main-nav .dropdown-toggle::after { vertical-align: .15em; opacity: .7; }
.explore-menu { min-width: 230px; padding: .4rem; border-radius: 14px; border: 1px solid var(--tb-border); box-shadow: 0 12px 32px rgba(21, 37, 74, .16); margin-top: .5rem !important; }
.explore-menu .dropdown-item { border-radius: 10px; padding: .6rem .75rem; font-weight: 500; }
.explore-menu .dropdown-item i { width: 1.2rem; text-align: center; color: var(--tb-gold); }
.explore-menu .dropdown-item.active, .explore-menu .dropdown-item:active { background: var(--tb-gold-soft); color: var(--tb-heading); }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .main-nav .nav-link { padding: .5rem .6rem !important; font-size: .9rem; }
    .site-header .header-search { width: 170px !important; }
}

/* Phone slide-out menu: grouped links */
.mobile-nav { padding: .25rem 0 .5rem; }
.mobile-nav-group { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tb-muted); padding: .9rem 1.25rem .35rem; }
.mobile-nav-link { display: flex; align-items: center; gap: .85rem; min-height: 48px; padding: .6rem 1.25rem; color: var(--tb-text); text-decoration: none; font-weight: 500; border-left: 3px solid transparent; }
.mobile-nav-link i { width: 1.4rem; text-align: center; color: var(--tb-gold); }
.mobile-nav-link:hover { background: var(--tb-surface-2); color: var(--tb-heading); }
.mobile-nav-link.active { background: var(--tb-gold-soft); border-left-color: var(--tb-gold); color: var(--tb-heading); font-weight: 700; }
.mobile-nav-foot { display: flex; justify-content: center; gap: 1.25rem; margin-top: 1rem; font-size: .85rem; }
.mobile-nav-foot a { color: var(--tb-muted); text-decoration: none; }
.mobile-nav-foot a:hover { color: var(--tb-link); }
