/* Tixello — public buyer pages (paynow host). SELF-CONTAINED: this is the only
   stylesheet the buyer surface loads (no Bootstrap, no app.css, no portal.css).
   Light theme only.

   Signature: the order/summary card is a tear-off ticket — a brand-colour event hero,
   a dashed perforation with punched notches, and Fira Code numerals for every price,
   quantity and reference. The chrome stays quiet so each client's brand colour
   (--tix-primary / --tix-accent, set inline by head.php) leads. */

/* =====================================================================
   Foundations — design tokens, reset, and the small component/utility set
   the buyer templates use. Previously inherited from app.css + Bootstrap;
   folded in here so paynow owns its entire surface. Keep this lean: only
   what templates/public/** actually references.
   ===================================================================== */
:root {
    --ink:        #16171f;
    --ink-2:      #3a3d4d;
    --muted:      #6c7384;
    --dim:        #9aa0ad;
    --line:       #ebecf1;
    --line-2:     #e0e2ea;
    --bg:         #f6f6f9;
    --card:       #ffffff;
    --accent:     var(--tix-accent, #e94560);
    --accent-ink: #ffffff;

    --ok:   #0f9b6c; --ok-bg:   #e7f6ef;
    --warn: #b7791f; --warn-bg: #fbf3e2;
    --bad:  #d64550; --bad-bg:  #fdecee;

    --r:    14px;
    --r-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(20, 21, 31, .05);
    --ease: 180ms cubic-bezier(.4, 0, .2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink); background: var(--bg);
    -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
img, svg { vertical-align: middle; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
button, input, select, textarea { font-family: inherit; font-size: 100%; }
.mono { font-family: 'Fira Code', ui-monospace, monospace; font-feature-settings: "tnum" 1; }
.i { width: 1em; height: 1em; vertical-align: -.14em; flex: none; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent);
    border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer; user-select: none;
    white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.5;
    letter-spacing: -.01em; padding: 9px 16px; color: var(--ink); background: transparent;
    transition: all var(--ease); }
.btn:active { transform: translateY(1px); }
.btn .i, .btn svg { width: 16px; height: 16px; }
.btn-tix { background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
    box-shadow: 0 1px 2px rgba(20, 21, 31, .12); }
.btn-tix:hover { background: color-mix(in srgb, var(--accent) 88%, #000);
    border-color: color-mix(in srgb, var(--accent) 88%, #000); color: var(--accent-ink);
    transform: translateY(-1px); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-outline-secondary { color: var(--ink-2); border-color: var(--line-2); }
.btn-outline-secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }

/* Forms */
.form-label { display: inline-block; font-weight: 500; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.form-control { display: block; width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm);
    padding: 10px 13px; font-size: 15px; line-height: 1.5; color: var(--ink); background: #fff;
    transition: border-color var(--ease), box-shadow var(--ease); }
.form-control:focus { outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form-control::placeholder { color: var(--dim); }
.form-control-sm { padding: 7px 11px; font-size: 14px; }
.form-text { color: var(--muted); font-size: 12.5px; margin-top: 5px; }

/* Badge */
.badge { display: inline-block; font-weight: 600; font-size: 11.5px; letter-spacing: .01em;
    padding: .4em .7em; border-radius: 999px; line-height: 1; }
.badge.text-bg-light { background: #f1f2f6; color: var(--ink-2); border: 1px solid var(--line); }
.border { border: 1px solid var(--line); }
.text-uppercase { text-transform: uppercase; }

/* Grid (the Bootstrap subset the checkout uses: .row / .col-md-6 / .g-3) */
.row { display: flex; flex-wrap: wrap; --gx: 1.5rem; --gy: 1.5rem;
    margin-top: calc(-1 * var(--gy)); margin-right: calc(-.5 * var(--gx)); margin-left: calc(-.5 * var(--gx)); }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; margin-top: var(--gy);
    padding-right: calc(var(--gx) * .5); padding-left: calc(var(--gx) * .5); }
.g-3 { --gx: 1rem; --gy: 1rem; }
@media (min-width: 768px) { .col-md-6 { flex: 0 0 auto; width: 50%; } }

/* ---- Buyer-page chrome ---- */
:root {
    --pub-ink-on-brand: #ffffff;
    --pub-shadow: 0 18px 48px -22px rgba(20, 21, 31, .35);
    --pub-maxw: 1080px;
}

/* Sticky footer: footer rests at the bottom of the viewport on short pages and is
   pushed below the content (scrolling normally) on tall ones. */
body { background: var(--bg); display: flex; flex-direction: column; min-height: 100dvh; }
.pub-main { flex: 1 0 auto; }
.pub-topbar, .pub-foot { flex-shrink: 0; }

.pub-container { width: 100%; max-width: var(--pub-maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.pub-topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.pub-topbar .pub-container { display: flex; align-items: center; min-height: 64px; }
.pub-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pub-brand img { height: 34px; width: auto; display: block; }
.pub-brand .pub-brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.02em;
    color: var(--tix-primary, var(--ink)); }

/* ---------- Hero ---------- */
.pub-hero { position: relative; overflow: hidden; color: var(--pub-ink-on-brand);
    background:
        radial-gradient(820px 420px at 88% -10%, color-mix(in srgb, var(--tix-accent) 40%, transparent), transparent 62%),
        linear-gradient(152deg,
            color-mix(in srgb, var(--tix-primary) 94%, #000) 0%,
            color-mix(in srgb, var(--tix-primary) 64%, #000) 100%); }
.pub-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 100% 30px; }
.pub-hero.has-cover { background: #111; }
.pub-hero .cover { position: absolute; inset: 0; background-size: cover; background-position: center; }
.pub-hero .cover::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 11, 18, .35) 0%, rgba(10, 11, 18, .82) 100%); }
.pub-hero .pub-container { position: relative; padding-top: 56px; padding-bottom: 60px; }
.pub-hero h1 { color: var(--pub-ink-on-brand); font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 18px; max-width: 22ch; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.pub-meta span { display: inline-flex; align-items: center; gap: 9px; font-size: 15px;
    color: rgba(255, 255, 255, .9); }
.pub-meta .i { width: 18px; height: 18px; opacity: .85; }

/* ---------- Body layout ---------- */
.pub-main { padding-bottom: 64px; }
.pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 44px;
    align-items: start; padding-top: 44px; }
.pub-aside { position: sticky; top: 24px; }

.pub-prose { color: var(--ink-2); line-height: 1.75; font-size: 15.5px; }
.pub-prose + .pub-prose { margin-top: 1em; }
/* Sanitized rich-text from the editor (h2/h3/p/lists/quote/figure/img) — explicit
   styling now that there's no Bootstrap/app.css base underneath. */
.pub-prose > :first-child { margin-top: 0; }
.pub-prose h2 { font-size: 1.32rem; font-weight: 600; margin: 1.6em 0 .5em; color: var(--ink); }
.pub-prose h3 { font-size: 1.1rem; font-weight: 600; margin: 1.4em 0 .5em; color: var(--ink); }
.pub-prose p { margin: 0 0 1em; }
.pub-prose ul, .pub-prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.pub-prose li { margin: .25em 0; }
.pub-prose strong { color: var(--ink); font-weight: 600; }
.pub-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.pub-prose a:hover { text-decoration-thickness: 2px; }
.pub-prose img { height: auto; border-radius: 12px; margin: 1em 0; }
.pub-prose blockquote { margin: 1.2em 0; padding: .3em 0 .3em 1.1em;
    border-left: 3px solid var(--line-2); color: var(--muted); }
.pub-prose figure { margin: 1.3em 0; }
.pub-prose figcaption { margin-top: .5em; font-size: 13px; color: var(--muted); text-align: center; }
.section-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--dim); font-weight: 600; margin: 0 0 14px; }

/* Single-column pages (checkout details / confirm / not-found) */
.pub-narrow { max-width: 760px; }
.pub-back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted);
    font-size: 14px; text-decoration: none; margin-bottom: 18px; }
.pub-back:hover { color: var(--ink); }
.pub-back .i { width: 16px; height: 16px; }
.pub-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.025em; margin: 0 0 28px; }

/* ---------- The ticket stub ---------- */
.ticket { position: relative; background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; box-shadow: var(--pub-shadow); }
.ticket-eyebrow { display: flex; align-items: center; gap: 9px; padding: 20px 22px 0;
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ticket-eyebrow .i { width: 16px; height: 16px; }
.ticket-body { padding: 14px 22px 6px; }
.ticket-foot { padding: 6px 22px 22px; }

/* Perforation — dashed tear-line with notches punched into both edges */
.perf { position: relative; height: 0; margin: 4px 0; border-top: 2px dashed var(--line-2); }
.perf::before, .perf::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px;
    border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.perf::before { left: -11px; }
.perf::after { right: -11px; }

/* Ticket-type rows */
.tt-row { display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 16px 0; border-bottom: 1px solid var(--line); }
.tt-row:last-of-type { border-bottom: 0; }
.tt-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.tt-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.tt-sub .dot { color: var(--line-2); margin: 0 5px; }
.tt-sub .soldout { color: var(--bad); font-weight: 600; }
.tt-desc { font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 32ch; }
.mono { font-family: 'Fira Code', ui-monospace, monospace; font-variant-numeric: tabular-nums;
    letter-spacing: -.02em; }

/* Quantity field — native number input, styled (no JS) */
.qty-input { width: 72px; text-align: center; font-family: 'Fira Code', monospace;
    font-variant-numeric: tabular-nums; padding: 9px 8px; border: 1px solid var(--line-2);
    border-radius: 10px; background: #fff; color: var(--ink); font-size: 15px;
    transition: border-color var(--ease), box-shadow var(--ease); }
.qty-input:focus { outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.qty-input:disabled { background: var(--bg); color: var(--dim); }

/* Total + CTA inside the stub foot */
.ticket-total { display: flex; justify-content: space-between; align-items: baseline;
    margin: 12px 0 16px; }
.ticket-total .lbl { font-size: 14px; color: var(--muted); }
.ticket-total .amt { font-size: 24px; font-weight: 600; color: var(--ink); }
.ticket .btn { width: 100%; }
.ticket-secure { display: flex; align-items: center; justify-content: center; gap: 7px;
    margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.ticket-secure .i { width: 15px; height: 15px; }
.ticket-empty { padding: 8px 0 18px; color: var(--muted); font-size: 14.5px; }

/* Summary line rows (checkout aside) */
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px;
    color: var(--ink-2); margin-bottom: 8px; }
.sum-row .mono { color: var(--ink); }
.sum-promo { margin: 4px 0 14px; }
.sum-promo .label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

/* ---------- Attendee / detail cards (checkout) ---------- */
.pub-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-sm); padding: 22px; margin-bottom: 18px; }
.pub-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 0 16px; }
.pub-card-head h2 { font-size: 15px; font-weight: 600; margin: 0; }
.pub-card-head .badge { font-family: 'Fira Code', monospace; }

/* ---------- Confirmation ---------- */
.confirm-stub { max-width: 480px; margin: 0 auto; text-align: center; }
.confirm-stub .ticket-body { padding: 36px 28px 10px; }
.confirm-stub .ticket-foot { padding: 18px 28px 30px; }
.confirm-badge { width: 76px; height: 76px; border-radius: 50%; display: inline-grid;
    place-items: center; margin: 0 auto 18px; }
.confirm-badge .i { width: 34px; height: 34px; }
.confirm-badge.ok { background: var(--ok-bg); color: var(--ok); }
.confirm-badge.warn { background: var(--warn-bg); color: var(--warn); }
.confirm-stub h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; }
.confirm-event { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 4px; }
.confirm-event strong { color: var(--ink); font-weight: 600; }
.confirm-count { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 2px;
    padding: 7px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
    font-family: 'Fira Code', monospace; font-size: 14px; font-weight: 600; color: var(--ink); }
