/* Event Fill — shared admin contrast, responsive CTA and flash-message polish.
   Loaded after the existing component sheets so this stays a safe, presentation-only
   override. No event, account or dashboard data is changed here. */

/* Keep controls legible when they sit on the dark/purple admin hero surfaces. */
body.workspace-role-super_admin .admin-hero a.button:not(.button-light),
body.workspace-role-super_admin .admin-hero button.button:not(.button-light),
body.workspace-role_super_admin .admin-hero a.button:not(.button-light),
body.workspace-role_super_admin .admin-hero button.button:not(.button-light),
body.workspace-role-super_admin [class*="admin-hero"] a.button:not(.button-light),
body.workspace-role-super_admin [class*="admin-hero"] button.button:not(.button-light),
body.workspace-role_super_admin [class*="admin-hero"] a.button:not(.button-light),
body.workspace-role_super_admin [class*="admin-hero"] button.button:not(.button-light),
body.workspace-role-super_admin [class*="operations-hero"] a.button:not(.button-light),
body.workspace-role-super_admin [class*="operations-hero"] button.button:not(.button-light),
body.workspace-role_super_admin [class*="operations-hero"] a.button:not(.button-light),
body.workspace-role_super_admin [class*="operations-hero"] button.button:not(.button-light),
body.workspace-role-super_admin [class*="spotlight"] a.button:not(.button-light),
body.workspace-role-super_admin [class*="spotlight"] button.button:not(.button-light),
body.workspace-role_super_admin [class*="spotlight"] a.button:not(.button-light),
body.workspace-role_super_admin [class*="spotlight"] button.button:not(.button-light),
body.admin-page [class*="hero"] a.button:not(.button-light),
body.admin-page [class*="hero"] button.button:not(.button-light),
body.admin-page [class*="spotlight"] a.button:not(.button-light),
body.admin-page [class*="spotlight"] button.button:not(.button-light),
body.workspace-role-super_admin [class*="hero"] a:not(.button-light),
body.workspace-role-super_admin [class*="hero"] button:not(.button-light),
body.workspace-role_super_admin [class*="hero"] a:not(.button-light),
body.workspace-role_super_admin [class*="hero"] button:not(.button-light),
body.admin-page [class*="hero"] a:not(.button-light),
body.admin-page [class*="hero"] button:not(.button-light),
body.admin-page [class*="spotlight"] a:not(.button-light),
body.admin-page [class*="spotlight"] button:not(.button-light) {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 1px 1px rgba(18, 14, 54, .18);
}

body.workspace-role-super_admin [class*="hero"] a.button.button-outline,
body.workspace-role-super_admin [class*="hero"] button.button.button-outline,
body.workspace-role-super_admin [class*="hero"] a.button.button-secondary,
body.workspace-role-super_admin [class*="hero"] button.button.button-secondary,
body.workspace-role_super_admin [class*="hero"] a.button.button-outline,
body.workspace-role_super_admin [class*="hero"] button.button.button-outline,
body.workspace-role_super_admin [class*="hero"] a.button.button-secondary,
body.workspace-role_super_admin [class*="hero"] button.button.button-secondary,
body.admin-page [class*="hero"] a.button.button-outline,
body.admin-page [class*="hero"] button.button.button-outline,
body.admin-page [class*="hero"] a.button.button-secondary,
body.admin-page [class*="hero"] button.button.button-secondary {
    background: rgba(255, 255, 255, .1) !important;
    border-color: rgba(255, 255, 255, .34) !important;
}

/* The public hero CTA is allowed to stay inline on larger screens, but becomes a
   real full-width control on phones so its label can never hang outside the pill. */
.home-search button,
.home-search .button,
.home-search-form button,
.home-search-form .button,
.hero-search button,
.hero-search .button,
.homepage-search button,
.homepage-search .button,
.home-hero-search button,
.home-hero-search .button {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The current premium homepage uses its own search form class. Keep its CTA
   in the form flow so it cannot collapse to an icon-sized control on phones. */
.premium-home-search > button,
.premium-home-search > .button {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 720px) {
    .home-search,
    .home-search-form,
    .hero-search,
    .homepage-search,
    .home-hero-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
    }

    .home-search button,
    .home-search .button,
    .home-search-form button,
    .home-search-form .button,
    .hero-search button,
    .hero-search .button,
    .homepage-search button,
    .homepage-search .button,
    .home-hero-search button,
    .home-hero-search .button {
        width: 100%;
        min-height: 52px;
        padding-inline: 18px;
        justify-content: center;
        text-align: center;
    }

    .premium-home-search > button,
    .premium-home-search > .button {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 100%;
        min-height: 52px;
        padding-inline: 18px;
        justify-content: center;
        text-align: center;
        border-radius: 999px;
    }
}

/* Responsive flash notices: fixed, wrapped cards that stay inside the viewport
   and clear the sticky header on both desktop and mobile. */
.flash {
    position: fixed;
    z-index: 1200;
    top: clamp(76px, 9vh, 112px);
    right: clamp(14px, 3vw, 36px);
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: min(430px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(23, 18, 70, .2);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.flash > span:first-child {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-weight: 800;
    line-height: 1;
}

.flash p {
    min-width: 0;
    margin: 2px 0 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .flash {
        top: calc(66px + env(safe-area-inset-top));
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        padding: 13px 14px;
        border-radius: 14px;
    }
}
