/*
 * ATOMS - Air Task Order Management System
 * RAAF Virtual theme
 *
 * Visual direction is derived from the supplied legacy RAAFv public site:
 * Air Force navy, medium-grey module headers, white bordered content panels,
 * fixed-width desktop presentation and the legacy cloud background.
 */

:root {
    --atoms-navy: #091130;
    --atoms-navy-soft: #17244f;
    --atoms-grey: #b5b5b5;
    --atoms-grey-light: #e7e7e7;
    --atoms-border: #091130;
    --atoms-link: #182a61;
    --atoms-text: #222222;
    --atoms-white: #ffffff;
    --atoms-alert: #a40000;
}

html {
    min-width: 1100px;
    background: #e1e1e1;
}

body {
    margin: 0;
    padding: 0;
    min-width: 1100px;
    background: #e1e1e1 url('/images/raafv/page_bg.jpg') no-repeat top center fixed;
    background-size: cover;
    color: var(--atoms-text);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    -webkit-text-size-adjust: none;
}

#wrap {
    width: 1100px !important;
    max-width: 1100px !important;
    min-width: 1100px !important;
    margin: 0 auto 24px auto !important;
    padding: 0 3px 3px 3px !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--atoms-text);
}

#header-left,
#header-right {
    height: 82px !important;
    min-height: 82px !important;
    margin: 0 !important;
    box-sizing: border-box;
    border-top: 3px double #d9dce8;
    border-bottom: 3px double #d9dce8;
    background:
        linear-gradient(100deg, #091130 0%, #18234a 17%, #eef0f4 48%, #ffffff 58%, #17234b 84%, #091130 100%);
}

#header-left {
    width: 64% !important;
    padding: 0 0 0 28px !important;
    display: flex !important;
    align-items: center !important;
    float: left !important;
}

#header-right {
    width: 36% !important;
    padding: 0 22px 0 0 !important;
    line-height: 76px !important;
    float: right !important;
    color: #111;
}

.atoms-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 76px;
}

.atoms-brand-roundel {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.88;
}

.atoms-brand-copy {
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255,255,255,0.65);
}

.atoms-brand-title {
    display: block;
    color: #080f28;
    font-family: Arial Black, Arial, Helvetica, sans-serif;
    font-size: 31px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -1.6px;
}

.atoms-brand-subtitle {
    display: block;
    margin-top: 5px;
    color: #25304c;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: bold;
    letter-spacing: 1.35px;
    text-transform: uppercase;
}

.header-clear {
    clear: both;
    height: 6px;
}

#frontphoto {
    width: 1094px !important;
    max-width: 1094px !important;
    height: 142px !important;
    margin: 0 0 7px 0 !important;
    border: 1px solid var(--atoms-border) !important;
    background: #fff;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Full-browser-width banner behind the existing centred header. */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 82px;
    box-sizing: border-box;
    border-top: 3px double #d9dce8;
    border-bottom: 3px double #d9dce8;
    background: linear-gradient(100deg, #091130 0%, #18234a 17%, #eef0f4 48%, #ffffff 58%, #17234b 84%, #091130 100%);
    pointer-events: none;
}

/* Keep the existing logo, login controls and header content at their original width. */
#wrap {
    position: relative;
}

#header-left,
#header-right {
    background: transparent !important;
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
}

/* Login / user area */
#header-right a,
#header-right a:visited {
    color: #091130 !important;
    font-weight: bold;
}

.aav-header-login-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.aav-header-login-form {
    gap: 4px !important;
}

.aav-header-input {
    border: 1px solid #6f7890 !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,0.92) !important;
    font: 11px Verdana, Arial, sans-serif !important;
    height: 25px !important;
}

.aav-header-login-btn {
    height: 25px !important;
    border: 1px solid #091130 !important;
    border-radius: 0 !important;
    background: #091130 !important;
    color: #fff !important;
    font: bold 10px Verdana, Arial, sans-serif !important;
    text-transform: uppercase;
}

.aav-header-reset-link {
    color: #091130 !important;
    font-size: 10px !important;
}

