/* ========================================================= */
/* --- GLOBAL FONT OVERRIDE (REMOVING PROXIMA NOVA) --- */
/* ========================================================= */

/* Forces system fonts on all platform elements */
body, 
html,
.layout-content.status, 
.component-container, 
.component-inner-container, 
.name, 
.incidents-list, 
.masthead .text-container,
.footer,
#tooltip,
.fc { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* ========================================================= */
/* --- Atlassian Status Page Elements (Modified) --- */
/* ========================================================= */

.layout-content.status.status-index .scheduled-maintenances-container {
    margin-top: 0;
}

.layout-content.status .incidents-list {
    margin-top: 0;
}

.incidents-list .no-incidents {
    display: none;
}

.updates-dropdown-container {
    float: right;
    margin-top: 0px;
}

.updates-dropdown-container .show-updates-dropdown,
.layout-content.status-full-history .show-filter.open {
    background-color: #0BA4E8;
    box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.15) inset;
    border-radius: 4px;
    font-size: 12px;
    font-size: 0.75rem;
    line-height: 1.1625rem;
    font-weight: 600; /* Increased weight for better visibility on system fonts */
    border: none;
    display: inline-block;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px; /* Reduced from 2px for better system font readability */
    padding: 10px 15px 9px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.layout-content.status .masthead-container.premium .masthead .text-container {
    background-color: rgba(0, 0, 0, 0);
}

.layout-content.status .masthead-container.premium .masthead .text-container .page-name {
    display: none;
}

.shared-partial.uptime-90-days-wrapper {
    display: none;
}

.components-uptime-link.history-footer-link {
    display: none;
}

/* ========================================================= */
/* --- Full Calendar Customizations --- */
/* ========================================================= */

.fc-daygrid-event {
    white-space: normal !important;
    line-height: 1.2;
    font-size: var(--fc-small-font-size, 0.75em) !important;
    font-family: inherit !important;
}

.fc-daygrid-dot-event:hover {
    background: default;
    color: inherit;
}

.fc-toolbar-title {
    font-size: 1.3em !important;
    font-family: inherit !important;
}

.fc-event {
    cursor: pointer;
    --text-color: #000;
    color: var(--text-color);
}

.pa-category--innovation-upgrade { --fc-event-border-color: cyan; }
.pa-category--innovation-upgrade-window { --fc-event-border-color: #46bdc6; }
.pa-category--infra-upgrade { --fc-event-border-color: #4284f4; }
.pa-category--insights-upgrade { --fc-event-border-color: #34a853; }
.pa-category--adem-upgrade { --fc-event-border-color: #46bdc6; }

/* ========================================================= */
/* --- Tooltip Component --- */
/* ========================================================= */

#tooltip {
    z-index: 9;
    display: none;
    background: #555;
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#tooltip.tooltip-visible {
    display: inline-block;
}

#arrow, #arrow::before {
    position: absolute;
    width: 8px;
    height: 8px;
    background: inherit;
}

#arrow { visibility: hidden; }
#arrow::before {
    visibility: visible;
    content: '';
    transform: rotate(45deg);
}

#tooltip[data-popper-placement^='top']>#arrow { bottom: -4px; }
#tooltip[data-popper-placement^='bottom']>#arrow { top: -4px; }
#tooltip[data-popper-placement^='left']>#arrow { right: -4px; }
#tooltip[data-popper-placement^='right']>#arrow { left: -4px; }

/* ========================================================= */
/* --- ALIGNMENT AND VISIBILITY FIXES --- */
/* ========================================================= */

.layout-content.status .masthead {
    display: flex !important;
    flex-wrap: wrap; 
    justify-content: space-between !important; 
    align-items: center !important; 
    position: relative;
    padding-top: 20px;
    padding-bottom: 10px;
}

.custom-announcement-banner-wrapper {
    order: 1; 
    width: 100%; 
    margin-bottom: 0 !important; 
}

.header-logo-container {
    order: 2;
    max-width: 40%;
    margin-top: 15px !important; 
    position: absolute;
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 10;
}

.updates-dropdown-container {
    order: 3;
    flex-shrink: 0; 
    margin-top: 15px !important; 
    margin-right: 0 !important;
    margin-left: auto !important; 
    display: flex !important; 
    justify-content: flex-end !important; 
    align-items: center;
    visibility: visible !important;
    float: none !important; 
}

.header-logo-container, .updates-dropdown-container {
    padding-bottom: 50px;
}

.layout-content.status .masthead-container,
.logo-image,
img.logo,
.logo-image-container,
.logo-image-container img {
    visibility: visible !important;
    display: inline-block !important; 
    max-width: 100% !important; 
    height: auto !important;
}