/* Yaaran styles. Mobile-first; main breakpoints at 600px, 900px and 1024px (full header). */

:root {
  --bg: #fbf6ee;
  --bg-2: #f3eadb;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #5f5a52;
  --line: #e7decf;
  --input-line: #9a8e7c;
  --brand: #0e5e4e;
  --brand-2: #0a4a3d;
  --brand-soft: #dcefe8;
  --accent: #f4a52e;
  --accent-soft: #fdebcb;
  --women: #9c2c6b;
  --women-soft: #f9e3ef;
  --sky: #1f4f7a;
  --sky-soft: #e3eef8;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(28 26 23 / 0.05), 0 12px 32px -14px rgb(28 26 23 / 0.18);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 8vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 5vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 760px; }
@media (min-width: 600px) { .wrap { padding-inline: 24px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }
.small { font-size: 0.875rem; color: var(--muted); }
.center { text-align: center; }

svg.i {
  width: 22px; height: 22px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 50px; padding: 0 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.15 var(--body); text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn svg.i { width: 20px; height: 20px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--accent-soft); color: var(--brand-2); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #e6951c; color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(251 246 238 / .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.4rem/1 var(--display); letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo svg { width: 34px; height: 34px; }
.nav { display: none; }
.nav a { color: var(--ink); font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"] { font-weight: 600; }
/* Below 1024px the nav is a drop-down opened by the menu button. */
.nav.open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  padding: 4px 16px 16px; background: var(--bg);
  border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgb(28 26 23 / .25);
}
.nav.open > a, .menu-account > * { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.menu-account { display: flex; flex-direction: column; }
.menu-account .link-btn { text-align: left; color: var(--ink); text-decoration: none; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.bell { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); }
.bell:hover { background: var(--bg-2); color: var(--ink); }
.bell-count {
  position: absolute; top: 2px; right: 0; display: grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700;
}
.account-slot { display: none; }
.account-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--bg-2); }
@media (max-width: 599px) {
  .logo { gap: 8px; font-size: 1.25rem; }
  .logo svg { width: 30px; height: 30px; }
}
@media (min-width: 1024px) {
  .nav, .nav.open {
    display: flex; flex-direction: row; gap: 24px; position: static;
    margin-left: 28px; padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav.open > a { padding: 0; border: 0; font-size: 1rem; }
  .menu-only { display: none !important; }
  .account-slot { display: inline-flex; align-items: center; gap: 14px; margin-left: 6px; flex-shrink: 0; white-space: nowrap; }
  .menu-btn { display: none; }
}
.link-btn {
  padding: 0; background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.demo-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; padding: 8px 16px;
  background: var(--ink); color: #f3eadb; font-size: .85rem; text-align: center;
}
.demo-bar .link-btn { color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: 28px 0 8px; overflow: hidden; }
.hero-grid { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .hero { padding: 40px 0 8px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: var(--brand);
  font-size: .875rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 3.7rem); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 90%, transparent 90%);
  padding: 0 .06em;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38ch; }
@media (min-width: 900px) { .lede { font-size: 1.25rem; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; margin: 0; padding: 0; font-size: .925rem; font-weight: 500; }
.trust-row li { display: flex; align-items: center; gap: 6px; }
.trust-row svg.i { width: 18px; height: 18px; color: var(--brand); stroke-width: 2.4; }

/* Hero illustration: two "tickets" and a group of avatars */
.hero-art { position: relative; width: 100%; max-width: 420px; margin: 0 auto; padding: 104px 0 28px; }
.ticket {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
}
.ticket-back {
  position: absolute; top: 0; left: 14%; right: -4px;
  background: var(--brand); color: #fff; border-color: transparent;
  padding: 16px 20px 72px; transform: rotate(3.5deg);
}
.ticket-back .t-when { color: var(--accent); }
.ticket-back .t-title { color: #fff; font-size: 1.1rem; }
.ticket-front { position: relative; transform: rotate(-1.5deg); }
.t-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.t-when { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--brand); }
.t-tag { font-size: .75rem; font-weight: 600; background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.t-title { font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.02em; margin: 8px 0 2px; }
.t-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.avatars { display: flex; align-items: center; margin: 20px 0 18px; }
.avatars span {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-left: -11px;
  border-radius: 50%; border: 3px solid var(--surface);
  background: var(--c); color: var(--t, #fff);
  font-size: .85rem; font-weight: 700;
}
.avatars span:first-child { margin-left: 0; }
.avatars .you {
  width: auto; height: 38px; margin-left: 8px; padding: 0 12px;
  background: var(--surface); color: var(--brand);
  border: 2px dashed var(--brand); border-radius: 999px;
}
.t-foot { font-size: .85rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }
.t-host { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; }
.t-host::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22a06b; }
.float-pill {
  position: absolute; left: -6px; bottom: 0; transform: rotate(-3deg);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--ink);
  font-size: .9rem; font-weight: 700;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow);
}
.float-pill svg.i { width: 18px; height: 18px; stroke-width: 2.6; }

/* ---------- sections ---------- */

.section { padding: 44px 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } }
.section-head { max-width: 660px; margin-bottom: 22px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head-row .section-head { margin-bottom: 0; }
.kicker {
  display: inline-block; margin-bottom: 14px;
  font: 700 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}

/* ---------- event cards ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  min-height: 42px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: 600 .925rem/1 var(--body); cursor: pointer;
}
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.event-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.event-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.event-card:hover { color: inherit; transform: translateY(-3px); border-color: #d6cab6; }
.ec-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ec-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--accent-soft); color: #7a4a06;
}
.ec-icon svg.i { width: 24px; height: 24px; }
[data-cat="sports"] .ec-icon { background: var(--brand-soft); color: var(--brand); }
[data-cat="outdoors"] .ec-icon { background: var(--sky-soft); color: var(--sky); }
[data-cat="creative"] .ec-icon { background: var(--women-soft); color: var(--women); }
[data-cat="study"] .ec-icon { background: var(--bg-2); color: var(--ink); }
.ec-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.badge-women { background: var(--women-soft); color: var(--women); }
.badge-hot { background: #fde4de; color: #9a3412; }
.badge-muted { background: var(--bg-2); color: var(--muted); }
.ec-date { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.ec-title { font: 700 1.25rem/1.2 var(--display); letter-spacing: -0.02em; margin: 4px 0 2px; }
.ec-meta { margin: 0; color: var(--muted); font-size: .95rem; }
.ec-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { font: 800 1.45rem/1 var(--display); letter-spacing: -0.02em; }
.price small { font: 500 .8rem var(--body); color: var(--muted); letter-spacing: 0; }
.seats { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .82rem; color: var(--muted); text-align: right; }
.seat-bar { display: block; width: 110px; height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.seat-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.empty {
  grid-column: 1 / -1; text-align: center;
  background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 36px 20px; color: var(--muted);
}
.events-foot { margin: 24px 0 0; color: var(--muted); }

/* ---------- how it works ---------- */

.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 42px 1fr; column-gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.steps li::before {
  content: counter(step); grid-row: span 2;
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; background: var(--accent);
  font: 800 1.2rem/1 var(--display);
}
@media (min-width: 700px) {
  .steps li { display: block; padding: 24px; }
  .steps li::before { margin-bottom: 18px; }
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
.price-note {
  display: flex; align-items: center; gap: 14px; margin-top: 20px;
  background: var(--brand-soft); border-radius: var(--radius); padding: 18px 22px;
}
.price-note p { margin: 0; }
.price-note svg.i { color: var(--brand); width: 26px; height: 26px; }

/* ---------- safety ---------- */

.safety { background: var(--brand); color: #e9f3ef; }
.safety h2 { color: #fff; }
.safety .kicker { color: var(--accent); }
.safety .section-head p { color: #c8e0d8; }
.safety-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-bottom: 32px; }
.safety-item { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius); padding: 22px; }
.safety-item svg.i { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.safety-item h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.safety-item p { margin: 0; font-size: .95rem; color: #c8e0d8; }

/* ---------- FAQ ---------- */

.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 44px 20px 0;
  font: 600 1.12rem/1.35 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-75%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { margin: 0; padding-bottom: 20px; max-width: 66ch; color: var(--muted); }

/* ---------- partners & CTA ---------- */

.duo { display: grid; gap: 16px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card { display: flex; flex-direction: column; align-items: flex-start; border-radius: var(--radius); padding: 20px; background: var(--accent-soft); }
.duo-card + .duo-card { background: var(--women-soft); }
.duo-card p { color: #4a4540; }
.duo-card .btn { margin-top: auto; }

.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 36px 20px; text-align: center; }
.cta-band h2 { color: #fff; max-width: 17ch; margin-inline: auto; }
.cta-band p { color: #cfc8bd; margin-bottom: 26px; }

/* ---------- footer ---------- */

.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 36px 0 22px; margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-grid > :first-child { grid-column: 1 / -1; }
.footer-grid > :first-child p { color: var(--muted); max-width: 36ch; margin-top: 12px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .footer-grid > :first-child { grid-column: auto; }
}
.site-footer h4 { font: 700 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.site-footer ul a { color: var(--ink); text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--muted); font-size: .85rem; }

/* ---------- shared cards & notices ---------- */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
@media (min-width: 600px) { .card { padding: 22px; } }
.card-title { font-size: 1.3rem; margin-bottom: 10px; }
.card > :last-child { margin-bottom: 0; }

.notice { display: flex; align-items: flex-start; gap: 14px; background: var(--accent-soft); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.notice p { margin: 0; }
.notice svg.i { margin-top: 2px; }
.notice-warn { background: var(--danger-soft); }
.notice-warn svg.i { color: var(--danger); }

.ticks { display: grid; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e5e4e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.page-head { padding: 28px 0 16px; }
.page-head h1 { font-size: clamp(2.1rem, 6.5vw, 3.2rem); }

/* ---------- event page ---------- */

.event-page { padding-top: 16px; padding-bottom: 32px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 12px; color: var(--muted); font-weight: 600; text-decoration: none; }
.back-link svg.i { width: 18px; height: 18px; }
.event-head { margin-bottom: 16px; }
.event-head .ec-top { justify-content: flex-start; align-items: center; }
.event-head .ec-icon { width: 52px; height: 52px; border-radius: 16px; }
.event-head .ec-icon svg.i { width: 32px; height: 32px; }
.event-head h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 6px 0 14px; }
.facts { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { display: flex; align-items: flex-start; gap: 10px; }
.facts svg.i { color: var(--brand); margin-top: 1px; }
/* ---------- forms ---------- */

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { margin-bottom: 22px; scroll-margin-top: 100px; }
.label { display: block; padding: 0; margin-bottom: 8px; font-weight: 600; }
.label .opt-tag { font-weight: 400; color: var(--muted); font-size: .875rem; }
.hint { margin: -4px 0 10px; font-size: .875rem; color: var(--muted); }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.input {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--input-line); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input::placeholder { color: #8f877b; }
textarea.input { min-height: 110px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1a17' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.phone-wrap { display: flex; }
.phone-wrap span {
  display: grid; place-items: center; padding: 0 14px;
  background: var(--bg-2); color: var(--muted); font-weight: 600;
  border: 1.5px solid var(--input-line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.phone-wrap .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.has-error .input, .has-error .phone-wrap span { border-color: var(--danger); }
.field-error { margin: 8px 0 0; color: var(--danger); font-size: .875rem; font-weight: 600; }
.field-error:empty { display: none; }

/* pill-style radio and checkbox options */
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  background: #fff; border: 1.5px solid var(--input-line); border-radius: 999px;
  font-weight: 500; cursor: pointer; user-select: none;
  transition: background-color .12s, border-color .12s, color .12s;
}
.opt span:hover { border-color: var(--brand); }
.opt input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt input[type="checkbox"]:checked + span::before { content: "✓"; font-weight: 700; }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.options.stack { flex-direction: column; }
.options.stack .opt { display: flex; }
.options.stack .opt span { flex: 1; border-radius: var(--radius-sm); padding: 12px 16px; }
.has-error .opt span { border-color: var(--danger); }

.rules { background: var(--bg); border: 1.5px dashed #cdbfa8; border-radius: var(--radius-sm); padding: 18px; margin: 4px 0 22px; }
.rules h4 { font-size: 1.05rem; margin-bottom: 10px; }
.rules ul { display: grid; gap: 6px; margin: 0 0 12px; padding-left: 1.1em; font-size: .95rem; }

.check { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--brand); }
.form-status { margin: 18px 0 0; color: var(--danger); font-weight: 600; }
.form-status:empty { display: none; }
/* ---------- content pages ---------- */

.prose { padding: 40px 0 16px; }
.prose h1 { font-size: clamp(2.1rem, 6.5vw, 3.2rem); }
.prose h2 { font-size: 1.45rem; letter-spacing: -0.015em; margin-top: 2em; }
.prose p, .prose li { max-width: 68ch; color: #3a3631; }
.prose li { margin-bottom: .45em; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.prose .tldr { background: var(--brand-soft); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.prose .tldr p:last-child, .prose .tldr ul:last-child { margin-bottom: 0; }

/* ---------- bands ---------- */


.done { text-align: center; padding: 40px 20px; }
.done .lede { margin-inline: auto; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.done .inline-actions { justify-content: center; }

.big-check { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; background: var(--brand); color: #fff; }
.big-check svg.i { width: 38px; height: 38px; stroke-width: 2.6; }
.prewrap { white-space: pre-line; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.92); color: #fff; }
.safety-tools h3.label { margin: 16px 0 8px; }
.safety-tools .inline-actions { flex-wrap: wrap; }
.sos { margin-top: 18px; padding: 14px 16px; border: 1.5px solid #f1c9c4; border-radius: var(--radius-sm); background: var(--danger-soft); }
.sos h3.label { margin-top: 0; color: var(--danger); }
#safety-form h3.label { margin: 18px 0 4px; }
.count-pill {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px; vertical-align: middle;
  border-radius: 999px; background: var(--accent); color: var(--ink); font: 700 .78rem/1 var(--body); letter-spacing: 0;
}
.count-pill:empty { display: none; }

/* ---------- people and badges ---------- */

.avatar {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c, var(--brand)); color: #fff; font: 700 1rem/1 var(--body);
}
.avatar-sm { width: 28px; height: 28px; font-size: .8rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.8rem; }
.vbadge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.vbadge svg.i { width: 15px; height: 15px; }
.vbadge-id { color: var(--brand); }
.chip { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--bg-2); font-size: .875rem; }
.badge-green { background: var(--brand-soft); color: var(--brand); }
.badge-amber { background: var(--accent-soft); color: #7a4a06; }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.ec-by { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: .875rem; }
.ec-name { font-weight: 600; }
.ec-note { margin: 10px 0 0; font-size: .875rem; font-weight: 600; color: var(--brand); }

/* ---------- feed filters ---------- */

.filter-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end;
  margin-bottom: 24px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 900px) { .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto auto; padding: 16px 20px; } }
.filter { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.filter .input { min-height: 46px; padding-block: 8px; font-size: .95rem; font-weight: 400; color: var(--ink); }
.filter-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; font-weight: 600; cursor: pointer; }
.filter-toggle input { width: 22px; height: 22px; margin: 0; accent-color: var(--women); }
.filter-bar .link-btn { justify-self: start; min-height: 46px; }


/* ---------- activity page ---------- */

.poster-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.private-box { margin: 0 0 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--brand-soft); }
.private-row { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; overflow-wrap: anywhere; }
.private-row svg.i { margin-top: 2px; color: var(--brand); }
.private-box .small { margin: 0; }
.going { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .9rem; color: var(--muted); }
.req-list { display: grid; }
.req { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: 0; }
.req-body { flex: 1; min-width: 0; }
.req-name { margin: 0; font-weight: 600; }
.req-badges { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 0; }
.req-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 520px) {
  .req { flex-wrap: wrap; }
  .req-actions { width: 100%; justify-content: flex-start; padding-left: 52px; }
}
.share-out { margin-top: 18px; }
.share-out textarea { min-height: 170px; font-size: .9rem; }

/* ---------- post form ---------- */

.rule-box { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.rule-box p { margin: 0; }
.rule-box svg.i { margin-top: 2px; color: #7a4a06; }
.opt span svg.i { width: 18px; height: 18px; }
.input-short { max-width: 140px; }
.switch { position: relative; display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; flex-shrink: 0; width: 48px; height: 28px; margin-top: 1px; border-radius: 999px; background: #cfc5b4; transition: background-color .15s; }
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .15s;
}
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .45; }

/* ---------- log-in and profile ---------- */

.auth-card { max-width: 540px; margin-inline: auto; }
.input-code { max-width: 240px; font: 700 1.6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .4em; text-align: center; }
.demo-hint { margin: 20px 0 0; font-size: .9rem; }
.profile-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.profile-name { margin: 0 0 4px; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.profile-top .small, .profile-top .req-badges { margin: 0 0 4px; }
#p-interests { margin-bottom: 14px; }
.danger-zone { border-color: #f1c9c4; }

/* ---------- my activities ---------- */

.notes { margin: 0; padding: 0; list-style: none; }
.note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.note:last-child { border-bottom: 0; }
.note > :first-child { flex: 1; }
.note a { color: var(--ink); text-decoration: none; }
.note a:hover { color: var(--brand); text-decoration: underline; }
.note time { flex-shrink: 0; font-size: .8rem; color: var(--muted); }
.note.unread { font-weight: 600; }
.note.unread::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--danger); }
.tabs { display: flex; gap: 4px; margin: 28px 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-bottom: -1px; padding: 0 14px;
  background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted);
  font: 600 .95rem var(--body); white-space: nowrap; cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- admin ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); gap: 12px; margin-bottom: 8px; }
.stat { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stat-label { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-num { margin: 4px 0 2px; font: 800 1.9rem/1 var(--display); }
.stat-sub { margin: 0; font-size: .8rem; color: var(--muted); }
.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.review-head .ec-title { margin-bottom: 0; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.kv { display: grid; gap: 6px; margin: 0 0 14px; font-size: .92rem; }
.kv div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.kv dt { font-weight: 600; color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv div { grid-template-columns: 1fr; gap: 0; } }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.input-sm { flex: 1 1 220px; width: auto; min-height: 42px; padding: 8px 12px; font-size: .92rem; }
.quote { padding-left: 12px; border-left: 3px solid var(--line); color: #3a3631; }
.search-row { display: flex; gap: 8px; margin-bottom: 16px; }
.search-row .input { min-height: 44px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { background: var(--bg); color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.table tr:last-child td { border-bottom: 0; }
.row-actions { white-space: nowrap; }
.row-actions .btn { margin: 2px 6px 2px 0; }
.badges-cell .badge { margin: 0 4px 4px 0; }

/* ---------- dialog and toast ---------- */

.dialog {
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  border: 0; border-radius: var(--radius); box-shadow: 0 24px 64px rgb(0 0 0 / .3);
}
.dialog::backdrop { background: rgb(28 26 23 / .5); }
.dialog-body { padding: 24px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px);
  max-width: min(520px, calc(100% - 32px)); padding: 14px 20px; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; font-weight: 500; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- society: residents and teens ---------- */

.badge-resident { background: var(--brand-soft); color: var(--brand); }
.badge-teen { background: var(--sky-soft); color: var(--sky); }
.rbadge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--sky); white-space: nowrap; }
.rbadge svg.i { width: 15px; height: 15px; }
.place-group { margin: 14px 0 8px; font-size: .9rem; font-weight: 600; }
.place-group:first-of-type { margin-top: 0; }
.opt input:disabled + span { opacity: .45; cursor: not-allowed; }

/* ---------- about: founder ---------- */

.founder { display: flex; align-items: center; gap: 16px; margin: 8px 0 16px; }
.founder-name { margin: 0; font: 700 1.3rem/1.2 var(--display); color: var(--ink); }
.founder-title { margin: 2px 0 0; font-size: .95rem; color: var(--muted); }

/* The society's name is always shown in bold. */
[data-society] { font-weight: 700; }

.share-plan { margin-top: 16px; }
.share-plan .share-out { margin-top: 14px; }

/* ---------- plan chat ---------- */

.share-plan { display: flex; flex-wrap: wrap; gap: 10px; }
.share-plan .share-out { flex-basis: 100%; }
.chat { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; margin: 8px 0 14px; padding: 4px; }
.msg { max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--bg-2); }
.msg.mine { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--brand-soft); }
.msg-meta { margin: 0; font-size: .75rem; color: var(--muted); }
.msg-body { margin: 2px 0 0; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 8px; }
.chat-form .input { min-height: 44px; }

.day-head { grid-column: 1 / -1; margin: 12px 0 -4px; font-size: 1.15rem; }
.day-head:first-child { margin-top: 0; }

/* ---------- home: photo slideshow ---------- */

.slideshow { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity .7s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 34px;
  background: linear-gradient(transparent, rgb(0 0 0 / .6)); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .85); color: var(--ink); cursor: pointer;
}
.slide-nav:hover { background: #fff; }
.slide-nav.prev { left: 12px; }
.slide-nav.next { right: 12px; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px; }
.slide-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.slide-dots button::before { content: ""; display: block; width: 9px; height: 9px; margin: auto; border-radius: 50%; background: rgb(255 255 255 / .55); }
.slide-dots button[aria-current="true"]::before { background: #fff; width: 22px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* ---------- home: search ---------- */

.search-box { position: relative; grid-column: 1 / -1; }
.search-box > svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box .input { min-height: 52px; padding-left: 46px; padding-right: 46px; font-size: 1rem; }
.search-box .input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
}
.search-clear:hover { background: var(--bg-2); color: var(--ink); }
.search-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 4px; }
.search-chips .chip-btn { min-height: 34px; padding: 0 12px; font-size: .85rem; }

/* ---------- login popup ---------- */

.login-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; background: var(--bg); }
.login-dialog .dialog-body { padding: 8px 4px 16px; }
.login-dialog .auth-card { box-shadow: none; border: 0; margin: 0; background: none; }
.dialog-close {
  position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); cursor: pointer;
}
.signout-link { margin-left: 10px; font-size: .9rem; }
.login-link { font-weight: 600; text-decoration: none; }
/* Narrow laptops: the nav and both account buttons don't fit on one row, so keep only Sign up
   (it opens the same Google screen as Log in). */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav, .nav.open { gap: 18px; margin-left: 20px; }
  .login-link { display: none; }
}
#activities { padding-top: 16px; }