/* Main five-section navigation: old RAAF module look instead of AAV tiles. */
.av-section-nav {
    width: 1094px !important;
    max-width: 1094px !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    gap: 3px !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.av-section-nav a,
.av-section-nav a:visited,
.av-section-nav .av-section-nav-placeholder {
    height: 29px !important;
    min-height: 29px !important;
    padding: 0 8px !important;
    border: 1px solid var(--atoms-border) !important;
    border-radius: 0 !important;
    background: #b5b5b5 !important;
    box-shadow: none !important;
    color: #091130 !important;
    font-family: Verdana, Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    transform: none !important;
}

.av-section-nav a:hover,
.av-section-nav a.active {
    background: #091130 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

.av-section-nav .av-section-iconwrap {
    display: none !important;
}

.av-section-nav .av-section-label {
    text-shadow: none !important;
}

/* Left module navigation */
#avmenu {
    width: 200px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 10px !important;
}

#avmenu .menu-heading {
    width: 200px !important;
    margin: 0 0 2px 0 !important;
    border: 1px solid var(--atoms-border) !important;
    background: var(--atoms-grey) !important;
}

#avmenu .menu-heading a,
#avmenu .menu-heading a:visited {
    padding: 4px 6px !important;
    background: var(--atoms-grey) !important;
    color: var(--atoms-navy) !important;
    font: bold 10px Verdana, Arial, sans-serif !important;
    text-transform: uppercase;
}

#avmenu ul {
    width: 200px !important;
    margin: 0 0 4px 0 !important;
    padding: 2px 0 !important;
    border: 1px solid var(--atoms-border);
    background: #ffffff;
}

#avmenu > ul > li > a,
#avmenu .submenu-label,
#avmenu .submenu li a {
    min-height: 0 !important;
    padding: 4px 7px !important;
    border: 0 !important;
    border-left: 0 !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-family: Verdana, Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
    font-weight: normal !important;
    line-height: 1.35 !important;
}

#avmenu > ul > li > a:hover,
#avmenu > ul > li > a.active,
#avmenu .submenu-label:hover,
#avmenu .submenu-toggle:checked + .submenu-label,
#avmenu .submenu li a:hover,
#avmenu .submenu li a.active {
    background: #e5e5e5 !important;
    color: #091130 !important;
    font-weight: bold !important;
}

#avmenu .submenu-label::after {
    color: #091130 !important;
}

/* Main content panel mirrors the legacy article box. */
#content1 {
    width: 1094px;
    margin: 0 0 4px 0 !important;
    padding: 10px !important;
    border: 1px solid var(--atoms-border);
    background: #ffffff;
    line-height: 1.55em;
    text-align: left;
}

#content2 {
    margin: 0 0 8px 207px !important;
    padding: 10px 12px 18px 12px !important;
    min-height: 500px !important;
    border: 1px solid var(--atoms-border) !important;
    background: #ffffff !important;
    line-height: 1.55em !important;
    text-align: left !important;
}

#content2::before {
    content: '';
    display: block;
    height: 17px;
    margin: -10px -12px 10px -12px;
    border-bottom: 1px solid #091130;
    background: #091130;
}

#content1 p,
#content2 p,
#content1 li,
#content2 li {
    text-align: justify;
}

h1 {
    margin: 0 0 8px 0 !important;
    color: #091130;
    font-family: Verdana, Arial, Helvetica, sans-serif !important;
    font-size: 18px !important;
}

h2 {
    color: #091130;
    font-family: Verdana, Arial, Helvetica, sans-serif !important;
}

h3 {
    color: #091130 !important;
    font-family: Verdana, Arial, Helvetica, sans-serif !important;
    text-decoration: none !important;
}

h4,
h5,
h6 {
    font-family: Verdana, Arial, Helvetica, sans-serif !important;
}

a,
a:visited {
    color: var(--atoms-link);
}

a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Home screen */
.home-links {
    margin: 14px 0 20px 0 !important;
    gap: 8px !important;
    justify-content: space-between !important;
}

.home-link,
.home-link:visited {
    width: 250px !important;
    color: #091130 !important;
}

