/* The admin pages (admin.html and its Songs and Members tabs), in the calendar's own look: the month's colours and
   glow behind, white cards like the calendar's pop-ups, Newsreader and Hanken Grotesk. admin-theme.js sets the month. */
:root {
  --bg: #ec135b; --g1: #ff3344; --g2: #ff30b3; --g3: #ff4c29; --g4: #fc00e7;
  --ink: #fffaf5; --ink-2: rgba(255, 250, 245, .86); --glass: rgba(16, 6, 16, .22); --glass-2: rgba(16, 6, 16, .36); --glass-line: rgba(255, 255, 255, .3);
  --fg: #1d0b1e; --fg-2: rgba(29, 11, 30, .9); --muted: rgba(29, 11, 30, .62); --faint: rgba(29, 11, 30, .45);
  --line: rgba(29, 11, 30, .14); --chip: rgba(29, 11, 30, .04); --tile: #f3eef0; --field: #faf7f8;
  --ok: #1d7a4d; --warn: #c2185b; --accent: #e23a6e;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; min-height: 100vh; }
[hidden] { display: none !important; }
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(54vmax 42vmax at 92% 4%, var(--g1), transparent 72%),
    radial-gradient(40vmax 32vmax at 30% 40%, color-mix(in srgb, var(--g2) 85%, transparent), transparent 72%),
    radial-gradient(52vmax 40vmax at 2% 98%, var(--g3), transparent 72%),
    radial-gradient(38vmax 30vmax at 96% 102%, color-mix(in srgb, var(--g4) 85%, transparent), transparent 72%),
    radial-gradient(34vmax 28vmax at 8% 10%, color-mix(in srgb, var(--g3) 70%, transparent), transparent 72%); }
/* inside the admin page, a tab is see-through: the page's own colours show behind it */
html.in-admin, html.in-admin body { background: transparent; }
html.in-admin .glow { display: none; }
.wrap { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 0 16px 120px; }

/* on the colours: white words, glass controls */
.top { padding: 22px 0 12px; display: grid; gap: 12px; }
h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 10vw, 64px); line-height: .98; letter-spacing: -.02em; color: var(--ink); }
h1 em { font-style: italic; font-weight: 400; }
.sub { margin: -4px 0 0; font-family: var(--serif); font-size: clamp(17px, 4.2vw, 21px); color: var(--ink-2); }
.sub b { font-weight: 500; color: var(--ink); }
.help { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 64ch; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); max-width: 100%; }   /* wraps onto more lines rather than hiding buttons off the edge */
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 0 0 auto; border: 0; background: none; padding: 7px 13px; border-radius: 999px; font: 600 11.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--fg); }
.seg button .n { opacity: .65; margin-left: 4px; }
.top input[type=search], .top select { flex: 1 1 160px; min-width: 0; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: 15px var(--sans); -webkit-appearance: none; appearance: none; }
.top select { flex: 0 1 180px; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.top select option { color: #1d0b1e; }
.top input::placeholder { color: var(--ink-2); }
.top input:focus, .top select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.glassbtn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); border-radius: 999px; padding: 9px 15px; font: 600 11.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.glassbtn:hover { background: var(--glass-2); }
.glassbtn svg { width: 14px; height: 14px; }
.empty { text-align: center; padding: 40px 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); }

/* the white cards */
.card { background: #fff; color: var(--fg-2); border-radius: 18px; box-shadow: 0 18px 50px rgba(24, 8, 24, .28); }
.card h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; color: var(--fg); }
.kicker { font: 600 10.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card .stat, .stat { font-size: 13px; color: var(--muted); }
.card .stat b { color: var(--fg); font-weight: 600; }
.stat.good { color: var(--ok); } .stat.bad { color: var(--warn); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--chip); color: var(--fg); border-radius: 999px; padding: 9px 15px; font: 600 11.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--fg); border-color: var(--fg); color: #fff; }
.btn.small { padding: 6px 11px; font-size: 10.5px; }
.btn:disabled, .btn.off { opacity: .4; cursor: default; pointer-events: none; }
.btn svg { width: 14px; height: 14px; }
.link { border: 0; background: none; padding: 0; color: var(--fg); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chipb { border: 1px solid var(--line); background: var(--chip); border-radius: 999px; padding: 6px 11px; font: 500 13px/1.2 var(--sans); color: var(--fg); cursor: pointer; }
.chipb[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: #fff; }
.chipb.lead { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent); }
.card input[type=text], .card input[type=url], .card input.name, .card textarea { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--field); color: var(--fg); border-radius: 12px; padding: 10px 12px; font: 16px var(--sans); }
.card textarea { font: 400 16px/1.42 var(--serif); resize: vertical; }
.card input:focus, .card textarea:focus { outline: 1.5px solid var(--fg); outline-offset: 1px; }
.badge { display: inline-block; padding: 3px 8px 2px; border-radius: 999px; font: 600 10px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; border: 1px solid var(--line); color: var(--muted); background: var(--chip); }
.badge.waiting { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge.signed { background: var(--ok); border-color: var(--ok); color: #fff; }
.badge.edited { color: var(--accent); border-color: var(--accent); background: #fff; }
.badge.check { color: #8a5a00; border-color: #e7b54a; background: #fff8e6; }

/* the dock along the foot, and the toast */
.dock { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 6; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: #fff; color: var(--fg); box-shadow: 0 14px 40px rgba(24, 8, 24, .35); max-width: calc(100vw - 24px); }
.dock .stat { font-size: 12.5px; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: #1d0b1e; color: #fff; font-size: 14px; text-align: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
html.under-player .dock { bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 64px); }
html.under-player .toast { bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }
html.under-player .wrap { padding-bottom: 190px; }

/* pop-ups: white, as the calendar's; a sheet from the foot on a phone */
dialog.pop { border: 0; padding: 0; width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border-radius: 20px; background: #fff; color: var(--fg-2); box-shadow: 0 30px 80px rgba(24, 8, 24, .45); }
dialog.pop::backdrop { background: rgba(24, 8, 24, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pop-in { display: grid; gap: 14px; padding: 16px 18px 20px; }
.pop-head { display: flex; justify-content: space-between; align-items: center; }
.x { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--chip); color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.x svg { width: 13px; height: 13px; }
.pop h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.08; color: var(--fg); overflow-wrap: anywhere; }
.pop p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  dialog.pop { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92dvh; }
  .pop-in { padding-bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px)); }
}
