/**
 * Theme Name: The Rotunda
 * Description: The Rodunda is a Blocksy Child theme
 * Author: The Rotunda
 * Template: blocksy
 * Text Domain: rotunda
 */

/* Remove vertical green line (border) from event list items and adjust title spacing */
.em.em-list .em-item .em-item-info {
    border-left: none !important;
}

/* Max width for event list items */
.em.em-list .em-item {
    max-width: 1100px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Remove green border below images on mobile */
@media (max-width: 768px) {

    .em.em-list .em-item,
    .em-item-image,
    .em-item-image a,
    .em-item-image img {
        border: none !important;
        border-bottom: none !important;
    }

    /* Specifically target and remove the green #71B70E border */
    .em.em-list .em-item *,
    .em-item-image *,
    .em-event-media *,
    .em-item *,
    * {
        border-color: transparent !important;
    }

    /* Remove any pseudo-elements that might create the green line */
    .em.em-list .em-item::before,
    .em.em-list .em-item::after,
    .em-item-image::before,
    .em-item-image::after,
    .em-item-image a::before,
    .em-item-image a::after,
    .em-item-image img::before,
    .em-item-image img::after {
        display: none !important;
        content: none !important;
        border: none !important;
        background: none !important;
    }
}

/* Reduce space between title and event details */
/* Event List Title Styling to match Detail Page */
.em.em-list .em-item .em-item-info h3.em-item-title {
    font-size: 2.2rem;
    /* Scaled down slightly from 3.5rem detail view for list context */
    line-height: 1;
    font-weight: 300;
    margin-bottom: 15px !important;
    /* Space between title and meta details */
    margin-top: 0;
}

/* Event List Title Color */
.em.em-list .em-item .em-item-info h3.em-item-title a {
    color: #7A7045 !important;
    /* Matched to Detail Page Gold */
    text-decoration: none;
}

.em.em-list .em-item .em-item-info h3.em-item-title a:hover {
    color: #000 !important;
}

/* Ensure consistent spacing in grid view */
.em.em-list.em-grid>div.em-item .em-item-info .em-item-title {
    margin-bottom: 0 !important;
}

/* ========================================
   UNIFIED EVENT META COMPONENTS
   Shared across listing and detail pages
   ======================================== */

/* Ensure strictly 40px spacing below meta block */
.em-item-desc {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove spacing from potentially empty meta container in list view */
.em.em-list .em-item .em-item-meta {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

.em-event-meta-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
    /* 30px Total Gap */
    font-family: var(--font-headings, sans-serif);
    font-size: 12px;
    font-weight: 700;
    width: 100%;
}

.em-event-meta-details-wrapper {
    width: 100%;
}

.em-event-datetime-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Detail-specific border */
.single-event .em-event-meta-block {
    border-bottom: 1px solid #E1E1E1;
    padding-bottom: 15px;
}

/* Date Badge with Slanted Right Edge */
.em-event-date-badge {
    position: relative;
    display: inline-block;
    background-color: #E0E0E0;
    /* Updated to requested grey */
    color: #000;
    padding: 6px 7px 6px 14px;
    line-height: 1.2;
    white-space: nowrap;
    margin-right: 19px;
    border-radius: 2px 0 0 2px;
    z-index: 1;
}

.em-event-date-badge::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -10px;
    left: 20px;
    background-color: #E0E0E0;
    /* Updated to requested grey */
    transform: skewX(-15deg);
    border-radius: 0 2px 2px 0;
    z-index: -1;
    transform-origin: bottom right;
}

.em-event-time {
    color: #000;
}

.em-event-meta-separator {
    color: #666;
    font-weight: 400;
}

.em-event-meta-details {
    color: #666;
}

.em-event-categories,
.em-event-meta-curator {
    display: inline;
}

/* Force Grey Color and No Underline for Category/Curator Links */
.em-event-meta-block a,
.em-event-meta-block a:link,
.em-event-meta-block a:visited,
.em-event-meta-block .em-event-categories a,
.em-event-meta-block .em-event-categories a:link,
.em-event-meta-block .em-event-categories a:visited,
.em-event-meta-block .em-event-meta-details a,
.em-event-meta-block .em-event-meta-details a:link,
.em-event-meta-block .em-event-meta-details a:visited {
    color: #666 !important;
    text-decoration: none !important;
}

.em-event-meta-block a:hover,
.em-event-meta-block .em-event-categories a:hover,
.em-event-meta-block .em-event-meta-details a:hover {
    color: #000 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    text-decoration-color: #000 !important;
}

/* Base curator name (no link by default) */
.em-event-meta-block .curator-name,
.em-event-meta-block .em-event-meta-curator .curator-name,
.em-event-meta-block .em-event-meta-details .curator-name {
    color: #666 !important;
    text-decoration: none !important;
    font-weight: 700;
}

/* Remove EVERYTHING that could look like an underline for fallback text */
.em-event-meta-block .curator-name.no-underline,
.em-event-meta-block .em-event-meta-curator .curator-name.no-underline,
.em-event-meta-block .em-event-meta-details .curator-name.no-underline {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Remove bullets from category list */
.em-event-categories ul,
.em-event-categories li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

/* Detail Page Layout and Typography */
.em-event-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #111;
}

.em-event-info {
    display: flex;
    flex-direction: column;
}

.em-event-media {
    align-self: start;
}

.em-event-title-placeholder h1 {
    font-size: 3.5rem;
    line-height: 0.96;
    margin-top: 5px;
    margin-bottom: 20px;
    font-weight: 300;
    color: #7A7045;
}

.em-event-body {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #222;
    margin-bottom: 40px;
}

.em-event-body p {
    margin-bottom: 1.5em;
}

.em-event-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 900px) {
    .em-event-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .em-event-title-placeholder h1 {
        font-size: 2.5rem;
    }
}

