/* UKB Live, 2008 look modernised: navy header with a red rule, cool grey page,
   white panels. Archivo throughout, condensed for headlines like a gig poster. */
:root {
  --paper: #f3f5f9;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #526079;
  --rule: #dbe2ec;
  --ice: #e8f0fb;
  --royal: #2563eb;
  --red: #ef3b2d;
  --tape: #ef3b2d;
  --tape-ink: #ffffff;
  --mark: #ffe4e0;
  --head: #0b1630;
  --head-ink: #ffffff;
  --head-muted: #a9b8d0;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 20px rgba(15,23,42,.06);
  --shadow-lift: 0 2px 4px rgba(15,23,42,.06), 0 14px 34px rgba(15,23,42,.12);
  --hot: linear-gradient(135deg, #ef3b2d 0%, #ff6a3d 100%);
  --font: "Archivo", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --read: 42rem;
  --wide: 76rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0a0f1c; --card: #131b2d; --ink: #e6ebf4; --muted: #9babc2; --rule: #26324b; --ice: #162441;
          --royal: #7aa7ff; --mark: #5a1d19; --head: #060b18;
          --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); --shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.4); color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0a0f1c; --card: #131b2d; --ink: #e6ebf4; --muted: #9babc2; --rule: #26324b; --ice: #162441;
          --royal: #7aa7ff; --mark: #5a1d19; --head: #060b18;
          --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); --shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.4); color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); font-stretch: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.read { max-width: var(--read); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--tape); color: var(--tape-ink); padding: 6px 10px; z-index: 9; }