.confirm-sent { color: var(--muted); font-size: 13.5px; margin: 0; }
.confirm-sent strong { color: var(--ink-2); }
.confirm-ref { font-family: 'Fira Code', monospace; font-size: 12px; letter-spacing: .04em;
    color: var(--dim); margin: 4px 0 0; }
.confirm-spinner { width: 40px; height: 40px; margin: 0 auto 18px; border-radius: 50%;
    border: 3px solid var(--line); border-top-color: var(--accent); animation: pub-spin .8s linear infinite; }
@keyframes pub-spin { to { transform: rotate(360deg); } }

/* ---------- Empty / not-found ---------- */
.pub-empty { max-width: 520px; margin: 0 auto; text-align: center; padding: 72px 0; }
.pub-empty .i { width: 40px; height: 40px; color: var(--dim); margin-bottom: 14px; }
.pub-empty h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; }
.pub-empty p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }

/* ---------- Alerts (errors on the buyer form) ---------- */
.pub-alert { border-radius: 12px; padding: 12px 15px; font-size: 14px; margin-bottom: 16px;
    background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 26%, transparent);
    color: #8a5a12; }

/* ---------- Footer ---------- */
.pub-foot { border-top: 1px solid var(--line); background: var(--card); }
.pub-foot .pub-container { padding-top: 22px; padding-bottom: 26px; text-align: center;
    color: var(--muted); font-size: 13px; }