.home-link-box {
    width: 250px !important;
    height: 88px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #091130 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

.home-link-box::before {
    content: 'ATOMS';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    padding: 2px 7px 0 7px;
    box-sizing: border-box;
    background: #091130;
    color: #ffffff;
    font: bold 9px Verdana, Arial, sans-serif;
    letter-spacing: .8px;
    text-align: left;
}

.home-link:hover .home-link-box {
    border-color: #091130 !important;
    background: #efefef !important;
    box-shadow: none !important;
    transform: none !important;
}

.home-link-iconwrap {
    display: none !important;
}

.home-link-label {
    top: 18px !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #091130 !important;
    font: bold 14px Verdana, Arial, sans-serif !important;
    text-transform: uppercase;
    text-shadow: none !important;
}

.home-link-badge {
    top: 25px !important;
    right: 7px !important;
    border-radius: 0 !important;
    border: 1px solid #640000 !important;
    background: #a40000 !important;
    height: 22px !important;
    min-width: 22px !important;
    line-height: 20px !important;
    font-size: 9px !important;
    box-shadow: none !important;
}

/* Common cards and tables */
.inner-article,
.aav-home-booking-card,
.ato-card,
.card,
.panel,
.box {
    border-radius: 0 !important;
}

div.inner-article-header,
.article_header,
.panel-heading,
.card-header {
    background: #091130 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
}

table {
    border-color: #c2c2c2;
}

.zui-table {
    border-color: #9b9b9b !important;
}

.zui-table thead th {
    background: #b5b5b5 !important;
    border-color: #9b9b9b !important;
    color: #091130 !important;
}

.zui-table tbody td {
    border-color: #c8c8c8 !important;
}

.button-success,
.button-error,
.button-warning,
.button-secondary,
button,
input[type='submit'],
input[type='button'],
.pure-button {
    border-radius: 0 !important;
}

.notif-menu {
    border-radius: 0 !important;
    border-color: #091130 !important;
}

/* Footer */
#footer-before {
    width: 1094px;
    margin: 0 !important;
}

#footer {
    margin: 4px 0 0 0 !important;
    padding: 7px 10px !important;
    border: 1px solid #091130 !important;
    background: #ffffff;
    color: #333333 !important;
    font-size: 9px !important;
}

#footer a,
#footer a:visited {
    color: #091130 !important;
}

/* Retain the deliberate fixed desktop layout on phones, like the supplied RAAFv site. */
@media (max-width: 1100px) {
    html,
    body {
        width: 1100px !important;
        min-width: 1100px !important;
        overflow-x: auto !important;
        background: #e1e1e1 url('/images/raafv/page_bg.jpg') no-repeat top center fixed !important;
        background-size: cover !important;
    }

    #wrap {
        width: 1100px !important;
        min-width: 1100px !important;
        max-width: 1100px !important;
        margin: 0 auto 24px auto !important;
        padding: 0 3px 3px 3px !important;
    }

    #frontphoto {
        width: 1094px !important;
        max-width: 1094px !important;
        margin: 0 0 7px 0 !important;
    }
}

