/* One skin for every wrld3 page (organizer dashboard, sponsors, advertiser, passport): warm cream ground, white rounded
   cards, a floating pill top bar, pill buttons. It loads after each page's own stylesheet and only changes looks. */
@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
  :root { --bg: #F5F1E4; --soft: #EFEAD9; --line: #E4DDC6; --shadow: 0 10px 30px rgba(60, 50, 20, .09); }
}
body { letter-spacing: -.005em; }

/* floating top bar */
.top { position: sticky; top: 10px; z-index: 20; margin: 10px clamp(10px, 2vw, 24px) 6px; padding: 8px 10px 8px 16px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow, 0 8px 24px rgba(11, 11, 15, .08)); }
.top .brand img { border-radius: 12px; }
.top .link, .top .navlink { padding: 8px 15px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 700; font-size: 13px; text-decoration: none; transition: background .15s; }
.top .link:hover, .top .navlink:hover { background: var(--green); color: #0B0B0F; }
.top .link.on, .top .navlink.on { background: var(--solid); color: var(--on-solid); }
.status, .chip { background: var(--soft); }

/* cards and panels */
.panel, .mapwrap, .card { border-radius: 30px; }
.panel-head h2, .card h2, .hero h1 { letter-spacing: -.035em; }
.hero h1 { font-weight: 800; }

/* buttons: pills, with a quiet lift */
.btn { transition: transform .12s, filter .12s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn.primary, .btn.dark { box-shadow: 0 6px 16px rgba(11, 11, 15, .16); }
.btn.green { box-shadow: 0 6px 16px rgba(120, 160, 60, .3); }

/* small numbers strip on the organizer dashboard */
.kpis { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px clamp(10px, 2vw, 24px) 10px; }
.kpi { display: flex; align-items: baseline; gap: 8px; background: var(--card); border-radius: 999px; padding: 8px 16px; box-shadow: var(--shadow, none); }
.kpi b { font-size: 20px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi.green b { color: #3B7A12; }
@media (prefers-color-scheme: dark) { .kpi.green b { color: var(--green); } }

/* spot list: calmer rows */
.spots li.sel { background: color-mix(in srgb, var(--green) 18%, var(--card)); }
.tag.pub { background: var(--green); }

/* sponsor + passport pages: bigger, tighter headlines and rounder cover */
.h1, .name { letter-spacing: -.04em; }
.cover { border-radius: 40px; }

@media (max-width: 700px) { .top { border-radius: 28px; flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---- bento layout: wide, left-aligned, tiles of different sizes (no more centred column) ---- */
body > main:not(.grid):not(.xp) { max-width: none; margin: 0; padding: 6px clamp(10px, 2vw, 24px) 48px; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
body > main:not(.grid):not(.xp) > * { grid-column: 1 / -1; margin: 0; }
body > main:not(.grid):not(.xp) > .hero { grid-column: span 7; background: var(--green); color: #0B0B0F; border-radius: 36px; padding: clamp(22px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; }
main > .hero h1 { max-width: 16ch; } main > .hero p, main > .hero b { color: #1D2A0A; max-width: 58ch; }
body > main:not(.grid):not(.xp) > #s-connect, body > main:not(.grid):not(.xp) > #s-approval { grid-column: span 5; }
#s-create .two { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
#s-create .two > div:last-child { position: sticky; top: 84px; align-self: start; }
.card { text-align: left; }
@media (max-width: 980px) { body > main:not(.grid):not(.xp) > * { grid-column: 1 / -1 !important; } }

.xp .intro { background: var(--green); color: #0B0B0F; border-radius: 36px; padding: clamp(22px, 3.4vw, 44px); min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.xp .intro p, .xp .intro b { color: #1D2A0A; }

/* ---- header without a background, and motion ---- */
.top { position: static; background: transparent; box-shadow: none; border-radius: 0; margin: 6px clamp(10px, 2vw, 24px) 2px; padding: 8px 4px; }
.top .link, .top .navlink, .status, .chip, .eventchip { background: color-mix(in srgb, var(--card) 70%, transparent); }
.eventbox { position: relative; }
.eventchip { border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 12px; color: var(--ink); cursor: pointer; }
.eventchip:hover { background: var(--green); color: #0B0B0F; }
.eventchip.over { color: var(--danger); }
.eventform { position: absolute; right: 0; top: 42px; z-index: 30; width: 300px; background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.2)); animation: rise .25s both; }
.eventform label { display: grid; gap: 6px; font-weight: 700; font-size: 12px; } .eventform input { height: 40px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--soft); padding: 0 10px; }
.eventform .row2 { display: flex; gap: 8px; margin-top: 10px; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pop { from { opacity: 0; scale: .4; } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(12px, -10px); } }
.top, .kpi, .panel, .mapwrap, .card, .tile, main > .hero, .xp .intro { animation: rise .55s cubic-bezier(.2, .7, .2, 1) backwards; }
.kpi:nth-child(2) { animation-delay: .05s; } .kpi:nth-child(3) { animation-delay: .1s; } .kpi:nth-child(4) { animation-delay: .15s; } .kpi:nth-child(5) { animation-delay: .2s; }
.grid > :nth-child(1) { animation-delay: .1s; } .grid > :nth-child(2) { animation-delay: .2s; } .grid > :nth-child(3) { animation-delay: .3s; }
main > :nth-child(2) { animation-delay: .08s; } main > :nth-child(3) { animation-delay: .16s; } main > :nth-child(4) { animation-delay: .24s; } main > :nth-child(5) { animation-delay: .32s; }
.spots li { animation: rise .4s cubic-bezier(.2, .7, .2, 1) backwards; }
.spots li:nth-child(2) { animation-delay: .05s; } .spots li:nth-child(3) { animation-delay: .1s; } .spots li:nth-child(4) { animation-delay: .15s; } .spots li:nth-child(5) { animation-delay: .2s; } .spots li:nth-child(n+6) { animation-delay: .25s; }
.pin > i { animation: pop .45s cubic-bezier(.2, 1.5, .4, 1) backwards; }
.status.ok i { animation: breathe 2.2s infinite; }
main > .hero, .xp .intro { position: relative; overflow: hidden; }
main .hero-globe, main .hero-globe.maplibregl-map { position: absolute !important; right: -150px; top: -150px; width: 420px; height: 420px; pointer-events: none; z-index: 0; }
.hero-globe canvas { border-radius: 50%; }
main > .hero > *:not(.hero-globe), .xp .intro > *:not(.hero-globe) { position: relative; z-index: 1; }
.card:hover, .tile:hover { transform: translateY(-2px); transition: transform .2s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.xp .intro p { max-width: 44ch; }

/* ---- the sponsor tour (Shepherd.js), in the page's own look ---- */
.tourbtn { background: color-mix(in srgb, var(--card) 70%, transparent); }
.shepherd-modal-overlay-container.shepherd-modal-is-visible path { fill: rgba(8, 10, 14, .62); }
.shepherd-element.w3-tour { background: var(--card); color: var(--ink); border-radius: 24px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); max-width: 380px; font-family: inherit; animation: rise .3s both; }
.w3-tour .shepherd-arrow:before { background: var(--card); }
.w3-tour .shepherd-header { background: transparent; padding: 18px 20px 0; }
.w3-tour .shepherd-title { font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.w3-tour .shepherd-cancel-icon { color: var(--muted); font-size: 24px; }
.w3-tour .shepherd-text { color: var(--muted); font-size: 14px; line-height: 1.55; padding: 8px 20px 4px; }
.w3-tour .shepherd-footer { padding: 8px 20px 18px; gap: 8px; }
.w3-tour .shepherd-button { border-radius: 999px; height: 38px; padding: 0 18px; font-weight: 700; font-family: inherit; background: var(--solid); color: var(--on-solid); border: 0; }
.w3-tour .shepherd-button.shepherd-button-secondary { background: var(--soft); color: var(--ink); }
.w3-tour .shepherd-button:hover:not(:disabled) { filter: brightness(.95); background: var(--solid); color: var(--on-solid); }
.w3-tour .shepherd-button.shepherd-button-secondary:hover:not(:disabled) { background: var(--line); color: var(--ink); }
.shepherd-has-title .shepherd-content .shepherd-header { background: transparent !important; }
.shepherd-has-title .shepherd-content .shepherd-header h3, .w3-tour .shepherd-title { color: var(--ink) !important; }
.shepherd-element.w3-tour .shepherd-content { border-radius: 24px; }

/* ---- tour: clearer card, an outline on what it points at, and tags on the fields to fill ---- */
.shepherd-element.w3-tour { border: 2px solid var(--green); box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 22%, transparent), 0 24px 60px rgba(0, 0, 0, .4); }
.shepherd-has-title .shepherd-content .shepherd-header { background: var(--green) !important; border-radius: 20px 20px 0 0; padding: 14px 18px !important; display: flex; align-items: center; gap: 10px; }
.shepherd-has-title .shepherd-content .shepherd-header h3, .w3-tour .shepherd-title { color: #0B0B0F !important; flex: 1; }
.w3-tour .shepherd-cancel-icon { color: #0B0B0F !important; }
.w3-tour .shepherd-text { padding: 14px 20px 4px; color: var(--ink); opacity: .85; }
.w3-count { background: #0B0B0F; color: var(--green); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 3px 9px; letter-spacing: .04em; }
.w3-tour .shepherd-arrow:before { background: var(--green) !important; }
.shepherd-target { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 14px; animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { outline-color: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 50% { outline-color: #fff; box-shadow: 0 0 0 10px transparent; } }
.field { position: relative; }
.field.w3-todo { background: color-mix(in srgb, var(--green) 14%, transparent); outline: 3px solid var(--green); outline-offset: 6px; border-radius: 16px; animation: glow 1.6s ease-in-out infinite; }
.w3-tag { position: absolute; right: 0; top: -2px; background: var(--green); color: #0B0B0F; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 3px 10px; letter-spacing: .03em; pointer-events: none; }
@media (prefers-color-scheme: dark) { @media (prefers-reduced-motion: reduce) { .shepherd-target, .field.w3-todo { animation: none; } }

/* a field the sponsor skipped: red, with a tag, until it is filled */
:root { --miss: #B5483C; }
@media (prefers-color-scheme: dark) { :root { --miss: #C9675C; } }
.field.missing input:not([type=file]), .field.missing select { border-color: var(--miss); box-shadow: 0 0 0 3px color-mix(in srgb, var(--miss) 16%, transparent); }
.field.missing .drop { border-color: var(--miss); background: color-mix(in srgb, var(--miss) 8%, var(--card)); }
.field.missing > span:first-of-type { color: var(--miss); }
.field.missing > span:first-of-type::after { content: 'Required'; margin-left: 8px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--miss) 22%, transparent); color: var(--miss); }
#publishWrap { display: inline-block; } #publishWrap > .btn:disabled { pointer-events: none; }

/* ---- the spots panel: search, filters, a cleaner list ---- */
.grid { grid-template-columns: 350px minmax(0, 1fr) 400px; }
.list { overflow: hidden; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; }
.count-pill { font-size: 12px; font-weight: 800; letter-spacing: 0; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-variant-numeric: tabular-nums; }
.count-pill:empty { display: none; }
.listtools { padding: 0 14px 6px; display: grid; gap: 10px; }
.spot-search { position: relative; display: flex; align-items: center; }
.spot-search svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.spot-search input { width: 100%; min-width: 0; height: 42px; border: 1.5px solid var(--line, #E4DCC8); border-radius: 21px; padding: 0 16px 0 38px; font: inherit; font-size: 14px; background: var(--bg, #fff); color: inherit; }
.spot-search input:focus { outline: 3px solid color-mix(in srgb, var(--green, #8CC152) 45%, transparent); border-color: var(--green, #8CC152); }
.filters { display: grid; gap: 8px; }
.chips { display: flex; gap: 4px; padding: 3px; background: var(--soft); border-radius: 999px; }
.chips button { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; padding: 6px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.chips button:hover { color: var(--ink, #0B0B0F); }
.chips button.on { background: var(--card, #fff); color: var(--ink, #0B0B0F); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-row select { height: 36px; border: 1.5px solid var(--line, #E4DCC8); border-radius: 18px; padding: 0 12px; font: inherit; font-size: 12.5px; font-weight: 600; background: var(--bg, #fff); color: inherit; min-width: 0; }
.listmeta { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.listmeta .grow { flex: 1; }
.linkbtn { border: 0; background: transparent; color: var(--info, #0265AD); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.linkbtn:hover { text-decoration: underline; }
.spots { padding: 4px 10px 8px; }
.spots li { align-items: flex-start; gap: 12px; padding: 10px 10px; border-radius: 18px; }
.spots li .dot { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #0B0B0F; }
.spots li .li-body { min-width: 0; }
.spots li .name { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spots li .meta { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spots li .sub { margin-top: 6px; gap: 5px; }
.spots li.empty { cursor: default; color: var(--muted); display: block; text-align: center; padding: 28px 10px; }
.spots li.empty:hover { background: transparent; }

/* ---- pins and clusters on the map ---- */
/* never scale, rotate or animate the pin/cluster element itself: MapLibre positions it with a transform and a CSS scale would multiply that position. Everything visual is the child <i>. */
.pin > i { transition: box-shadow .2s, scale .2s; }
.pin.gone { display: none; }
.pin.sel > i { scale: 1.28; }
.pin:hover > i { box-shadow: 0 5px 16px rgba(0, 0, 0, .4); }
.cluster { width: 46px; height: 46px; cursor: pointer; }
.cluster > i { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 15px; color: #0B0B0F; background: var(--green, #8CC152); border: 4px solid rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .3), 0 0 0 7px color-mix(in srgb, var(--green, #8CC152) 35%, transparent); animation: pop .35s cubic-bezier(.2, 1.5, .4, 1) backwards; transition: scale .2s; }
.cluster:hover > i { scale: 1.08; }

/* ---- one header for every organizer page (scoped to header.top[data-page] so the public advertiser page keeps its own): brand, section tabs, quiet links ---- */
.top[data-page] { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; min-height: 56px; padding: 8px 4px; margin: 8px clamp(10px, 2vw, 24px) 4px; }
.top[data-page] .brand { gap: 12px; text-decoration: none; color: inherit; flex: 0 0 auto; }
.top[data-page] .brand picture img { height: 28px; }
.top[data-page] .brand em { position: relative; padding-left: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.top[data-page] .brand em::before { content: ''; position: absolute; left: 0; top: 50%; width: 1.5px; height: 18px; margin-top: -9px; background: var(--line, rgba(128, 128, 128, .35)); border-radius: 1px; }
.dnav { display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: inset 0 0 0 1.5px var(--line, rgba(128, 128, 128, .2)); }
.dnav a { padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; white-space: nowrap; }
.dnav a:hover { color: var(--ink); background: var(--soft); }
.dnav a[aria-current="page"] { background: var(--solid); color: var(--on-solid); }
.dlinks { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.dlinks a { font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 999px; transition: color .2s, background .2s; }
.dlinks a::after { content: ' ↗'; font-weight: 600; opacity: .6; }
.dlinks a:hover { color: var(--ink); background: var(--soft); }
.top[data-page] .status, .top[data-page] .eventchip { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 12.5px; font-weight: 700; border-radius: 999px; }
.top[data-page] .status { gap: 8px; }
.top[data-page] .status span { white-space: nowrap; }
.top[data-page] .eventchip { white-space: nowrap; }
@media (max-width: 1100px) { .dlinks { display: none; } }
@media (max-width: 760px) {
  .top[data-page] .brand em { display: none; }
  .dnav a { padding: 8px 12px; font-size: 13px; }
  .top[data-page] .grow { display: none; }
  .top[data-page] .status { order: 5; }
}

/* the intro card on the Events and Sponsors pages runs the full width instead of leaving half the row empty */
body:has(.top[data-page]) > main:not(.grid):not(.xp) > .hero { grid-column: 1 / -1; min-height: 220px; }
.pin > i.logo { padding: 4px; }
.pin > i.logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; display: block; }