.pub-foot .footer-note { margin-bottom: 6px; color: var(--ink-2); }
.pub-foot strong { color: var(--ink-2); }

/* ---------- CTA motion (one restrained entrance) ---------- */
.ticket { animation: pub-rise .4s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes pub-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- ± quantity stepper (injected by public.js) ---------- */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2);
    border-radius: 10px; overflow: hidden; background: #fff; }
.qty .qty-input { width: 50px; border: 0; border-radius: 0; box-shadow: none !important;
    -moz-appearance: textfield; appearance: textfield; }
.qty .qty-input::-webkit-outer-spin-button,
.qty .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 38px; border: 0; background: #f1f2f6; color: var(--ink); font-size: 19px;
    line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background var(--ease); }
.qty-btn:hover { background: #e7e9ef; }
.qty-btn:active { background: var(--line-2); }

/* Live "N tickets · $X" line in the stub foot */
.ticket-live { display: block; text-align: center; margin: 0 0 12px;
    font-family: 'Fira Code', monospace; font-variant-numeric: tabular-nums;
    font-weight: 600; font-size: 15px; color: var(--ink); }
.ticket-live[hidden] { display: none; }

/* Disabled / processing buttons */
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed;
    transform: none !important; box-shadow: none !important; }

/* Same-as-buyer toggle (injected by public.js) */
.same-as { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px;
    font-weight: 500; color: var(--muted); cursor: pointer; }
