/* ============================================
   ATCHISON AREA CHAMBER OF COMMERCE
   Events Page Styles
   ============================================ */

/* ==========================================
   EVENTS FILTERS
   --------------------------------------------
   Three controls in one row — search input, category select, and the
   list/calendar view toggle. They all share the same 48px height and
   12px radius so the row reads as a single coherent control strip
   instead of three mismatched widgets.
   ========================================== */
.events-filters {
    background: var(--white);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--light-gray);
}

.filters-inner {
    display: flex;
    gap: var(--space-3);
    align-items: stretch;
    flex-wrap: wrap;
}

/* Shared height/family for all three controls */
.search-input,
.filter-select,
.view-toggle {
    height: 48px;
    box-sizing: border-box;
    font-family: var(--font-display, 'Poppins', sans-serif);
}

/* ----- Search ----- */
.search-wrapper {
    flex: 1 1 280px;
    min-width: 240px;
    position: relative;
    display: flex;
    align-items: stretch;
}

.search-wrapper svg {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--medium-gray);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0 var(--space-4) 0 var(--space-12);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    color: var(--dark-gray);
    background: var(--white);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    -webkit-appearance: none;
    appearance: none;
}

.search-input::placeholder {
    color: var(--medium-gray);
    opacity: 1;
}

.search-input:focus {
    outline: none;
    border-color: var(--chamber-teal);
    box-shadow: 0 0 0 3px rgba(39, 175, 165, 0.18);
}

/* ----- Category Select ----- */
.filter-group {
    display: flex;
    align-items: stretch;
    flex: 0 1 220px;
    min-width: 180px;
}

.filter-select {
    flex: 1 1 auto;
    width: 100%;
    padding: 0 var(--space-10) 0 var(--space-4);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-lg);
    background-color: var(--white);
    color: var(--dark-gray);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);

    /* Strip native chevron and draw our own teal one */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2327afa5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 8 10 13 15 8'/></svg>");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    background-size: 16px 16px;
}

.filter-select::-ms-expand { display: none; }

.filter-select:hover {
    border-color: var(--chamber-teal);
}

.filter-select:focus {
    outline: none;
    border-color: var(--chamber-teal);
    box-shadow: 0 0 0 3px rgba(39, 175, 165, 0.18);
}

/* Native option dropdown can't be fully restyled, but force a readable
   font + padding so the open menu doesn't drop back into Cardo serif. */
.filter-select option {
    font-family: var(--font-display, 'Poppins', sans-serif);
    color: var(--dark-gray);
    background: var(--white);
    padding: var(--space-2);
}

/* ==========================================
   VIEW TOGGLE
   ========================================== */
.view-toggle {
    display: inline-flex;
    align-items: stretch;
    gap: var(--space-1);
    background: var(--off-white);
    padding: 4px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-lg);
}

.view-toggle__btn {
    padding: 0 var(--space-4);
    background: transparent;
    border: none;
    border-radius: calc(var(--radius-lg) - 4px);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--medium-gray);
    cursor: pointer;
    transition: background-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    white-space: nowrap;
}

.view-toggle__btn:hover {
    color: var(--chamber-slate);
}

.view-toggle__btn--active {
    background: var(--white);
    color: var(--chamber-slate);
    box-shadow: var(--shadow-sm);
}

.view-toggle__btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* On phones, collapse to one control per line so nothing gets cramped */
@media (max-width: 639px) {
    .search-wrapper,
    .filter-group {
        flex-basis: 100%;
        min-width: 0;
    }
    .view-toggle {
        width: 100%;
        justify-content: stretch;
    }
    .view-toggle__btn {
        flex: 1 1 0;
        justify-content: center;
    }
}

/* ==========================================
   CALENDAR VIEW
   ========================================== */
.events-section {
    padding: var(--space-10) 0 var(--space-16);
    background: var(--off-white);
    min-height: 60vh;
}

.calendar-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    background: var(--chamber-slate);
    color: var(--white);
}

.calendar-header__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    margin: 0;
}

.calendar-nav {
    display: flex;
    gap: var(--space-2);
}

.calendar-nav__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-base);
}

.calendar-nav__btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-nav__btn svg {
    width: 20px;
    height: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
    padding: var(--space-3);
    text-align: center;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--medium-gray);
    background: var(--off-white);
    border-bottom: 1px solid var(--light-gray);
}

.calendar-day {
    min-height: 100px;
    padding: var(--space-2);
    border-right: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day--other-month {
    background: var(--off-white);
}

.calendar-day--other-month .calendar-day__number {
    color: var(--light-gray);
}

.calendar-day--today {
    background: rgba(23, 175, 165, 0.05);
}

.calendar-day--today .calendar-day__number {
    background: var(--chamber-teal);
    color: var(--white);
}

.calendar-day__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-1);
}