/* header */
.site-head { background: var(--head); color: var(--head-ink); border-bottom: 3px solid var(--red); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 12px; min-height: 80px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--head-ink); min-width: 0; }
.brand b { font-size: 2.1rem; font-weight: 900; font-stretch: 70%; letter-spacing: 0.01em; line-height: 1; }
.brand b i { font-style: normal; color: var(--red); }
.brand span { font-size: 0.875rem; color: var(--head-muted); }
.brand.has-logo { align-items: center; }
.brand img { display: block; height: 52px; width: auto; max-width: min(320px, 60vw); object-fit: contain; }
.head-side { display: flex; flex-direction: row; align-items: center; gap: 16px; min-width: 0; }
.head-account { display: flex; align-items: center; font-size: .875rem; color: var(--head-muted); white-space: nowrap; }
.head-account > * + * { border-left: 1px solid rgba(255,255,255,.28); margin-left: 10px; padding-left: 10px; }
.head-account a, .head-account button.linkish { color: var(--head-ink); font-weight: 700; }
.head-account form { margin-top: 0; margin-bottom: 0; display: inline; }
.head-status { display: inline-flex; align-items: center; min-width: 0; }
.head-status a { overflow: hidden; text-overflow: ellipsis; max-width: 12rem; display: inline-block; vertical-align: bottom; margin-left: 4px; }
.head-status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ccf6e; margin-right: 6px; flex: none; }
@media (max-width: 40rem) {
  .head-row { min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .brand img { height: 40px; }
  .head-account { font-size: .8rem; }
  .head-account > * + * { margin-left: 8px; padding-left: 8px; }
  .head-status .who-label { display: none; }
  .head-status a { max-width: 7rem; margin-left: 0; }
}
.venue-update input[type=password] { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: inherit; font-weight: 400;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); }
.head-search input { width: 15rem; background: #ffffff; color: #0b2445; border-color: transparent; }
nav.main { background: rgba(255,255,255,0.04); border-top: 1px solid rgba(255,255,255,0.08); overflow-x: auto; scrollbar-width: none; }
nav.main ul { display: flex; gap: 2px; list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; white-space: nowrap; }
nav.main a { display: block; padding: 12px 14px 10px; text-decoration: none; font-weight: 700; font-stretch: 88%; color: var(--head-muted);
             border-bottom: 3px solid transparent; margin-bottom: -3px; }
nav.main a:hover { color: var(--head-ink); background: rgba(255,255,255,0.06); }
nav.main a[aria-current="page"] { color: var(--head-ink); border-bottom-color: var(--red); }
.notice { background: var(--ice); color: var(--ink); font-size: 0.9rem; border-bottom: 1px solid var(--rule); }
.notice p { margin: 0; padding: 8px 0; }
.notice a { color: var(--royal); font-weight: 700; }

/* type */
h1, h2, h3 { font-stretch: 72%; font-weight: 800; line-height: 1.05; letter-spacing: -0.005em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: 1.75rem; margin-top: 1.6em; }
h3 { font-size: 1.3rem; }
.tape { display: inline-block; background: var(--tape); color: var(--tape-ink); font-weight: 800; font-stretch: 88%;
        padding: 3px 10px 4px; margin: 28px 0 12px; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 3px; }
.page-head { padding-bottom: 8px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: var(--read); margin: 0 0 1.2em; }

/* hero */
.hero { padding: 28px 0 8px; display: grid; gap: 24px; }
.hero h1 { font-size: clamp(3.4rem, 15vw, 9rem); font-weight: 900; font-stretch: 62%; line-height: 0.86; margin: 0; letter-spacing: -0.02em; }
.hero h1 .years { display: block; font-size: 0.42em; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-top: 0.15em; }
.hero p { font-size: 1.2rem; max-width: 34rem; margin: 0; }
.hero .search-big { display: flex; gap: 8px; max-width: 34rem; }
.hero .search-big input { flex: 1; font-size: 1.1rem; padding: 12px 14px; }
.counts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.counts b { color: var(--ink); font-weight: 800; font-stretch: 75%; font-size: 1.35rem; }

/* forms */
input[type="search"], input[type="text"], input[type="password"], select, textarea {
  font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-radius: 3px; padding: 7px 10px; }
textarea { width: 100%; min-height: 5rem; }
button, .btn { font: inherit; font-weight: 700; font-stretch: 85%; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
               border-radius: 3px; padding: 7px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
button.quiet { background: transparent; color: var(--ink); }
label { font-weight: 600; display: block; margin: 12px 0 4px; }

/* grids and lists */
.cols { display: grid; gap: 8px 40px; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .cols { grid-template-columns: 3fr 2fr; } .hero { grid-template-columns: 3fr 2fr; align-items: end; } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--rule); padding: 12px 0; }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list a.title { font-weight: 700; text-decoration: none; font-size: 1.08rem; }
.list a.title:hover { text-decoration: underline; }
.list p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.meta { color: var(--muted); font-size: 0.875rem; }
.meta a { color: inherit; }

/* chart */
.chart { list-style: none; margin: 0; padding: 0; }
.chart li { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.chart .pos { font-weight: 900; font-stretch: 62%; font-size: 1.9rem; text-align: center; line-height: 1; }
.chart li:nth-child(-n+3) .pos { background: var(--red); color: #fff; padding: 6px 0; border-radius: 4px; }
.chart .name { font-weight: 700; text-decoration: none; }
.chart .votes { color: var(--muted); font-size: 0.9rem; text-align: right; }
.chart.compact .pos { font-size: 1.4rem; }

/* directory */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 0 0 12px; }
.filters select { max-width: 100%; }
.letters { display: flex; flex-wrap: wrap; gap: 2px; margin: 8px 0 20px; padding: 0; list-style: none; }
.letters a { display: block; min-width: 2rem; text-align: center; padding: 4px 6px; text-decoration: none; font-weight: 700; border-radius: 3px; }
.letters a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.acts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.acts-grid a { text-decoration: none; display: block; }
.acts-grid .name { display: block; font-weight: 700; line-height: 1.25; margin-top: 8px; }
.acts-grid .sub { display: block; color: var(--muted); font-size: 0.85rem; }
.pic { aspect-ratio: 1; width: 100%; background: var(--card); border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic .init { font-weight: 900; font-stretch: 62%; font-size: 2rem; color: var(--rule); }
.acts-grid .pic { aspect-ratio: 4 / 3; }
.profile-top { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 40rem) { .profile-top { grid-template-columns: 12rem 1fr; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* reading */
.prose { max-width: var(--read); overflow-wrap: break-word; }
.prose p { margin: 0 0 1em; }
.prose img { display: block; margin: 12px 0; border: 1px solid var(--rule); }
.prose blockquote { margin: 1em 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--tape); color: var(--muted); }
.prose a.oldimg { color: var(--muted); font-size: 0.85rem; }
.prose table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--rule); padding: 4px 8px; }
.prose pre { white-space: pre-wrap; }

/* forum */
.post { border-top: 2px solid var(--ink); padding: 14px 0 18px; scroll-margin-top: 12px; }
.post-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.post-head .who { font-weight: 800; font-stretch: 85%; }
.threads td, .threads th { text-align: left; padding: 10px 8px 10px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.threads { width: 100%; border-collapse: collapse; }
.threads th { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.threads .n { text-align: right; white-space: nowrap; }
@media (max-width: 40rem) { .threads .hide-s { display: none; } }

/* pager */
.pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 24px 0; }
.pager a, .pager span { padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 3px; text-decoration: none; font-weight: 700; }
.pager span.at { background: var(--ink); color: var(--paper); }
.pager span.gap { border-color: transparent; }

/* search */
mark { background: var(--mark); color: inherit; padding: 0 1px; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.kinds a { padding: 4px 10px; border: 1.5px solid var(--rule); border-radius: 3px; text-decoration: none; font-size: 0.9rem; }
.kinds a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* admin */
.flash { background: var(--ink); color: var(--paper); border-left: 4px solid var(--red); padding: 10px 14px; margin: 16px 0; font-weight: 600; }
.error-box { border: 2px solid var(--ink); padding: 10px 14px; margin: 16px 0; font-weight: 600; }
.panel { border: 1px solid var(--rule); border-radius: 10px; padding: 18px; margin: 20px 0; background: var(--card); box-shadow: 0 1px 2px rgba(11,36,69,0.08); }
.panel h2 { margin-top: 0; }
.hidden-list form { display: inline; }

footer.site-foot { border-top: 2px solid var(--ink); margin-top: 56px; padding: 20px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer.site-foot a { color: var(--ink); }

@media (max-width: 40rem) {
  .head-search { display: none; }
  h2 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.tape-link { text-decoration: none; }
.gap-top { margin-top: 24px; }
.full { width: 100%; }
.search-big { display: flex; gap: 8px; max-width: var(--read); }
.search-big input { flex: 1; min-width: 0; }
@media (min-width: 40rem) { .profile-top.no-pic { grid-template-columns: 1fr; } }

/* band page: long banner with the profile picture over its lower edge */
.profile-hero { margin: 24px 0 8px; }
.profile-hero .banner { aspect-ratio: 4 / 1; min-height: 120px; max-height: 340px; width: 100%; overflow: hidden; border-radius: 10px;
                        background: linear-gradient(120deg, #0b2445 0%, #163a66 60%, #2468a7 100%); }
.profile-hero .banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 20px; align-items: start; padding: 0 20px; margin-top: -56px; }
.hero-row .avatar { width: 112px; height: 112px; border-radius: 10px; overflow: hidden; background: var(--card); border: 4px solid var(--card);
                    box-shadow: 0 2px 8px rgba(11,36,69,0.25); display: grid; place-items: center; }
.hero-row .avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-row .avatar .init { font-weight: 900; font-stretch: 62%; font-size: 2.6rem; color: var(--rule); }
.hero-text { padding-top: 70px; min-width: 0; }
.hero-text .tape { margin: 0 0 6px; }
.hero-text h1 { margin: 0; overflow-wrap: anywhere; }
.hero-edit { align-self: start; margin-top: 70px; }
.profile-facts { margin: 20px 0 0; max-width: var(--read); }
@media (min-width: 48rem) {
  .hero-row { margin-top: -84px; padding: 0 28px; }
  .hero-row .avatar { width: 168px; height: 168px; }
  .hero-text { padding-top: 98px; }
  .hero-edit { margin-top: 98px; }
}
@media (max-width: 40rem) {
  .hero-row { grid-template-columns: auto minmax(0, 1fr); padding: 0 12px; margin-top: -40px; }
  .hero-row .avatar { width: 88px; height: 88px; }
  .hero-text { padding-top: 54px; }
  .hero-edit { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
}

/* custom pages */
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose figure { margin: 18px 0; }
.prose figure img { border-radius: 8px; }
.prose ul { padding-left: 1.2em; }

/* admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 20px; }
.admin-nav > a { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 20px; text-decoration: none; font-weight: 700; background: var(--card); }
.admin-nav > a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.admin-cols { display: grid; gap: 0 24px; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .admin-cols { grid-template-columns: 1fr 1fr; } }
.logo-preview { background: var(--head); color: #fff; border-radius: 8px; padding: 16px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 8px 0; }
.logo-preview img { height: 52px; width: auto; display: block; }
.logo-preview b { font-size: 2rem; font-weight: 900; font-stretch: 70%; }
.logo-preview b i { font-style: normal; color: var(--red); }
.logo-preview span { color: var(--head-muted); font-size: 0.85rem; }
.banner-preview { display: block; width: 100%; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 8px; margin: 8px 0; }
.banner-preview.empty { background: linear-gradient(120deg, #0b2445, #2468a7); color: #fff; display: grid; place-items: center; font-size: 0.9rem; padding: 8px; text-align: center; }
.avatar-preview { width: 160px; height: 160px; border-radius: 10px; overflow: hidden; background: var(--paper); display: grid; place-items: center; margin: 8px 0; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-preview .init { font-weight: 900; font-stretch: 62%; font-size: 3rem; color: var(--rule); }
input[type="file"] { font: inherit; max-width: 100%; }
input[type="number"].num { width: 4.5rem; font: inherit; padding: 7px 8px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--card); color: var(--ink); }
.menu-table { border-collapse: collapse; width: 100%; max-width: 56rem; display: block; overflow-x: auto; }
.menu-table th { text-align: left; font-size: 0.85rem; color: var(--muted); font-weight: 600; padding: 6px 10px 6px 0; }
.menu-table td { padding: 8px 10px 8px 0; border-top: 1px solid var(--rule); vertical-align: middle; }
.menu-table input[type="text"] { width: 12rem; }
.menu-table input[type="checkbox"] { width: 20px; height: 20px; }
.row-btns { white-space: nowrap; }
.row-btns button { padding: 5px 10px; }
button:disabled { opacity: 0.35; cursor: default; }
button.danger { color: var(--red); border-color: var(--red); }
button.accent, .btn.accent { background: var(--red); border-color: var(--red); color: #fff; }
.btn.quiet { background: var(--card); color: var(--ink); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.editor { display: grid; gap: 0 28px; grid-template-columns: 1fr; }
@media (min-width: 60rem) { .editor { grid-template-columns: minmax(0, 1fr) 18rem; } }
.body-edit { font: 0.95rem/1.55 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; min-height: 22rem; }
.editor-help { font-size: 0.9rem; }
.editor-help h2 { font-size: 1.3rem; margin-top: 1em; }
.editor-help code { background: var(--ice); padding: 1px 5px; border-radius: 3px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.preview-box { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 8px 24px 20px; }

/* --- Listen / player --- */
.listen { max-width: var(--read); margin-top: 28px; }
.tracks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.track { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; }
.track-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.track-title { font-weight: 700; flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.outlet { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px;
  background: var(--head); color: #fff; }
.o-spotify { background: #1db954; color: #04130a; } .o-soundcloud { background: #ff5500; } .o-youtube { background: #e02b20; }
.o-bandcamp { background: #1da0c3; color: #031418; } .o-apple { background: #fa2d48; } .o-mixcloud { background: #5000ff; }
.o-deezer { background: #a238ff; }
.player { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border-radius: 8px; background: var(--head);
  padding: 10px 12px; color: #dfe7f3; }
.player .muted { color: #9fb0c8; }
.play-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 18px 10px 14px; font-weight: 700; cursor: pointer; }
.play-btn:hover, .play-btn:focus-visible { filter: brightness(1.1); }
.play-btn .tri { width: 0; height: 0; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.player.live { padding: 0; background: none; display: block; }
.player iframe { display: block; width: 100%; border: 0; border-radius: 8px; }
.pl-hvideo.live iframe { aspect-ratio: 16 / 9; height: auto; }
.pl-h120.live iframe { height: 120px; } .pl-h150.live iframe { height: 150px; } .pl-h152.live iframe { height: 152px; }
.pl-h166.live iframe { height: 166px; } .pl-h175.live iframe { height: 175px; } .pl-h300.live iframe { height: 300px; }
.pl-h352.live iframe { height: 352px; } .pl-h450.live iframe { height: 450px; }
.no-tracks { border: 2px dashed var(--rule); border-radius: 10px; padding: 16px 18px; }
.no-tracks p { margin: 0 0 10px; }
.outlets { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.track-admin { list-style: none; padding: 0; margin: 0 0 14px; }
.track-admin li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.track-admin li .grow { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.track-admin li.hidden-old .grow { opacity: .55; text-decoration: line-through; }
.track-add label { display: block; font-weight: 700; margin: 0 0 10px; }
.track-add input[type=url], .track-add input[type=text] { display: block; width: 100%; max-width: 36rem; margin-top: 4px; padding: 9px 10px;
  font: inherit; font-weight: 400; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); }

/* --- Venues and gigs --- */
.lede { max-width: var(--read); font-size: 1.08rem; }
.status-keys { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.vstat { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--ice); color: var(--ink); text-decoration: none; }
.vstat b { margin-left: 4px; }
.vstat.big { font-size: .95rem; padding: 5px 12px; }
.s-open { background: #1f8a4c; color: #fff; }
.s-closed { background: #5c6676; color: #fff; }
.s-moved-or-renamed { background: #c77700; color: #fff; }
.s-not-checked { background: var(--ice); color: var(--muted); }
.venue-list { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 10px; }
.venue-list li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; }
.venue-list li > a { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.venue-list .name { display: block; font-weight: 800; }
.venue-list .sub { display: block; color: var(--muted); font-size: .9rem; }
.venue-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 12px; max-width: var(--read); }
.claim-box { max-width: var(--read); border-left: 4px solid var(--red); background: var(--card); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 14px 0 6px; }
.claim-box p { margin: 0; }
.year { margin: 18px 0 6px; }
.gig-list { list-style: none; padding: 0; margin: 0; max-width: var(--read); }
.gig-list li { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 4px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.gdate { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) { .gig-list li { grid-template-columns: 1fr auto; } .gig-list .gdate { grid-column: 1 / -1; } }
.filters input[type=text], .filters input:not([type]) { padding: 9px 10px; font: inherit; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--card); color: var(--ink); min-width: 12rem; }
.filters .check { align-self: end; padding-bottom: 8px; }
.filters .check label { display: flex; gap: 8px; align-items: center; font-weight: 700; cursor: pointer; }
.filters .check input { width: 20px; height: 20px; accent-color: var(--red); }
.venue-update { max-width: var(--read); margin-top: 32px; }
.venue-update form label { display: block; font-weight: 700; margin: 0 0 12px; }
.venue-update form label .muted { font-weight: 400; display: block; }
.venue-update input[type=text], .venue-update input[type=url], .venue-update input[type=email], .venue-update textarea, .venue-update select,
.vu-form input, .vu-form select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: inherit; font-weight: 400;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); }
.venue-update fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.venue-update legend { font-weight: 700; margin-bottom: 6px; }
.venue-update label.opt { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 4px 0; }
.venue-update .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.s-no-record-found { background: #8a6d5c; color: #fff; }
.vu { margin-bottom: 18px; }
.vu blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--rule); background: var(--paper); white-space: pre-wrap; }
.verified { display: inline-block; vertical-align: middle; font-size: .9rem; font-weight: 800; letter-spacing: .02em; padding: 4px 10px;
  border-radius: 999px; background: #1f8a4c; color: #fff; }
.venue-pic { border-radius: 12px; overflow: hidden; margin: 6px 0 14px; aspect-ratio: 16 / 5; background: var(--head); }
.venue-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.venue-about { max-width: var(--read); margin: 10px 0 6px; }
.venue-about .pre { white-space: pre-line; }
.claim-box .small-btn { display: inline-block; margin-left: 6px; padding: 6px 12px; font-size: .9rem; }
.claim-steps { max-width: var(--read); }
.claim-steps ol { padding-left: 1.3rem; }
.claim-steps li { margin: 6px 0; }
.venue-update.narrow, .claim-form { max-width: 34rem; }
.setup-link input { width: 100%; padding: 9px 10px; font: inherit; border: 1px solid var(--rule); border-radius: 6px; }
form.inline { display: inline; }
button.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.tick { display: inline-block; font-size: .85rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: rgba(150,150,150,.18); }
.tick.ok { background: rgba(46,160,67,.2); color: #2ea043; }
.src-keys a { opacity: .75; }
.src-keys a.on { opacity: 1; font-weight: 800; text-decoration: underline; }
.dir-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dir-groups h2 { font-size: 1.1rem; margin: 0 0 8px; }
.dir-subs { list-style: none; margin: 0; padding: 0; columns: 1; }
.dir-subs li { padding: 3px 0; }
.now-box h2 { font-size: 1.1rem; margin: 0 0 6px; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 10px; border: 1px dashed #c9a227; border-radius: 8px; background: rgba(201,162,39,.08); }
.admin-bar form.inline { display: inline; margin: 0; }
.venue-list li .bulk-tick { margin-right: 8px; transform: scale(1.3); flex: none; }
.bulk-label { display: block; font-size: .8rem; margin-bottom: 4px; }
.dir-layout { display: grid; grid-template-columns: minmax(260px, 1fr) 2.2fr; gap: 14px; align-items: start; }
.dir-layout .dir-groups { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dir-main { border-width: 2px; }
.dir-main h2 { font-size: 1.4rem; }
.dir-main .dir-subs li { padding: 6px 0; font-size: 1.05rem; }
.dir-quick { display: flex; gap: 6px; margin-top: 12px; }
.dir-quick input { flex: 1; min-width: 0; }
@media (max-width: 760px) { .dir-layout { grid-template-columns: 1fr; } }
.dir-layout .dir-groups { align-items: start; }
.filters select, .filters input { max-width: 100%; min-width: 0; }
.filters > div { min-width: 0; }
/* Directory: boxes flow down two columns with no gaps (a grid left big holes under short boxes) */
.dir-layout > .dir-left > .panel, .dir-layout .dir-groups > .panel { margin: 0 0 14px; }
.dir-layout .dir-groups { display: block; columns: 2 240px; column-gap: 14px; }
.dir-layout .dir-groups > .panel { break-inside: avoid; display: inline-block; width: 100%; }
/* Directory search row: name, type and town in one even row, stacked on phones */
.dir-filters { display: grid; grid-template-columns: 1fr 1.3fr 1fr auto; gap: 10px; align-items: end; }
.dir-filters label { margin: 0 0 4px; }
.dir-filters input, .dir-filters select { width: 100%; box-sizing: border-box; height: 42px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 6px; }
.dir-filters button { height: 42px; }
@media (max-width: 700px) { .dir-filters { grid-template-columns: 1fr 1fr; } .dir-filters > div:nth-child(2) { grid-column: 1 / -1; order: -1; } }
@media (max-width: 420px) { .dir-filters { grid-template-columns: 1fr; } .dir-filters > div:nth-child(2) { order: 0; } }
/* Show/hide password eye */
.pw-wrap { position: relative; display: block; margin-top: 4px; }
.pw-wrap input { width: 100%; padding-right: 44px !important; margin-top: 0 !important; box-sizing: border-box; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px 8px; color: var(--muted); cursor: pointer; line-height: 0; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--ink); }
.wide-input { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
/* Share bar */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 16px; }
.share-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.share a, .share button { font-size: .85rem; font-weight: 700; padding: 5px 10px; border: 1px solid var(--rule); border-radius: 99px;
  background: var(--card); color: var(--ink); text-decoration: none; line-height: 1.3; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.share .share-native { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* Account type picker */
.type-pick { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.type-pick legend { font-weight: 700; margin-bottom: 8px; }
.type-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); cursor: pointer; font-weight: 400; margin: 0; }
.type-card input { margin-top: 3px; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.type-card b { display: block; }
.type-card:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.home-actions { margin: 4px 0 18px; }
/* Gig listing */
.gig-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gig-cards a { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--ink); text-decoration: none; }
.gig-cards a:hover { border-color: var(--ink); }
.gig-cards a > span:last-child { display: flex; flex-direction: column; }
.gig-date { display: flex; flex-direction: column; align-items: center; min-width: 3.4rem; padding: 4px 6px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: .75rem; line-height: 1.1; text-transform: uppercase; }
.gig-date b { font-size: 1.5rem; }
.btn.big { font-size: 1.1rem; padding: 12px 22px; }
.public-note p { margin: 0 0 6px; word-break: break-all; }
/* Logged-in main bar: the user's own menu, with the old site in one "UKB Archive" menu */
.site-head { position: relative; z-index: 20; }
.archive-li { margin-left: auto; }
.archive-menu summary { list-style: none; cursor: pointer; padding: 12px 14px 10px; font-weight: 700; font-stretch: 88%; color: var(--head-muted);
  border-bottom: 3px solid transparent; user-select: none; }
.archive-menu summary::-webkit-details-marker { display: none; }
.archive-menu summary:hover, .archive-menu[open] summary { color: var(--head-ink); background: rgba(255,255,255,0.06); }
.archive-menu summary[aria-current="page"] { color: var(--head-ink); border-bottom-color: var(--red); }
.archive-panel { position: absolute; right: 16px; top: 100%; margin-top: 3px; width: min(320px, calc(100vw - 32px)); background: var(--card);
  color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 10px 28px rgba(11,36,69,.22); padding: 8px; white-space: normal; }
.archive-intro { margin: 4px 10px 8px; font-size: inherit; color: var(--muted); }
.archive-front { grid-column: 1 / -1; }
.archive-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
nav.main .archive-panel a { color: var(--ink); padding: 8px 10px; border-radius: 6px; border-bottom: 0; }
nav.main .archive-panel a:hover { background: var(--ice); color: var(--ink); }
nav.main .archive-panel a[aria-current="page"] { background: var(--ice); box-shadow: inset 3px 0 0 var(--red); }
nav.main .archive-panel ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; white-space: normal; padding: 0; margin: 0; }
.archive-menu summary { display: block; line-height: inherit; }
nav.main li, .archive-menu { display: block; }
@media (max-width: 40rem) {
  nav.main .hide-s, .archive-menu .hide-s { display: none; }
  nav.main a, .archive-menu summary { padding-left: 10px; padding-right: 10px; }
}
nav.main details.archive-menu { margin: 0; }
nav.main details.archive-menu summary { margin: 0; color: var(--head-muted); padding-top: 12px; padding-bottom: 10px; margin-bottom: -3px; }
nav.main details.archive-menu summary:hover, nav.main details.archive-menu[open] summary, nav.main details.archive-menu summary[aria-current="page"] { color: var(--head-ink); }
@media (max-width: 40rem) {
  nav.main a, nav.main details.archive-menu summary { padding-left: 8px; padding-right: 8px; }
  nav.main .wrap { padding-left: 8px; padding-right: 8px; }
}
/* Landing page for visitors who aren't logged in */
body.landing { background: var(--paper); }
.landing .head-account a { color: var(--head-ink); font-weight: 700; }
.landing-main { padding-top: 32px; padding-bottom: 48px; max-width: 52rem; }
.landing-main h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.05; margin: 12px 0; }
.landing-points { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.landing-points li { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 8px; padding: 14px 16px; }
.landing-points b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.landing-points span { color: var(--muted); }
/* Admin: menus for each account type */
.type-grid-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.type-grid { border-collapse: collapse; font-size: .9rem; min-width: 100%; }
.type-grid th, .type-grid td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: center; white-space: nowrap; }
.type-grid thead th { font-size: .78rem; vertical-align: bottom; white-space: normal; min-width: 5.5rem; }
.type-grid th[scope="row"] { text-align: left; position: sticky; left: 0; background: var(--card); }
.type-grid input { width: 18px; height: 18px; accent-color: var(--red); }
/* Fan video feed */
.vgrid { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.vgrid-small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.vcard p { margin: 6px 0 0; }
.vtitle { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 40px; border-radius: 10px; background: rgba(220,38,38,.92); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; }
.yt:hover .yt-play, .yt:focus-visible .yt-play { background: #dc2626; }
.vcard iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; display: block; }
.genre-pick { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.type-grid .order-input { width: 3.2rem; padding: 4px 6px; text-align: center; border: 1px solid var(--rule); border-radius: 6px; font: inherit; }


/* ==== 2026 refresh: softer cards, rounder controls, brand-coloured socials, backdrops, landing ==== */
.site-head { border-bottom: 0; box-shadow: inset 0 -3px 0 var(--red); background: linear-gradient(180deg, #0f1d3d 0%, var(--head) 100%); }
input[type="search"], input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 9px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.head-search input { border-radius: 99px; padding-left: 16px; }
button, .btn { border-radius: var(--radius-s); padding: 8px 16px; transition: transform .12s, box-shadow .15s, background .15s; }
button:hover, .btn:hover { box-shadow: var(--shadow); }
button:active, .btn:active { transform: translateY(1px); }
button.accent, .btn.accent { background: var(--hot); border-color: transparent; }
button.quiet, .btn.quiet { border-color: var(--rule); }
.btn.big { border-radius: 12px; }
.panel { border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.tape { border-radius: 99px; padding: 4px 12px 5px; font-size: .78rem; letter-spacing: .08em; }
.flash { border-radius: var(--radius-s); border-left: 0; background: var(--ink); box-shadow: var(--shadow); }
.notice { background: var(--ice); border-bottom: 1px solid var(--rule); }
.yt, .vcard iframe { border-radius: 12px; }
.vcard { transition: transform .15s; }
.vcard:hover { transform: translateY(-2px); }
.vtitle { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* brand-coloured social buttons (share bar and follow us) */
.soc { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; line-height: 1; padding: 8px 13px;
       border-radius: 99px; border: 0; color: #fff; text-decoration: none; cursor: pointer; transition: filter .15s, transform .12s; }
.soc:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; box-shadow: none; }
.share a.soc, .share button.soc { border: 0; color: #fff; padding: 8px 13px; }
.soc-facebook, .share .soc-facebook { background: #1877f2; }
.soc-instagram, .share .soc-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.soc-x, .share .soc-x { background: #000; }
.soc-linkedin, .share .soc-linkedin { background: #0a66c2; }
.soc-whatsapp, .share .soc-whatsapp { background: #25d366; color: #fff; }
.soc-bluesky, .share .soc-bluesky { background: #0085ff; }
.soc-youtube, .share .soc-youtube { background: #ff0000; }
.soc-tiktok, .share .soc-tiktok { background: #000; box-shadow: inset 0 0 0 2px #25f4ee, 2px 2px 0 #fe2c55; }
.soc-email, .share .soc-email { background: #64748b; }
.share button.soc-copy, .soc-copy { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.share button.soc-native, .soc-native { background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .soc-x, :root:not([data-theme="light"]) .soc-tiktok { box-shadow: inset 0 0 0 1px #3b4660; } }
:root[data-theme="dark"] .soc-x, :root[data-theme="dark"] .soc-tiktok { box-shadow: inset 0 0 0 1px #3b4660; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.follow-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.site-foot .follow-label { color: inherit; opacity: .8; }

/* page backdrops */
.backdrop { position: relative; height: clamp(110px, 18vw, 200px); overflow: hidden; background: var(--head); }
.backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,11,24,.78) 0%, rgba(6,11,24,.25) 60%, rgba(6,11,24,0) 100%); }
.backdrop .wrap { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; padding-bottom: 18px; }
.backdrop-label { color: #fff; font-weight: 900; font-stretch: 62%; font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: .9; letter-spacing: -.01em;
                  text-transform: uppercase; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.bd-grid { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.bd-item h2 { margin-top: 0; }
.bd-preview { position: relative; aspect-ratio: 4 / 1; border-radius: 10px; overflow: hidden; background: linear-gradient(120deg, #0f1d3d, #2563eb); margin: 8px 0; }
.bd-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-preview span { position: absolute; left: 12px; bottom: 8px; color: #fff; font-weight: 900; font-stretch: 62%; font-size: 1.6rem; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.bd-preview.empty { display: grid; place-items: center; color: #fff; font-size: .9rem; }

/* logged-out front page */
.lp-hero { position: relative; overflow: hidden; padding: 40px 0 36px; background:
  radial-gradient(1200px 400px at 85% -10%, rgba(239,59,45,.14), transparent 60%),
  radial-gradient(900px 380px at -10% 110%, rgba(37,99,235,.14), transparent 60%); }
.lp-hero.has-bg { color: #fff; background: var(--head); }
.lp-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-hero.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,11,24,.9) 0%, rgba(6,11,24,.6) 55%, rgba(6,11,24,.35) 100%); }
.lp-hero.has-bg .lede { color: #d8e1ef; }
.lp-hero.has-bg .btn.quiet { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.lp-hero-grid { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
@media (min-width: 60rem) { .lp-hero-grid.with-video { grid-template-columns: 1.15fr 1fr; } }
.lp-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 900; font-stretch: 66%; line-height: .95; letter-spacing: -.015em; max-width: 16ch; margin: 10px 0 14px; }
.lp-hero .tape { margin-top: 0; }
.lp-search { display: flex; gap: 8px; max-width: 32rem; margin-top: 14px; }
.lp-search input { flex: 1; border-radius: 99px; padding: 12px 18px; font-size: 1rem; }
.lp-search button { border-radius: 99px; }
.lp-video { margin: 0; }
.lp-video .yt { border-radius: 16px; box-shadow: var(--shadow-lift); }
.lp-video figcaption { margin-top: 8px; font-size: .9rem; opacity: .85; }
.lp-stats { list-style: none; padding: 0; margin: -18px 0 0; position: relative; z-index: 2; display: grid; gap: 12px;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lp-stats li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.lp-stats b { display: block; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; font-stretch: 66%; line-height: 1;
              background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stats span { color: var(--muted); font-size: .9rem; }
.lp-section { padding: 36px 16px 4px; }
.lp-section h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: 0; }
.lp-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.lp-card { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow);
           padding: 22px 20px 20px; display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.lp-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--card-tone, var(--hot)); }
.lp-fans { --card-tone: linear-gradient(90deg, #d6249f, #fd5949); }
.lp-bands { --card-tone: linear-gradient(90deg, #ef3b2d, #ff8a3d); }
.lp-industry { --card-tone: linear-gradient(90deg, #2563eb, #06b6d4); }
.lp-archive { --card-tone: linear-gradient(90deg, #0f1d3d, #526079); }
.lp-kicker { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.lp-card h3 { font-size: 1.45rem; margin: 6px 0 10px; }
.lp-card ul { margin: 0 0 16px; padding-left: 1.1em; color: var(--muted); flex: 1; }
.lp-card li { margin: 4px 0; }
.lp-card .btn { align-self: flex-start; }
.lp-reels { display: grid; gap: 16px; align-items: center; background: var(--head); color: #fff; border-radius: var(--radius); padding: 26px 24px;
            background-image: radial-gradient(600px 240px at 100% 0%, rgba(214,36,159,.35), transparent 60%), radial-gradient(500px 220px at 0% 100%, rgba(37,99,235,.3), transparent 60%); }
@media (min-width: 52rem) { .lp-reels { grid-template-columns: 1.4fr 1fr; } }
.lp-reels h2 { margin: 4px 0 8px; }
.lp-reels p { margin: 0; color: #d8e1ef; }
.lp-reels .lp-kicker, .lp-reels .follow-label { color: #a9b8d0; }
.lp-reels .follow { margin: 0; }
.lp-end { padding-bottom: 48px; }
.vcard.solo { list-style: none; }
.lp-hero-grid { grid-template-columns: minmax(0, 1fr); }
.lp-hero-grid > * { min-width: 0; }
.lp-search input { min-width: 0; }
@media (min-width: 60rem) { .lp-hero-grid.with-video { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

/* back-to-top arrow */
.to-top { position: fixed; right: 16px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border-radius: 50%; padding: 0;
          font-size: 1.4rem; line-height: 1; background: var(--hot); color: #fff; border: 0; box-shadow: var(--shadow-lift); }
.to-top[hidden] { display: none; }
.to-top:hover { filter: brightness(1.08); }
@media print { .to-top { display: none; } }

/* share bar on phones: one tidy row you can swipe, the phone's own Share button first */
@media (max-width: 40rem) {
  .share { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 4px 24px 8px 0; max-width: 100%; min-width: 0;
           scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
           -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .share::-webkit-scrollbar { display: none; }
  .share > * { flex: none; scroll-snap-align: start; }
  .share a.soc, .share button.soc { font-size: .8rem; padding: 8px 11px; }
  .share .share-label { display: none; }
  .share .share-native:not([hidden]) { order: -1; }
  .share .soc-email { display: none; }
  .share-native:not([hidden]) ~ .soc-linkedin, .share-native:not([hidden]) ~ .soc-bluesky { display: none; }
}

/* front page directory search */
.lp-search-btns { display: flex; gap: 6px; flex: none; }
.lp-dir-search { max-width: 44rem; flex-wrap: wrap; }
.lp-dir-search input[name=town] { flex: 0 1 12rem; }
.lp-cats { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-cats a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 99px; background: var(--card);
             border: 1px solid var(--rule); text-decoration: none; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow); }
.lp-cats a:hover { border-color: var(--royal); color: var(--royal); }
.lp-cats span { color: var(--muted); font-weight: 600; font-size: .82rem; }
@media (max-width: 40rem) {
  .lp-search { flex-wrap: wrap; }
  .lp-search input[type=search] { flex: 1 1 100%; }
  .lp-search-btns { flex: 1 1 100%; } .lp-search-btns button { flex: 1; }
  .lp-dir-search input[name=town] { flex: 1 1 auto; }
}

/* sign up */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
label.check input { width: 20px; height: 20px; margin: 0; }
details.rules { margin: 14px 0 4px; }
details.rules summary { cursor: pointer; font-weight: 700; color: var(--royal); }
details.rules ul { margin: 8px 0 0; color: var(--muted); }

/* compact pickers (what you do, genres): small tappable chips instead of big cards */
.type-pick.compact { display: flex; flex-wrap: wrap; gap: 8px; }
.type-pick.compact legend { width: 100%; }
.chip { display: inline-flex; margin: 0; font-weight: 600; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 99px; background: var(--card);
             font-size: .92rem; transition: background .12s, border-color .12s, color .12s; }
.chip:hover span { border-color: var(--royal); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--royal); outline-offset: 2px; }
.type-hint { width: 100%; margin: 4px 0 0; }
.panel .pre { white-space: pre-line; }
input[hidden] { display: none !important; }
.follow a.soc, .site-foot a.soc { color: #fff; text-decoration: none; }

/* pages where people are doing something: smaller titles, label beside the title */
body[data-fn] main h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-top: 2px; }
body[data-fn] main > .tape:first-child, body[data-fn] .tapp-main > .tape:first-child { margin-bottom: 4px; }
.two { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
ul.type-blurbs { padding-left: 1.1em; margin: 4px 0 14px; }

/* Tabs inside Gigs: Guide | Calendar | Tours */
.tabs { display: flex; gap: 6px; margin: 0 0 12px; border-bottom: 1px solid var(--line, #ddd); }
.tabs a { padding: 6px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: inherit; font-weight: 600; border-bottom-color: currentColor; }

/* ---- profile types: one colour and glyph per kind of profile ---- */
:root { --t-music: #2563eb; --t-venue: #e11d74; --t-label: #7c3aed; --t-media: #0d9488; --t-people: #d97706; }
.t-music { --tc: var(--t-music); } .t-venue { --tc: var(--t-venue); } .t-label { --tc: var(--t-label); }
.t-media { --tc: var(--t-media); } .t-people { --tc: var(--t-people); }
.tbadge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; color: var(--tc, var(--royal));
  background: color-mix(in srgb, var(--tc, var(--royal)) 12%, transparent); border-radius: 999px; padding: 2px 9px 2px 7px; white-space: nowrap; }
.tbadge::before { content: attr(data-g); font-size: .9em; }
.tbadge.src { color: var(--muted); background: var(--ice); }
.tbadge.src::before { content: ""; }

/* ---- modern cards (directory, search, bands) ---- */
.cards { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.cards > li { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .15s, box-shadow .15s; }
.cards > li:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.cards > li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tc, var(--royal)); }
.cards > li > a { display: flex; gap: 12px; align-items: center; padding: 12px 14px 12px 18px; text-decoration: none; color: inherit; }
.tile { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 1.15rem; letter-spacing: .02em;
  color: #fff; background: linear-gradient(135deg, var(--tc, var(--royal)), color-mix(in srgb, var(--tc, var(--royal)) 55%, #0b1630)); overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cards .ctext { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cards .cname { font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cards .cmeta { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cards .cbadges { display: flex; gap: 6px; flex-wrap: wrap; }
.cards .bulk-tick, .cards .bulk-label { position: absolute; top: 8px; right: 10px; z-index: 2; }
.cards.big { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 16px; }
.cards.big > li > a { flex-direction: column; align-items: stretch; padding: 0 0 12px; text-align: left; }
.cards.big > li::before { inset: 0 0 auto 0; width: auto; height: 4px; z-index: 1; }
.cards.big .tile { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; font-size: 2rem; }
.cards.big .ctext { padding: 0 12px; }
.cards.big .cname { white-space: normal; }

/* ---- directory landing: type tiles ---- */
.type-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin: 18px 0; }
.type-tile { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; padding: 18px; min-height: 9rem; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 50%, #0b1630)); }
.type-tile h2 { margin: 0 0 4px; font-size: 1.25rem; }
.type-tile h2 a { color: #fff; text-decoration: none; }
.type-tile .glyph { position: absolute; right: 12px; top: 2px; font-size: 4.6rem; opacity: .18; line-height: 1; pointer-events: none; }
.type-tile .count { font-size: .85rem; opacity: .85; }
.type-tile ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.type-tile li a { display: inline-block; background: rgba(255,255,255,.18); color: #fff; text-decoration: none; border-radius: 999px; padding: 3px 10px; font-size: .82rem; }
.type-tile li a:hover { background: rgba(255,255,255,.32); }
.dir-search { display: flex; gap: 8px; flex-wrap: wrap; background: var(--head); border-radius: var(--radius); padding: 14px; margin: 14px 0; }
.dir-search input, .dir-search select { flex: 1 1 11rem; border: 0; border-radius: var(--radius-s); padding: 11px 13px; font: inherit; }
.dir-search button { border: 0; border-radius: var(--radius-s); background: var(--hot); color: #fff; font-weight: 800; padding: 0 22px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { background: var(--ice); color: var(--royal); border-radius: 999px; padding: 3px 11px; font-size: .84rem; font-weight: 700; text-decoration: none; }
.chip.on { background: var(--royal); color: #fff; }

/* ---- personal Home ---- */
.me-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rail { margin: 26px 0; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.rail-head h2 { margin: 0; }
.rail-head a { font-size: .9rem; font-weight: 700; }
.gig-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.gig-cards li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.gig-cards a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; color: inherit; }
.gdate { flex: none; width: 48px; text-align: center; background: var(--hot); color: #fff; border-radius: 10px; padding: 5px 0; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.gdate b { display: block; font-size: 1.35rem; line-height: 1; }
.gtext { display: flex; flex-direction: column; min-width: 0; }
.swipe { list-style: none; margin: 0; padding: 4px 2px 12px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.swipe li { flex: none; width: 10.5rem; scroll-snap-align: start; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 4px solid var(--tc, var(--royal)); }
.swipe a { display: block; text-decoration: none; color: inherit; padding-bottom: 10px; }
.swipe b, .swipe .muted { display: block; padding: 0 10px; }
.swipe b { margin-top: 8px; line-height: 1.2; }
.swipe-pic { display: block; aspect-ratio: 1; background: var(--ice); overflow: hidden; }
.swipe-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swipe-pic .init { display: grid; place-items: center; height: 100%; font-size: 2rem; font-weight: 900; color: var(--tc); }
.news-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.news-cards li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.news-cards a { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-decoration: none; color: inherit; }
.empty-card { background: var(--ice); border-radius: var(--radius); padding: 14px 18px; }

/* ---- admin: grouped nav ---- */
.admin-groups { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.admin-groups a { padding: 8px 16px; border-radius: 999px 999px 0 0; background: var(--ice); font-weight: 800; text-decoration: none; }
.admin-groups a[aria-current] { background: var(--head); color: #fff; }
.admin-sub { display: flex; gap: 4px 14px; flex-wrap: wrap; background: var(--head); border-radius: 0 var(--radius-s) var(--radius-s) var(--radius-s); padding: 9px 14px; margin-bottom: 14px; }
.admin-sub a { color: #fff; text-decoration: none; font-size: .92rem; opacity: .8; }
.admin-sub a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.admin-sub .n { background: var(--red); border-radius: 999px; padding: 0 7px; font-size: .75rem; margin-left: 3px; }
.dir-hero { display: flex; gap: 16px; align-items: center; margin: 4px 0 8px; }
.dir-hero .dh-img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; flex: none; box-shadow: var(--shadow); }
.dir-hero h1 { margin: 6px 0 0; }
.hero-row .avatar img, .pic img { object-fit: cover; }
.profile-hero .banner.plain { background: linear-gradient(120deg, color-mix(in srgb, var(--tc, #2563eb) 70%, #0b1630), #0b1630); }
.profile-hero .hero-text h1 { color: var(--ink); }
.profile-hero { margin-bottom: 18px; }
.hero-edit { align-self: end; }

.type-tiles { align-items: start; }
.type-tile .glyph { top: auto; bottom: 4px; right: 14px; }
.swipe li { border-top: 0; }
.swipe li::before { content: ""; display: block; height: 4px; background: var(--tc, var(--royal)); }

/* ================= social layer: header icons, Home stream, likes, follows ================= */
.head-account { gap: 4px; }
.head-account .hicon, .head-account .havatar { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--head-ink); text-decoration: none; border-left: 0; margin-left: 0; padding-left: 0; transition: background .15s; }
.head-account .hicon:hover { background: rgba(255,255,255,.12); }
.head-account > * + * { border-left: 0; margin-left: 0; padding-left: 0; }
.havatar span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--hot); color: #fff; font-weight: 900; font-size: .8rem; letter-spacing: .02em; }
.hdot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: .68rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--head); }
nav.main .archive-link { color: var(--head-ink); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 6px 14px; margin: 6px 0 6px 8px; font-size: .9rem; }
nav.main .archive-link:hover, nav.main .archive-link[aria-current="page"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
nav.main .archive-link[aria-current="page"] { border-bottom-color: rgba(255,255,255,.5); }
.archive-sub { background: #2b1b14; border-top: 1px solid rgba(255,255,255,.08); overflow-x: auto; scrollbar-width: none; }
.archive-sub ul { display: flex; gap: 2px; list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; white-space: nowrap; align-items: center; }
.archive-sub .as-title { color: #f0c9a8; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 0 12px 0 0; }
.archive-sub a { display: block; padding: 9px 10px; color: #e9d5c3; text-decoration: none; font-size: .9rem; font-weight: 600; border-bottom: 2px solid transparent; }
.archive-sub a:hover, .archive-sub a[aria-current="page"] { color: #fff; border-bottom-color: #f0c9a8; }
@media (max-width: 640px) { nav.main .archive-link { padding: 5px 11px; margin-left: 4px; } }

/* Home */
.home { max-width: 40rem; margin: 0 auto; padding-top: 14px; }
.stories ul { list-style: none; margin: 0 -16px; padding: 4px 16px 10px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.stories ul::-webkit-scrollbar { display: none; }
.story { flex: none; width: 76px; scroll-snap-align: start; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.story > a { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.story b { font-size: .74rem; font-weight: 700; line-height: 1.15; max-width: 76px; }
.ring { width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--tc, var(--royal)), #ff6a3d, #ffd36a, var(--tc, var(--royal))); display: grid; place-items: center; }
.ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); background: var(--ice); display: block; }
.ring.add { background: var(--ice); border: 2px dashed var(--muted); }
.ring.add span { font-size: 1.8rem; font-weight: 300; color: var(--muted); line-height: 1; }
.fbtn.mini { padding: 2px 10px; font-size: .7rem; border-radius: 999px; }
.nudge { margin: 6px 0 14px; }
.nudge a { display: block; padding: 11px 14px; border-radius: var(--radius); background: var(--ice); color: var(--ink); text-decoration: none; font-size: .92rem; border: 1px solid var(--rule); }
.home .rail { margin: 8px 0 16px; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rail-head h2 { margin: 0 0 8px; font-size: 1.1rem; }
.gig-strip { list-style: none; margin: 0 -16px; padding: 2px 16px 8px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.gig-strip li { flex: none; width: 11.5rem; scroll-snap-align: start; }
.gig-strip a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 11px 12px; height: 100%; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--rule); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.gs-date { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 52px; border-radius: 10px; background: var(--hot); color: #fff;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.gs-date b { font-size: 1.35rem; font-weight: 900; }
.gs-band { font-weight: 800; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gs-venue { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work { margin: 8px 0 14px; padding: 12px 16px; }
.work summary { cursor: pointer; }
.composer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); margin: 8px 0 18px; }
.composer .pav { width: 36px; height: 36px; }
.composer input[type=url] { flex: 1 1 14rem; min-width: 0; }
.composer input[type=text] { flex: 1 1 10rem; min-width: 0; }
.composer input { border-radius: 999px; border: 1px solid var(--rule); padding: 9px 14px; background: var(--paper); color: var(--ink); font: inherit; }
.composer button { border-radius: 999px; }

.pav { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: block; background: var(--ice); }
.pav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stream { display: grid; gap: 16px; }
.stream.narrow { max-width: 40rem; }
.post { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.post-who { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.pw-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pw-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.post-media { display: block; position: relative; background: var(--ice); }
.post-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-media.sq { aspect-ratio: 1 / 1; max-height: 34rem; }
.post-media.wide { aspect-ratio: 16 / 9; }
.post-media.wide .yt { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: #000; position: relative; }
.post-media.wide iframe { width: 100%; height: 100%; border: 0; display: block; }
.post-flag { position: absolute; left: 10px; bottom: 10px; background: rgba(11,22,48,.78); color: #fff; font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; backdrop-filter: blur(4px); }
.gig-panel { display: flex; align-items: center; gap: 14px; padding: 18px 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--tc, #e11d74), #1b1030 120%); }
.gp-date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 70px; border-radius: 14px; background: rgba(255,255,255,.16);
  font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.gp-date b { font-size: 1.9rem; font-weight: 900; line-height: 1; }
.gp-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gp-text b { font-size: 1.3rem; line-height: 1.15; font-weight: 900; }
.gp-text span { opacity: .85; font-size: .92rem; }
.link-card { display: flex; flex-direction: column; gap: 2px; padding: 22px 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #0d9488, #1e3a8a); }
.link-card b { font-size: 1.5rem; font-weight: 900; }
.link-card span { opacity: .85; font-size: .85rem; word-break: break-all; }
.link-card i { font-style: normal; font-weight: 800; margin-top: 6px; }
.post-actions { display: flex; align-items: center; gap: 4px; padding: 8px 10px 4px; }
.post-actions .grow { flex: 1; }
.small-btn { padding: 6px 14px; font-size: .85rem; }
.post-body { padding: 2px 14px 14px; }
.post-body h3 { margin: 4px 0 4px; font-size: 1.05rem; line-height: 1.3; }
.post-body h3 a { color: inherit; text-decoration: none; }
.post-body h3 a:hover { text-decoration: underline; }
.post-body p { margin: 0; font-size: .92rem; }
.post-gig .post-actions, .post-act .post-actions { padding-bottom: 12px; }
.post-article { border-left: 4px solid var(--tc, var(--royal)); }
.ibtn { background: transparent; border: 0; color: var(--ink); padding: 6px 8px; border-radius: 10px; display: inline-flex; align-items: center; gap: 5px; box-shadow: none; font-weight: 800; font-size: .85rem; min-height: 40px; min-width: 40px; justify-content: center; }
.ibtn:hover { background: var(--ice); box-shadow: none; }
.ibtn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ibtn.like.on { color: #ef2d56; }
.ibtn.like.on svg { fill: #ef2d56; stroke: #ef2d56; }
.ibtn.pop svg { animation: pop .38s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.sbtn.copied::after { content: "Link copied"; font-size: .75rem; font-weight: 700; color: var(--muted); }
.fbtn { background: transparent; color: var(--royal); border: 1.5px solid var(--royal); border-radius: 999px; padding: 4px 14px; font-size: .82rem; font-stretch: 100%; font-weight: 800; flex: none; min-height: 0; }
.fbtn:hover { background: var(--royal); color: #fff; box-shadow: none; }
.fbtn .f-on, .fbtn.on .f-off { display: none; }
.fbtn.on .f-on { display: inline; }
.fbtn.on { background: var(--ice); color: var(--muted); border-color: var(--rule); }
.fbtn.big { padding: 9px 22px; font-size: 1rem; }
.fbtn.big:not(.on) { background: var(--hot); color: #fff; border-color: transparent; }
.hero-social { display: flex; align-items: center; gap: 6px; margin: 6px 0 4px; }
.stream-end { text-align: center; padding: 18px 0 40px; }
.to-top { background: var(--hot); color: #fff; border: 0; font-size: 1.4rem; box-shadow: var(--shadow-lift); }

/* fan profile and profile editing */
.fan-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin: 14px 0; }
.fan-grid .panel { margin: 0; }
.own-bar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; background: var(--ice); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 14px; margin: 14px 0; }
.own-bar > span { flex: 1 1 14rem; }
.plain-list { margin: 0; padding-left: 1.1rem; }
.form-stack { display: grid; gap: 14px; max-width: 40rem; }
.form-stack label { display: grid; gap: 4px; font-weight: 700; }
.form-stack label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.form-stack input:not([type=checkbox]), .form-stack textarea, .form-row input { font: inherit; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); width: 100%; }
.pills { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--card); font-weight: 700; cursor: pointer; }
.pill input:checked + span { background: var(--royal); color: #fff; border-color: var(--royal); }
.pill input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--royal) 50%, transparent); outline-offset: 2px; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.form-row input { flex: 1 1 14rem; width: auto; }
.likes-list { list-style: none; margin: 8px 0 22px; padding: 0; display: grid; gap: 8px; max-width: 44rem; }
.likes-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.likes-list.toggles li:not(:has(.on)) { opacity: .5; }
.likes-list li.muted { display: block; background: transparent; border-style: dashed; }
.ll-text { display: flex; flex-direction: column; min-width: 0; }
.ll-text b { overflow: hidden; text-overflow: ellipsis; }
.notifs li.is-new { border-left: 4px solid var(--red); }
.newdot { background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 99px; }
form.inline { display: inline; }

/* Directory front page */
.dsec { margin: 26px 0; padding-top: 4px; }
.dsec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 3px solid var(--tc, var(--ink)); margin-bottom: 12px; }
.dsec-head h2 { margin: 0 0 6px; font-size: 1.5rem; }
.dsec .gig-strip { margin: 0 -16px 8px; }
.wide-swipe { list-style: none; display: flex; gap: 12px; overflow-x: auto; margin: 6px -16px 14px; padding: 4px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.wide-swipe > li { flex: none; width: 9.5rem; scroll-snap-align: start; }
.wide-swipe a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; height: 100%; }
.wide-swipe .swipe-pic { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--ice); }
.wide-swipe .swipe-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wide-swipe b { line-height: 1.2; }
@media (min-width: 900px) { .wide-swipe > li { width: 11rem; } }

/* classes that replace inline style="" (the site's security policy blocks inline styles) */
.cards > li.empty { padding: 16px; }
.cards .wrap { white-space: normal; }
.dir-search .dir-town { flex-basis: 7rem; }
.narrow-in { max-width: 10rem; }
.wide-note { width: auto; }
.profile-hero .tape-link { background: var(--tc, var(--tape)); }
.gig-strip li { width: 13rem; }
.gs-venue { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.post-actions { padding-bottom: 8px; }
.post-gig .post-actions, .post-act .post-actions { padding-bottom: 10px; }
.post-body { padding-top: 0; }
@media (max-width: 640px) {
  nav.main .archive-li { display: none; }
  .head-side { gap: 8px; }
  .head-search { display: none; }
}

/* compact Directory header and search (phone first) */
.dir-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0 2px; }
.dir-head h1 { margin: 0; font-size: clamp(1.7rem, 6vw, 2.4rem); }
.dir-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; }
.dir-search > input[name=q] { flex: 1 1 12rem; min-width: 0; }
.dir-more { flex: 1 1 100%; color: #cbd6ea; }
.dir-more summary { cursor: pointer; font-weight: 700; font-size: .88rem; padding: 2px 4px; }
.dir-more-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dir-more-row select, .dir-more-row input { flex: 1 1 10rem; min-width: 0; max-width: 100%; width: 100%; }
.dir-search select { max-width: 100%; }
.wide-swipe > li { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; overflow: visible; }
.wide-swipe > li::before { display: none; }
.wide-swipe a { padding: 0; }
.wide-swipe .tbadge { align-self: flex-start; }
.wide-swipe .swipe-pic { box-shadow: var(--shadow); }
.post-who { flex: 1 1 auto; }
.pw-text { overflow: hidden; }
.pw-text .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* contrast fixes found by the checker */
:root { --t-people: #b45309; }
.soc-whatsapp { background: #0f7a41 !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill input:checked + span { color: #0a0f1c; } }
:root[data-theme="dark"] .pill input:checked + span { color: #0a0f1c; }

/* Directory strips: cards keep their own height; long names are cut to two lines */
.wide-swipe { align-items: flex-start; }
.wide-swipe b, .wide-swipe .muted { padding: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dsec-head { flex-wrap: wrap; row-gap: 0; }
.dsec-head h2 { white-space: nowrap; }
@media (max-width: 640px) {
  .type-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .type-tile { padding: 14px; }
  .type-tile .glyph { display: none; }
  .type-tile h3, .type-tile h2 { font-size: 1.05rem; }
  .type-tile ul li:nth-child(n+4) { display: none; }
}
.wide-swipe, .gig-strip, .stories ul { scroll-padding-left: 16px; }

/* official brand logos on follow and share buttons */
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; display: block; }
.soc { gap: 8px; }
@media (max-width: 640px) {
  .share .soc .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .share a.soc, .share button.soc { padding: 10px 12px; }
  .share .soc .ico { width: 1.3em; height: 1.3em; }
  .share .soc-email { display: inline-flex; }
}

/* social buttons are logos only, everywhere */
.soc .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.soc { position: relative; padding: 10px 12px; }
.soc .ico { width: 1.3em; height: 1.3em; }
.soc.done { background: #16a34a; color: #fff; }

/* phone: nothing may push the page wider than the screen */
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 40rem) {
  .head-row { gap: 8px; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand img { height: 34px; max-width: 38vw; }
  .head-side { gap: 6px; flex: 0 0 auto; }
  .head-account > * + * { margin-left: 4px; padding-left: 4px; border-left: 0; }
  /* socials wrap onto more lines instead of running off the right edge */
  .share { flex-wrap: wrap; overflow: visible; padding: 4px 0 8px; -webkit-mask-image: none; mask-image: none; scroll-snap-type: none; }
  .share .soc-email { display: none; }
  .share-native:not([hidden]) ~ .soc-linkedin, .share-native:not([hidden]) ~ .soc-bluesky { display: inline-flex; }
  .hero-text { min-width: 0; }
  .hero-social { flex-wrap: wrap; }
}

/* sideways strips: grab cursor and desktop arrows (hidden on touch screens, where swiping works) */
.stories ul, .wide-swipe, .gig-strip { cursor: grab; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.stories ul.grabbing, .wide-swipe.grabbing, .gig-strip.grabbing { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.has-arrows { position: relative; }
.row-arrow { position: absolute; top: 38px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 1.4rem; line-height: 1; cursor: pointer; display: none; }
.row-prev { left: 4px; } .row-next { right: 4px; }
@media (hover: hover) and (pointer: fine) { .row-arrow { display: block; } }
.soc-site { background: var(--ink); color: var(--paper); border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---- compact pass: smaller controls, tighter spacing (this block wins over earlier sizes) ---- */
body { font-size: 1rem; line-height: 1.5; }
input[type="search"], input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="date"], input[type="time"], input[type="number"], select, textarea { padding: 6px 11px; font-size: .95rem; }
.head-search input { width: 14rem; padding: 6px 14px; }
button, .btn { padding: 5px 13px; font-size: .9rem; }
.btn.big { padding: 7px 16px; font-size: .95rem; }
.btn.small-btn, .small-btn { padding: 3px 10px; font-size: .82rem; }
.fbtn { padding: 3px 12px; font-size: .8rem; }
.fbtn.big { padding: 5px 16px; font-size: .88rem; }
.fbtn.mini { padding: 1px 8px; font-size: .68rem; }
.ibtn { min-height: 32px; min-width: 32px; padding: 3px 6px; font-size: .8rem; }
.soc, .share a.soc, .share button.soc { padding: 6px 9px; }
.soc .ico { width: 1.1em; height: 1.1em; }
.hero-social { gap: 4px; margin: 4px 0 2px; }
.share { gap: 4px; margin: 6px 0 10px; }
.tape { padding: 3px 9px 3px; }
.hero { padding-top: 18px; gap: 16px; }
@media (max-width: 640px) {
  input[type="search"], input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="date"], input[type="time"], input[type="number"], select, textarea { font-size: 16px; padding: 6px 11px; }
  .share a.soc, .share button.soc { padding: 6px 9px; }
  .share .soc .ico { width: 1.1em; height: 1.1em; }
}

/* archive: one bar only (its own sections replace the main menu while you are in the archive) */
nav.main.archive-mode { background: #2b1b14; }
nav.main.archive-mode .as-title { color: #f0c9a8; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 0 12px 0 0; align-self: center; }
nav.main.archive-mode a { color: #e9d5c3; }
nav.main.archive-mode a:hover, nav.main.archive-mode a[aria-current="page"] { color: #fff; }
nav.main.archive-mode ul { overflow-x: auto; scrollbar-width: none; }
nav.main.archive-mode .archive-back a { color: #fff; font-weight: 800; padding-right: 8px; border-right: 1px solid rgba(255,255,255,.25); margin-right: 4px; }

/* light / dark switch in the header */
.theme-btn { background: transparent; border: 0; color: var(--head-ink); padding: 4px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; }
.theme-btn:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; } :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }

/* phones: the header is full, so the light/dark switch lives in the footer there */
.theme-foot { display: none; }
@media (max-width: 40rem) {
  .head-account .theme-btn { display: none; }
  .theme-foot { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--ink); border: 1px solid var(--rule); border-radius: 99px; padding: 4px 12px; font-size: .85rem; }
  .theme-foot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .theme-foot .i-sun { display: none; }
  :root[data-theme="dark"] .theme-foot .i-sun { display: block; } :root[data-theme="dark"] .theme-foot .i-moon { display: none; }
}
@media (max-width: 40rem) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-foot .i-sun { display: block; } :root:not([data-theme="light"]) .theme-foot .i-moon { display: none; } }
.theme-btn.theme-foot { width: auto; height: auto; min-height: 0; border-radius: 99px; }
@media (max-width: 40rem) { .brand img { height: 30px; max-width: 34vw; } .head-account { gap: 0; } .hicon, .havatar { margin: 0 !important; } }

/* news and reviews: carousel of the newest, compact list, article page */
.admin-add { margin: 0 0 8px; }
.news-rail-wrap { position: relative; margin: 6px 0 14px; }
.news-rail { list-style: none; margin: 0 -16px; padding: 2px 16px 8px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.news-rail::-webkit-scrollbar { display: none; }
.news-rail li { flex: none; width: 210px; scroll-snap-align: start; }
.news-rail a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; height: 100%; padding-bottom: 8px; }
.news-rail a > b, .news-rail a > span.muted { padding: 0 9px; }
.news-rail b { font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nr-img { display: block; aspect-ratio: 16 / 9; background: var(--ice); overflow: hidden; }
.nr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nr-ph { display: flex; flex-direction: column; width: 100%; height: 100%; align-items: center; justify-content: center; gap: 2px; color: #fff; background: #1d3a6e; }
.nr-ph strong { font-weight: 900; font-size: 2.1rem; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.nr-ph span { font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.fresh-item .nr-ph strong { font-size: 1.5rem; }
.ph-0 { background: linear-gradient(135deg, #1d3a6e, #3a6fb5); }
.ph-1 { background: linear-gradient(135deg, #7a1f2b, #d1453b); }
.ph-2 { background: linear-gradient(135deg, #1f5a4a, #3aa17e); }
.ph-3 { background: linear-gradient(135deg, #4a2a6e, #8a55c4); }
.ph-4 { background: linear-gradient(135deg, #7a4a12, #d38a2a); }
.ph-5 { background: linear-gradient(135deg, #1f5a6e, #2f9bb8); }
.ph-6 { background: linear-gradient(135deg, #5a1f5a, #c0457f); }
.ph-7 { background: linear-gradient(135deg, #2a3040, #566178); }
.news-rail-wrap .row-arrow { top: 36%; }
.fresh-item { display: flex; gap: 12px; align-items: flex-start; }
.fresh-item .fi-img { flex: none; width: 120px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--ice); }
.fresh-item .fi-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-img { margin: 8px 0; } .story-img img { width: 100%; height: auto; border-radius: 10px; display: block; }
.story-body p { margin: 0 0 .8em; } .story-actions { margin: 8px 0 0; }
.story-form .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.story-form label { display: block; margin: 0 0 8px; }
.thumb-s { width: 80px; height: 45px; object-fit: cover; border-radius: 6px; vertical-align: middle; }
label.inline { display: inline; }
@media (max-width: 40rem) { .news-rail li { width: 170px; } .fresh-item .fi-img { width: 96px; } }
.story-form .row2 label { display: flex; flex-direction: column; justify-content: flex-end; }

/* ---- compact pass 2: smaller titles, tighter forms, and the page width actually used ---- */
h1 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.15; margin: 0 0 .35em; }
h2 { font-size: 1.2rem; margin-top: 1.1em; margin-bottom: .35em; line-height: 1.2; }
h3 { font-size: 1.02rem; line-height: 1.25; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.05; }
.hero p, .lede { font-size: 1rem; margin-bottom: .8em; }
.hero { padding-top: 12px; gap: 12px; }
body[data-fn] main h1, .landing-main h1 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.profile-hero h1, .hero-text h1 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; margin-bottom: 2px; }
.page-head { padding-bottom: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.page-head > .kinds, .page-head > nav, .page-head > p { flex-basis: 100%; }
main > .tape:first-child { margin-bottom: 2px; }
.panel { padding: 12px 16px; margin: 12px 0; }
.post { padding: 10px 0 12px; }
.claim-box { padding: 8px 12px; margin: 10px 0 4px; }
.list li { padding: 8px 0; }
.list a.title { font-size: 1rem; }

/* controls inside forms: the same small size as everywhere else */
main form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), main form select, main form textarea,
.form-stack input:not([type=checkbox]), .form-stack textarea, .venue-update input:not([type=checkbox]):not([type=radio]):not([type=file]), .venue-update select, .venue-update textarea {
  padding: 6px 11px; font-size: .95rem; line-height: 1.3; }
main form textarea { min-height: 0; }
label { margin: 8px 0 3px; }
.venue-update form label, .form-stack label { margin: 0; }
.pill span, label.chip span { padding: 3px 12px; font-size: .88rem; border-width: 1px; }
.pills, .type-pick.compact { gap: 6px; }
.type-pick { gap: 6px; margin-bottom: 10px; }
.btn-row { gap: 6px; }

/* forms use the width: fields sit side by side, long ones and buttons span the row */
.form-stack, .venue-update:not(.narrow):not(.claim-form) { max-width: none; display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: start; margin-top: 12px; }
.form-stack > :not(label), .venue-update:not(.narrow):not(.claim-form) > :not(label):not(input),
.form-stack > label:has(textarea), .venue-update:not(.narrow):not(.claim-form) > label:has(textarea), .form-stack > label.check { grid-column: 1 / -1; }
.form-stack > p, .venue-update > p { margin: 0; }
.venue-update.narrow, .claim-form { max-width: 40rem; }
.venue-update:not(.narrow) label { display: block; }

/* lists of articles and the like: columns instead of one thin strip */
ul.list.read { max-width: none; display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
ul.list.read li:last-child { border-bottom: 0; }
ul.list.read li { border-bottom: 0; }
ul.list.read.fresh { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.likes-list, .plain-list { max-width: none; }
.stream.narrow { max-width: 44rem; }
@media (max-width: 40rem) {
  h1 { font-size: 1.45rem; }
  .form-stack, .venue-update:not(.narrow):not(.claim-form) { grid-template-columns: 1fr; }
}
.dir-head h1 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.dir-search { padding: 8px; margin: 8px 0; gap: 6px; }
.dir-search input, .dir-search select { padding: 6px 11px; font-size: .95rem; flex: 1 1 9rem; }
.dir-search button { padding: 6px 16px; }
.dir-filters input, .dir-filters select { height: 34px; }
.dir-main h2 { font-size: 1.15rem; }
.dir-main .dir-subs li { padding: 3px 0; font-size: .98rem; }
.hero .search-big input { font-size: 1rem; padding: 7px 12px; }
.news-rail { margin: 0; padding: 2px 0 8px; }
.news-rail li { width: 200px; }
.nr-img { aspect-ratio: 2 / 1; }
.form-stack > label:has(input[name=fav_text]), .form-stack > label:has(input[name=bio]) { grid-column: 1 / -1; }

/* ---- whole-site pass: profile pages, article pages, admin ---- */
.story-page { max-width: 46rem; }
.profile-hero .banner { aspect-ratio: 6 / 1; min-height: 90px; max-height: 190px; }
.hero-row { margin-top: -44px; }
.hero-row .avatar { width: 96px; height: 96px; }
@media (min-width: 52rem) { .hero-row { margin-top: -52px; } .hero-row .avatar { width: 120px; height: 120px; } .hero-edit { margin-top: 62px; } }
.hero-text { padding-top: 48px; }
@media (max-width: 40rem) { .profile-hero .banner { aspect-ratio: 3 / 1; } .hero-text { padding-top: 46px; } .hero-row .avatar { width: 80px; height: 80px; } }
.profile-cols { display: grid; gap: 0 28px; grid-template-columns: 1fr; }
.profile-cols .pc-rest { min-width: 0; }
@media (min-width: 56rem) {
  .profile-cols { grid-template-columns: minmax(0, 1fr) 21rem; grid-template-areas: "facts listen" "rest listen"; align-items: start; }
  .profile-cols > .facts { grid-area: facts; } .profile-cols > .listen { grid-area: listen; margin-top: 8px; } .profile-cols > .pc-rest { grid-area: rest; }
}
.pc-rest .prose, .pc-rest .read, .pc-rest ul.list { max-width: none; }
section.panel.read, section.read { max-width: none; }
.admin-groups a { padding: 3px 12px; font-size: .9rem; }
.admin-groups { margin: 4px 0 0; }
.admin-nav { margin-top: 6px; }
.admin-nav a { padding: 5px 9px; font-size: .88rem; }
.admin-bar { padding: 4px 10px; margin: 6px 0; }
.admin-bar .small-btn { padding: 2px 9px; }
.story-img img { max-height: 24rem; object-fit: cover; }
.swipe li, .wide-swipe > li { width: 8.4rem; }
.swipe b, .wide-swipe b { font-size: .92rem; margin-top: 5px; }
.swipe { gap: 10px; }
main > .tape:first-child + h1 { display: inline-block; margin: 0 0 .3em 10px; vertical-align: middle; }
main > .tape:first-child:has(+ h1) { margin-bottom: 0; }
table { max-width: 100%; }
@media (max-width: 40rem) {
  main table { display: block; overflow-x: auto; }
  .admin-nav { flex-wrap: wrap; }
  .admin-nav a { white-space: normal; }
}
nav.main { overflow-x: auto; scrollbar-width: none; }
nav.main ul.wrap { flex-wrap: nowrap; }
nav.main a { white-space: nowrap; }
@media (max-width: 40rem) { table.menu-table { display: block; overflow-x: auto; max-width: 100%; } table.menu-table th { position: relative; } }

/* ---- slick admin menu + picture edit buttons ---- */
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 14px; padding: 6px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); }
.an-groups { display: inline-flex; padding: 3px; gap: 2px; background: var(--ice); border-radius: 9px; }
.an-groups a { padding: 5px 14px; border-radius: 7px; font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--muted, #5b6b82); }
.an-groups a[aria-current] { background: var(--head, #0b1a3a); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.an-sub { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; min-width: 0; }
.an-sub a { padding: 5px 11px; border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none; color: inherit; }
.an-sub a:hover { background: var(--ice); }
.an-sub a[aria-current] { background: var(--royal, #2563eb); color: #fff; }
.admin-nav .n { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #e53935; color: #fff; font-size: .7rem; font-weight: 800; line-height: 1.5; display: inline-block; }
@media (max-width: 40rem) { .an-sub { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex-basis: 100%; } .an-sub a { white-space: nowrap; } }
.profile-hero .banner { position: relative; }
.hero-row .avatar { position: relative; overflow: visible; }
.hero-row .avatar img { border-radius: 6px; }
.cam { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: rgba(10,18,40,.78); color: #fff; text-decoration: none; border-radius: 999px; font-size: .78rem; font-weight: 700; backdrop-filter: blur(4px); }
.cam .ico { width: 15px; height: 15px; }
.cam:hover { background: var(--royal, #2563eb); }
.cam-banner { right: 10px; bottom: 10px; padding: 5px 11px; }
.cam-avatar { right: -6px; bottom: -6px; width: 30px; height: 30px; justify-content: center; border: 2px solid var(--card); }
@media (max-width: 40rem) { .cam-banner span { display: none; } .cam-banner { padding: 6px; } }
.row-arrow { color: #0b1a3a; }

/* Home feed: full width on computers, still one column on phones */
.home { max-width: 80rem; }
.home .stream { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 16px; align-items: start; }
.home .post-media.sq { max-height: 26rem; }
.home .composer { max-width: 60rem; }
.home .nudge a, .home .work { max-width: 60rem; }
.stories ul, .gig-strip { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; }
@media (max-width: 40rem) { .stories ul, .gig-strip { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; } }
@media (min-width: 64rem) { .gig-strip li { width: 13rem; } .story { width: 84px; } .ring { width: 74px; height: 74px; } }

/* Sideways rows hold a whole number of items, each snapping into its slot, so nothing is cut in half */
.stories ul, .gig-strip, .wide-swipe, .news-rail { --n: 4; --gap: 12px; gap: var(--gap); scroll-snap-type: x mandatory; scroll-padding-left: 22px; }
.stories ul > li, .gig-strip > li, .wide-swipe > li, .news-rail > li { flex: 0 0 calc((100% - var(--gap) * (var(--n) - 1)) / var(--n)); width: auto; min-width: 0; scroll-snap-align: start; }
.wide-swipe, .news-rail { padding-left: 22px; padding-right: 22px; margin-left: -22px; margin-right: -22px; }
.stories ul { --n: 4; } .gig-strip { --n: 1; } .wide-swipe { --n: 2; } .news-rail { --n: 2; }
@media (min-width: 34rem) { .stories ul { --n: 6; } .gig-strip { --n: 2; } .wide-swipe { --n: 4; } .news-rail { --n: 3; } }
@media (min-width: 48rem) { .stories ul { --n: 8; } .gig-strip { --n: 3; } .wide-swipe { --n: 6; } .news-rail { --n: 4; } }
@media (min-width: 64rem) { .stories ul { --n: 10; } .gig-strip { --n: 4; } .wide-swipe { --n: 8; } .news-rail { --n: 5; } }
@media (max-width: 40rem) {
  .wide-swipe, .news-rail { padding-left: 16px; padding-right: 16px; margin-left: -16px; margin-right: -16px; }
  .stories ul, .gig-strip, .wide-swipe, .news-rail { scroll-padding-left: 16px; }
}
.story b { max-width: 100%; }
.news-rail li img, .news-rail li a { max-width: 100%; }

/* Profile header: room between the follow row and the share icons */
.hero-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 4px; }
.profile-hero .share, .hero-text .share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.profile-hero .share .share-label, .hero-text .share .share-label { margin-right: 4px; }
.profile-hero .share a.soc, .profile-hero .share button.soc { margin: 0; }
.soc-row, .socials { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 40rem) { .profile-hero .share, .hero-social { gap: 8px; } }
.stories ul, .gig-strip, .wide-swipe, .news-rail { clip-path: inset(-12px 22px -12px 22px); }
@media (max-width: 40rem) { .stories ul, .gig-strip, .wide-swipe, .news-rail { clip-path: inset(-12px 16px -12px 16px); } }

/* One-page profile editor */
.pe-title { margin: 6px 0; }
.pe-grid { display: grid; gap: 14px; align-items: start; margin-top: 8px; }
@media (min-width: 56rem) { .pe-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.pe-form .panel { padding: 14px 16px; margin: 0 0 14px; }
.pe-form .panel h2 { margin: 0 0 8px; font-size: 1.05rem; }
.pe-stack > .panel:last-child { margin-bottom: 0; }
.pe-fields { display: grid; gap: 8px 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.pe-fields label, .pe-form label { display: grid; gap: 3px; font-size: .84rem; font-weight: 600; }
.pe-fields label.wide { grid-column: 1 / -1; }
.pe-form input[type=text], .pe-form input[type=url], .pe-form select, .pe-form textarea { width: 100%; padding: 7px 10px; font-size: .9rem; }
.pe-form label.inline { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.pe-pics { display: grid; gap: 14px; grid-template-columns: 1fr; }
.pe-lab { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 4px; }
.pe-pics .banner-preview, .pe-stack .banner-preview { width: 100%; max-height: 7.5rem; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 6px; }
.pe-pics .avatar-preview img { width: 5rem; height: 5rem; border-radius: 14px; object-fit: cover; display: block; margin-bottom: 6px; }
.pe-links { display: grid; gap: 6px; }
.pe-link { display: grid !important; grid-template-columns: auto 1fr; gap: 8px !important; align-items: center; }
.pe-link .soc { padding: 8px; pointer-events: none; }
.pe-newtracks { display: grid; gap: 6px; margin-top: 8px; }
.pe-nt { display: grid; gap: 6px; grid-template-columns: 2fr 1fr; }
@media (max-width: 40rem) { .pe-nt { grid-template-columns: 1fr; } }
.pe-save { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 10px 0; background: linear-gradient(to top, var(--paper) 70%, transparent); }
.pe-save button, .pe-save .btn { padding: 8px 18px; }

/* Own links vs share: own links are coloured and labelled; share buttons are small, quiet and grey */
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.hero-links .soc { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.hero-links .soc svg { width: 18px; height: 18px; }
.profile-hero .share { margin: 12px 0 14px; gap: 6px; }
.profile-hero .share a.soc, .profile-hero .share button.soc, .profile-hero .share .share-native { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: transparent !important; color: var(--muted) !important; border: 1px solid var(--rule) !important; }
.profile-hero .share a.soc:hover, .profile-hero .share button.soc:hover { color: var(--ink) !important; border-color: var(--ink) !important; }
.profile-hero .share svg { width: 14px; height: 14px; }

/* Directory type tiles: equal-height rows with no gaps; the big symbol always sits top right */
.type-tiles { align-items: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 48rem) { .type-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .type-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.type-tile { display: flex; flex-direction: column; min-height: 8.5rem; padding: 16px; }
.type-tile .glyph { top: 8px; bottom: auto; right: 12px; font-size: 3.2rem; opacity: .22; display: block; }
.type-tile h3, .type-tile h2 { padding-right: 3rem; margin: 0 0 4px; }
.type-tile ul { margin-top: auto; padding-top: 10px; }
@media (max-width: 40rem) {
  .type-tiles { gap: 10px; }
  .type-tile { padding: 12px; min-height: 7rem; }
  .type-tile .glyph { display: block; font-size: 2.2rem; top: 6px; right: 8px; }
  .type-tile h3, .type-tile h2 { font-size: 1rem; padding-right: 2rem; }
  .type-tile ul li:nth-child(n+4) { display: none; }
}
.hero-links .soc-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 99px; font-size: .8rem; font-weight: 700;
  color: var(--ink); background: var(--card); text-decoration: none; }
.hero-links .soc-pill:hover { border-color: var(--ink); }

/* Main type tape plus quiet secondary type; share tucked into a small popover */
.tbadge.sub { background: var(--card); color: var(--muted); border: 1px solid var(--rule); }
.share-pop { margin: 10px 0 14px; }
.share-pop > summary { list-style: none; cursor: pointer; display: inline-flex; }
.share-pop > summary::-webkit-details-marker { display: none; }
.share-pop[open] > summary { border-color: var(--ink); }
.share-pop .share { margin: 8px 0 0; padding: 8px 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; display: inline-flex; max-width: 100%; }
.no-tracks-s { margin: 0; padding: 10px 14px; border: 1px dashed var(--rule); border-radius: 12px; color: var(--muted); font-size: .9rem; }

/* the logo never crowds the header icons on a phone, whatever shape the uploaded picture is: it shrinks, keeping its shape */
@media (max-width: 40rem) {
  .head-row .brand { flex: 1 1 0; min-width: 0; max-width: 34vw; }
  .head-row .brand img { height: auto; width: auto; min-width: 0; max-width: 100%; max-height: 26px; }
  .head-side { flex: 0 0 auto; }
}

/* gig guide: date chips, month headings, like and tickets on every row */
.gig-when { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 6px 0 10px; }
.gig-when a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 99px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .9rem; }
.gig-when a[aria-current] { background: var(--ink); color: var(--paper, #fff); border-color: var(--ink); }
.gig-month { margin: 20px 0 8px; font-size: 1.1rem; }
.gig-rows li { display: flex; align-items: stretch; gap: 8px; }
.gig-rows .gig-main { flex: 1 1 auto; min-width: 0; }
.gig-rows .gig-act { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
@media (max-width: 40rem) { .gig-rows li { flex-wrap: wrap; } .gig-rows .gig-act { width: 100%; justify-content: flex-end; } }
.gig-rows li { border: 1px solid var(--rule); border-radius: 8px; background: var(--card); padding: 4px 10px; }
.gig-rows li a.gig-main { border: 0; background: none; padding: 6px 0; }
.gig-rows .gig-act a.btn { display: inline-flex; padding: 7px 14px; border: 0; background: var(--red); color: #fff; }
@media (max-width: 40rem) { .head-row .archive-link-s { display: none; } }  /* the menu bar has the Archive link, so the logo keeps the room */
.gig-form label { display: block; margin: 0 0 12px; }
.gig-form input[type=text], .gig-form input[type=url], .gig-form input[type=date], .gig-form input[type=time] { display: block; width: 100%; max-width: 28rem; margin-top: 4px; }

/* Edit buttons sit on the banner, next to Change banner */
.profile-hero .banner { position: relative; }
.banner-tools { position: absolute; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% - 20px); }
.banner-tools .btn { padding: 5px 12px; min-height: 0; font-size: .78rem; font-weight: 700; border-radius: 999px; border: 0; background: rgba(10,18,40,.78); color: #fff; text-decoration: none; backdrop-filter: blur(4px); }
.banner-tools .btn:hover { background: var(--royal, #2563eb); }
.banner-tools .cam-banner { position: static; }
@media (max-width: 40rem) { .banner-tools { right: 6px; bottom: 6px; gap: 4px; } .banner-tools .btn { padding: 5px 10px; } }

/* Listen card at the top right of a profile; compact hero text so like, listen and share are all in view */
.hero-row:has(.hero-listen) { grid-template-columns: auto minmax(0, 1fr) minmax(15rem, 21rem); }
.hero-listen { align-self: start; margin-top: 58px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.hl-h { margin: 0 0 6px; font-size: .95rem; letter-spacing: .02em; }
.hl-tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hl-track { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.hl-title { flex: 1 1 6rem; min-width: 0; font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-play { display: inline-flex; margin-left: auto; }
.hl-play.live { display: block; flex: 0 0 100%; margin: 4px 0 0; }
.hl-play .play-btn { padding: 4px 12px; font-size: .8rem; }
.hl-note { margin: 8px 0 0; font-size: .72rem; line-height: 1.3; }
.hero-listen .no-tracks-s { border: 0; padding: 0; background: none; }
.hero-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hero-text > h1, .hero-text > p { flex: 0 0 100%; margin: 0; }
.hero-text > .hero-social, .hero-text > .hero-links, .hero-text > .share-pop { margin: 4px 0 0; }
.hero-text > .share-pop[open] { flex: 0 0 100%; }
.hero-text > .hero-links { gap: 6px; }
.profile-cols:not(:has(> .listen)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "facts" "rest"; }
@media (max-width: 40rem) {
  .hero-row:has(.hero-listen) { grid-template-columns: auto minmax(0, 1fr); }
  .hero-listen { grid-column: 1 / -1; margin-top: 2px; padding: 8px 10px; }
  .hl-tracks { gap: 4px; }
  .hl-note { display: none; }
}
@media (min-width: 40.01rem) and (max-width: 56rem) { .hero-row:has(.hero-listen) { grid-template-columns: auto minmax(0, 1fr); } .hero-listen { grid-column: 1 / -1; margin-top: 4px; } }
.hl-play { background: none; padding: 0; border-radius: 0; gap: 0; }
.hl-play.live { background: none; }
@media (max-width: 40rem) { .hl-title { flex-basis: 5rem; } }
.banner-note { position: absolute; left: 10px; top: 10px; margin: 0; max-width: calc(100% - 20px); padding: 4px 11px; border-radius: 999px; background: rgba(10,18,40,.78); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.35; backdrop-filter: blur(4px); }
.banner-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 40rem) { .banner-note { left: 6px; top: 6px; font-size: .7rem; padding: 3px 9px; } }

/* gig approval queue: the select stays inside its panel on phones */
.tform select { max-width: 100%; width: 100%; box-sizing: border-box; }

.type-line { margin: .1rem 0 .6rem; }

/* playlist button and the fan playlist */
.plbtn { background: transparent; border: 1px solid var(--line, #cfd6e4); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 800; min-height: 30px; box-shadow: none; white-space: nowrap; }
.plbtn:hover { background: var(--ice); box-shadow: none; }
.plbtn .pl-on, .plbtn.on .pl-off { display: none; }
.plbtn.on .pl-on { display: inline; }
.plbtn.on { border-color: #ef2d56; color: #ef2d56; }
.hl-track .plbtn { margin-left: auto; flex: none; }
.track-head .plbtn { margin-left: auto; }
.playlist .pl-list { margin: 0; padding: 0; list-style: none; }
.playlist .hl-track { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .45rem 0; border-top: 1px solid var(--line, #e3e8f2); }
.playlist .hl-track:first-child { border-top: 0; }
.playlist .hl-title { flex: 1 1 10rem; min-width: 0; }

/* admin: same band? */
.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.match-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px; border: 1px solid var(--line, #dde3ee); border-radius: 12px; }
.match-row { display: flex; align-items: center; gap: 10px; flex: 1 1 18rem; min-width: 0; cursor: pointer; }
.match-pic { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--ice); }
.match-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.match-text { min-width: 0; overflow-wrap: anywhere; }

/* venues: search bar on top, status pills and choices underneath, a picture on every row */
.venue-bar { gap: 6px 8px; margin-bottom: 8px; }
.venue-bar label { font-size: .78rem; margin-bottom: 2px; display: block; }
.venue-bar input, .venue-bar select { padding: 7px 9px; font-size: .95rem; }
.venue-bar button { padding: 7px 14px; }
.vpills { margin: 0 0 8px; gap: 6px; }
.vpills .vstat, .vsel .chip { font-size: .8rem; padding: 3px 10px; }
.vsel { list-style: none; padding: 0; margin: 0 0 10px; }
.vsel .chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.venue-list li > a.vpic-link { display: flex; align-items: center; gap: 10px; }
.vpic { flex: none; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--ice); }
.vpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vtext { min-width: 0; }
.venue-list li .bulk-tick { margin: 0 0 0 4px; }
@media (max-width: 40rem) {
  .venue-bar .vb-name { flex: 1 1 100%; }
  .venue-bar > div:not(.vb-name) { flex: 1 1 40%; }
  .venue-bar > div:last-child { flex: 0 0 auto; }
  .vpills, .vsel { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .vpills > li, .vsel > li { flex: none; }
  .vpic { width: 40px; height: 40px; }
}

/* directory on phones: the type chips slide sideways like on the desktop */
@media (max-width: 40rem) {
  .dsec .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-right: -16px; padding-right: 16px; }
  .dsec .chips > .chip { flex: none; white-space: nowrap; }
}
.dsec .chip-link { border: 1px dashed var(--rule); }

/* gigs: compact top, town box, one-row date strip, UK dates */
.gig-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 4px; }
.gig-top h1 { margin: 0; }
.gig-find { display: flex; gap: 6px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.gig-find input[type=search] { flex: 1 1 10rem; min-width: 0; padding: 7px 10px; font: inherit; border: 1px solid var(--rule); border-radius: 8px; }
.gig-find .small-btn, .gig-dates .small-btn { padding: 6px 12px; font-size: .88rem; }
.gig-all { font-size: .85rem; white-space: nowrap; }
.gig-when { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; list-style: none; padding: 0; margin: 4px 0 8px; }
.gig-when > li { flex: none; }
.gig-when a { font-size: .82rem; padding: 3px 11px; }
.gig-dates { margin: 0 0 8px; font-size: .9rem; }
.gig-dates summary { cursor: pointer; color: var(--muted); }
.gig-dates .filters { margin-top: 6px; }
.gig-dates input[type=text] { width: 8.5rem; max-width: 100%; padding: 6px 8px; font: inherit; border: 1px solid var(--rule); border-radius: 6px; }
@media (max-width: 40rem) { .gig-month { margin: 12px 0 6px; } .gig-rows .btn.small-btn { padding: 4px 9px; font-size: .8rem; } }

/* round 2: venues search row, lighter and tighter directory search */
.venue-bar .vb-name { display: flex; gap: 6px; flex: 1 1 100%; }
.venue-bar .vb-name input { flex: 1; min-width: 0; }
.venue-bar > div:not(.vb-name) { flex: 1 1 40%; }
.venue-bar > div:last-child { flex: 1 1 40%; }
.venue-bar select { width: 100%; }
.page-head { margin-bottom: 6px; }
.dir-search { background: var(--card); border: 1px solid var(--rule); box-shadow: none; padding: 8px; margin: 6px 0 4px; }
.dir-search input, .dir-search select { background: var(--paper, #f4f6fb); border: 1px solid var(--rule); }
.dir-search .dir-more summary { color: var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer; padding: 4px 2px 0; }
.dir-head { margin-bottom: 0; }
.dir-head + .dir-search + .dsec, .dir-search + .dsec { margin-top: 10px; }
.dsec { margin-top: 12px; }
.dir-search .dir-more{color:var(--ink)}
.type-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 12px; }
.type-banner { border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px; }
.type-banner h3 { margin: 0; font-size: 1rem; }
.type-banner input[type=file] { max-width: 100%; font-size: .85rem; }
.showbox { display: flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--muted); margin: -4px 0 6px; }
.show-parts .showbox { margin: 4px 0; color: inherit; }
.show-parts { border: 1px dashed var(--rule); border-radius: 10px; padding: 8px 12px; }

/* round 3: tidy "Show on my profile" ticks and notification ticks; admin overview; menu bubble */
.form-stack label.showbox, label.showbox { display: flex; flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; font-size: .85rem; font-weight: 600; color: var(--muted); margin: -6px 0 2px; }
.form-stack label.showbox input { width: auto; margin: 0; }
.form-stack fieldset.show-parts { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.form-stack fieldset.show-parts legend { font-weight: 700; }
.form-stack fieldset.show-parts label.showbox { margin: 0; color: inherit; }
.todo-grid { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 10px; }
.todo-grid li { border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.todo-grid li > a, .stat-grid li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; text-decoration: none; color: inherit; }
.todo-n { font-size: 1.6rem; font-weight: 900; min-width: 2ch; text-align: center; }
.todo-grid li.has { border-color: var(--red, #e53935); }
.todo-grid li.has .todo-n { color: var(--red, #e53935); }
.bars { width: 100%; height: 5rem; display: block; margin: 8px 0; }
.bars rect { fill: var(--royal, #2563eb); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 18px; }
.n.bubble, .head-nav .n, nav li > a > .n { background: #e53935; color: #fff; border-radius: 999px; padding: 0 7px; font-size: .72rem; font-weight: 800; line-height: 1.5; display: inline-block; }
details.how { margin: 8px 0 12px; padding: 8px 12px; border: 1px dashed var(--rule); border-radius: 10px; }
details.how summary { cursor: pointer; font-weight: 700; }
details.how ol { margin: 8px 0 8px 1.2rem; padding: 0; display: grid; gap: 6px; }
.pic-hint { display: block; margin: 4px 0 6px; font-weight: 400; }

/* section accent colours (set in Admin > Backdrops, served from /sections.css as --sec) */
body[data-sec] .tape { background: var(--sec, var(--tape)); color: #fff; }
body[data-sec] .tabs a[aria-current="page"], body[data-sec] .gig-when a[aria-current] { border-bottom-color: var(--sec, currentColor); }
body[data-sec] .gig-when a[aria-current] { background: var(--sec, var(--ink)); border-color: var(--sec, var(--ink)); color: #fff; }
body[data-sec] .gig-month { border-left: 4px solid var(--sec, transparent); padding-left: 8px; }
.accent-form { margin: 8px 0; }
.accent-form input[type=color] { width: 3rem; height: 2.2rem; padding: 0; border: 1px solid var(--rule); border-radius: 8px; background: none; }

/* "New" marker on stream items, and the Only new switch */
article.post { position: relative; }
.new-pill { position: absolute; top: 8px; right: 10px; z-index: 2; background: var(--red, #df2c21); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; pointer-events: none; }
.stream-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 10px; }

/* tour access cards */
.access-form .acc-card{margin:.6rem 0}
.access-form .acc-card h2{font-size:1.05rem;margin:0 0 .4rem}
.access-form select{width:100%;max-width:26rem}
.acc-dates{margin-top:.8rem}
.role-help{padding-left:1.1rem;margin:.4rem 0}
.role-help li{margin:.2rem 0}

/* help button and window */
.help-fab { position: fixed; left: 12px; bottom: 12px; z-index: 40; min-height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--rule, #cbd5e1); background: var(--ink, #0f172a); color: var(--paper, #fff); font-size: .85rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
.help-fab .n, .tabs .n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #ef3b2d; color: #fff; font-size: .72rem; text-align: center; }
.help-dialog { border: 0; border-radius: 14px; padding: 0; width: min(24rem, calc(100vw - 24px)); max-height: 82vh; overflow: auto; background: var(--card, #fff); color: var(--ink, #0f172a); }
.help-dialog::backdrop { background: rgba(8,14,30,.55); }
.helpp { padding: 14px 16px 16px; }
.helpp-head { display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; margin-bottom: 8px; }
.helpp h3 { font-size: .95rem; margin: 16px 0 6px; }
.helpp-steps, .helpp-faq { list-style: none; margin: 0; padding: 0; }
.helpp-steps li, .helpp-faq li { padding: 7px 0; border-bottom: 1px solid var(--rule, #e2e8f0); display: flex; flex-direction: column; gap: 2px; }
.helpp-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0 0; font-weight: 700; }
.help-search { display: flex; gap: 8px; margin: 10px 0; }
.help-search input { flex: 1; min-width: 0; }
.faq-item { border: 1px solid var(--rule, #e2e8f0); border-radius: 10px; padding: 10px 14px; margin: 8px 0; background: var(--card, #fff); }
.faq-item summary { font-weight: 800; cursor: pointer; }
.faq-item .notes { margin-top: 8px; }
.guide { list-style: none; padding: 0; margin: 12px 0; }
.guide-step.done { opacity: .75; }
.gs-mark { display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--rule, #e2e8f0); font-weight: 800; margin-right: 6px; }
.guide-step.done .gs-mark { background: #1f9d63; color: #fff; }
.thread .msg { margin: 10px 0; }
.thread .msg.us { border-left: 4px solid #ef3b2d; }
@media print { .help-fab, .help-dialog { display: none !important; } }

@media (max-width: 600px) { .help-fab { min-height: 32px; padding: 0 10px; font-size: .8rem; opacity: .92; } }

/* RSVP */
.rsvp-list { list-style: none; margin: 8px 0; padding: 0; }
.rsvp-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--rule); }
.rsvp-list select { max-width: 100%; }
.rsvp-list details { flex-basis: 100%; }
.pill.rsvp-attending { background: #1f9d63; color: #fff; }
.pill.rsvp-maybe { background: #e0a100; color: #1a1300; }
.pill.rsvp-no { background: #b3261e; color: #fff; }
.pill.rsvp-pending { background: var(--rule); color: var(--ink); }

/* admin bar: group buttons on top, the section's links underneath, in the same bar */
.admin-nav .an-groups { flex-wrap: wrap; }
.admin-nav .an-sub { flex-basis: 100%; flex: 1 1 100%; border-top: 1px solid var(--rule); padding-top: 8px; margin-top: 2px; }
.pager { display: flex; gap: 14px; align-items: center; }
.growth { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.growth span { flex: 1; background: var(--royal, #2563eb); border-radius: 2px 2px 0 0; min-height: 2px; }

/* fan profile: About and Into are wide, the rest are small cards with a capped list */
.fan-wide { display: grid; gap: 14px; margin: 14px 0; }
.fan-wide .panel { margin: 0; }
.fan-mini { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); margin: 14px 0; }
.fan-mini .panel { margin: 0; padding: 10px 12px; font-size: .9rem; max-height: 14rem; overflow: hidden; }
.fan-mini .panel h2 { font-size: 1rem; margin: 0 0 6px; }
.fan-mini .chip { font-size: .8rem; }

/* front page: coming up */
.lp-gigs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.lp-gigs a { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 14px; color: var(--ink); text-decoration: none; }
.lp-gigs a:hover { border-color: var(--ink); }
.lp-gig-date { min-width: 7.5em; }
.lp-gig-act { font-weight: 700; }
.lp-old { padding: 24px 16px 8px; }

/* admin: Site page, compact */
.site-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 12px 0; }
@media (min-width: 52rem) { .site-grid { grid-template-columns: 1fr 1fr; } .site-grid.three { grid-template-columns: repeat(3, 1fr); } }
.panel.mini { padding: 12px 14px; margin: 0; }
.panel.mini h2 { font-size: 1.15rem; margin: 0 0 8px; }
.panel.mini h3 { font-size: 1rem; margin: 0 0 6px; }
.panel.mini label { display: block; font-size: .85rem; margin: 6px 0 2px; }
.panel.mini p { margin: 6px 0; }
h2.sect { font-size: 1.15rem; margin: 18px 0 6px; }
.vid-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.vid-thumb { width: 150px; flex: none; }
.vid-empty { height: 100px; display: grid; place-items: center; border: 1px dashed var(--rule); border-radius: 8px; color: var(--muted); font-size: .85rem; }
.vid-row .grow { flex: 1 1 220px; }
.follow-grid, .text-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .follow-grid { grid-template-columns: 1fr 1fr; } .text-grid { grid-template-columns: 1fr 1fr 1fr; } }
.upload-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.upload-row input[type=file] { flex: 1 1 150px; min-width: 0; font-size: .85rem; }
.logo-preview.small { min-height: 0; padding: 8px; }
.logo-preview.small img { max-height: 40px; width: auto; }
.banner-preview.small { max-height: 70px; width: 100%; object-fit: cover; border-radius: 6px; }
.banner-preview.small.empty { min-height: 40px; display: grid; place-items: center; font-size: .85rem; color: var(--muted); }
.plain-list.tight li { margin: 3px 0; }
.quick-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.quick-links a { display: block; padding: 5px 10px; border: 1px solid var(--rule); border-radius: 999px; font-size: .88rem; text-decoration: none; color: var(--ink); background: var(--paper); }
.quick-links a:hover { border-color: var(--ink); }
details.fold { margin: 12px 0; }
details.fold > summary { cursor: pointer; }
.type-banners { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 8px; }

.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.checks li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: .92rem; }
.chk-dot { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; font-size: .8rem; font-weight: 800; flex: none; background: #1f8f4e; color: #fff; }
.chk-warn .chk-dot { background: #c98a00; }
.chk-todo .chk-dot { background: #c0392b; }
details.setup { margin: 12px 0; }

.pending-pill { background: #c98a00; color: #fff; }
.share-rules { margin: 4px 0 12px; }
.share-rules summary { cursor: pointer; color: var(--muted); }
.share-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.share-actions select { font-size: .85rem; max-width: 11em; }
ul.shares li { align-items: flex-start; gap: 10px; flex-wrap: wrap; }

.scrollbox { max-height: 15rem; overflow: auto; border: 1.5px solid var(--rule); border-radius: 6px; padding: 8px 12px; margin: 6px 0 14px; background: var(--card, transparent); }
.scrollbox ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; }
ul.scrollbox { padding-left: 12px; list-style: none; }
.scrollbox:focus-visible { outline: 2px solid var(--accent, #c00); }

.gi { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; flex: none; }
.feed-tiles li { align-items: center; }
.feed-tiles .gi { width: 1.7rem; height: 1.7rem; opacity: .75; }
.feed-tiles li.ok { border-color: #2e9d57; } .feed-tiles li.ok .gi { color: #2e9d57; opacity: 1; }
.feed-tiles li.has .gi { color: var(--red, #e53935); opacity: 1; }
.feed-tiles .todo-n { font-size: 1.5rem; }
.feed-bar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.feed-bar form { display: flex; gap: 8px; align-items: center; margin: 0; }
.feed-run progress { width: 12rem; max-width: 100%; vertical-align: middle; margin: 0 8px; }
details.fold > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style-position: inside; }
details.fold > summary .muted { margin-left: auto; }
ul.town-bars { list-style: none; padding: 8px 12px; max-height: 18rem; }
.town-bars li { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr 3.2ch; gap: 10px; align-items: center; padding: 2px 0; font-size: .9rem; }
.town-bars .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.town-bars .tb { background: var(--rule); border-radius: 4px; height: .6rem; overflow: hidden; }
.town-bars .fillbar { display: block; height: 100%; background: var(--accent, #c00); border-radius: 4px; }
.town-bars b { text-align: right; }
.fillbar.w5 { width: 5%; }
.fillbar.w10 { width: 10%; }
.fillbar.w15 { width: 15%; }
.fillbar.w20 { width: 20%; }
.fillbar.w25 { width: 25%; }
.fillbar.w30 { width: 30%; }
.fillbar.w35 { width: 35%; }
.fillbar.w40 { width: 40%; }
.fillbar.w45 { width: 45%; }
.fillbar.w50 { width: 50%; }
.fillbar.w55 { width: 55%; }
.fillbar.w60 { width: 60%; }
.fillbar.w65 { width: 65%; }
.fillbar.w70 { width: 70%; }
.fillbar.w75 { width: 75%; }
.fillbar.w80 { width: 80%; }
.fillbar.w85 { width: 85%; }
.fillbar.w90 { width: 90%; }
.fillbar.w95 { width: 95%; }
.fillbar.w100 { width: 100%; }
.feed-tiles { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
@media (max-width: 600px) { .feed-tiles { grid-template-columns: 1fr 1fr; } .feed-tiles li { padding: 8px; gap: 6px; } .feed-tiles .gi { width: 1.3rem; height: 1.3rem; } .feed-tiles .todo-n { font-size: 1.25rem; } }

/* admin bar: icons, tighter */
.admin-nav { gap: 4px 10px; margin: 4px 0 8px; padding: 4px 6px; }
.an-groups a { padding: 4px 11px; display: inline-flex; align-items: center; gap: 6px; }
.an-sub a { padding: 3px 9px; display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; }
.admin-nav .ni { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .85; }
.admin-nav .an-sub { padding-top: 5px; }
@media (max-width: 40rem) { .an-groups a span { display: none; } .an-groups a[aria-current] span { display: inline; } }
/* admin pages: smaller heading, tighter panels */
main > .tape + h1 { display: inline-block; font-size: 1.35rem; margin: 0 0 4px 8px; vertical-align: middle; }
.site-grid { gap: 8px; margin: 8px 0; }
.panel.mini { padding: 9px 11px; }
.panel.mini h2 { font-size: 1rem; margin: 0 0 5px; display: flex; align-items: center; gap: 6px; }
.panel.mini label { margin: 4px 0 1px; font-size: .8rem; }
.panel.mini .muted.small, .panel.mini p.small { font-size: .78rem; }
.panel.mini input[type=text], .panel.mini input[type=url], .panel.mini input:not([type]) { padding: 5px 8px; }
.panel.mini h2 .gi, .panel h2 .gi { width: 1.1em; height: 1.1em; opacity: .75; }
.gi { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; flex: none; }

/* profile edit and settings: compact, icons, folds */
.me-top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 6px 0 10px; position: relative; }
.type-line { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 12px; border: 2px solid var(--ink, #0f172a); border-radius: 10px; background: var(--card); font-size: .95rem; }
.type-line .gi { width: 1.3em; height: 1.3em; }
.type-change { text-decoration: none; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; font-weight: 700; }
details.pop { position: relative; }
details.pop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); font-weight: 700; font-size: .9rem; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop[open] > summary { background: var(--ink); color: var(--paper); }
details.pop .pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(21rem, 92vw); background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: grid; gap: 8px; }
.compact-edit { padding: 12px 14px; gap: 6px 16px; margin-top: 4px; }
.compact-edit label.showbox { font-weight: 500; font-size: .8rem; margin-top: -4px; }
.compact-edit textarea { min-height: 3.2rem; }
details.fold.panel, details.fold.sub { padding: 8px 12px; margin: 8px 0; }
details.fold.sub { border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
details.fold > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; }
details.fold[open] > summary { margin-bottom: 8px; }
.fold-form label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 4px 0; }
.ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2px 14px; }
.compact-panel { padding: 10px 14px; }
.compact-panel h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.1rem; margin: 0 0 6px; }
.compact-panel h2 .muted { font-weight: 400; margin-left: auto; }
.btn-row .gi { vertical-align: -.2em; }
.btn-row form.inline { display: inline; }
.icon-btn { background: none; border: 1px solid var(--rule); border-radius: 8px; padding: 4px 6px; cursor: pointer; color: var(--muted, #5b6b82); line-height: 1; }
.icon-btn:hover { color: var(--red, #e53935); border-color: currentColor; }
.msg-list li { align-items: center; gap: 8px; }

.compact-edit .fld { display: grid; gap: 3px; align-content: start; min-width: 0; }
.compact-edit .fld > label:first-child { display: grid; gap: 3px; }
.compact-edit .fld.wide, .compact-edit details.wide { grid-column: 1 / -1; }
.compact-edit .fld .showbox { margin: 0; color: var(--muted, #5b6b82); }
.compact-edit fieldset.pills { margin: 0; padding: 0; border: 0; }
.compact-edit fieldset.pills legend { font-weight: 700; margin-bottom: 4px; }
.form-stack.compact-edit > .fld:not(.wide) { grid-column: auto; }
.form-stack.compact-edit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.dt-fmt { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 8px 12px; border: 1px solid var(--rule); border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.dt-fmt legend { padding: 0 6px; }

.msg-list li { position: relative; }
.msg-list li > .ll-text a::after { content: ""; position: absolute; inset: 0; }
.msg-list li form, .msg-list li .newdot { position: relative; z-index: 2; }
.msg-list li:hover { background: var(--ice, rgba(127,127,127,.08)); }
.pickrow { border: 1px solid var(--rule); border-radius: 10px; padding: 6px 10px; margin: 8px 0; max-height: 14rem; overflow: auto; }
.pickrow label.check { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.share-find { max-width: 26rem; margin: 8px 0; }
.soc-ukb { background: var(--royal, #2563eb); color: #fff; }

/* admin accounts: compact latest sign-ups */
.su-panel { padding: 10px 14px; }
.su-panel h2 { margin: 0 0 6px; font-size: 1.05rem; }
.su-list { list-style: none; margin: 0; padding: 0; }
.su-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 4px 0; border-top: 1px solid var(--rule); font-size: .88rem; }
.su-row:first-child { border-top: 0; }
.su-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-tag { font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.su-tag.ok { background: #1f9d63; color: #fff; }
.su-tag.wait { background: #e0a100; color: #1a1300; }
.su-tag.off { background: #b3261e; color: #fff; }
@media (max-width: 560px) { .su-row { grid-template-columns: 1fr auto; } .su-type { display: none; } }

/* gig guide: two columns, then three on big screens */
@media (min-width: 46rem) { .gig-cards.gig-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .gig-cards.gig-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 46rem) {
  .gig-rows li { flex-wrap: nowrap; }
  .gig-rows .gig-act { width: auto; }
  .gig-rows .gig-main > span:last-child { min-width: 0; }
  .gig-rows .gig-main b, .gig-rows .gig-main .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* admin accounts: compact full list */
.track-admin.acct-compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 8px; }
.acct-compact > li { display: block; padding: 6px 10px; font-size: .88rem; }
.acct-compact details > summary { cursor: pointer; font-size: .8rem; color: var(--muted); }
.acct-compact form { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.roles-clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acct-fold { margin: 8px 0; }
.acct-fold > summary { cursor: pointer; font-weight: 700; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); display: inline-block; }

/* track plays and stars */
.tstat { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.tplays b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tstars { display: inline-flex; }
.tstar { background: none; border: 0; padding: 0 1px; font-size: 1rem; line-height: 1; color: var(--rule); cursor: pointer; }
.tstar.avg { color: #d9b36a; }
.tstar.on { color: #e0a100; }
.tstar:hover, .tstar:focus-visible { color: #e0a100; }

/* daily article on the front page and its own page */
.lp-daily figcaption { margin-top: 8px; font-size: .95rem; }
.da-img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); }

/* ---- Player card: dark, compact, round play buttons (replaces the earlier light card) ---- */
.hero-listen { background: linear-gradient(160deg, #0f1a33 0%, #1c2c57 100%); border: 0; border-radius: 14px; padding: 0; color: #fff; box-shadow: 0 6px 20px rgba(10, 18, 44, .22); }
.hl-card { padding: 9px 11px 8px; }
.hero-listen .hl-h { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #cbd6f0; }
.hl-h .hl-n { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; color: #8ea0c6; }
.hero-listen .hl-tracks { gap: 0; }
.hero-listen .hl-track { display: flex; flex-wrap: wrap; align-items: center; gap: 0 9px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.hero-listen .hl-track:first-child { border-top: 0; }
.hero-listen .hl-play, .hero-listen .hl-open { order: -1; flex: none; display: inline-flex; margin: 0; }
.hero-listen .hl-play.live { order: 5; flex: 0 0 100%; display: block; margin: 6px 0 2px; }
.hero-listen .play-btn, .hero-listen .hl-open { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 0; box-shadow: none; }
.hero-listen .play-btn .pb-txt { display: none; }
.hero-listen .play-btn .tri, .hero-listen .hl-open .tri { border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.hero-listen .hl-open { background: rgba(255, 255, 255, .16); text-decoration: none; }
.hero-listen .hl-meta { flex: 1 1 0; min-width: 0; display: grid; gap: 1px; }
.hero-listen .hl-title { flex: none; font-size: .86rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; font-size: .72rem; color: #9fb0d4; min-width: 0; }
.hero-listen .outlet { font-size: .66rem; padding: 1px 7px; background: rgba(255, 255, 255, .14); color: #dbe4fa; letter-spacing: .02em; }
.hero-listen .tstat { gap: 6px; color: #9fb0d4; font-size: .72rem; }
.hero-listen .tplays b { color: #fff; }
.hero-listen .tstar { font-size: .85rem; color: rgba(255, 255, 255, .26); padding: 0; }
.hero-listen .tstar.avg { color: #c9a24d; }
.hero-listen .tstar.on, .hero-listen .tstar:hover { color: #ffc83d; }
.hero-listen .plbtn { flex: none; background: rgba(255, 255, 255, .1); border: 0; color: #fff; min-height: 26px; padding: 0 9px; font-size: .7rem; font-weight: 700; }
.hero-listen .plbtn:hover { background: rgba(255, 255, 255, .2); }
.hero-listen .plbtn.on { background: rgba(239, 45, 86, .25); color: #ff8fa8; }
.hero-listen .hl-note { margin: 6px 0 0; font-size: .66rem; line-height: 1.3; color: #7f90b8; }
.hero-listen .hl-note a, .hero-listen .no-tracks-s a { color: #cbd6f0; }
.hero-listen .no-tracks-s { color: #cbd6f0; font-size: .85rem; margin: 0; }
/* tidy the follow / find-them / share rows */
.hero-text .share-pop { display: inline-block; margin-top: 8px; }
.hero-links .share-label { font-size: .7rem; letter-spacing: .08em; color: var(--muted); }

/* ---- Profile switcher (header) and inbox profile tabs ---- */
.prof-sw { position: relative; display: inline-block; }
.prof-sw > summary { list-style: none; cursor: pointer; }
.prof-sw > summary::-webkit-details-marker { display: none; }
.prof-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: min(19rem, 88vw); background: var(--card); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 10px 28px rgba(10, 18, 44, .22); padding: 6px; display: grid; gap: 2px; }
.prof-menu a { text-decoration: none; color: inherit; }
.prof-menu > a, .prof-row > a:first-child { display: grid; gap: 0; padding: 7px 9px; border-radius: 8px; }
.prof-menu > a:hover, .prof-row > a:first-child:hover { background: var(--ice); }
.prof-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 10px; border-top: 1px solid var(--rule); padding-right: 6px; }
.prof-row b, .prof-menu > a b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.prof-row > a.small { font-weight: 700; color: var(--accent, #2a5bd7); font-size: .8rem; }
.prof-menu .prof-new { border-top: 1px solid var(--rule); font-weight: 800; font-size: .85rem; color: var(--accent, #2a5bd7); }
.msg-n { display: inline-block; min-width: 1.2em; padding: 0 5px; border-radius: 99px; background: #ef2d56; color: #fff; font-size: .7rem; font-weight: 800; text-align: center; line-height: 1.5; }
.msg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.msg-tabs a { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--rule); font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.msg-tabs a[aria-current] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.msg-to { font-weight: 700; color: var(--ink); }

/* ---- "I was there" one-tap button ---- */
.wtbtn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 800; font-size: .85rem; box-shadow: none; }
.wtbtn:hover { background: var(--ice); box-shadow: none; }
.wtbtn .wt-on, .wtbtn.on .wt-off { display: none; }
.wtbtn.on .wt-on { display: inline; }
.wtbtn.on { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.gig-was { margin: 10px 0; }

/* ---- Edit profile: music and links together, compact ---- */
.pe-ml h2 { margin: 0 0 6px; }
.pe-ml h3 { margin: 0 0 4px; font-size: .9rem; }
.pe-ml-grid { display: grid; gap: 14px 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .pe-ml-grid:not(.one) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.tk-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.tk { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-top: 1px solid var(--rule); min-width: 0; }
.tk:first-child { border-top: 0; }
.tk-mv { display: inline-flex; flex: none; }
.tk-b { width: 26px; height: 26px; padding: 0; line-height: 1; border: 0; background: transparent; color: var(--muted, #667); font-size: .7rem; box-shadow: none; border-radius: 6px; }
.tk-b:hover { background: var(--ice); color: var(--ink); box-shadow: none; }
.tk-t { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; font-weight: 600; }
.tk-x { flex: none; white-space: nowrap; }
.tk .outlet { flex: none; font-size: .66rem; padding: 1px 7px; }
.pe-links2 { display: grid; gap: 6px 10px; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
.pe-link2 { display: grid !important; grid-template-columns: 30px minmax(0, 1fr); gap: 6px !important; align-items: center; }
.pe-link2 .soc { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; pointer-events: none; }
.pe-link2 .soc svg { width: 16px; height: 16px; }
.pe-link2 input { padding: 5px 8px; font-size: .84rem; }
.pe-ml .pe-newtracks { gap: 5px; margin-top: 4px; }
.pe-ml .pe-nt { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 6px; }
.pe-ml .pe-nt input { padding: 5px 8px; font-size: .84rem; }
@media (max-width: 40rem) { .pe-ml .pe-nt { grid-template-columns: minmax(0, 1fr); } }
.pe-form label.tk-x { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; font-weight: 600; }
.pe-ml h3 .muted { font-weight: 500; }
.pe-form .tk input[type=checkbox] { width: auto; margin: 0; }
@media (max-width: 40rem) {
  .pe-ml .pe-nt { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .pe-links2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe-link2 { grid-template-columns: 26px minmax(0, 1fr); }
  .pe-link2 .soc { width: 26px; height: 26px; }
}

/* ---- Profiles on a profile (labels, managers, venues) ---- */
.roster-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.roster-list li { padding: 5px 12px; border: 1px solid var(--rule); border-radius: 99px; background: var(--card); font-weight: 700; font-size: .9rem; }
.roster-list a { text-decoration: none; }
.rs-f { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.rs-search { display: flex; gap: 8px; margin: 6px 0 10px; }
.rs-search input { flex: 1; min-width: 0; padding: 7px 10px; }

/* ---- Track card in the home stream ---- */
.trk-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(160deg, #0f1a33, #1c2c57); color: #fff; border-radius: 12px; margin: 0 14px; flex-wrap: wrap; }
.trk-card .pt-text { display: grid; min-width: 0; flex: 1 1 8rem; }
.trk-card .pt-text b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-card .pt-text .muted { color: #9fb0d4; }
.trk-card .tr-play { display: inline-flex; flex: none; order: -1; background: none; padding: 0; }
.trk-card .tr-play.live { order: 5; flex: 0 0 100%; display: block; }
.trk-card .play-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; justify-content: center; gap: 0; font-size: 0; }
.trk-card .play-btn .tri { margin-left: 3px; border-left-width: 12px; }

/* ---- + Add / claim button and page ---- */
.add-btn { white-space: nowrap; }
.page-head .add-btn { margin-left: auto; align-self: center; }
.add-results li { flex-wrap: wrap; gap: 6px 10px; }
.add-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0; }
.add-choice .btn { flex: none; }

/* ---- Settings page: email by the title, calendar box at the top ---- */
.set-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 6px; }
.set-head h2 { margin: 0; }
.acct-email { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 5px 6px 5px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); }
.acct-email b { font-size: 1rem; overflow-wrap: anywhere; }
.cal-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-left: 5px solid var(--red, #e53935); }
.cal-top .grow { flex: 1 1 14rem; display: grid; gap: 2px; }
.cal-top .gi { width: 1.7rem; height: 1.7rem; }

/* ---- Little triangles on every fold-out so it's obvious they open (menus and button-style pop-downs are left alone) ---- */
details:not(.pop):not(.prof-sw):not(.share-pop):not(.archive-menu) > summary::before { content: "\25B8"; display: inline-block; flex: none; width: 1em; margin-right: 2px; color: var(--red, #e53935); font-size: 1.05em; line-height: 1; transition: transform .15s; }
details[open]:not(.pop):not(.prof-sw):not(.share-pop):not(.archive-menu) > summary::before { transform: rotate(90deg); }
details:not(.pop):not(.prof-sw):not(.share-pop):not(.archive-menu) > summary { list-style: none; cursor: pointer; }
details:not(.pop):not(.prof-sw):not(.share-pop):not(.archive-menu) > summary::-webkit-details-marker { display: none; }
details.pop > summary::after { content: "\25BE"; font-size: .9em; margin-left: 2px; }
details.pop[open] > summary::after { content: "\25B4"; }

.trk-under { margin: 8px 14px 0; }
.tk .dead, .tk-dead { color: #c0392b; font-weight: 700; }

/* ---- Events and walls ---- */
.ev-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.ev-list a { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); text-decoration: none; color: var(--ink); }
.ev-list a:hover { border-color: var(--ink); }
.ev-list .gs-date { flex: none; min-width: 4.6rem; display: grid; text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.ev-list .gs-date b { font-size: 1.3rem; color: var(--ink); line-height: 1; }
.ev-text { display: grid; min-width: 0; }
.ev-text b { overflow: hidden; text-overflow: ellipsis; }
.ev-acts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.wall h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.wall-form textarea { width: 100%; box-sizing: border-box; }
.wall-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.wall-list li { padding: 8px 12px; border-left: 4px solid var(--red, #e53935); background: var(--paper); border-radius: 0 10px 10px 0; }
.wall-body { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.wall-by { margin: 2px 0 0; }
.wall-by form { display: inline; margin-left: 8px; }
.sg-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 8px 10px; border: 1px dashed var(--rule); border-radius: 10px; }
.sg-row .sg-name { flex: 1 1 12rem; display: grid; }
.sg-row input[type=text] { flex: 2 1 14rem; min-width: 0; }
.cm-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cm-row input[type=text] { flex: 1 1 14rem; min-width: 0; }
.post-event .gig-panel { background: linear-gradient(160deg, #2a1236, #5a1d4a); color: #fff; }

.h-tape .tape { vertical-align: middle; margin-left: 8px; }
nav.main .archive-link.archive-img { padding: 3px 10px; border: 0; background: none; }
nav.main .archive-link.archive-img img { display: block; height: 26px; width: auto; max-width: 120px; }

.admin-nav .an-area { display: flex; gap: 6px; margin-bottom: 6px; }
.admin-nav .an-area a { padding: 4px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.admin-nav .an-area a[aria-current="page"] { background: var(--head); color: #fff; border-color: var(--head); }