/* Hide redundant theme header elements on event detail pages */
.single-event .page-description {
    display: none !important;
}

/* Custom text selection background */
::selection {
    background: #E2D5C5;
    color: inherit;
}

::-moz-selection {
    background: #E2D5C5;
    color: inherit;
}

/* Event Image Styling - Unified 5px Radius */
/* Targets: Listing containers, Detail wrappers, Images, Placeholders */
.em-item-image,
.em-item-image a,
.em-item-image img,
.em-event-media,
.em-event-media img,
.em-additional-image,
.em-additional-image img,
.em-item-image-placeholder {
    overflow: hidden !important;
    border-radius: 5px !important;
    /* Explicitly force all corners */
    border-top-left-radius: 5px !important;
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
    border-bottom-left-radius: 5px !important;
    /* Reset padding that prevents right-side radius */
    padding: 0 !important;
    /* Reset widely used clipping properties */
    mask: none !important;
    -webkit-mask: none !important;
    transform: none !important;
    /* Fix for potential WebKit clipping bugs */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

/* Force Desktop Radius (overriding potential list-layout squaring) */
@media (min-width: 600px) {

    .em.em-list .em-item .em-item-image,
    .em.em-list .em-item .em-item-image a,
    .em.em-list .em-item .em-item-image img {
        border-radius: 5px !important;
        border-top-right-radius: 5px !important;
        border-bottom-right-radius: 5px !important;
        /* Ensure width doesn't cause clipping */
        max-width: 100% !important;
        width: auto !important;
    }
}

/* Rotunda Main Nav Underline - Global Header Fix */
header .ct-menu-link,
.menu-rotunda-main-nav .ct-menu-link {
    text-decoration: none !important;
    color: #8D8126 !important;
    /* Default Gold */
}

/* Hover State */
header .ct-menu-link:hover,
.menu-rotunda-main-nav .ct-menu-link:hover,
.menu-rotunda-main-nav li:hover>.ct-menu-link {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    color: #4D4D4D !important;
    /* Hover Dark Grey */
}

/* Active State */
header .current-menu-item>.ct-menu-link,
header .current-menu-ancestor>.ct-menu-link,
header .current_page_item>.ct-menu-link,
.menu-rotunda-main-nav .current-menu-item .ct-menu-link,
.menu-rotunda-main-nav .current-menu-ancestor .ct-menu-link,
.menu-rotunda-main-nav .current_page_item .ct-menu-link {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    color: #8D8126 !important;
    /* Active stays Gold */
}

/* Page Background Colors */
body {
    background-color: #F6F6F6 !important;
}

/* Header Background - Ensure it remains white */
header,
.site-header,
[data-row="header"] {
    background-color: #ffffff !important;
}

/* Footer Background - Ensure it remains black */
footer,
.site-footer,
[data-row="footer"] {
    background-color: #000000 !important;
}

/* Event List Horizontal Separator */
.em.em-list .em-item .em-item-info .em-item-separator {
    height: 1px;
    background-color: #E1E1E1;
    /* Matches detail page separation */
    width: 100%;
    margin-top: 5px;
    /* Spacing from date/time (plus 10px flex gap = 15px total) */
    margin-bottom: 0;
}

/* ==========================================================================
   Events V2 & V3 - Compact View Styling
   Scoped specifically to events-v2 and events-v3 pages
   ========================================================================== */
.page-id-1378 .em.em-list,
.page-id-1413 .em.em-list,
body[class*="events-v2"] .em.em-list,
body[class*="events-v3"] .em.em-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-id-1378 .em.em-list .em-item,
.page-id-1413 .em.em-list .em-item,
body[class*="events-v2"] .em.em-list .em-item,
body[class*="events-v3"] .em.em-list .em-item {
    display: grid !important;
    grid-template-columns: 200px 1fr !important;
    gap: 24px;
    padding: 24px 0 16px 0 !important;
    border-top: 1px solid #E5E5E5 !important;
    align-items: start;
}

.page-id-1378 .em.em-list .em-item:first-child,
.page-id-1413 .em.em-list .em-item:first-child,
body[class*="events-v2"] .em.em-list .em-item:first-child,
body[class*="events-v3"] .em.em-list .em-item:first-child,
.page-id-1378 .em.em-list h2 + .em-item,
.page-id-1413 .em.em-list h2 + .em-item,
body[class*="events-v2"] .em.em-list h2 + .em-item,
body[class*="events-v3"] .em.em-list h2 + .em-item,
.page-id-1378 h2 + .em-item,
.page-id-1413 h2 + .em-item,
body[class*="events-v2"] h2 + .em-item,
body[class*="events-v3"] h2 + .em-item,
.page-id-1378 .em.em-list .em-item:first-of-type,
.page-id-1413 .em.em-list .em-item:first-of-type,
body[class*="events-v2"] .em.em-list .em-item:first-of-type,
body[class*="events-v3"] .em.em-list .em-item:first-of-type {
    border-top: none !important;
}

/* Compact Image / Placeholder */
.page-id-1378 .em.em-list .em-item .em-item-image,
.page-id-1413 .em.em-list .em-item .em-item-image,
body[class*="events-v2"] .em.em-list .em-item .em-item-image,
body[class*="events-v3"] .em.em-list .em-item .em-item-image {
    width: 200px !important;
    height: 137px !important;
    min-height: 137px !important;
    max-height: 137px !important;
    overflow: hidden;
    border-radius: 5px !important;
    padding: 0 !important;
}

.page-id-1378 .em.em-list .em-item .em-item-image img,
.page-id-1413 .em.em-list .em-item .em-item-image img,
body[class*="events-v2"] .em.em-list .em-item .em-item-image img,
body[class*="events-v3"] .em.em-list .em-item .em-item-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 200px !important;
    max-height: 137px !important;
    object-fit: cover !important;
}