.same-as input { accent-color: var(--accent); }

/* Hero meta links (maps) — legible on the brand band */
.pub-meta a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.pub-meta a:hover { border-bottom-color: rgba(255, 255, 255, .8); }

/* Add-to-calendar (confirmation) */
.cal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 2px; }
.cal-actions .btn { width: auto; flex: 0 1 auto; }
.cal-actions .btn .i { width: 16px; height: 16px; }

/* Whole-event sold-out marker in the stub eyebrow */
.soldout-badge { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 10.5px;
    font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--bad); background: var(--bad-bg);
    border: 1px solid color-mix(in srgb, var(--bad) 28%, transparent); }

/* Mobile sticky action bar (shown ≤880px, lives inside the form) */
.pub-actionbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .pub-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
    .pub-aside { position: static; }
    .pub-hero .pub-container { padding-top: 40px; padding-bottom: 44px; }

    /* Keep the primary action reachable without scrolling the long form. */
    .pub-actionbar { display: flex; align-items: center; gap: 14px; position: fixed;
        left: 0; right: 0; bottom: 0; z-index: 50; background: var(--card);
        border-top: 1px solid var(--line); box-shadow: 0 -10px 28px -16px rgba(20, 21, 31, .3);
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); }
    .pub-actionbar .bar-meta { min-width: 0; line-height: 1.15; }
    .pub-actionbar .bar-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
    .pub-actionbar .bar-total { font-family: 'Fira Code', monospace; font-variant-numeric: tabular-nums;
        font-weight: 600; font-size: 18px; color: var(--ink); }
    .pub-actionbar .bar-total:empty::before { content: "—"; color: var(--dim); }
    .pub-actionbar .btn { flex: 1; }
    body:has(.pub-actionbar) { padding-bottom: 84px; }
}
@media (max-width: 520px) {
    .pub-container { padding: 0 18px; }
    .pub-meta { gap: 8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .ticket, .confirm-spinner { animation: none; }
    * { transition: none !important; }
}

/* =====================================================================
   Rich description — Quill output classes (headings, alignment, indent,
   colour spans, lists with data-list, code blocks, video embeds).
   Mirrors what the editor renders so the public page matches the draft.
   ===================================================================== */
.pub-prose h1 { font-size: 1.6rem; font-weight: 700; margin: 1.6em 0 .5em; color: var(--ink); }
.pub-prose h4 { font-size: 1rem; font-weight: 600; margin: 1.3em 0 .4em; color: var(--ink); }
.pub-prose .ql-align-center { text-align: center; }
.pub-prose .ql-align-right { text-align: right; }
.pub-prose .ql-align-justify { text-align: justify; }
.pub-prose .ql-indent-1 { padding-left: 3em; }
.pub-prose .ql-indent-2 { padding-left: 6em; }
.pub-prose .ql-indent-3 { padding-left: 9em; }
/* Quill lists: a single <ol> whose <li>s carry data-list="bullet|ordered". */
.pub-prose ol { counter-reset: list-0; }
.pub-prose li[data-list] { list-style: none; }
.pub-prose li[data-list]::before {
    display: inline-block; white-space: nowrap; width: 1.4em; margin-left: -1.4em;
    margin-right: .4em; text-align: right; color: var(--muted); }
.pub-prose li[data-list="bullet"]::before { content: "\2022"; }
.pub-prose li[data-list="ordered"] { counter-increment: list-0; }
.pub-prose li[data-list="ordered"]::before { content: counter(list-0, decimal) "."; }
.pub-prose .ql-code-block-container {
    background: #0d1017; color: #e7ecf3; border-radius: 10px; padding: 14px 16px;
    overflow-x: auto; font-family: 'Fira Code', ui-monospace, monospace; font-size: 13.5px;
    line-height: 1.6; margin: 1.2em 0; }
.pub-prose .ql-code-block { white-space: pre; }
.pub-prose iframe.ql-video, .pub-prose iframe {
    width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; margin: 1.2em 0; }

/* =====================================================================
   Content sections (highlights / FAQ / agenda / organizer)
   ===================================================================== */
.pub-section { margin-top: 40px; }
.pub-section .section-label { margin-bottom: 16px; }

.pub-highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pub-highlights li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: var(--ink-2); }
.pub-highlights .i { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }

.pub-faq { display: grid; gap: 10px; }
.pub-faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.pub-faq-item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 15px;
    color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pub-faq-item summary::-webkit-details-marker { display: none; }
.pub-faq-item summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; flex: none; }
.pub-faq-item[open] summary::after { content: "\2212"; }
.pub-faq-a { padding: 0 18px 16px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

.pub-agenda { list-style: none; margin: 0; padding: 0; }
.pub-agenda li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pub-agenda li:last-child { border-bottom: 0; }
.pub-agenda .ag-time { flex: none; min-width: 88px; color: var(--accent); font-weight: 600; font-size: 14px; }
.pub-agenda .ag-body { display: flex; flex-direction: column; gap: 3px; }
.pub-agenda .ag-title { font-weight: 600; color: var(--ink); font-size: 15px; }
.pub-agenda .ag-detail { color: var(--muted); font-size: 14px; }

.pub-organizer { display: flex; gap: 16px; align-items: flex-start; padding: 18px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.pub-organizer .org-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bg);
    display: grid; place-items: center; flex: none; }
.pub-organizer .org-avatar .i { width: 24px; height: 24px; color: var(--muted); }
.pub-organizer .org-name { font-weight: 600; font-size: 16px; color: var(--ink); }
.pub-organizer .org-blurb { color: var(--ink-2); font-size: 14.5px; margin: 4px 0 8px; line-height: 1.6; }
.pub-organizer .org-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.pub-organizer .org-link .i { width: 15px; height: 15px; }

