/* Lamela Gardens ticketing.
   Follows the Lamela Gardens website ("garden pavilion, brass service"): a white page, deep
   forest green as a surface (top strip, featured band, footer), brass as a hairline and small
   mark, Marcellus for display, Archivo for text, DM Mono for codes, pill buttons in spaced caps,
   one arch shape for the featured poster. The header carries the original Lamela Gardens logo. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/marcellus.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/dm-mono-500.woff2") format("woff2"); }

:root {
  /* surfaces */
  --canvas: #ffffff;
  --surface: #f6f4ef;      /* linen */
  --line: #dfe6de;         /* mist */
  --line-strong: #c3cec2;
  /* ink */
  --ink: #131a16;
  --ink-2: #33403a;
  --muted: #55625c;        /* slate */
  /* green, a surface colour */
  --brand: #16281f;        /* forest */
  --brand-hover: #06201a;  /* forest deep */
  --forest-deep: #06201a;
  --moss: #2e6b4f;
  /* brass, a line colour */
  --brass: #7c5c18;
  --brass-dark: #5c4310;
  --gold: #c9a227;
  --gold-pale: #f4ebd5;
  --hair-brass: rgba(201, 162, 39, .55);
  /* state */
  --ok: #1e7a4e;
  --ok-bg: rgba(30, 122, 78, .09);
  --warn: #a9711a;
  --warn-bg: rgba(169, 113, 26, .11);
  --bad: #a33327;
  --bad-bg: rgba(163, 51, 39, .09);
  --mpesa: #3ba935;
  --lift: 0 1px 2px rgba(19, 26, 22, .05), 0 12px 28px -18px rgba(19, 26, 22, .32);
  --lift-high: 0 2px 6px rgba(19, 26, 22, .07), 0 40px 80px -32px rgba(19, 26, 22, .45);
  --arch: 999px 999px 10px 10px;
  --round: 18px;
  --round-sm: 12px;
  --card-shadow: 0 1px 2px rgba(19, 26, 22, .04), 0 8px 24px -12px rgba(19, 26, 22, .14);
  --card-shadow-hover: 0 2px 4px rgba(19, 26, 22, .05), 0 22px 44px -18px rgba(19, 26, 22, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --display: "Marcellus", "Times New Roman", Georgia, serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font: 400 16px/1.62 var(--body); background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 .4em; font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.caps { font-size: .6875rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.kicker { display: inline-flex; align-items: center; gap: 9px; }
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--gold); flex: none; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-pale); color: var(--ink); }

