:root {
    /* Vivid professional blue system (navbar / brand) */
    --primary: #1565c0;         /* Vivid professional blue */
    --primary-light: #29a3ff;   /* Bright sky blue */
    --primary-dark: #0b3f8a;    /* Deep blue for gradients / hover */

    /* Timor-Leste inspired accents, saturated */
    --accent: #ffc107;          /* Vivid gold */
    --accent-red: #e63946;      /* Flag red — alerts / emphasis */
    --secondary: #ff5c8a;       /* Vivid coral/pink */
    --teal: #06b6d4;            /* Sky/weather accent */

    --dark: #0f172a;            /* Slate 900 */
    --dark-muted: #1e293b;      /* Slate 800 */
    --dark-muted-light: #334155;/* Slate 700 — hover states */
    --light: #f8fafc;           /* Slate 50 */
    --gray-border: #e2e8f0;     /* Slate 200 */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

.container,
.container-fluid,
.card,
.modal-content {
    min-width: 0;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism Classes */

/* Light glass card — use on light/white backgrounds (dashboard panels, homepage sections) */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
    transition: var(--transition);
    color: var(--dark);
}
.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(15, 23, 42, 0.08);
}

/* Dark glass card — use on dark gradient backgrounds (login, password reset, splash screens) */
.glass-card-dark {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
    color: #f8fafc;
    transition: var(--transition);
}
.glass-card-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.45);
}

/* Navbar — vivid blue, used on homepage/top nav */
.glass-navbar {
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 24px 0 rgba(21, 101, 192, 0.25);
}

.glass-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: var(--transition);
}
.glass-navbar .nav-link:hover,
.glass-navbar .nav-link.active {
    color: #ffffff;
}

/* Public navbar and language controls */
.public-navbar-container {
    gap: 0.5rem;
}

.navbar-brand {
    flex-shrink: 1;
    min-width: 0;
}

.navbar-brand-logo {
    flex: 0 0 auto;
}

.navbar-brand-copy {
    min-width: 0;
}

.public-navbar-mobile-utility {
    flex: 0 0 auto;
}

.public-navbar-desktop-utility {
    min-width: 0;
}

/* Visually hidden until focused, this gives keyboard users a direct route
   past the dense public navigation to the page's single main landmark. */
.skip-link {
    background: #fff;
    border: 2px solid #0d6efd;
    border-radius: 0.35rem;
    color: #062b61;
    font-weight: 800;
    left: 0.75rem;
    padding: 0.55rem 0.8rem;
    position: fixed;
    text-decoration: none;
    top: -5rem;
    transition: top 0.16s ease;
    z-index: 1100;
}

.skip-link:focus-visible {
    outline: 3px solid #f2bf49;
    outline-offset: 2px;
    top: 0.75rem;
}

.portal-current-date {
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex: 0 0 auto;
    gap: 0.35rem;
    margin-right: 0.35rem;
    white-space: nowrap;
}

.portal-current-date__icon {
    color: var(--accent);
    font-size: 0.9rem;
}

.portal-current-date__content {
    display: grid;
    gap: 0.05rem;
    line-height: 1.1;
}

.portal-current-date__label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-current-date__value {
    color: #fff;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* Reusable dual-time display for UTC and Timor-Leste operations. */
.portal-time-clocks {
    align-items: stretch;
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    gap: 0.65rem;
    padding: 0.35rem 0.55rem;
}

.portal-time-clock {
    align-items: center;
    display: flex;
    gap: 0.4rem;
    min-width: 7.7rem;
}

.portal-time-clock__icon {
    color: var(--accent);
    font-size: 0.95rem;
}

.portal-time-clock__content {
    display: grid;
    gap: 0.05rem;
    line-height: 1.1;
}

.portal-time-clock__label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portal-time-clock__time {
    color: #fff;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap;
}

.portal-time-clock__date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.58rem;
    white-space: nowrap;
}

.portal-time-clocks__divider {
    align-self: center;
    background: rgba(255, 255, 255, 0.25);
    height: 2rem;
    width: 1px;
}

.portal-time-clocks--compact {
    gap: 0.35rem;
    padding: 0.25rem 0.4rem;
}

.portal-time-clocks--compact .portal-time-clock {
    gap: 0.2rem;
    min-width: auto;
}

.portal-time-clocks--compact .portal-time-clock__icon,
.portal-time-clocks--compact .portal-time-clocks__divider {
    display: none;
}

.portal-time-clocks--compact .portal-time-clock__label {
    font-size: 0.55rem;
}

.portal-time-clocks--compact .portal-time-clock__time {
    font-size: 0.7rem;
}

.portal-time-clocks--compact .portal-time-clock__date {
    display: block;
    font-size: 0.5rem;
}

.public-login-button,
.public-account-button,
.language-switcher-toggle,
.glass-navbar .navbar-toggler {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 2.75rem;
}

.public-login-button {
    padding: 0.55rem 1rem;
    white-space: nowrap;
}

.public-account-button {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 1.2rem;
    min-width: 2.75rem;
    padding: 0.45rem 0.65rem;
}

.public-account-button__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-switcher-toggle {
    background: rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
}

.language-switcher-toggle:hover,
.language-switcher-toggle:focus,
.public-account-button:hover,
.public-account-button:focus {
    background: rgba(15, 23, 42, 0.34);
    border-color: #fff;
    color: #fff;
}

.language-flag {
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0.12rem;
    display: inline-block;
    flex: 0 0 auto;
    height: 0.8rem;
    line-height: 1;
    overflow: hidden;
    position: relative;
    width: 1.2rem;
}

