/* Gig-space colors: deep indigo with a warm amber accent (see wwwroot/favicon.svg). */
:root {
  --gs-primary: #3f37c9;
  --gs-primary-dark: #332ca6;
  --gs-accent: #f5a524;
  --gs-ink: #1f1d3a;
  --gs-link: #3f37c9;
  --bs-link-color: var(--gs-link);
  --bs-link-hover-color: var(--gs-primary-dark);
  --bs-link-color-rgb: 63, 55, 201;
  --bs-primary: var(--gs-primary);
  --bs-primary-rgb: 63, 55, 201;
}

.btn-primary {
  --bs-btn-bg: var(--gs-primary);
  --bs-btn-border-color: var(--gs-primary);
  --bs-btn-hover-bg: var(--gs-primary-dark);
  --bs-btn-hover-border-color: var(--gs-primary-dark);
  --bs-btn-active-bg: var(--gs-primary-dark);
  --bs-btn-active-border-color: var(--gs-primary-dark);
  --bs-btn-disabled-bg: var(--gs-primary);
  --bs-btn-disabled-border-color: var(--gs-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--gs-primary);
  --bs-btn-border-color: var(--gs-primary);
  --bs-btn-hover-bg: var(--gs-primary);
  --bs-btn-hover-border-color: var(--gs-primary);
  --bs-btn-active-bg: var(--gs-primary-dark);
  --bs-btn-active-border-color: var(--gs-primary-dark);
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--gs-primary);
  --bs-nav-link-color: var(--gs-primary);
  --bs-nav-link-hover-color: var(--gs-primary-dark);
}

.navbar {
  border-top: 3px solid var(--gs-accent);
}

/* Menu items read as separate choices. Wide screens: a thin rule between them, a tint on hover, and the section
   you're in underlined in the accent color. Phones and tablets (the collapsed menu): one item per row with a rule
   between, and the section you're in marked with an accent bar. */
.navbar-nav .nav-link.here {
  color: var(--gs-primary) !important;
  font-weight: 600;
}
@media (max-width: 991.98px) {
  .navbar-nav > .nav-item + .nav-item {
    border-top: 1px solid #eef0f3;
  }
  .navbar-nav .nav-link {
    padding: .6rem .5rem;
  }
  .navbar-nav .nav-link.here {
    box-shadow: inset 3px 0 0 var(--gs-accent);
  }
}
@media (min-width: 992px) {
  .navbar-nav .nav-link {
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }
  .navbar-nav .nav-link:hover {
    background: rgba(63, 55, 201, .07);
    border-radius: .375rem;
  }
  .navbar-nav .nav-link.here {
    box-shadow: inset 0 -2px 0 var(--gs-accent);
  }
  .navbar-nav > .nav-item + .nav-item {
    border-left: 1px solid #dee2e6;
  }
}
/* Sign-in and Acting as sit in two short lines at the right on wide screens, so a long venue or band name never
   pushes the menu onto a second row. */
