/* =====================================================================
   Bientôt — attendee screens on real data (attendee.js): category colours by hue,
   browse tiles, phone verification, staff passes, the staff QR.
   Tokens only, so dark mode (app.css) applies by itself.
   ===================================================================== */

/* ---------- categories: one hue per slug (--h), set inline by catChip() ---------- */
.pill.cat-h {
    --h: 230;
    background: hsl(var(--h) 75% 94%);
    color: hsl(var(--h) 45% 28%);
}

.pill.cat-h .cat-dot {
    background: hsl(var(--h) 60% 50%);
}

html[data-theme="dark"] .pill.cat-h {
    background: hsl(var(--h) 30% 22%);
    color: hsl(var(--h) 70% 85%);
}

.pill.cat-h.on-media {
    background: rgba(255, 255, 255, .92);
    color: hsl(var(--h) 45% 28%);
}

.ev-kind .pill.cat-h + .pill.cat-h {
    margin-left: 6px;
}

/* ---------- search: browse by category ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cat-tile {
    --h: 230;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 74px;
    padding: 12px;
    border: 0;
    border-radius: 16px;
    background: hsl(var(--h) 75% 95%);
    color: hsl(var(--h) 45% 26%);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    line-height: 1.2;
    transition: transform .15s var(--ease);
}

.cat-tile:active {
    transform: scale(.97);
}

.cat-tile .ic {
    width: 22px;
    height: 22px;
    color: hsl(var(--h) 60% 45%);
}

html[data-theme="dark"] .cat-tile {
    background: hsl(var(--h) 28% 20%);
    color: hsl(var(--h) 70% 86%);
}

.browse-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
    color: var(--primary);
    font-weight: 600;
}

.browse-back .ic {
    width: 18px;
    height: 18px;
}

/* ---------- home: the map comes in the next build ---------- */
html.no-map .map-preview,
html.no-map .search-map,
html.no-map .nearby-section .section-see-all {
    display: none;
}

/* ---------- event page ---------- */
.ev-bar-reason {
    color: var(--negative);
}

.ev-bar-price .ic {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    margin-right: 4px;
}

img.org-avatar {
    object-fit: cover;
}

/* ---------- tickets ---------- */
.tickets-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
}

.tickets-group-label:first-child {
    margin-top: 0;
}

.tickets-group-label .count {
    font-weight: 600;
    color: var(--muted);
}

.tickets-cancelled .row {
    opacity: .6;
}

/* a staff pass: night blue, so it never looks like an attendee ticket */
.pass.pass-staff {
    background: var(--night);
    color: #fff;
}

.pass.pass-staff .pass-field-label,
.pass.pass-staff .pass-foot-note {
    color: var(--on-night-muted);
}

.pass.pass-staff .pass-perf i {
    background: var(--ground);
}

.pass-staff-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    background: var(--night) !important;
    color: #fff !important;
}

.pass-staff-badge .ic {
    width: 14px;
    height: 14px;
}

.qr-pass.qr-staff {
    border: 3px solid var(--night);
    padding-top: 0;
    overflow: hidden;
}

.qr-staff-band {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0 -24px 14px;
    padding: 8px;
    background: var(--night);
    color: #fff;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
}

.qr-staff-band .ic {
    width: 16px;
    height: 16px;
}

.form-static {
    min-height: 34px;
    display: flex;
    align-items: center;
    font-size: var(--fs-head);
    color: var(--muted);
}

/* ---------- phone verification ---------- */
.verify-page {
    padding-bottom: 40px;
}

.verify-head {
    text-align: center;
    margin: 8px 0 24px;
}

.verify-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-ink);
}

.verify-icon .ic {
    width: 32px;
    height: 32px;
}

.vsteps {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 6px 16px;
    margin-bottom: 18px;
}

.vstep {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--muted);
    font-size: var(--fs-body);
    line-height: 1.35;
}

.vstep + .vstep {
    border-top: 1px solid var(--separator);
}

.vstep-n {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--fill);
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}

.vstep.now {
    color: var(--text);
    font-weight: 600;
}

.vstep.now .vstep-n {
    background: var(--primary);
    color: #fff;
}

.vstep.done .vstep-n {
    background: var(--positive);
    color: #fff;
}

.vstep.done .vstep-n .ic {
    width: 16px;
    height: 16px;
}

.verify-wait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: var(--fs-body);
}

.verify-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 24px 16px;
    margin-bottom: 18px;
    border-radius: var(--r-card);
    background: var(--surface);
    color: var(--muted);
}

.verify-result .ic {
    width: 40px;
    height: 40px;
}

.verify-result strong {
    color: var(--text);
    font-size: var(--fs-title);
}

.verify-result.positive .ic {
    color: var(--positive);
}

.verify-result.negative .ic {
    color: var(--negative);
}

/* ---------- sign-up: the email code ---------- */
.code-input {
    letter-spacing: .5em;
    font-size: 24px !important;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.signup-code-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.signup-code-actions .text-btn:disabled {
    color: var(--muted);
}

/* edit profile: the email with its "Change email" button */
.form-static-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.form-static-row .text-btn {
    width: auto;
    flex: none;
    padding: 6px 0 6px 8px;
    color: var(--accent-ink, var(--accent));
}
.form-static-row > span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* search tiles: three equal columns at any width; a long name breaks at its soft hyphen */
.cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cat-tile > span {
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: manual;
}