.page-id-1378 .em.em-list .em-item .em-item-image .em-item-image-placeholder,
.page-id-1413 .em.em-list .em-item .em-item-image .em-item-image-placeholder,
body[class*="events-v2"] .em.em-list .em-item .em-item-image .em-item-image-placeholder,
body[class*="events-v3"] .em.em-list .em-item .em-item-image .em-item-image-placeholder {
    width: 200px !important;
    max-width: 200px !important;
    height: 137px !important;
    min-height: 137px !important;
    max-height: 137px !important;
    aspect-ratio: auto !important;
    opacity: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 5px !important;
    background-image: url('/wp-content/uploads/2026/11/shape-abstract-1.png') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 96px auto !important;
}

.page-id-1378 .em.em-list .em-item .em-item-image .em-item-image-placeholder .date,
.page-id-1413 .em.em-list .em-item .em-item-image .em-item-image-placeholder .date,
body[class*="events-v2"] .em.em-list .em-item .em-item-image .em-item-image-placeholder .date,
body[class*="events-v3"] .em.em-list .em-item .em-item-image .em-item-image-placeholder .date {
    display: none !important;
}

/* Info container & tighter spacing */
.page-id-1378 .em.em-list .em-item .em-item-info,
.page-id-1413 .em.em-list .em-item .em-item-info,
body[class*="events-v2"] .em.em-list .em-item .em-item-info,
body[class*="events-v3"] .em.em-list .em-item .em-item-info {
    padding: 0 !important;
}

