/*
 * Chrome for the public engagement pages.
 *
 * The station page, its contest, item and submission pages, rules, the curb feed and the station
 * Showroom are standalone documents. Each declares a light page palette on :root (--ink dark,
 * --line light), and partials/home_header.php reads those same token names, so the header inherited
 * a page palette it was never designed for and came out unreadable or washed out. This file pins
 * the header to the Cardigan header look, scoped to the header alone, so the page below it keeps
 * its own palette.
 *
 * Loaded by every public engagement view, next to partials/home_header.php.
 */

/*
 * !important on every token is deliberate. These pages mark <body data-theme-locked>, and
 * cardigan-header.css answers that with `body[data-theme-locked] .home-header` (specificity 0,2,1)
 * that repaints the bar cream with #2d1f14 ink. Those rules load after this file, so a matching
 * specificity would lose, and the bar came out cream above a dark hero. An important token cannot be
 * outranked by a plain declaration, whatever its specificity.
 */
.home-header {
    --header-bg: rgba(9, 16, 26, .94) !important;
    --header-border: rgba(255, 255, 255, .14) !important;
    --ink: #f1f5f9 !important;
    --ink-soft: rgba(241, 245, 249, .78) !important;
    --line: rgba(255, 255, 255, .18) !important;
    --surface-soft: rgba(255, 255, 255, .08) !important;
    --accent: #D4AF37 !important;
    --nav-link: rgba(241, 245, 249, .8) !important;
    --nav-link-hover: #ffffff !important;
    background: var(--header-bg) !important;
    border-bottom: 1px solid var(--header-border);
}
.home-header .home-brand { color: #f1f5f9; }
.home-header .home-brand:hover { color: #D4AF37; }
.home-header .home-nav a { color: rgba(241, 245, 249, .8); }
.home-header .home-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.home-header .home-nav a.active { color: #D4AF37; }
.home-header .btn-login { color: #f1f5f9; border-color: rgba(255, 255, 255, .24); }
.home-header .btn-login:hover { color: #D4AF37; border-color: #D4AF37; }
.home-header .theme-toggle { border-color: rgba(255, 255, 255, .24); color: rgba(255, 255, 255, .82); }
.home-header .theme-toggle:hover { border-color: rgba(255, 255, 255, .45); color: #fff; }
.home-header .mobile-menu-btn { color: #f1f5f9; border-color: rgba(255, 255, 255, .24); }

/* The mobile sheet needs the same treatment, it renders outside the header element. */
.mobile-nav-sheet { background: #0a1628; color: #f1f5f9; }
.mobile-nav-sheet a { color: #f1f5f9; }
.mobile-nav-sheet a:hover { color: #D4AF37; }

/*
 * Business name band on a Showroom card. Jason, 2026-11-10: the name sat as an 12.5px italic line
 * inside the card body, too small to read, so the business lost its identity. The name now owns a
 * bar directly under the photograph, painted with the same navy as the card's button, white type,
 * one line always.
 */
.name-bar {
    display: block;
    background: var(--navy, #1e3a5f);
    color: #fff;
    font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1;
    padding: 12px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 520px) {
    .name-bar { font-size: 12.5px; padding: 11px 12px; }
}
