/* Group Events customer pages, in the Marketplace's look. Scoped to .cl-page so nothing else changes. The football preset
   uses a pitch green; other presets swap only the accent through data-theme on .cl-page. */

.cl-page { --cl-accent: #13804F; --cl-deep: #0E3B24; --cl-soft: #E7F7EE; --cl-warn: #8A5A00; --cl-warn-soft: #FFF4D6; --cl-full: #9A2A10; --cl-full-soft: #FFE6DF; }
.cl-page[data-theme="pub"] { --cl-accent: #7A3E10; --cl-deep: #2A1608; --cl-soft: #F6EADF; }
.cl-page[data-theme="outdoor"] { --cl-accent: #1F6FB2; --cl-deep: #0C2F4F; --cl-soft: #E3EFFA; }
.cl-page[data-theme="warm"] { --cl-accent: #7B5CFF; --cl-deep: #2B1F66; --cl-soft: #EFEBFF; }
.cl-page[data-theme="celebrate"] { --cl-accent: #C2366F; --cl-deep: #4A1028; --cl-soft: #FCE8F0; }

.cl-hero { position: relative; border-radius: clamp(24px, 3.4vw, 40px); overflow: hidden; box-shadow: var(--mk-shadow); background: var(--cl-deep); color: #fff; display: grid; align-items: end;
  aspect-ratio: 2 / 1; min-height: 300px; max-height: 70vh; width: 100%; }
@media (min-width: 900px) { .cl-hero { aspect-ratio: 5 / 2; } }
.cl-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(6,24,14,.85)); }
.cl-hero-text { position: relative; z-index: 1; padding: clamp(18px, 4vw, 34px); display: grid; gap: 8px; }
.cl-hero h1 { color: #fff; font-size: clamp(28px, 5vw, 46px); }
.cl-hero p { margin: 0; color: rgba(255,255,255,.9); font-size: 17px; }
.cl-by { font-size: 14px; color: rgba(255,255,255,.85); font-weight: 600; }

.cl-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--mk-n100); color: var(--mk-n800); }
.cl-pill.ok { background: var(--cl-soft); color: var(--cl-accent); }
.cl-pill.few { background: var(--cl-warn-soft); color: var(--cl-warn); }
.cl-pill.full { background: var(--cl-full-soft); color: var(--cl-full); }
.cl-pill.change { background: #FFE9D6; color: #8A3B00; }
.cl-hero .cl-pill { box-shadow: none; }

.cl-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .cl-grid { grid-template-columns: minmax(0, 1fr) 380px; } .cl-side { position: sticky; top: 88px; } }
.cl-card { background: var(--mk-n100); border-radius: var(--mk-r-xl); box-shadow: var(--mk-shadow); padding: clamp(18px, 3vw, 26px); display: grid; gap: 12px; min-width: 0; scroll-margin-top: 96px; }
.cl-card h2 { font-size: 21px; }
.cl-card p { margin: 0; line-height: 1.6; }
.cl-facts { display: grid; gap: 12px; }
.cl-fact { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.cl-fact svg { color: var(--cl-accent); margin-top: 3px; }
.cl-fact strong { display: block; color: var(--mk-n800); }
.cl-fact span { color: var(--mk-n600); }
.cl-was { text-decoration: line-through; color: var(--mk-n500); }
.cl-addr { font-size: 17px; color: var(--mk-n800); }
.cl-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cl-big { font: 700 34px/1 var(--mk-font, inherit); letter-spacing: -0.02em; color: var(--mk-n800); }
.cl-meter { height: 10px; border-radius: 999px; background: var(--mk-n300); overflow: hidden; }
.cl-meter span { display: block; height: 100%; background: var(--cl-accent); border-radius: 999px; }
.cl-answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cl-answers button { min-height: 52px; border-radius: var(--mk-r); border: 0; box-shadow: inset 0 0 0 1.5px var(--mk-n300); background: var(--mk-n100); font: 700 15px/1.2 inherit; font-family: inherit; color: var(--mk-n800); cursor: pointer; }
.cl-answers button.on { background: var(--cl-accent); color: #fff; box-shadow: none; }
.cl-main-btn { width: 100%; background: var(--cl-accent) !important; }
.cl-note { padding: 12px 14px; border-radius: var(--mk-r); background: var(--cl-soft); color: var(--cl-deep); font-weight: 600; line-height: 1.5; }
.cl-note.warn { background: var(--cl-warn-soft); color: var(--cl-warn); }
.cl-note.demo { background: #FFF4D6; color: #6B4A00; }
.cl-teams { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.cl-team { border-radius: var(--mk-r-lg); padding: 14px; background: var(--mk-n200); display: grid; gap: 8px; align-content: start; }
.cl-team h3 { font-size: 16px; display: flex; justify-content: space-between; gap: 8px; }
.cl-team.a { background: #FFF3C4; } .cl-team.b { background: var(--cl-soft); }
.cl-player { display: flex; align-items: center; gap: 10px; }
.cl-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--mk-n800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.cl-player small { color: var(--mk-n500); display: block; font-size: 12px; }
.cl-dates { display: grid; gap: 12px; }
.cl-date { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--mk-r-lg); background: var(--mk-n100); box-shadow: var(--mk-shadow); color: inherit; }
.cl-day { display: grid; text-align: center; border-radius: var(--mk-r); background: var(--cl-soft); padding: 8px 4px; color: var(--cl-deep); }
.cl-day b { font-size: 24px; line-height: 1; }
.cl-day span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.cl-date-main { display: grid; gap: 4px; min-width: 0; }
.cl-date-main strong { color: var(--mk-n800); overflow-wrap: anywhere; }
.cl-date-main span { color: var(--mk-n500); font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .cl-date { grid-template-columns: 64px minmax(0, 1fr); } .cl-date .cl-pill { grid-column: 2; justify-self: start; } }
.cl-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cl-ecard { background: var(--mk-n100); border-radius: var(--mk-r-xl); box-shadow: var(--mk-shadow); overflow: hidden; display: grid; grid-template-rows: auto 1fr; color: inherit; transition: transform .15s ease; }
.cl-ecard:hover { transform: translateY(-2px); }
.cl-ecard img, .cl-ecard .cl-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--cl-deep); }
.cl-ecard-body { padding: 16px; display: grid; gap: 8px; align-content: start; }
.cl-ecard-body strong { font-size: 19px; color: var(--mk-n800); }
.cl-ecard-body span { color: var(--mk-n600); font-size: 14px; }
.cl-search { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .cl-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; } }
.cl-snacks { display: grid; gap: 10px; }
.cl-snack { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.cl-snack img { width: 64px; height: 64px; border-radius: var(--mk-r); object-fit: cover; }
.cl-snack form { display: flex; gap: 6px; align-items: center; margin: 0; }
.cl-snack .select { min-width: 70px; }
.cl-score { display: flex; align-items: center; gap: 14px; font: 700 28px/1 inherit; color: var(--mk-n800); flex-wrap: wrap; }
.cl-qr { width: 200px; max-width: 100%; margin: 0 auto; background: #fff; padding: 10px; border-radius: 14px; }
.cl-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.cl-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--mk-n300); }
.cl-lines li:first-child { border-top: 0; }
.cl-lines .total { font-weight: 700; font-size: 19px; color: var(--mk-n800); }
.cl-btn-disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .cl-ecard { transition: none; } }

/* Share: the native share sheet where the phone has one, plus WhatsApp, a text, an email and copy. */
.cl-share { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-share a, .cl-share button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--mk-n200, #e5e7eb);
  background: var(--mk-white, #fff); color: var(--mk-n800, #111); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; font-family: inherit; }
.cl-share .cl-share-main { background: var(--cl-accent, #1f8a4c); border-color: transparent; color: #fff; }
.cl-share [hidden] { display: none; }
.cl-share-done { font-size: 14px; color: var(--mk-n500, #6b7280); align-self: center; }