/* Scaled-down title */
.page-id-1378 .em.em-list .em-item .em-item-info h3.em-item-title,
.page-id-1413 .em.em-list .em-item .em-item-info h3.em-item-title,
body[class*="events-v2"] .em.em-list .em-item .em-item-info h3.em-item-title,
body[class*="events-v3"] .em.em-list .em-item .em-item-info h3.em-item-title,
.page-id-1378 .em.em-list .em-item .em-item-info h3.em-item-title a,
.page-id-1413 .em.em-list .em-item .em-item-info h3.em-item-title a,
body[class*="events-v2"] .em.em-list .em-item .em-item-info h3.em-item-title a,
body[class*="events-v3"] .em.em-list .em-item .em-item-info h3.em-item-title a {
    font-size: 1.5rem !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    word-spacing: 0.15em !important;
}

/* Compact Meta Block */
.page-id-1378 .em.em-list .em-item .em-event-meta-block,
.page-id-1413 .em.em-list .em-item .em-event-meta-block,
body[class*="events-v2"] .em.em-list .em-item .em-event-meta-block,
body[class*="events-v3"] .em.em-list .em-item .em-event-meta-block {
    gap: 6px !important;
    margin-bottom: 12px !important;
    font-size: 11px !important;
}

.page-id-1378 .em.em-list .em-item .em-event-date-badge,
.page-id-1413 .em.em-list .em-item .em-event-date-badge,
body[class*="events-v2"] .em.em-list .em-item .em-event-date-badge,
body[class*="events-v3"] .em.em-list .em-item .em-event-date-badge {
    padding: 4px 6px 4px 10px !important;
    font-size: 11px !important;
    margin-right: 14px !important;
}

.page-id-1378 .em.em-list .em-item .em-event-datetime-row,
.page-id-1413 .em.em-list .em-item .em-event-datetime-row,
body[class*="events-v2"] .em.em-list .em-item .em-event-datetime-row,
body[class*="events-v3"] .em.em-list .em-item .em-event-datetime-row {
    gap: 8px !important;
}

