/* =============================================================================
   Event Ticketing Platform — shared UI styles
   Used by both the public layout (layouts.app) and the dashboard shell
   (layouts.dashboard).
   ============================================================================= */

:root {
    /* Brand blue sampled from the CK Enterprises logo mark. */
    --brand: #0f16c4;
    --brand-dark: #0a0f99;

    /* Sharp everywhere: square structural corners, fully-rounded status chips. */
    --radius: 0;
    --radius-chip: 999px;
    --ink: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --surface: #ffffff;

    /* Dark header/sidebar (transparent logo needs a dark backdrop). */
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-border: #334155;
    --dark-text: #cbd5e1;
    --dark-text-dim: #94a3b8;

    --header-h: 60px;
    --sidebar-w: 248px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    background: var(--bg);
    line-height: 1.5;
}

a { color: var(--brand); }

h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 0.75rem; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; color: var(--ink); margin: 1.75rem 0 0.75rem; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.0625rem; color: var(--ink); font-weight: 700; }

.muted { color: var(--muted); }

/* ---- Buttons ---- */
.btn {
    display: inline-block; padding: 0.5rem 1rem; border-radius: var(--radius);
    background: var(--brand); color: #fff; text-decoration: none; border: none; cursor: pointer;
    font-size: 0.95rem; font-weight: 600; transition: background 0.15s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--border); }
.btn-outline:hover { background: #f3f4f6; color: var(--brand-dark); }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }

/* ---- Forms ---- */
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.25rem; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%; padding: 0.5rem 0.75rem; border: 1.5px solid #d1d5db;
    border-radius: var(--radius); font-size: 1rem; background: #fff;
    /* Inherit the app typeface for every control so native date/time and
       select widgets don't fall back to the browser's monospaced/system UI
       font. Keeps inputs visually matched to normal text fields. */
    font: inherit; color: inherit;
}
/* Comfortable, consistent touch target across text-like controls. Excludes
   checkboxes/radios/file which size themselves. */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
    min-height: 44px;
}
.field textarea { min-height: 5rem; }
/* Tame native date/time controls so they read like normal text inputs rather
   than the browser's default (often monospaced) presentation. */
.field input[type="date"], .field input[type="time"], .field input[type="datetime-local"] {
    line-height: 1.2;
}
.field input[type="date"]::-webkit-datetime-edit,
.field input[type="time"]::-webkit-datetime-edit,
.field input[type="datetime-local"]::-webkit-datetime-edit { font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ---- Accessibility: global keyboard-only focus ring ----
   The pointer :focus glows above stay for mouse users; this :focus-visible
   ring is the accessibility guarantee. It uses `outline` (not just
   box-shadow) so Windows High Contrast Mode renders it, with a dark halo
   fallback that keeps the indicator perceivable over brand-coloured or dark
   surfaces (WCAG 2.4.7 / 1.4.11). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.35);
}

/* Group label used by composite fields (e.g. the date + time control) — same
   weight/spacing as a normal .field label so it reads as one labelled field. */
.field-group-label { display: block; margin-bottom: 0.35rem; font-weight: 600; }

/* Split date + time control. Two side-by-side parts that stack on narrow
   screens, each a normal-looking text input (font inherited via the global
   .field rule above). */
.datetime-field__inputs {
    display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0.75rem;
}
.datetime-field__part label {
    display: block; margin-bottom: 0.2rem; font-weight: 500;
    font-size: 0.85rem; color: var(--muted);
}
@media (max-width: 560px) {
    .datetime-field__inputs { grid-template-columns: 1fr; }
}

.hint { font-size: 0.8125rem; color: var(--muted); margin: 0.25rem 0 0; }

/* Current hero/logo image preview inside upload fields. Constrain the thumbnail
   so a full-resolution upload doesn't render at its natural (huge) size. */
