.activity-info-bar-wrap {
    position: relative;
    margin: 20px 40px;
}

.activity-info-bar-spacer {
    visibility: hidden;
}

.activity-info-bar-spacer,
.activity-info-bar {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 10px 6px;
}

/* The real, visible bar sits exactly over the spacer at rest (same width via
   left/right, same top), so it looks like normal in-flow content. On hover its
   height grows past the spacer's bottom edge to reveal detail text - since the
   spacer (not this element) is what the page layout reserves space for, that
   growth overlaps whatever follows instead of pushing it down. */
.activity-info-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}
.activity-info-bar:hover {
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
}

/* Sits below the row (not overlapping it) and, like the detail text, only
   takes up space once the bar is hovered and has already grown to fit it. */
.activity-info-bar__cta-wrap {
    text-align: right;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.22s ease, opacity 0.18s ease;
}
.activity-info-bar:hover .activity-info-bar__cta-wrap {
    max-height: 40px;
    opacity: 1;
    margin-top: 8px;
}
.activity-info-bar__cta {
    display: inline-block;
    background: #733381;
    color: #fff;
    font-size: 0.8rem;
    line-height: 1;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
}
.activity-info-bar__cta:hover {
    filter: brightness(1.1);
    color: #fff;
}

.activity-info-bar__row {
    display: flex;
    align-items: flex-start;
}

.activity-info-bar__col {
    box-sizing: border-box;
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0 18px;
    min-width: 170px;
}
.activity-info-bar__col + .activity-info-bar__col {
    border-left: 1px solid rgba(74, 48, 80, 0.15);
}

/* Icon + label row. This is the only thing the spacer also renders, so its
   height is what gets reserved in the page's normal flow - keeping it fixed
   regardless of hover means the label never shifts, and detail text (added
   only in the real bar, not the spacer) always starts below the icon.
   align-items is flex-start (not center) so the icon lines up with the first
   line of the label consistently across columns, whether a given column's
   label wraps to one line or two - centering against each column's own
   (variable) wrapped height is what caused icons to drift out of alignment
   with each other across the row. */
.activity-info-bar__head {
    display: flex;
    align-items: center;
    align-self: center;
    text-align: center;
    gap: 8px;
    height:45px;
}

.activity-info-bar__icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #733381;
    display: flex;
    align-items: center;
    justify-content: center;
}
.activity-info-bar__icon svg {
    width: 14px;
    height: 14px;
}

.activity-info-bar__label {
    font-size: 1.2rem;
    line-height: 1.2;
    color: #4a3050;
}

.activity-info-bar__detail {
    display: block;
    align-self: stretch;
    font-size: 1rem;
    line-height: 1.3;
    color: #5b4a63;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.22s ease, opacity 0.18s ease;
}
.activity-info-bar:hover .activity-info-bar__detail {
    max-height: 260px;
    opacity: 1;
    margin-top: 4px;
}

.activity-info-bar__detail ul,
.activity-info-bar__detail ol {
    margin: 4px 0 0;
    padding-left: 18px;
}
.activity-info-bar__detail li {
    margin-bottom: 3px;
}
.activity-info-bar__detail li::marker {
    color: #733381;
}
.activity-info-bar__detail strong {
    color: #4a3050;
}

body.dark-mode .activity-info-bar {
    background-color: #000 !important;
    border: 1px solid #fff !important;
}
body.dark-mode .activity-info-bar:hover {
    box-shadow: 5px 5px #994fb2 !important;
}
body.dark-mode .activity-info-bar__label {
    color: #fff !important;
}
body.dark-mode .activity-info-bar__detail {
    color: #d8cfe0 !important;
}
body.dark-mode .activity-info-bar__cta {
    background: #994fb2 !important;
}

/* Below tablet width the 4 fixed-min-width columns no longer fit on one row,
   so let them wrap into a 2x2 grid instead of forcing horizontal overflow.
   min-width is dropped to 0 so a wrapped column can still shrink further on
   narrow phones, and __head switches to min-height so a label wrapping to a
   third line just grows the row instead of being clipped. */
@media (max-width: 768px) {
    .activity-info-bar-wrap {
        margin: 20px 12px;
    }
    .activity-info-bar__row {
        flex-wrap: wrap;
    }
    .activity-info-bar__col {
        flex: 0 0 50%;
        min-width: 0;
        padding: 0 10px;
    }
    .activity-info-bar__col + .activity-info-bar__col {
        border-left: none;
    }
    .activity-info-bar__col:nth-child(even) {
        border-left: 1px solid rgba(74, 48, 80, 0.15);
    }
    .activity-info-bar__col:nth-child(n+3) {
        border-top: 1px solid rgba(74, 48, 80, 0.15);
        margin-top: 8px;
        padding-top: 8px;
    }
    .activity-info-bar__head {
        height: auto;
        min-height: 45px;
    }
}

@media (max-width: 420px) {
    .activity-info-bar__col {
        flex: 0 0 100%;
        border-left: none !important;
    }
    .activity-info-bar__col:nth-child(n+2) {
        border-top: 1px solid rgba(74, 48, 80, 0.15);
        margin-top: 8px;
        padding-top: 8px;
    }
}