/* Compact Excerpt: 2-line clamp */
.page-id-1378 .em.em-list .em-item .em-item-desc,
body[class*="events-v2"] .em.em-list .em-item .em-item-desc {
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
    color: #444 !important;
    margin: 8px 0 0 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Events V3: Exclude em-item-desc and separator line below date/time */
.page-id-1413 .em.em-list .em-item .em-item-desc,
body[class*="events-v3"] .em.em-list .em-item .em-item-desc,
body.page-slug-events-v3 .em.em-list .em-item .em-item-desc,
.page-id-1413 .em.em-list .em-item .em-item-separator,
body[class*="events-v3"] .em.em-list .em-item .em-item-separator,
body.page-slug-events-v3 .em.em-list .em-item .em-item-separator {
    display: none !important;
}

/* Month Grouping Headings (Nov, Dec, Jan, etc.) */
.page-id-1378 .em.pixelbones h2,
.page-id-1413 .em.pixelbones h2,
.page-id-1378 .em.em-list h2,
.page-id-1413 .em.em-list h2,
.page-id-1378 .entry-content h2,
.page-id-1413 .entry-content h2,
body[class*="events-v2"] .em.pixelbones h2,
body[class*="events-v3"] .em.pixelbones h2,
body[class*="events-v2"] .em.em-list h2,
body[class*="events-v3"] .em.em-list h2,
body[class*="events-v2"] .entry-content h2,
body[class*="events-v3"] .entry-content h2,
body.page-slug-events-v2 .em.pixelbones h2,
body.page-slug-events-v3 .em.pixelbones h2,
h2.rotunda-month-heading {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #111 !important;
    line-height: 1 !important;
    margin: 40px 0 0 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #D0D0D0 !important;
    max-width: 1100px !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block !important;
}

.page-id-1378 .em.pixelbones h2:first-of-type,
.page-id-1413 .em.pixelbones h2:first-of-type,
.page-id-1378 .em.em-list h2:first-of-type,
.page-id-1413 .em.em-list h2:first-of-type,
.page-id-1378 .entry-content h2:first-of-type,
.page-id-1413 .entry-content h2:first-of-type,
body[class*="events-v2"] .em.pixelbones h2:first-of-type,
body[class*="events-v3"] .em.pixelbones h2:first-of-type,
body[class*="events-v2"] .em.em-list h2:first-of-type,
body[class*="events-v3"] .em.em-list h2:first-of-type,
body[class*="events-v2"] .entry-content h2:first-of-type,
body[class*="events-v3"] .entry-content h2:first-of-type,
body.page-slug-events-v2 .em.pixelbones h2:first-of-type,
body.page-slug-events-v3 .em.pixelbones h2:first-of-type,
h2.rotunda-month-heading:first-of-type {
    margin-top: 10px !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 650px) {
    .page-id-1378 .em.em-list .em-item,
    .page-id-1413 .em.em-list .em-item,
    body[class*="events-v2"] .em.em-list .em-item,
    body[class*="events-v3"] .em.em-list .em-item {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .page-id-1378 .em.em-list .em-item .em-item-image,
    .page-id-1413 .em.em-list .em-item .em-item-image,
    body[class*="events-v2"] .em.em-list .em-item .em-item-image,
    body[class*="events-v3"] .em.em-list .em-item .em-item-image {
        width: 100% !important;
        height: 180px !important;
    }
}

/* Event Placeholder Background Colors (Random / Cycle per nth-child for events-v2 & events-v3) */
.page-id-1378 .em.em-list .em-item:nth-child(4n+1) .em-item-image-placeholder,
.page-id-1413 .em.em-list .em-item:nth-child(4n+1) .em-item-image-placeholder,
body[class*="events-v2"] .em.em-list .em-item:nth-child(4n+1) .em-item-image-placeholder,
body[class*="events-v3"] .em.em-list .em-item:nth-child(4n+1) .em-item-image-placeholder,
body.page-slug-events-v2 .em.em-list .em-item:nth-child(4n+1) .em-item-image-placeholder,
body.page-slug-events-v3 .em.em-list .em-item:nth-child(4n+1) .em-item-image-placeholder {
    background-color: #DEEBE9 !important;
    opacity: 1 !important;
}

.page-id-1378 .em.em-list .em-item:nth-child(4n+2) .em-item-image-placeholder,
.page-id-1413 .em.em-list .em-item:nth-child(4n+2) .em-item-image-placeholder,
body[class*="events-v2"] .em.em-list .em-item:nth-child(4n+2) .em-item-image-placeholder,
body[class*="events-v3"] .em.em-list .em-item:nth-child(4n+2) .em-item-image-placeholder,
body.page-slug-events-v2 .em.em-list .em-item:nth-child(4n+2) .em-item-image-placeholder,
body.page-slug-events-v3 .em.em-list .em-item:nth-child(4n+2) .em-item-image-placeholder {
    background-color: #FAE0C9 !important;
    opacity: 1 !important;
}

.page-id-1378 .em.em-list .em-item:nth-child(4n+3) .em-item-image-placeholder,
.page-id-1413 .em.em-list .em-item:nth-child(4n+3) .em-item-image-placeholder,
body[class*="events-v2"] .em.em-list .em-item:nth-child(4n+3) .em-item-image-placeholder,
body[class*="events-v3"] .em.em-list .em-item:nth-child(4n+3) .em-item-image-placeholder,
body.page-slug-events-v2 .em.em-list .em-item:nth-child(4n+3) .em-item-image-placeholder,
body.page-slug-events-v3 .em.em-list .em-item:nth-child(4n+3) .em-item-image-placeholder {
    background-color: #EBDEE8 !important;
    opacity: 1 !important;
}

.page-id-1378 .em.em-list .em-item:nth-child(4n+4) .em-item-image-placeholder,
.page-id-1413 .em.em-list .em-item:nth-child(4n+4) .em-item-image-placeholder,
body[class*="events-v2"] .em.em-list .em-item:nth-child(4n+4) .em-item-image-placeholder,
body[class*="events-v3"] .em.em-list .em-item:nth-child(4n+4) .em-item-image-placeholder,
body.page-slug-events-v2 .em.em-list .em-item:nth-child(4n+4) .em-item-image-placeholder,
body.page-slug-events-v3 .em.em-list .em-item:nth-child(4n+4) .em-item-image-placeholder {
    background-color: #CAECF8 !important;
    opacity: 1 !important;
}

/* Figma About Hero Design Styles */
@import url('figma-about-hero.css');
