/* Jewel City Sports Club
   Palette: warm paper, deep emerald ink, five jewel accents (one per sport family). */

:root {
  --paper: #f7f4ec;
  --paper-2: #efeadc;
  --card: #ffffff;
  --ink: #10231c;
  --ink-2: #3a4d45;
  --muted: #68776f;
  --line: rgba(16, 35, 28, 0.12);
  --line-strong: rgba(16, 35, 28, 0.22);

  --emerald: #0b7a55;
  --emerald-bright: #17a673;
  --emerald-deep: #0a2f24;
  --ruby: #c8324a;
  --sapphire: #2a56c6;
  --topaz: #c97f0a;
  --topaz-bright: #f0b03f;
  --amethyst: #7448c9;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 28, 0.06), 0 2px 8px rgba(16, 35, 28, 0.04);
  --shadow-md: 0 2px 4px rgba(16, 35, 28, 0.05), 0 14px 34px rgba(16, 35, 28, 0.1);
  --shadow-lg: 0 30px 70px rgba(10, 47, 36, 0.22);
  --wrap: 1180px;
}

.hue-emerald { --hue: var(--emerald); }
.hue-ruby { --hue: var(--ruby); }
.hue-sapphire { --hue: var(--sapphire); }
.hue-topaz { --hue: var(--topaz); }
.hue-amethyst { --hue: var(--amethyst); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sapphire); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 6px 18px rgba(11, 122, 85, 0.28); }
.btn-primary:hover { background: #096646; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #1c382e; }
.btn-ghost { border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(16, 35, 28, 0.04); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(247, 244, 236, 0.4); color: var(--paper); background: transparent; }
.btn-outline-light:hover { border-color: var(--paper); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.link-arrow .icon { transition: transform 0.15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, 0.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
.brand svg { width: 30px; height: 30px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 16px; color: var(--ink-2); }
.nav a:not(.btn):hover { background: rgba(16, 35, 28, 0.06); color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); font-weight: 600; background: rgba(16, 35, 28, 0.06); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 13px 14px; font-size: 18px; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Shared section furniture ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald); }
.eyebrow::before { content: ''; width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); border-radius: 1.5px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2, .h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; margin-top: 14px; max-width: 16ch; }
.section-head p, .lede { color: var(--ink-2); font-size: 19px; max-width: 54ch; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(16, 35, 28, 0.07); color: var(--ink-2); }
.pill-soon { background: rgba(240, 176, 63, 0.18); color: var(--topaz-bright); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero-facets { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-facets svg { position: absolute; right: -140px; top: -120px; width: 900px; max-width: none; opacity: 0.5; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 74px); font-weight: 800; letter-spacing: -0.035em; margin-top: 20px; }
.hero h1 em { font-style: normal; color: var(--emerald); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.04em; height: 0.13em; background: var(--topaz-bright); border-radius: 99px; transform: skewX(-18deg); opacity: 0.9; z-index: -1; }
.hero .lede { font-size: 20px; margin-top: 24px; max-width: 46ch; }

.finder {
  margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px; box-shadow: var(--shadow-md); max-width: 620px;
}
.finder label { display: flex; flex-direction: column; padding: 8px 16px; border-right: 1px solid var(--line); min-width: 0; }
.finder label:nth-of-type(2) { border-right: 0; }
.finder span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.finder select { border: 0; background: transparent; padding: 3px 0; font-weight: 600; font-size: 17px; width: 100%; cursor: pointer; appearance: none; text-overflow: ellipsis; }
.finder select:focus-visible { outline: none; text-decoration: underline; }
.finder .btn { border-radius: 16px; padding-inline: 24px; }
.hero-sub { margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.hero-sub a { font-weight: 600; }

.week {
  background: var(--emerald-deep); color: var(--paper); border-radius: 28px; padding: 26px; box-shadow: var(--shadow-lg);
  position: relative; transform: rotate(1.2deg);
}
.week-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.week-head h2 { font-size: 22px; font-weight: 700; }
.week-head span { font-size: 13px; color: rgba(247, 244, 236, 0.65); }
.week-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.week-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 13px 14px; border-radius: 16px; background: rgba(247, 244, 236, 0.07); text-decoration: none; transition: background 0.15s ease, transform 0.15s ease; }
.week-item:hover { background: rgba(247, 244, 236, 0.13); transform: translateX(3px); }
.week-item .badge { background: var(--paper); }
.week-item strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.2; }
.week-item small { color: rgba(247, 244, 236, 0.68); font-size: 14px; }
.week-item .spots { font-size: 13px; font-weight: 600; color: var(--topaz-bright); text-align: right; white-space: nowrap; }
.week-foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: rgba(247, 244, 236, 0.65); gap: 12px; }
.week-foot a { color: var(--paper); font-weight: 600; }

.badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--hue, var(--emerald)); background: color-mix(in srgb, var(--hue, var(--emerald)) 13%, #fff); }
.badge .icon { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .hero { padding: 44px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .week { transform: none; }
}
@media (max-width: 560px) {
  .finder { grid-template-columns: 1fr; border-radius: 20px; }
  .finder label { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .finder .btn { margin-top: 8px; padding-block: 15px; }
  .section { padding: 68px 0; }
  .week { padding: 20px; }
  .week-item { grid-template-columns: 46px 1fr; }
  .week-item .spots { grid-column: 2; text-align: left; margin-top: -8px; }
}

/* ---------- Sport tiles ---------- */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 1000px) { .sport-grid { grid-template-columns: repeat(5, 1fr); } }
.sport-tile {
  display: flex; flex-direction: column; gap: 22px; padding: 18px; border-radius: var(--radius); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.sport-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--hue) 45%, transparent); }
.sport-tile strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.15; display: block; }
.sport-tile small { color: var(--muted); font-size: 13.5px; }
.sport-tile.more { background: transparent; border-style: dashed; border-color: var(--line-strong); justify-content: space-between; }
.sport-tile.more .badge { background: var(--ink); color: var(--paper); }

/* ---------- Group cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.group-card {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); text-decoration: none; text-align: left;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.group-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--hue) 45%, transparent); }
.group-top { display: flex; align-items: center; gap: 12px; }
.group-top .kind { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hue); }
.group-top .type { margin-left: auto; }
.group-card h3 { font-size: 23px; font-weight: 700; line-height: 1.12; }
.meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; color: var(--ink-2); font-size: 15.5px; }
.meta li { display: flex; align-items: center; gap: 9px; }
.meta .icon { color: var(--muted); width: 18px; height: 18px; }
.group-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.price strong { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.price small { color: var(--muted); font-size: 13.5px; margin-left: 4px; }
.spots-wrap { text-align: right; min-width: 108px; }
.spots-wrap span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.spots-wrap .full { color: var(--ruby); }
.bar { height: 5px; border-radius: 99px; background: rgba(16, 35, 28, 0.1); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--hue, var(--emerald)); }

/* ---------- Two ways in ---------- */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.way { border-radius: 28px; padding: 40px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.way.dark { background: var(--emerald-deep); color: var(--paper); border-color: transparent; }
.way h3 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; margin-top: 14px; max-width: 14ch; }
.way.dark .eyebrow { color: var(--topaz-bright); }
.steps { list-style: none; counter-reset: s; margin: 30px 0 34px; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.steps li::before {
  content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; background: rgba(11, 122, 85, 0.12); color: var(--emerald);
}
.way.dark .steps li::before { background: rgba(240, 176, 63, 0.16); color: var(--topaz-bright); }
.steps strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.steps span { color: var(--ink-2); font-size: 16px; }
.way.dark .steps span { color: rgba(247, 244, 236, 0.72); }
.way .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } .way { padding: 30px 24px; } }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature .badge { margin-bottom: 18px; }
.feature h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 16px; }
.feature .pill { margin-top: 14px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Dark band (the long game) ---------- */
.band { background: var(--emerald-deep); color: var(--paper); position: relative; overflow: hidden; }
.band .eyebrow { color: var(--topaz-bright); }
.band .section-head p { color: rgba(247, 244, 236, 0.74); }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.band-card { padding: 26px; border-radius: var(--radius); background: rgba(247, 244, 236, 0.06); border: 1px solid rgba(247, 244, 236, 0.12); display: flex; flex-direction: column; gap: 12px; }
.band-card .badge { background: rgba(247, 244, 236, 0.1); color: var(--topaz-bright); }
.band-card h3 { font-size: 21px; font-weight: 600; }
.band-card p { color: rgba(247, 244, 236, 0.72); font-size: 15.5px; }
.band-card .pill { align-self: flex-start; margin-top: auto; }
.band-foot { margin-top: 36px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: rgba(247, 244, 236, 0.8); }
@media (max-width: 1000px) { .band-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .band-grid { grid-template-columns: 1fr; } }

/* ---------- Area ---------- */
.area { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.area-map { background: var(--paper-2); border-radius: 28px; border: 1px solid var(--line); padding: 10px; }
.area-map svg { width: 100%; height: auto; }
.town-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.town-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color 0.15s ease, transform 0.15s ease; }
.town-list a:hover { border-color: var(--emerald); transform: translateY(-2px); }
.town-list small { color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .town-list { grid-template-columns: 1fr; } }

/* ---------- CTA + forms ---------- */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 52px; box-shadow: var(--shadow-sm); }
.cta h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; margin-top: 14px; }
.cta ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; color: var(--ink-2); }
.cta li { display: flex; gap: 10px; align-items: flex-start; }
.cta li .icon { color: var(--emerald); margin-top: 3px; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; padding: 30px 22px; gap: 30px; } }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span, .field > legend { font-size: 14px; font-weight: 600; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: #fff; font-size: 16px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(11, 122, 85, 0.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.check-chips label { position: relative; cursor: pointer; }
.check-chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check-chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 14.5px; font-weight: 500; background: #fff; transition: all 0.12s ease; }
.check-chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.check-chips input:focus-visible + span { outline: 3px solid var(--sapphire); outline-offset: 2px; }
.form-note { font-size: 13.5px; color: var(--muted); }
/* Honeypot (protect.js): off screen for people, still in the DOM for bots. */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.form-success { text-align: center; padding: 30px 10px; display: grid; gap: 12px; justify-items: center; }
.form-success .badge { width: 60px; height: 60px; border-radius: 20px; background: rgba(11, 122, 85, 0.12); color: var(--emerald); }
.form-success .badge .icon { width: 30px; height: 30px; }
.form-success h3 { font-size: 26px; }
.form-success p { color: var(--ink-2); max-width: 36ch; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; border-radius: 28px; background: var(--paper); color: var(--ink); width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--shadow-lg); overflow: auto; }
dialog::backdrop { background: rgba(10, 47, 36, 0.55); backdrop-filter: blur(4px); }
dialog[open] { animation: pop 0.2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.dlg { padding: 32px; position: relative; }
.dlg-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.dlg-close:hover { background: var(--paper-2); }
.dlg h2 { font-size: 32px; font-weight: 700; margin: 14px 0 8px; padding-right: 36px; }
.dlg > p { color: var(--ink-2); }
.dlg .form { margin-top: 22px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.fact small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fact strong { font-weight: 600; font-size: 16px; line-height: 1.3; display: block; margin-top: 2px; }
.fact.wide { grid-column: 1 / -1; }
.dlg-spots { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.dlg-actions { margin-top: 22px; display: grid; gap: 10px; }
.dlg-actions .form-note { text-align: center; }
@media (max-width: 560px) {
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 26px 26px 0 0; max-height: 92dvh; }
  .dlg { padding: 26px 20px 28px; }
  .dlg h2 { font-size: 27px; }
}

/* ---------- Explore page ---------- */
.page-head { padding: 52px 0 26px; }
.page-head h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.03em; margin-top: 14px; }
.page-head .lede { margin-top: 14px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: rgba(240, 176, 63, 0.16); border: 1px solid rgba(201, 127, 10, 0.3); font-size: 15px; color: #5c3d06; margin-top: 22px; max-width: 760px; }
.notice .icon { color: var(--topaz); margin-top: 2px; }

.filters { position: sticky; top: 68px; z-index: 20; background: rgba(247, 244, 236, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); padding: 14px 0; }
.filters .wrap { display: grid; gap: 12px; }
.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { flex: 1 1 240px; position: relative; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: 11px 14px 11px 42px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-size: 16px; }
.search input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(11, 122, 85, 0.14); }
.select { position: relative; }
.select select { appearance: none; padding: 11px 36px 11px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 500; font-size: 15.5px; cursor: pointer; }
.select select.is-set { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.select::after { content: ''; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 500; font-size: 15.5px; cursor: pointer; }
.toggle input { accent-color: var(--emerald); width: 16px; height: 16px; margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap; transition: all 0.12s ease; }
.chip .icon { width: 17px; height: 17px; color: var(--hue, var(--ink-2)); }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed='true'] .icon { color: var(--paper); }
@media (max-width: 720px) {
  .filters { position: static; }
  .filter-row .select { flex: 1 1 calc(50% - 5px); }
  .filter-row .select select { width: 100%; }
  .toggle { flex: 1 1 100%; justify-content: center; }
}
.results { padding: 28px 0 96px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--ink-2); font-size: 15.5px; gap: 12px; }
.results-bar button { background: none; border: 0; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 4px; }
.empty { text-align: center; padding: 64px 20px; border: 1.5px dashed var(--line-strong); border-radius: 28px; display: grid; gap: 14px; justify-items: center; }
.empty h2 { font-size: 30px; }
.empty p { color: var(--ink-2); max-width: 44ch; }
.empty .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- Organizers page ---------- */
.org-hero { padding: 64px 0 80px; }
.org-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.org-hero h1 { font-size: clamp(42px, 6vw, 74px); font-weight: 800; letter-spacing: -0.035em; margin-top: 18px; }
.org-hero .lede { margin-top: 22px; font-size: 20px; }
.org-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
@media (max-width: 960px) { .org-hero .wrap { grid-template-columns: 1fr; } }

