/* ==========================================================================
   site.css - shared page styling: blue background, banner (logo + titles)
   and the main content area. Used by the armband pages and admin.php.
   ========================================================================== */

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Boys' Brigade blue - adjust the two colours to taste */
    background: #2a63b8 linear-gradient(160deg, #163a7d 0%, #2a63b8 100%); /* solid fallback so no white shows on long pages */
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Page banner: logo on a white card (the logo is transparent with dark text,
   so it needs a light backing on the blue page) plus primary/secondary titles
   -------------------------------------------------------------------------- */
.page-header {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 20px 8px;
    color: #fff;
}

.logo-card {
    background: #fff;
    border-radius: 16px;
    padding: 8px 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.logo-card img {
    display: block;
    height: 110px;
    width: auto;
}

.title-primary {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.title-secondary {
    margin: 4px 0 0;
    font-size: clamp(1.1rem, 2.6vw, 1.7rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #f5c542; /* gold accent */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Main area: armband (and braids) centred in the space below the banner */
.page-main {
    box-sizing: border-box;
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px 40px;
}

/* Variant for pages that show the "signed in as..." bar above their
   centred content (the armband previews) rather than above a full-width
   card (admin.php / logs.php define their own .page-main override) */
.page-main-with-bar {
    box-sizing: border-box;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px 40px;
}

.page-main-with-bar .armband-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Shared "signed in as ..." bar (auth_bar.php) */
.auth-bar {
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding: 0 4px 16px;
    font-size: 0.9rem;
}

.auth-bar a {
    color: #fff;
}
