/* ==========================================================================
   Markham Eid Bazaar
   Emerald + gold, arches and an eight-point star pattern.
   ========================================================================== */

:root {
  --emerald: #0f4c3a;
  --emerald-deep: #0a3428;
  --emerald-soft: #e3efe8;
  --gold: #c9a227;
  --gold-soft: #f3d98b;
  --gold-pale: #fbf1d6;
  --cream: #fbf7ef;
  --sand: #f2eadb;
  --ink: #1d2420;
  --muted: #5f665f;
  --line: #e6dccb;
  --rose: #9b3d4a;
  --white: #fff;
  --danger: #a8322d;
  --ok: #17694f;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(10, 52, 40, .06), 0 8px 28px rgba(10, 52, 40, .08);
  --shadow-lg: 0 18px 50px rgba(10, 52, 40, .18);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c9a227' stroke-opacity='.22' stroke-width='1.2'%3E%3Cpath d='M32 10l6.4 15.6L54 32l-15.6 6.4L32 54l-6.4-15.6L10 32l15.6-6.4z'/%3E%3Cpath d='M16.4 16.4h31.2v31.2H16.4z'/%3E%3Cpath d='M0 0l10 10M64 0L54 10M0 64l10-10M64 64L54 54'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-underline-offset: 3px; }
a:hover { color: var(--emerald-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--emerald-deep); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-sand { background: var(--sand); }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 560px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--font-body); padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-deep); color: #fff; box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--emerald-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--emerald-deep); }
.btn-ghost { background: transparent; color: var(--emerald); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--emerald-deep); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-link { background: none; border: 0; padding: 0; color: var(--emerald); font: inherit; cursor: pointer; text-decoration: underline; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(10,52,40,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--emerald-deep); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-logo { height: 48px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav ul a:hover { background: var(--sand); }
.site-nav ul a[aria-current="page"] { color: var(--emerald); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-cta { display: flex; gap: 8px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; height: 2px; background: var(--emerald-deep); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 76px 0 auto 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; max-height: calc(100vh - 76px); overflow-y: auto; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav ul a[aria-current="page"] { box-shadow: none; color: var(--gold); }
  .nav-cta .btn { flex: 1; }
}
@media (max-width: 420px) { .brand-text { font-size: 1.05rem; } }

/* ---------- alerts / badges */
.flash-wrap { padding-top: 16px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 12px; font-weight: 500; border: 1px solid; }
.alert-success { background: #e7f4ed; border-color: #b9dcc9; color: var(--ok); }
.alert-error { background: #fbeaea; border-color: #efc4c2; color: var(--danger); }
.alert-info { background: var(--gold-pale); border-color: #ecd99a; color: #6b5310; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--muted); }
.badge-approved, .badge-open, .badge-yes { background: #e2f2e9; color: var(--ok); }
.badge-pending { background: var(--gold-pale); color: #7a5d0b; }
.badge-rejected, .badge-no { background: #fbeaea; color: var(--danger); }
.badge-waitlist { background: #e8ecf6; color: #384b7a; }
.badge-past { background: #ececec; color: #666; }

/* ---------- hero carousel */
.hero { position: relative; background: var(--emerald-deep); color: #fff; overflow: hidden; isolation: isolate; }
.hero-track { position: relative; min-height: clamp(520px, 78vh, 720px); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-bg.is-pattern { background: var(--star) 0 0 / 64px 64px, radial-gradient(ellipse at 80% 20%, #1a6b52 0%, var(--emerald-deep) 60%); }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,40,31,.92) 0%, rgba(8,40,31,.72) 45%, rgba(8,40,31,.25) 100%); }
.hero-content { position: relative; max-width: 660px; padding: 64px 0 96px; }
.hero h1, .hero h2 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.1rem); margin-bottom: 16px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.86); max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 28px; font-weight: 500; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--gold-soft); flex: none; }
.hero-arch { position: absolute; right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); bottom: 0; width: min(36vw, 400px); aspect-ratio: 3/4; border-radius: 999px 999px 0 0; border: 2px solid rgba(243,217,139,.55); border-bottom: 0; pointer-events: none; }
.hero-arch::after { content: ""; position: absolute; inset: 14px 14px 0; border-radius: inherit; border: 1px solid rgba(243,217,139,.3); border-bottom: 0; }
@media (max-width: 860px) { .hero-arch { display: none; } .hero-slide::before { background: rgba(8,40,31,.78); } }

.countdown { display: flex; gap: 10px; margin: 0 0 28px; }
.countdown div { min-width: 70px; padding: 10px 8px 8px; text-align: center; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(243,217,139,.3); }
.countdown b { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.countdown small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

.hero-controls { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; }
.hero-controls .container { display: flex; align-items: center; gap: 16px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); cursor: pointer; transition: background .2s, width .2s; }
.hero-dots button[aria-current="true"] { background: var(--gold); width: 44px; }
.hero-arrows { display: flex; gap: 8px; margin-left: auto; }
.hero-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.15); color: #fff; cursor: pointer; font-size: 1.2rem; }
.hero-arrows button:hover { background: #fff; color: var(--emerald-deep); }

/* ---------- page hero (inner pages) */
.page-hero { position: relative; background: var(--star) 0 0 / 64px 64px, var(--emerald-deep); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero p { color: rgba(255,255,255,.84); max-width: 640px; font-size: 1.1rem; margin: 0; }
.page-hero.has-image { background: var(--emerald-deep); }
.page-hero .ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.page-hero .container { position: relative; }
.crumbs { font-size: .9rem; margin-bottom: 16px; }
.crumbs a { color: var(--gold-soft); }

/* ---------- cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 24px; }

.event-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.event-card .thumb { position: relative; aspect-ratio: 16/10; background: var(--star) 0 0 / 48px 48px, var(--emerald); }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.date-chip { position: absolute; left: 16px; top: 16px; background: var(--cream); border-radius: 12px; padding: 8px 12px; text-align: center; line-height: 1; box-shadow: var(--shadow); }
.date-chip b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--emerald-deep); }
.date-chip small { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.event-card h3 { margin-bottom: 6px; }
.event-card .meta { color: var(--muted); font-size: .95rem; margin: 0; }
.event-card .card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.event-card .go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--emerald); }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.cat { position: relative; padding: 22px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: 999px 999px var(--radius) var(--radius); text-align: center; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, transform .2s; }
.cat:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--emerald); }
.cat svg { width: 28px; height: 28px; margin: 8px auto 10px; display: block; color: var(--gold); }

/* vendors */
.vendor-card { display: flex; flex-direction: column; height: 100%; }
.vendor-card .v-logo { aspect-ratio: 4/3; background: var(--sand); display: grid; place-items: center; border-radius: 999px 999px 0 0; margin: 14px 14px 0; overflow: hidden; }
.vendor-card .v-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 14px; }
.vendor-card .v-initials { font-family: var(--font-display); font-size: 2.6rem; color: var(--emerald); }
.vendor-card .card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 18px; }
.vendor-card h3 { margin: 0; font-size: 1.15rem; }
.vendor-card .cat-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.vendor-card p { font-size: .95rem; color: var(--muted); margin: 0; }
.vendor-links { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; font-size: .92rem; font-weight: 600; }

/* sponsors */
.sponsor-tier + .sponsor-tier { margin-top: 44px; }
.sponsor-tier h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 18px; }
.sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.sponsor { display: grid; place-items: center; width: 200px; height: 110px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--emerald-deep); font-family: var(--font-display); font-weight: 600; text-align: center; transition: border-color .2s, box-shadow .2s; }
.sponsor:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.sponsor img { max-height: 70px; width: auto; object-fit: contain; }
.tier-title .sponsor { width: 300px; height: 150px; }
.tier-title .sponsor img { max-height: 110px; }
.sponsor-detail { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; padding: 22px; }
.sponsor-detail .sponsor { width: 180px; height: 110px; }
@media (max-width: 600px) { .sponsor-detail { grid-template-columns: 1fr; } .sponsor { width: 150px; height: 90px; } }

/* cta band */
.cta-band { position: relative; background: var(--star) 0 0 / 64px 64px, var(--emerald); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .eyebrow { color: var(--gold-soft); }
.cta-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.cta-steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(243,217,139,.25); border-radius: 12px; padding: 12px 16px; }
.cta-steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--emerald-deep); font-weight: 700; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- gallery */
.album-card { text-decoration: none; color: inherit; }
.album-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.album-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover .thumb img { transform: scale(1.05); }
.album-card .count { color: var(--muted); font-size: .9rem; margin: 0; }
.photo-grid { columns: 4 240px; column-gap: 14px; }
.photo-grid a { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: 12px; overflow: hidden; position: relative; }
.photo-grid img { width: 100%; transition: transform .4s, filter .3s; }
.photo-grid a:hover img { transform: scale(1.03); filter: brightness(.92); }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 12px; }
.photo-strip a { border-radius: 14px; overflow: hidden; }
.photo-strip a:first-child { grid-column: span 2; grid-row: span 2; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-strip a:hover img { transform: scale(1.05); }
@media (max-width: 720px) { .photo-strip { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 20, 16, .95); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #eee; margin-top: 12px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 60px 8px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* ---------- event page */
.event-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.event-aside { position: sticky; top: 96px; }
.info-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 16px; }
.info-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.info-list svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.info-list strong { display: block; color: var(--emerald-deep); }
.map-embed { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); }
.prose { font-size: 1.05rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
@media (max-width: 900px) { .event-layout { grid-template-columns: 1fr; } .event-aside { position: static; } }

/* ---------- forms */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.req { color: var(--rose); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=password], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(15,76,58,.12); }
input[type=file] { font: inherit; font-size: .95rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--emerald); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.errors { background: #fbeaea; border: 1px solid #efc4c2; color: var(--danger); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--font-display); font-size: 1.3rem; color: var(--emerald-deep); margin-bottom: 14px; padding: 0; }
.fieldset + .fieldset { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }

.tabs { display: inline-flex; background: var(--sand); padding: 5px; border-radius: 999px; margin-bottom: 28px; }
.tabs a { padding: 11px 22px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; }
.tabs a[aria-current="page"] { background: #fff; color: var(--emerald); box-shadow: var(--shadow); }

.success-panel { text-align: center; padding: clamp(32px, 6vw, 60px); }
.success-icon { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; background: var(--emerald-soft); color: var(--emerald); display: grid; place-items: center; }
.success-icon svg { width: 38px; height: 38px; }

/* waiver */
.waiver-text { max-height: 420px; overflow-y: auto; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; font-size: .96rem; }
.waiver-text h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 1.2em 0 .4em; color: var(--emerald-deep); }
.waiver-text h3:first-child { font-family: var(--font-display); font-size: 1.3rem; margin-top: 0; }
.waiver-text ul { padding-left: 1.2em; }
.sig-wrap { position: relative; border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; touch-action: none; }
.sig-wrap.is-focus { border-color: var(--emerald); }
.sig-wrap canvas { display: block; width: 100%; height: 190px; cursor: crosshair; border-radius: var(--radius); }
.sig-line { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1px solid #c9bfae; pointer-events: none; }
.sig-placeholder { position: absolute; left: 24px; bottom: 16px; color: #a69c8b; font-size: .85rem; pointer-events: none; }
.sig-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .9rem; color: var(--muted); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; align-items: end; }
.filters .field { min-width: 200px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; }
.chip:hover { border-color: var(--emerald); }
.chip[aria-current="true"] { background: var(--emerald); border-color: var(--emerald); color: #fff; }

.empty { text-align: center; padding: 48px 24px; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.empty h3 { color: var(--ink); }

/* ---------- footer */
.site-footer { position: relative; background: var(--emerald-deep); color: rgba(255,255,255,.8); margin-top: 0; overflow: hidden; }
.footer-pattern { position: absolute; inset: 0; background: var(--star) 0 0 / 64px 64px; opacity: .5; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 64px; padding-bottom: 40px; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-soft); margin-bottom: 8px; }
.footer-h { font-weight: 700; color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.footer-links, .socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.socials a { display: inline-block; padding: 6px 14px; border: 1px solid rgba(243,217,139,.4); border-radius: 999px; font-size: .88rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 28px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- print (waiver copies) */
@media print {
  .site-header, .site-footer, .no-print, .admin-side { display: none !important; }
  body { background: #fff; }
  .card, .form-card { box-shadow: none; }
}

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-body { background: #f4f1ea; font-size: 15px; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--emerald-deep); color: #fff; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: var(--gold-soft); padding: 0 10px 18px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 14px; }
.admin-side .brand-text { font-size: 1.05rem; }
.admin-side nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; }
.admin-side nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side nav a[aria-current="page"] { background: rgba(243,217,139,.16); color: var(--gold-soft); }
.admin-side .count { background: var(--gold); color: var(--emerald-deep); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 2px 8px; }
.admin-side .side-foot { margin-top: 18px; padding: 14px 12px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.6); }
.admin-side .side-foot a { color: var(--gold-soft); }
.admin-main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.admin-top h1 { font-size: 1.8rem; margin: 0; }
.admin-main .card { margin-bottom: 22px; }
.admin-main .card-body { padding: 22px; }
.admin-main .flash-wrap { padding: 0; }
.admin-main .flash-wrap.container { max-width: none; }
.admin-menu-btn { display: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .admin-side.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .admin-menu-btn { display: inline-flex; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--emerald-deep); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: #fcfaf5; }
table.data .thumb-sm { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--sand); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline-form select { padding: 6px 10px; font-size: .88rem; width: auto; }
.btn-xs { padding: 6px 12px; font-size: .82rem; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; }
.admin-filters select, .admin-filters input { width: auto; min-width: 160px; padding: 9px 12px; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.admin-photo { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.admin-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.admin-photo .p-body { padding: 10px; display: grid; gap: 6px; font-size: .85rem; }
.admin-photo .p-body input { padding: 6px 8px; font-size: .85rem; }
.admin-photo .is-cover { outline: 3px solid var(--gold); }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; margin: 0; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; word-break: break-word; }
@media (max-width: 600px) { .dl { grid-template-columns: 1fr; } .dl dt { margin-top: 8px; } }
.sig-img { max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--star) 0 0 / 64px 64px, var(--emerald-deep); }
.login-card { width: 100%; max-width: 420px; }
