/* Preserve TEC markup and ticket hooks. Only single event pages are affected. */
body.single-tribe_events #tribe-events-content {
    color: #1f313c;
    max-width: 900px;
    box-sizing: border-box;
    margin-inline: auto;
    padding: clamp(24px, 5vw, 64px) 24px;
}
body.single-tribe_events #tribe-events-content .tribe-events-single-event-title {
    color: inherit;
    font-family: inherit;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
    margin: 24px 0 16px;
    overflow-wrap: anywhere;
}
body.single-tribe_events #tribe-events-content .tribe-events-schedule {
    margin: 0 0 32px;
    padding: 0;
    color: inherit;
}
body.single-tribe_events #tribe-events-content .tribe-events-event-image {
    margin: 0 0 32px;
    text-align: left;
}
body.single-tribe_events #tribe-events-content .tribe-events-event-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    max-height: 340px;
    object-fit: cover;
    object-position: center;
    margin-inline: 0;
    border-radius: 8px;
}
body.single-tribe_events #tribe-events-content .tribe-events-single-event-description {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 32px;
}
body.single-tribe_events #tribe-events-content .tribe-events-single-event-description p { margin-bottom: 20px; }
body.single-tribe_events #tribe-events-content .tribe-events-single-event-description h2,
body.single-tribe_events #tribe-events-content .tribe-events-single-event-description h3 { margin: 32px 0 16px; line-height: 1.4; }
body.single-tribe_events #tribe-events-content .tribe-events-single-event-description ul,
body.single-tribe_events #tribe-events-content .tribe-events-single-event-description ol { padding-left: 24px; }
body.single-tribe_events #tribe-events-content .tribe-events-single-section {
    font-family: inherit;
    background: #eceeef;
    border: 0;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}
