/* Tulip Tower v49.53 — separate Notice/Event tabs + fresh-first mode + activity popup media cover */

/* Tabs are a standalone row ABOVE all information cards. */
body.tt-v24.tt-home .notice-v988-tabs-row{
    grid-column:1 / -1!important;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    min-width:0;
    margin:0 0 2px;
}
body.tt-v24.tt-home .notice-v988-tabs{
    position:relative;
    z-index:30;
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:5px;
    border:1px solid rgba(16,58,79,.10);
    border-radius:999px;
    background:rgba(255,255,255,.88);
    box-shadow:0 12px 34px rgba(14,42,57,.08);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}
body.tt-v24.tt-home .notice-v988-tab{
    min-height:36px;
    padding:0 15px;
    border:0;
    border-radius:999px;
    background:transparent;
    color:#5e7380;
    font:800 11px/1 'Encode Sans',Arial,sans-serif;
    letter-spacing:.025em;
    white-space:nowrap;
    cursor:pointer;
    transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
body.tt-v24.tt-home .notice-v988-tab:hover{
    color:#0a3046;
    background:#f2f5f5;
}
body.tt-v24.tt-home .notice-v988-tab.is-active{
    color:#fff;
    background:#0a3046;
    box-shadow:0 7px 18px rgba(7,45,65,.18);
}
body.tt-v24.tt-home .notice-v988-tab-count{
    display:inline-grid;
    place-items:center;
    min-width:18px;
    height:18px;
    margin-left:5px;
    padding:0 5px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    color:inherit;
    font-size:9px;
}
body.tt-v24.tt-home .notice-v988-tab:not(.is-active) .notice-v988-tab-count{
    background:#e4edf0;
    color:#0a506f;
}

/* Event panel occupies exactly the same visual frame as the existing notice slider. */
body.tt-v24.tt-home .notice-v988-events{
    position:absolute;
    z-index:8;
    inset:0;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    overflow:hidden;
    background:linear-gradient(135deg,#04233a 0%,#07334c 56%,#0a3b50 100%);
    transition:opacity .18s ease,visibility .18s ease;
}
body.tt-v24.tt-home #noticeSliderV48.is-events .notice-v988-events{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
}
body.tt-v24.tt-home #noticeSliderV48.is-events > #noticeTrackV48,
body.tt-v24.tt-home #noticeSliderV48.is-events > .notice-v984-footer{
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
}
body.tt-v24.tt-home .notice-v988-events .notice-slider-v48__track{height:100%}
body.tt-v24.tt-home .notice-v988-events .notice-v984-footer{z-index:14!important}
body.tt-v24.tt-home .notice-v988-event-status{display:inline-flex;align-items:center;gap:7px}
body.tt-v24.tt-home .notice-v988-event-status i{
    width:7px;height:7px;border-radius:50%;background:#f1c96f;box-shadow:0 0 0 5px rgba(241,201,111,.12)
}
body.tt-v24.tt-home .notice-v988-event-status.is-live i{
    background:#71dfad;box-shadow:0 0 0 5px rgba(113,223,173,.13)
}
body.tt-v24.tt-home .notice-v988-location{
    margin-top:2px;color:rgba(255,255,255,.68);font-size:11px;font-weight:650;line-height:1.45
}
body.tt-v24.tt-home .notice-v988-location:empty{display:none}

/* Representative activity image: always fill the popup's whole media column. */
body.tt-home .home-activity-popup-v4950__card{align-items:stretch!important}
body.tt-home .home-activity-popup-v4950__media{
    position:relative!important;min-height:100%!important;height:100%!important;background:#dce5e8!important
}
body.tt-home .home-activity-popup-v4950__media>img{
    position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;
    min-height:100%!important;object-fit:cover!important;object-position:center center!important
}

@media(max-width:1050px){
    body.tt-v24.tt-home .notice-v988-tabs-row{margin-bottom:0}
}
@media(max-width:720px){
    body.tt-v24.tt-home .notice-v988-tabs-row{width:100%;margin-bottom:0}
    body.tt-v24.tt-home .notice-v988-tabs{width:100%;padding:4px;gap:4px}
    body.tt-v24.tt-home .notice-v988-tab{flex:1 1 0;min-width:0;min-height:34px;padding:0 10px;font-size:10px;text-align:center}
    body.tt-home .home-activity-popup-v4950__media{height:auto!important;min-height:0!important;aspect-ratio:16/10!important}
    body.tt-home .home-activity-popup-v4950__media>img{position:absolute!important;min-height:0!important}
}
@media(max-width:390px){
    body.tt-v24.tt-home .notice-v988-tab{padding:0 8px;font-size:9.5px}
}
@media(prefers-reduced-motion:reduce){
    body.tt-v24.tt-home .notice-v988-events,
    body.tt-v24.tt-home .notice-v988-tab{transition:none!important}
}
