/* Venue Guru. Looks like the back-of-house paperwork of a music room: gig-poster headings, run-sheet type for times and money,
   stage-curtain plum and marquee amber. Phone first, one column; dark theme for use behind a bar at night. */
:root {
  --bg: #f5f2f7; --surface: #ffffff; --sunk: #ebe6ef; --line: #dcd4e2;
  --ink: #221528; --muted: #6c5f75;
  --brand: #4b1d63; --brand-ink: #ffffff; --link: #5a2478;
  --amber: #ffb400; --amber-soft: #fff3cf; --amber-ink: #3b2a00;
  --good: #1c7a4f; --good-soft: #dcf1e5; --warn: #8a5a00; --warn-soft: #fdeec4; --bad: #b3261e; --bad-soft: #fbe6e4;
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #17101b; --surface: #231829; --sunk: #2d2035; --line: #3d2e47;
    --ink: #f1eaf4; --muted: #ab9db5;
    --brand: #ffb400; --brand-ink: #241800; --link: #d9b3ee;
    --amber: #ffb400; --amber-soft: #3a2c0a; --amber-ink: #ffe3a1;
    --good: #6fd3a0; --good-soft: #173527; --warn: #f0c060; --warn-soft: #3a2c0a; --bad: #ff8a80; --bad-soft: #43201d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
.wrap { max-width: 680px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

h1 { font: 800 2.5rem/0.98 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin: 22px 0 10px; text-wrap: balance; }
/* Section labels read like the headings on a run sheet. */
h2 { font: 700 0.78rem/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 0 0 10px; }
.card h2, .hero h2 { font-size: 1.12rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
section { margin: 28px 0; }
.muted { color: var(--muted); font-size: 0.92rem; }
.lead { font-size: 1.1rem; margin: 0 0 14px; }
.kicker { font: 700 0.78rem/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 22px 0 0; }
.kicker + h1 { margin-top: 6px; }
.narrow { max-width: 460px; margin: 0 auto; }
.num, td.num, .when { font-family: var(--mono); font-variant-numeric: tabular-nums; }
td.num { text-align: right; white-space: nowrap; }

/* Header: the room's marquee. Always plum, in both themes. */
.site-header { background: #2c1139; color: #fff; position: sticky; top: 0; z-index: 5; border-bottom: 3px solid var(--amber); }
.site-header .row { display: flex; align-items: center; justify-content: space-between; min-height: 54px; gap: 10px; }
.brand { color: #fff; text-decoration: none; font: 800 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand-mark { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.28); font-size: 0; }
.site-header nav { display: flex; gap: 2px; }
.site-header nav a { color: #d9c9e3; text-decoration: none; padding: 8px 9px; border-radius: var(--radius); font-weight: 600; font-size: 0.93rem; }
.site-header nav a.on { background: var(--amber); color: #241800; }
.site-footer { margin-top: 56px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: var(--radius); padding: 13px 20px; font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn.small { padding: 10px 15px; font-size: 0.94rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.link.danger { color: var(--bad); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 14px 0 4px; }

/* A card is a sheet of paper. Only the next thing to do gets the heavy frame. */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.card.next { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--amber); margin-right: 5px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
details.card > summary { cursor: pointer; }
details.card[open] > summary { margin-bottom: 14px; }
.flash { background: var(--good-soft); border-radius: var(--radius); padding: 11px 14px; margin: 12px 0; }
.flash.bad { background: var(--bad-soft); color: var(--bad); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }
.empty { color: var(--muted); padding: 12px 0; }
.pre { white-space: pre-line; }

.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; }
.field small { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=time], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 11px 12px; min-height: 46px;
}
input.num { font-family: var(--mono); }
textarea { resize: vertical; min-height: 0; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid > * { min-width: 0; }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 14px; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.or { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 2px 0 12px; }

ul.rows, ul.days, ul.log, ul.plain, ul.points { list-style: none; padding: 0; margin: 0; }
ul.rows { border-top: 1px solid var(--line); }
ul.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
ul.rows a.grow { text-decoration: none; color: inherit; }
.grow { flex: 1; min-width: 0; }
ul.plain li { margin: 0 0 4px; font-weight: 600; font-size: 1.05rem; }
ul.log li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
ul.log .muted { font-family: var(--mono); font-size: 0.8rem; }

/* Calendar: a listings board. The date sits in the margin like the day on a gig poster. */
.week h2 { border-bottom: 2px solid var(--ink); padding-bottom: 6px; color: var(--ink); }
ul.days li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
ul.days li.past { opacity: 0.5; }
.day { width: 46px; flex: none; text-align: center; padding: 3px 0 4px; border-radius: var(--radius); }
.day span { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; }
.day b { font: 800 1.7rem/1 var(--display); }
li.today .day { background: var(--amber); }
li.today .day span, li.today .day b { color: #241800; }
.entry { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 6px; }
.entry strong { font-size: 1.04rem; }
.entry.open { background: var(--amber-soft); border: 1.5px dashed var(--amber); color: var(--amber-ink); }
.entry.open .muted { color: inherit; opacity: 0.8; }
.add { display: inline-block; color: var(--muted); text-decoration: none; padding: 9px 0; font-size: 0.92rem; }
.todo { background: var(--warn-soft); border-radius: var(--radius); padding: 14px 16px 4px; }
.todo h2 { color: var(--warn); }
.todo ul.rows, .todo ul.rows li { border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.todo ul.rows li:last-child { border-bottom: 0; }

.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--sunk); color: var(--muted); vertical-align: 2px; white-space: nowrap; }
.pill.pencil, .pill.offered { background: var(--warn-soft); color: var(--warn); }
.pill.confirmed { background: var(--good-soft); color: var(--good); }
.pill.settled { background: var(--sunk); color: var(--ink); }
.pill.settled.paid { background: var(--ink); color: var(--bg); }
.pill.declined, .pill.cancelled, .pill.released { background: var(--bad-soft); color: var(--bad); }

/* The five stages of a show, as a strip of ticket stubs. */
ol.stages { list-style: none; display: flex; gap: 3px; padding: 0; margin: 16px 0; }
ol.stages li { flex: 1; text-align: center; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 2px; background: var(--sunk); color: var(--muted); }
ol.stages li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
ol.stages li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
ol.stages li.done { background: var(--good-soft); color: var(--good); }
ol.stages li.now { background: var(--ink); color: var(--bg); }

table { border-collapse: collapse; width: 100%; }
table.sums td { padding: 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
table.sums td:first-child { padding-right: 12px; }
table.sums tr.total td { font-weight: 800; font-size: 1.15rem; border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 11px; }
table.facts th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.86rem; width: 34%; padding: 7px 10px 7px 0; vertical-align: top; }
table.facts td { padding: 7px 0; white-space: pre-line; }
table.facts tr + tr th, table.facts tr + tr td { border-top: 1px solid var(--line); }

.hero { padding: 20px 0 8px; }
.hero h1 { font-size: clamp(2.9rem, 12vw, 4.6rem); line-height: 0.92; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: var(--amber); color: #241800; padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { max-width: 34em; }
ul.points { margin: 30px 0 22px; border-top: 2px solid var(--ink); }
ul.points li { padding: 14px 0; border-bottom: 1px solid var(--line); }
ul.points strong { display: block; font: 800 1.35rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 3px; }
@media (prefers-reduced-motion: no-preference) { .btn, .site-header nav a { transition: transform 0.08s ease; } .btn:active { transform: translateY(1px); } }

/* Reports: the year's paperwork. Each page prints as a plain document. */
.yearpick { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.yearpick label { font-weight: 600; font-size: 0.9rem; }
.yearpick select { width: auto; min-width: 110px; }
.big { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; }
.big .num { font-size: 1.5rem; }
.big .muted { font-weight: 400; }
ul.reports { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
ul.reports a { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
ul.reports a:hover { border-color: var(--ink); }
ul.reports p:last-child { margin-bottom: 0; }
.meter { height: 10px; background: var(--sunk); border-radius: 999px; overflow: hidden; margin: 0 0 12px; }
.meter span { display: block; height: 100%; background: var(--amber); }
.letterhead h1 { margin-top: 6px; }
table.months { max-width: 300px; }
table.months td { padding: 5px 0; }
table.list { font-size: 0.94rem; }
table.list th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 2px solid var(--ink); }
table.list th.num { text-align: right; padding-right: 0; }
table.list td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list td.num { padding-right: 0; }
table.list td.when { white-space: nowrap; font-size: 0.86rem; }
table.list tr.ahead td { color: var(--muted); }
table.list tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); }
.note { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 28px; }
@media (max-width: 480px) { table.cal th:nth-child(4), table.cal td:nth-child(4) { display: none; } }
@media (max-width: 400px) { .brand { font-size: 1.15rem; gap: 6px; } .site-header nav a { padding: 8px 6px; font-size: 0.86rem; } }
@media print {
  :root { --bg: #fff; --surface: #fff; --sunk: #eee; --line: #bbb; --ink: #000; --muted: #444; --link: #000; --amber: #999; }
  .site-header, .site-footer, .noprint { display: none !important; }
  body { font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  h1 { font-size: 22pt; }
  section { margin: 16pt 0; break-inside: auto; }
  table.list tr, ul.rows li { break-inside: avoid; }
  table.cal th:nth-child(4), table.cal td:nth-child(4) { display: table-cell; }
  a { color: inherit; text-decoration: none; }
}
table.list td .pill { margin-left: 8px; }
.testmode { margin-top: 18px; font-size: 1.02rem; }

/* Account button (the person's initial) and Sign in, at the right of the header. */
.site-header .row > nav { margin-left: auto; }
.acct { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; text-decoration: none; font-weight: 800; font-size: 0.95rem; }
.acct:hover, .acct.on { background: var(--amber); color: #241800; }
.signin { color: #241800; background: var(--amber); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: var(--radius); font-size: 0.93rem; }
.btn.wide { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; text-align: center; }
ul.rows li > span:first-child { font-weight: 600; }
@media (max-width: 400px) { .acct { width: 30px; height: 30px; } }

/* Programmer's venues: My venues cards and the add-a-venue steps. */
[hidden] { display: none !important; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head-row h1 { margin-bottom: 10px; }
.venues { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 12px; }
.venue .vt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.venue .vt h2 { margin: 0; }
.venue p { margin: 4px 0 10px; }
.venue.add { display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--muted); border-style: dashed; min-height: 120px; font-weight: 600; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius); background: var(--sunk); color: var(--muted); }
.tag.good { background: var(--good-soft); color: var(--good); }
.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 6px 0; font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
#venue-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#venue-form.js .step:not(.current) { display: none; }
.results { margin: -8px 0 14px; }
.hit { display: block; width: 100%; text-align: left; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 0; padding: 9px 12px; font: inherit; cursor: pointer; }
.hit:first-child { border-top: 1px solid var(--line); }
.hit:hover, .hit:focus-visible { background: var(--sunk); }
.hit small { display: block; color: var(--muted); font-size: 0.84rem; }
.hit .tag { margin-left: 8px; }
.note { background: var(--amber-soft); color: var(--amber-ink); border-radius: var(--radius); padding: 9px 12px; margin: 0 0 14px; font-size: 0.92rem; }
.err { color: var(--bad); }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 8px; background: var(--surface); cursor: pointer; }
.opt input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.opt small { display: block; color: var(--muted); font-size: 0.86rem; }
.rowbox { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 14px 8px; margin: 0 0 10px; }
.rowbox h3 { margin: 0 0 8px; font-size: 1rem; }
.grid3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 12px; }
.grid3 > * { min-width: 0; }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }
.flow { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; padding: 0; margin: 16px 0 22px; counter-reset: none; }
.flow li { position: relative; flex: 1 1 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 8px 9px; }
.flow li:not(:last-child)::after { content: "\2192"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.flow b { display: block; font-size: 0.9rem; }
.flow small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.3; margin-top: 2px; }
.flow li.on { background: var(--amber-soft); border-color: var(--amber); }
.flow li.on b { color: var(--amber-ink); }
.flow li.done { border-color: var(--good); }
.flow li.done b::before { content: "\2713  "; color: var(--good); }
.flow li.skip { border-style: dashed; opacity: 0.6; }
.flow li.end { background: var(--sunk); }
@media (max-width: 560px) { .flow li { flex-basis: 100%; } .flow li:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%); } }
.withgear { display: grid; grid-template-columns: 1fr 270px; gap: 0 16px; align-items: start; }
.withgear > * { min-width: 0; }
.gear { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 10px 12px; margin: 0 0 14px; }
.gear > b { display: block; font-size: 0.9rem; margin-bottom: 6px; }
.gear-list { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; font-size: 0.84rem; }
.gear-list label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.gear-list input { width: 16px; height: 16px; flex: none; accent-color: var(--brand); }
.gear .gear-other { margin-top: 8px; width: 100%; padding: 6px 8px; font: inherit; font-size: 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); }
@media (max-width: 560px) { .withgear { grid-template-columns: 1fr; } }
.venue .vt h2 a { color: inherit; text-decoration: none; }
.venue .vt h2 a:hover { text-decoration: underline; }
.people { margin: 10px 0 16px; }
.person { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; border-top: 1px solid var(--line); padding: 10px 0; font-size: 0.94rem; }
.pactions { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.pactions form { margin: 0; }
.addperson { border-top: 1px solid var(--line); padding-top: 14px; }
.addperson select, .addperson input[type=email] { width: 100%; }

/* Onboarding: the request page and the staff list of requests. */
.vt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vt h2, .vt h3 { margin: 0; }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.btn.danger { background: var(--bad); color: #fff; }
.note ol { margin: 6px 0 0; padding-left: 20px; }
.note p { margin: 0; }
.tabs { display: flex; gap: 14px; font-weight: 600; }
.tabs a { color: var(--muted); text-decoration: none; }
.tabs a.on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.request .kv { margin: 10px 0; }
.request details { border-top: 1px solid var(--line); padding: 8px 0; }
.request summary { cursor: pointer; font-weight: 700; }
.request details[open] summary { margin-bottom: 10px; }
.request select { width: 100%; }
textarea.copy { width: 100%; font-size: 0.86rem; margin-bottom: 10px; }
.leave { margin-top: 18px; }
.proofbox { border-top: 1px solid var(--line); padding: 10px 0; }
.proofbox p { margin: 0 0 6px; }
.verdict { border-radius: var(--radius); padding: 9px 12px; margin: 8px 0; background: var(--sunk); }
.verdict.genuine { background: var(--good-soft); }
.verdict.doubtful { background: var(--warn-soft); }
.docs li { padding: 3px 0; }
ul.proof li { margin: 0 0 6px; font-size: 0.92rem; }
details.what { margin: 10px 0; }
details.what summary { cursor: pointer; font-weight: 700; }
.proofform { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 10px; }
.proofform select, .proofform input[type=file] { width: 100%; }
form.inline { padding: 8px 0; border-top: 1px solid var(--line); }
.verify details > summary { list-style: none; display: inline-block; }
.verify details > summary::-webkit-details-marker { display: none; }
.verify details[open] > summary { display: none; }
.verifyform { margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid2 > * { min-width: 0; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
.claims { border-color: var(--amber); }
.consent { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.consent ul { margin: 6px 0 10px; padding-left: 20px; }
.consent p { margin: 0; }
form.inline { margin: 8px 0; }