/* ATOMS v0.2: faithful RAAFv left navigation + adjacent article layout. */
.atoms-sidebar {
    float: left;
    width: 200px;
    margin: 0 0 18px 0;
    padding: 0;
    box-sizing: border-box;
    font: 10px Verdana, Arial, sans-serif;
}
.atoms-side-group { margin: 0 0 7px 0; border: 1px solid #091130; background: #fff; }
.atoms-side-heading { padding: 5px 7px; background: #b5b5b5; border-bottom: 1px solid #091130; color: #091130; font-weight: bold; text-transform: uppercase; }
.atoms-side-heading a, .atoms-side-heading a:visited { color: #091130; text-decoration: none; }
.atoms-side-group ul { margin: 0; padding: 5px 0; list-style: none; }
.atoms-side-group li { margin: 0; padding: 0; list-style: none; }
.atoms-side-group li a, .atoms-side-group li a:visited { display: block; padding: 4px 8px; color: #111; text-decoration: none; line-height: 1.3; overflow-wrap: anywhere; }
.atoms-side-group li a:hover, .atoms-side-group li a.active { color: #091130; background: #e8e8e8; font-weight: bold; }
.atoms-side-caption { margin-top: 6px !important; padding: 4px 8px 2px !important; font-weight: bold; color: #091130; background: #f0f0f0; border-top: 1px solid #ddd; }
/* Hide inherited section tabs and per-page menu duplicates without altering routes. */
.av-section-nav, #avmenu { display: none !important; }
#content1, #content2 {
    width: 887px !important;
    max-width: 887px !important;
    margin: 0 0 12px 207px !important;
    box-sizing: border-box !important;
    padding: 10px 12px 18px !important;
    min-height: 480px;
    float: none !important;
    background: #fff !important;
    border: 1px solid #091130 !important;
    overflow: visible;
}
#content2::before { margin-left: -12px; margin-right: -12px; }
.home-links { display: none !important; }
#footer-before { clear: both; }
#wrap::after { content: ''; display: block; clear: both; }
@media (max-width: 1100px) { .atoms-sidebar { width: 200px; } }

/* ATOMS: keep header account controls legible over the navy banner. */
#header-right,
#header-right a,
#header-right a:visited,
#header-right a:hover,
#header-right a:focus {
    color: #fff !important;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .98), 0 0 8px rgba(0, 0, 0, .85) !important;
}
#header-right svg,
#header-right svg * {
    color: #fff !important;
    stroke: currentColor;
}

/* Notifications is nested in the existing #content2, not a second page panel. */
#content2 .atoms-notifications-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    border: 0 !important;
    background: transparent !important;
    min-height: 0 !important;
}
#content2 .atoms-notifications-page > div {
    max-width: 100%;
    box-sizing: border-box;
}

/* Compact ATOMS navigation: native, keyboard-accessible accordion sections. */
/* The currently selected section/subsection is opened by atoms-sidebar.php. */
.atoms-sidebar details.atoms-side-accordion {
    display: block;
    margin: 0 0 7px 0;
}
.atoms-sidebar details > summary {
    display: block;
    list-style: none;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
    font-family: Verdana, Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: none !important;
}
.atoms-sidebar details > summary::-webkit-details-marker {
    display: none;
}
.atoms-sidebar details > summary::marker {
    content: '';
}
.atoms-sidebar details.atoms-side-accordion > summary.atoms-side-heading {
    padding: 5px 24px 5px 7px !important;
    border-bottom: 0;
    background: #b5b5b5;
    color: #091130;
    font-weight: bold !important;
    text-transform: uppercase;
}
.atoms-sidebar details.atoms-side-accordion[open] > summary.atoms-side-heading {
    border-bottom: 1px solid #091130;
}
.atoms-sidebar details > summary::after {
    content: '▸';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    line-height: 1;
    font-weight: normal;
}
.atoms-sidebar details[open] > summary::after {
    content: '▾';
}
.atoms-sidebar details.atoms-side-accordion > summary.atoms-side-heading:hover,
.atoms-sidebar details.atoms-side-accordion > summary.atoms-side-heading:focus-visible {
    color: #244c88 !important;
    background: #b5b5b5 !important;
}
.atoms-sidebar .atoms-side-group > ul {
    margin: 0;
    padding: 3px 0;
}
.atoms-sidebar .atoms-side-nested {
    padding: 0;
    margin: 0;
}
.atoms-sidebar .atoms-side-subgroup > summary.atoms-side-caption {
    margin: 0 !important;
    padding: 4px 24px 4px 15px !important;
    border-top: 1px solid #e1e1e1;
    border-bottom: 0;
    background: #f0f0f0;
    color: #091130;
    font-weight: bold !important;
    text-transform: none;
}
.atoms-sidebar .atoms-side-subgroup > summary.atoms-side-caption:hover,
.atoms-sidebar .atoms-side-subgroup > summary.atoms-side-caption:focus-visible {
    color: #244c88 !important;
    background: #f0f0f0 !important;
}
.atoms-sidebar .atoms-side-subgroup > ul {
    padding: 2px 0 3px 0;
    margin: 0;
    background: #fff;
    list-style: none;
}
.atoms-sidebar .atoms-side-subgroup > ul > li > a,
.atoms-sidebar .atoms-side-subgroup > ul > li > a:visited {
    padding-left: 27px !important;
}
/* Hover changes colour only, never font size, weight, scale or position. */
.atoms-sidebar li a,
.atoms-sidebar li a:visited,
.atoms-sidebar li a:hover,
.atoms-sidebar li a:focus-visible,
.atoms-sidebar li a.active {
    font-family: Verdana, Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
    font-weight: normal !important;
    line-height: 1.3 !important;
    transform: none !important;
    scale: none !important;
    zoom: 1 !important;
    box-shadow: none !important;
    transition: color .12s ease !important;
}
.atoms-sidebar li a:hover,
.atoms-sidebar li a:focus-visible {
    color: #244c88 !important;
    background: #fff !important;
}
.atoms-sidebar li a.active,
.atoms-sidebar li a[aria-current="page"] {
    color: #091130 !important;
    background: #e8edf5 !important;
    box-shadow: inset 3px 0 0 #091130 !important;
}
.atoms-sidebar li a.active:hover,
.atoms-sidebar li a[aria-current="page"]:hover {
    color: #244c88 !important;
    background: #e8edf5 !important;
}

/* ================================================================
   ATOMS heritage theme (RAAF Virtual): compact, clear and operational
   Approved visual refresh; CSS only. The fixed-width grid, page
   routes, controls, map behaviour and collapsible navigation remain.
   ================================================================ */

:root {
    --atoms-navy: #0c1c40;
    --atoms-navy-soft: #173a70;
    --atoms-grey: #c3c9d2;
    --atoms-grey-light: #edf1f7;
    --atoms-border: #173a70;
    --atoms-link: #1b4e94;
    --atoms-text: #202c3e;
}

html,
body {
    background-color: #245a9e !important;
    background-image:
        linear-gradient(rgba(36, 90, 158, 0.52), rgba(36, 90, 158, 0.52)),
        url('/images/raafv/page_bg.jpg') !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: center top, center top !important;
    background-size: cover, cover !important;
    background-attachment: fixed, fixed !important;
}
body::before {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 132px !important;
    border: 0 !important;
    background: linear-gradient(90deg, #081b40 0%, #143868 52%, #183f72 80%, #0b2349 100%) !important;
    pointer-events: none !important;
}

/* One integrated header instead of the separate photographic strip.
   The aircraft and roundel already belong to the ATOMS site. */
#wrap {
    /* Keep the 1100px page centred; its background must not paint below the header. */
    background: transparent !important;
    border: 0 !important;
}
#header-left,
#header-right {
    height: 132px !important;
    min-height: 132px !important;
    background: transparent !important;
    border: 0 !important;
}
#header-left {
    padding-left: 23px !important;
}
#header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-right: 19px !important;
    line-height: 1.3 !important;
    color: #fff !important;
    /* Backgrounds are clipped to the 132px header, not the entire page. */
    background-image:
        linear-gradient(90deg, #143868 0%, rgba(18, 54, 102, .26) 47%, rgba(8, 24, 58, .63) 100%),
        url('/images/raafv/superhornet3.jpg') !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: left top, right -54px !important;
    background-size: 100% 132px, 355px auto !important;
}
.atoms-brand {
    height: 132px !important;
    gap: 17px !important;
}
.atoms-brand-roundel {
    width: 80px !important;
    height: 80px !important;
    flex: 0 0 80px !important;
    padding: 5px !important;
    border: 1px solid rgba(255,255,255,.45) !important;
    border-radius: 50% !important;
    background: #e7f1ff !important;
    filter: none !important;
    opacity: 1 !important;
}
.atoms-brand-copy {
    line-height: 1.08 !important;
    text-shadow: 0 2px 3px rgba(0,0,0,.74) !important;
}
.atoms-brand-title {
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-style: italic !important;
    font-weight: 800 !important;
    font-size: 35px !important;
    letter-spacing: -.7px !important;
    text-shadow: 0 2px 5px rgba(0,0,0,.82) !important;
}
.atoms-brand-subtitle {
    margin-top: 7px !important;
    color: #e6effe !important;
    font-size: 10px !important;
    font-weight: bold !important;
    letter-spacing: .85px !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.9) !important;
}
#header-right,
#header-right a,
#header-right a:visited,
#header-right a:hover {
    color: #fff !important;
    text-shadow: 0 1px 4px #08152c, 0 2px 5px rgba(0,0,0,.9) !important;
}
#header-right .aav-header-login-btn {
    background: #143969 !important;
    border-color: #aac0e0 !important;
    color: white !important;
}
#header-right .aav-header-input {
    background: #fff !important;
    color: #15243f !important;
    text-shadow: none !important;
}
.header-clear {
    height: 9px !important;
}
#frontphoto,
#wrap > a:has(> #frontphoto) {
    display: none !important;
}