.calendar-event {
    display: block;
    padding: var(--space-1) var(--space-2);
    margin-bottom: var(--space-1);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: var(--font-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all var(--transition-base);
}

.calendar-event:hover {
    transform: scale(1.02);
}

.calendar-event--chamber {
    background: var(--chamber-red);
    color: var(--white);
}

.calendar-event--community {
    background: var(--chamber-teal);
    color: var(--white);
}

.calendar-event--recurring {
    background: var(--chamber-slate);
    color: var(--white);
}

.calendar-day__more {
    font-size: 11px;
    color: var(--medium-gray);
    padding: var(--space-1) var(--space-2);
    cursor: pointer;
}

.calendar-day__more:hover {
    color: var(--chamber-teal);
}

/* ==========================================
   LIST VIEW
   ========================================== */
.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.events-list--hidden {
    display: none;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    transition: all var(--transition-base);
}

.event-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.event-card__date {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: var(--chamber-red);
    color: var(--white);
    text-align: center;
}

.event-card__month {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-card__day {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: 1;
}

.event-card__year {
    font-size: var(--text-xs);
    opacity: 0.8;
}

/* Flyer preview — sits after the red date, before copy */
.event-card__thumb-wrap {
    flex-shrink: 0;
    width: 128px;
    min-width: 100px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-3);
    background: var(--off-white);
    border-left: 1px solid var(--light-gray);
    box-sizing: border-box;
}

.event-card__thumb {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 150px;
    min-height: 1px;
    object-fit: contain;
    object-position: top center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--white);
}

.event-card__content {
    flex: 1;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}

.event-card__category {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--chamber-teal);
    margin-bottom: var(--space-2);
}

.event-card__title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--dark-gray);
    margin-bottom: var(--space-2);
}

.event-card__description {
    font-size: var(--text-sm);
    color: var(--medium-gray);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card__meta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--medium-gray);
    margin-top: auto;
}

.event-card__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.event-card__meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--chamber-teal);
}

.event-card__actions {
    min-width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-6);
    background: var(--off-white);
    border-left: 1px solid var(--light-gray);
}

/* ==========================================
   EVENT MODAL
   ========================================== */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.event-modal--open {
    opacity: 1;
    visibility: visible;
}

.event-modal__content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-base);
}

.event-modal--open .event-modal__content {
    transform: scale(1);
}

.event-modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.event-modal__close:hover {
    background: var(--chamber-red);
    color: var(--white);
}

/* Flyer-friendly: portrait flyers (the most common shape) need to be shown
   in full, not cropped to a wide banner. We letterbox against a soft
   off-white background and cap the height so the rest of the modal still
   fits in the viewport. */
.event-modal__media {
    background: var(--off-white, #f7f5f1);
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 60vh;
    overflow: hidden;
    border-bottom: 1px solid var(--light-gray, #e5e5e5);
}

.event-modal__image {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.event-modal__recurring,
.event-card__recurring {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b88a2c;
    background: rgba(245, 210, 122, 0.18);
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
}

/* Today / Jump-to-today button on calendar header */
.calendar-nav__btn--today {
    width: auto !important;
    padding: 0 var(--space-3, 12px) !important;
    font-size: var(--text-sm, 14px) !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--chamber-teal, #1a8a82);
    color: var(--white, #fff);
    border-radius: var(--radius-md, 8px);
}
.calendar-nav__btn--today:hover {
    background: var(--chamber-teal-dark, #1a8a82);
    filter: brightness(0.95);
}

.event-modal__body {
    padding: var(--space-8);
}

.event-modal__category {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--chamber-teal);
    margin-bottom: var(--space-3);
}

.event-modal__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.event-modal__meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--off-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
}

.event-modal__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
}

.event-modal__meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--chamber-teal);
    flex-shrink: 0;
}

.event-modal__description {
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.event-modal__actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ==========================================
   FEATURED EVENT
   ========================================== */
.featured-event {
    background: linear-gradient(135deg, var(--chamber-slate) 0%, var(--chamber-slate-dark) 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: var(--white);
}

/* Featured banner: keep `cover` so the lush hero look is preserved on
   landscape flyers, but use object-position centered so we don't clip
   the wrong half on portrait flyers. The detail modal uses object-fit:
   contain so the full flyer is always visible. */
.featured-event__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.08);
}

.featured-event__content {
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-event__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--chamber-red);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    margin-bottom: var(--space-4);
}

.featured-event__title {
    font-size: var(--text-3xl);
    color: var(--white);
    margin-bottom: var(--space-4);
}

.featured-event__description {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-6);
}

.featured-event__meta {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.featured-event__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.9;
}

.featured-event__meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--chamber-teal);
}

/* ==========================================
   SUBMIT EVENT CTA
   ========================================== */
