/**
 * GuardHub Layout stylesheet.
 * Scoped under .gh-layout and body replacement classes.
 */

/* 1. Theme Header & Footer Suppression */
body.gh-layout-header-on #masthead,
body.gh-layout-header-on .site-header,
body.gh-layout-header-on #ast-desktop-header,
body.gh-layout-header-on #ast-mobile-header,
body.gh-layout-header-on .ast-mobile-popup-drawer {
    display: none !important;
}

body.gh-layout-footer-on #colophon,
body.gh-layout-footer-on .site-footer {
    display: none !important;
}

/* 2. Base Container & Reset */
.gh-layout button,
.gh-layout input {
    font-family: inherit !important;
}

.gh-layout {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

.gh-layout *,
.gh-layout *::before,
.gh-layout *::after {
    box-sizing: border-box !important;
}

.gh-layout .gh-layout-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* 3. Header Bar */
.gh-layout-header {
    background-color: var(--gh-layout-primary, #0F2A43) !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
    position: relative !important;
    z-index: 1000 !important;
    border-bottom: 1px solid #1E3A5F !important;
}

.gh-layout-header.gh-layout-sticky {
    position: sticky !important;
    top: 0 !important;
}

.admin-bar .gh-layout-header.gh-layout-sticky {
    top: 32px !important;
}

@media (max-width: 782px) {
    .admin-bar .gh-layout-header.gh-layout-sticky {
        top: 46px !important;
    }
}

.gh-layout .gh-layout-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 64px !important;
    gap: 16px !important;
}

/* 4. Branding & Logo */
.gh-layout .gh-layout-branding {
    display: flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
}

.gh-layout .gh-layout-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.gh-layout .gh-layout-logo-img {
    max-height: 44px !important;
    max-width: 100% !important;
    width: auto !important;
    display: block !important;
}

.gh-layout .gh-layout-logo-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    min-width: 0 !important;
}

/* 5. Desktop Navigation */
.gh-layout .gh-layout-desktop-nav {
    display: flex !important;
    align-items: center !important;
    flex-grow: 1 !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
}

.gh-layout .gh-layout-menu {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
}

.gh-layout .gh-layout-menu-item {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.gh-layout .gh-layout-menu-link,
.gh-layout .gh-layout-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    gap: 6px !important;
}

.gh-layout .gh-layout-menu-link:hover,
.gh-layout .gh-layout-menu-btn:hover {
    background-color: rgba(128, 128, 128, 0.28) !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
}

.gh-layout .gh-layout-menu-item.gh-layout-item-active > .gh-layout-menu-link,
.gh-layout .gh-layout-menu-item.gh-layout-item-active > .gh-layout-menu-btn {
    background-color: var(--gh-layout-accent, #F2A900) !important;
    color: var(--gh-layout-on-accent, #0F2A43) !important;
    font-weight: 600 !important;
}

/* 6. Dropdown Menus */
.gh-layout .gh-layout-dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    right: 0 !important;
    min-width: 200px !important;
    background-color: #0F2A43 !important;
    border: 1px solid #2A4D73 !important;
    border-radius: 8px !important;
    padding: 6px !important;
    margin: 0 !important;
    list-style: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3) !important;
    z-index: 1050 !important;
}

.gh-layout .gh-layout-dropdown-menu.is-open {
    display: block !important;
}

.gh-layout .gh-layout-dropdown-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.gh-layout .gh-layout-dropdown-link {
    display: block !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: background-color 0.15s ease !important;
}

.gh-layout .gh-layout-dropdown-link:hover,
.gh-layout .gh-layout-dropdown-link:focus {
    background-color: #1E466F !important;
    color: #ffffff !important;
}