/* Heritage-style compact navigation with modern section collapse. */
.atoms-sidebar {
    margin-top: 0 !important;
    font-family: Verdana, Arial, Helvetica, sans-serif !important;
}
.atoms-sidebar .atoms-side-group {
    border: 1px solid #132d59 !important;
    background: #fff !important;
    margin-bottom: 5px !important;
}
.atoms-sidebar .atoms-side-heading,
.atoms-sidebar details.atoms-side-accordion > summary.atoms-side-heading {
    background: #c4cbd6 !important;
    color: #0c234c !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
.atoms-sidebar .atoms-side-group li a {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    font-size: 10px !important;
}
.atoms-sidebar .atoms-side-group li a:hover,
.atoms-sidebar .atoms-side-group li a:focus-visible {
    background: #fff !important;
    color: #2363af !important;
}
.atoms-sidebar .atoms-side-group li a.active,
.atoms-sidebar .atoms-side-group li a[aria-current="page"] {
    background: #e5edf8 !important;
    color: #0c234c !important;
}
.atoms-sidebar .atoms-side-subgroup > summary.atoms-side-caption {
    background: #edf1f7 !important;
    border-top-color: #d5deea !important;
    color: #163565 !important;
}

/* Preserve existing fixed two-column geometry and readable white pages. */
#content1,
#content2 {
    background: #fff !important;
    color: #202c3e !important;
    border: 1px solid #122e5d !important;
    border-top: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
#content2::before {
    background: #0c1c40 !important;
    border-bottom: 0 !important;
    height: 11px !important;
}
#content1 > h1,
#content2 > h1 {
    color: #102a54 !important;
    font-size: 20px !important;
    font-weight: bold !important;
    padding: 5px 0 9px !important;
    border-bottom: 1px solid #d3dbe8 !important;
    margin-bottom: 13px !important;
}
#content1 > h2,
#content2 > h2,
#content1 .full-width-atos > h2,
#content1 .full-width-news .news-heading-row > h2 {
    display: block !important;
    background: #0c1c40 !important;
    color: #fff !important;
    padding: 8px 11px !important;
    margin: 12px 0 9px !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}