/* =====================================================================
   Layout variants (event.php reads events.layout)
   ===================================================================== */
.pub-hero.compact .pub-container { padding-top: 30px; padding-bottom: 32px; }
.pub-hero.compact h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 12px; }
.pub-grid.ticket-below { grid-template-columns: 1fr; }
.pub-grid.ticket-below .pub-aside { position: static; max-width: 460px; }

/* =====================================================================
   Per-event dark mode (body.pub-dark) — the token set is flipped so the
   component CSS, which reads these vars, adapts automatically.
   ===================================================================== */
body.pub-dark {
    --ink: #e7ecf3; --ink-2: #c3c9d6; --muted: #8b94a6; --dim: #6a7385;
    --line: #232a36; --line-2: #2d3543; --bg: #0d1017; --card: #151a23;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --pub-shadow: 0 18px 48px -22px rgba(0, 0, 0, .75);
}
body.pub-dark .pub-topbar, body.pub-dark .pub-foot { background: var(--card); }
body.pub-dark .qty-btn { background: #232c3a; color: var(--ink); }
body.pub-dark .qty-btn:hover { background: #2d3543; }
body.pub-dark .pub-brand .pub-brand-name { color: var(--ink); }

/* =====================================================================
   Content blocks — gallery, video, quote, sponsors, divider, map
   ===================================================================== */
.pub-gallery { display: grid; gap: 12px; }
.pub-gallery-1 { grid-template-columns: 1fr; }
.pub-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.pub-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.pub-gallery-4 { grid-template-columns: repeat(4, 1fr); }
.pub-gallery figure { margin: 0; }
.pub-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.pub-gallery figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: center; }
.pub-gallery-1 img { aspect-ratio: auto; max-height: 520px; object-fit: contain; background: var(--bg); }

.pub-video, .pub-map { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
.pub-video { aspect-ratio: 16 / 9; }
.pub-map { aspect-ratio: 16 / 10; }
.pub-video iframe, .pub-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pub-quote { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.pub-quote blockquote { margin: 0; font-size: 1.3rem; line-height: 1.5; font-weight: 500;
    letter-spacing: -.01em; color: var(--ink); }
.pub-quote figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

.pub-sponsors { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.pub-sponsor { display: inline-flex; align-items: center; }
.pub-sponsor img { max-height: 54px; max-width: 168px; width: auto; object-fit: contain;
    filter: grayscale(1); opacity: .78; transition: filter var(--ease), opacity var(--ease); }
.pub-sponsor:hover img { filter: none; opacity: 1; }

.pub-divider { border: 0; border-top: 1px solid var(--line-2); margin: 38px 0; }

@media (max-width: 560px) {
    .pub-gallery-2, .pub-gallery-3, .pub-gallery-4 { grid-template-columns: repeat(2, 1fr); }
}
