/* Wristband — a festival field in daylight. Cream ground, deep-indigo ink drawn in chunky 2px outlines with hard
   offset shadows, and colour from the wristbands themselves: every artist has one (set as --band by app.js),
   woven with a diagonal stripe, carrying the date. Unbounded for headlines and dates on the band, Outfit for
   everything said, Geist Mono for the small print. */

:root {
  --bg: #fbf7f0; --surface: #ffffff; --surface-2: #f4eee3; --ink: #14112b; --muted: #625d78;
  --line: #14112b; --soft-line: #e5ddcf;
  --violet: #7b5cff; --lime: #c6f432; --coral: #ff6b4a; --sky: #2f9bff;
  --band: var(--violet);
  --radius: 18px; --radius-s: 12px;
  --shadow: 4px 4px 0 var(--ink); --shadow-s: 3px 3px 0 var(--ink); --shadow-lift: 6px 6px 0 var(--ink);
  --display: "Unbounded", "Outfit", system-ui, sans-serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14112b; --surface: #1e1a3d; --surface-2: #272250; --ink: #f6f2ff; --muted: #aaa3c7;
    --line: #f6f2ff; --soft-line: #322c5e;
    --shadow: 4px 4px 0 #000; --shadow-s: 3px 3px 0 #000; --shadow-lift: 6px 6px 0 #000;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--sans); font-optical-sizing: auto; color: var(--ink); background: var(--bg); min-height: 100vh; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 90px; }
.wrap:focus { outline: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1, h2, h3 { margin: 0; }
h1 { font-family: var(--display); font-size: clamp(30px, 4.6vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
h1 a { text-decoration: none; }
h1 i { font-style: normal; color: var(--band); }
h2 { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.005em; margin: 36px 0 14px; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.eyebrow { display: inline-block; font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.crumb { font: 500 12.5px/1.4 var(--mono); color: var(--muted); margin: 0 0 12px; }
.crumb a { text-decoration: none; }
.pagehead { margin: 4px 0 22px; }
.at { margin: 12px 0 0; font-size: 18px; }
.count-line { margin: 0 0 4px; color: var(--muted); }
.count-line b { color: var(--ink); }

/* ---- top bar; a bottom tab bar on phones ---- */
.top { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 20px; padding: 12px 32px; background: var(--bg); border-bottom: 2px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.mark { display: flex; width: 34px; height: 14px; border-radius: 99px; overflow: hidden; border: 2px solid var(--line); transform: rotate(-14deg); }
.mark i { flex: 1; }
.mark i:nth-child(1) { background: var(--coral); } .mark i:nth-child(2) { background: var(--violet); } .mark i:nth-child(3) { background: var(--lime); }
.tabs { display: flex; gap: 4px; margin-left: 6px; }
.tabs a { position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 15px; color: var(--muted); border: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); background: var(--lime); border-color: var(--line); color: #14112b; }
.tabs .ico { font-size: 14px; }
.count { font: 700 11px/1 var(--mono); background: var(--violet); color: #fff; border-radius: 999px; padding: 3px 6px; }
.where { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--line); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 14px/1 var(--sans); cursor: pointer; box-shadow: var(--shadow-s); }
.where:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.pin { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); border: 2px solid #14112b; }

/* ---- buttons and chips ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--line); border-radius: 999px; background: var(--violet); color: #fff; padding: 10px 18px; font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer; box-shadow: var(--shadow-s); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.follow { flex: none; border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 700 13px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.follow:hover { background: var(--surface-2); }
.follow[aria-pressed="true"] { background: var(--coral); color: #14112b; }
.follow.big { padding: 11px 20px; font-size: 16px; margin-top: 18px; box-shadow: var(--shadow-s); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 650 14px/1 var(--sans); padding: 9px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.chip:hover { background: var(--lime); color: #14112b; }

/* ---- home ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: stretch; margin: 6px 0 12px; }
.herocopy { padding: 18px 0; }
.hero h1 { font-size: clamp(38px, 6.2vw, 78px); line-height: 1; letter-spacing: -.02em; margin-bottom: 16px; }
.dot { color: var(--violet); }
.lede { font-size: 19px; max-width: 34ch; margin: 0 0 22px; color: var(--muted); }
.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.wocard { position: relative; background: var(--lime); color: #14112b; border: 2px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); overflow: hidden; isolation: isolate; align-self: center; }
.wocard::after { content: ""; position: absolute; right: -40px; top: -18px; width: 210px; height: 46px; border: 2px solid #14112b; border-radius: 99px; transform: rotate(-16deg); z-index: -1;
  background: repeating-linear-gradient(-45deg, var(--violet) 0 10px, #9b85ff 10px 20px); }
.wocard .eyebrow { color: #14112b; opacity: .7; }
.wocard h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.08; letter-spacing: -.01em; max-width: 12ch; }
.wocard .chip { border-color: #14112b; background: #fff; color: #14112b; }
.woquick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.block { margin-top: 12px; }
.bhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.more { font-weight: 650; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--violet); }
.intro { display: flex; gap: 20px; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 6px 24px 20px; margin-top: 30px; box-shadow: var(--shadow); }
.intro p { max-width: 64ch; margin: 0; }
.introband { flex: none; width: 70px; height: 26px; border: 2px solid var(--line); border-radius: 99px; transform: rotate(-14deg); margin-top: 14px; background: repeating-linear-gradient(-45deg, var(--coral) 0 8px, #ff9a82 8px 16px); }
.next { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 2px solid var(--line); border-left: 14px solid var(--band); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 14px; text-decoration: none; }
.next:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lift); }
.next > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.nexthead { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px; }
.atile { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 10px 14px; box-shadow: var(--shadow-s); transition: transform .08s, box-shadow .08s; }
.atile:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--band); }
.atile .avatar { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; margin-bottom: 8px; font-size: 48px; border: 2px solid var(--line); }
.aname { font-size: 17px; font-weight: 750; line-height: 1.1; letter-spacing: -.015em; }
.asub { font: 500 11.5px/1.3 var(--mono); color: var(--muted); }
.allartists { margin-top: 18px; }
.allartists summary { cursor: pointer; font-weight: 650; }
.alist { columns: 4 170px; margin-top: 12px; font-size: 15px; }
.alist a { display: block; padding: 2px 0; text-decoration: none; }
.alist a:hover { color: var(--violet); }

/* ---- search boxes ---- */
.search, .placebox { position: relative; max-width: 620px; }
.search input, .placebox input { width: 100%; font: 500 17px/1 var(--sans); padding: 16px 20px 16px 48px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237b5cff' stroke-width='2.4'%3E%3Ccircle cx='8.5' cy='8.5' r='6'/%3E%3Cpath d='m13 13 5 5'/%3E%3C/svg%3E") no-repeat 18px 50%; color: var(--ink); box-shadow: var(--shadow-s); }
.search input:focus, .placebox input:focus { outline: 3px solid var(--violet); outline-offset: 2px; }
.placebox { display: flex; gap: 8px; }
.placebox input { flex: 1; min-width: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2314112b' stroke-width='2.2'%3E%3Cpath d='M10 18s6-5.3 6-10a6 6 0 0 0-12 0c0 4.7 6 10 6 10z'/%3E%3Ccircle cx='10' cy='8' r='2.2'/%3E%3C/svg%3E"); background-color: #fff; color: #14112b; }
.placebox .btn { flex: none; padding: 0 22px; background: #14112b; color: #fff; }
.placebox.big input { font-size: 22px; padding: 20px 22px 20px 52px; }
.results { position: absolute; z-index: 1100; left: 0; right: 0; top: calc(100% + 10px); background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; padding: 6px; }
.hit { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-s); text-decoration: none; width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.hit:hover, .hit:focus-visible { background: var(--surface-2); }
.hit > span:not(.avatar) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hit b { font-weight: 700; }
.hint { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 6px; }
.colside .search { margin-top: 14px; }
.colside .search input { font-size: 15px; padding: 12px 16px 12px 42px; background-position: 14px 50%; box-shadow: none; }

/* ---- avatars ---- */
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2) center 25% / cover no-repeat; display: inline-grid; place-items: center; border: 2px solid var(--line); }
.avatar.sm { width: 36px; height: 36px; font-size: 15px; }
.avatar.lg { width: 78px; height: 78px; }
.avatar.blank { background: var(--band); color: #14112b; font: 800 20px/1 var(--display); }

/* ---- gigs: a woven wristband in the artist's colour with the date, then the gig ---- */
.gigs { display: grid; gap: 12px; }
.when { font-size: 15px; font-weight: 750; margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
.when::after { content: ""; flex: 1; height: 2px; background: var(--soft-line); }
.gig { display: grid; grid-template-columns: 82px 1fr; text-decoration: none; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); overflow: hidden; transition: transform .08s, box-shadow .08s; }
.gig:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.strap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 4px; color: #14112b; border-right: 2px solid var(--line);
  background: repeating-linear-gradient(-45deg, transparent 0 7px, rgb(255 255 255 / .22) 7px 14px), var(--band); }
.strap::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.strap .dow, .strap .mon { font: 700 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.strap .dd { font: 800 30px/1 var(--display); letter-spacing: -.02em; margin: 1px 0; }
.gig .body { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 18px 12px 20px; min-width: 0; }
.gig .who { font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.gig .who i { font-style: normal; color: var(--muted); font-weight: 500; }
.gig .venue { font-weight: 600; }
.gig .venue .muted { font-weight: 400; }
.gig .meta { font: 500 12.5px/1.4 var(--mono); color: var(--muted); }
.gig .meta b { color: var(--ink); font-weight: 600; }

/* ---- artist banner ---- */
.banner { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: 26px; padding: 26px; margin: 4px 0 22px; box-shadow: 6px 6px 0 var(--band); position: relative; overflow: hidden; }
.banner::after { content: ""; position: absolute; right: -60px; bottom: 26px; width: 300px; height: 48px; border: 2px solid var(--line); border-radius: 99px; transform: rotate(-12deg);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgb(255 255 255 / .25) 10px 20px), var(--band); }
.photo { width: 220px; aspect-ratio: 1; border-radius: 20px; border: 2px solid var(--line); background: var(--surface-2) center 25% / cover no-repeat; display: grid; place-items: center; transform: rotate(-2deg); }
.photo.blank { background: var(--band); color: #14112b; font: 800 84px/1 var(--display); }
.bcopy { position: relative; z-index: 1; padding-bottom: 40px; }
.bstats { color: var(--muted); margin: 12px 0 0; }
.bstats b { color: var(--ink); }

/* ---- two columns ---- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.colmain > h2:first-child { margin-top: 6px; }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-s); }
.card p { margin: 0 0 8px; }
.card.sticky { position: sticky; top: 84px; }
.card.prose { max-width: 70ch; }
.callout { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 6px; box-shadow: 4px 4px 0 var(--lime); }
.callout .gig { box-shadow: none; }
.callout.soft { border-style: dashed; box-shadow: none; }
.map { height: 240px; border-radius: var(--radius-s); margin-bottom: 12px; background: var(--surface-2); z-index: 0; border: 2px solid var(--line); }
.map.tall { height: 360px; margin: 0 0 8px; }
.map.wide { height: 400px; margin: 0; }
.flist { list-style: none; padding: 0; margin: 0; }
.flist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 2px solid var(--soft-line); }
.flist li:last-child { border: 0; }
.flist a { font-weight: 700; text-decoration: none; }
.flist .muted { margin-left: auto; white-space: nowrap; }

/* ---- what's on ---- */
.wohead { margin: 4px 0 26px; }
.wohead h1 { margin-bottom: 20px; }
.hl { background: var(--lime); color: #14112b; padding: 0 .18em; border: 2px solid var(--line); border-radius: 14px; box-decoration-break: clone; -webkit-box-decoration-break: clone; display: inline; line-height: 1.25; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 10px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-s); }
.seg a { padding: 8px 14px; font-weight: 650; font-size: 14px; text-decoration: none; border-right: 2px solid var(--line); }
.seg a:last-child { border-right: 0; }
.seg a:hover { background: var(--surface-2); }
.seg a.on { background: var(--violet); color: #fff; }
.filters label { display: flex; align-items: center; gap: 8px; font-weight: 650; }
select, .sheet input { font: 500 15px/1.2 var(--sans); color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; }

/* ---- the gig ---- */
.gighead { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: center; margin: 4px 0 20px; }
.bigband { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 10px; color: #14112b; border: 2px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); transform: rotate(-3deg);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgb(255 255 255 / .22) 10px 20px), var(--band); }
.bigband .dow, .bigband .mon { font: 700 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.bigband .dd { font: 800 76px/.95 var(--display); letter-spacing: -.03em; }
.bigband .cd { margin-top: 10px; font: 700 12px/1 var(--mono); background: #14112b; color: #fff; padding: 6px 10px; border-radius: 999px; }
.support { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.plan { display: grid; gap: 14px; }
.pcard { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-s); }
.pcard h3 { display: flex; align-items: center; gap: 10px; }
.n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: #14112b; border: 2px solid var(--line); font: 700 12px/1 var(--mono); }
.plink { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 10px 14px; border-radius: var(--radius-s); text-decoration: none; border: 2px solid var(--soft-line); margin-top: 8px; }
.plink:hover { border-color: var(--line); background: var(--surface-2); }
.plink b { font-weight: 700; }
.plink span { grid-row: 2; font-size: 13.5px; color: var(--muted); }
.plink i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-weight: 700; color: var(--violet); }

/* ---- where you're based ---- */
.sheet { border: 2px solid var(--line); border-radius: 22px; padding: 22px; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.sheet::backdrop { background: rgb(20 17 43 / .45); }
.sheet h2 { margin-top: 0; }
.sheet .row { display: flex; gap: 8px; margin-top: 12px; }
.sheet input { flex: 1; min-width: 0; }
.hits { margin: 10px 0; max-height: 40vh; overflow-y: auto; }
.actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }

/* ---- misc ---- */
.empty { background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; }
.empty p { margin: 0 0 10px; }
.empty h3 { margin-bottom: 4px; }
.loading { display: flex; gap: 8px; justify-content: center; padding: 80px 0; }
.loading span { width: 34px; height: 14px; border: 2px solid var(--line); border-radius: 99px; background: var(--coral); animation: bounce .9s ease-in-out infinite; }
.loading span:nth-child(2) { background: var(--violet); animation-delay: .12s; } .loading span:nth-child(3) { background: var(--lime); animation-delay: .24s; }
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(-14deg); } 50% { transform: translateY(-12px) rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) { .loading span { animation: none; transform: rotate(-14deg); } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--lime); color: #14112b; border: 2px solid #14112b; box-shadow: 3px 3px 0 #14112b; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: .2s; z-index: 2000; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.leaflet-popup-content { font: 14px/1.45 var(--sans); }
.leaflet-container a { color: #5a3ee0; }

/* ---- phones ---- */
@media (max-width: 900px) {
  .wrap { padding: 18px 16px 120px; }
  .top { padding: 10px 16px; gap: 10px; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; justify-content: space-around; background: var(--bg); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); }
  .tabs a { flex-direction: column; gap: 2px; font-size: 11.5px; padding: 6px 10px; border-radius: 14px; }
  .tabs .ico { font-size: 18px; }
  .count { position: absolute; top: 0; right: 2px; }
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .herocopy { padding: 4px 0; }
  .wocard { padding: 20px; }
  .wocard h2 { font-size: 26px; }
  .cols { grid-template-columns: 1fr; }
  .colside { order: -1; }
  .card.sticky { position: static; }
  .map.tall { height: 240px; }
  .banner { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .photo { width: 140px; }
  .bcopy { padding-bottom: 30px; }
  .gighead { grid-template-columns: 1fr; gap: 20px; }
  .bigband { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; transform: rotate(-1.5deg); padding: 14px; }
  .bigband .dd { font-size: 54px; }
  .bigband .cd { margin: 0; }
  .gig { grid-template-columns: 68px 1fr; }
  .strap .dd { font-size: 28px; }
  .gig .who { font-size: 18px; }
  .next { align-items: flex-start; }
  .nexthead { font-size: 24px; }
  .agrid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .placebox.big input { font-size: 18px; padding: 16px 18px 16px 46px; }
  .seg a { padding: 7px 11px; font-size: 13px; }
  .where #whereLabel { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .where { padding: 8px 12px; }
  .brand { font-size: 20px; }
  h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .lede { font-size: 17px; }
  .intro { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 18px 20px; }
  .intro h2 { margin: 6px 0 8px; }
  .introband { margin-top: 0; width: 56px; height: 22px; }
  /* filter pills stay on one line and scroll sideways rather than wrapping into a jumble */
  .filters { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 10px; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; align-self: flex-start; }
  .seg::-webkit-scrollbar { display: none; }
  .seg a { flex: none; white-space: nowrap; }
  .filters label { justify-content: space-between; }
  .filters select { flex: 1; min-width: 0; max-width: 100%; }
  .map.wide { height: 300px; }
  .map { height: 200px; }
  /* bigger touch targets */
  .follow { padding: 9px 14px; font-size: 14px; }
  .chip { padding: 10px 14px; }
  .plink { padding: 12px 14px; }
  .results { max-height: 55vh; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .pagehead { margin-bottom: 16px; }
}
/* no sticky hover lifts on touch screens; a press shows instead */
@media (hover: none) {
  .gig:hover, .next:hover, .atile:hover, .btn:hover, .where:hover { transform: none; }
  .gig:hover { box-shadow: var(--shadow-s); } .next:hover { box-shadow: var(--shadow); } .atile:hover, .btn:hover { box-shadow: var(--shadow-s); } .where:hover { box-shadow: var(--shadow-s); }
  .gig:active, .next:active, .atile:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
}
a, button { -webkit-tap-highlight-color: transparent; }
/* on phones the side column comes first (your artists, the area map) except where the page itself matters more */
@media (max-width: 900px) { .colside:has(#tourmap), .colside:has(#gigmap), .colside:has(.helpnav) { order: 0; } .flist { max-height: 240px; overflow-y: auto; } }
/* affiliate links are labelled; Ticketmaster's status on a gig that's moved */
.ad { font: 700 10px/1 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1.5px solid var(--soft-line); border-radius: 6px; padding: 2px 5px; margin-left: 6px; vertical-align: 2px; }
.flag { color: var(--coral); }
.bigband .cd.flag { background: var(--coral); color: #14112b; margin-top: 6px; }

/* ---- map popups: a tap lists every dot within reach ---- */
.leaflet-popup-content p { margin: 0; }
.leaflet-popup.multi .leaflet-popup-content { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.pop + .pop { border-top: 1px solid #e5ddcf; margin-top: 8px; padding-top: 8px; }
.popcount { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #625d78; margin-bottom: 8px !important; }
.popmore { margin-top: 8px !important; font-size: 13px; color: #625d78; }
.popgigs { list-style: none; padding: 0; margin: 4px 0 6px; }
.popgigs li { margin: 3px 0; }
.popgigs span { color: #625d78; font-size: 13px; white-space: nowrap; }

/* ---- account button and sheet ---- */
.acctbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--line); color: var(--ink); border-radius: 999px; padding: 5px 14px 5px 8px; font: 600 14px/1 var(--sans); cursor: pointer; box-shadow: var(--shadow-s); }
.acctbtn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.acctbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.me { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--violet); color: #fff; border: 2px solid var(--line); font: 800 12px/1 var(--display); }
.acctbtn:has(.me) { padding: 4px; }
.acctbtn:has(.me) .lbl { display: none; }
.sheethead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheethead h2 { margin: 0; font-size: 19px; }
.sheet .x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 15px; }
.sheet label { display: block; font-weight: 650; font-size: 14px; margin: 16px 0 6px; }
.sheet p { margin: 10px 0; }
.field { width: 100%; font: 500 16px var(--sans); padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.field.code { font: 600 26px/1 var(--mono); letter-spacing: .35em; text-align: center; padding: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 8px; }
.stack .btn { padding: 13px 16px; }
.linkish { font: inherit; font-size: 14px; background: none; border: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; align-self: center; }
.linkish.danger { color: #d2372a; }
.btn.danger { background: #d2372a; }
.err { color: #d2372a; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.acctline { display: flex; align-items: center; gap: 10px; }
.acctline .me { width: 34px; height: 34px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---- help: the guide, and Ask Wristband above it ---- */
.help h2 { margin-top: 0; }
.help ol, .help ul { padding-left: 22px; }
.help li { margin: 6px 0; }
.helpnav { list-style: none; padding: 0; margin: 0 0 12px; }
.helpnav li { margin: 6px 0; }
.ask h2 { margin-top: 0; }
.ask .chips { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chatlog { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.chatlog:empty { display: none; }
.msg { max-width: min(88%, 640px); padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; border: 2px solid var(--line); }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin: 0; }
.msg ul { margin: 4px 0; padding-left: 18px; }
.msg.user { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg.error { color: var(--muted); }
.chatform { display: flex; gap: 8px; margin-bottom: 10px; }
.chatform .field { flex: 1; min-width: 0; }
.typing { display: flex; gap: 4px; padding: 4px 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .acctbtn { padding: 5px; }
  .acctbtn .lbl { display: none; }
  .tabs a { padding: 6px 6px; }
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow-y: auto; }
  .chatform .btn { padding: 0 16px; }
}
@media (hover: none) { .acctbtn:hover { transform: none; box-shadow: var(--shadow-s); } }

/* ---- your night ---- */
.night h2 { margin-top: 8px; }
.nightfrom { margin: -6px 0 12px; }
.nightfrom .linkish { font-size: inherit; padding: 0; }
.legs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 8px; }
.leg { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-s); }
.leg h3 { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.leg h3 .muted { font-weight: 500; font-size: 14px; }
.tl { list-style: none; margin: 10px 0 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 72px; top: 10px; bottom: 10px; width: 2px; background: var(--soft-line); }
.tl li { display: grid; grid-template-columns: 60px 1fr; gap: 26px; padding: 6px 0; position: relative; }
.tl li::before { content: ""; position: absolute; left: 67px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--band); border: 2px solid var(--line); }
.tl .clock { font: 600 14px/1.3 var(--mono); text-align: right; padding-top: 2px; white-space: nowrap; }
.tl .clock sup { font-size: 10px; color: var(--muted); margin-left: 1px; }
.tl b { display: block; }
.tl small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.nightask .btnrow { margin-top: 10px; }
.trains { display: block; margin: 4px 0 2px; font: 500 13px/1.45 var(--mono); }
.trains span { display: block; }
.trains span + span::before { content: "change · "; color: var(--muted); }
.tl li.warn b { color: var(--coral); }
.tl li.warn::before { background: var(--coral); }

/* ---- going with friends ---- */
.crewask p { margin: 0 0 10px; }
.crewform { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.crewform input { flex: 1 1 180px; min-width: 0; font: 500 16px/1 var(--sans); padding: 11px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.crewlink { display: flex; flex-direction: column; gap: 2px; background: var(--lime); color: #14112b; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-s); text-decoration: none; margin-bottom: 16px; }
.crewlink span { font-size: 14px; }
.tally { font: 500 14px/1 var(--mono); margin-left: 6px; }
.mates { display: grid; gap: 10px; margin-bottom: 8px; }
.mate { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-s); }
.mate.you { box-shadow: 4px 4px 0 var(--violet); }
.mate.st-out { opacity: .65; }
.initial { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--band); color: #14112b; border: 2px solid var(--line); font: 800 17px/1 var(--display); }
.matebody { flex: 1; min-width: 0; }
.matehead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; }
.mate .st { font: 700 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 99px; border: 2px solid var(--line); }
.st-in .st { background: var(--lime); color: #14112b; }
.st-maybe .st { background: var(--surface-2); }
.st-out .st { background: transparent; color: var(--muted); }
.matenight { margin: 0; font: 500 13.5px/1.5 var(--mono); }
.matenight span { display: block; }
.warnline { color: var(--coral); font-weight: 650; }
.mine { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.seg button { padding: 7px 13px; font: 650 14px/1 var(--sans); background: none; color: var(--ink); border: 0; border-right: 2px solid var(--line); cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--surface-2); }
.seg button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.together { margin: 0; }
@media (max-width: 900px) { .colside.crewhow { order: 1; } }