@media (min-width: 992px) {
  .nav-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
  }
  .nav-side .navbar-text {
    padding: 0;
    margin: 0 !important;
  }
  .nav-side .nav-name {
    display: inline-block;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(63, 55, 201, .5);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* iOS Safari zooms into any field under 16px when it gets focus; phones use the 14px base above. */
@media (max-width: 767.98px) {
  .form-control, .form-select, .form-control-sm {
    font-size: 16px;
  }
}

/* The approved mark after a venue's or act's name. */
.approved-mark {
  display: inline-block;
  margin-left: .25em;
  width: 1.1em;
  height: 1.1em;
  line-height: 1.1em;
  border-radius: 50%;
  background: var(--gs-primary);
  color: #fff;
  font-size: .7em;
  font-weight: 700;
  text-align: center;
  vertical-align: .15em;
}

/* A curator's pick (the star in Get Your Gig On's list). */
.pick-mark {
  margin-left: .35em;
  color: #c27c0e;
}

/* The calendar's town filter: a dropdown of checkboxes that scrolls when the night has many towns. */
.calendar-towns summary { list-style: none; }
.calendar-towns summary::-webkit-details-marker { display: none; }
.calendar-towns[open] { position: relative; z-index: 10; }
.calendar-towns form { position: absolute; right: 0; width: 14rem; max-width: calc(100vw - 2rem); }
.calendar-towns-list { max-height: 16rem; overflow-y: auto; }

/* The welcome page's slideshow: screenshots fading in a phone-shaped frame. */
/* The front door's layout: on a phone the hero and picker, the slideshow, then what it does; on a wide screen the
   slideshow stays beside both. */
.front-grid { display: grid; gap: 1.5rem; grid-template-areas: "hero" "show" "more"; }
.front-hero { grid-area: hero; } .front-show { grid-area: show; } .front-more { grid-area: more; }
@media (min-width: 992px) {
  .front-grid { grid-template-columns: 7fr 5fr; column-gap: 3rem; grid-template-areas: "hero show" "more show"; }
  .front-show > figure { position: sticky; top: 1.5rem; }
}
/* The front door's region picker (www): one bold card per region, the one picked last time first and in the accent. */
.front-head { border-top: 4px solid var(--gs-head-accent); }
.front-gigs { background: var(--gs-head-accent); color: var(--gs-head); font-weight: 600; border: 0; }
.front-gigs:hover, .front-gigs:focus { background: #ffa033; color: var(--gs-head); }
.front-region { position: relative; display: block; padding: .85rem 3rem .85rem 1rem; border-radius: .75rem; background: var(--gs-head); color: #fff; text-decoration: none; border-left: 6px solid var(--gs-head-accent); box-shadow: 0 .25rem .75rem rgba(11, 42, 107, .2); }
.front-region:hover, .front-region:focus { background: var(--gs-head-2); color: #fff; }
.front-region-name { display: block; font-weight: 600; font-size: 1.15rem; }
.front-region-towns { display: block; font-size: .85rem; color: var(--gs-head-muted); }
.front-region-go { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--gs-head-accent); }
.front-region.is-mine { background: var(--gs-head-accent); color: var(--gs-head); border-left-color: var(--gs-head); }
.front-region.is-mine .front-region-towns { color: var(--gs-head); }
.front-region.is-mine .front-region-go { color: var(--gs-head); }
.welcome-show { max-width: 220px; margin-bottom: 0; }
@media (min-width: 992px) { .welcome-show { max-width: 300px; } }
.welcome-phone { position: relative; aspect-ratio: 390 / 760; border: 10px solid var(--gs-ink); border-radius: 2rem; overflow: hidden; background: #fff; box-shadow: 0 .75rem 2rem rgba(31, 29, 58, .18); }
.welcome-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s ease; }
.welcome-phone img.is-shown { opacity: 1; }
.welcome-dot { width: .5rem; height: .5rem; padding: 0; border: 0; border-radius: 50%; background: #c9c7dc; }
.welcome-dot.is-shown { background: var(--gs-primary); }
@media (prefers-reduced-motion: reduce) { .welcome-phone img { transition: none; } }

/* Gigs from before tonight: still readable and clickable, but plainly over. */
.list-group-item.is-past { color: #6c6a86; background: #f6f6f9; }
.list-group-item.is-past strong { font-weight: 600; }
.list-group-item.is-past .approved-mark { opacity: .6; }
/* The first upcoming gig on a venue's or act's page: bold, with a "Next up" tag. */

/* Name suggestions under a text box (js/suggest.js). */
.suggest-list { position: absolute; z-index: 1050; max-height: 18rem; overflow-y: auto; margin-top: 2px; }
.suggest-item { text-align: left; }

/* ---- The calendar control (Pages/Index, wwwroot/js/calendar.js): a sticky date bar over a scroll of days ---- */
/* The calendar page is a fixed frame (Rich's sketch, 2026-10-22): the menu and the header box stay at the top, the
   footer at the bottom, and only the days between scroll (the page itself scrolls, so phones keep their native feel). */
/* The menu bar (logo, menu, profile) stays at the top on every page, computer and phone (Rich, 2026-10-24, working in
   Admin); its height is --nav-h (site.js), for anything else that sticks below it. */
body > header { position: sticky; top: 0; z-index: 1025; background: var(--bs-body-bg); }
body:has(#cal-fixed) > header .navbar { margin-bottom: 0 !important; }
/* The header box reads as the fixed frame, not part of the list (Rich, 2026-10-22): a light tint, a clear divider and a
   soft shadow the gigs scroll under. Full width tint behind the centred content. */
.cal-fixed { position: sticky; top: var(--nav-h, 56px); z-index: 1015; padding-top: .75rem; }
/* The tint, divider and shadow span the window, behind the centred content (a layer, so panels that open below the
   header aren't clipped). */
.cal-fixed::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1;
                     background: var(--bs-tertiary-bg); border-bottom: 2px solid var(--bs-border-color);
                     box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .25); }
body:has(#cal-fixed) { overflow-x: clip; }
.cal-tip > .btn { display: inline-flex; align-items: center; padding-top: .3rem !important; padding-bottom: .3rem !important; }
body:has(#cal-fixed) > footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1015; background: var(--bs-body-bg);
                                padding: .5rem 0; }
body:has(#cal-fixed) { padding-bottom: 3rem; }
.cal-bar { position: relative; padding: .5rem 0; }
.cal-datectl { min-width: 0; flex: 1 1 18rem; }
.cal-datectl .form-select { width: auto; min-width: 0; flex: 1 1 6rem; }
.cal-daybtn { min-width: 9.5rem; font-variant-numeric: tabular-nums; text-align: left; }
.cal-daybtn[aria-expanded="true"] { border-color: var(--bs-primary); }
.cal-filter { position: relative; }
.cal-filter > summary { list-style: none; cursor: pointer; }
.cal-filter > summary::-webkit-details-marker { display: none; }
.cal-filter-panel { position: absolute; right: 0; top: calc(100% + .35rem); width: min(30rem, calc(100vw - 2rem)); z-index: 1030; max-height: 75vh; display: flex; flex-direction: column; }
.cal-filter-body { overflow: auto; }
.cal-filter-foot { background: var(--bs-body-bg); border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius); }
.cal-pop { position: absolute; left: 0; top: calc(100% + .25rem); width: min(21rem, calc(100vw - 2rem)); z-index: 1030; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { font-size: .68rem; font-weight: 600; text-transform: uppercase; text-align: center; color: var(--bs-secondary-color); padding: .2rem 0; }
.cal-we { color: var(--bs-primary); }
.cal-cell { position: relative; aspect-ratio: 1; border: 0; border-radius: .5rem; background: none; color: inherit; font-variant-numeric: tabular-nums; }
.cal-cell:hover { background: var(--bs-primary-bg-subtle); }
.cal-cell.cal-none span { opacity: .4; }
.cal-cell.cal-tonight { box-shadow: inset 0 0 0 1.5px var(--bs-body-color); }
.cal-cell.cal-sel { background: var(--bs-primary); color: #fff; }
.cal-cell i { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); display: flex; gap: 2px; }
.cal-cell i b, .cal-dot-key { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--bs-primary); }
.cal-cell.cal-sel i b { background: #fff; }
.cal-month { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 2rem 0 0; }
.cal-month small { font-size: .9rem; font-weight: 400; }
.cal-day { scroll-margin-top: 7rem; }
.cal-day.cal-current > h3 { color: var(--bs-primary) !important; }
.cal-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 1rem); background: var(--bs-body-color); color: var(--bs-body-bg); padding: .6rem 1rem; border-radius: .6rem; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1080; max-width: calc(100% - 2rem); }
.cal-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .cal-toast { transition: none; } }
/* Hidden until the script has days to move through (d-flex would otherwise override [hidden]). */
.cal-datectl[hidden] { display: none !important; }
/* A phone: the date controls take the first row, Filter the next, and its panel opens from the left. */
@media (max-width: 575.98px) {
    .cal-datectl { flex-basis: 100%; }
    .cal-datectl .form-select, .cal-daybtn { font-size: .9rem; padding-left: .5rem; }
    .cal-daybtn { min-width: 5.5rem; }
    /* Sort & filter and Subscribe: the icon only (their panels open below the bar, see the block after). */
    .cal-filter-label { display: none; }
    .cal-filter-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-height: 85vh;
                        border-radius: 1rem 1rem 0 0 !important; }
    .cal-datectl { flex: 1 1 0; }
    .cal-datectl .form-select { flex: 1 1 0; width: 0; padding-right: 1.6rem; background-position: right .4rem center; }
    .cal-daybtn { min-width: 0; flex: 1 1 auto; }
    #cal-today { padding-left: .5rem; padding-right: .5rem; }
}
.cal-edge { min-height: 1.5rem; padding: .75rem 0; }
/* A phone: the controls stay at the top, in the fixed header box (Rich, 2026-10-22: with the phone in the palm, the
   thumb reaches the top more easily than the bottom); the month grid and the panels open downward, full width; the
   footer's links are in the menu. */
@media (max-width: 575.98px) {
    body:has(#cal-fixed) > footer { display: none; }
    body:has(#cal-fixed) { padding-bottom: 0; }
    .cal-fixed { padding-top: .5rem; }
    .cal-tagline { display: none; }
    .cal-pop { left: 0; width: 100%; }
    .cal-filter { position: static; }
    .cal-filter-panel { position: absolute; left: 0; right: 0; top: calc(100% + .25rem); bottom: auto; width: 100%; max-height: 70vh;
                        border-radius: var(--bs-border-radius) !important; }
}

.cal-pop .form-select { width: auto; }
/* calendar.js keeps the view still when a week loads above (Safari has no scroll anchoring); the browser's own
   anchoring on top of that moved the page twice. */
body:has(#cal-days), #cal-days { overflow-anchor: none; }
.cal-towns > summary { list-style: none; } .cal-towns > summary::-webkit-details-marker { display: none; }
/* Room below the last day, so any day (even the last of a short artist's list) can scroll up to the top: otherwise
   Today, or a picked day, stops short and the bar reads an earlier day. */
#cal-bottom { min-height: 70vh; }
/* The links line under a venue's or artist's name, in the header box: one tidy line, wrapping if it must. */
.cal-links { font-size: .875rem; }
.cal-links p { margin-bottom: 0 !important; }
/* A venue leading a gig card (an artist's page): its town in regular weight beside the bold name. */
.list-group-item strong .text-muted { font-weight: 400; }
/* ♡ Favourite on a venue's or artist's page: outlined, filled red when it's one of yours. */
/* Favourites are hearts (♡/♥), not stars: a gold ★ already means a curator's pick (Get Your Gig On's ⭐). */
.cal-star { font-size: 1.6rem; line-height: 1; padding: 0 .1rem; border: 0; color: var(--bs-secondary-color); background: none; }
.cal-star:hover { color: var(--bs-danger); }
.cal-star.on { color: var(--bs-danger); }
.cal-star-sm { font-size: 1.15rem; vertical-align: -.1em; }
/* Your profile: a round button with your initial, always in the menu bar (beside ☰ on a phone). */
.profile-button { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
                  background: var(--bs-primary); color: #fff; font-weight: 700; text-decoration: none; font-size: 1rem; }
.profile-button:hover, .profile-button:focus { color: #fff; filter: brightness(1.15); }
.profile-button.active { box-shadow: 0 0 0 3px var(--bs-primary-bg-subtle); }
/* Share (picture cards): the card beside the buttons on a gig page; in the Share panel it fills the width. */
.share-thumb { width: 240px; height: auto; }
.cal-share .cal-filter-panel { width: min(26rem, calc(100vw - 2rem)); }
/* The venues and artists A–Z (_DirectoryList): the letters stay at the top while the list scrolls; on a phone, one
   row to swipe. A letter's heading lands just below them. */
.dir-letters { position: sticky; top: var(--nav-h, 56px); z-index: 1010; background: var(--bs-body-bg); padding: .4rem 0; border-bottom: 1px solid var(--bs-border-color-translucent); flex-wrap: wrap; }
@media (max-width: 767.98px) { .dir-letters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .dir-letters::-webkit-scrollbar { display: none; } }
.dir-group h2 { scroll-margin-top: calc(var(--nav-h, 56px) + 4rem); }
/* Test's and Dev's banner (Site:Banner): hard to miss, so nobody works in the copy by mistake. */
.site-banner { background: repeating-linear-gradient(45deg, #ffd43b, #ffd43b 12px, #ffc107 12px, #ffc107 24px); color: #1f1d3a; }
.site-banner a { color: #1f1d3a; text-decoration: underline; margin-left: .5rem; }
/* Anything a page keeps at the top (Bootstrap's sticky-top: Admin's Work on picker) sits under the menu bar, not behind it. */
.sticky-top { top: var(--nav-h, 0px); }
/* Back to the top of a long page, bottom corner, clear of a phone's home bar. */
.back-to-top, .back-to-top:hover, .back-to-top:focus { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 1030; border-radius: 2rem; }
.btn.back-to-top { color: #fff !important; } /* over the link colour every a gets */

/* ---- Header colours (Rich, 2026-10-24: "the colour lives in the header, the calendar stays plain"): the menu bar and
   the calendar's fixed header box in navy with orange accents and white type; the gig list below, and every panel that
   opens from the header, keep the plain page colours for reading. A venue's or artist's skin (later) swaps these. */
:root {
  --gs-head: #0b2a6b;
  --gs-head-2: #12357f;
  --gs-head-ink: #ffffff;
  --gs-head-muted: #c9d4f0;
  --gs-head-accent: #ff8a00;
  --gs-head-line: rgba(255, 255, 255, .45);
}
body > header { background: var(--gs-head); }
.navbar.gs-head { background: var(--gs-head); border-top-color: var(--gs-head-accent); }
.navbar.gs-head .navbar-brand { color: var(--gs-head-ink); }
.nav-back { background: none; border: 0; color: var(--gs-head-ink); font-size: 1.5rem; line-height: 1; padding: .25rem .4rem .25rem 0; margin-right: .25rem; }
/* The gig you opened, found again when you come back to the night (calendar.js). */
.list-group-item.came-back { box-shadow: inset 4px 0 0 var(--gs-head-accent); background: rgba(255, 138, 0, .12); transition: background 1.5s ease-out; }
.navbar.gs-head .nav-link, .navbar.gs-head .nav-link.text-dark { color: rgba(255, 255, 255, .88) !important; }
.navbar.gs-head .nav-link.here { color: var(--gs-head-ink) !important; }
.navbar.gs-head .navbar-text, .navbar.gs-head .navbar-text a, .navbar.gs-head .nav-side a { color: var(--gs-head-muted) !important; }
.navbar.gs-head .nav-link .bi { color: var(--gs-head-accent); }
/* Get the app: a logo button per device, and its steps below in white on the navy, icons in orange (Rich, 2026-10-27:
   the grey muted text was hard to read on the blue). The button for the device you're on is filled orange. */
.navbar.gs-head .get-app-label { color: rgba(255, 255, 255, .88); }
.navbar.gs-head .get-app-label .bi, .navbar.gs-head .get-app-steps .bi { color: var(--gs-head-accent); }
.get-app-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.get-app-buttons:has(.this-device) { grid-template-columns: minmax(0, 6rem); }
.get-app-buttons button { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .75rem; padding: .4rem .2rem;
  color: var(--gs-head-ink); background: rgba(255, 255, 255, .08); border: 1px solid var(--gs-head-line); border-radius: .5rem; }
.get-app-buttons button .bi { font-size: 1.35rem; line-height: 1; color: var(--gs-head-accent); }
.get-app-buttons button:hover, .get-app-buttons button.open { background: rgba(255, 255, 255, .18); border-color: var(--gs-head-ink); }
.get-app-buttons button.this-device { background: var(--gs-head-accent); border-color: var(--gs-head-accent); color: var(--gs-head); font-weight: 700; }
.get-app-buttons button.this-device .bi { color: var(--gs-head); }
.navbar.gs-head .get-app-steps { color: var(--gs-head-ink); }
/* A saved copy on screen with no signal (site.js): an orange strip under the menu bar, fixed with it. */
.offline-banner { background: var(--gs-head-accent); color: var(--gs-head); font-size: .875rem; font-weight: 600; padding: .35rem 0; }
.offline-banner button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; }
.navbar.gs-head .btn-outline-primary { --bs-btn-color: var(--gs-head-ink); --bs-btn-border-color: var(--gs-head-accent);
  --bs-btn-hover-bg: var(--gs-head-accent); --bs-btn-hover-border-color: var(--gs-head-accent); --bs-btn-hover-color: var(--gs-head); }
.navbar.gs-head .profile-button { background: var(--gs-head-accent); color: var(--gs-head); }
.navbar.gs-head .profile-button:hover, .navbar.gs-head .profile-button:focus { color: var(--gs-head); }
@media (max-width: 991.98px) {
  .navbar.gs-head .navbar-nav > .nav-item + .nav-item { border-top-color: rgba(255, 255, 255, .12); }
}
@media (min-width: 992px) {
  .navbar.gs-head .navbar-nav .nav-link:hover { background: rgba(255, 255, 255, .1); }
  .navbar.gs-head .navbar-nav > .nav-item + .nav-item { border-left-color: rgba(255, 255, 255, .18); }
}

/* The calendar's fixed header box (home, venue and artist pages). */
.cal-fixed { color: var(--gs-head-ink); }
.cal-fixed::before { background: var(--gs-head-2); border-bottom: 0; box-shadow: 0 6px 12px -6px rgba(11, 42, 107, .5); }
.cal-fixed .cal-head a:not(.btn), .cal-fixed .cal-head h1 a { color: var(--gs-head-ink); }
.cal-fixed .approved-mark { background: var(--gs-head-accent); color: var(--gs-head); }
/* The town is on the icon line below the name: not repeated after it. */
.cal-fixed .cal-head h1 .text-muted { display: none; }
.cal-fixed .btn-outline-secondary { --bs-btn-color: var(--gs-head-ink); --bs-btn-border-color: var(--gs-head-line); --bs-btn-bg: rgba(255, 255, 255, .08);
  --bs-btn-hover-color: var(--gs-head-ink); --bs-btn-hover-bg: rgba(255, 255, 255, .18); --bs-btn-hover-border-color: var(--gs-head-ink);
  --bs-btn-active-color: var(--gs-head-ink); --bs-btn-active-bg: rgba(255, 255, 255, .24); --bs-btn-active-border-color: var(--gs-head-ink); }
.cal-fixed .btn-primary { --bs-btn-bg: var(--gs-head-accent); --bs-btn-border-color: var(--gs-head-accent); --bs-btn-color: var(--gs-head);
  --bs-btn-hover-bg: #ffa033; --bs-btn-hover-border-color: #ffa033; --bs-btn-hover-color: var(--gs-head); }
.cal-fixed #cal-today { background: var(--gs-head-accent); border-color: var(--gs-head-accent); color: var(--gs-head); font-weight: 600; }
.cal-fixed .cal-bar .bi, .cal-fixed .cal-info .bi { color: var(--gs-head-accent); }
.cal-fixed .cal-daybtn[aria-expanded="true"] { border-color: var(--gs-head-accent); }
.cal-fixed .cal-star { color: var(--gs-head-accent); background: transparent; border-color: var(--gs-head-line); }
/* What opens from the header (Sort & filter, Subscribe, Share, the month grid, admin) reads like the page. */
.cal-fixed .cal-filter-panel, .cal-fixed .cal-pop { color: var(--bs-body-color); }
.cal-fixed .cal-filter-panel .bi, .cal-fixed .cal-pop .bi { color: inherit; }
.cal-fixed .cal-filter-panel .btn-outline-secondary, .cal-fixed .cal-pop .btn-outline-secondary { --bs-btn-color: var(--bs-secondary-color);
  --bs-btn-border-color: var(--bs-border-color); --bs-btn-bg: transparent; --bs-btn-hover-color: var(--bs-body-color); --bs-btn-hover-bg: var(--bs-tertiary-bg); }
.cal-fixed .cal-filter-panel .btn-primary { --bs-btn-bg: var(--gs-primary); --bs-btn-border-color: var(--gs-primary); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--gs-primary-dark); --bs-btn-hover-border-color: var(--gs-primary-dark); --bs-btn-hover-color: #fff; }

/* A venue's or artist's details under the name (what "More" held): one line of icons, the claim link at its end, and an
   artist's description cut to a line (tap or focus for all of it). */
.cal-info { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; margin-top: .4rem; font-size: .95rem; }
.cal-info a:not(.btn) { color: var(--gs-head-ink); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 2rem; }
.cal-info .bi { font-size: 1.15rem; }
/* Back from an edit, the row edited lands below the fixed header, not under it. */
[id^="edit-"] { scroll-margin-top: calc(var(--nav-h, 4rem) + 5rem); }
.cal-info .map-text { text-decoration: underline dotted; text-underline-offset: 3px; }
.cal-info .cal-claim { margin-left: auto; font-size: .82rem; color: var(--gs-head-muted) !important; text-decoration: underline; }
.cal-desc { margin: .35rem 0 0; font-size: .9rem; color: var(--gs-head-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-desc:focus, .cal-desc.open { white-space: normal; outline: none; }
/* The share icon is the curved forward arrow (Facebook's, WhatsApp's: Rich, 2026-10-24): Bootstrap's reply, mirrored. */
.bi-flip::before { display: inline-block; transform: scaleX(-1); }
/* The Admin submenu under the menu bar: topics in a row (swipe on a phone), the one you're in underlined in orange,
   waiting work as a small orange count. */
header:has(.admin-nav) .navbar { margin-bottom: 0 !important; }
.admin-nav { background: var(--gs-head-2); margin-bottom: 1rem; }
.admin-nav .container { padding-top: .25rem; padding-bottom: .25rem; scrollbar-width: none; }
.admin-nav-link { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .45rem .75rem; border-radius: .375rem;
  color: rgba(255, 255, 255, .88); text-decoration: none; font-size: .95rem; }
.admin-nav-link .bi { color: var(--gs-head-accent); }
.admin-nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-nav-link.here { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--gs-head-accent); border-radius: 0; }
.admin-nav-count { background: var(--gs-head-accent); color: var(--gs-head); font-size: .72rem; font-weight: 700; border-radius: 1rem; padding: 0 .45rem; }
/* The Admin overview: a card per topic, its icon in orange, its waiting work as an orange pill. */
.admin-card { color: var(--bs-body-color); border-color: var(--bs-border-color); transition: border-color .15s, box-shadow .15s; }
.admin-card:hover { border-color: var(--gs-head-2); box-shadow: 0 4px 12px rgba(11, 42, 107, .12); }
.admin-card .bi { color: var(--gs-head-accent); }
.admin-card-count { background: var(--gs-head-accent); color: var(--gs-head); }
/* The logo (Rich's singer-guitarist, 2026-10-24) in place of the name, the full height of the menu bar, top left: the
   bar's top and bottom padding go so the square meets its edges. */
.navbar.gs-head { padding-top: 0; padding-bottom: 0; }
.navbar.gs-head .navbar-toggler { margin-top: .4rem; margin-bottom: .4rem; }
.brand-mark { padding: 0; margin-right: .75rem; line-height: 0; }
/* The banner's figure and badge are navy, the bar's own colour: they sit on an orange plate so they stand out. */
.brand-logo { display: block; height: 3.4rem; width: auto; margin: .3rem 0; padding: .15rem .45rem; background: var(--gs-head-accent); border-radius: .5rem; box-sizing: content-box; }
@media (max-width: 575.98px) { .brand-logo { height: 3rem; } }
/* Small print in the header box (the tagline under "Rochester music") reads white on the navy, never grey. */
.cal-fixed .cal-head .text-muted, .cal-fixed .cal-head .text-body-secondary { color: rgba(255, 255, 255, .9) !important; }
/* One menu bar on every screen (Rich, 2026-10-24: the phone layout on the computer too): the logo at the left, the
   profile circle (or Sign in) and ☰ at the right. On a phone the menu opens full width under the bar; on anything wider
   it opens as a panel under the right corner. Either way one item per row. */
@media (min-width: 576px) {
  .navbar.gs-head > .container { position: relative; }
  .navbar.gs-head .navbar-collapse { position: absolute; top: 100%; right: .75rem; width: 19rem; z-index: 1040;
    background: var(--gs-head); border-radius: 0 0 .6rem .6rem; box-shadow: 0 12px 24px rgba(0, 0, 0, .3); padding: .25rem .75rem .75rem; }
}
.navbar.gs-head .navbar-nav > .nav-item + .nav-item { border-left: 0 !important; border-top: 1px solid rgba(255, 255, 255, .12); }
.navbar.gs-head .navbar-nav .nav-link { padding: .6rem .5rem !important; }
.navbar.gs-head .navbar-nav .nav-link.here { box-shadow: inset 3px 0 0 var(--gs-head-accent) !important; border-radius: 0; }
.navbar.gs-head .nav-side { display: block; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
/* Admin's gear beside the profile circle (admins only). */
.admin-gear { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  color: var(--gs-head-accent); font-size: 1.25rem; text-decoration: none; border: 1px solid var(--gs-head-line); }
.admin-gear:hover, .admin-gear.here { color: var(--gs-head); background: var(--gs-head-accent); border-color: var(--gs-head-accent); }
/* The page header band (every page but the calendar ones, which have their own box): navy, the title in white, under
   the menu bar (and the Admin submenu) and fixed with them. */
header:has(.page-head) .navbar, header:has(.page-head) .admin-nav { margin-bottom: 0 !important; }
.page-head { background: var(--gs-head-2); color: var(--gs-head-ink); padding: .65rem 0; margin-bottom: 1rem; box-shadow: 0 6px 12px -6px rgba(11, 42, 107, .5); }
.page-head h1 { color: var(--gs-head-ink); }
.page-head a:not(.btn) { color: var(--gs-head-ink); }
.page-head .btn-outline-secondary, .page-head .btn-outline-primary, .page-head .btn-link { --bs-btn-color: var(--gs-head-ink); --bs-btn-border-color: var(--gs-head-line);
  --bs-btn-hover-color: var(--gs-head); --bs-btn-hover-bg: var(--gs-head-accent); --bs-btn-hover-border-color: var(--gs-head-accent); }
/* The region in the menu bar, between the logo and the buttons, centred in the space left (later the region picker). */
.nav-region { flex: 1 1 auto; min-width: 0; text-align: center; color: var(--gs-head-ink) !important; font-weight: 700; font-size: 1.25rem;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 .5rem; }
@media (max-width: 575.98px) { .nav-region { font-size: 1rem; white-space: normal; line-height: 1.15; } }
/* The home calendar's header box is just its controls now. */
.cal-fixed:not(:has(.cal-head)) { padding-top: .35rem; }
/* One row on every screen: logo, region, buttons. The menu opens as a panel below the bar (full width on a phone)
   instead of wrapping inside it. */
.navbar.gs-head > .container { flex-wrap: nowrap; position: relative; }
@media (max-width: 575.98px) {
  .navbar.gs-head .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; z-index: 1040; background: var(--gs-head);
    padding: 0 1rem .75rem; box-shadow: 0 12px 24px rgba(0, 0, 0, .3); }
  .navbar.gs-head .brand-logo { height: 2.7rem; }
  .navbar.gs-head .nav-region { font-size: .9rem; padding: 0 .35rem; }
  .navbar.gs-head .navbar-toggler { padding: .25rem .5rem; }
}
