/* Shared chrome for every page: navbar, footer, hero, and flow-page layout.
   Page-specific styles (the reader's grid, the room panels) stay in their own
   files and are loaded by that page's template. */

:root {
    --qbv-blue: #38b7ff;
    --qbv-blue-dark: #1ea6f5;
    --qbv-blue-ink: #0b2a3a;
}

/* Flow pages: text, cards, forms. The footer sits at the bottom of short
   pages instead of floating mid-screen. */
body.page-flow {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.page-flow .site-main {
    flex: 1 0 auto;
}

.site-footer {
    margin-top: auto;
}

/* App pages fill the viewport themselves and have no footer */
body.page-app {
    margin: 0;
}

/* Navbar */
.site-navbar .navbar-brand {
    color: var(--qbv-blue);
}

.site-navbar .nav-link {
    font-size: 1.1rem;
    padding: 0.25rem 1rem;
    transition: color 0.3s ease;
}

/* Hero banner */
.site-hero {
    background-color: var(--qbv-blue);
    padding: 3rem 0;
}

.site-hero h1 {
    margin-bottom: 1rem;
}

.site-hero .lead {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.site-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Flow page body */
.site-page {
    max-width: 960px;
    margin: 3rem auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-page-title {
    margin-bottom: 1.5rem;
}

.site-page-intro {
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.site-clause + .site-clause {
    margin-top: 1.5rem;
}

.site-clause h4 {
    margin-bottom: 0.5rem;
}

/* Buttons in the brand colour */
.btn-qbv {
    background-color: var(--qbv-blue);
    border-color: var(--qbv-blue);
    color: #fff;
}

.btn-qbv:hover,
.btn-qbv:focus {
    background-color: var(--qbv-blue-dark);
    border-color: var(--qbv-blue-dark);
    color: #fff;
}