.gh-layout .gh-layout-dropdown-item.gh-layout-item-active .gh-layout-dropdown-link {
    background-color: var(--gh-layout-accent, #F2A900) !important;
    color: #0F2A43 !important;
    font-weight: 600 !important;
}

/* 7. Actions Bar (Bell, Account, Hamburger) */
.gh-layout .gh-layout-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.gh-layout .gh-layout-bell-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 38px !important;
    height: 38px !important;
    background: transparent !important;
    border: 1px solid rgba(128, 128, 128, 0.45) !important;
    border-radius: 6px !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.gh-layout .gh-layout-bell-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background-color: var(--gh-layout-accent, #F2A900) !important;
    color: var(--gh-layout-on-accent, #0F2A43) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    padding: 0 4px !important;
    border-radius: 9px !important;
    text-align: center !important;
    box-shadow: 0 0 0 2px var(--gh-layout-primary, #0F2A43) !important;
}

.gh-layout .gh-layout-account {
    position: relative !important;
}

.gh-layout .gh-layout-account-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 38px !important;
    padding: 0 12px !important;
    background: #193B5C !important;
    border: 1px solid #2A4D73 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    max-width: 170px !important;
    line-height: 1.4 !important;
}

.gh-layout .gh-layout-user-name {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
    line-height: 1.6 !important;
    padding: 1px 0 !important;
}

.gh-layout .gh-layout-account-menu {
    right: 0 !important;
}

.gh-layout .gh-layout-hamburger-btn {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: transparent !important;
    border: 1px solid rgba(128, 128, 128, 0.45) !important;
    border-radius: 6px !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
    cursor: pointer !important;
}

/* 8. Mobile Drawer & Backdrop */
.gh-layout-backdrop {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(10, 16, 26, 0.7) !important;
    z-index: 100000 !important;
    backdrop-filter: blur(2px) !important;
}

.gh-layout-backdrop.is-open {
    display: block !important;
}

.gh-layout-drawer {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: -360px !important;
    width: 320px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background-color: #0B1E30 !important;
    border-left: 1px solid #1E3A5F !important;
    z-index: 100001 !important;
    overflow-y: auto !important;
    visibility: hidden !important;
    transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.25s !important;
    padding: 16px !important;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.5) !important;
}

.gh-layout-drawer.is-open {
    right: 0 !important;
    visibility: visible !important;
    transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s !important;
}

@supports (height: 100dvh) {
    .gh-layout-backdrop,
    .gh-layout-drawer {
        height: 100dvh !important;
    }
}

.gh-layout .gh-layout-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #1E3A5F !important;
    margin-bottom: 16px !important;
}

.gh-layout .gh-layout-drawer-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.gh-layout .gh-layout-close-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    border: 1px solid #1E3A5F !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