#content1 .full-width-news .news-heading-row > h2 a,
#content1 .full-width-news .news-heading-row > h2 a:visited {
    color: #fff !important;
}

/* Dashboard: retain the content, replace the old green hero styling. */
#content1 .atoms-dashboard-hero {
    background: #fff !important;
    color: #1a2b44 !important;
    border: 1px solid #b5c5d9 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 0 13px !important;
    margin: 6px 0 15px !important;
}
#content1 .atoms-dashboard-hero .aav-hero-content h1 {
    background: #0c1c40 !important;
    color: #fff !important;
    padding: 10px 13px !important;
    margin: 0 0 11px !important;
    font-size: 17px !important;
    font-weight: bold !important;
    line-height: 1.35 !important;
    border-radius: 0 !important;
}
#content1 .atoms-dashboard-hero .aav-hero-content p {
    color: #25354e !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    padding: 0 13px !important;
    margin: 0 0 10px !important;
}
#content1 .atoms-dashboard-hero .aav-hero-features {
    color: #244268 !important;
    font-size: 12px !important;
    gap: 8px 15px !important;
    padding: 0 13px !important;
    margin: 0 !important;
}
#content1 .news-slider {
    border: 1px solid #c5d0df !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
#content1 .aav-live-map-shell {
    border-color: #c2cede !important;
}
#content1 .aav-live-map-top h2 {
    color: #102952 !important;
    font-size: 15px !important;
    font-weight: bold !important;
}

/* RAAF Virtual footer within the centered content width. */
#footer {
    background: #f6f8fc !important;
    border-color: #173a70 !important;
    color: #23395e !important;
}
#footer a,
#footer a:visited {
    color: #204a86 !important;
}

/* On phones retain the desktop width and original side-by-side columns. */
@media (max-width: 1100px) {
    html,
    body {
        background-color: #245a9e !important;
        background-image:
            linear-gradient(rgba(36, 90, 158, 0.52), rgba(36, 90, 158, 0.52)),
            url('/images/raafv/page_bg.jpg') !important;
        background-repeat: no-repeat, no-repeat !important;
        background-position: center top, center top !important;
        background-size: cover, cover !important;
        background-attachment: fixed, fixed !important;
    }
    #wrap {
        width: 1100px !important;
        min-width: 1100px !important;
        max-width: 1100px !important;
    }
}


/* ATOMS notification bell and dropdown: solid icon, crisp text, lifted panel. */
#header-right .notif-toggle svg path,
#header-right .notif-toggle:hover svg path,
#header-right .notif-wrap:hover .notif-toggle svg path,
#header-right .notif-wrap:focus-within .notif-toggle svg path {
    fill: #ffffff !important;
    stroke: none !important;
}

#header-right .notif-menu {
    border: 1px solid #9aaec8 !important;
    box-shadow: 0 14px 34px rgba(5, 19, 45, .38),
                0 3px 9px rgba(5, 19, 45, .22) !important;
    background: #ffffff !important;
    text-shadow: none !important;
}

/* The header's white text and dark shadow must not carry into the popup. */
#header-right .notif-menu,
#header-right .notif-menu * {
    text-shadow: none !important;
}
#header-right .notif-menu a,
#header-right .notif-menu a:visited,
#header-right .notif-menu a:hover,
#header-right .notif-menu a:focus {
    color: #23466f !important;
}
#header-right .notif-menu .notif-item,
#header-right .notif-menu .notif-item:visited {
    color: #1f2a33 !important;
}
