/*
 * Lakeland Village branding — only on map.lakelandvillage.org.
 * lib/brand.js adds this file after the page's own stylesheet, so these rules
 * win over the Bridgeland ones without the pages knowing about either brand.
 *
 * The Bridgeland wordmark is a single line of type, so each page bottom-aligns
 * its header onto that line's baseline. This logo is the heron square with the
 * name beside it, so its headers are centred top to bottom instead.
 */

/* ─── Logo ──────────────────────────────────────────────────── */

.brand-logo.brand-logo-lv {
    height: 32px;
}

/* "MAP", in the accent blue the Bridgeland wordmark gives it */
.brand-logo-lv .brand-logo-descriptor {
    fill: #3D5A8C;
}

[data-theme="dark"] .brand-logo-lv .brand-logo-descriptor {
    fill: #93c5fd;
}

/* ─── Headers: map, editor, admin ───────────────────────────── */

.app-header {
    align-items: center;
    padding-bottom: 0;
}

.app-header .header-brand,
.app-header .header-nav,
.app-header .header-actions {
    align-items: center;
}

.app-header .header-nav {
    padding-bottom: 0;
}

.app-header .badge {
    margin-bottom: 0;
}

/* The editor's header is full of controls. Until the window is wide enough
   for the name as well, it shows the heron alone: a square box, which the
   logo fills from its left edge. */
@media (max-width: 1280px) {
    .app-header:has(.header-actions) .brand-logo-lv {
        aspect-ratio: 1;
    }
}

/* ─── Sign-in ───────────────────────────────────────────────── */

/* As tall as the sign-in column's width allows without cropping the name */
.login-brand .brand-logo.brand-logo-lv {
    height: 40px;
}

/* ─── Small screens ─────────────────────────────────────────── */

@media (max-width: 768px) {
    .brand-logo.brand-logo-lv {
        height: 26px;
    }
}

@media (max-width: 480px) {
    .brand-logo.brand-logo-lv {
        height: 22px;
    }

    .login-brand .brand-logo.brand-logo-lv {
        height: 30px;
    }
}