.gh-layout .gh-layout-drawer-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gh-layout .gh-layout-drawer-item {
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.gh-layout .gh-layout-drawer-link,
.gh-layout .gh-layout-accordion-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    background: #11283F !important;
    border: 1px solid #1E3A5F !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

.gh-layout .gh-layout-drawer-item.gh-layout-item-active > .gh-layout-drawer-link,
.gh-layout .gh-layout-drawer-item.gh-layout-item-active > .gh-layout-accordion-btn {
    background-color: var(--gh-layout-accent, #F2A900) !important;
    color: #0F2A43 !important;
    font-weight: 600 !important;
}

.gh-layout .gh-layout-accordion-content {
    list-style: none !important;
    margin: 4px 0 0 12px !important;
    padding: 4px 0 4px 10px !important;
    border-left: 2px solid #2A4D73 !important;
}

.gh-layout .gh-layout-accordion-item {
    margin: 4px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.gh-layout .gh-layout-accordion-link {
    display: block !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #CBD5E1 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
}

.gh-layout .gh-layout-accordion-link:hover,
.gh-layout .gh-layout-accordion-link:focus {
    background-color: #1E3A5F !important;
    color: #ffffff !important;
}

.gh-layout .gh-layout-accordion-item.gh-layout-item-active .gh-layout-accordion-link {
    background-color: var(--gh-layout-accent, #F2A900) !important;
    color: #0F2A43 !important;
    font-weight: 600 !important;
}

/* 9. Responsive Breakpoints */
@media (max-width: 991px) {
    .gh-layout .gh-layout-desktop-nav {
        display: none !important;
    }

    .gh-layout .gh-layout-hamburger-btn {
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    .gh-layout .gh-layout-logo-text {
        font-size: 17px !important;
    }

    .gh-layout .gh-layout-account-btn {
        max-width: 120px !important;
        padding: 0 8px !important;
    }
}

/* 10. Footer Section */
.gh-layout-footer {
    background-color: var(--gh-layout-primary, #0F2A43) !important;
    color: var(--gh-layout-on-primary, #E2E8F0) !important;
    border-top: 1px solid rgba(128, 128, 128, 0.35) !important;
    padding-top: 48px !important;
    padding-bottom: 24px !important;
}

.gh-layout .gh-layout-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 32px !important;
    margin-bottom: 36px !important;
}

@media (max-width: 768px) {
    .gh-layout .gh-layout-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

.gh-layout .gh-layout-footer-col {
    min-width: 0 !important;
}

.gh-layout .gh-layout-footer-logo-wrap {
    margin-bottom: 12px !important;
}

.gh-layout .gh-layout-footer-logo-img {
    max-height: 44px !important;
    width: auto !important;
    display: block !important;
}

.gh-layout .gh-layout-footer-logo-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
}

.gh-layout .gh-layout-footer-tagline {
    font-size: 14px !important;
    color: var(--gh-layout-on-primary, #94A3B8) !important;
    opacity: 0.8 !important;
    margin: 8px 0 0 0 !important;
    line-height: 1.5 !important;
}

.gh-layout .gh-layout-footer-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
    margin: 0 0 16px 0 !important;
}

.gh-layout .gh-layout-contact-list,
.gh-layout .gh-layout-links-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gh-layout .gh-layout-contact-item,
.gh-layout .gh-layout-links-item {
    margin-bottom: 10px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    list-style: none !important;
}

.gh-layout .gh-layout-contact-link,
.gh-layout .gh-layout-links-link {
    color: var(--gh-layout-on-primary, #CBD5E1) !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.gh-layout .gh-layout-contact-link:hover,
.gh-layout .gh-layout-links-link:hover {
    color: var(--gh-layout-accent, #F2A900) !important;
}

.gh-layout .gh-layout-contact-address {
    color: var(--gh-layout-on-primary, #94A3B8) !important;
    opacity: 0.85 !important;
}

.gh-layout .gh-layout-footer-bottom {
    padding-top: 24px !important;
    border-top: 1px solid rgba(128, 128, 128, 0.35) !important;
    text-align: center !important;
}

.gh-layout .gh-layout-copyright {
    font-size: 13px !important;
    color: var(--gh-layout-on-primary, #94A3B8) !important;
    opacity: 0.8 !important;
    margin: 0 !important;
}

/* 11. Explicit SVG Dimensions */
.gh-layout .gh-layout-icon-chevron {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
}

.gh-layout .gh-layout-icon-bell {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

.gh-layout .gh-layout-icon-hamburger,
.gh-layout .gh-layout-icon-close {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
}

/* 12. Accessible Keyboard Focus */
.gh-layout a:focus-visible,
.gh-layout button:focus-visible {
    outline: 2px solid var(--gh-layout-accent, #F2A900) !important;
    outline-offset: 2px !important;
}

.gh-layout a:focus:not(:focus-visible),
.gh-layout button:focus:not(:focus-visible) {
    outline: none !important;
}

/* 13. Astra Theme Guard Block */
/* Prevents Astra blue background and white text styles on buttons */
.gh-layout .gh-layout-menu-btn:hover,
.gh-layout .gh-layout-menu-btn:focus,
.gh-layout .gh-layout-menu-btn:active {
    background: rgba(128, 128, 128, 0.28) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
}

.gh-layout .gh-layout-hamburger-btn:hover,
.gh-layout .gh-layout-hamburger-btn:focus,
.gh-layout .gh-layout-hamburger-btn:active {
    background: rgba(128, 128, 128, 0.28) !important;
    border-color: rgba(128, 128, 128, 0.45) !important;
    box-shadow: none !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
}

.gh-layout .gh-layout-close-btn:hover,
.gh-layout .gh-layout-close-btn:focus,
.gh-layout .gh-layout-close-btn:active {
    background: #193B5C !important;
    border-color: #1E3A5F !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.gh-layout .gh-layout-bell-btn:hover,
.gh-layout .gh-layout-bell-btn:focus,
.gh-layout .gh-layout-bell-btn:active {
    background: rgba(128, 128, 128, 0.28) !important;
    border-color: rgba(128, 128, 128, 0.45) !important;
    box-shadow: none !important;
    color: var(--gh-layout-on-primary, #ffffff) !important;
}

.gh-layout .gh-layout-account-btn:hover,
.gh-layout .gh-layout-account-btn:focus,
.gh-layout .gh-layout-account-btn:active {
    background: #193B5C !important;
    border-color: #2A4D73 !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.gh-layout .gh-layout-accordion-btn:hover,
.gh-layout .gh-layout-accordion-btn:focus,
.gh-layout .gh-layout-accordion-btn:active {
    background: #193B5C !important;
    border-color: #1E3A5F !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

/* 9. Notification panel (bell dropdown) */
.gh-layout .gh-layout-notif {
    position: relative !important;
    display: inline-flex !important;
}

.gh-layout .gh-layout-bell-btn[aria-expanded="true"] {
    background: rgba(128, 128, 128, 0.28) !important;
}

.gh-layout .gh-layout-notif-panel {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: calc(100% + var(--gh-notif-gap, 8px)) !important;
    right: 0 !important;
    width: 380px !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 140px) !important;
    background: #ffffff !important;
    color: #1A2433 !important;
    border: 1px solid #D5DCE6 !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 32px -6px rgba(15, 42, 67, 0.35), 0 4px 10px -4px rgba(15, 42, 67, 0.25) !important;
    overflow: hidden !important;
    text-align: left !important;
    outline: none !important;
    z-index: 1060 !important;
}

.gh-layout .gh-layout-notif-panel[hidden] {
    display: none !important;
}

.gh-layout .gh-layout-notif-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex: 0 0 auto !important;
    padding: 10px 12px 10px 16px !important;
    border-bottom: 1px solid #E3E8EF !important;
}

.gh-layout .gh-layout-notif-title {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1A2433 !important;
}

.gh-layout .gh-layout-notif-markall,
.gh-layout .gh-layout-notif-retry {
    display: inline-block !important;
    min-height: 32px !important;
    padding: 4px 10px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    color: #1D4F91 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.gh-layout .gh-layout-notif-markall[hidden] {
    display: none !important;
}

.gh-layout .gh-layout-notif-markall:disabled {
    opacity: 0.55 !important;
    cursor: default !important;
}

.gh-layout .gh-layout-notif-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

.gh-layout .gh-layout-notif-list,
.gh-layout .gh-layout-notif-li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.gh-layout .gh-layout-notif-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid #EEF1F5 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #1A2433 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.gh-layout .gh-layout-notif-item.is-unread {
    background: #F3F8FF !important;
}

.gh-layout .gh-layout-notif-dot {
    flex: 0 0 8px !important;
    width: 8px !important;
    height: 8px !important;
    margin-top: 6px !important;
    border-radius: 50% !important;
    background: transparent !important;
}

.gh-layout .gh-layout-notif-item.is-unread .gh-layout-notif-dot {
    background: #1D6FD8 !important;
}

.gh-layout .gh-layout-notif-text {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.gh-layout .gh-layout-notif-item-title {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1A2433 !important;
    overflow-wrap: anywhere !important;
}

.gh-layout .gh-layout-notif-item.is-unread .gh-layout-notif-item-title {
    font-weight: 700 !important;
}

.gh-layout .gh-layout-notif-msg {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-top: 2px !important;
    font-size: 13px !important;
    color: #4A5568 !important;
    overflow-wrap: anywhere !important;
}

.gh-layout .gh-layout-notif-time {
    display: block !important;
    margin-top: 4px !important;
    font-size: 12px !important;
    color: #5B6676 !important;
}

.gh-layout .gh-layout-notif-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.gh-layout .gh-layout-notif-status {
    margin: 0 !important;
    padding: 28px 16px 12px !important;
    text-align: center !important;
    font-size: 14px !important;
    color: #4A5568 !important;
}

.gh-layout .gh-layout-notif-retry {
    display: block !important;
    margin: 0 auto 20px !important;
    border: 1px solid #C5D0E0 !important;
}

.gh-layout .gh-layout-notif-foot {
    flex: 0 0 auto !important;
    border-top: 1px solid #E3E8EF !important;
}

.gh-layout .gh-layout-notif-all {
    display: block !important;
    padding: 12px 16px !important;
    background: #ffffff !important;
    color: #1D4F91 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
}

/* Theme guard: Astra paints buttons and links blue on hover, focus and active. */
.gh-layout .gh-layout-notif-markall:hover,
.gh-layout .gh-layout-notif-markall:focus,
.gh-layout .gh-layout-notif-markall:active,
.gh-layout .gh-layout-notif-retry:hover,
.gh-layout .gh-layout-notif-retry:focus,
.gh-layout .gh-layout-notif-retry:active,
.gh-layout .gh-layout-notif-all:hover,
.gh-layout .gh-layout-notif-all:focus,
.gh-layout .gh-layout-notif-all:active {
    background: #EEF3FA !important;
    color: #123A6E !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.gh-layout .gh-layout-notif-item:hover,
.gh-layout .gh-layout-notif-item:focus,
.gh-layout .gh-layout-notif-item:active,
.gh-layout .gh-layout-notif-item.is-unread:hover,
.gh-layout .gh-layout-notif-item.is-unread:focus,
.gh-layout .gh-layout-notif-item.is-unread:active {
    background: #E8F0FB !important;
    color: #1A2433 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.gh-layout .gh-layout-notif-item:focus-visible,
.gh-layout .gh-layout-notif-markall:focus-visible,
.gh-layout .gh-layout-notif-retry:focus-visible,
.gh-layout .gh-layout-notif-all:focus-visible {
    outline: 2px solid #1D4F91 !important;
    outline-offset: -2px !important;
}

/* Phones: the panel becomes a card under the header, because the bell is not at the screen edge.
   Side gaps of 16px, never wider than 400px (centred on larger phones), and slightly tighter spacing. */
@media (max-width: 600px) {
    .gh-layout .gh-layout-notif-panel {
        position: fixed !important;
        top: var(--gh-notif-top, 64px) !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        max-width: 400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-height: calc(100vh - var(--gh-notif-top, 64px) - 16px) !important;
        max-height: calc(100dvh - var(--gh-notif-top, 64px) - 16px) !important;
    }

    .gh-layout .gh-layout-notif-head {
        padding: 6px 6px 6px 14px !important;
    }

    .gh-layout .gh-layout-notif-title {
        font-size: 14px !important;
    }

    .gh-layout .gh-layout-notif-item {
        padding: 10px 14px !important;
    }

    .gh-layout .gh-layout-notif-all {
        padding: 11px 14px !important;
    }
}