.submit-event-cta {
    background: linear-gradient(135deg, var(--chamber-teal) 0%, #139089 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    margin-top: var(--space-12);
    text-align: center;
    color: var(--white);
}

.submit-event-cta h2 {
    font-size: var(--text-2xl);
    color: var(--white);
    margin-bottom: var(--space-3);
}

.submit-event-cta p {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-6);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 959px) {
    .featured-event {
        grid-template-columns: 1fr;
    }
    
    .featured-event__image {
        min-height: 200px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-card__date {
        flex-direction: row;
        gap: var(--space-3);
        min-width: unset;
        padding: var(--space-4);
    }
    
    .event-card__day {
        font-size: var(--text-2xl);
    }
    
    .event-card__thumb-wrap {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--light-gray);
        max-height: 200px;
        padding: var(--space-3) var(--space-4);
    }
    
    .event-card__thumb {
        max-height: 200px;
        max-width: 220px;
        width: auto;
        object-fit: contain;
        aspect-ratio: auto;
    }
    
    .event-card__actions {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid var(--light-gray);
    }
    
    .calendar-day {
        min-height: 80px;
    }
    
    .calendar-event {
        font-size: 10px;
        padding: var(--space-1);
    }
}

@media (max-width: 639px) {
    .calendar-container {
        overflow-x: auto;
    }
    
    .calendar-grid {
        min-width: 600px;
    }
    
    .calendar-day-header {
        font-size: var(--text-xs);
    }
    
    .featured-event__content {
        padding: var(--space-6);
    }
    
    .featured-event__title {
        font-size: var(--text-2xl);
    }
    
    .featured-event__meta {
        flex-direction: column;
        gap: var(--space-3);
    }
}

/* ==========================================
   ADD-TO-CALENDAR POPOVER
   --------------------------------------------
   Shown on Windows / Linux desktop only — iOS/macOS gets an instant .ics
   download, Android opens Google Calendar directly. Built as a centered
   modal so it works the same regardless of where in the page the user
   clicked the "Add to Calendar" button.
   ========================================== */
.atc-popover {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-modal-backdrop, 1000) + 10);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base, 180ms ease),
                visibility var(--transition-base, 180ms ease);
}

.atc-popover--open {
    opacity: 1;
    visibility: visible;
}

.atc-popover__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.atc-popover__menu {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: var(--white, #fff);
    border-radius: var(--radius-xl, 16px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: var(--space-3, 12px);
    transform: scale(0.96) translateY(8px);
    transition: transform var(--transition-base, 180ms ease);
}

.atc-popover--open .atc-popover__menu {
    transform: scale(1) translateY(0);
}

.atc-popover__header {
    padding: var(--space-3, 12px) var(--space-4, 16px) var(--space-2, 8px);
    text-align: center;
    border-bottom: 1px solid var(--light-gray, #e5e5e5);
    margin-bottom: var(--space-2, 8px);
}

.atc-popover__title {
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-semibold, 600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--medium-gray, #6b7280);
}

.atc-popover__subtitle {
    font-size: var(--text-base, 16px);
    font-weight: var(--font-semibold, 600);
    color: var(--dark-gray, #1f2937);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atc-popover__option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md, 10px);
    cursor: pointer;
    font-size: var(--text-base, 15px);
    font-weight: var(--font-medium, 500);
    color: var(--dark-gray, #1f2937);
    text-align: left;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.atc-popover__option:hover,
.atc-popover__option:focus-visible {
    background: var(--off-white, #f7f5f1);
    border-color: var(--light-gray, #e5e5e5);
    outline: none;
}

.atc-popover__option:active {
    transform: scale(0.985);
}

.atc-popover__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
}

.atc-popover__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.atc-popover__label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
}

.atc-popover__badge {
    font-size: 10px;
    font-weight: var(--font-semibold, 600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--medium-gray, #6b7280);
    background: var(--off-white, #f1f1f1);
    border: 1px solid var(--light-gray, #e5e5e5);
    border-radius: var(--radius-full, 999px);
    padding: 1px 6px;
}

.atc-popover__cancel {
    width: 100%;
    margin-top: var(--space-2, 8px);
    padding: var(--space-3, 12px);
    background: transparent;
    border: 1px solid var(--light-gray, #e5e5e5);
    border-radius: var(--radius-md, 10px);
    cursor: pointer;
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-medium, 500);
    color: var(--medium-gray, #6b7280);
    transition: background-color 120ms ease, color 120ms ease;
}

.atc-popover__cancel:hover,
.atc-popover__cancel:focus-visible {
    background: var(--off-white, #f7f5f1);
    color: var(--dark-gray, #1f2937);
    outline: none;
}

@media (max-width: 480px) {
    .atc-popover {
        align-items: flex-end;
        padding: 0;
    }
    .atc-popover__menu {
        max-width: 100%;
        border-radius: var(--radius-xl, 16px) var(--radius-xl, 16px) 0 0;
        padding: var(--space-3, 12px) var(--space-3, 12px) calc(env(safe-area-inset-bottom, 0) + var(--space-4, 16px));
        transform: translateY(100%);
    }
    .atc-popover--open .atc-popover__menu {
        transform: translateY(0);
    }
}
