/* ============================================================
   Aurora University Status Page - Custom Styles
   ============================================================ */

/* ---------- Logo ---------- */
.logo-container {
    max-width: 30% !important;
}

@media (min-width: 768px) {
    .logo-container {
        max-width: 22% !important;
    }
    .logo-container img,
    .masthead .logo img {
        max-height: 75px !important;
        width: auto !important;
    }
}

/* ---------- Typography ---------- */
.layout-content.status.status-index .components-section
    .component-container .component-status {
    font-weight: 500;
}

.font-large {
    letter-spacing: 0.5px;
}

/* ---------- Subscribe Button (base, no hover here) ---------- */
.show-updates-dropdown,
.show-updates-dropdown:visited,
.show-updates-dropdown:focus,
.show-updates-dropdown:active {
    background-color: #00467F !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 4px 4px 0px 0px #EBEBEB;
    color: white !important;
    padding: 1rem 1.5rem;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .0163rem;
    text-decoration: none;
    cursor: pointer;
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    position: relative;
    z-index: 10;
    transition: background 300ms ease;
}

/* Desktop-only hover - two conditions must BOTH be true:
   1. Device supports real hover (not touch)
   2. Viewport is desktop-sized */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
    .show-updates-dropdown:hover {
        background-color: #455560 !important;
    }
}

/* ---------- Kill ALL rounded corners on status bar + masthead ---------- */
.masthead,
.masthead *,
.page-status,
.page-status *,
.unresolved-incidents,
.unresolved-incidents *,
.incident-container,
.incident-container *,
[class*="page-status"],
[class*="page-status"] *,
[class*="status-banner"],
[class*="status-banner"] *,
[class*="overall-status"],
[class*="overall-status"] * {
    border-radius: 0 !important;
}

.masthead *::before,
.masthead *::after,
.page-status *::before,
.page-status *::after,
[class*="page-status"]::before,
[class*="page-status"]::after {
    border-radius: 0 !important;
}

/* ============================================================
   Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
    /* Make the masthead container the positioning context */
    .layout-content > .container,
    .layout-content .container {
        position: relative;
    }

    /* Move subscribe button next to the logo - lowered to align */
    .show-updates-dropdown,
    .show-updates-dropdown:hover,
    .show-updates-dropdown:focus,
    .show-updates-dropdown:active {
        background-color: #00467F !important;
        position: absolute !important;
        top: 60px !important;
        right: 15px !important;
        margin: 0 !important;
        padding: 0.6rem 1.1rem !important;
        font-size: 12px !important;
        box-shadow: 3px 3px 0px 0px #EBEBEB !important;
        z-index: 100;
    }

    /* Give the logo a bit more room on small screens */
    .logo-container {
        max-width: 50% !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Close the gap between masthead and status banner */
    .masthead {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .page-status {
        margin-top: 10px !important;
    }
}