/* CSS flags avoid relying on emoji support in the visitor's operating system. */
.language-flag-gb {
    background:
        linear-gradient(90deg, transparent 42%, #ce1126 42% 58%, transparent 58%),
        linear-gradient(transparent 36%, #ce1126 36% 64%, transparent 64%),
        #fff;
}

.language-flag-tl {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%23da291c' d='M0 0h60v40H0z'/%3E%3Cpath fill='%23ffc72c' d='M0 0l36 20L0 40z'/%3E%3Cpath d='M0 0l28 20L0 40z'/%3E%3Cpath fill='white' d='M10 14l1.4 4.1 4.4.1-3.6 2.5 1.4 4.3-3.6-2.6-3.6 2.6 1.4-4.3-3.6-2.5 4.4-.1z'/%3E%3C/svg%3E");
}

.language-flag-pt {
    background: linear-gradient(90deg, #046a38 0 40%, #da291c 40% 100%);
}

.language-flag-pt::before {
    background: #ffcd00;
    border: 1px solid #9c7a00;
    border-radius: 50%;
    content: "";
    height: 0.46rem;
    left: 31%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.46rem;
}

.language-flag-crest {
    background: #fff;
    border: 0.06rem solid #da291c;
    border-radius: 0.05rem 0.05rem 50% 50%;
    height: 0.34rem;
    left: 31%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.2rem;
    z-index: 1;
}

.language-code {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.language-label {
    font-weight: 600;
}

.language-switcher-menu {
    min-width: 11rem;
    padding: 0.35rem;
    max-width: calc(100vw - 1rem);
    overflow-x: hidden;
}

.language-option-form {
    margin: 0;
}

.language-option {
    background: transparent;
    border: 0;
    border-radius: 0.375rem;
    color: rgba(255, 255, 255, 0.7);
    min-height: 2.5rem;
    padding: 0.5rem 0.65rem;
    text-align: left;
    width: 100%;
    white-space: normal;
}

.language-option:hover,
.language-option:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.glass-navbar .dropdown-menu {
    max-width: calc(100vw - 1.5rem);
}

@media (min-width: 1400px) {
    .navbar-expand-xxl .navbar-toggler {
        display: none !important;
    }

    .public-navbar-container {
        flex-wrap: nowrap;
    }

    .public-navbar-container .navbar-collapse {
        min-width: 0;
        order: 2;
    }

    .public-navbar-desktop-utility {
        flex: 0 1 auto;
        order: 3;
    }

    .public-navbar-container .navbar-nav {
        flex-wrap: nowrap;
    }

    .glass-navbar .nav-link {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        white-space: nowrap;
    }
}

/* Keep the full navigation on one line. Medium and laptop widths use the
   collapsed menu instead of allowing navigation labels to wrap. */
@media (min-width: 1400px) and (max-width: 2199.98px) {
    .public-navbar-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .navbar-brand {
        gap: 0.45rem !important;
    }

    .navbar-brand-logo {
        height: 46px !important;
        width: 46px !important;
    }

    .navbar-brand-copy > span {
        font-size: 0.95rem !important;
    }

    .navbar-brand-copy > small {
        font-size: 0.66rem !important;
    }

    .public-navbar-container .navbar-nav {
        gap: 0 !important;
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-right: auto;
        width: auto;
    }

    .portal-current-date {
        gap: 0.2rem;
        margin-right: 0.15rem;
    }

    .portal-current-date__label {
        display: none;
    }

    .portal-current-date__value {
        font-size: 0.62rem;
    }

    .public-navbar-container .navbar-collapse {
        flex: 1 1 0;
    }

    .public-navbar-container .navbar-nav .nav-item {
        flex: 0 0 auto;
    }

    .glass-navbar .nav-link {
        font-size: 0.7rem;
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .glass-navbar .nav-link .me-1 {
        margin-right: 0.15rem !important;
    }

    .public-navbar-desktop-utility {
        flex: 0 0 auto;
        gap: 0.3rem !important;
    }

    .portal-time-clocks {
        gap: 0.25rem;
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }

    .portal-time-clock {
        gap: 0.15rem;
        min-width: 0;
    }

    .portal-time-clock__date {
        display: block;
        font-size: 0.5rem;
    }

    .portal-time-clock__time {
        font-size: 0.68rem;
    }

    .portal-time-clock__label {
        font-size: 0.55rem;
    }

    .public-navbar-desktop-utility .language-switcher,
    .public-navbar-desktop-utility .public-login-button,
    .public-navbar-desktop-utility .dropdown {
        flex: 0 0 auto;
    }

    .public-navbar-desktop-utility .public-login-button {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .public-navbar-desktop-utility .language-switcher-toggle {
        gap: 0.35rem !important;
        font-size: 0.72rem;
        min-height: 2.15rem;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .public-navbar-desktop-utility .language-label {
        display: none;
    }

    .public-navbar-desktop-utility .public-login-button {
        font-size: 0.75rem;
        min-height: 2.15rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .public-navbar-desktop-utility .public-account-button {
        min-height: 2.15rem;
        min-width: 2.15rem;
    }
}

@media (min-width: 1400px) and (max-width: 1599.98px) {
    .navbar-brand-logo {
        height: 40px !important;
        width: 40px !important;
    }

    .navbar-brand-copy > span {
        font-size: 0.82rem !important;
    }

    .navbar-brand-copy > small {
        display: none;
    }

    .public-navbar-desktop-utility .public-login-button {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }
}

/* Keep the compact, toggleable menu on phones, tablets, and narrower
   desktops. This prevents the main links from crowding the account controls. */
/* Keep the compact menu for phones, tablets, and narrower desktop windows.
   Wide desktop displays retain the full service navigation. */
@media (max-width: 1799.98px) {
    .public-navbar-container {
        max-width: 100%;
        min-width: 0;
        flex-wrap: wrap !important;
    }

    .public-navbar-mobile-utility {
        display: flex !important;
        min-width: 0;
    }

    .language-switcher-compact .language-label {
        display: none;
    }

    .portal-time-clocks--compact {
        flex: 0 1 auto;
        min-width: 0;
    }

    .public-navbar-desktop-utility {
        display: none !important;
    }

    .public-navbar-mobile-utility .public-profile-button {
        max-width: min(12rem, 34vw);
    }

    .navbar-expand-xxl .navbar-toggler {
        display: block !important;
    }

    .navbar-expand-xxl .navbar-collapse {
        display: none !important;
        flex-basis: 100% !important;
        width: 100%;
    }

    .navbar-expand-xxl .navbar-collapse.show {
        display: block !important;
        flex-basis: 100% !important;
        width: 100%;
    }

    .navbar-expand-xxl .navbar-collapse.collapsing {
        display: block !important;
        flex-basis: 100% !important;
        width: 100%;
    }

    .public-navbar-container .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .portal-current-date {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        margin: 0 0 0.35rem;
        padding: 0.35rem 0.8rem 0.55rem;
    }

    .portal-current-date__label {
        display: block;
    }

    .public-navbar-container .navbar-nav {
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.15rem !important;
        overflow: visible;
        padding-bottom: 0.25rem;
        text-align: left !important;
        width: 100%;
    }

    .public-navbar-container .navbar-nav .nav-item {
        flex: 0 0 auto;
        width: 100%;
    }

    .public-navbar-container .navbar-nav .nav-link {
        white-space: normal;
        width: 100%;
    }

    .glass-navbar .nav-link {
        border-radius: 0.5rem;
        min-height: 2.75rem;
        padding: 0.65rem 0.8rem;
    }

    .glass-navbar .nav-link:hover,
    .glass-navbar .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
    }

    .glass-navbar .dropdown-menu {
        background: rgba(15, 23, 42, 0.96) !important;
        margin: 0.15rem 0 0.4rem !important;
    }

    .glass-navbar .dropdown-item {
        min-height: 2.75rem;
        padding: 0.65rem 0.9rem;
        white-space: normal;
    }

    .language-switcher:not(.language-switcher-compact) .language-label {
        display: none;
    }
}

/* Reserve the full desktop row for wide screens. Dropdown menus must remain
   overflow-visible so their submenu items are never clipped. */
@media (min-width: 1800px) {
    .public-navbar-container .navbar-collapse {
        flex: 1 1 auto;
        min-width: 0;
    }

    .public-navbar-container .portal-navigation {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        min-width: 0;
        overflow: visible;
    }

    .public-navbar-container .portal-navigation .nav-item {
        flex: 0 0 auto;
    }

    .public-navbar-container .portal-navigation .nav-link {
        white-space: nowrap;
    }

}

/* Career details: the application summary must become a normal, full-width
   card before the two columns get too narrow.  Long translated text and URLs
   are allowed to wrap instead of causing horizontal scrolling. */
.career-detail-layout,
.career-detail-layout .card,
.career-detail-layout .job-rich-content,
.career-detail-layout .job-rich-content * {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .career-summary-card.sticky-top {
        position: static;
        top: auto !important;
    }
}

@media (max-width: 575.98px) {
    .career-detail-layout .card {
        padding: 1.25rem !important;
    }

    .career-detail-layout .list-unstyled {
        gap: 0.85rem !important;
    }
}

@media (max-width: 575.98px) {
    .public-navbar-container {
        column-gap: 0.35rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-brand {
        margin-right: 0;
    }

    .navbar-brand-logo {
        height: 46px !important;
        width: 46px !important;
    }

    .navbar-brand-copy {
        display: none !important;
    }

    .public-navbar-mobile-utility {
        gap: 0.35rem !important;
    }

    .language-switcher-toggle {
        gap: 0.25rem !important;
        min-width: 3.5rem;
        padding: 0.45rem 0.55rem;
    }

    .language-switcher-compact .language-code,
    .language-switcher-compact .language-label {
        display: none;
    }

    .public-login-button {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .public-navbar-mobile-utility .public-profile-button {
        min-width: 2.75rem;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .public-navbar-mobile-utility .public-profile-button .me-1 {
        margin-right: 0 !important;
    }

    .public-navbar-mobile-utility .public-account-button__name {
        display: none;
    }

    .glass-navbar .navbar-toggler {
        margin-left: 0.1rem;
        min-width: 2.75rem;
        padding: 0.45rem;
    }

    .language-switcher-menu {
        min-width: 10rem;
    }
}

@media (max-width: 399.98px) {
    .public-login-button__label {
        display: none;
    }

    /* Keep language selection available on narrow phones. The visual label is
       already hidden at this size, so a smaller icon-only control preserves
       room for the CAP alert and menu button without removing functionality. */
    .language-switcher-toggle {
        min-width: 2.5rem;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .portal-time-clocks--compact {
        gap: 0.15rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .portal-time-clocks--compact .portal-time-clock__time {
        font-size: 0.65rem;
    }

    .portal-time-clocks--compact .portal-time-clock__label {
        font-size: 0.5rem;
    }

    .public-login-button {
        font-size: 0.75rem;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }
}

@media (pointer: coarse) {
    .btn-sm,
    .dropdown-item,
    .pagination .page-link {
        min-height: 2.5rem;
    }
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-muted) 100%);
}

/* Full-bleed hero gradient for homepage sections */
.bg-gradient-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, var(--teal) 100%);
}

/* Sidebar Custom Styling */
.sidebar {
    min-height: 100vh;
    background-color: var(--dark);
    border-right: 1px solid var(--dark-muted);
    transition: var(--transition);
}

.sidebar .nav-link {
    color: #94a3b8;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    margin: 0.2rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--dark-muted);
}

.sidebar .nav-link.active {
    border-left: 4px solid var(--accent);
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    padding: 1.5rem 1.25rem;
    color: #ffffff;
    border-bottom: 1px solid var(--dark-muted);
}

/* DNMG admin responsive foundation. Keep reusable admin behaviour here rather
   than duplicating breakpoint fixes across Weather, CMS, HR, and Users pages. */
.admin-content {
    min-width: 0;
}

.admin-content .form-control,
.admin-content .form-select {
    min-height: 2.5rem;
}

.admin-content .table-responsive {
    -webkit-overflow-scrolling: touch;
}

.admin-sidebar-backdrop {
    background: rgba(5, 29, 47, 0.5);
    border: 0;
    display: none;
}

/* Reusable upload layout for edit forms with an existing file, title/caption,
   display order, and an optional remove action. */
.admin-upload-row {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(16rem, 1.4fr) minmax(14rem, 1fr) minmax(8rem, 0.4fr) auto;
}

.admin-upload-row--two-fields {
    grid-template-columns: minmax(16rem, 1fr) minmax(16rem, 1fr) auto;
}

.admin-upload-action {
    align-self: end;
    min-height: 2.5rem;
}

@media (max-width: 767.98px) {
    .admin-shell {
        overflow-x: hidden;
    }

    .admin-shell .sidebar {
        bottom: 0;
        box-shadow: 0 0 2rem rgba(5, 29, 47, 0.32);
        left: 0;
        overflow-y: auto;
        position: fixed;
        top: 0;
        width: min(20rem, 86vw);
        z-index: 1045;
    }

    .admin-sidebar-backdrop.is-visible {
        bottom: 0;
        display: block;
        left: 0;
        position: fixed;
        right: 0;
        top: 0;
        width: 100%;
        z-index: 1040;
    }

    .admin-sidebar-open {
        overflow: hidden;
    }

    .admin-main-viewport {
        min-width: 0;
        padding: 1rem !important;
        width: 100%;
    }

    .admin-page-chrome {
        align-items: flex-start !important;
    }

    .admin-page-chrome .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.875rem;
    }

    .admin-content > .d-flex.justify-content-between {
        align-items: stretch !important;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .admin-content > .d-flex.justify-content-between > .btn {
        justify-content: center;
        width: 100%;
    }

    .admin-content .card-header > .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .admin-content .table-responsive > .table {
        min-width: 42rem;
    }

    .admin-content .table th,
    .admin-content .table td {
        white-space: nowrap;
    }

    .admin-content .table td .text-muted,
    .admin-content .table td .small {
        white-space: normal;
    }

    .admin-content .card,
    .admin-content .image-form-item,
    .admin-content .attachment-form-item {
        min-width: 0;
    }
}

@media (max-width: 1199.98px) {
    .admin-upload-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-upload-row--two-fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .admin-upload-row,
    .admin-upload-row--two-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-upload-action {
        align-self: start;
    }
}

/* Utility backgrounds referenced by templates (previously missing) */
.bg-dark-muted {
    background-color: var(--dark-muted) !important;
}
.bg-dark-muted-light {
    background-color: var(--dark-muted-light) !important;
}

/* Dark-context form controls (login, password reset, any form on a dark background) */
.form-control.bg-dark,
.form-control.bg-dark-muted {
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.form-control.bg-dark::placeholder,
.form-control.bg-dark-muted::placeholder {
    color: rgba(248, 250, 252, 0.45);
}
.form-control.bg-dark:focus,
.form-control.bg-dark-muted:focus {
    background-color: var(--dark-muted-light);
    color: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(41, 163, 255, 0.25);
}

/* Icon boxes paired with dark inputs need a readable icon color, not the 50%-opacity text */
.input-group-text.bg-dark-muted i {
    color: rgba(255, 255, 255, 0.75);
}

/* Vivid brand button — replaces flat btn-warning for primary CTAs on dark backgrounds */
.btn-brand {
    background: linear-gradient(135deg, var(--accent) 0%, #ffb300 100%);
    color: var(--dark);
    font-weight: 700;
    border: none;
    transition: var(--transition);
}
.btn-brand:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.35);
    color: var(--dark);
}
.btn-brand:active {
    transform: translateY(0);
}

/* Animations */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.pulse-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

/* Weather Dashboard Micro-animations */
.weather-card {
    position: relative;
    overflow: hidden;
}

.weather-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.5s ease;
}

.weather-card:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

/* Custom Alert Badges — brightened */
.alert-severity-danger {
    border-left: 6px solid var(--accent-red) !important;
}

.alert-severity-warning {
    border-left: 6px solid #f59e0b !important;
}

.alert-severity-info {
    border-left: 6px solid var(--primary-light) !important;
}

.alert-severity-success {
    border-left: 6px solid #10b981 !important;
}

/* Public-home active warning carousel */
#activeAlertsCarousel .carousel-control-prev,
#activeAlertsCarousel .carousel-control-next {
    width: 3rem;
}

#activeAlertsCarousel .carousel-control-prev-icon,
#activeAlertsCarousel .carousel-control-next-icon {
    background-color: rgba(15, 23, 42, 0.7);
    border-radius: 50%;
    background-size: 50%;
    height: 2rem;
    width: 2rem;
}

/* Profile pages */
.profile-icon {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    font-size: 1.4rem;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.profile-vision-list {
    color: #475569;
    display: grid;
    gap: 0.8rem;
    line-height: 1.6;
    padding-left: 1.4rem;
}

.profile-service-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    height: 100%;
    padding: 1.25rem;
}

/* Public organisational chart */
.org-chart {
    position: relative;
}

.org-director-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
}

.org-director-wrap::after {
    background: #94a3b8;
    bottom: -3rem;
    content: "";
    height: 3rem;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 2px;
}

.org-node {
    text-align: center;
}

.org-node-director {
    background: var(--primary);
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 59, 102, 0.18);
    color: #fff;
    display: flex;
    flex-direction: column;
    font-weight: 700;
    gap: 0.35rem;
    min-width: 10rem;
    padding: 1rem 1.5rem;
}

.org-departments {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    padding-top: 1.5rem;
    position: relative;
}

.org-departments::before {
    background: #94a3b8;
    content: "";
    height: 2px;
    left: 8%;
    position: absolute;
    right: 8%;
    top: 0;
}

.org-node-department {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
    position: relative;
}

.org-node-department::before {
    background: #94a3b8;
    content: "";
    height: 1.5rem;
    left: 50%;
    position: absolute;
    top: -1.5rem;
    transform: translateX(-50%);
    width: 2px;
}

.org-code {
    background: #e0f2fe;
    border-radius: 999px;
    color: #075985;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.55rem;
}

@media (max-width: 575.98px) {
    .org-departments::before {
        display: none;
    }
}

/* HTMX Transition effects */
.htmx-fade-in {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}
.htmx-fade-in.htmx-settling {
    opacity: 1;
}

/* Flag sizes for Language Switcher */
.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* Public forecast map and day selector */
.home-forecast-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}
.home-var-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.home-var-btn {
    padding: 0.2rem 0.625rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 0.72rem;
    transition: var(--transition);
}
.home-var-btn:hover,
.home-var-btn.active {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
}
.home-forecast-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    min-height: 28rem;
}
.home-forecast-map-wrap { position: relative; min-width: 0; }
#home_forecast_map { height: 100%; min-height: 28rem; width: 100%; }
.home-forecast-legend {
    position: absolute;
    bottom: 0.625rem;
    left: 0.625rem;
    z-index: 1000;
    border: 1px solid #dbe4e9;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 2px 8px rgba(21, 43, 58, 0.14);
    font-size: 0.68rem;
    padding: 0.375rem 0.625rem;
}
.home-forecast-days {
    background: #f7fafb;
    border-left: 1px solid var(--gray-border);
    max-height: 28rem;
    min-height: 28rem;
    overflow-y: auto;
}
.home-day-selector-title {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}
.home-day-cards { display: grid; gap: 0.55rem; }
.home-day-card {
    --day-accent: #94cb55;
    appearance: none;
    width: 100%;
    border: 1px solid transparent;
    border-left: 4px solid var(--day-accent);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    padding: 0.6rem 0.65rem;
    text-align: left;
    transition: var(--transition);
}
.home-day-card:hover,
.home-day-card.active {
    border-color: var(--day-accent);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}
.home-day-card-heading { display: flex; justify-content: space-between; gap: 0.4rem; margin-bottom: 0.4rem; }
.home-day-number { color: #1e293b; font-size: 0.8rem; font-weight: 700; }
.home-day-date { color: #64748b; font-size: 0.7rem; }
.home-day-alert-bar { display: flex; height: 0.35rem; margin-bottom: 0.45rem; overflow: hidden; border-radius: 999px; }
.home-day-counts { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.home-day-counts span { border-radius: 999px; font-size: 0.62rem; font-weight: 600; padding: 0.08rem 0.32rem; }
.forecast-count-low { background: #dcfce7; color: #166534; }
.forecast-count-moderate { background: #fefce8; color: #854d0e; }
.forecast-count-high { background: #ffedd5; color: #9a3412; }
.forecast-count-danger { background: #fee2e2; color: #991b1b; }
.forecast-day-pill {
    flex: 0 0 auto;
    min-width: 4.75rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    color: #475569;
    font-size: 0.68rem;
    line-height: 1.15;
    text-align: center;
}
.forecast-day-pill span,
.forecast-day-pill small { display: block; }
.forecast-day-pill span { font-weight: 700; }
.forecast-day-pill small { color: inherit; opacity: 0.8; }
.forecast-day-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.article-editor-surface {
    min-height: 18rem;
    padding: 1rem;
    background: #fff;
    color: var(--dark);
    line-height: 1.7;
    outline: none;
}
.article-editor-surface:empty::before {
    color: #94a3b8;
    content: attr(data-placeholder);
    pointer-events: none;
}
.article-editor-surface:focus { box-shadow: inset 0 0 0 2px rgba(21, 101, 192, 0.2); }
.admin-rich-editor__surface { min-height: 12rem; }
.admin-rich-editor__surface h2 { font-size: 1.35rem; font-weight: 700; margin: 1rem 0 0.65rem; }
.admin-rich-editor__surface h3 { font-size: 1.1rem; font-weight: 700; margin: 0.9rem 0 0.55rem; }
.admin-rich-editor__surface ul,
.admin-rich-editor__surface ol { padding-left: 1.5rem; }
.article-content .article-inline-image,
.article-editor-surface .article-inline-image {
    margin: 1.5rem auto;
    max-width: 100%;
}
.article-content .article-inline-image img,
.article-editor-surface .article-inline-image img {
    display: block;
    width: 100%;
    max-height: 34rem;
    border-radius: 0.75rem;
    object-fit: contain;
}
.article-content .article-inline-image figcaption,
.article-editor-surface .article-inline-image figcaption {
    color: #64748b;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}
.article-content .article-inline-attachment,
.article-editor-surface .article-inline-attachment {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--primary);
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    padding: 0.875rem 1rem;
}
.article-content .article-inline-attachment a,
.article-editor-surface .article-inline-attachment a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.article-content .article-inline-attachment a::before,
.article-editor-surface .article-inline-attachment a::before {
    content: "\1F4CE  ";
}
.article-content .article-inline-attachment figcaption,
.article-editor-surface .article-inline-attachment figcaption {
    color: #64748b;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}
.home-station-map {
    height: 400px;
    border: 1px solid var(--gray-border);
    border-radius: 0.75rem;
}

/* Bulletin rows must allow their title and type label to share narrow screens. */
.home-bulletin-item {
    gap: 0.75rem;
}

.home-bulletin-content,
.home-bulletin-copy {
    min-width: 0;
}

.home-bulletin-content {
    flex: 1 1 0;
}

.home-bulletin-content > i {
    flex: 0 0 auto;
}

.home-bulletin-title {
    max-width: none;
}

.home-bulletin-type {
    flex: 0 1 auto;
    max-width: 48%;
    overflow-wrap: anywhere;
    text-align: right;
    white-space: normal;
}

@media (max-width: 991.98px) {
    .home-forecast-layout { grid-template-columns: 1fr; min-height: 0; }
    .home-forecast-days { border-top: 1px solid var(--gray-border); border-left: 0; max-height: none; min-height: 0; overflow: hidden; }
    .home-day-cards { grid-auto-columns: minmax(145px, 1fr); grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; padding-bottom: 0.25rem; }
    .home-day-card { min-height: 100%; }
}
@media (max-width: 575.98px) {
    .home-forecast-header { padding: 1rem !important; }
    .home-forecast-header .btn { width: 100%; }
    .home-var-pills { width: 100%; }
    .home-var-btn { flex: 1 0 auto; }
    #home_forecast_map { min-height: 310px; height: 310px; }
    .home-day-cards { grid-auto-columns: 155px; }
    .home-forecast-legend { right: 0.625rem; font-size: 0.62rem; }
    .home-stations-header { align-items: stretch !important; }
    .home-station-filters { display: flex; width: 100%; overflow-x: auto; }
    .home-station-filters .btn { flex: 0 0 auto; }
    .home-station-map { height: 320px; }
}

/* Navbar readability and shared time/date presentation. */
.glass-navbar {
    background: linear-gradient(110deg, #06243a 0%, #0a3552 58%, #0d4661 100%);
    border-bottom: 2px solid #f2bf49;
    box-shadow: 0 4px 20px rgba(5, 29, 47, 0.28);
}

.glass-navbar .nav-link {
    border: 1px solid transparent;
    border-radius: 0.55rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.glass-navbar .nav-link:hover,
.glass-navbar .nav-link:focus-visible,
.glass-navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(242, 191, 73, 0.7);
    color: #fff;
}

.portal-current-date {
    background: rgba(2, 22, 36, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.65rem;
    padding: 0.3rem 0.5rem;
}

.portal-current-date__icon,
.portal-time-clock__icon {
    color: #f2bf49;
}

.portal-current-date__label,
.portal-time-clock__label {
    color: #f8d477;
    font-weight: 800;
}

.portal-current-date__value,
.portal-time-clock__time {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.portal-time-clocks {
    background: rgba(2, 22, 36, 0.38);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.portal-time-clock__date {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

@media (min-width: 1400px) and (max-width: 2199.98px) {
    .glass-navbar .nav-link {
        font-size: 0.7rem;
        padding: 0.4rem 0.3rem;
    }

    .portal-current-date {
        padding: 0.25rem 0.35rem;
    }

    .portal-current-date__label {
        display: block;
        font-size: 0.5rem;
    }

    .portal-current-date__value {
        font-size: 0.62rem;
    }
}

@media (max-width: 1399.98px) {
    .glass-navbar .nav-link {
        font-weight: 600;
    }

    .portal-current-date {
        background: rgba(2, 22, 36, 0.24);
    }
}

/* Reference-style public header: a light information strip above the main nav. */
.glass-navbar {
    background: #fff;
    border-bottom: 1px solid #d8e1e8;
    box-shadow: 0 3px 18px rgba(26, 54, 78, 0.08);
    color: #18354d;
    display: block;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.portal-topbar {
    background: #eef3f7;
    border-bottom: 1px solid #e0e7ed;
    color: #35536d;
    flex: 0 0 100%;
    min-height: 2.35rem;
    width: 100%;
}

.portal-topbar__inner {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 2.35rem;
}

.portal-topbar__primary {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
}

.portal-cap-alert {
    align-items: center;
    background: #fff4d8;
    border: 1px solid #e5ad34;
    border-radius: 0.3rem;
    color: #7a260d;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    gap: 0.3rem;
    line-height: 1;
    min-height: 1.8rem;
    padding: 0.35rem 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.portal-cap-alert > .bi:first-child {
    color: #c33b20;
    font-size: 0.82rem;
}

.portal-cap-alert__external {
    font-size: 0.58rem;
}

.portal-cap-alert:hover,
.portal-cap-alert:focus-visible {
    background: #e5ad34;
    color: #571707;
    outline: none;
}

.portal-cap-alert:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(229, 173, 52, 0.38);
}

.portal-topbar .portal-current-date {
    background: transparent;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0.3rem 0;
}

.portal-topbar .portal-current-date__icon {
    display: none;
}

.portal-topbar .portal-current-date__label,
.portal-topbar .portal-time-clock__label {
    color: #47647d;
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
}

.portal-topbar .portal-current-date__value,
.portal-topbar .portal-time-clock__time {
    color: #294b66;
    font-size: 0.74rem;
}

.portal-topbar .portal-time-clocks {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #294b66;
    gap: 1rem;
    padding: 0;
}

.portal-topbar .portal-time-clock {
    min-width: 9.5rem;
}

.portal-topbar .portal-time-clock__icon {
    color: #16805a;
}

.portal-topbar .portal-time-clock__date {
    color: #6b8192;
    font-size: 0.6rem;
}

.portal-main-navbar {
    background: #fff;
    border-bottom: 1px solid #dbe5ea;
    flex: 0 0 100%;
    min-height: 4.6rem;
    width: 100%;
}

.portal-main-navbar .navbar-brand-copy > span {
    color: #18354d;
}

.portal-main-navbar .navbar-brand-copy > small {
    color: #6b8192 !important;
}

.portal-main-navbar .nav-link {
    color: #4a6074 !important;
}

.portal-main-navbar .nav-link:hover,
.portal-main-navbar .nav-link:focus-visible,
.portal-main-navbar .nav-link.active {
    background: #f1f6f9;
    border-color: #1b7895;
    color: #18354d !important;
}

/* Explicit public-navigation contracts keep dropdown and active colours
   consistent for Forecast, Career, and About DNMG. */
.portal-main-navbar .public-nav-link {
    color: #4a6074 !important;
}

.portal-main-navbar .public-nav-link:hover,
.portal-main-navbar .public-nav-link:focus-visible,
.portal-main-navbar .public-nav-link.active {
    background: #f1f6f9;
    border-color: #1b7895;
    color: #18354d !important;
}

.portal-main-navbar .public-nav-menu {
    background: #fff !important;
    border: 1px solid #d8e1e8 !important;
}

.portal-main-navbar .public-nav-menu-item {
    color: #36536b !important;
}

.portal-main-navbar .public-nav-menu-item:hover,
.portal-main-navbar .public-nav-menu-item:focus,
.portal-main-navbar .public-nav-menu-item.active {
    background: #eef5f8 !important;
    color: #18354d !important;
}

/* Complete public service navigation.  Desktop menus stay compact, while the
   same semantic menu becomes an in-flow hierarchy on tablets and phones. */
.portal-navigation {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.05rem;
    justify-content: flex-start;
    margin-right: auto;
}

.portal-main-navbar .portal-navigation .nav-link {
    align-items: center;
    border-bottom: 3px solid transparent;
    border-radius: 0.45rem 0.45rem 0.15rem 0.15rem;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 650;
    gap: 0.3rem;
    line-height: 1.15;
    padding: 0.72rem 0.5rem;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.portal-main-navbar .portal-navigation .nav-link > .bi {
    font-size: 0.94rem;
}

.portal-main-navbar .public-nav-menu {
    max-height: min(31rem, calc(100vh - 7rem));
    min-width: 15.5rem;
    overflow-y: auto;
}

.portal-main-navbar .public-nav-menu .dropdown-header {
    color: #68808e;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.55rem 1rem 0.2rem;
    text-transform: uppercase;
}

.portal-main-navbar .public-nav-menu-item {
    align-items: center;
    display: flex;
    font-size: 0.82rem;
    justify-content: space-between;
    padding: 0.45rem 1rem;
}

.portal-main-navbar .public-nav-menu-item .bi-box-arrow-up-right {
    font-size: 0.7rem;
}

.portal-main-navbar .structured-nav-menu {
    min-width: 18rem;
    padding: 0.45rem;
}

.portal-main-navbar .aviation-nav-menu {
    min-width: 19rem;
}

.portal-main-navbar .structured-nav-menu .dropdown-header {
    border-left: 3px solid #1b7895;
    margin: 0.35rem 0.4rem 0.15rem;
    padding: 0.25rem 0.55rem;
}

.portal-main-navbar .structured-nav-menu .dropdown-divider {
    border-color: #d9e3e9;
    margin: 0.35rem 0.4rem;
}

.portal-main-navbar .structured-nav-menu .public-nav-menu-item {
    border-radius: 0.35rem;
    gap: 0.75rem;
    margin: 0.08rem 0;
}

.portal-main-navbar .structured-nav-menu .public-nav-menu-item > span {
    align-items: center;
    display: inline-flex;
    min-width: 0;
}

.portal-main-navbar .structured-nav-menu .public-nav-menu-item > span > .bi {
    color: #1b7895;
    flex: 0 0 auto;
}

.portal-main-navbar .structured-nav-menu .structured-nav-menu__overview {
    background: #eef6f8;
    color: #18354d !important;
    font-weight: 700;
}

.portal-main-navbar .structured-nav-menu .structured-nav-menu__overview:hover,
.portal-main-navbar .structured-nav-menu .structured-nav-menu__overview:focus {
    background: #dceef3;
}

.portal-main-navbar .structured-nav-menu .public-nav-menu-item > small {
    color: #718491;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-main-navbar .navbar-toggler {
    border: 1px solid #b8c8d4 !important;
}

.portal-main-navbar .navbar-toggler-icon {
    filter: invert(22%) sepia(18%) saturate(1160%) hue-rotate(166deg) brightness(83%);
}

.portal-main-navbar .language-switcher-toggle {
    background: #fff;
    border-color: #b8c8d4;
    color: #294b66;
}

.portal-main-navbar .language-switcher-toggle:hover,
.portal-main-navbar .language-switcher-toggle:focus {
    background: #f1f6f9;
    border-color: #66879d;
    color: #18354d;
}

/* The public header uses a light background.  Keep the authenticated profile
   action as visible as the Login action instead of inheriting light button
   colours from the surrounding navbar. */
.portal-main-navbar .public-profile-button {
    align-items: center;
    background: transparent;
    border: 1px solid #b8c8d4;
    border-radius: 999px;
    box-shadow: none;
    color: #172b3a !important;
    display: inline-flex !important;
    font-weight: 700;
    gap: 0.25rem;
    justify-content: center;
}

.portal-main-navbar .public-profile-button:hover,
.portal-main-navbar .public-profile-button:focus-visible {
    background: #f1f6f9;
    border-color: #66879d;
    color: #172b3a !important;
}

/* Keep an authenticated account name compact enough to coexist with the
   public-service navigation on desktop screens. */
.public-navbar-desktop-utility .public-profile-button {
    font-size: 0.9rem;
    gap: 0.35rem !important;
    min-height: 2.25rem;
    padding: 0.35rem 0.65rem !important;
}

.public-navbar-desktop-utility .public-profile-button .bi-person-circle {
    font-size: 1.1rem;
}

.public-navbar-desktop-utility .public-account-button__name {
    font-size: 0.9rem;
}

.public-navbar-desktop-utility .public-profile-button img {
    height: 22px !important;
    width: 22px !important;
}

.portal-main-navbar .public-account-button:not(.public-profile-button) {
    background: #fff;
    border-color: #b8c8d4;
    color: #294b66;
}

/* Safe rich text published from official forecasts. */
.forecast-rich-content p {
    margin-bottom: 1rem;
}

.forecast-rich-content strong,
.forecast-rich-content b {
    font-weight: 700 !important;
}

.forecast-rich-content h2,
.forecast-rich-content h3 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.forecast-rich-content i.bi {
    align-items: center;
    background: #e0f2fe;
    border-radius: 0.45rem;
    color: #0284c7;
    display: inline-flex;
    font-size: 0.9em;
    height: 1.65em;
    justify-content: center;
    margin-right: 0.35rem;
    vertical-align: -0.15em;
    width: 1.65em;
}

.forecast-rich-content i.bi[class*="bi-sun"],
.forecast-rich-content i.bi[class*="cloud-sun"] {
    background: #fef3c7;
    color: #d97706;
}

.forecast-rich-content i.bi[class*="lightning"] {
    background: #ede9fe;
    color: #7c3aed;
}

.forecast-rich-content i.bi[class*="thermometer"] {
    background: #ffedd5;
    color: #ea580c;
}

.forecast-rich-content i.bi[class*="water"],
.forecast-rich-content i.bi[class*="tsunami"],
.forecast-rich-content i.bi[class*="droplet"] {
    background: #cffafe;
    color: #0891b2;
}

.forecast-rich-content i.bi[class*="chat"] {
    background: #dbeafe;
    color: #2563eb;
}

/* Render older saved icon + heading pairs on one line as well. */
.forecast-rich-content > i.bi + h2,
.forecast-rich-content > i.bi + h3 {
    display: inline-block;
    margin: 0 0 0.75rem 0.25rem;
    vertical-align: middle;
}

.forecast-rich-content ul,
.forecast-rich-content ol {
    margin-bottom: 1rem;
}

/* Sanitized, structured content published from the job-post editor. */
.job-rich-content p { margin-bottom: 1rem; }
.job-rich-content > :last-child { margin-bottom: 0; }
.job-rich-content h2,
.job-rich-content h3 { color: #18354d; font-weight: 700; margin-bottom: 0.7rem; margin-top: 1.4rem; }
.job-rich-content h2 { font-size: 1.3rem; }
.job-rich-content h3 { font-size: 1.08rem; }
.job-rich-content ul,
.job-rich-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.job-rich-content li + li { margin-top: 0.35rem; }
.job-rich-content blockquote { border-left: 4px solid #89b7c4; color: #496470; margin: 1rem 0; padding: 0.5rem 0 0.5rem 1rem; }
.job-rich-content a { overflow-wrap: anywhere; }

.portal-main-navbar .dropdown-menu {
    background: #fff !important;
    border: 1px solid #d8e1e8 !important;
}

.portal-main-navbar .dropdown-item {
    color: #36536b !important;
}

.portal-main-navbar .dropdown-item:hover,
.portal-main-navbar .dropdown-item:focus {
    background: #eef5f8 !important;
    color: #18354d !important;
}

@media (max-width: 1199.98px) {
    .portal-topbar__inner {
        flex-wrap: wrap;
        gap: 0.2rem 0.75rem;
        padding-bottom: 0.15rem;
        padding-top: 0.15rem;
    }

    .portal-topbar .portal-time-clocks {
        gap: 0.75rem;
    }

    .portal-topbar .portal-time-clock {
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .portal-topbar__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-topbar .portal-time-clocks {
        gap: 0.6rem;
        width: 100%;
    }

    .portal-topbar .portal-time-clock {
        flex: 1 1 0;
    }

    .portal-topbar .portal-time-clock__icon,
    .portal-topbar .portal-time-clock__date {
        display: none;
    }

    .portal-topbar__primary {
        justify-content: space-between;
        width: 100%;
    }
}

/* Public portal design system */
.public-main {
    background: #f3f6f8;
    color: #172b3a;
}

.glass-navbar {
    background: #082b45;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 14px rgba(5, 29, 47, 0.2);
}

.glass-navbar .nav-link {
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    padding: 0.65rem 0.65rem;
}

.glass-navbar .nav-link:hover,
.glass-navbar .nav-link.active {
    border-bottom-color: #f2bf49;
}

.navbar-brand-logo {
    border-color: rgba(255, 255, 255, 0.72) !important;
}

.portal-hero {
    background-color: #082b45;
    background-image: url("../images/background_image.0abb40b97ae7.jpeg");
    background-position: center;
    background-size: cover;
    /* background-size: 85% auto; */
    background-repeat: no-repeat;
    color: #fff;
    min-height: 15rem;
    position: relative;
}

.portal-hero__overlay {
    background: rgba(3, 22, 37, 0.64);
    inset: 0;
    position: absolute;
}

.portal-hero__content {
    min-height: 15rem;
    padding-bottom: 3.5rem;
    padding-top: 5.25rem;
    position: relative;
}

.portal-eyebrow,
.public-home .home-seismic-summary__eyebrow {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.portal-hero h1 {
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    font-weight: 700;
    line-height: 1.03;
    margin-bottom: 1.25rem;
    max-width: 44rem;
}

.portal-hero__lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 38rem;
}

.portal-hero .btn {
    border-radius: 6px;
    min-height: 2.75rem;
}

.portal-live-reading {
    border-left: 2px solid #f2bf49;
    padding: 0.5rem 0 0.5rem 1.5rem;
}

.portal-live-reading__topline {
    align-items: start;
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 1rem;
    justify-content: space-between;
    text-transform: uppercase;
}

.portal-live-reading__topline span i {
    color: #4ade80;
    font-size: 0.55rem;
}

.portal-live-reading__topline small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: right;
    text-transform: none;
}

.portal-live-reading__value {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    margin-top: 0.9rem;
}

.portal-live-reading__value span {
    color: #f2bf49;
    font-size: 1.45rem;
    margin-left: 0.25rem;
    vertical-align: top;
}

.portal-live-reading__value--empty {
    color: rgba(255, 255, 255, 0.58);
}

.portal-live-reading p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    margin: 0.7rem 0 1rem;
}

.portal-live-reading__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.1rem;
}

.portal-live-reading__metrics span {
    color: #fff;
    font-size: 0.8rem;
    white-space: nowrap;
}

.portal-live-reading__metrics i {
    color: #8dd3dd;
    margin-right: 0.38rem;
}

.public-page-hero {
    background: #0b344f;
    border-bottom: 4px solid #f2bf49;
    position: relative;
}

.public-page-hero h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
}

.public-page-hero .lead {
    max-width: 45rem;
}

.public-home {
    margin-top: 2rem;
}

.municipality-conditions {
    border-bottom: 1px solid #dbe4e9;
    border-top: 1px solid #dbe4e9;
    padding: 1.25rem 0 1.5rem;
}

.municipality-conditions__header {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.portal-section-kicker {
    color: #0b6379;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.municipality-conditions h2 {
    color: #172b3a;
    font-size: 1.35rem;
    margin: 0;
}

.municipality-conditions__hint {
    color: #68808e;
    font-size: 0.72rem;
}

.municipality-conditions__controls {
    display: flex;
    gap: 0.4rem;
}

.municipality-conditions__controls .btn {
    align-items: center;
    border-radius: 5px;
    display: inline-flex;
    height: 2.35rem;
    justify-content: center;
    padding: 0;
    width: 2.35rem;
}

.municipality-conditions__rail {
    display: grid;
    gap: 0.75rem;
    grid-auto-columns: minmax(12.5rem, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 0.45rem;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
}

.municipality-conditions__rail:focus-visible {
    border-radius: 0.45rem;
    outline: 3px solid rgba(11, 127, 146, 0.3);
    outline-offset: 0.25rem;
}

.municipality-conditions__rail::-webkit-scrollbar {
    height: 0.4rem;
}

.municipality-conditions__rail::-webkit-scrollbar-thumb {
    background: #8fb7c1;
}

.municipality-condition {
    background: #fff;
    border: 1px solid #dbe4e9;
    border-top: 3px solid #0b6379;
    border-radius: 6px;
    min-height: 10.75rem;
    padding: 0.9rem;
    scroll-snap-align: start;
}

.municipality-condition__header {
    align-items: start;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.municipality-condition h3 {
    color: #223d4f;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
}

.municipality-condition__summary {
    align-items: center;
    color: #536c7a;
    display: flex;
    font-size: 0.69rem;
    font-weight: 700;
    gap: 0.35rem;
    line-height: 1.2;
    margin-top: 0.45rem;
    min-width: 0;
}

.municipality-condition__summary i {
    align-items: center;
    background: #eef6f8;
    border-radius: 999px;
    color: #0b7f92;
    display: inline-flex;
    flex: 0 0 1.75rem;
    font-size: 1rem;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

.municipality-condition__summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.municipality-condition__summary--sun i { background: #fff6d8; color: #d38b00; }
.municipality-condition__summary--partly-cloudy i { background: #eef6f8; color: #287b9a; }
.municipality-condition__summary--cloudy i,
.municipality-condition__summary--fog i { background: #edf1f4; color: #64748b; }
.municipality-condition__summary--rain i { background: #e6f4fb; color: #16719b; }
.municipality-condition__summary--storm i { background: #f4edff; color: #7450a7; }
.municipality-condition__summary--snow i { background: #eff8ff; color: #5a92ae; }
.municipality-condition__summary--wind i { background: #eaf8f6; color: #16806f; }

.municipality-condition time {
    color: #68808e;
    font-size: 0.65rem;
    text-align: right;
}

.municipality-condition__primary-value {
    color: #102f45;
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.65rem 0 0.45rem;
}

.municipality-condition__primary-value span {
    color: #0b6379;
    font-size: 0.9rem;
    margin-left: 0.15rem;
    vertical-align: top;
}

.municipality-condition__primary-value--empty {
    color: #94a3ad;
}

.municipality-condition p {
    color: #5d7481;
    font-size: 0.72rem;
    margin-bottom: 0.75rem;
    min-height: 1.1rem;
}

.municipality-condition__details {
    border-top: 1px solid #e6edf0;
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 0.65rem;
}

.municipality-condition__details span {
    color: #385262;
    font-size: 0.7rem;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: anywhere;
}

.municipality-condition__details i {
    color: #0b7f92;
    margin-right: 0.25rem;
}

.public-main .card,
.public-main .glass-card {
    background: #fff;
    border: 1px solid #dbe4e9 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(21, 43, 58, 0.06) !important;
}

.public-main .card:hover {
    box-shadow: 0 5px 18px rgba(21, 43, 58, 0.1) !important;
    transform: none;
}

.public-main .form-control,
.public-main .form-select,
.public-main .input-group-text {
    border-color: #cbd8df;
    border-radius: 6px;
    min-height: 2.7rem;
}

.public-main .form-control:focus,
.public-main .form-select:focus {
    border-color: #177f92;
    box-shadow: 0 0 0 0.2rem rgba(23, 127, 146, 0.14);
}

.public-main .btn-primary {
    background: #0b6379;
    border-color: #0b6379;
}

.public-main .btn-primary:hover,
.public-main .btn-primary:focus {
    background: #084f61;
    border-color: #084f61;
}

.public-home > section,
.public-home > .row {
    margin-bottom: 2rem !important;
}

.home-forecast-header {
    background: #0b344f;
    border-bottom-color: rgba(255, 255, 255, 0.16) !important;
}

.home-var-btn,
.home-forecast-header .btn,
.home-station-filters .btn {
    border-radius: 5px;
}

.home-station-map {
    border: 1px solid #cbd8df;
    border-radius: 6px;
    height: 28rem;
}

.home-station-filters .btn {
    font-weight: 600;
}

.home-bulletin-item {
    border-radius: 4px;
    margin: 0 -0.35rem;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
}

.home-bulletin-item:hover {
    background: #f0f7f8;
}

.public-main .badge {
    border-radius: 4px;
}

/* Service landing pages keep unpublished operational products transparent. */
.service-availability {
    align-items: flex-start;
    background: #eef6f8;
    border-left: 4px solid #0b7f92;
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
}

.service-availability__icon { color: #0b6379; font-size: 1.5rem; line-height: 1; }
.service-availability h2 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.service-availability p { color: #385262; max-width: 52rem; }

.service-product-card {
    background: #fff;
    border: 1px solid #dbe4e9;
    border-top: 3px solid #8fb7c1;
    padding: 1.15rem;
}
.service-product-card > i { color: #0b6379; font-size: 1.25rem; }
.service-product-card h3 { font-size: 1rem; margin: 0.75rem 0 0.35rem; }
.service-product-card p { color: #68808e; font-size: 0.84rem; margin: 0; }

.airport-directory__header { align-items: end; display: flex; justify-content: space-between; }
.airport-card { align-items: flex-start; background: #fff; border: 1px solid #d8e3e9; border-top: 4px solid #16778c; border-radius: 0.55rem; display: flex; gap: 0.9rem; padding: 1.1rem; scroll-margin-top: 10rem; }
.airport-card__icon { align-items: center; background: #e6f2f5; border-radius: 50%; color: #0b6379; display: inline-flex; flex: 0 0 2.65rem; font-size: 1.25rem; height: 2.65rem; justify-content: center; width: 2.65rem; }
.airport-card__content { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.airport-card__location { color: #0b6379; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; margin: 0 0 0.35rem; text-transform: uppercase; }
.airport-card__location .bi { margin-right: 0.25rem; }
.airport-card h3 { color: #18354d; font-size: 1rem; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.airport-card__official-name { color: #607786; font-size: 0.8rem; line-height: 1.4; margin: 0.35rem 0 0; overflow-wrap: anywhere; }
.airport-card a { align-items: center; align-self: flex-start; color: #0b6379; display: inline-flex; font-size: 0.78rem; font-weight: 700; gap: 0.35rem; margin-top: auto; padding-top: 0.85rem; text-decoration: none; }
.airport-card a:hover, .airport-card a:focus-visible { color: #084756; text-decoration: underline; }

/* Dili AWOS operational display.  It is intentionally self-contained so the
   aviation screen can use a high-contrast instrument layout without changing
   the light public-site theme. */
.airport-awos-page { max-width: 1440px; }
.airport-awos-dashboard { background: #f7f7f7; border: 1px solid #141414; border-radius: 0.7rem; box-shadow: 0 0.45rem 1.2rem rgba(15, 23, 42, 0.12); color: #080808; overflow: hidden; }
.airport-awos-dashboard__header { align-items: center; background: #e7e7e7; border-bottom: 1px solid #b7b7b7; display: flex; gap: 1.25rem; justify-content: space-between; padding: 0.9rem 1.25rem; }
.airport-awos-dashboard__eyebrow { align-items: center; color: #343434; display: flex; font-size: 0.7rem; font-weight: 800; gap: 0.4rem; letter-spacing: 0.1em; margin: 0 0 0.15rem; text-transform: uppercase; }
.airport-awos-dashboard__live-dot { background: #0d6efd; border-radius: 50%; box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.14); display: inline-block; height: 0.45rem; width: 0.45rem; }
.airport-awos-dashboard h2 { color: #050505; font-size: clamp(1.1rem, 2.4vw, 1.55rem); margin: 0; }
.airport-awos-dashboard__header p:not(.airport-awos-dashboard__eyebrow) { color: #4b4b4b; font-size: 0.78rem; margin: 0.15rem 0 0; }
.airport-awos-dashboard__times { align-items: center; display: flex; gap: 1rem; }
.airport-awos-dashboard__times > div { border-left: 1px solid #b6b6b6; display: grid; gap: 0.05rem; padding-left: 1rem; }
.airport-awos-dashboard__times span { color: #555; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.airport-awos-dashboard__times time { color: #111; font-size: 0.79rem; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.airport-awos-dashboard__times > a { align-items: center; border: 1px solid #555; border-radius: 0.35rem; color: #111; display: inline-flex; font-size: 0.76rem; font-weight: 700; gap: 0.35rem; padding: 0.45rem 0.6rem; text-decoration: none; }
.airport-awos-dashboard__times > a:hover, .airport-awos-dashboard__times > a:focus-visible { background: #dedede; color: #000; outline: none; }
.airport-awos-dashboard__body { min-width: 0; }
.airport-awos-conditions { min-width: 0; }.airport-awos-conditions__heading { align-items: center; background: #ececec; border-bottom: 1px solid #c8c8c8; display: flex; justify-content: space-between; padding: 0.55rem 0.85rem; }.airport-awos-conditions__heading h3 { color: #080808; font-size: 1.05rem; margin: 0; }.airport-awos-conditions__status { color: #075f2d; font-size: 0.68rem; font-weight: 800; }.airport-awos-conditions__status .bi { color: #168a46; margin-right: 0.25rem; }
.airport-awos-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }.airport-awos-metric { background: #f4f8fb; border-bottom: 1px solid #d0d0d0; min-height: 6.25rem; padding: 0.85rem 0.65rem; text-align: center; }.airport-awos-metric:nth-child(2n) { background: #eaf2f7; }.airport-awos-metric:not(:nth-child(3n)) { border-right: 1px solid #d0d0d0; }.airport-awos-metric dt { align-items: center; color: #315368; display: flex; font-size: 0.76rem; font-weight: 800; gap: 0.35rem; justify-content: center; line-height: 1.2; }.airport-awos-metric dt .bi { color: #0b6379; font-size: 0.9rem; }.airport-awos-metric dd { color: #102a43; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0.45rem 0 0; }.airport-awos-metric small { color: #496c82; font-size: 0.62em; font-weight: 800; }
.airport-awos-wind-summary { background: #e6e6e6; border-top: 1px solid #d0d0d0; display: grid; grid-template-columns: minmax(10rem, 1.25fr) repeat(3, 1fr); margin: 0; }.airport-awos-wind-summary > div { min-width: 0; padding: 0.7rem 0.85rem; text-align: center; }.airport-awos-wind-summary > div + div { border-left: 1px solid #c8c8c8; }.airport-awos-wind-summary dt { color: #315368; font-size: 0.68rem; font-weight: 800; line-height: 1.2; }.airport-awos-wind-summary dd { color: #102a43; font-size: 1rem; font-variant-numeric: tabular-nums; font-weight: 800; margin: 0.18rem 0 0; }.airport-awos-wind-summary__title { background: #d9e8f0; text-align: left !important; }.airport-awos-wind-summary__title dt { color: #0b6379; font-size: 0.8rem; }.airport-awos-wind-summary__title .bi { margin-right: 0.35rem; }.airport-awos-wind-summary__title dd { color: #496c82; font-size: 0.7rem; font-weight: 700; }
.airport-awos-metar { align-items: center; background: #ededed; border-top: 1px solid #bdbdbd; display: grid; gap: 0.9rem; grid-template-columns: auto 1fr; padding: 0.75rem 1.25rem; }.airport-awos-metar > div { border-right: 1px solid #bababa; display: grid; gap: 0.1rem; padding-right: 1rem; }.airport-awos-metar span { color: #161616; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }.airport-awos-metar time { color: #080808; font-size: 0.72rem; font-variant-numeric: tabular-nums; }.airport-awos-metar__times time { align-items: baseline; display: flex; gap: 0.35rem; }.airport-awos-metar__times time small { color: #555; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }.airport-awos-metar__times time span { color: #080808; font-size: 0.72rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }.airport-awos-metar p { color: #080808; font-family: monospace; font-size: 0.82rem; margin: 0; overflow-wrap: anywhere; }.airport-awos-metar .airport-awos-metar__empty { color: #555; font-family: var(--font-body); }.airport-awos-dashboard--stale .airport-awos-dashboard__live-dot { background: #dc3545; }
.airport-awos-rainfall { background: #eaf2f7; border-top: 1px solid #c8d5dd; padding: 0.8rem 0.85rem; }
.airport-awos-rainfall__heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 0.65rem; }
.airport-awos-rainfall h3 { color: #102a43; font-size: 1rem; margin: 0; }
.airport-awos-rainfall__metrics { display: grid; gap: 0.65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.airport-awos-rainfall__metrics article { align-items: baseline; background: #f8fcff; border: 1px solid #c7dce7; border-radius: 0.4rem; display: flex; gap: 0.35rem; justify-content: center; padding: 0.65rem; }
.airport-awos-rainfall__metrics span { color: #315368; font-size: 0.72rem; font-weight: 800; }
.airport-awos-rainfall__metrics strong { color: #102a43; font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1; }
.airport-awos-rainfall__metrics small { color: #496c82; font-size: 0.72rem; font-weight: 800; }

@media (max-width: 479.98px) {
    .airport-awos-rainfall__metrics { grid-template-columns: 1fr; }
    .airport-awos-rainfall__metrics article { min-width: 0; }
    .airport-awos-rainfall__metrics span { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 767.98px) { .airport-awos-page { padding-left: 0.75rem; padding-right: 0.75rem; }.airport-awos-dashboard__header { align-items: flex-start; flex-direction: column; }.airport-awos-dashboard__times { flex-wrap: wrap; width: 100%; }.airport-awos-dashboard__times > div { border-left: 0; padding-left: 0; }.airport-awos-dashboard__times > a { margin-left: auto; }.airport-awos-metrics { grid-template-columns: repeat(2, 1fr); }.airport-awos-metric:not(:nth-child(3n)) { border-right: 0; }.airport-awos-metric:nth-child(odd) { border-right: 1px solid #d0d0d0; }.airport-awos-wind-summary { grid-template-columns: repeat(3, 1fr); }.airport-awos-wind-summary__title { grid-column: 1 / -1; text-align: center !important; }.airport-awos-wind-summary > div + div { border-left: 0; }.airport-awos-wind-summary > div:nth-child(3), .airport-awos-wind-summary > div:nth-child(4) { border-left: 1px solid #c8c8c8; }.airport-awos-metar { align-items: start; grid-template-columns: 1fr; }.airport-awos-metar > div { border-bottom: 1px solid #bababa; border-right: 0; padding: 0 0 0.55rem; } }

/* Public bulletin cards remain usable on narrow Android screens and with
   translated or unusually long bulletin titles. */
.public-bulletin-page, .public-bulletin-grid, .public-bulletin-grid > * { min-width: 0; }
.bulletin-card { min-width: 0; overflow: hidden; }
.bulletin-card .card-body { min-width: 0; padding: clamp(1rem, 4vw, 1.5rem); }
.bulletin-card__meta { gap: 0.45rem 0.75rem; flex-wrap: wrap; min-width: 0; }
.bulletin-card__meta .badge { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.bulletin-card__meta small { flex: 0 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bulletin-card__title, .bulletin-card__summary { overflow-wrap: anywhere; }
.bulletin-card__title { line-height: 1.35; }
.bulletin-card__summary { margin-bottom: 0; }
.bulletin-card__actions { min-width: 0; }
.bulletin-card__action { line-height: 1.25; min-height: 2.7rem; white-space: normal; }
.bulletin-card__action span { min-width: 0; overflow-wrap: anywhere; }
.public-bulletin-detail { overflow-wrap: anywhere; }
.public-bulletin-detail .badge { display: inline-block; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.public-bulletin-detail__breadcrumb .breadcrumb { flex-wrap: wrap; row-gap: 0.3rem; }
.public-bulletin-detail__metadata { align-items: center; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.public-bulletin-detail__metadata .mx-2 { margin-left: 0.1rem !important; margin-right: 0.1rem !important; }
.public-bulletin-detail__download { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .public-bulletin-hero { margin-bottom: 1.5rem !important; padding-bottom: 2rem !important; padding-top: 2rem !important; }
    .public-bulletin-hero h1 { font-size: clamp(1.6rem, 8vw, 2rem); overflow-wrap: anywhere; }
    .public-bulletin-hero .lead { font-size: 1rem; }
    .public-bulletin-page { margin-bottom: 2.5rem !important; }
    .public-bulletin-filter { margin-bottom: 0.25rem; }
    .bulletin-card__meta { align-items: flex-start !important; flex-direction: column; }
    .bulletin-card__meta small { white-space: normal; }
    .bulletin-card__action { padding-left: 0.75rem; padding-right: 0.75rem; }
    .public-bulletin-detail { padding-bottom: 2.5rem !important; padding-top: 2rem !important; }
    .public-bulletin-detail article { padding: 1rem !important; }
    .public-bulletin-detail__download .btn { width: 100%; }
}

.service-link-card {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe4e9;
    color: #172b3a;
    display: flex;
    gap: 0.8rem;
    height: 100%;
    padding: 1rem;
    text-decoration: none;
}
.service-link-card > i:first-child { color: #0b6379; font-size: 1.25rem; }
.service-link-card > span { display: grid; flex: 1; gap: 0.15rem; }
.service-link-card small { color: #68808e; }
.service-link-card:hover, .service-link-card:focus-visible { background: #f0f7f8; border-color: #7ba6b2; color: #102f45; outline: none; }

.calm-status {
    background: #edf8f2;
    border-left: 4px solid #198754;
    color: #174f38;
    padding: 0.85rem 1rem;
}

.public-alert-list h2 { color: #8d241f; }
.public-alert { border-left: 5px solid #b26a00; background: #fff8e8; display: grid; gap: 0.25rem; padding: 1rem 1.15rem; }
.public-alert strong { color: #412009; }
.public-alert--danger { background: #fff0ef; border-color: #b42318; }
.public-alert--danger strong { color: #841b13; }
.public-alert--warning { background: #fff8e8; border-color: #b26a00; }
.public-alert small, .public-alert span { color: #5d5a52; }

/* Shared public warning list. The same cards are shown above page content and
   on the warnings page so that alert priority and interaction stay consistent. */
.site-alerts { background: #fff7e8; border-bottom: 1px solid #f0d49b; padding: 0.85rem 0; }
.site-alerts__header { align-items: end; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; margin-bottom: 0.65rem; }
.site-alerts__eyebrow { color: #8d241f; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; margin: 0 0 0.15rem; text-transform: uppercase; }
.site-alerts h2 { align-items: center; color: #412009; display: flex; font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.4rem); gap: 0.45rem; margin: 0; }
.site-alerts__all-link { align-items: center; color: #744600; display: inline-flex; font-size: 0.9rem; font-weight: 700; gap: 0.4rem; text-decoration: none; }
.site-alerts__all-link:hover, .site-alerts__all-link:focus-visible { color: #412009; text-decoration: underline; }
.site-alerts__list { display: grid; gap: 0.55rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.site-alert-card { align-items: center; background: #fff; border: 1px solid #eed39d; border-left: 0.35rem solid #b26a00; border-radius: 0.5rem; color: #172b3a; display: flex; gap: 0.8rem; min-height: 3.9rem; padding: 0.6rem 0.8rem; text-decoration: none; transition: box-shadow 0.18s ease, transform 0.18s ease; }
.site-alert-card:hover { box-shadow: 0 0.35rem 0.9rem rgba(80, 48, 7, 0.14); color: #172b3a; transform: translateY(-1px); }
.site-alert-card:focus-visible { box-shadow: 0 0 0 0.24rem rgba(178, 106, 0, 0.3); color: #172b3a; outline: none; }
.site-alert-card--danger { border-color: #edb7b2; border-left-color: #b42318; }
.site-alert-card--info { border-color: #b8d8ef; border-left-color: #1565c0; }
.site-alert-card__icon { align-items: center; background: #fff1d2; border-radius: 50%; color: #8d5100; display: inline-flex; flex: 0 0 2.25rem; font-size: 1.25rem; height: 2.25rem; justify-content: center; width: 2.25rem; }
.site-alert-card--danger .site-alert-card__icon { background: #fff0ef; color: #b42318; }
.site-alert-card--info .site-alert-card__icon { background: #edf4ff; color: #1565c0; }
.site-alert-card__content { display: grid; flex: 1 1 auto; gap: 0.22rem; min-width: 0; }
.site-alert-card__heading { align-items: center; display: flex; gap: 0.5rem; justify-content: space-between; min-width: 0; }
.site-alert-card__title { color: #412009; font-weight: 800; overflow-wrap: anywhere; }
.site-alert-card--danger .site-alert-card__title { color: #841b13; }
.site-alert-card--info .site-alert-card__title { color: #0b4a90; }
.site-alert-card__meta { color: #5d5a52; font-size: 0.85rem; overflow-wrap: anywhere; }
.site-alert-card__meta .bi { margin-right: 0.25rem; }
.site-alert-card__action { align-items: center; color: #744600; display: inline-flex; flex: 0 0 auto; font-size: 0.85rem; font-weight: 700; gap: 0.4rem; white-space: nowrap; }
.severity-badge { border: 1px solid currentColor; border-radius: 999px; display: inline-flex; flex: 0 0 auto; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1; padding: 0.3rem 0.48rem; text-transform: uppercase; white-space: nowrap; }
.severity-badge--danger { background: #b42318; border-color: #b42318; color: #fff; }
.severity-badge--warning { background: #fff0ce; border-color: #b26a00; color: #704300; }
.severity-badge--info { background: #eaf3ff; border-color: #1565c0; color: #0b4a90; }
.site-alerts--compact { background: #fff6df; border-bottom: 1px solid #e6ad35; border-top: 3px solid #c63b28; padding: 0.35rem 0; }
.site-alerts--compact > .container { align-items: center; display: grid; gap: 0.5rem 0.75rem; grid-template-columns: auto minmax(0, 1fr) auto; }
.site-alerts__summary { align-items: center; color: #7d2018; display: inline-flex; font-size: 0.8rem; font-weight: 800; gap: 0.45rem; text-decoration: none; white-space: nowrap; }
.site-alerts__summary:hover, .site-alerts__summary:focus-visible { color: #a22a1e; text-decoration: underline; }
.site-alerts__summary-icon { align-items: center; background: #c63b28; border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 1.75rem; height: 1.75rem; justify-content: center; width: 1.75rem; }
.site-alerts__controls { align-items: center; display: flex; gap: 0.3rem; }
.site-alerts__position { color: #785f46; font-size: 0.68rem; font-weight: 700; margin-right: 0.1rem; white-space: nowrap; }
.site-alerts__control { align-items: center; background: #fff; border: 1px solid #d9a957; border-radius: 50%; color: #7d2018; display: inline-flex; height: 1.75rem; justify-content: center; padding: 0; transition: background 0.18s ease, border-color 0.18s ease; width: 1.75rem; }
.site-alerts__control:hover, .site-alerts__control:focus-visible { background: #c63b28; border-color: #c63b28; color: #fff; outline: none; }
.site-alerts__control:disabled { cursor: default; opacity: 0.4; }
.site-alerts--compact .site-alerts__list { display: flex; gap: 0.5rem; min-width: 0; overflow-x: auto; padding: 0.08rem 0.15rem; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.site-alerts--compact .site-alerts__list::-webkit-scrollbar { display: none; }
.site-alerts--compact .site-alert-card { background: #fff; border-color: #e8c27c; box-shadow: none; flex: 0 0 100%; gap: 0.5rem; min-height: 2.9rem; padding: 0.3rem 0.55rem; scroll-snap-align: start; }
.site-alerts--compact .site-alert-card--danger { background: #fffafa; border-color: #e7aaa4; border-left-color: #b42318; }
.site-alerts--compact .site-alert-card--warning { border-color: #e8c27c; border-left-color: #b26a00; }
.site-alerts--compact .site-alert-card--info { background: #fbfdff; border-color: #b5d3ea; border-left-color: #1565c0; }
.site-alerts--compact .site-alert-card:hover { box-shadow: 0 0.2rem 0.55rem rgba(91, 45, 7, 0.12); }
.site-alerts--compact .site-alert-card__icon { flex-basis: 1.65rem; font-size: 0.9rem; height: 1.65rem; width: 1.65rem; }
.site-alerts--compact .site-alert-card__content { gap: 0.05rem; }
.site-alerts--compact .site-alert-card__title { font-size: 0.84rem; }
.site-alerts--compact .severity-badge { font-size: 0.56rem; padding: 0.25rem 0.38rem; }
.site-alerts--compact .site-alert-card__meta { font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-alerts--compact .site-alert-card__action { font-size: 0; }
.site-alerts--compact .site-alert-card__action .bi { font-size: 0.85rem; }
.warning-hero { padding-bottom: clamp(2rem, 4vw, 3.25rem); padding-top: clamp(2rem, 4vw, 3.25rem); }
.warning-hero--danger { background: linear-gradient(125deg, #4f120d, #8c2118); border-bottom-color: #e25145; }
.warning-hero--warning { background: linear-gradient(125deg, #4d2c03, #8a5208); border-bottom-color: #f2ae35; }
.warning-hero--info { background: linear-gradient(125deg, #082f58, #125b9f); border-bottom-color: #5ea5e5; }
.warning-hero__heading { align-items: center; display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-bottom: 0.7rem; }
.warning-hero__heading h1 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.severity-badge--hero { background: rgba(255, 255, 255, 0.94); border-color: rgba(255, 255, 255, 0.9); box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.15); font-size: 0.7rem; padding: 0.42rem 0.62rem; }
.severity-badge--hero.severity-badge--danger { color: #9c1f16; }
.severity-badge--hero.severity-badge--warning { color: #704300; }
.severity-badge--hero.severity-badge--info { color: #0b4a90; }
.warning-detail { background: #fff; border: 1px solid #eed39d; border-left: 0.4rem solid #b26a00; border-radius: 0.65rem; overflow: hidden; }
.warning-detail--danger { border-color: #edb7b2; border-left-color: #b42318; }
.warning-detail--info { border-color: #b8d8ef; border-left-color: #1565c0; }
.warning-detail__meta { background: #fff8e8; color: #5d5a52; display: grid; gap: 0.5rem; padding: 1rem 1.25rem; }
.warning-detail--danger .warning-detail__meta { background: #fff0ef; }
.warning-detail--info .warning-detail__meta { background: #edf5ff; }
.warning-detail__meta span { overflow-wrap: anywhere; }
.warning-detail__meta .bi { color: #8d5100; margin-right: 0.45rem; }
.warning-detail__content { color: #283c4b; line-height: 1.7; padding: 1.25rem; }

.current-observation { background: #fff; border: 1px solid #dbe4e9; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.current-observation > div { border-right: 1px solid #e1e9ed; display: grid; gap: 0.25rem; padding: 1rem; }
.current-observation > div:last-child { border-right: 0; }
.current-observation span, .current-observation small { color: #68808e; font-size: 0.75rem; }
.current-observation strong { color: #173d55; font-family: var(--font-heading); font-size: 1.15rem; }

.dss-card { background: #fff; border: 1px solid #dbe4e9; border-top: 4px solid #0b6379; color: #172b3a; display: block; height: 100%; padding: 1.35rem; text-decoration: none; }
.dss-card:hover, .dss-card:focus-visible { background: #f4f8fa; color: #172b3a; outline: 3px solid rgba(11, 127, 146, 0.3); outline-offset: 2px; }
.dss-card h2 { font-size: 1.15rem; margin: 0.85rem 0 0.5rem; }
.dss-card p { color: #5d7481; margin-bottom: 1rem; }
.dss-card small { color: #68808e; }
.dss-card__code { background: #e7f2f4; color: #0b6379; font-size: 0.76rem; font-weight: 800; padding: 0.2rem 0.4rem; }
.dss-card--danger { border-top-color: #b42318; }.dss-card--danger .dss-card__code { background: #fff0ef; color: #841b13; }
.dss-card--blue { border-top-color: #1565c0; }.dss-card--blue .dss-card__code { background: #edf4ff; color: #0b4a90; }
.dss-card--gold { border-top-color: #b26a00; }.dss-card--gold .dss-card__code { background: #fff8e8; color: #805000; }
.dss-card--green { border-top-color: #198754; }.dss-card--green .dss-card__code { background: #edf8f2; color: #146c43; }

.public-main .list-group-item {
    background: transparent;
}

.public-main .table > :not(caption) > * > * {
    border-bottom-color: #e1e9ed;
}

.public-main .table thead th {
    background: #f0f5f7;
    color: #284457;
    font-size: 0.76rem;
    text-transform: uppercase;
}

.public-footer {
    background: #071d2c;
    border-top: 4px solid #f2bf49;
}

.public-footer a:hover {
    color: #fff !important;
}

/* Final desktop sizing overrides come after the public design-system rules so
   the complete navigation and account controls never overflow the viewport. */
@media (min-width: 1400px) and (max-width: 2199.98px) {
    .portal-main-navbar .portal-navigation .nav-link {
        font-size: 0.78rem;
        gap: 0.28rem;
        padding: 0.68rem 0.42rem;
    }

    .portal-main-navbar .portal-navigation .nav-link > .bi {
        font-size: 0.88rem;
    }

    .portal-main-navbar .public-navbar-desktop-utility {
        gap: 0.25rem !important;
    }
}

@media (min-width: 1400px) and (max-width: 1999.98px) {
    .portal-main-navbar .navbar-brand {
        margin-right: 0.25rem;
    }
}

@media (max-width: 1199.98px) {
    .portal-hero,
    .portal-hero__content { min-height: auto; }
    .portal-hero__content { padding-bottom: 3rem; padding-top: 4rem; }
}

@media (max-width: 1399.98px) {
    .portal-main-navbar .navbar-collapse {
        max-height: calc(100vh - 7.5rem);
        overscroll-behavior: contain;
        overflow-y: auto;
        padding: 0.6rem 0 1rem;
    }

    .portal-navigation {
        align-items: stretch;
        flex: 0 0 100%;
        gap: 0.1rem;
        width: 100%;
    }

    .portal-navigation .nav-item {
        width: 100%;
    }

    .portal-main-navbar .portal-navigation .nav-link {
        font-size: 0.9rem;
        justify-content: flex-start;
        padding: 0.7rem 0.85rem;
        width: 100%;
    }

    .portal-main-navbar .portal-navigation .dropdown-menu {
        border: 0 !important;
        box-shadow: none !important;
        float: none;
        margin: 0 0 0.35rem 1rem;
        max-height: none;
        position: static;
        width: auto;
    }

    .portal-main-navbar .portal-navigation .structured-nav-menu {
        min-width: 0;
    }

    .portal-main-navbar .portal-navigation .public-nav-menu-item {
        padding-left: 0.85rem;
    }
}

/* Mobile browser chrome changes the visible viewport while scrolling. Prefer
   dynamic viewport units where supported, without dropping the stable vh
   fallback above for older browsers. */
@supports (height: 100dvh) {
    @media (max-width: 1399.98px) {
        .portal-main-navbar .navbar-collapse {
            max-height: calc(100dvh - 7.5rem);
        }
    }
}

@media (max-width: 991.98px) {
    .site-alerts--compact > .container { grid-template-columns: minmax(0, 1fr) auto; }
    .site-alerts--compact .site-alerts__summary { grid-column: 1; }
    .site-alerts--compact .site-alerts__controls { grid-column: 2; }
    .site-alerts--compact .site-alerts__list { grid-column: 1 / -1; grid-row: 2; width: 100%; }
    .site-alerts--compact .site-alert-card { flex-basis: 100%; }
}

@media (max-width: 767.98px) {
    .portal-hero { background-position: 58% center; }
    .portal-hero__content { padding-bottom: 2.5rem; padding-top: 3.25rem; }
    .portal-live-reading { margin-top: 1rem; padding-left: 1rem; }
    .portal-live-reading__topline { align-items: start; flex-direction: column; gap: 0.25rem; }
    .portal-live-reading__topline small { text-align: left; }
    .portal-live-reading__metrics { gap: 0.55rem 0.8rem; }
    .home-station-map { height: 20rem; }
    .municipality-conditions__header { align-items: start; }
    .municipality-conditions__rail { grid-auto-columns: minmax(10.75rem, 78vw); }
    .current-observation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .current-observation > div:nth-child(2) { border-right: 0; }
    .current-observation > div:nth-child(-n+2) { border-bottom: 1px solid #e1e9ed; }
    .site-alerts { padding: 1rem 0; }
    .site-alerts__header { align-items: start; flex-direction: column; gap: 0.45rem; }
    .site-alert-card { align-items: start; }
    .site-alert-card__action { font-size: 0; padding-top: 0.2rem; }
    .site-alert-card__action .bi { font-size: 1rem; }
    .site-alerts--compact { padding: 0.35rem 0; }
    .site-alerts--compact > .container { grid-template-columns: minmax(0, 1fr) auto; }
    .site-alerts--compact .site-alerts__summary { grid-column: 1; }
    .site-alerts--compact .site-alerts__controls { grid-column: 2; }
    .site-alerts--compact .site-alerts__list { grid-column: 1 / -1; grid-row: 2; width: 100%; }
    .site-alerts--compact .site-alert-card { flex-basis: 100%; }
    .site-alerts--compact .site-alerts__position { display: none; }
    .warning-hero { padding-bottom: 1.75rem; padding-top: 1.75rem; }
    .warning-hero h1 { font-size: clamp(1.6rem, 8vw, 2.25rem); }
    .warning-detail-page { padding-bottom: 2rem !important; padding-top: 2rem !important; }
    .warning-detail__meta, .warning-detail__content { padding: 0.9rem; }
    .warning-detail__actions .btn { width: 100%; }
}

@media (max-width: 420px) {
    .site-alerts__summary { font-size: 0.72rem; }
    .site-alerts__summary-icon { flex-basis: 1.6rem; height: 1.6rem; width: 1.6rem; }
    .site-alerts__control { height: 1.65rem; width: 1.65rem; }
    .site-alerts--compact .site-alert-card { padding-left: 0.42rem; padding-right: 0.42rem; }
    .site-alerts--compact .site-alert-card__meta { max-width: calc(100vw - 8rem); }
}