/* ---------- top strip + header (the website's navbar: forest green on a brass rail) ---------- */
#header { display: contents; } /* server pages mount the header in a wrapper; let it stick to the page */
.top-strip { background: var(--forest-deep); color: rgba(242, 245, 241, .78); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.top-strip .wrap { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.top-strip a { color: var(--gold); text-decoration: none; }
.top-strip a:hover { color: #fff; }
@media (max-width: 767px) { .top-strip { display: none; } }
.site-header { background: var(--brand); color: #f2f5f1; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(201, 162, 39, .45); transition: box-shadow .2s ease; }
.site-header.stuck { box-shadow: 0 14px 30px -22px rgba(6, 32, 26, .9); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: #f4f7f3; flex-shrink: 0; line-height: 1; }
.brand-plate { display: inline-flex; background: #fff; border-radius: var(--round-sm); padding: 5px 10px; box-shadow: 0 0 0 1px rgba(201, 162, 39, .55); }
.brand-logo { height: 38px; width: auto; }
.brand-name { font-size: 9.5px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.site-nav { display: flex; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 12.5px; letter-spacing: .03em; padding: 8px 14px; color: rgba(242, 245, 241, .82); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .16s ease; }
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.header-search { position: relative; width: 210px; }
.header-search input { height: 36px; padding-left: 36px; border-radius: 999px; background: rgba(255, 255, 255, .1); border-color: transparent; color: #f2f5f1; font-size: .8125rem; }
.header-search input::placeholder { color: rgba(242, 245, 241, .6); }
.header-search input:hover { border-color: rgba(242, 245, 241, .3); }
.header-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .2); background: rgba(255, 255, 255, .14); }
.header-search svg { position: absolute; left: 13px; top: 11px; width: 14px; height: 14px; color: rgba(242, 245, 241, .7); }
.site-header .menu-btn { display: none; }
.mobile-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.mobile-nav[hidden] { display: none; }
.mobile-nav .btn { justify-content: flex-start; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
@media (max-width: 1023px) { .site-nav { display: none; } .site-header .menu-btn { display: inline-flex; } }
@media (max-width: 640px) {
  .site-header > .wrap { gap: 10px; flex-wrap: wrap; }
  .brand-logo { height: 32px; }
  .brand-name { display: none; }
  .header-search { order: 3; width: 100%; }
  .head-actions { flex-wrap: wrap; justify-content: flex-end; flex: 1; }
}

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border: 1px solid var(--ink); border-radius: 999px; padding: 12px 24px;
  font: 700 .75rem/1 var(--body); letter-spacing: .11em; text-transform: uppercase;
  background: var(--ink); color: var(--canvas); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s var(--ease), box-shadow .16s ease;
}
.btn:hover { background: #000; border-color: #000; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #f4f7f3; box-shadow: 0 10px 22px -16px rgba(14, 58, 43, .9); }
.btn.primary:hover:not(:disabled) { background: var(--brand-hover); border-color: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 16px 28px -16px rgba(14, 58, 43, .95); }
.btn.lg { min-height: 54px; padding: 16px 30px; font-size: .8rem; }
.btn .arrow { transition: transform .16s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1b1607; }
.btn.gold:hover:not(:disabled) { background: #b28d1c; border-color: #b28d1c; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover:not(:disabled) { background: var(--ink); color: var(--canvas); }
.btn.text { background: none; border: 0; color: var(--brass); padding: 8px 4px; min-height: 0; font-size: .875rem; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.btn.text:hover { background: none; color: var(--brand); }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(163, 51, 39, .45); }
.btn.danger:hover:not(:disabled) { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.sm { min-height: 34px; padding: 8px 15px; font-size: .6563rem; letter-spacing: .09em; }
.btn.block { width: 100%; }
label, .label { display: block; font-weight: 700; font-size: .6563rem; letter-spacing: .14em; text-transform: uppercase; margin: 18px 0 7px; color: var(--muted); }
input, select, textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--round-sm); border: 1px solid var(--line);
  background: var(--canvas); color: var(--ink); font: 400 .9375rem var(--body);
  transition: border-color .14s ease, box-shadow .14s ease;
}
input::placeholder, textarea::placeholder { color: #9aa79f; }
select {
  appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.55; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px rgba(46, 107, 79, .13); }
input[type=file] { height: auto; padding: 10px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); }
.error { color: var(--bad); font-weight: 600; font-size: .9rem; margin: 12px 0 0; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- generic blocks ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--round); padding: 24px; background: var(--canvas); color: var(--ink); box-shadow: var(--card-shadow); }
.page { padding: 48px 0 88px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -.01em; margin: 0; }
.crumbs { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--brass); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.pill, .status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .6563rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; border: 1px solid currentColor; }
.pill.valid, .pill.on { background: var(--ok-bg); color: var(--ok); }
.pill.used, .pill.off { background: var(--warn-bg); color: var(--warn); }
.pill.void { background: var(--bad-bg); color: var(--bad); }
.pill.neutral { background: rgba(99, 112, 106, .08); color: var(--muted); }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--round); background: var(--surface); }
.empty a { color: var(--brass); font-weight: 700; }

/* ---------- poster art (an engraved plate: colour field, brass hairline frame, Marcellus caps) ---------- */
.poster {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--round); overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; padding: 9%; color: var(--poster-ink, #f4ebd5); background: var(--poster-bg, #16281f);
  container-type: inline-size;
}
.poster::after { content: ""; position: absolute; inset: 4.5%; border: 1px solid var(--poster-line, rgba(201, 162, 39, .6)); border-radius: 8px; pointer-events: none; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster .p-top, .poster .p-bottom { position: relative; display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: max(8px, 3.3cqi); letter-spacing: .2em; text-transform: uppercase; color: var(--poster-accent, #c9a227); }
.poster .p-title { position: relative; font-family: var(--display); text-transform: uppercase; line-height: 1; letter-spacing: .02em; font-size: calc(var(--t, 13cqi) * .84); overflow-wrap: break-word; }
.poster.has-image::after { border-color: rgba(255, 255, 255, .55); }
.poster.has-image .p-top, .poster.has-image .p-title, .poster.has-image .p-bottom { display: none; }
.theme-green { --poster-bg: #16281f; --poster-ink: #f4ebd5; --poster-accent: #c9a227; }
.theme-sunset { --poster-bg: #b8232f; --poster-ink: #fff3ec; --poster-accent: #f4ebd5; --poster-line: rgba(255, 243, 236, .5); }
.theme-wine { --poster-bg: #4f1424; --poster-ink: #f4ebd5; --poster-accent: #c9a227; }
.theme-night { --poster-bg: #06201a; --poster-ink: #c9a227; --poster-accent: #f4ebd5; }
.theme-gold { --poster-bg: #c9a227; --poster-ink: #1b1607; --poster-accent: #16281f; --poster-line: rgba(27, 22, 7, .45); }

/* ---------- event listing ---------- */
/* Full-width colour bands inside the centred page column. */
.bleed { box-shadow: 0 0 0 100vmax var(--band-bg); clip-path: inset(0 -100vmax); background: var(--band-bg); }

/* The home hero is the website's arch hero: type on white to the left, the next event's poster
   framed in the pavilion arch on the right with an engraved plate over its foot. */
.featured { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
@media (min-width: 1024px) { .featured { grid-template-columns: 1fr 1fr; gap: 64px; } }
.featured .kicker { margin-bottom: 24px; }
.featured h1 { font-size: clamp(2.35rem, 4.9vw, 4.05rem); line-height: 1; letter-spacing: -.015em; margin: 0; }
.featured h1 a { text-decoration: none; color: inherit; }
.featured h1 .accent { color: var(--brass); }
.featured .lede { margin-top: 28px; }
.featured .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-stats dt { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.hero-stats dd { margin: 6px 0 0; font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.hero-art { position: relative; }
.arch-frame { display: block; border-radius: var(--arch); overflow: hidden; border: 1px solid var(--hair-brass); box-shadow: var(--lift); background: var(--surface); }
.hero-art .arch-frame { aspect-ratio: 4 / 5; max-height: 620px; }
.hero-art .poster { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; padding: 26% 11% 13%; }
.hero-art .poster::after { border-radius: 999px 999px 6px 6px; inset: 3.5%; }
.hero-art .poster .p-top, .hero-art .poster .p-bottom { justify-content: center; gap: 14px; }
.hero-art .poster .p-title { text-align: center; }
.hero-art .plaque { position: absolute; bottom: -24px; left: 16px; padding: 14px 20px; background: var(--canvas); border: 1px solid rgba(201, 162, 39, .5); border-radius: var(--round); box-shadow: var(--lift); }
@media (min-width: 640px) { .hero-art .plaque { left: 32px; } }
.hero-art .plaque .caps { letter-spacing: .16em; font-size: .75rem; }
.hero-art .plaque b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.15rem; margin-top: 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: .8125rem; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 15px; height: 15px; color: var(--brass); flex: none; }
.featured .soldout-flag { left: 50%; transform: translateX(-50%); top: 14%; }
.lede { font-size: 1.0625rem; line-height: 1.68; max-width: 58ch; color: var(--ink-2); }
.display-sm { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.listing-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.listing-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: var(--canvas); color: var(--ink-2); border-radius: 999px; padding: 9px 16px; font: 700 .6563rem var(--body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .16s ease; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: #f4f7f3; }
.event-grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); padding-bottom: 96px; }
.event-tile {
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 18px;
  background: var(--canvas); border: 1px solid var(--line); border-radius: calc(var(--round) + 4px); box-shadow: var(--card-shadow);
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.event-tile > :not(.poster) { padding: 0 8px; }
.event-tile .poster { margin-bottom: 14px; }
.event-tile:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: var(--hair-brass); }
.event-tile:hover h3 { color: var(--brand); }
.event-tile .tile-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.event-tile .go { display: inline-flex; align-items: center; gap: 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.event-tile .go svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.event-tile:hover .go svg { transform: translateX(3px); }
.event-tile .when { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.event-tile h3 { font-size: 1.3rem; margin: 2px 0 0; }
.event-tile .where { color: var(--muted); font-size: .9rem; }
.event-tile .from { font-family: var(--display); font-size: 1.1rem; color: var(--brass); font-variant-numeric: tabular-nums; }
.soldout-flag { position: absolute; top: 9%; left: 9%; background: var(--canvas); color: var(--bad); font-size: .6rem; font-weight: 700; letter-spacing: .16em; padding: 4px 9px; border-radius: 999px; z-index: 2; border: 1px solid var(--bad); }
.featured .soldout-flag { left: 50%; transform: translateX(-50%); top: 12%; }

/* ---------- event page ---------- */
.event-layout { display: grid; gap: 40px; grid-template-columns: 1fr; padding: 32px 0 88px; }
@media (min-width: 960px) { .event-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; } .checkout { position: sticky; top: 100px; } }
.event-top { display: grid; gap: 28px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 640px) { .event-top { grid-template-columns: 240px 1fr; align-items: end; } }
.event-top .poster { max-width: 320px; box-shadow: var(--lift); }
.event-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.01em; margin: 8px 0 0; }
.event-cat { color: var(--brass); }
.event-facts { margin: 0 0 44px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .event-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.event-facts div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--round-sm); background: var(--surface); }
.event-facts dt { color: var(--brass); font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.event-facts dd { margin: 0; font-weight: 600; line-height: 1.35; font-size: .95rem; }
.prose { color: var(--ink-2); max-width: 62ch; font-size: 1.0625rem; line-height: 1.68; }
.prose h2 { color: var(--ink); margin-top: 36px; font-size: 1.5rem; }
.prose ul { padding-left: 18px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--gold); }
.checkout { border: 1px solid var(--line); border-radius: calc(var(--round) + 4px); padding: 26px; background: var(--canvas); box-shadow: var(--card-shadow-hover); position: relative; overflow: hidden; }
.checkout::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand), var(--moss) 55%, var(--gold)); }
.checkout h2 { font-size: 1.5rem; margin-bottom: 4px; }
.steps { display: flex; align-items: center; gap: 0; margin: 4px 0 22px; counter-reset: step; font-size: .625rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.steps span { display: inline-flex; align-items: center; gap: 8px; counter-increment: step; white-space: nowrap; }
.steps span::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: .7rem; letter-spacing: 0; background: var(--canvas); transition: all .2s ease; }
.steps span:not(:last-child) { flex: 1; }
.steps span:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--line); margin: 0 10px; min-width: 12px; }
.steps span.on { color: var(--brand); }
.steps span.on::before { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(14, 58, 43, .1); }
.steps span.done::before { content: "✓"; background: var(--gold-pale); border-color: var(--gold); color: var(--brass); }
.ticket-type { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--round-sm); transition: border-color .16s ease, background-color .16s ease; }
.ticket-type.picked { border-color: var(--moss); background: rgba(46, 107, 79, .05); box-shadow: inset 3px 0 0 var(--moss); }
.ticket-type .name { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.ticket-type .desc { color: var(--muted); font-size: .875rem; }
.ticket-type .price { font-family: var(--display); font-size: 1.1rem; color: var(--brass); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ticket-type .left { font-family: var(--body); color: var(--warn); font-size: .6563rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; }
.ticket-type.sold-out .name, .ticket-type.sold-out .price { color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; flex-shrink: 0; }
.qty button { width: 38px; height: 38px; border: 0; background: none; color: var(--ink); font-size: 1.2rem; cursor: pointer; border-radius: 50%; }
.qty button:not(:disabled):hover { background: var(--surface); color: var(--brand); }
.qty button:disabled { color: var(--line-strong); cursor: not-allowed; }
.qty output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; font-family: var(--display); font-size: 1.4rem; font-variant-numeric: tabular-nums; border-top: 1px dashed var(--line-strong); margin-top: 8px; }
.secure-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .8rem; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.secure-note svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--brass); }

/* ---------- payment modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(6, 32, 26, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; animation: fade .2s ease; }
.modal .sheet { background: var(--canvas); border-radius: calc(var(--round) + 4px); max-width: 430px; width: 100%; padding: 30px; box-shadow: var(--lift-high); border-top: 4px solid var(--gold); animation: rise .28s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal .sheet h2 { margin: 0; font-size: 1.5rem; }
.mpesa-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.mpesa-logo { background: var(--mpesa); color: #fff; font: 800 .78rem/1 var(--body); letter-spacing: .06em; padding: 8px 10px; border-radius: 6px; }
.phone-wait { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--round-sm); padding: 14px; margin: 18px 0; font-size: .92rem; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--mpesa); animation: spin .9s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-note { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin: 18px 0 14px; }

/* ---------- tickets ---------- */
.confirm-head { border: 1px solid var(--line); border-radius: calc(var(--round) + 4px); padding: 32px; margin-bottom: 32px; background: linear-gradient(180deg, var(--surface), var(--canvas) 70%); box-shadow: var(--card-shadow); }
.confirm-head .toolbar { margin-top: 4px; }
.confirm-head .tick { display: inline-flex; align-items: center; gap: 8px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; margin-bottom: 18px; border: 1px solid currentColor; }
.confirm-head .tick.bad { background: var(--bad-bg); color: var(--bad); }
.confirm-head .tick svg { width: 14px; height: 14px; }
.confirm-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.02; margin-bottom: 14px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--ink-2); font-size: .92rem; margin-bottom: 22px; }
.order-meta b { color: var(--ink); font-weight: 600; }
.ticket {
  display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: calc(var(--round) + 2px); overflow: hidden;
  margin-bottom: 22px; break-inside: avoid; background: var(--canvas); box-shadow: var(--card-shadow-hover);
}
@media (min-width: 680px) { .ticket { grid-template-columns: 124px 1fr 224px; } }
.ticket .t-art { display: none; }
.ticket .t-art .poster { border-radius: 0; height: 100%; aspect-ratio: auto; padding: 14px; }
.ticket .t-art .poster::after { border-radius: 4px; inset: 6px; }
.ticket .t-art .p-top, .ticket .t-art .p-bottom { display: none; }
.ticket .t-art .p-title { --t: 16cqi !important; }
@media (min-width: 680px) { .ticket .t-art { display: block; } }
.ticket .t-body { padding: 22px 26px; }
.ticket .t-body h3 { font-size: 1.7rem; line-height: 1.05; margin: 8px 0 18px; }
.ticket dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.ticket dt { font-size: .6563rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ticket dd { margin: 2px 0 0; font-weight: 600; }
.ticket .t-stub { border-top: 1px dashed var(--hair-brass); padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fdfcf8; }
@media (min-width: 680px) { .ticket .t-stub { border-top: 0; border-left: 1px dashed var(--hair-brass); } }
.ticket .t-stub img { width: 164px; height: 164px; image-rendering: pixelated; }
.ticket.used .t-stub img, .ticket.void .t-stub img { opacity: .2; }
.ticket-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket .ticket-actions { justify-content: center; }

/* ---------- my tickets list ---------- */
.order-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.order-row:first-child { border-top: 1px solid var(--line); }
.order-row:hover h3 { color: var(--brand); }
.order-row .poster { width: 64px; padding: 8px; border-radius: 8px; }
.order-row .poster::after { inset: 3px; border-radius: 5px; }
.order-row .poster .p-top, .order-row .poster .p-bottom { display: none; }
.order-row .poster .p-title { --t: 17cqi !important; }
.order-row h3 { margin: 0 0 2px; }

/* ---------- tables, stats, admin ---------- */
table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .625rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); white-space: nowrap; }
td.r, th.r { text-align: right; }
tbody tr:hover { background: #f8faf7; }
td a { font-weight: 600; color: var(--brand); text-underline-offset: 3px; }
.table-scroll { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 26px 0 8px; }
.stat { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--round); background: var(--canvas); box-shadow: var(--card-shadow); }
.stat:first-child { background: var(--brand); border-color: var(--brand); color: #f2f5f1; }
.stat:first-child .label { color: rgba(242, 245, 241, .7); }
.stat:first-child b { color: var(--gold); }
.stat .label { margin: 0 0 8px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.bar { height: 4px; background: var(--surface); border-radius: 4px; overflow: hidden; margin-top: 6px; width: 120px; }
.bar > span { display: block; height: 100%; background: var(--gold); }
.admin { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 77px); }
@media (min-width: 900px) { .admin { grid-template-columns: 240px 1fr; } }
.admin-nav { border-right: 1px solid var(--line); padding: 28px 16px; background: var(--surface); }
.admin-nav .caps { padding: 0 12px; margin-bottom: 10px; }
.admin-nav a, .admin-nav button { display: block; width: 100%; text-align: left; padding: 10px 14px; border-radius: 999px; text-decoration: none; font: 500 .92rem var(--body); color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.admin-nav a:hover, .admin-nav button:hover { background: rgba(14, 58, 43, .07); color: var(--brand); }
.admin-nav a.active { background: var(--brand); color: #f4f7f3; box-shadow: 0 8px 18px -12px rgba(14, 58, 43, .9); }
.admin-nav hr { border: 0; border-top: 1px solid var(--line-strong); margin: 14px 12px; }
@media (max-width: 899px) { .admin-nav { display: flex; gap: 4px; overflow-x: auto; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); } .admin-nav .caps, .admin-nav hr { display: none; } .admin-nav a, .admin-nav button { width: auto; white-space: nowrap; } }
.admin-main { padding: 32px 20px 80px; min-width: 0; }
@media (min-width: 900px) { .admin-main { padding: 40px 44px 80px; } }
.admin-main h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 40px 0 12px; }
.section-title h2 { margin: 0; font-size: 1.4rem; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.type-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 44px; gap: 10px; align-items: end; }
@media (max-width: 640px) { .type-row { grid-template-columns: 1fr 1fr; } }
.type-row label { margin-top: 10px; }
.settings-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 24px; }
.settings-grid .panel h2 { font-size: 1.3rem; }
.form-narrow { max-width: 720px; }

/* ---------- PIN gate ---------- */
.gate { max-width: 400px; margin: 80px auto; padding: 0 20px; }
.gate h1 { font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: 1.05; }

/* ---------- scanner (after dark, so it sits on green) ---------- */
body.scanner { background: var(--forest-deep); color: #f2f5f1; }
body.scanner .muted, body.scanner label { color: rgba(242, 245, 241, .6); }
body.scanner .caps { color: var(--gold); }
body.scanner .panel { background: var(--brand); border-color: rgba(255, 255, 255, .14); color: #f2f5f1; }
body.scanner input, body.scanner select { background: var(--forest-deep); border-color: rgba(255, 255, 255, .2); color: #f2f5f1; }
body.scanner input:focus, body.scanner select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .2); }
body.scanner .site-header input { background: var(--surface); border-color: transparent; color: var(--ink); }
body.scanner .site-header input:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(46, 107, 79, .14); }
body.scanner .btn { background: var(--gold); color: #1b1607; border-color: var(--gold); }
body.scanner .btn:hover:not(:disabled) { background: #b28d1c; border-color: #b28d1c; }
body.scanner .btn.outline { background: transparent; color: #f2f5f1; border-color: rgba(242, 245, 241, .45); }
body.scanner .btn.outline:hover:not(:disabled) { background: #f2f5f1; color: var(--forest-deep); }
body.scanner .gate h1 { color: #fff; }
.scan-wrap { max-width: 560px; margin: 0 auto; padding: 32px 20px 56px; }
.scan-count { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 16px; }
.scan-count b { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--gold); }
#reader { width: 100%; border-radius: var(--round); overflow: hidden; background: #000; min-height: 300px; border: 1px solid var(--hair-brass); }
#reader video { object-fit: cover; }
.result-overlay {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: #fff; cursor: pointer;
}
.result-overlay.admitted { background: #1e7a4e; }
.result-overlay.already_used { background: #a9711a; }
.result-overlay.invalid, .result-overlay.void, .result-overlay.wrong_event { background: #a33327; }
.result-overlay .big { font-family: var(--display); font-size: clamp(3rem, 13vw, 6rem); line-height: 1; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 20px; }
.result-overlay .detail { font-size: 1.25rem; font-weight: 600; }
.result-overlay .hint { margin-top: 36px; opacity: .75; font-size: .9rem; }
.scan-log { list-style: none; margin: 0; padding: 0; }
.scan-log li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.scan-log li:last-child { border-bottom: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.admitted { background: #3fbf7a; } .dot.already_used { background: #e0a83a; }
.dot.invalid, .dot.void, .dot.wrong_event { background: #e2604f; }

/* ---------- verify page ---------- */
.verify { padding: 72px 20px; max-width: 520px; margin: 0 auto; }
.verify h1 { font-size: clamp(2.4rem, 6vw, 3.2rem); line-height: 1.05; margin: 24px 0 12px; }
.verify.ok h1 { color: var(--ok); } .verify.warn h1 { color: var(--warn); } .verify.bad h1 { color: var(--bad); }

/* ---------- footer (the website's footer: deep green band, name set large, gold caps headings) ---------- */
.site-footer { background: var(--forest-deep); color: #f2f5f1; font-size: .875rem; padding: 76px 0 0; }
.site-footer .foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 768px) { .site-footer .foot-grid { grid-template-columns: 5fr 3fr 2fr 2fr; } }
.site-footer .foot-name { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -.01em; color: #fff; margin: 0; }
.site-footer .foot-name span { color: var(--gold); }
.site-footer .foot-brand p { margin: 16px 0 24px; color: rgba(242, 245, 241, .82); max-width: 46ch; }
.site-footer h4 { margin: 0 0 12px; font: 700 12px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.site-footer p { margin: 0 0 8px; color: rgba(242, 245, 241, .88); }
.site-footer p.soft { color: rgba(242, 245, 241, .72); }
.site-footer a:not(.btn) { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site-footer a:not(.btn):hover { color: var(--gold); }
.site-footer .foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .foot-links a { color: rgba(242, 245, 241, .88); }
.site-footer .break { word-break: break-all; }
.foot-social { display: flex; gap: 12px; margin-top: 24px; }
.site-footer .foot-social a { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(242, 245, 241, .32); color: #fff; text-decoration: none; transition: color .16s ease, border-color .16s ease; }
.site-footer .foot-social a:hover { border-color: var(--gold); color: var(--gold); }
.foot-social svg { width: 16px; height: 16px; }
.site-footer .foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(242, 245, 241, .28); padding: 24px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(242, 245, 241, .72); }

.toast { animation: rise .25s var(--ease); position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #f4f7f3; padding: 12px 20px; border-radius: 999px; z-index: 60; font-weight: 600; font-size: .9rem; box-shadow: var(--lift-high); border: 1px solid var(--hair-brass); }

/* ---------- payment methods ---------- */
.pay-methods { display: grid; gap: 10px; margin: 8px 0 4px; }
.pay-method { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--round-sm); cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; font: 400 .9375rem var(--body); color: var(--ink); background: var(--canvas); transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.pay-method:hover { border-color: var(--line-strong); }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method .pm-name { font-weight: 700; display: block; }
.pay-method .pm-detail { font-size: .8rem; color: var(--muted); display: block; }
.pay-method .pm-radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all .16s ease; }
.pay-method:has(input:checked) { border-color: var(--brand); background: rgba(14, 58, 43, .04); box-shadow: 0 0 0 3px rgba(14, 58, 43, .1); }
.pay-method:has(input:checked) .pm-radio { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 5px, transparent 5.5px); }
.pay-method:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pm-logo { width: 54px; height: 36px; border-radius: 8px; display: grid; place-items: center; font: 800 .66rem/1 var(--body); letter-spacing: .04em; color: #fff; flex: none; }
.pm-logo.mpesa { background: var(--mpesa); }
.pm-logo.card { background: linear-gradient(135deg, #1a1f71, #2b3a9e); gap: 3px; }
.pm-logo.card i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #eb001b; margin-right: -6px; }
.pm-logo.card i + i { background: #f79e1b; mix-blend-mode: screen; margin: 0; }
.pm-logo.card span { display: flex; align-items: center; }
.pm-logo.airtel { background: #e40000; }
.pm-logo.pesapal { background: #fff; color: #1b5aa6; border: 1px solid var(--line); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pay-badges span { font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.pesapal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.summary-box { background: var(--surface); border-radius: var(--round-sm); padding: 12px 14px; font-size: .875rem; color: var(--ink-2); margin-top: 6px; }

/* demo Pesapal checkout page */
body.paydemo { background: #eef2f7; }
.pd-wrap { max-width: 480px; margin: 0 auto; padding: 32px 16px 48px; }
.pd-card { background: #fff; border-radius: 16px; box-shadow: 0 20px 50px -24px rgba(16, 38, 70, .35); overflow: hidden; }
.pd-top { background: #1b5aa6; color: #fff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.pd-top b { font: 800 1.15rem var(--body); letter-spacing: -.01em; }
.pd-body { padding: 22px; }
.pd-amount { font: 700 1.9rem var(--body); letter-spacing: -.02em; margin: 2px 0 14px; }
.pd-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.pd-tabs button { border: 1px solid #d5dce6; background: #fff; border-radius: 10px; padding: 12px 6px; font: 700 .8rem var(--body); cursor: pointer; color: #22324a; }
.pd-tabs button[aria-pressed=true] { border-color: #1b5aa6; box-shadow: 0 0 0 3px rgba(27, 90, 166, .15); color: #1b5aa6; }
.pd-banner { background: #fff7e0; border: 1px solid #f0d58a; color: #6b5310; font-size: .8rem; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.pd-body .btn.primary { background: #1b5aa6; border-color: #1b5aa6; box-shadow: none; }
.pd-body .btn.primary:hover:not(:disabled) { background: #154a8a; border-color: #154a8a; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media print {
  .site-header, .top-strip, .no-print, .site-footer { display: none !important; }
  .ticket { grid-template-columns: 124px 1fr 224px; box-shadow: none; }
  .ticket .t-art { display: block; }
  .ticket .t-stub { border-top: 0; border-left: 1px dashed var(--line-strong); }
  .poster, .stat:first-child { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.checkout { scroll-margin-top: 96px; }

/* ---------- production release additions ---------- */
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.btn svg { width: 16px; height: 16px; flex: none; }
.ok-note { color: var(--ok); }
.ok-note svg { width: 14px; height: 14px; vertical-align: -2px; }

/* how it works: the website's feature bar, four plain panels on a linen band */
.how { --band-bg: var(--surface); margin: 0; padding: 56px 0; }
.how .kicker { margin-bottom: 22px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .how ol { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .how ol { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.how li.panel { position: relative; padding: 24px; box-shadow: none; transition: box-shadow .2s ease; }
.how li.panel:hover { box-shadow: var(--lift); }
.how .how-icon { display: block; color: var(--brass); }
.how .how-icon svg { width: 20px; height: 20px; }
.how .how-n { position: absolute; right: 22px; top: 18px; font-family: var(--display); font-size: 1.15rem; color: var(--gold); }
.how h3 { font-size: 1.15rem; line-height: 1.2; margin: 16px 0 8px; }
.how p { color: var(--muted); margin: 0; font-size: .875rem; line-height: 1.6; }

/* the dark band that closes the home page */
.visit-band { --band-bg: var(--forest-deep); color: #f2f5f1; padding: clamp(64px, 9vw, 104px) 0; }
.visit-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .visit-grid { grid-template-columns: 7fr 5fr; } }
.visit-band .kicker { color: var(--gold); }
.visit-band h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -.01em; color: #fff; margin: 16px 0 0; }
.visit-band .lede { color: rgba(242, 245, 241, .76); margin-top: 20px; }
.visit-band .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.visit-panel { padding: 0; overflow: hidden; }
.panel-head { padding: 15px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.panel-head p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.visit-panel ul { list-style: none; margin: 0; padding: 0; }
.visit-panel li { padding: 20px; }
.visit-panel li + li { border-top: 1px solid var(--line); }
.visit-panel .caps { letter-spacing: .16em; font-size: .75rem; display: block; }
.visit-panel b { display: block; margin-top: 6px; font-size: 1.0625rem; line-height: 1.35; }
.visit-panel p { margin: 6px 0 0; font-size: .875rem; color: var(--ink-2); line-height: 1.55; }
.visit-panel .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: .875rem; color: var(--brass); text-decoration: none; }
.visit-panel .more svg { width: 14px; height: 14px; }

/* order page: delivery timeline and actions */
.timeline { list-style: none; margin: 0 0 24px; padding: 16px 0; display: grid; gap: 14px; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline li { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--muted); min-width: 0; }
.timeline li > svg { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.timeline li.done > svg { background: var(--ok); color: #fff; border-color: var(--ok); }
.timeline li.wait > svg { color: var(--warn); border-color: var(--warn); background: var(--warn-bg); }
.timeline b { display: block; color: var(--ink); font-weight: 600; }
.timeline span { overflow-wrap: anywhere; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
@media (max-width: 560px) { .order-actions .btn:not(.text) { flex: 1 1 100%; } }

/* ticket stub art: the date set large over the poster colour */
.ticket .t-art { position: relative; }
.ticket .t-art .p-title { display: none; }
.ticket .t-art .poster.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 32, 26, .15), rgba(6, 32, 26, .75)); z-index: 1; }
.t-date { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; pointer-events: none; }
.t-date b { font-family: var(--display); font-weight: 400; font-size: 3.4rem; line-height: .9; }
.t-date span { font-weight: 700; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; margin-top: 6px; color: var(--gold); }
.t-date i { font-style: normal; font-family: var(--mono); font-size: .8rem; margin-top: 14px; opacity: .85; }
.ticket .t-art .theme-gold ~ .t-date { color: #1b1607; }
.ticket .t-art .theme-gold ~ .t-date span { color: #1b1607; }

/* organiser settings and cover images */
.status-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 8px 0 12px; }
.status-card { border: 1px solid var(--line); border-radius: var(--round); padding: 18px 20px; background: var(--canvas); box-shadow: var(--card-shadow); position: relative; }
.status-card::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--muted); }
.status-card.live::before { background: var(--ok); }
.status-card.demo::before { background: var(--gold); }
.status-card.off::before { background: var(--bad); }
.status-card b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 6px 0 4px; }
.status-card.live b { color: var(--ok); }
.status-card.demo b { color: var(--brass); }
.status-card.off b { color: var(--bad); }
.status-card p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.cover-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; margin-top: 18px; }
.cover-preview .poster { width: 120px; aspect-ratio: 5 / 6; padding: 12px; border-radius: 12px; }
.cover-preview .poster .p-top, .cover-preview .poster .p-bottom { display: none; }
.cover-preview .poster .p-title { --t: 15cqi !important; }

/* ---------- editable website content ---------- */
.announce { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 24px 0 0; padding: 12px 20px; border-radius: 999px; background: var(--gold-pale); border: 1px solid var(--hair-brass); color: var(--ink); font-weight: 600; text-align: center; }
.announce a { display: inline-flex; align-items: center; gap: 6px; color: var(--brass); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.announce .arrow { width: 14px; height: 14px; }
.custom-section { display: grid; gap: 32px; align-items: center; margin: 56px 0; padding: 0; border-radius: calc(var(--round) + 6px); }
.custom-section.tone-linen, .custom-section.tone-dark, .custom-section.cs-banner { padding: 48px clamp(20px, 4vw, 56px); }
.custom-section.tone-linen { background: var(--surface); border: 1px solid var(--line); }
.custom-section.tone-dark { background: var(--forest-deep); color: #f2f5f1; }
.custom-section.tone-dark .caps { color: var(--gold); }
.custom-section.tone-dark .rich a { color: var(--gold); }
.custom-section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .5em; }
.custom-section .btn { margin-top: 8px; }
.cs-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--round); box-shadow: var(--lift); }
@media (min-width: 820px) {
  .custom-section.cs-image-right, .custom-section.cs-image-left { grid-template-columns: 1fr 1fr; gap: 56px; }
  .custom-section.cs-image-left .cs-media { order: -1; }
  .custom-section.cs-image-right .cs-media { order: 2; }
}
.custom-section.cs-text .cs-text { max-width: 760px; }
.custom-section.cs-banner { min-height: 340px; color: #fff; background: linear-gradient(90deg, rgba(6, 20, 15, .82), rgba(6, 20, 15, .35)), var(--cs-bg) center / cover no-repeat; }
.custom-section.cs-banner .cs-text { max-width: 620px; }
.custom-section.cs-banner .caps { color: var(--gold); }
.rich p:last-child { margin-bottom: 0; }
.rich ul { margin: 0 0 1em; padding-left: 1.2em; }
.rich li { margin: .25em 0; }
.rich h3 { margin: 1.2em 0 .4em; font-size: 1.3rem; }
.rich a { color: var(--brass); font-weight: 600; }
.page .rich { font-size: 1.05rem; }
.page-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--round); margin: 0 0 32px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.foot-social a { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.foot-contact a { color: inherit; }

/* ---------- organiser: accounts ---------- */
.whoami { margin: 18px 12px 0; padding-top: 14px; border-top: 1px solid var(--line-strong); font-size: .8rem; color: var(--muted); line-height: 1.4; }
.whoami b { color: var(--ink); font-weight: 600; }
.u-new { display: grid; gap: 0 12px; grid-template-columns: 1fr; align-items: end; margin-top: 20px; padding: 4px 20px 20px; border: 1px solid var(--line); border-radius: var(--round); background: var(--surface); }
.u-new .btn { margin-top: 16px; }
@media (min-width: 1100px) { .u-new { grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr auto; } }
.u-new input, .u-new select, #u-rows select { height: 42px; }
#u-rows select { width: auto; min-width: 130px; padding-top: 0; padding-bottom: 0; }
.secret-box { margin-top: 16px; padding: 18px 20px; border-radius: var(--round); border: 1px solid var(--hair-brass); background: var(--gold-pale); display: grid; gap: 12px; }
.secret-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.secret-grid span { color: var(--muted); font-size: .875rem; }
.secret-box .btn { justify-self: start; }
.icon-btn { width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--canvas); color: var(--ink-2); cursor: pointer; font: 600 .9rem var(--body); }
.icon-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.icon-btn.danger:hover:not(:disabled) { border-color: var(--bad); color: var(--bad); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.type-row .icon-btn { margin-bottom: 5px; }
.c-type { padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: var(--forest-deep); color: #f2f5f1; box-shadow: var(--lift-high); font-weight: 600; font-size: .9rem; }

/* ---------- organiser: website editor ---------- */
body.editing-site .admin-main { padding-bottom: 0; }
.ed-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; padding: 12px 0; background: var(--canvas); border-bottom: 1px solid var(--line); }
#ed-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.dot-unsaved { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px var(--warn-bg); }
.ed-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; scrollbar-width: thin; }
.ed-tabs button { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--canvas); color: var(--ink-2); font: 600 .85rem var(--body); cursor: pointer; }
.ed-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.ed-tabs button.active { background: var(--brand); border-color: var(--brand); color: #f4f7f3; }
.ed-layout { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1200px) { .ed-layout { grid-template-columns: minmax(380px, 0.85fr) 1.15fr; } }
.ed-form { min-width: 0; padding-bottom: 80px; }
.ed-group { padding: 6px 22px 22px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--round); background: var(--canvas); box-shadow: var(--card-shadow); }
.ed-group-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-group h3 { font-size: 1.25rem; margin: 16px 0 4px; }
.ed-group > .muted.small { margin: 0 0 6px; }
.field-help { margin: 6px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.ed-group textarea { min-height: 90px; resize: vertical; font-family: var(--body); }
.switch-row { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; font: 500 .95rem var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 42px; height: 24px; flex: none; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s var(--ease); }
.switch-row input:checked + .switch { background: var(--brand); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch-row.compact { margin: 0; }
.ed-group .field.color { display: inline-block; width: calc(50% - 8px); vertical-align: top; margin-right: 8px; }
@media (max-width: 520px) { .ed-group .field.color { width: 100%; margin-right: 0; } }
.color-row { display: flex; gap: 8px; }
.color-row input[type=color] { width: 52px; height: 44px; padding: 3px; flex: none; cursor: pointer; }
.color-row .mono { text-transform: lowercase; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.preset { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--canvas); font: 600 .8rem var(--body); cursor: pointer; color: var(--ink-2); }
.preset:hover { border-color: var(--brand); }
.preset span { display: flex; }
.preset i { width: 16px; height: 22px; display: block; }
.preset i:first-child { border-radius: 999px 0 0 999px; }
.preset i:last-child { border-radius: 0 999px 999px 0; border: 1px solid var(--line); border-left: 0; }
.image-field { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.image-thumb { width: 132px; height: 90px; border-radius: var(--round-sm); border: 1px dashed var(--line-strong); background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-field.logo .image-thumb { background: repeating-conic-gradient(#f1f1f1 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.image-field.logo .image-thumb img { object-fit: contain; padding: 8px; }
.file-btn { position: relative; overflow: hidden; margin: 0; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn.busy { opacity: .6; pointer-events: none; }
.file-btn.busy::after { content: "…"; }
.strings { display: grid; gap: 8px; }
.string-row { display: flex; gap: 8px; align-items: center; }
.list-items { display: grid; gap: 12px; margin: 10px 0 12px; }
.list-item { border: 1px solid var(--line-strong); border-radius: var(--round-sm); overflow: hidden; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.list-head b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-head .toolbar { flex: none; gap: 6px; }
.list-body { padding: 0 16px 16px; }
.block-order { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.block-order li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--round-sm); background: var(--canvas); }
.block-order li.off { background: var(--surface); }
.block-order li.off b { color: var(--muted); }
.block-order li > span:nth-child(2) { display: grid; }
.block-order .grip { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #f4f7f3; font: 600 .8rem var(--mono); }
.block-order li.off .grip { background: var(--line-strong); }
.ed-preview { position: sticky; top: 76px; border: 1px solid var(--line-strong); border-radius: var(--round); overflow: hidden; background: var(--surface); box-shadow: var(--lift); }
.ed-preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 8px 4px 16px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.ed-frame-wrap { height: calc(100vh - 150px); min-height: 520px; display: flex; justify-content: center; }
.ed-frame-wrap iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.ed-preview.mobile .ed-frame-wrap { padding: 16px 0; }
.ed-preview.mobile iframe { width: 390px; max-width: 100%; border-radius: 22px; border: 8px solid #1d2420; }
@media (max-width: 1199px) { .ed-preview { position: static; } .ed-frame-wrap { height: 70vh; } }

/* ---------- v5: lamelagardens.com components ----------
   The rules below bring every page onto the website's own component set (src/index.css on the
   restaurant site): 14px panels with a mist hairline and no resting shadow, 10px fields, the
   pill button family (ink, forest, gold, outline, flat), Marcellus headings at the site's sizes,
   brass eyebrows over a gold rule, and the brass rule with a centre mark that closes a masthead. */
:root { --round: 14px; --round-sm: 10px; --card-shadow: none; --card-shadow-hover: var(--lift); }

.btn { min-height: 0; padding: 13px 24px; }
.btn.lg { min-height: 0; padding: 15px 28px; font-size: .78rem; }
.btn.sm { min-height: 0; padding: 8px 15px; }
.btn.primary:hover:not(:disabled) { transform: none; box-shadow: 0 10px 22px -16px rgba(14, 58, 43, .9); }
.btn.flat { background: var(--surface); border-color: transparent; color: var(--ink); padding: 9px 15px; font-size: .6875rem; letter-spacing: .09em; }
.btn.flat:hover:not(:disabled) { background: var(--ink); color: var(--canvas); }
.btn.flat.gold { background: var(--gold); color: #1b1607; }
.site-header .btn.flat, .visit-band .btn.flat, .site-footer .btn.flat { background: rgba(255, 255, 255, .1); color: #f2f5f1; }
.site-header .btn.flat:hover, .visit-band .btn.flat:hover { background: #f2f5f1; color: var(--forest-deep); }
.site-header .btn.flat.gold { background: var(--gold); color: #1b1607; }
.visit-band .btn.outline, .site-footer .btn.outline, .tone-dark .btn.outline { border-color: rgba(242, 245, 241, .45); color: #f2f5f1; }
.visit-band .btn.outline:hover, .site-footer .btn.outline:hover, .tone-dark .btn.outline:hover { background: #f2f5f1; color: var(--forest-deep); border-color: #f2f5f1; }
.btn.text { color: var(--brass); font-weight: 700; }
input, select { height: 46px; }

.panel { box-shadow: none; }
.panel.press { box-shadow: var(--lift); }
.empty { background: var(--canvas); border-color: var(--line); padding: 52px 24px; }

/* the brass rule with a centre mark */
.rule-brass { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.rule-brass::before, .rule-brass::after { content: ""; height: 1px; background: currentColor; opacity: .5; flex: 1; }
.rule-brass span { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); flex: none; }

/* inner page mastheads, as on the website's inner pages */
.page { padding: 56px 0 104px; }
.page-head { margin-bottom: 40px; padding-bottom: 40px; position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background:
  linear-gradient(var(--hair-brass), var(--hair-brass)) left 50% / calc(50% - 14px) 1px no-repeat,
  linear-gradient(var(--hair-brass), var(--hair-brass)) right 50% / calc(50% - 14px) 1px no-repeat; }
.page-head h1, .confirm-head h1, .event-title { font-size: clamp(2.35rem, 4.9vw, 4.05rem); line-height: 1; letter-spacing: -.015em; }
.crumbs { display: inline-flex; align-items: center; gap: 9px; letter-spacing: .2em; color: var(--brass); }
.crumbs::before { content: ""; width: 24px; height: 1px; background: var(--gold); flex: none; }
.crumbs a { color: var(--brass); }

/* home: the events list opens like a website section */
#events-block { padding-top: clamp(64px, 9vw, 104px); scroll-margin-top: 80px; }
.listing-head { align-items: flex-end; margin-bottom: 36px; }
.listing-head .kicker { margin-bottom: 20px; }
.listing-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -.01em; }
.filters button { border: 1px solid transparent; background: var(--surface); color: var(--ink); padding: 9px 15px; font-size: .6875rem; letter-spacing: .09em; }
.filters button:hover { background: var(--ink); color: var(--canvas); border-color: transparent; }
.filters button[aria-pressed=true] { background: var(--brand); color: #f4f7f3; }
.event-grid { gap: 24px; padding-bottom: clamp(64px, 9vw, 104px); }
.event-tile { padding: 12px 12px 20px; border-radius: var(--round); box-shadow: none; transition: box-shadow .2s ease, border-color .2s ease; }
.event-tile:hover { transform: none; box-shadow: var(--lift); border-color: var(--hair-brass); }
.event-tile .poster { border-radius: var(--arch); padding: 18% 10% 10%; }
.event-tile .poster::after { border-radius: 999px 999px 6px 6px; inset: 4%; }
.event-tile .poster .p-top, .event-tile .poster .p-bottom { justify-content: center; gap: 12px; }
.event-tile .poster .p-title { text-align: center; }
.event-tile .poster .soldout-flag { left: 50%; transform: translateX(-50%); top: 16%; }
.event-tile h3 { font-size: 1.4rem; line-height: 1.12; }
.event-tile .from { font-size: 1.2rem; }
.event-tile .go { color: var(--brass); }

/* event page */
.event-layout { padding: 56px 0 104px; }
.event-top .poster { border-radius: var(--arch); padding: 20% 10% 10%; border: 1px solid var(--hair-brass); }
.event-top .poster::after { border-radius: 999px 999px 6px 6px; }
.event-facts { gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.event-facts div { padding: 0; border: 0; background: none; border-radius: 0; }
.event-facts dt { font-size: .75rem; letter-spacing: .16em; color: var(--muted); }
.event-facts dd { font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1.2; }
.checkout { border-radius: var(--round); padding: 0; box-shadow: var(--lift); overflow: hidden; }
.checkout::before { display: none; }
.checkout > form, .checkout > .secure-note { padding-left: 24px; padding-right: 24px; }
.checkout > form { padding-bottom: 4px; }
.checkout > .secure-note { margin: 0; padding-top: 16px; padding-bottom: 16px; background: var(--surface); border-top: 1px solid var(--line); }
.checkout .steps { margin: 0 0 22px; padding: 15px 24px; background: var(--brand); color: rgba(242, 245, 241, .6); border-bottom: 1px solid rgba(201, 162, 39, .4); }
.checkout .steps span::before { background: transparent; border-color: rgba(242, 245, 241, .35); }
.checkout .steps span:not(:last-child)::after { background: rgba(242, 245, 241, .2); }
.checkout .steps span.on { color: #f2f5f1; }
.checkout .steps span.on::before { background: var(--gold); border-color: var(--gold); color: #1b1607; box-shadow: none; }
.checkout .steps span.done::before { background: transparent; border-color: var(--gold); color: var(--gold); }
.checkout h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.ticket-type { border-radius: var(--round-sm); }
.ticket-type.picked { border-color: rgba(201, 162, 39, .55); background: var(--gold-pale); box-shadow: none; }
.total-row { border-top-style: solid; border-top-color: var(--line); }

/* payment sheet: the website's sheet, forest head on a brass line */
.modal .sheet { border-radius: 18px; border-top: 0; padding: 0; overflow: hidden; }
.modal .sheet > * { margin-left: 22px; margin-right: 22px; }
.modal .sheet { padding-bottom: 22px; }
.modal .sheet .mpesa-head, .modal .sheet .pesapal-head { margin: 0 0 4px; padding: 18px 22px; background: var(--brand); color: #f2f5f1; border-bottom: 1px solid rgba(201, 162, 39, .4); }
.modal .sheet .mpesa-head h2, .modal .sheet .pesapal-head h2 { color: #f2f5f1; font-size: 1.3rem; }

/* order confirmation: a masthead, not a box */
.confirm-head { border: 0; border-radius: 0; padding: 0 0 40px; background: none; box-shadow: none; position: relative; margin-bottom: 40px; }
.confirm-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background:
  linear-gradient(var(--hair-brass), var(--hair-brass)) left 50% / calc(50% - 14px) 1px no-repeat,
  linear-gradient(var(--hair-brass), var(--hair-brass)) right 50% / calc(50% - 14px) 1px no-repeat; }
.ticket { border-radius: var(--round); box-shadow: var(--lift); }

/* organiser */
.stat { box-shadow: none; }
.status-card { box-shadow: none; }
.admin-nav a.active { box-shadow: none; }
.custom-section { border-radius: var(--round); }
.custom-section.tone-dark { background: var(--forest-deep); }
.cs-media img { border-radius: var(--arch); border: 1px solid var(--hair-brass); }
.announce { border-radius: var(--round-sm); }
body.scanner .site-header input { background: rgba(255, 255, 255, .1); border-color: transparent; color: #f2f5f1; }
body.scanner .site-header .btn.flat { background: rgba(255, 255, 255, .1); color: #f2f5f1; border-color: transparent; }
body.scanner .site-header .btn.gold { background: var(--gold); }
.arch-frame, .arch-frame:hover { text-decoration: none; }
.event-tile .poster .p-top { display: none; }
.event-tile .poster { justify-content: center; gap: 10%; }
.event-tile .tile-foot { flex-wrap: wrap; gap: 6px 12px; }
.event-top .poster .p-top { display: none; }
.event-top .poster { justify-content: center; gap: 12%; }
.event-top .poster .p-title { text-align: center; }
.event-top .poster .p-bottom { justify-content: center; gap: 12px; }
@media (max-width: 640px) {
  .head-actions { display: contents; }
  .site-header .btn.gold { margin-left: auto; }
  .site-header .header-search { order: 3; width: 100%; }
}
.page-head::before, .confirm-head::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; margin-left: -3px; background: var(--gold); transform: rotate(45deg); }
.admin-nav a, .admin-nav button { border-radius: 10px; }
.admin-nav a.active { background: var(--canvas); color: var(--brand); box-shadow: inset 3px 0 0 var(--gold), 0 0 0 1px var(--line); font-weight: 700; }
@media (max-width: 899px) { .admin-nav a.active { box-shadow: inset 0 -2px 0 var(--gold); } }
