/* LIvVE Events Guide v184 - static front-end redesign */
.events-shell {
    margin-top: 24px;
    padding: 28px;
    background: #fff;
    border-radius: 13px;
    box-shadow: var(--shadow);
}
.events-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e2e4;
}
.events-eyebrow,
.event-panel-kicker,
.event-form-section-title span {
    color: var(--pink-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.events-heading h1 {
    margin: 3px 0 6px;
    color: #171717;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -.035em;
}
.events-heading p {
    max-width: 700px;
    margin: 0;
    color: #55555a;
    font-size: 14px;
    line-height: 1.55;
}
.events-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.events-text-link {
    color: var(--pink-dark);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}
.events-text-link:hover,
.events-text-link:focus-visible { text-decoration: underline; outline: none; }

.events-directory-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}
.events-filter-rail,
.events-list-panel,
.event-detail-panel,
.event-form-panel,
.event-manage-panel,
.event-hosts-panel {
    overflow: hidden;
    border: 1px solid #d7d7d2;
    border-radius: 10px;
    background: #fff;
}
.events-filter-head {
    padding: 14px 15px 13px;
    border-bottom: 1px solid #d7d7d2;
    background: #f8f8f0;
}
.events-filter-head span {
    color: var(--pink-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
}
.events-filter-head h2 {
    margin: 2px 0 4px;
    color: #333300;
    font-size: 18px;
    line-height: 1.15;
}
.events-filter-head p {
    margin: 0;
    color: #6a6a6f;
    font-size: 10px;
    line-height: 1.45;
}
.events-filter-links { display: block; }
.events-filter-link {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 8px;
    align-items: center;
    min-height: 45px;
    padding: 8px 10px;
    border-bottom: 1px solid #ececec;
    color: #333300;
    text-decoration: none;
    transition: background .14s ease, color .14s ease;
}
.events-filter-link:last-child { border-bottom: 0; }
.events-filter-link:hover,
.events-filter-link:focus-visible,
.events-filter-link.is-active {
    background: var(--theme-accent-soft);
    color: var(--pink-dark);
    outline: none;
}
.events-filter-link.is-active { box-shadow: inset 4px 0 0 var(--pink); }
.events-filter-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #deded8;
    border-radius: 6px;
    background: #f4f4ee;
    font-size: 14px;
}
.events-filter-link strong { font-size: 11px; line-height: 1.2; }
.events-filter-arrow { color: #aaa99e; font-size: 20px; font-weight: 800; }
.events-filter-link:hover .events-filter-arrow,
.events-filter-link:focus-visible .events-filter-arrow,
.events-filter-link.is-active .events-filter-arrow { color: var(--pink-dark); }
.events-rail-actions {
    padding: 12px;
    border-top: 1px solid #e5e5df;
    background: #fbfbf7;
}
.events-rail-button,
.event-primary-button,
.event-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}
.events-rail-button,
.event-primary-button {
    border: 1px solid var(--pink-dark);
    background: var(--pink);
    color: #fff;
}
.events-rail-button { width: 100%; }
.events-rail-button:hover,
.events-rail-button:focus-visible,
.event-primary-button:hover,
.event-primary-button:focus-visible {
    background: var(--pink-dark);
    color: #fff;
    outline: none;
}
.event-secondary-button {
    border: 1px solid #d5d5d7;
    background: #f5f5f6;
    color: #444449;
}
.event-secondary-button:hover,
.event-secondary-button:focus-visible {
    background: #ececef;
    color: #222226;
    outline: none;
}

.events-list-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 15px;
    border-bottom: 1px solid #d7d7d2;
    background: #f8f8f0;
}
.events-list-titlebar h2 {
    margin: 0;
    color: #333300;
    font-size: 17px;
}
.events-list-titlebar small {
    color: #77777b;
    font-size: 10px;
    font-weight: 700;
}
.event-list { display: block; }
.event-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 112px;
    gap: 14px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ececec;
}
.event-row:nth-child(even) { background: #fafafa; }
.event-row:last-child { border-bottom: 0; }
.event-row[hidden] { display: none; }
.event-date-tile {
    overflow: hidden;
    border: 1px solid #d7d7d2;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}
.event-date-tile span {
    display: block;
    padding: 4px 5px;
    background: var(--pink);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.event-date-tile strong {
    display: block;
    padding: 7px 4px 2px;
    color: #333300;
    font-size: 20px;
    line-height: 1;
}
.event-date-tile small {
    display: block;
    padding: 2px 4px 7px;
    color: #77777b;
    font-size: 9px;
    font-weight: 700;
}
.event-row-main { min-width: 0; }
.event-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}
.event-tag {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid #dadadd;
    border-radius: 999px;
    background: #f5f5f6;
    color: #5c5c61;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.event-tag.event-tag-pink { border-color: var(--theme-accent-border); background: var(--theme-accent-soft); color: var(--pink-dark); }
.event-row h3 {
    margin: 0 0 5px;
    color: #333300;
    font-size: 15px;
    line-height: 1.2;
}
.event-row p {
    margin: 0 0 6px;
    color: #5b5b60;
    font-size: 11px;
    line-height: 1.5;
}
.event-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: #77777b;
    font-size: 9px;
    font-weight: 700;
}
.event-row-action { text-align: right; }
.event-row-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid #d5d5d7;
    border-radius: 7px;
    background: #fff;
    color: #444449;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
}
.event-row-action a:hover,
.event-row-action a:focus-visible {
    border-color: var(--theme-accent-border);
    background: var(--theme-accent-soft);
    color: var(--pink-dark);
    outline: none;
}
.events-empty {
    padding: 42px 24px;
    text-align: center;
    color: #6a6a6f;
}
.events-empty strong {
    display: block;
    margin-bottom: 5px;
    color: #333300;
    font-size: 16px;
}
.events-bottom-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e0e0dc;
    border-radius: 9px;
    background: #fbfbf7;
}
.events-bottom-callout strong { color: #333300; font-size: 13px; }
.events-bottom-callout p { margin: 2px 0 0; color: #66666b; font-size: 10px; }
.events-bottom-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.event-single-layout { margin-top: 24px; }
.event-detail-head,
.event-form-head,
.event-manage-head,
.event-hosts-head {
    padding: 18px 20px;
    border-bottom: 1px solid #d7d7d2;
    background: #f8f8f0;
}
.event-detail-head h2,
.event-form-head h2,
.event-manage-head h2,
.event-hosts-head h2 {
    margin: 3px 0 5px;
    color: #333300;
    font-size: 24px;
    line-height: 1.15;
}
.event-detail-head p,
.event-form-head p,
.event-manage-head p,
.event-hosts-head p {
    margin: 0;
    color: #66666b;
    font-size: 11px;
    line-height: 1.5;
}
.event-detail-body { padding: 22px; }
.event-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.event-detail-stat {
    padding: 12px;
    border: 1px solid #e2e2df;
    border-radius: 8px;
    background: #fbfbf8;
}
.event-detail-stat span { display: block; color: #88888c; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.event-detail-stat strong { display: block; margin-top: 4px; color: #333300; font-size: 12px; }
.event-detail-section + .event-detail-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid #ececec; }
.event-detail-section h3 { margin: 0 0 8px; color: #333300; font-size: 14px; }
.event-detail-section p { margin: 0; color: #56565b; font-size: 12px; line-height: 1.65; }
.event-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.event-disabled-button { opacity: .55; cursor: not-allowed; }

.event-prototype-note {
    margin: 18px 20px 0;
    padding: 10px 12px;
    border: 1px solid #ffd1dd;
    border-radius: 8px;
    background: var(--theme-accent-soft);
    color: #7b3249;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}
.event-form { padding: 20px; }
.event-form-section + .event-form-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid #ececec; }
.event-form-section-title { margin-bottom: 12px; }
.event-form-section-title h3 { margin: 3px 0 0; color: #333300; font-size: 15px; }
.event-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.event-form-grid .wide { grid-column: 1 / -1; }
.event-field label { display: block; margin-bottom: 5px; color: #4c4c51; font-size: 10px; font-weight: 900; }
.event-field .required { color: var(--pink-dark); }
.event-field input,
.event-field select,
.event-field textarea {
    width: 100%;
    min-height: 39px;
    padding: 9px 10px;
    border: 1px solid #d7d7da;
    border-radius: 7px;
    background: #f4f4f5;
    color: #222226;
    font: inherit;
    font-size: 12px;
}
.event-field textarea { min-height: 110px; resize: vertical; }
.event-field input:focus,
.event-field select:focus,
.event-field textarea:focus { border-color: #ff8eaf; background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(255,31,98,.08); }
.event-field-help { display: block; margin-top: 5px; color: #88888c; font-size: 9px; line-height: 1.4; }
.event-terms {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #e2e2df;
    border-radius: 8px;
    background: #fbfbf8;
    color: #55555a;
    font-size: 10px;
    line-height: 1.5;
}
.event-terms input { margin-top: 2px; }
.event-form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.event-rules { margin-top: 18px; padding: 18px 20px; border-top: 1px solid #e5e5e2; background: #fcfcfa; }
.event-rules h3 { margin: 0 0 8px; color: #333300; font-size: 14px; }
.event-rules ul { margin: 0; padding-left: 18px; color: #606065; font-size: 10px; line-height: 1.55; }
.event-rules li + li { margin-top: 5px; }

.event-manage-body,
.event-hosts-body { padding: 22px; }
.event-auth-card {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 18px;
    border: 1px solid #dededb;
    border-radius: 9px;
    background: #fbfbf8;
}
.event-auth-card h3 { margin: 0 0 6px; color: #333300; font-size: 16px; }
.event-auth-card p { margin: 0 0 14px; color: #66666b; font-size: 10px; line-height: 1.5; }
.event-hosts-table { width: 100%; border-collapse: collapse; }
.event-hosts-table th,
.event-hosts-table td { padding: 10px 12px; border-bottom: 1px solid #ececec; text-align: left; font-size: 11px; }
.event-hosts-table th { background: #f8f8f0; color: #333300; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.event-hosts-empty { padding: 34px 20px !important; text-align: center !important; color: #77777b; }

@media (max-width: 860px) {
    .events-directory-layout { grid-template-columns: 1fr; }
    .events-filter-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .events-filter-link { border-right: 1px solid #ececec; }
    .event-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .events-shell { margin-top: 18px; padding: 18px; }
    .events-heading { align-items: flex-start; flex-direction: column; }
    .events-heading-actions { justify-content: flex-start; }
    .events-filter-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-row { grid-template-columns: 62px minmax(0, 1fr); }
    .event-row-action { grid-column: 2; text-align: left; }
    .events-bottom-callout { align-items: flex-start; flex-direction: column; }
    .event-form-grid { grid-template-columns: 1fr; }
    .event-form-grid .wide { grid-column: auto; }
}
@media (max-width: 440px) {
    .events-filter-links { grid-template-columns: 1fr; }
    .event-detail-grid { grid-template-columns: 1fr; }
    .event-row { grid-template-columns: 1fr; }
    .event-date-tile { width: 72px; }
    .event-row-action { grid-column: auto; }
}


/* v194 - Event Winners */
.event-winners-panel {
    overflow: hidden;
    border: 1px solid #d7d7d2;
    border-radius: 10px;
    background: #fff;
}
.event-winners-head {
    padding: 18px 20px;
    border-bottom: 1px solid #d7d7d2;
    background: #f8f8f0;
}
.event-winners-head h2 {
    margin: 3px 0 5px;
    color: #333300;
    font-size: 24px;
    line-height: 1.15;
}
.event-winners-head p {
    max-width: 780px;
    margin: 0;
    color: #66666b;
    font-size: 11px;
    line-height: 1.5;
}
.event-award-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}
.event-award-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #fff;
    color: #4d4d52;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}
.event-award-badge > span { font-size: 14px; line-height: 1; }
.event-award-account { border-color: #cfd8e5; background: #f5f8fc; }
.event-award-game { border-color: #d7d5eb; background: #f8f7fd; }
.event-award-cash { border-color: #cfe0cf; background: #f5fbf5; }
.event-award-trophy { border-color: #eadcae; background: #fffaf0; }
.event-winners-body { padding: 22px; }
.event-winners-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e2df;
    border-radius: 8px;
}
.event-winners-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #fff;
}
.event-winners-table th,
.event-winners-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #ececec;
    text-align: left;
    vertical-align: middle;
    font-size: 11px;
}
.event-winners-table th {
    background: #f8f8f0;
    color: #333300;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.event-winners-table tbody tr:nth-child(even) { background: #fafafa; }
.event-winners-table tbody tr:last-child td { border-bottom: 0; }
.event-winners-empty {
    padding: 42px 20px !important;
    color: #77777b;
    text-align: center !important;
    line-height: 1.55;
}
@media (max-width: 680px) {
    .event-winners-head,
    .event-winners-body { padding: 16px; }
}

/* v213 explicit event access classification */
.event-tag.event-tag-access-free{border-color:#cfe0cf;background:#f4faf4;color:#356b3a}
.event-tag.event-tag-access-plus{border-color:#cfd5ec;background:#f4f6fd;color:#44558e}
.event-tag.event-tag-access-special{border-color:#ead9ad;background:#fffaf0;color:#745d1d}


/* v240 - shared saved-theme integration for Events forms */
.event-field input:focus,
.event-field select:focus,
.event-field textarea:focus,
.events-shell input:focus,
.events-shell select:focus,
.events-shell textarea:focus {
    border-color: var(--pink);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px var(--theme-accent-shadow);
}
.event-primary-button {
    border-color: var(--pink-dark);
    background: var(--pink);
    color: var(--theme-accent-text);
}
.event-primary-button:hover,
.event-primary-button:focus-visible {
    border-color: var(--pink-dark);
    background: var(--pink-dark);
    color: var(--theme-accent-text);
    outline: none;
}
body[data-events-manage="1"] .events-shell {
    border-top: 4px solid var(--pink);
}
