/* Layout: one calm column. Status banner first, then schedule beside venue + rules. Single dark look taken from the logo. */
:root {
  color-scheme: dark;
  --bg: #03060C;
  --surface: #0A1220;
  --surface-hi: #13223A;
  --line: #1C2A44;
  --line-strong: #2A3B5C;
  --fg: #E6EAF0;
  --fg-soft: #C9D2DF;
  --muted: #98A6BD;
  --faint: #7F8DA3;
  --brand: #3A6496;
  --link: #8FB3DF;
  --open-bg: #061A14; --open-line: #14533A; --open-dot: #34D399; --open-text: #6EE7B7;
  --plan-bg: #191407; --plan-line: #5A4410; --plan-dot: #FBBF24; --plan-text: #FCD34D;
  --closed-dot: #64748B;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; }
header.top { border-bottom: 1px solid var(--line); padding-block: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 48px; height: 48px; border-radius: 12px; display: block; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; }
.brand-name span { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.5em; color: var(--muted); margin-top: 5px; }
.who { color: var(--muted); font-size: 15px; }
main { padding-block: 32px 56px; display: flex; flex-direction: column; gap: 24px; }

.status { border-radius: 16px; padding: clamp(20px, 4vw, 32px); display: flex; flex-wrap: wrap; gap: 20px; border: 1px solid var(--line); background: var(--surface); }
.status[data-state="open"] { background: var(--open-bg); border-color: var(--open-line); }
.status[data-state="planned"] { background: var(--plan-bg); border-color: var(--plan-line); }
.status-main { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.status-meta { flex: 1 1 200px; min-width: 0; align-self: flex-end; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.pill { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--closed-dot); }
.status[data-state="open"] .pill { color: var(--open-text); }
.status[data-state="open"] .dot { background: var(--open-dot); animation: pulse 2s ease-in-out infinite; }
.status[data-state="planned"] .pill { color: var(--plan-text); }
.status[data-state="planned"] .dot { background: var(--plan-dot); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
.status h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 5vw, 40px); line-height: 1.1; text-wrap: balance; }
.status p { margin: 0; color: var(--fg-soft); }
.status .names { color: var(--muted); font-size: 15px; }

.grid { display: flex; flex-wrap: wrap; gap: 24px; }
.col-wide { flex: 999 1 440px; min-width: 0; }
.col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.note { margin: 0; font-size: 14px; color: var(--muted); }
.hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 8px; border: 1px solid transparent; }
.hours li .t { color: var(--fg); }
.hours li.off .t { color: var(--faint); }
.hours li.today { background: var(--surface-hi); border-color: #2A4268; font-weight: 700; }
dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
dt { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
dd { margin: 0; font-weight: 500; }
ol.rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--fg-soft); font-size: 15px; }

.preview { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.preview .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.preview button { min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font: 600 14px var(--font-body); cursor: pointer; }
.preview button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
footer { border-top: 1px solid var(--line); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }

/* Buttons and inputs shared by the member page and the admin panel. */
.btn { min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font: 600 16px var(--font-body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: var(--surface-hi); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.btn-primary:hover { background: #4A76AA; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; color: var(--muted); }
.btn-wide { width: 100%; }
.field { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg); font: 500 17px var(--font-body); }
.field:focus { outline: 2px solid var(--link); outline-offset: 1px; }

.interest { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.interest-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.interest-text strong { font-family: var(--font-display); font-size: 18px; }

/* Admin panel: one narrow column, big touch targets. */
.admin main { max-width: 480px; margin: 0 auto; }
.pin { font-size: 28px; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.error { margin: 0; color: #FCA5A5; font-size: 15px; min-height: 1.5em; }
.row { display: flex; gap: 8px; align-items: center; }
.row .field { flex: 1; text-align: center; }
.stepper .btn { width: 48px; padding: 0; font-size: 22px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.links { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
[hidden] { display: none !important; }
a.brand { color: var(--fg); text-decoration: none; }