.poster-preview { margin-bottom: 0.5rem; }
.poster-thumb {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.error { color: #b91c1c; font-size: 0.875rem; margin-top: 0.25rem; }
.status {
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
    padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem;
}
.alert-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
    padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem;
}

/* ---- Tables ---- */
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
thead th { background: #f3f4f6; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.03em; color: #5b616e; }
tbody tr:last-child td { border-bottom: none; }

/* ---- Cards ---- */
.card {
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* =============================================================================
   Public layout (landing / storefront / auth)
   ============================================================================= */
.public-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem; height: var(--header-h);
    background: var(--dark);
}
.public-header .brand { display: inline-flex; align-items: center; }
.public-header .brand img { height: 30px; width: auto; display: block; }
.public-header nav { display: flex; align-items: center; gap: 1.25rem; }
.public-header nav a { color: var(--dark-text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.public-header nav a:hover { color: #fff; }
.public-header nav form { margin: 0; }

main.public-main { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; min-height: calc(100vh - var(--header-h) - 200px); }

/* Auth cards */
.auth-card {
    max-width: 460px; margin: 1rem auto; background: var(--surface);
    border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.auth-card .muted { margin-top: 0; }
.auth-alt { text-align: center; margin-top: 1.25rem; font-size: 0.9375rem; color: var(--muted); }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.slug-input { display: flex; align-items: stretch; }
.slug-input .slug-prefix {
    display: inline-flex; align-items: center; padding: 0 0.625rem;
    background: #f3f4f6; border: 1px solid #d1d5db; border-right: none;
    border-radius: var(--radius); color: var(--muted); font-size: 0.875rem; white-space: nowrap;
}
.slug-input input { border-radius: var(--radius); }

/* Wide auth card for the multi-step signup wizard. The wizard needs more room
   than a standard login card, so it opts into a wider main column too. */
.public-main.public-main-wide { max-width: 820px; }
.auth-card-wide { max-width: 100%; margin: 1.5rem auto; padding: 2.5rem; }
.auth-card-wide h1 { font-size: 1.6rem; }

/* Two/three-column rows inside the auth card (reuses the shared .field-row grid). */
.auth-card .field-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 1.25rem;
}
.auth-card .field-row .field { margin-bottom: 1.1rem; }

/* ---- Signup wizard: step progress indicator ---- */
.wizard-steps {
    list-style: none; display: flex; gap: 0.75rem; margin: 1.5rem 0 2rem; padding: 0;
}
.wizard-step {
    flex: 1 1 0; display: flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); color: var(--muted); font-size: 0.9rem; min-width: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.wizard-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.75rem; height: 1.75rem; flex: none; border-radius: 50%;
    background: #eef0ff; color: var(--brand); font-weight: 700; font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.wizard-step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.wizard-step.is-active { border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 22, 196, 0.1); }
.wizard-step.is-active .wizard-step-num { background: var(--brand); color: #fff; }
.wizard-step.is-complete { background: #f5f6ff; border-color: #c7cbff; }
.wizard-step.is-complete .wizard-step-num { background: var(--brand); color: transparent; font-size: 0; position: relative; }
.wizard-step.is-complete .wizard-step-num::after { content: '✓'; color: #fff; font-size: 0.9rem; }

/* ---- Signup wizard: step panels ---- */
.wizard-panel { border: none; padding: 0; margin: 0; min-width: 0; }
.wizard-panel[hidden] { display: none; }
.wizard-panel-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); padding: 0; margin: 0 0 1.25rem; }
.wizard-nav { display: flex; gap: 0.6rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.wizard-nav .btn[data-next], .wizard-nav .btn[type="submit"] { margin-left: auto; }

@media (max-width: 560px) {
    .auth-card-wide { padding: 1.5rem; }
    .wizard-step-label { display: none; }
    .wizard-step { justify-content: center; }
}

/* ---- Create-event wizard: two-column shell (panel + contextual help) ----
   Reuses the .wizard-steps/.wizard-panel/.wizard-nav tokens above; adds the
   dashboard-wide layout with a contextual .wizard-help aside (Req 4.12). */
.wizard-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1.5rem;
    align-items: start;
}
.wizard-main { min-width: 0; }
.wizard-help {
    background: #f5f6ff;
    border: 1px solid #c7cbff;
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    position: sticky;
    top: 1rem;
}
.wizard-help__inner { font-size: 0.9rem; color: var(--muted); }
.wizard-help__title { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 0.6rem; }
.wizard-help p { margin: 0 0 0.7rem; line-height: 1.5; }
.wizard-help p:last-child { margin-bottom: 0; }
.wizard-help strong { color: var(--ink); }
.wizard-skip { margin-left: auto; }
/* When Skip is present it takes the auto-left margin, so Continue sits flush
   to its right rather than being pushed away on its own. */
.wizard-nav .wizard-skip ~ .btn[type="submit"] { margin-left: 0.6rem; }

@media (max-width: 860px) {
    .wizard-shell { grid-template-columns: 1fr; }
    .wizard-help { position: static; order: -1; }
}

/* Landing hero */
.hero { text-align: center; padding: 3rem 0 2.5rem; }
.hero h1 { font-size: 2.5rem; max-width: 720px; margin: 0 auto 1rem; }
.hero p.lead { font-size: 1.125rem; color: var(--muted); max-width: 620px; margin: 0 auto 1.75rem; }
.hero .cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.feature-card h3 { margin: 0 0 0.5rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* =============================================================================
   Shared footer
   ============================================================================= */
.site-footer { background: var(--dark); color: var(--dark-text); margin-top: 3rem; }
.site-footer__inner {
    max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 1.5rem;
    display: grid; grid-template-columns: 1.5fr 2fr; gap: 2rem;
}
.site-footer__logo { height: 34px; width: auto; margin-bottom: 0.75rem; }
.site-footer__tagline { color: var(--dark-text-dim); font-size: 0.9rem; max-width: 320px; margin: 0; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.site-footer__col h4 { color: #fff; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.75rem; }
.site-footer__col a { display: block; color: var(--dark-text); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.5rem; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bar {
    border-top: 1px solid var(--dark-border); text-align: center;
    padding: 1rem 1.5rem; color: var(--dark-text-dim); font-size: 0.85rem;
}

/* Compact promo footer for customer-facing return pages (checkout success /
   cancel): just the "Events by CK Enterprises" wordmark and a sell-your-own
   tickets CTA, no site nav. */
.promo-footer { background: var(--dark); color: var(--dark-text); margin-top: 3rem; }
.promo-footer__inner {
    max-width: 860px; margin: 0 auto; padding: 1.75rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
}
.promo-footer__logo {
    display: inline-flex; align-items: baseline; gap: 0.35rem;
    font-family: 'Cabin Sketch', cursive; font-weight: 700; line-height: 1; text-decoration: none;
}
.promo-footer__logo .events { font-size: 1.5rem; color: #2dd4bf; }
.promo-footer__logo .by {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--dark-text-dim); text-transform: uppercase;
}
.promo-footer__logo .ck { font-size: 1.5rem; color: #fff; }
.promo-footer__cta {
    display: inline-flex; align-items: center; white-space: nowrap;
    padding: 0.65rem 1.3rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
    background: var(--brand); color: #fff; text-decoration: none; transition: background 0.15s ease;
}
.promo-footer__cta:hover { background: var(--brand-dark); color: #fff; }

/* =============================================================================
   Dashboard shell (dark header + sidebar)
   ============================================================================= */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.app-header {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 1rem;
    height: var(--header-h); padding: 0 1rem 0 1.25rem;
    background: var(--dark); color: #fff;
}
.app-header .brand { display: inline-flex; align-items: center; }
.app-header .brand img { height: 30px; width: auto; display: block; }
.app-header .header-spacer { flex: 1; }
.app-header .header-user { display: flex; align-items: center; gap: 0.85rem; font-size: 0.9rem; color: var(--dark-text); }
.app-header .header-user strong { color: #fff; font-weight: 600; }
.app-header .role-badge {
    background: var(--dark-2); color: var(--dark-text); border: 1px solid var(--dark-border);
    padding: 0.15rem 0.55rem; border-radius: var(--radius-chip); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.app-header .logout-btn {
    background: transparent; color: var(--dark-text); border: 1px solid var(--dark-border);
    padding: 0.35rem 0.75rem; border-radius: var(--radius); cursor: pointer; font-size: 0.85rem;
}
.app-header .logout-btn:hover { color: #fff; border-color: var(--dark-text); }

/* Hamburger (mobile only). 44x44 touch target with a centred icon. */
.nav-toggle {
    display: none; background: transparent; border: none; color: #fff;
    cursor: pointer; line-height: 1; padding: 0;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    margin-left: -0.5rem;
}
.nav-toggle .icon { width: 24px; height: 24px; }

.app-body { flex: 1; display: flex; align-items: stretch; }

.app-sidebar {
    width: var(--sidebar-w); flex-shrink: 0; background: var(--dark-2); color: var(--dark-text);
    padding: 1rem 0.75rem; overflow-y: auto;
}
.app-sidebar .nav-section { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dark-text-dim); margin: 1rem 0.75rem 0.4rem; }
.app-sidebar .nav-link {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.6rem 0.75rem; border-radius: var(--radius);
    color: var(--dark-text); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.app-sidebar .nav-link:hover { background: var(--dark-border); color: #fff; }
.app-sidebar .nav-link.active { background: var(--brand); color: #fff; }
.app-sidebar .nav-link .nav-ico { width: 1.1rem; text-align: center; }

.app-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
main.dashboard-main { flex: 1; padding: 1.75rem 2rem; max-width: 1180px; width: 100%; margin: 0 auto; }
@media (max-width: 1023px) { main.dashboard-main { padding: 1.5rem 1.25rem; } }

.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }

/* ---- Manage-event top bar (Req 5) ----
   The primary action surface for a single event's manage screens. It is the
   sole child of `.page-head`, so it spans the full row and lays out the title
   cluster (event name + live/draft pill, inline) on the left and the publish /
   navigation actions on the right. Uses existing tokens only. */
.manage-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}
.manage-topbar__title { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.manage-topbar__title h1 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.manage-topbar__actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-left: auto; }
.manage-topbar__actions form { margin: 0; }

/* Sidebar backdrop for mobile */
.sidebar-backdrop { display: none; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .app-header .header-user .user-name { display: none; }

    .app-sidebar {
        position: fixed; top: var(--header-h); bottom: 0; left: 0; z-index: 50;
        transform: translateX(-100%); transition: transform 0.2s ease;
        box-shadow: 2px 0 12px rgba(0,0,0,0.3);
    }
    .app-shell.nav-open .app-sidebar { transform: translateX(0); }
    .app-shell.nav-open .sidebar-backdrop {
        display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.45); z-index: 45;
    }
    main.dashboard-main { padding: 1.25rem; }

    .site-footer__inner { grid-template-columns: 1fr; }
    .site-footer__nav { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
    .site-footer__nav { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}

/* =============================================================================
   Dashboard forms & action controls
   ============================================================================= */
.page-head__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.form-panel { padding: 0; }
.form-panel > .stack { padding: 1.25rem; }
.form-panel .panel__head + .stack { padding-top: 1.25rem; }

.stack > * + * { margin-top: 0.25rem; }
.stack .field + .field, .stack .field-row + .field, .stack .field + .field-row { margin-top: 1rem; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.field textarea { width: 100%; padding: 0.5rem 0.625rem; border: 1px solid #d1d5db; border-radius: var(--radius); font: inherit; }
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 22, 196, 0.15); }
.field-label { display: block; font-weight: 600; margin: 0.75rem 0 0.25rem; }

.form-actions { display: flex; gap: 0.6rem; margin-top: 1.25rem; flex-wrap: wrap; }

.inline-form { display: inline; margin: 0; }
.row-actions { display: inline-flex; gap: 0.4rem; justify-content: flex-end; }
.role-form select { padding: 0.35rem 0.5rem; border: 1px solid #d1d5db; border-radius: var(--radius); font: inherit; background: #fff; }

.edit-cell { background: #f9fafb; padding: 1.25rem !important; }

/* =============================================================================
   Tabbed panels (e.g. dashboard branding/settings)
   ============================================================================= */
.tabs { margin-top: 1.25rem; }
.tab-list {
    display: flex; flex-wrap: wrap; gap: 0.25rem;
    border-bottom: 1.5px solid var(--border); margin-bottom: 1.5rem;
}
.tab-btn {
    appearance: none; background: transparent; border: none; cursor: pointer;
    padding: 0.65rem 1rem; margin-bottom: -1px;
    font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--muted);
    border-bottom: 2px solid transparent; border-radius: var(--radius) var(--radius) 0 0;
    display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
}
.tab-btn:hover { color: var(--ink); background: #f3f4f6; }
.tab-btn[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tab-btn .tab-flag {
    display: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #dc2626;
}
.tab-btn.has-error .tab-flag { display: inline-block; }

.tab-panel[hidden] { display: none; }
.tab-panel > .field:first-child,
.tab-panel > fieldset:first-child { margin-top: 0; }

/* Fieldsets inside tab panels read as grouped sections, not boxed-in forms. */
.tab-panel fieldset { border: none; padding: 0; margin: 0 0 1.25rem; }
.tab-panel fieldset > legend { padding: 0; font-weight: 700; color: var(--ink); margin-bottom: 0.65rem; font-size: 1rem; }
.tab-panel .field-hint { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }
.tab-panel .field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.25rem; }

@media (max-width: 560px) {
    .tab-list { flex-wrap: nowrap; overflow-x: auto; }
}

/* =============================================================================
   Branding preview (dashboard branding/settings + event branding)
   ============================================================================= */
.branding-preview {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; margin-bottom: 1.5rem;
}
.branding-preview > p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Wide storefront/event hero image: constrain to a modest banner thumbnail so
   the preview never dominates the page, regardless of the source resolution. */
.branding-preview .brand-poster {
    display: block; flex: 1 1 320px; width: 100%; max-width: 420px; max-height: 140px;
    object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border);
}

/* Company/event logo: cap to a small preview tile so a large upload doesn't
   render at full natural size. */
.branding-preview .brand-logo {
    display: block; flex: none; width: auto; height: auto;
    max-width: 180px; max-height: 80px; object-fit: contain;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem;
}

/* Swatch-style read-out of the effective primary colour. */
.branding-preview [data-primary-colour] {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.9rem; color: var(--ink);
}
.branding-preview [data-primary-colour]::before {
    content: ''; width: 1.1rem; height: 1.1rem; border-radius: 0.25rem;
    background: var(--brand); border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Generic field hint (outside the tabbed branding form). */
.field-hint { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }

/* =============================================================================
   Sponsor slots on the event branding form
   ============================================================================= */
.sponsor-slot {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem 1.25rem 1.25rem; margin: 0 0 1.5rem;
}
.sponsor-slot > legend {
    padding: 0 0.5rem; font-weight: 700; color: var(--ink);
}
/* Constrain the current-sponsor preview image so a large upload renders as a
   modest thumbnail rather than at its full natural size. The preview reuses the
   .brand-poster class but lives outside .branding-preview, so size it here. */
.sponsor-slot .brand-poster {
    display: block; width: auto; max-width: 320px; max-height: 120px;
    object-fit: contain; border-radius: var(--radius); border: 1px solid var(--border);
    background: #fff; padding: 0.4rem; margin-bottom: 0.6rem;
}

/* =============================================================================
   Sponsors management screen (dashboard.events.sponsors)
   ============================================================================= */
.sponsor-preview {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.25rem;
}
.sponsor-preview__title { margin: 0 0 0.6rem; font-size: 1rem; }
/* A light mock of the ticket's bottom sponsor band. */
.sponsor-preview__ticket { background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); padding: 0.75rem; }
.sponsor-preview__band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem;
}
.sponsor-preview__logo { max-height: 60px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
.sponsor-preview__caption { margin: 0.5rem 0 0; font-size: 0.8125rem; text-align: center; }

.sponsor-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sponsor-list__item {
    display: grid; grid-template-columns: 120px 1fr auto; gap: 1rem; align-items: start;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem;
}
.sponsor-list__logo img {
    display: block; width: 100%; max-height: 90px; object-fit: contain;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.4rem;
}
.sponsor-list__form { display: grid; gap: 0.6rem; min-width: 0; }
.sponsor-list__ops { display: flex; flex-direction: column; gap: 0.4rem; align-items: stretch; }
.sponsor-list__ops form { margin: 0; }
.sponsor-list__ops .btn { width: 100%; }
.btn-danger { color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }

.sponsor-add, .sponsor-copy {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.25rem;
}
.sponsor-copy__form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }

@media (max-width: 640px) {
    .sponsor-list__item { grid-template-columns: 1fr; }
}

/* =============================================================================
   Public event page + checkout (layouts.app / main.event-main)
   A branded, non-bland ticket buying flow. Brand colour is injected per event
   via :root { --brand }.
   ============================================================================= */
main.public-main.event-main { max-width: 1040px; padding-top: 0; }

.event-page { }

/* ---- Hero / poster ---- */
.event-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.event-hero--plain {
    background:
        radial-gradient(900px 320px at 20% -40%, color-mix(in srgb, var(--brand) 32%, transparent), transparent 70%),
        linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; padding: 2.5rem 1.75rem;
}
.event-hero--poster { min-height: 300px; display: flex; align-items: flex-end; color: #fff; }
.event-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-hero__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,11,26,0.86) 0%, rgba(8,11,26,0.35) 55%, rgba(8,11,26,0.15) 100%);
}
.event-hero__content { position: relative; padding: 2.25rem 1.75rem; width: 100%; }
.event-hero--plain .event-hero__content { padding: 0; }
.event-hero__logo {
    max-height: 60px; width: auto; margin-bottom: 1rem; display: block;
    background: rgba(255,255,255,0.95); padding: 0.4rem 0.6rem; border-radius: var(--radius);
}
.event-hero h1 { color: #fff; font-size: 2.15rem; margin: 0 0 0.6rem; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.event-hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.event-meta-item {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.95rem; color: rgba(255,255,255,0.92);
}
.event-meta-item::before { font-size: 1rem; line-height: 1; }
.event-meta-item--date::before { content: '🗓'; }
.event-meta-item--venue::before { content: '📍'; }

/* ---- Two-column layout ---- */
.event-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
/* On a single column (mobile), lift the ticket/checkout panel above the event
   description and support details so buyers reach the tickets first rather than
   scrolling past the write-up and the company/support block. */
.event-checkout { order: -1; }
@media (min-width: 860px) {
    .event-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
    /* Back to source order for the two-column layout: primary content left,
       checkout right. */
    .event-primary { order: 0; }
    .event-checkout { order: 0; position: sticky; top: 1.5rem; }
}

.event-about h2 { margin-top: 0; }
.event-description { color: var(--body, #454a5a); white-space: pre-line; line-height: 1.7; }

.event-organiser {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.event-organiser__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); width: 100%; }
.event-organiser__logo { max-height: 40px; width: auto; }
.event-organiser__name { font-weight: 600; color: var(--ink); }

.event-sponsors { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.event-sponsors h2 { margin-top: 0; }
.event-sponsors__img { display: block; max-width: 100%; height: auto; margin: 0 0 1rem; border-radius: var(--radius); }

/* Sponsor logos with click-to-reveal name / bio / website (event page). */
.store-sponsors__grid { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.store-sponsors__img {
    display: block; max-width: 100%; max-height: 90px; width: auto; height: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem 1rem;
}
.store-sponsor { display: inline-block; }
.store-sponsor__summary { list-style: none; cursor: pointer; display: inline-flex; }
.store-sponsor__summary::-webkit-details-marker { display: none; }
.store-sponsor__summary .store-sponsors__img { transition: box-shadow .15s ease; }
.store-sponsor__summary:hover .store-sponsors__img,
.store-sponsor[open] .store-sponsors__img { box-shadow: 0 0 0 2px var(--brand, #2563eb); }
.store-sponsor__info {
    margin-top: .5rem; max-width: 22rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem;
}
.store-sponsor__name { font-weight: 600; margin: 0 0 .35rem; }
.store-sponsor__bio { margin: 0 0 .5rem; }
.store-sponsor__link { margin: 0; }

/* ---- Checkout card ---- */
.checkout-card {
    background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; box-shadow: 0 12px 40px rgba(17,24,39,0.08);
}
.checkout-card__title { margin: 0 0 1.15rem; font-size: 1.25rem; }

/* Ticket type rows */
.ticket-type-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.65rem; }
.ticket-type {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ticket-type.is-selected { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.ticket-type[data-sold-out] { opacity: 0.6; }
.ticket-type__info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ticket-type-name { font-weight: 600; color: var(--ink); }
.ticket-type-price { font-size: 1.05rem; font-weight: 700; color: var(--brand); }
.ticket-type-fee-note { font-size: 0.78rem; color: var(--muted); }
.ticket-type-availability { font-size: 0.8rem; color: var(--muted); }
.ticket-type-state-pill {
    font-size: 0.75rem; font-weight: 600; color: #5b616e;
    background: #f3f4f6; padding: 0.25rem 0.6rem; border-radius: var(--radius-chip); white-space: nowrap;
}

/* Quantity stepper */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn {
    width: 2.1rem; height: 2.1rem; border: none; background: #f3f4f6; color: var(--ink);
    font-size: 1.15rem; line-height: 1; cursor: pointer; transition: background 0.15s ease;
}
.qty-btn:hover { background: #e5e7eb; }
.qty-input {
    width: 2.6rem; height: 2.1rem; text-align: center; border: none; border-left: 1px solid var(--border);
    border-right: 1px solid var(--border); font-size: 0.95rem; font-weight: 600; -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 40%, transparent); }

/* Running order summary (subtotal, booking fee, total) */
.checkout-summary {
    padding: 0.85rem 0; margin-bottom: 0.5rem; border-top: 1px dashed var(--border);
}
.checkout-summary__row {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 0.2rem 0;
}
.checkout-summary__label { color: var(--muted); font-size: 0.95rem; }
.checkout-summary__value { font-size: 1rem; font-weight: 600; color: var(--ink); }
.checkout-summary__row--total {
    margin-top: 0.35rem; padding-top: 0.55rem; border-top: 1px solid var(--border);
}
.checkout-summary__row--total .checkout-summary__label { color: var(--ink); font-weight: 600; }
.checkout-summary__row--total .checkout-summary__value { font-size: 1.35rem; font-weight: 800; }

.checkout-fields { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.checkout-fields .field { margin-bottom: 0.5rem; }

/* Consents */
.checkout-consents { display: grid; gap: 0.6rem; margin-bottom: 1.25rem; }
.consent { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; color: var(--body, #454a5a); cursor: pointer; }
.consent input[type="checkbox"] { margin-top: 0.15rem; width: 1.05rem; height: 1.05rem; accent-color: var(--brand); flex: none; }
.consent--optional { color: var(--muted); }
.linklike { background: none; border: none; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }

.checkout-submit { font-size: 1rem; padding: 0.75rem 1.1rem; }
.checkout-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.checkout-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 0.75rem 0 0; }
.checkout-note--secure::before { content: '🔒 '; }

/* ---- Mobile sticky "Book now" bar ---- */
.book-now-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1.5px solid var(--border);
    box-shadow: 0 -6px 24px rgba(17, 24, 39, 0.12);
    border-radius: var(--radius);
}
.book-now-bar[hidden] { display: none; }
.book-now-bar__label { font-size: 0.8rem; color: var(--muted); display: block; }
.book-now-bar__amount { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.book-now-bar__cta {
    min-height: 44px; min-width: 44px;
    padding: 0.65rem 1.25rem; font-size: 1rem;
}
/* Hide the whole bar on tablet / desktop widths */
@media (min-width: 860px) {
    .book-now-bar { display: none; }
}

/* Terms modal */
/* The Leaflet map creates its own stacking context; `isolation: isolate` plus a
   low z-index confines its internal panes/controls (which use z-indexes up to
   ~1000) so they can never paint above the fixed modal overlay. */
#public-map { position: relative; z-index: 0; isolation: isolate; }
.leaflet-container { z-index: 0; }

/* z-index sits above the map's isolated stacking context so the modal and its
   backdrop cover the map instead of being drawn under it. */
.terms-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.terms-modal[hidden] { display: none; }
.terms-modal__backdrop { position: absolute; inset: 0; background: rgba(8,11,26,0.55); }
.terms-modal__panel {
    position: relative; background: var(--surface); border-radius: var(--radius); max-width: 620px; width: 100%;
    max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.terms-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.terms-modal__head h3 { margin: 0; }
.terms-modal__close { background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
/* min-height:0 lets the body actually scroll inside the flex column when the
   content is taller than the panel (long terms / privacy notices). */
.terms-modal__body { padding: 1.35rem; overflow-y: auto; min-height: 0; flex: 1 1 auto; white-space: pre-line; line-height: 1.7; color: var(--body, #454a5a); }

/* =============================================================================
   Checkout return pages (success / cancel)
   ============================================================================= */
.checkout-return {
    max-width: 560px; margin: 1.5rem auto; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 2.25rem;
    box-shadow: 0 12px 40px rgba(17,24,39,0.08); text-align: center;
}
.checkout-return__icon {
    width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.checkout-success .checkout-return__icon { background: #ecfdf5; color: #059669; }
.checkout-cancel .checkout-return__icon { background: #fef2f2; color: #dc2626; }
.checkout-return h1 { font-size: 1.7rem; }
.checkout-confirmed, .checkout-pending, .checkout-cancelled { color: var(--muted); margin: 0 auto 1.5rem; max-width: 42ch; }
.checkout-return .order-summary {
    text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.25rem;
    background: var(--bg); border-radius: var(--radius); padding: 1.25rem 1.35rem; margin: 0 0 1.75rem;
}
.checkout-return .order-summary dt { color: var(--muted); font-size: 0.9rem; }
.checkout-return .order-summary dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.checkout-return .order-reference { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.03em; }
.checkout-return .order-total { font-size: 1.1rem; color: var(--brand); }
.checkout-return .btn { display: inline-block; }

/* "You bought from" seller block */
.checkout-seller {
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    margin: 0 auto 1.5rem; padding: 0.9rem 1.25rem; max-width: 42ch;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.checkout-seller__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.checkout-seller__name { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.checkout-seller__link { font-size: 0.88rem; color: var(--brand); text-decoration: none; }
.checkout-seller__link:hover { text-decoration: underline; }

/* "Haven't got your tickets?" help block */
.checkout-help {
    text-align: left; margin: 0 0 1.75rem; padding: 1.25rem 1.35rem;
    background: #f0f9ff; border: 1px solid #bae6fd; border-radius: var(--radius);
}
.checkout-help h2 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--ink); }
.checkout-help p { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.checkout-help p:last-child { margin-bottom: 0; }
.checkout-help__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.checkout-help__contacts li { display: flex; align-items: center; gap: 0.6rem; }
.checkout-help__ico {
    width: 28px; height: 28px; flex: none; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e0f2fe; color: #0369a1; font-size: 0.9rem;
}
.checkout-help__contacts a { color: #0369a1; font-weight: 600; text-decoration: none; word-break: break-word; }
.checkout-help__contacts a:hover { text-decoration: underline; }

/* =============================================================================
   Event page: Support & lost tickets
   ============================================================================= */
.event-support {
    margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.event-support > h2 { margin-top: 0; }
.event-support__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 620px) {
    .event-support__grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.event-support__resend, .event-support__contact {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1.35rem;
}
.event-support h3 { margin: 0 0 0.5rem; font-size: 1.02rem; color: var(--ink); }
.event-support__resend > p, .event-support__hint {
    margin: 0 0 0.85rem; color: var(--muted); font-size: 0.9rem; line-height: 1.55;
}
.event-support__hint { margin: 0.85rem 0 0; }
.event-support__form { display: grid; gap: 0.65rem; margin: 0.25rem 0 0; }
.event-support__form .field { margin: 0; }
.event-support__notice {
    margin: 0 0 0.85rem; padding: 0.75rem 0.9rem; border-radius: var(--radius);
    background: #f0f9ff; border: 1px solid #bae6fd; color: #075985;
    font-size: 0.9rem; line-height: 1.5;
}
.event-support__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.event-support__contacts li { display: flex; align-items: center; gap: 0.6rem; }
.event-support__ico {
    width: 28px; height: 28px; flex: none; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font-size: 0.9rem;
}
.event-support__contacts a { color: var(--brand); font-weight: 600; text-decoration: none; word-break: break-word; }
.event-support__contacts a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    .event-hero h1 { font-size: 1.7rem; }
    .checkout-return { padding: 1.5rem; }
}

/* =============================================================================
   Manage-event page: status pills, two-column layout, publish checklist card
   ============================================================================= */

/* ---- Status pills (published/draft, checklist rows) --------------------- */
.pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.75rem; font-weight: 600; line-height: 1;
    padding: 0.3rem 0.6rem; border-radius: var(--radius-chip); white-space: nowrap;
    background: #f3f4f6; color: #5b616e;
}
.pill--live { background: #ecfdf5; color: #047857; }
.pill--draft { background: #fef3c7; color: #92400e; }
.pill--cancelled { background: #fef2f2; color: #b91c1c; }

/* ---- Two-column manage layout: content left, sticky checklist right ----- */
.event-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.75rem; align-items: start;
}
.event-layout__main { min-width: 0; }
.event-layout__aside { position: sticky; top: 1.25rem; }

@media (max-width: 900px) {
    .event-layout { grid-template-columns: 1fr; }
    /* On narrow screens the checklist leads, so managers see what's needed first. */
    .event-layout__aside { position: static; order: -1; }
}

/* ---- Publish checklist card --------------------------------------------- */
.publish-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); overflow: hidden;
}
.publish-card__head {
    padding: 1rem 1.15rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.publish-card__head h2 { margin: 0; font-size: 1rem; }
.publish-card__progress { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }

.checklist { list-style: none; margin: 0; padding: 0.35rem 0; }
.checklist__item {
    display: flex; align-items: flex-start; gap: 0.65rem;
    padding: 0.6rem 1.15rem; font-size: 0.9rem;
}
.checklist__item + .checklist__item { border-top: 1px solid #f3f4f6; }
.checklist__icon {
    flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.05rem;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; line-height: 1;
}
.checklist__icon--done { background: #ecfdf5; color: #047857; }
.checklist__icon--todo { background: #fef2f2; color: #dc2626; }
.checklist__icon--optional { background: #f3f4f6; color: var(--muted); }
.checklist__body { min-width: 0; }
.checklist__label { display: block; color: var(--ink); font-weight: 600; }
.checklist__item--done .checklist__label { color: var(--muted); font-weight: 500; }
.checklist__meta { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; }
.checklist__req { color: #b45309; }

.publish-card__foot { padding: 1rem 1.15rem; border-top: 1px solid var(--border); }
.publish-card__foot .btn { width: 100%; justify-content: center; }
.publish-card__hint { margin: 0.6rem 0 0; font-size: 0.8125rem; color: var(--muted); text-align: center; }
.publish-card__note { margin: 0.6rem 0 0; font-size: 0.8125rem; color: #047857; text-align: center; }

/* ---- Tab status flags: tick (done) / cross (needs attention) ------------ */
/* Reuses the branding/settings .tab-list + .tab-btn look. The event tabs add a
   small status glyph before the label for the mandatory sections. */
.tab-btn .tab-status {
    flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; line-height: 1;
}
.tab-btn .tab-status--done { background: #ecfdf5; color: #047857; }
.tab-btn .tab-status--todo { background: #fef2f2; color: #dc2626; }

/* Visually-hidden but screen-reader-available (used by tab panels + status glyphs). */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* =============================================================================
   Event manage screens (dedicated per-section screens + section sidebar)
   Second-level layout that sits inside the dashboard shell: a fixed section
   nav + setup checklist on the left, the active screen's content on the right.
   ============================================================================= */
.event-manage {
    display: grid; grid-template-columns: 232px minmax(0, 1fr);
    gap: 1.5rem; align-items: start; margin-top: 1.25rem;
}
.event-manage__nav { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 1.25rem; }
.event-manage__body { min-width: 0; }

/* Section nav — a vertical list that reads as a sidebar, not a row of buttons.
   Active item uses a soft brand tint (not the solid deep-brand fill) so it
   sits comfortably beside the content instead of shouting. */
.section-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.section-nav__link {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.6rem 0.75rem; border-radius: 0.55rem;
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: background 0.12s ease, color 0.12s ease;
}
.section-nav__link:hover { background: #f3f4f6; }
.section-nav__link.is-active {
    background: color-mix(in srgb, var(--brand) 10%, #fff);
    color: var(--brand);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent);
}
.section-nav__ico { flex: none; width: 1.2rem; text-align: center; font-size: 1rem; }
.section-nav__flag { margin-left: auto; font-size: 0.95rem; line-height: 1; }
.section-nav__flag--todo { color: #dc2626; }
.section-nav__flag--done { color: #047857; }

/* Panels: the card frame for content on the event screens (and reused wherever
   .panel appears). Gives each grouped section a clear surface + heading. */
.event-manage__body .panel,
.panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card);
    margin-bottom: 1.25rem; overflow: hidden;
}
.panel > .field,
.panel > .field-row,
.panel > .stack,
.panel > table,
.panel > .empty,
.panel > .status,
.panel > .form-actions,
.panel > p { padding-left: 1.15rem; padding-right: 1.15rem; }
.panel > .field:first-of-type,
.panel > .stack:first-of-type { padding-top: 0.25rem; }
.panel > .form-actions { padding-bottom: 1.15rem; }
.panel > table { padding: 0; }
.panel__head {
    padding: 0.9rem 1.15rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.panel__head h2 { margin: 0; font-size: 1.05rem; }
.panel__head h3 { margin: 0; font-size: 0.95rem; }
.panel__foot { padding: 0.9rem 1.15rem; border-top: 1px solid var(--border); }

/* form-panel keeps its stack padded (already defined) but should still get the
   card frame on these screens — the .panel rule above covers it. */
.form-panel .stack { padding: 1.15rem; }

/* Section head row (ticket types): screen-section title left, "New" action
   right. Sits above the panels it introduces, so no card frame of its own. */
.tab-head {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    margin: 0 0 0.85rem;
}
.tab-head h2 { margin: 0; font-size: 1.15rem; }

/* Radio group ("Location type", capacity mode, etc.): a tidy inline row of
   selectable chips instead of a boxed fieldset with drifting radios. */
fieldset.field { border: none; padding: 0; margin: 0 0 1rem; }
fieldset.field > legend {
    padding: 0; font-weight: 700; margin-bottom: 0.5rem; color: var(--ink);
}
.choice {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 0.9rem; margin: 0 0.5rem 0 0;
    border: 1px solid var(--border); border-radius: 0.55rem;
    font-weight: 500; cursor: pointer; background: #fff;
    transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.choice:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.choice:has(input:checked) {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 6%, #fff);
    box-shadow: inset 0 0 0 1px var(--brand);
}
.choice input { width: auto; margin: 0; accent-color: var(--brand); }

/* Inline "done" tick shown next to a satisfied field label (e.g. Venue). */
.field-tick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.05rem; height: 1.05rem; border-radius: 50%;
    background: #ecfdf5; color: #047857; font-size: 0.72rem; font-weight: 700;
    margin-left: 0.35rem; vertical-align: middle;
}

/* Location pin status line. */
.location-status {
    display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
    margin: 0; padding: 0.7rem 0.85rem; border-radius: 0.55rem;
    background: #f9fafb; border: 1px solid var(--border);
    font-size: 0.875rem; color: var(--ink);
}
.location-status[data-pinned="false"] { background: #fffbeb; border-color: #fde68a; }
.location-status[data-pinned="true"] { background: #ecfdf5; border-color: #a7f3d0; }

/* A clearly separated, secondary final section (e.g. Issue comp tickets). */
.panel--secondary { background: #fbfbfd; }
.section-divider {
    display: flex; align-items: center; gap: 0.75rem;
    margin: 1.75rem 0 1rem; color: var(--muted);
    font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.section-divider::before, .section-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

@media (max-width: 860px) {
    .event-manage { grid-template-columns: 1fr; }
    .event-manage__nav { position: static; }
    .section-nav { flex-direction: row; flex-wrap: wrap; }
    .section-nav__flag { margin-left: 0.35rem; }
}

/* Capacity advisory sits inside the Overall capacity panel, below the form. */
.capacity-advisory { padding: 0 1.15rem 1.15rem; }
.capacity-advisory .hint { margin-top: 0; }

/* =============================================================================
   Super-admin portal
   Reusable presentation for the /admin surface: a page header, stat cards,
   panels, data tables and pills. Mirrors the Company dashboard look so the two
   surfaces feel like one product. All amounts on this surface are GBP.
   ============================================================================= */

/* Page header: title + supporting copy + optional actions on the right. */
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin-head h1 { margin: 0 0 0.25rem; }
.admin-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.admin-head__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* Stat cards: the headline figures, matching the Company dashboard. */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.admin-stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 1.1rem 1.25rem;
    display: flex; flex-direction: column; gap: 0.35rem;
}
.admin-stat__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.admin-stat__value { font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.admin-stat__sub { font-size: 0.8rem; color: var(--muted); }

/* Panels: a titled card frame for grouped content (tables, forms, figures). */
.admin-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; margin-bottom: 1.5rem; }
.admin-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); }
.admin-panel__head h2 { margin: 0; font-size: 1.05rem; }
.admin-panel__body { padding: 1.25rem; }
.admin-panel__body > :first-child { margin-top: 0; }
.admin-panel__body > :last-child { margin-bottom: 0; }
.admin-panel > .admin-table { margin: 0; }

/* Tables inside the admin surface. */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: middle; text-align: left; }
.admin-table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 600; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #fafafa; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .cell-strong { font-weight: 600; color: var(--ink); text-decoration: none; }
.admin-table .cell-strong:hover { color: var(--brand); }
.admin-table .cell-dim { display: block; font-size: 0.8rem; color: var(--muted); }

/* Key/value list for a small block of facts (settings, a client's profile). */
.admin-facts { width: 100%; border-collapse: collapse; }
.admin-facts th, .admin-facts td { padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-facts th { font-weight: 500; color: var(--muted); width: 40%; }
.admin-facts tr:last-child th, .admin-facts tr:last-child td { border-bottom: none; }
.admin-facts td { color: var(--ink); }
.admin-facts .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }

/* Status pills for company/order state. */
.admin-pill { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; line-height: 1; padding: 0.28rem 0.55rem; border-radius: var(--radius-chip); text-transform: capitalize; background: #f3f4f6; color: var(--muted); }
.admin-pill--active { background: #ecfdf5; color: #047857; }
.admin-pill--suspended { background: #fef2f2; color: #b91c1c; }
.admin-pill--pending { background: #fef3c7; color: #92400e; }
.admin-pill--closed { background: #f3f4f6; color: #6b7280; }

/* An empty-state block inside a panel. */
.admin-empty { padding: 2rem 1.25rem; text-align: center; color: var(--muted); }

/* Back link above a detail page title. */
.admin-back { display: inline-block; font-size: 0.85rem; margin-bottom: 0.5rem; text-decoration: none; }

/* A red error flash, mirroring .status but for failures. */
.status--error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

/* =============================================================================
   Trust & Legal Centre (public)
   ============================================================================= */
.legal-centre__head { margin-bottom: 1.75rem; }
.legal-centre__intro { color: var(--muted); font-size: 1.0625rem; max-width: 640px; margin: 0.25rem 0 0; }
.legal-centre__empty {
    background: var(--surface); border: 1px dashed var(--border); border-radius: 0.75rem;
    padding: 2.5rem 1.5rem; text-align: center; color: var(--muted);
}

.legal-centre__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem;
}

.legal-card {
    display: flex; flex-direction: column; gap: 0.85rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: 0.85rem;
    padding: 1.5rem; text-decoration: none; color: var(--ink);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative; overflow: hidden;
}
/* Brand accent bar down the left edge, revealed on hover. */
.legal-card::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
    background: var(--brand); transform: scaleY(0); transform-origin: top;
    transition: transform 0.18s ease;
}
.legal-card:hover {
    transform: translateY(-3px); border-color: #c7cbff; color: var(--ink);
    box-shadow: 0 12px 28px rgba(15, 22, 196, 0.12);
}
.legal-card:hover::before { transform: scaleY(1); }
.legal-card:focus-visible {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 22, 196, 0.18);
}

.legal-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; flex: none; border-radius: 0.7rem;
    background: #eef0ff; font-size: 1.5rem; line-height: 1;
}
.legal-card__body { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 auto; }
.legal-card__title { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.legal-card__blurb { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.legal-card__go { font-weight: 600; font-size: 0.9rem; color: var(--brand); margin-top: 0.15rem; }
.legal-card:hover .legal-card__go { color: var(--brand-dark); }

/* =============================================================================
   Shared public chrome (matches the landing page header/footer)
   Navy bar + "Events by CK Enterprises" wordmark, used by layouts.app so the
   Trust & Legal Centre, privacy and auth pages share the main page's chrome.
   Palette is defined locally here so it does not depend on the landing page's
   inline styles.
   ============================================================================= */
:root {
    --pub-navy: #0f1425;
    --pub-teal: #30f0b6;
    --pub-purple: #674df3;
    --pub-purple-dark: #5238d6;
}

/* The shared wordmark, in both header and footer. Sizes match the landing
   page brand (.brand-*) so the header does not read as squished. */
.pub-logo {
    display: inline-flex; align-items: baseline; gap: 0.36rem; min-width: 0;
    font-family: 'Cabin Sketch', cursive; font-weight: 700; line-height: 1;
    text-decoration: none; color: #fff; white-space: nowrap;
}
.pub-logo .events { font-size: 1.22rem; color: var(--pub-teal); }
.pub-logo .by {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600; font-size: 0.68rem; letter-spacing: 0.05em;
    color: #8ea0ca; text-transform: uppercase;
}
.pub-logo .ck { font-size: 1.22rem; color: #fff; }

@media (max-width: 640px) {
    .pub-header__inner { min-height: 62px; }
    .pub-logo .events, .pub-logo .ck { font-size: 1.02rem; }
    .pub-logo .by { margin-inline: 0.28rem; font-size: 0.61rem; }
    .pub-mobile-nav__actions { grid-template-columns: 1fr; }
}

/* Header — matches the landing page chrome (.site-header / .header-inner). */
.pub-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(20, 26, 46, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pub-header__inner {
    width: min(100% - 32px, 1120px); margin: 0 auto; padding: 0;
    min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.pub-nav { display: flex; align-items: center; gap: 1.35rem; }
.pub-nav form { margin: 0; }
.pub-nav__link {
    color: #c7d0e6; font-weight: 600; font-size: 0.92rem; text-decoration: none;
    background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer;
}
.pub-nav__link:hover { color: #fff; }
.pub-nav__btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0.6rem 1.2rem; border-radius: 7px; border: 1px solid transparent;
    background: var(--pub-purple); color: #fff; font-weight: 700; font-size: 0.95rem;
    font-family: inherit; cursor: pointer; text-decoration: none;
    transition: background 0.15s ease;
}
.pub-nav__btn:hover { background: var(--pub-purple-dark); color: #fff; }
.pub-nav__btn--secondary {
    background: #fff; color: var(--pub-navy); border-color: #d0d5dd; width: 100%;
}
.pub-nav__btn--secondary:hover { background: #f2f4f7; color: var(--pub-navy); }

/* Mobile menu toggle + drawer, mirroring the landing page behaviour. */
.pub-mobile-toggle {
    display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 7px;
    background: transparent; color: #fff; cursor: pointer;
}
.pub-mobile-toggle svg { width: 22px; height: 22px; }

.pub-mobile-nav { display: none; background: var(--pub-navy); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pub-mobile-nav.open { display: block; }
.pub-mobile-nav__inner {
    width: min(100% - 32px, 1120px); margin: 0 auto;
    padding-top: 0.6rem; padding-bottom: 0.95rem;
}
.pub-mobile-nav__inner a:not(.pub-nav__btn) {
    min-height: 46px; display: flex; align-items: center; color: #d7deed; font-weight: 600; text-decoration: none;
}
.pub-mobile-nav__actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding-top: 0.75rem;
}
.pub-mobile-nav__actions form { margin: 0; }
.pub-mobile-nav__actions .pub-nav__btn { width: 100%; }

@media (max-width: 940px) {
    .pub-nav { display: none; }
    .pub-mobile-toggle { display: inline-flex; }
}

/* Footer */
.pub-footer { background: var(--pub-navy); color: #8b90a5; margin-top: 3rem; }
.pub-footer__inner {
    width: 100%; max-width: 1080px; margin: 0 auto; padding: 2.75rem 1.5rem 2rem;
}
.pub-footer__top {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1.25rem;
    padding-bottom: 1.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pub-footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.pub-footer__links a { color: #c1c5d4; font-size: 0.94rem; text-decoration: none; }
.pub-footer__links a:hover { color: #fff; }
.pub-footer__copy { padding-top: 1.5rem; font-size: 0.85rem; }
.pub-footer__copy a { color: #c1c5d4; }
.pub-footer__copy a:hover { color: #fff; }

@media (max-width: 640px) {
    .pub-footer__top { flex-direction: column; align-items: flex-start; }
}

/* =============================================================================
   Event page: sponsors shown expanded (name / bio / link inline, no click)
   ============================================================================= */
.store-sponsors__grid--expanded {
    display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: stretch;
}
/* Only go two-up on wider viewports; inside the event page's primary column a
   single column keeps each sponsor's bio comfortably readable. */
@media (min-width: 1100px) {
    .store-sponsors__grid--expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.store-sponsor--expanded {
    display: flex; align-items: flex-start; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.1rem;
}
/* Fixed-width logo column so the info column keeps the rest of the row and the
   bio reads as normal wrapped text rather than one word per line. */
.store-sponsor--expanded .store-sponsor__logo {
    flex: 0 0 auto; width: 140px; display: flex; align-items: center; justify-content: center;
}
.store-sponsor--expanded .store-sponsors__img {
    margin: 0; width: 100%; max-width: 140px; max-height: 72px; object-fit: contain;
    background: none; border: none; padding: 0;
}
.store-sponsor--expanded .store-sponsor__info {
    /* Take the remaining width and allow the text to shrink/wrap normally. */
    flex: 1 1 auto; min-width: 0;
    margin: 0; max-width: none; background: none; border: none; padding: 0;
    display: flex; flex-direction: column; gap: 0.35rem;
}
.store-sponsor--expanded .store-sponsor__name { margin: 0; }
.store-sponsor--expanded .store-sponsor__bio {
    color: var(--body, #454a5a); font-size: 0.9rem; line-height: 1.55;
    margin: 0; overflow-wrap: anywhere;
}
.store-sponsor--expanded .store-sponsor__link { margin: 0; }
.store-sponsor__logolink { display: inline-flex; }

/* =============================================================================
   Dedicated checkout step: order summary + customer details + payment
   ============================================================================= */
.checkout-page { max-width: 960px; margin: 0 auto; }
.checkout-page__head { margin-bottom: 1.5rem; }
.checkout-back {
    display: inline-block; margin-bottom: 0.75rem;
    color: var(--brand); font-weight: 600; text-decoration: none; font-size: 0.9rem;
}
.checkout-back:hover { text-decoration: underline; }
.checkout-page__title { margin: 0; font-size: 1.6rem; }
.checkout-page__event { margin: 0.25rem 0 0; color: var(--muted); }

.checkout-page__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 860px) {
    /* Details lead, summary sits to the right and sticks while scrolling. */
    .checkout-page__grid { grid-template-columns: 1.4fr 1fr; }
    .checkout-details { order: 0; }
    .checkout-order { order: 1; position: sticky; top: 1.5rem; }
}
/* On mobile the order summary comes first so buyers confirm what they're
   paying for before filling in their details. */
.checkout-order { order: -1; }

.checkout-order {
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
    box-shadow: 0 12px 40px rgba(17,24,39,0.08);
}
.checkout-order__title { margin: 0 0 1rem; font-size: 1.15rem; }
.checkout-order__lines { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.checkout-order__line {
    display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0.5rem;
}
.checkout-order__qty { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.checkout-order__name { color: var(--ink); min-width: 0; }
.checkout-order__amount { font-weight: 600; color: var(--ink); white-space: nowrap; }
.checkout-order__totals { border-top: 1px dashed var(--border); padding-top: 0.85rem; display: grid; gap: 0.3rem; }
.checkout-order__row { display: flex; align-items: baseline; justify-content: space-between; }
.checkout-order__row span:first-child { color: var(--muted); }
.checkout-order__row--total { margin-top: 0.35rem; padding-top: 0.55rem; border-top: 1px solid var(--border); }
.checkout-order__row--total span:first-child { color: var(--ink); font-weight: 600; }
.checkout-order__row--total span:last-child { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.checkout-order__edit {
    display: inline-block; margin-top: 0.85rem;
    color: var(--brand); font-weight: 600; text-decoration: none; font-size: 0.9rem;
}
.checkout-order__edit:hover { text-decoration: underline; }

.checkout-details {
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
}
.checkout-section { margin-bottom: 1.5rem; }
.checkout-section:last-of-type { margin-bottom: 0; }
.checkout-section__title { margin: 0 0 1rem; font-size: 1.1rem; }
.checkout-section .field { margin-bottom: 0.85rem; }

/* =============================================================================
   Ticket_Accordion (Req 6, 10.2, 10.6) — the inline accordion that replaces the
   old show/hide ticket-type table. Uses the existing tokens (--border, --brand,
   --muted, --radius, --surface) and the global :focus-visible ring; no new
   design primitives are introduced.
   ========================================================================== */

/* The accordion is a .panel, so it already has the card frame + margin. Strip
   the panel's default horizontal padding on the inner list wrapper — each row
   provides its own edge-to-edge separators. */
.ticket-acc { padding: 0; }
.ticket-acc__list { display: block; }

/* One accordion item: separated by a hairline rule, no rounded corners of its
   own (the parent .panel clips the outer radius). */
.ticket-acc__item { border-bottom: 1px solid var(--border); }
.ticket-acc__item:last-child { border-bottom: none; }

/* Summary row: the whole row is a single <button> (click-anywhere, Req 6.4).
   A responsive column layout keeps name / price / remaining / status / chevron
   aligned; it reflows to a compact two-line stack on narrow screens. */
.ticket-acc__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto 1.25rem;
    align-items: center; gap: 0.75rem;
    width: 100%; text-align: left;
    padding: 0.85rem 1.15rem;
    background: none; border: none; cursor: pointer;
    font: inherit; color: var(--ink);
    transition: background 0.12s ease;
}
.ticket-acc__summary:hover { background: color-mix(in srgb, var(--brand) 4%, #fff); }
.ticket-acc__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-acc__price { font-weight: 600; color: var(--ink); white-space: nowrap; }
.ticket-acc__remaining { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }

/* Chevron: rotates 180° when the row's summary is expanded (aria-expanded). */
.ticket-acc__chev { color: var(--muted); transition: transform 0.15s ease; }
.ticket-acc__summary[aria-expanded="true"] .ticket-acc__chev { transform: rotate(180deg); }

/* Body: the inline edit form, revealed when the row is open. `hidden` handles
   the collapsed state (no JS needed for the closed default). */
.ticket-acc__body {
    padding: 0.25rem 1.15rem 1.15rem;
    border-top: 1px solid var(--border);
    background: #fbfbfd;
}
.ticket-acc__body[hidden] { display: none; }

/* Add control row: sits below the list, inside the panel frame. */
.ticket-acc__add { padding: 0.85rem 1.15rem; border-top: 1px solid var(--border); }
.ticket-acc__add .btn { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Two-column edit grid (Req 6.10, 10.2): name / price side by side on desktop,
   with description + the availability/sales fieldsets spanning the full width.
   Single column on narrow screens. */
.ticket-form__grid { display: grid; grid-template-columns: 1fr; gap: 0 1rem; margin-top: 0.75rem; }
@media (min-width: 720px) {
    .ticket-form__grid { grid-template-columns: 1fr 1fr; }
    /* Description and the two control fieldsets read better full-width. */
    .ticket-form__description,
    .ticket-form__availability,
    .ticket-form__sales { grid-column: 1 / -1; }
}

/* The availability quantity input is a nested field within the fieldset; give
   it a little breathing room from the radio chips above it. */
.ticket-form__availability [data-capacity-field] { margin-top: 0.5rem; }
.ticket-form__sales .consent { margin: 0.35rem 0; }
.ticket-form__sales [data-sales-start],
.ticket-form__sales [data-sales-end] { margin-bottom: 0.5rem; }
.ticket-form__delete { margin-left: auto; }

/* ---- Whole-row navigation (stretched-link) ----
   A dashboard table row can navigate as a whole while still hosting
   independently-clickable controls. The row is a positioning context; the
   primary destination anchor (.row-link) grows a ::after pseudo-element that
   covers the entire row, so a click anywhere on the row activates it. Any other
   interactive control in the row (.row-action) is lifted above that layer so it
   stays clickable. Keyboard users focus the real .row-link anchor and activate
   it with Enter; :focus-within surfaces the ring on the whole row. */
.row-nav { position: relative; cursor: pointer; transition: background 0.15s ease; }
.row-nav:hover { background: #f3f4f6; }
.row-nav:focus-within { background: #f3f4f6; }

.row-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}
/* Suppress the anchor's own focus ring; the row's :focus-within provides the
   affordance and the outline would only wrap the text, not the row. */
.row-nav:focus-within { outline: 2px solid var(--brand); outline-offset: -2px; }
.row-link:focus-visible { outline: none; box-shadow: none; }

/* Secondary controls sit above the stretched pseudo-element so they remain
   clickable on their own. */
.row-nav .row-action { position: relative; z-index: 1; }

/* =============================================================================
   Collapsible sidebars (Req 2.3–2.7, 10.2, 10.6)
   Two independent, persisted rail modes:
     - Main_Sidebar    → `.app-shell--rail` on #appShell   (key ck.sidebar.main)
     - Section_Nav      → `.event-manage--rail` on #eventManage (key ck.sidebar.section)
   Both are DESKTOP-ONLY (min-width: 861px). Below that, the existing mobile
   drawer (`nav-open` + #sidebarBackdrop) is the sole navigation affordance and
   is left completely untouched; the rail toggle buttons are hidden there.
   Uses existing tokens (--brand, --dark-*, --border, --radius) and the global
   :focus-visible ring — no new primitives.
   ============================================================================= */

/* ---- Toggle buttons + heads (both sidebars) ---- */
.app-sidebar__head {
    display: flex; justify-content: flex-end; align-items: center;
    padding: 0 0.25rem 0.5rem; margin-bottom: 0.25rem;
}
.app-sidebar__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; padding: 0;
    background: transparent; border: 1px solid transparent; border-radius: var(--radius);
    color: var(--dark-text-dim); cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.app-sidebar__toggle:hover { background: var(--dark-border); color: #fff; }

.section-nav__head {
    display: flex; justify-content: flex-end; align-items: center;
    margin-bottom: 0.35rem;
}
.section-nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; padding: 0;
    background: transparent; border: 1px solid var(--border); border-radius: 0.55rem;
    color: var(--muted); cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.section-nav__toggle:hover { background: #f3f4f6; color: var(--ink); }

/* On mobile the drawer is the affordance — hide the rail toggles entirely so
   they can't put the sidebars into a state the drawer doesn't understand. */
@media (max-width: 860px) {
    .app-sidebar__head,
    .section-nav__head { display: none; }
}

/* ---- Desktop rail modes (icons-only). Guarded so mobile keeps the drawer. ---- */
@media (min-width: 861px) {
    /* Main_Sidebar rail: shrink to a narrow icons-only column. */
    .app-shell--rail .app-sidebar {
        width: 64px;
        padding-left: 0.4rem; padding-right: 0.4rem;
    }
    /* Hide link text + section headings; keep the icon, centred. */
    .app-shell--rail .app-sidebar .nav-section { display: none; }
    .app-shell--rail .app-sidebar .nav-link {
        justify-content: center; gap: 0;
        padding-left: 0; padding-right: 0;
    }
    /* Hide everything in the link except the icon (label text is a bare node). */
    .app-shell--rail .app-sidebar .nav-link { font-size: 0; }
    .app-shell--rail .app-sidebar .nav-link .nav-ico { font-size: initial; }
    /* Toggle sits centred above the rail. */
    .app-shell--rail .app-sidebar__head { justify-content: center; }

    /* Section_Nav rail: narrow the grid's first column and drop link labels. */
    .event-manage--rail {
        grid-template-columns: 56px minmax(0, 1fr);
    }
    .event-manage--rail .section-nav__link {
        justify-content: center; gap: 0; padding-left: 0; padding-right: 0;
    }
    /* Hide the label text span + the status flag (+ its sr-only text stays for AT). */
    .event-manage--rail .section-nav__link > span:not(.sr-only) { display: none; }
    .event-manage--rail .section-nav__flag { display: none; }
    .event-manage--rail .section-nav__head { justify-content: center; }
    /* Publish checklist card collapses to a compact summary in the rail:
       keep the heading + "N/N required" progress line, hide the verbose
       checklist body and footer hint. */
    .event-manage--rail .publish-card .checklist,
    .event-manage--rail .publish-card__foot { display: none; }
    .event-manage--rail .publish-card__head { border-bottom: 0; }
}

/* =============================================================================
   UNIFIED NAVIGATION + APP SHELL (UI/UX refresh)
   One sidebar, two contexts (organisation vs single event). Adds the
   event-context nav styling inside the existing dark sidebar, a proper mobile
   off-canvas drawer, a reusable page container/header, and the restrained
   metric/record patterns used across Dashboard, Events, Reports and Settings.
   Uses the existing tokens (--brand, --dark-*, --border, --muted, --ink,
   --radius, --radius-chip) — no new colour system, gradients or shadows.
   ============================================================================= */

/* ---- Shared radius token for cards/controls (modest, per direction) ----
   The structural --radius stays 0 (sharp) as the brand identity; --radius-card
   is a single, modest 6px used by the softer card surfaces so the several
   one-off 0.55rem/0.75rem/0.85rem values consolidate to one scale. */
:root { --radius-card: 6px; }

/* ---- Event-context sidebar nav (inside the dark #appSidebar) ---- */
.app-sidebar .nav--event { min-height: 100%; display: flex; flex-direction: column; }

.event-nav__back {
    display: inline-flex; align-items: center; gap: 0.35rem;
    color: var(--dark-text-dim); text-decoration: none;
    font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.75rem;
}
.event-nav__back:hover { color: #fff; }
.event-nav__back-ico { width: 1rem; height: 1rem; transform: rotate(90deg); }

.event-nav__title { padding: 0.35rem 0.75rem 0.5rem; }
.event-nav__name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; color: #fff; font-weight: 700; font-size: 0.98rem;
    line-height: 1.25; letter-spacing: -0.01em; text-transform: uppercase;
}
.event-nav__status { margin-top: 0.4rem; }

/* Per-section flags carried over from the old floating nav. */
.app-sidebar .nav-link__label { flex: 1 1 auto; min-width: 0; }
.app-sidebar .nav-link__flag { flex: none; display: inline-flex; }
.app-sidebar .nav-link__flag svg { width: 0.9rem; height: 0.9rem; }
.app-sidebar .nav-link__flag--todo { color: #fca5a5; }
.app-sidebar .nav-link__flag--done { color: #6ee7b7; }
.app-sidebar .nav-link.active .nav-link__flag--todo,
.app-sidebar .nav-link.active .nav-link__flag--done { color: #fff; }

.event-nav__foot {
    margin-top: auto; padding-top: 0.75rem;
    border-top: 1px solid var(--dark-border);
}
.event-nav__org {
    display: block; padding: 0.35rem 0.75rem 0; color: var(--dark-text-dim);
    font-size: 0.8rem; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- Mobile-only current context label in the top app bar ---- */
.app-header__context { display: none; }

/* ---- Compact cancelled-event banner (replaces the tall alarm notice) ---- */
.event-cancelled {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.5rem 1rem; width: 100%;
    margin-top: 0.85rem; padding: 0.7rem 0.95rem;
    background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-card);
}
.event-cancelled__text { min-width: 0; font-size: 0.9rem; color: #7f1d1d; }
.event-cancelled__text strong { color: #991b1b; margin-right: 0.4rem; }
.event-cancelled__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---- Event section wrapper (single column now the nav moved to sidebar) ---- */
.event-section { margin-top: 0.5rem; }

/* =============================================================================
   Reusable page container + header (Global content layout)
   ============================================================================= */
.page-container { max-width: 1180px; width: 100%; margin-inline: auto; }

/* Standard page header: title + optional description on the left, actions on
   the right. Replaces ad-hoc .page-head markup where a description is useful. */
.page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 0.75rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.page-header__text { min-width: 0; }
.page-header__text h1 { margin: 0; }
.page-header__desc { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; max-width: 68ch; }
.page-header__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; flex-shrink: 0; }

@media (max-width: 640px) {
    .page-header { flex-direction: column; align-items: stretch; }
    .page-header__actions { }
    .page-header__actions .btn { flex: 1 1 auto; text-align: center; }
}

/* =============================================================================
   Restrained metric cards (Dashboard + summary rows)
   Border, no gradient, no colour fills. Small uppercase label, prominent value,
   secondary context underneath.
   ============================================================================= */
.metric-row {
    display: grid; gap: 1rem; margin-bottom: 1.5rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.metric-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 0.9rem 1rem;
    display: flex; flex-direction: column; gap: 0.3rem; min-width: 0;
}
.metric-card__label {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--muted); font-weight: 600;
}
.metric-card__value { font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric-card__sub { font-size: 0.8rem; color: var(--muted); }

@media (max-width: 1080px) {
    .metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
    .metric-row { grid-template-columns: 1fr; }
}

/* Compact summary row variant (Reports header): same look, auto-fit columns. */
.summary-row {
    display: grid; gap: 1rem; margin-bottom: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* =============================================================================
   Responsive record cards (mobile table replacement)
   A table becomes a list of these on narrow screens: title, meta lines and an
   action. Restrained chrome — a single hairline border, no shadow.
   ============================================================================= */
.record-list { display: grid; gap: 0.75rem; }
.record-card {
    position: relative;
    display: flex; align-items: flex-start; gap: 0.85rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 0.85rem 1rem;
}
.record-card__thumb {
    flex: none; width: 44px; height: 44px; object-fit: cover;
    border-radius: var(--radius-card); border: 1px solid var(--border); background: #f3f4f6;
}
.record-card__body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.2rem; }
.record-card__title { font-weight: 700; color: var(--ink); }
.record-card__meta { font-size: 0.85rem; color: var(--muted); }
.record-card__meta--strong { color: var(--ink); }
.record-card__action { flex: none; align-self: center; }

/* Financial per-event record (Reports mobile): label/value key rows. */
.record-card--facts { flex-direction: column; align-items: stretch; }
.record-facts { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; margin: 0.5rem 0 0; }
.record-facts dt { color: var(--muted); font-size: 0.85rem; }
.record-facts dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* =============================================================================
   Table scroll affordance
   Wrap wide/financial tables so they scroll horizontally inside their column
   rather than overflowing the viewport, with a visible edge fade cue.
   ============================================================================= */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 640px; }

/* Show one layout or the other by breakpoint. */
.only-mobile { display: none; }
@media (max-width: 720px) {
    .only-desktop { display: none; }
    .only-mobile { display: block; }
}

/* =============================================================================
   Empty states (events list, tables with no rows)
   ============================================================================= */
.empty-state {
    text-align: center; padding: 2.5rem 1.5rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.empty-state h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.empty-state p { margin: 0 auto 1.1rem; color: var(--muted); max-width: 46ch; }

/* =============================================================================
   Filter / toolbar row (events list, orders)
   ============================================================================= */
.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.toolbar__search { flex: 1 1 220px; min-width: 0; }
.toolbar input, .toolbar select {
    height: 40px; padding: 0.4rem 0.6rem; border: 1.5px solid #d1d5db;
    border-radius: var(--radius); font-size: 0.95rem; background: #fff; width: 100%;
}
.toolbar__control { flex: 0 0 auto; }

/* =============================================================================
   Colour input pair (Settings primary colour)
   ============================================================================= */
.colour-field { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.colour-field input[type="text"] { flex: 0 0 auto; width: 9rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.colour-field input[type="color"] {
    flex: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid #d1d5db;
    border-radius: var(--radius); background: #fff; cursor: pointer;
}

/* =============================================================================
   Settings two-column (form + preview)
   ============================================================================= */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 1000px) {
    .settings-grid { grid-template-columns: minmax(0, 1fr) 340px; }
    .settings-grid__preview { position: sticky; top: 1.25rem; }
}
/* Constrain normal text fields to a readable width; long fields opt out. */
.settings-grid .field input:not([type="checkbox"]):not([type="radio"]),
.settings-grid .field select { max-width: 680px; }
.field--wide input, .field--wide textarea, .field--wide select { max-width: none !important; }

/* =============================================================================
   Chart responsiveness (dashboard sales trend)
   ============================================================================= */
.sales-chart { width: 100%; }
.sales-chart svg { display: block; width: 100%; height: auto; }

/* =============================================================================
   Form control sizing (consistent touch targets — WCAG 2.2)
   ============================================================================= */
.field input:not([type="checkbox"]):not([type="radio"]),
.field select { min-height: 42px; }
.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { min-height: 32px; }

/* =============================================================================
   Mobile: unified drawer + top-bar context + body scroll lock
   Below 860px the sidebar is the sole navigation (off-canvas drawer). Show the
   current-context label in the top bar and lock body scroll while open.
   ============================================================================= */
body.nav-locked { overflow: hidden; }

@media (max-width: 860px) {
    .app-header__context {
        display: block; flex: 1 1 auto; min-width: 0;
        font-size: 0.95rem; font-weight: 600; color: #fff;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    /* The wordmark can crowd the context label on small phones; keep the mark
       but let the context label take priority for width. */
    .app-header .brand .logo .by { display: none; }
}
@media (max-width: 520px) {
    .app-header .brand .logo .ck { display: none; }
}

/* Reduced-motion: honour the user preference across the drawer/rail. */
@media (prefers-reduced-motion: reduce) {
    .app-sidebar, .nav-toggle, .btn, .row-nav, .metric-card, .record-card { transition: none !important; }
}

/* =============================================================================
   Event Overview: date/location summary + inline setup checklist
   ============================================================================= */
.overview-summary {
    display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem;
    padding: 0 0 1.25rem; margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.overview-summary__item { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.overview-summary__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.overview-summary__value { color: var(--ink); font-weight: 600; }

.overview-report-link { margin: -0.25rem 0 1.5rem; }

.setup-checklist {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); margin-bottom: 1.5rem;
}
.setup-checklist__summary {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1.1rem; cursor: pointer; list-style: none;
}
.setup-checklist__summary::-webkit-details-marker { display: none; }
.setup-checklist__title { font-weight: 700; color: var(--ink); }
.setup-checklist__progress { color: var(--muted); font-size: 0.85rem; margin-left: auto; }
.setup-checklist__done { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: #047857; }
.setup-checklist__tick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #ecfdf5;
}
.setup-checklist__tick svg { width: 0.85rem; height: 0.85rem; }
.setup-checklist__chev { color: var(--muted); transition: transform 0.15s ease; margin-left: 0.25rem; }
.setup-checklist:not([open]) .setup-checklist__done ~ .setup-checklist__chev,
.setup-checklist[open] .setup-checklist__chev { transform: rotate(180deg); }
.setup-checklist__done + .setup-checklist__chev { margin-left: auto; }

.setup-list { list-style: none; margin: 0; padding: 0.25rem 0 0.4rem; border-top: 1px solid var(--border); }
.setup-list__item {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.55rem 1.1rem; font-size: 0.9rem;
}
.setup-list__item + .setup-list__item { border-top: 1px solid #f3f4f6; }
.setup-list__icon {
    flex: none; width: 1.2rem; height: 1.2rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; line-height: 1;
}
.setup-list__icon svg { width: 0.8rem; height: 0.8rem; }
.setup-list__icon--done { background: #ecfdf5; color: #047857; }
.setup-list__icon--todo { background: #fffbeb; color: #b45309; }
.setup-list__icon--optional { background: #f3f4f6; color: var(--muted); }
.setup-list__label { color: var(--ink); font-weight: 600; min-width: 0; }
.setup-list__item.is-done .setup-list__label { color: var(--muted); font-weight: 500; }
.setup-list__tag {
    margin-left: 0.4rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--muted); font-weight: 600;
}
.setup-list__action { margin-left: auto; font-size: 0.85rem; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    .setup-checklist__chev { transition: none !important; }
}

/* =============================================================================
   Events list page
   ============================================================================= */
.cell-event { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.cell-thumb {
    width: 44px; height: 44px; flex: none; border-radius: var(--radius-card);
    object-fit: cover; background: #f2f2f5; border: 1px solid var(--border);
}
.cell-event__meta { min-width: 0; }
.table-empty-filter { padding: 1.5rem 1.25rem; text-align: center; color: var(--muted); margin: 0; }

/* =============================================================================
   Shared data-table (used inside .panel across dashboard/events/reports)
   Promoted from the dashboard's local styles so every panel table is
   consistent. Sits on a transparent background inside the panel card frame.
   ============================================================================= */
.panel > .data-table,
.panel .table-scroll > .data-table,
.data-table { width: 100%; border-collapse: collapse; background: transparent; border: none; border-radius: 0; }
.data-table th, .data-table td { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: middle; text-align: left; }
.data-table thead th { background: transparent; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: #5b616e; font-weight: 600; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .cell-strong { display: block; font-weight: 600; color: var(--ink); text-decoration: none; }
.data-table .cell-strong:hover { color: var(--brand); }
.data-table .cell-dim { display: block; font-size: 0.82rem; color: var(--muted); }
.data-table__total th, .data-table__total td { border-top: 1.5px solid var(--border); font-weight: 700; color: var(--ink); }

.panel__note { padding: 0.9rem 1.25rem; margin: 0; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); }
.panel__link { font-size: 0.9rem; font-weight: 600; text-decoration: none; }

/* =============================================================================
   Table overflow safety net (Table responsiveness audit)
   Tables live inside .panel (which clips its radius with overflow:hidden), so a
   table wider than the viewport would be cut off rather than scrollable. On
   narrow screens, any .data-table that ISN'T part of an explicit desktop/mobile
   split (.only-desktop / inside .table-scroll) becomes a horizontally
   scrollable block, so no page ever scrolls horizontally at the viewport level
   and no financial/admin column is clipped. A subtle inset shadow on the panel
   hints that the table can scroll.
   ============================================================================= */
@media (max-width: 720px) {
    .panel > .data-table:not(.only-desktop),
    .panel > .money-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    /* A block-level <table> loses its full-width behaviour; keep columns from
       collapsing so the scroll is meaningful. */
    .panel > .data-table:not(.only-desktop) thead,
    .panel > .data-table:not(.only-desktop) tbody,
    .panel > .money-table thead,
    .panel > .money-table tbody { display: table; width: 100%; min-width: max-content; }
    /* Roomy touch targets in scrollable tables. */
    .panel > .data-table:not(.only-desktop) td,
    .panel > .data-table:not(.only-desktop) th { white-space: nowrap; }
}

/* Tablet band (721–1023px): the .only-desktop tables (events/orders/customers/
   reports) still show as tables here. If a wide one exceeds the panel, let it
   scroll horizontally within the card rather than clip against the panel's
   radius-clipping overflow:hidden. */
@media (min-width: 721px) and (max-width: 1023px) {
    .panel > .data-table.only-desktop { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .panel > .data-table.only-desktop thead,
    .panel > .data-table.only-desktop tbody { display: table; width: 100%; }
}

/* Generic key/value money table used on order/customer detail pages. */
.money-table { width: 100%; border-collapse: collapse; }
.money-table td { padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--border); }
.money-table tr:last-child td { border-bottom: none; }
.money-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* =============================================================================
   Attendee questions editor (add/manage pattern)
   Compact bordered cards matching the app's restrained section style. One card
   per question, toggling between a summary row and an inline editor. Works
   edge-to-edge on mobile.
   ============================================================================= */
.q-list { display: grid; gap: 0.75rem; margin: 0.5rem 0 0; }

.q-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-card, 0);
    background: var(--surface);
}
.q-card.is-editing { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }

/* Summary row: number + label + type/required meta on the left, actions on
   the right. Wraps gracefully and stacks the actions under the text on narrow
   screens. */
.q-card__summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; padding: 0.85rem 1rem;
}
.q-card__summary-main { display: grid; gap: 0.15rem; min-width: 0; }
.q-card__num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.q-card__label { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.q-card__meta { font-size: 0.85rem; color: var(--muted); }
.q-card__actions { display: flex; gap: 0.4rem; flex: none; }
.q-card__delete { color: #b91c1c; }
.q-card__delete:hover { background: #fef2f2; color: #991b1b; }

/* Editor view: normal .field controls inside a padded card body. */
.q-card__editor { padding: 0.85rem 1rem 1rem; }
.q-card__editor-head { margin-bottom: 0.65rem; }
.q-card__editor .field:last-of-type { margin-bottom: 0; }
.q-card__editor .consent { margin: 0.75rem 0 0; }
.q-card__editor-actions {
    display: flex; gap: 0.5rem; margin-top: 1rem;
    padding-top: 0.85rem; border-top: 1px solid var(--border); flex-wrap: wrap;
}

.q-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.q-max-note { font-size: 0.875rem; color: var(--muted); }
.q-empty { color: var(--muted); margin: 0.75rem 0 0; }

@media (max-width: 560px) {
    .q-card__summary { flex-direction: column; align-items: stretch; }
    .q-card__actions { justify-content: flex-start; }
}

/* =============================================================================
   Pagination (vendor.pagination.default) — used by every `->links()` call.
   Replaces the framework's Tailwind default, whose inline SVG chevrons render
   oversized in this non-Tailwind app.
   ============================================================================= */
.pager { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem; }
.pagination { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.pagination__link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2rem; height: 2rem; padding: 0 0.55rem;
    border-radius: var(--radius); text-decoration: none;
    font-size: 0.9rem; font-weight: 600; line-height: 1;
    color: var(--brand); background: transparent;
    box-shadow: inset 0 0 0 1px var(--border);
    transition: background 0.15s ease, color 0.15s ease;
}
.pagination__link:hover { background: #f3f4f6; color: var(--brand-dark); }
.pagination__link.is-current {
    background: var(--brand); color: #fff; box-shadow: inset 0 0 0 1px var(--brand); cursor: default;
}
.pagination__link.is-disabled {
    color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--border);
    opacity: 0.55; cursor: default;
}
.pagination__summary { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* =============================================================================
   Public marketing site (homepage + Features / Pricing / How it works /
   For charities / Trust). Built on the shared .pub-* chrome above and the
   layouts.app shell. Palette reuses the --pub-* tokens; type uses Manrope for
   headings where loaded, falling back to the app sans stack. Scoped under
   `.mkt` so these rules never touch the dashboard or storefront.
   ============================================================================= */
.mkt {
    --mkt-ink: #101828;
    --mkt-body: #475467;
    --mkt-muted: #667085;
    --mkt-line: #e4e7ec;
    --mkt-surface-soft: #f8fafc;
    --mkt-purple-soft: #f4f1ff;
    --mkt-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--mkt-body);
    line-height: 1.6;
}

/* layouts.app constrains .public-main to 960px; the marketing pages want the
   wider container the chrome uses, and their own vertical rhythm. */
main.public-main.mkt {
    max-width: none;
    padding: 0;
    margin: 0;
}

.mkt .mkt-container { width: min(100% - 32px, 1120px); margin: 0 auto; }

.mkt h1, .mkt h2, .mkt h3 {
    color: var(--mkt-ink);
    font-family: var(--mkt-heading);
    letter-spacing: -0.02em;
    margin: 0;
}
.mkt h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.05; }
.mkt h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.12; margin: 0; }
.mkt h3 { font-size: 1.08rem; line-height: 1.3; }
.mkt p { margin: 0; }

.mkt .mkt-eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    color: var(--pub-purple); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.mkt .mkt-eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }

/* Buttons: reuse the header CTA look. The marketing CTAs sit on light
   backgrounds so we define light-surface variants here. ~44px tall. */
.mkt .mkt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 44px; padding: 0.6rem 1.25rem; border-radius: 7px;
    border: 1px solid transparent; font-weight: 700; font-size: 0.95rem;
    font-family: inherit; cursor: pointer; text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mkt .mkt-btn--primary { background: var(--pub-purple); color: #fff; }
.mkt .mkt-btn--primary:hover { background: var(--pub-purple-dark); color: #fff; }
.mkt .mkt-btn--secondary { background: #fff; color: var(--mkt-ink); border-color: #d0d5dd; }
.mkt .mkt-btn--secondary:hover { border-color: #98a2b3; }
.mkt .mkt-btn--ghost { background: transparent; color: var(--pub-purple); padding-inline: 0.35rem; }
.mkt .mkt-btn--ghost:hover { color: var(--pub-purple-dark); }
.mkt .mkt-btn--on-dark { background: #fff; color: var(--pub-navy); }
.mkt .mkt-btn--on-dark:hover { background: #f2f4f7; color: var(--pub-navy); }
.mkt .mkt-btn--link-on-dark { background: transparent; color: #d7deed; padding-inline: 0.35rem; }
.mkt .mkt-btn--link-on-dark:hover { color: #fff; }

/* Sections */
.mkt .mkt-section { padding: 3.35rem 0; }
.mkt .mkt-section--soft { background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%); }
.mkt .mkt-section--alt { background: var(--surface); border-block: 1px solid var(--mkt-line); }
.mkt .mkt-section-head { max-width: 760px; margin-bottom: 1.9rem; }
.mkt .mkt-section-head h2 { margin-top: 0.7rem; }
.mkt .mkt-section-head p { margin-top: 0.65rem; color: var(--mkt-muted); font-size: 1rem; }
.mkt .mkt-section-cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.mkt .mkt-hero {
    position: relative; overflow: hidden; color: #fff;
    padding: 3.6rem 0 3.2rem;
    background:
        radial-gradient(circle at top right, rgba(103, 77, 243, 0.22), transparent 34%),
        linear-gradient(180deg, #12172c 0%, #0f1425 100%);
}
.mkt .mkt-hero__grid {
    position: relative; z-index: 1; display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 2.6rem; align-items: center;
}
.mkt .mkt-hero h1 { color: #fff; }
.mkt .mkt-hero .mkt-eyebrow { color: #b9aef9; }
.mkt .mkt-hero__lead {
    max-width: 620px; margin-top: 1.1rem; color: #c9d2e6;
    font-size: clamp(1.02rem, 2vw, 1.14rem); line-height: 1.7;
}
.mkt .mkt-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.mkt .mkt-reassure {
    display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; margin-top: 1.35rem;
    color: #9aa9c9; font-size: 0.9rem; list-style: none; padding: 0;
}
.mkt .mkt-reassure li { display: inline-flex; align-items: center; gap: 0.45rem; }
.mkt .mkt-reassure li::before { content: "✓"; color: var(--pub-teal); font-weight: 800; }

/* Hero product visual — a lightweight, real-UI-flavoured preview built from
   existing styling primitives (no fake browser chrome, no dense illustration). */
.mkt a.mkt-preview {
    display: block; text-decoration: none; color: var(--mkt-body);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mkt a.mkt-preview:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28); }
.mkt a.mkt-preview:focus-visible { outline: 3px solid var(--pub-teal); outline-offset: 3px; }
.mkt .mkt-preview {
    background: #fff; border-radius: 12px; border-top: 3px solid var(--pub-teal);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22); overflow: hidden; color: var(--mkt-body);
}
.mkt .mkt-preview__bar {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 1rem; border-bottom: 1px solid var(--mkt-line); background: var(--mkt-surface-soft);
}
.mkt .mkt-preview__dot { width: 9px; height: 9px; border-radius: 50%; background: #cfd4dc; }
.mkt .mkt-preview__url {
    margin-left: 0.4rem; font-size: 0.78rem; color: var(--mkt-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mkt .mkt-preview__body { padding: 1.1rem 1.2rem 1.3rem; }
.mkt .mkt-preview__eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pub-purple); }
.mkt .mkt-preview__title { margin-top: 0.35rem; font-family: var(--mkt-heading); font-size: 1.15rem; font-weight: 800; color: var(--mkt-ink); }
.mkt .mkt-preview__meta { margin-top: 0.15rem; font-size: 0.85rem; color: var(--mkt-muted); }
.mkt .mkt-preview__ticket {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-top: 0.9rem; padding: 0.75rem 0.9rem; border: 1px solid var(--mkt-line); border-radius: 9px;
}
.mkt .mkt-preview__ticket strong { display: block; color: var(--mkt-ink); font-size: 0.95rem; }
.mkt .mkt-preview__ticket span { font-size: 0.82rem; color: var(--mkt-muted); }
.mkt .mkt-preview__price { font-family: var(--mkt-heading); font-weight: 800; color: var(--mkt-ink); }
.mkt .mkt-preview__cta {
    margin-top: 0.95rem; width: 100%; text-align: center; padding: 0.65rem;
    border-radius: 8px; background: var(--pub-purple); color: #fff; font-weight: 700; font-size: 0.92rem;
}

/* Feature / benefit grid (bordered cells, like the old .benefit-grid) */
.mkt .mkt-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--mkt-line); border-left: 1px solid var(--mkt-line); background: #fff;
}
.mkt .mkt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mkt .mkt-cell {
    padding: 1.4rem; background: #fff;
    border-right: 1px solid var(--mkt-line); border-bottom: 1px solid var(--mkt-line);
}
.mkt .mkt-cell__ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-bottom: 0.75rem; border-radius: 8px;
    background: var(--mkt-purple-soft); color: var(--pub-purple); font-size: 1rem;
}
.mkt .mkt-cell h3 { margin-bottom: 0.35rem; }
.mkt .mkt-cell p { color: var(--mkt-muted); font-size: 0.92rem; }

/* Simple check-list rows (benefits) */
.mkt .mkt-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.mkt .mkt-checks li { display: flex; gap: 0.7rem; }
.mkt .mkt-checks li::before { content: "✓"; color: var(--pub-purple); font-weight: 800; line-height: 1.5; }
.mkt .mkt-checks strong { display: block; color: var(--mkt-ink); }
.mkt .mkt-checks span { color: var(--mkt-muted); font-size: 0.92rem; }

/* Steps (how it works) */
.mkt .mkt-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--mkt-line); border-left: 1px solid var(--mkt-line); background: #fff; }
.mkt .mkt-steps--5 { grid-template-columns: repeat(5, 1fr); }
.mkt .mkt-step { padding: 1.35rem; background: #fff; border-right: 1px solid var(--mkt-line); border-bottom: 1px solid var(--mkt-line); }
.mkt .mkt-step__num { color: var(--pub-purple); font-family: var(--mkt-heading); font-weight: 800; font-size: 0.82rem; }
.mkt .mkt-step h3 { margin-top: 0.85rem; }
.mkt .mkt-step p { margin-top: 0.5rem; color: var(--mkt-muted); font-size: 0.91rem; }

/* Split (heading + supporting) */
.mkt .mkt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

/* Pricing proposition + calculator */
.mkt .mkt-pricing { display: grid; grid-template-columns: 45% 55%; gap: 2.4rem; align-items: center; }
.mkt .mkt-price-line { margin-top: 0.9rem; font-family: var(--mkt-heading); font-weight: 800; color: var(--mkt-ink); font-size: 1.6rem; line-height: 1.1; }
.mkt .mkt-price-line span { color: var(--pub-purple); }
.mkt .mkt-price-sub { margin-top: 0.3rem; color: var(--mkt-muted); font-size: 0.95rem; }
.mkt .mkt-note { margin-top: 1.3rem; color: var(--mkt-muted); font-size: 0.9rem; }
.mkt .mkt-note strong { color: var(--mkt-ink); }

.mkt .mkt-calc {
    background: #fff; border: 1px solid var(--mkt-line); border-radius: 10px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04); padding: 1.15rem 1.2rem;
}
.mkt .mkt-calc__title { font-family: var(--mkt-heading); font-weight: 800; color: var(--mkt-ink); font-size: 0.95rem; margin-bottom: 0.9rem; }
.mkt .mkt-calc__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.mkt .mkt-field label { display: block; margin-bottom: 0.4rem; color: var(--mkt-ink); font-size: 0.84rem; font-weight: 700; }
.mkt .mkt-input-wrap { position: relative; }
.mkt .mkt-input-wrap .mkt-prefix { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--mkt-muted); font-weight: 600; }
.mkt .mkt-field input {
    width: 100%; min-height: 44px; padding: 0.6rem 0.8rem; border: 1px solid #d0d5dd;
    border-radius: 7px; color: var(--mkt-ink); background: #fff; font: inherit;
}
.mkt .mkt-field input.has-prefix { padding-left: 1.7rem; }
.mkt .mkt-field input:focus-visible { outline: 3px solid rgba(103, 77, 243, 0.18); border-color: var(--pub-purple); }

/* Segmented control (fee choice) */
.mkt .mkt-seg { margin-top: 1rem; }
.mkt .mkt-seg__label { display: block; margin-bottom: 0.4rem; color: var(--mkt-ink); font-size: 0.84rem; font-weight: 700; }
.mkt .mkt-seg__control { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; padding: 0.28rem; background: var(--mkt-surface-soft); border: 1px solid var(--mkt-line); border-radius: 8px; }
.mkt .mkt-seg__control button {
    min-height: 38px; border: 0; border-radius: 6px; background: transparent;
    color: var(--mkt-muted); font-weight: 700; font-size: 0.88rem; font-family: inherit; cursor: pointer;
}
.mkt .mkt-seg__control button[aria-pressed="true"] { background: #fff; color: var(--pub-purple); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.mkt .mkt-seg__control button:focus-visible { outline: 3px solid rgba(103, 77, 243, 0.18); }

/* Payout-first result */
.mkt .mkt-payout { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--mkt-line); }
.mkt .mkt-payout__label { color: var(--mkt-muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.mkt .mkt-payout__value { font-family: var(--mkt-heading); font-weight: 800; color: var(--pub-purple); font-size: 2.4rem; line-height: 1.05; }
.mkt .mkt-payout__from { color: var(--mkt-muted); font-size: 0.9rem; margin-top: 0.15rem; }
.mkt .mkt-fees { margin-top: 0.9rem; display: grid; gap: 0.3rem; }
.mkt .mkt-fees__row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: var(--mkt-body); }
.mkt .mkt-fees__row span:last-child { color: var(--mkt-ink); }
.mkt .mkt-fees__row--total { margin-top: 0.15rem; padding-top: 0.45rem; border-top: 1px dashed var(--mkt-line); }

/* Disclosure (how this is calculated) */
.mkt .mkt-disclosure { margin-top: 0.9rem; border-top: 1px solid var(--mkt-line); padding-top: 0.6rem; }
.mkt .mkt-disclosure > summary {
    cursor: pointer; list-style: none; color: var(--pub-purple); font-weight: 700; font-size: 0.86rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.mkt .mkt-disclosure > summary::-webkit-details-marker { display: none; }
.mkt .mkt-disclosure > summary::after { content: "▾"; font-size: 0.7rem; transition: transform 0.15s ease; }
.mkt .mkt-disclosure[open] > summary::after { transform: rotate(180deg); }
.mkt .mkt-disclosure > summary:focus-visible { outline: 3px solid rgba(103, 77, 243, 0.18); border-radius: 4px; }
.mkt .mkt-disclosure p { margin-top: 0.55rem; color: var(--mkt-muted); font-size: 0.82rem; }

/* Compact pricing preview panel (homepage) */
.mkt .mkt-price-preview {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem;
    padding: 1.6rem 1.8rem; background: #fff; border: 1px solid var(--mkt-line); border-radius: 12px;
}
.mkt .mkt-price-preview__big { font-family: var(--mkt-heading); font-weight: 800; color: var(--mkt-ink); font-size: 1.5rem; }
.mkt .mkt-price-preview__big span { color: var(--pub-purple); }

/* Reassurance / trust chips row */
.mkt .mkt-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mkt .mkt-chip { padding: 1.1rem 1.2rem; border: 1px solid var(--mkt-line); border-radius: 10px; background: #fff; }
.mkt .mkt-chip strong { display: block; color: var(--mkt-ink); font-size: 0.95rem; }
.mkt .mkt-chip span { color: var(--mkt-muted); font-size: 0.87rem; }

/* Dark closing CTA */
.mkt .mkt-cta {
    padding: 3rem 0; color: #fff;
    background:
        radial-gradient(circle at left center, rgba(48, 240, 182, 0.08), transparent 30%),
        linear-gradient(180deg, #12172c 0%, #0f1425 100%);
}
.mkt .mkt-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.mkt .mkt-cta h2 { color: #fff; }
.mkt .mkt-cta p { max-width: 620px; margin-top: 0.5rem; color: #b9c4dd; }
.mkt .mkt-cta__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* Callout note (charities / free tickets) */
.mkt .mkt-callout {
    margin-top: 1.2rem; padding: 1.15rem 1.25rem; background: var(--mkt-purple-soft);
    border-left: 3px solid var(--pub-purple); border-radius: 8px; color: #493d88;
}
.mkt .mkt-callout strong { display: block; margin-bottom: 0.25rem; color: var(--mkt-ink); }

/* Prevent body scroll when the mobile drawer is open. */
body.pub-menu-open { overflow: hidden; }

/* Header CTA sits a touch lighter than the old large Dashboard button. */
.pub-nav__btn { min-height: 42px; }
.pub-header__inner { min-height: 66px; }

/* Footer columns */
.pub-footer__cols { display: grid; grid-template-columns: repeat(4, auto); gap: 1.5rem 2.5rem; }
.pub-footer__col { display: flex; flex-direction: column; gap: 0.5rem; }
.pub-footer__heading { margin: 0 0 0.2rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8b90a5; font-family: inherit; }
.pub-footer__col a { color: #c1c5d4; font-size: 0.92rem; text-decoration: none; }
.pub-footer__col a:hover { color: #fff; }

/* ---- Marketing responsive ---- */
@media (max-width: 940px) {
    .mkt .mkt-hero__grid,
    .mkt .mkt-split,
    .mkt .mkt-pricing { grid-template-columns: 1fr; gap: 1.6rem; }
    .mkt .mkt-grid,
    .mkt .mkt-grid--2 { grid-template-columns: 1fr 1fr; }
    .mkt .mkt-steps,
    .mkt .mkt-steps--5 { grid-template-columns: 1fr 1fr; }
    .mkt .mkt-chips { grid-template-columns: 1fr 1fr; }
    .pub-footer__cols { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 640px) {
    .mkt .mkt-section { padding: 2.6rem 0; }
    .mkt .mkt-hero { padding: 2.7rem 0 2.5rem; }
    .mkt .mkt-grid,
    .mkt .mkt-grid--2,
    .mkt .mkt-steps,
    .mkt .mkt-steps--5,
    .mkt .mkt-chips,
    .mkt .mkt-calc__row2,
    .mkt .mkt-seg__control { grid-template-columns: 1fr; }
    .mkt .mkt-hero__actions .mkt-btn,
    .mkt .mkt-section-cta .mkt-btn,
    .mkt .mkt-cta__actions .mkt-btn { width: 100%; }
    .mkt .mkt-price-preview { grid-template-columns: 1fr; text-align: left; }
    .pub-footer__cols { grid-template-columns: 1fr; }
}