.dash { background: var(--card); border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1deg); }
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dash-bar strong { font-family: var(--font-display); font-size: 18px; }
.dash-body { padding: 20px; display: grid; gap: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat small { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; }
.stat strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.stat span { font-size: 13px; color: var(--muted); }
.roster { list-style: none; padding: 0; margin: 0; display: grid; }
.roster li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 15px; }
.roster .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: color-mix(in srgb, var(--hue) 14%, #fff); color: var(--hue); }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.tag.ok { background: rgba(11, 122, 85, 0.12); color: var(--emerald); }
.tag.wait { background: rgba(201, 127, 10, 0.15); color: #8a5704; }
.tag.no { background: rgba(16, 35, 28, 0.07); color: var(--muted); }
.dash-cap { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
@media (max-width: 960px) { .dash { transform: none; } }
@media (max-width: 420px) { .roster li { grid-template-columns: 34px 1fr auto; } .roster .tag:last-child { display: none; } .stat strong { font-size: 21px; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare > div { border-radius: 28px; padding: 36px; }
.compare .before { background: var(--paper-2); border: 1px solid var(--line); }
.compare .after { background: var(--emerald-deep); color: var(--paper); }
.compare h3 { font-size: 26px; margin-bottom: 20px; }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.compare li { display: flex; gap: 12px; align-items: flex-start; }
.compare .before li { color: var(--ink-2); }
.compare .before .icon { color: var(--ruby); margin-top: 3px; }
.compare .after .icon { color: var(--topaz-bright); margin-top: 3px; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } .compare > div { padding: 28px 22px; } }

.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 19px; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; font-weight: 400; color: var(--emerald); line-height: 1; transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding-bottom: 22px; max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--emerald-deep); color: rgba(247, 244, 236, 0.75); padding: 64px 0 36px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--paper); font-size: 22px; }
.site-footer .brand small { color: rgba(247, 244, 236, 0.6); }
.site-footer p { margin-top: 16px; max-width: 36ch; font-size: 15.5px; }
.site-footer h4 { font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 244, 236, 0.5); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer ul a:hover { color: var(--paper); text-decoration: underline; }
.foot-base { grid-column: 1 / -1; border-top: 1px solid rgba(247, 244, 236, 0.14); padding-top: 22px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Account ---------- */
.account { display: grid; gap: 20px; max-width: 860px; }
.account-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-sm); }
.account-card h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.account-card h3 { font-size: 18px; margin: 22px 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.account-card h3 small { font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.account-card > .form { max-width: 440px; }
.account-notice { margin-top: 0; }
.load-error { width: min(var(--wrap), 100% - 40px); margin: 20px auto 0; }
.reg-list { list-style: none; padding: 0; margin: 0; }
.reg { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.reg-list .reg:first-child { border-top: 0; }
.reg-main { display: grid; gap: 2px; min-width: 0; }
.reg-main strong { font-weight: 600; overflow-wrap: anywhere; }
.reg-main small { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.reg-tags, .reg-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.reg-error { grid-column: 1 / -1; font-size: 14px; color: var(--ruby); }
.account-foot { font-size: 14.5px; color: var(--muted); }
.account-foot button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) {
  .account-card { padding: 20px; border-radius: 20px; }
  .reg { grid-template-columns: 1fr; }
}