body.single-tribe_events #tribe-events-content .tribe-events-meta-group { float: none; width: auto; margin: 0; padding: 0; min-width: 0; }
body.single-tribe_events #tribe-events-content .tribe-events-single-section .tribe-events-single-section-title { font-size: 19px; line-height: 1.4; color: inherit; margin: 0 0 16px; }
body.single-tribe_events #tribe-events-content .tribe-events-single-section dl { margin: 0; }
body.single-tribe_events #tribe-events-content .tribe-events-single-section dt { margin-top: 16px; font-weight: 600; }
body.single-tribe_events #tribe-events-content .tribe-events-single-section dd { margin: 4px 0 0; overflow-wrap: anywhere; }
body.single-tribe_events #tribe-events-content .tribe-events-event-categories a,
body.single-tribe_events #tribe-events-content .lola-event-categories a {
    display: inline-block;
    margin: 4px 4px 4px 0;
    padding: 4px 9px;
    background: #1f313c;
    color: white;
    border: 0;
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
}
body.single-tribe_events #tribe-events-content .lola-event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
body.single-tribe_events #tribe-events-content .lola-event-categories .lola-events__badge--audience {
    display: inline-block; margin: 4px 0; padding: 4px 9px; border-radius: 5px;
    background: #dce8c6; color: #1f313c; font-size: 13px; line-height: 1.5;
    max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere;
}
/* Match third-party components only on opted-in event detail pages. */
/* A shared CF7 form supersedes an inactive legacy RSVP, without deleting records. */
body.single-tribe_events #tribe-events-content:has(.lola-registration .wpcf7):has(.tribe-tickets__rsvp-message--inactive) .tribe-tickets__rsvp-message--inactive,
body.single-tribe_events #tribe-events-content:has(.lola-registration .wpcf7):has(.tribe-tickets__rsvp-message--inactive) .tribe-link-view-attendee { display: none; }
body.single-tribe_events #tribe-events-content .vlp-link-container {
    font-family: inherit;
    color: #1f313c;
    border-color: #1f313c;
    border-radius: 8px;
}
body.single-tribe_events #tribe-events-content .vlp-link-title,
body.single-tribe_events #tribe-events-content .vlp-link-summary { font-family: inherit; }
body.single-tribe_events #tribe-events-content .vlp-link-container { overflow: hidden; margin: 24px 0; }
body.single-tribe_events #tribe-events-content .lola-registration { margin: 32px 0 0; }
body.single-tribe_events #tribe-events-content .lola-registration h3 { font-size: 26px; line-height: 1.3; margin: 0 0 20px; }
body.single-tribe_events #tribe-events-content .lola-registration p { font-size: 16px; line-height: 1.6; }
body.single-tribe_events #tribe-events-content .lola-registration input[type="text"],
body.single-tribe_events #tribe-events-content .lola-registration input[type="email"] { box-sizing: border-box; width: 100%; border-radius: 5px; }
body.single-tribe_events #tribe-events-content .tribe-events-c-subscribe-dropdown { margin: 24px 0; }
body.single-tribe_events #tribe-events-content .tribe-events-c-subscribe-dropdown__button {
    border-color: #1f313c;
    color: #1f313c;
    border-radius: 5px;
}
body.single-tribe_events #tribe-events-content .tribe-events-c-subscribe-dropdown__button-text { color: #1f313c; font-family: inherit; font-size: 16px; font-weight: 600; }
body.single-tribe_events #tribe-events-content .lola-registration input[type="submit"],
body.single-tribe_events #tribe-events-content .tribe-events-c-subscribe-dropdown__button {
    font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4;
    min-height: 48px; padding: 12px 18px; border-radius: 5px; box-sizing: border-box;
}
body.single-tribe_events #tribe-events-content .lola-registration input[type="submit"] { background: #1f313c; color: #fff; border: 1px solid #1f313c; }
body.single-tribe_events #tribe-events-content .tribe-events-meta-group { font-family: inherit; font-size: 16px; line-height: 1.6; }
body.single-tribe_events #tribe-events-content .tribe-events-c-subscribe-dropdown__button:hover,
body.single-tribe_events #tribe-events-content .tribe-events-c-subscribe-dropdown__button:focus-within { background: #eceeef; }
body.single-tribe_events #tribe-events-content a:focus-visible { outline: 3px solid #1f313c; outline-offset: 4px; }
body.single-tribe_events #tribe-events-content .tribe-tickets__rsvp-wrapper {
    max-width: 720px;
    border-radius: 8px;
    color: #1f313c;
}
body.single-tribe_events #tribe-events-content .tribe-tickets__rsvp-wrapper input[type="text"],
body.single-tribe_events #tribe-events-content .tribe-tickets__rsvp-wrapper input[type="email"] { max-width: 100%; box-sizing: border-box; }
body.single-tribe_events #tribe-events-content .tribe-tickets__rsvp-wrapper .tribe-tickets__rsvp-actions-button-going,
body.single-tribe_events #tribe-events-content .tribe-tickets__rsvp-wrapper .tribe-tickets__rsvp-form-button[type="submit"] {
    background: #1f313c;
    color: #fff;
    border-radius: 5px;
}
body.single-tribe_events #tribe-events-content .tribe-events-single-section.tribe-events-event-meta.primary {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}
body.single-tribe_events #tribe-events-content .tribe-events-meta-list { list-style: none; padding: 0; margin: 0; }
body.single-tribe_events #tribe-events-content .tribe-events-meta-item { display: grid; grid-template-columns: minmax(220px, 35%) minmax(0, 1fr); gap: 20px; margin: 12px 0; }
body.single-tribe_events #tribe-events-content .tribe-events-meta-label { font-weight: 600; }
body.single-tribe_events #tribe-events-content .tribe-events-meta-label,
body.single-tribe_events #tribe-events-content .tribe-events-meta-value { font-family: inherit; }
body.single-tribe_events #tribe-events-content .tribe-events-meta-group-details dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px 20px; }
body.single-tribe_events #tribe-events-content .tribe-events-meta-group-details dt,
body.single-tribe_events #tribe-events-content .tribe-events-meta-group-details dd { margin: 0; }
body.single-tribe_events #tribe-events-content #tribe-events-footer ul { list-style: none; padding: 0; }
@media (max-width: 767px) {
    body.single-tribe_events #tribe-events-content .tribe-events-event-image img { aspect-ratio: 16 / 9; max-height: none; }
    body.single-tribe_events #tribe-events-content { padding: 24px 16px; }
    body.single-tribe_events #tribe-events-content .tribe-events-single-section.tribe-events-event-meta.primary { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    body.single-tribe_events #tribe-events-content .tribe-events-single-section { padding: 20px; }
    body.single-tribe_events #tribe-events-content .tribe-events-meta-group-details dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    body.single-tribe_events #tribe-events-content .tribe-events-meta-group-details dd { margin-bottom: 12px; }
    body.single-tribe_events #tribe-events-content .tribe-events-meta-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* One reading/control style; the event title retains LO.LA's monospaced identity. */
body.single-tribe_events #tribe-events-content {
    --lola-reading-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body.single-tribe_events #tribe-events-content .lola-registration,
body.single-tribe_events #tribe-events-content .tribe-events-single-section,
body.single-tribe_events #tribe-events-content .tribe-events-c-subscribe-dropdown,
body.single-tribe_events #tribe-events-content .vlp-link-container {
    font-family: var(--lola-reading-font);
}
body.single-tribe_events #tribe-events-content .lola-registration input,
body.single-tribe_events #tribe-events-content .lola-registration label,
body.single-tribe_events #tribe-events-content .lola-registration h3,
body.single-tribe_events #tribe-events-content .tribe-events-single-section-title {
    font-family: var(--lola-reading-font);
}
body.single-tribe_events #tribe-events-content .lola-registration h3,
body.single-tribe_events #tribe-events-content .tribe-events-single-section-title {
    font-size: 22px; font-weight: 600; text-transform: none; letter-spacing: 0;
}
body.single-tribe_events #tribe-events-content .lola-registration input[type="text"],
body.single-tribe_events #tribe-events-content .lola-registration input[type="email"],
body.single-tribe_events #tribe-events-content .lola-registration input[type="number"] {
    width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px;
    border: 1px solid #d3dadd; border-radius: 6px; background: #fff;
    color: #1f313c; font-size: 16px;
}
body.single-tribe_events #tribe-events-content .lola-registration input::placeholder { color: #62727b; opacity: 1; }
body.single-tribe_events #tribe-events-content .lola-registration input:focus-visible { outline: 2px solid #1f313c; outline-offset: 2px; }
body.single-tribe_events #tribe-events-content .lola-registration .wpcf7-list-item-label { color: #1f313c; }
body.single-tribe_events #tribe-events-content .lola-registration p { margin-bottom: 18px; padding-bottom: 0; }
body.single-tribe_events #tribe-events-content .lola-registration label { color: #1f313c; }
body.single-tribe_events #tribe-events-content .lola-registration .wpcf7-checkbox .wpcf7-list-item { margin: 8px 0 0; }
body.single-tribe_events #tribe-events-content .lola-registration .wpcf7-checkbox label { display: inline-flex; align-items: center; gap: 8px; color: #1f313c; }
body.single-tribe_events #tribe-events-content .lola-registration .wpcf7-checkbox input[type="checkbox"] { margin: 0; width: 18px; height: 18px; flex: 0 0 18px; }
body.single-tribe_events #tribe-events-content .tribe-events-event-meta::before { display: none; }
body.single-tribe_events #tribe-events-content:has(.lola-registration .wpcf7) .tribe-tickets__rsvp-wrapper:has(.tribe-tickets__rsvp-message--inactive) { display: none; }
body.single-tribe_events #tribe-events-content #tribe-events-footer { border: 0; padding-top: 0; }
body.single-tribe_events #tribe-events-content #tribe-events-footer li::marker { content: ""; }
body.single-tribe_events #tribe-events-content .lola-registration input[type="submit"]:hover { background: #344c59; }
body.single-tribe_events #tribe-events-content .tribe-events-c-subscribe-dropdown { margin: 16px 0 24px; }
body.single-tribe_events #tribe-events-content .tribe-events-single-section {
    background: #f5f7f7; border: 1px solid #dce2e5; margin: 24px 0; padding: 24px;
}
body.single-tribe_events #tribe-events-content .tribe-events-meta-label { font-size: 15px; }
body.single-tribe_events #tribe-events-content .tribe-events-meta-item { margin: 10px 0; }
body.single-tribe_events #tribe-events-content .vlp-layout-lo-la-compact {
    display: flex; flex-direction: row; align-items: center; gap: 20px;
    padding: 16px; border: 1px solid #dce2e5; background: #f5f7f7; border-radius: 8px;
}
body.single-tribe_events #tribe-events-content .vlp-layout-lo-la-compact .vlp-layout-zone-side {
    float: none; flex: 0 0 100px; order: 0; width: 100px;
}
body.single-tribe_events #tribe-events-content .vlp-layout-lo-la-compact .vlp-layout-zone-main {
    flex: 1; order: 1; min-width: 0; padding: 0; margin: 0;
}
body.single-tribe_events #tribe-events-content .vlp-layout-lo-la-compact img { border-radius: 5px; display: block; }
body.single-tribe_events #tribe-events-content .vlp-layout-lo-la-compact .vlp-link-title { font-size: 19px; line-height: 1.35; margin-bottom: 8px; }
body.single-tribe_events #tribe-events-content .vlp-layout-lo-la-compact .vlp-link-summary { font-size: 15px; line-height: 1.55; color: #52636d; }
body.single-tribe_events #tribe-events-content .vlp-layout-lo-la-compact:hover { border-color: #62727b; }
body.single-tribe_events #tribe-events-content .vlp-layout-lo-la-compact:focus-within { outline: 2px solid #1f313c; outline-offset: 3px; }
@media (max-width: 480px) {
    body.single-tribe_events #tribe-events-content .vlp-layout-lo-la-compact { gap: 12px; padding: 12px; }
    body.single-tribe_events #tribe-events-content .vlp-layout-lo-la-compact .vlp-link-title { font-size: 17px; }
}
