/* Project-specific overrides. Keep local branding adjustments here so style.css remains reusable. */
/* =========================================================
   LIVE SERVICE RESOURCES MENU
   ========================================================= */

/* Dark overlay behind open menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 998;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}


/* Slide-out panel */
.resources-menu {
    position: fixed;
    top: 0;
    left: 0;

    width: 390px;
    max-width: 90vw;
    height: 100vh;

    background: #ffffff;
    z-index: 999;

    transform: translateX(-100%);
    transition: transform 0.3s ease;

    overflow-y: auto;

    box-shadow:
        4px 0 20px rgba(0, 0, 0, 0.18);
}

.resources-menu.is-open {
    transform: translateX(0);
}


/* =========================================================
   MENU HEADER
   ========================================================= */

.resources-menu-header {
    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 25px;

    background: #0b2341;
    color: #ffffff;
}

.resources-menu-label {
    display: block;

    margin-bottom: 5px;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.resources-menu-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 1.6rem;
    font-weight: 700;
}


/* Close button */
.menu-close {
    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #ffffff;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}

.menu-close:hover,
.menu-close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}


/* =========================================================
   NAVIGATION GROUPS
   ========================================================= */

.resources-menu-nav {
    padding: 10px 0 40px;
}

.menu-group {
    padding: 20px 0 10px;
}

.menu-group + .menu-group {
    border-top: 1px solid #e4e7ea;
}


/* Group heading */
.menu-group-title {
    margin: 0;
    padding: 0 25px 10px;

    color: #0b2341;

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   MENU LINKS
   ========================================================= */

.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 48px;

    padding: 10px 25px;

    color: #20252b;

    font-size: 0.95rem;
    font-weight: 500;

    line-height: 1.35;

    text-decoration: none;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.menu-link:hover {
    background: #f4f6f7;
    color: #0b2341;
}

.menu-link:focus-visible {
    outline: 3px solid #00b6ed;
    outline-offset: -3px;
}

.menu-link-arrow {
    margin-left: 15px;

    color: #66727c;

    font-size: 1.5rem;
}


/* Prevent page scrolling while menu is open */
body.menu-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .resources-menu {
        width: 330px;
        max-width: 88vw;
    }

    .resources-menu-header {
        min-height: 90px;
        padding: 18px 20px;
    }

    .menu-group-title {
        padding-left: 20px;
        padding-right: 20px;
    }

    .menu-link {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* Respect reduced-motion accessibility preference */
@media (prefers-reduced-motion: reduce) {

    .resources-menu,
    .menu-overlay {
        transition: none;
    }
}

/* Brand-aligned refinements */
.resources-menu { font-family: "Open Sans", Arial, Helvetica, sans-serif; }
.resources-menu-header { border-bottom: 4px solid #74ac57; }
.menu-group-title { color: #0b2341; }
.menu-link:hover .menu-link-arrow { color: #008d97; }
.menu-close:focus-visible { outline: 3px solid #00b6ed; outline-offset: 2px; }

/* =========================================================
   SECTION DIVIDER
   ========================================================= */

.section-divider {
    display: flex;
    align-items: center;
    gap: 18px;

    width: 100%;
    max-width: 1140px;

    margin: 20px auto 0px;
    padding: 0 24px;

    color: #008d97;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d7dce2;
}

.section-divider span {
    flex-shrink: 0;

    font-family: "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}
/* =========================================================
   HELP DIALOG
   ========================================================= */

/* Dark background displayed behind the Help dialog */
.help-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    background: rgba(0, 0, 0, 0.40);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.help-overlay.is-open {
    opacity: 1;
    visibility: visible;
}


/* Help window */
.help-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1001;

    width: min(460px, calc(100% - 40px));

    background: #ffffff;
    border-radius: 8px;

    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);

    opacity: 0;
    visibility: hidden;

    transform: translate(-50%, -48%) scale(0.98);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.help-dialog.is-open {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, -50%) scale(1);
}


/* =========================================================
   HELP HEADER
   ========================================================= */

.help-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 24px;

    background: #0b2341;
    color: #ffffff;

    border-bottom: 4px solid #74ac57;
    border-radius: 8px 8px 0 0;
}

.help-dialog-label {
    display: block;

    margin-bottom: 3px;

    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.help-dialog-header h2 {
    margin: 0;

    color: #ffffff;

    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}


/* Close button */
.help-close {
    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #ffffff;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}

.help-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.help-close:focus-visible {
    outline: 3px solid #00b6ed;
    outline-offset: 2px;
}


/* =========================================================
   HELP CONTENT
   ========================================================= */

.help-dialog-content {
    padding: 26px 28px 30px;

    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    color: #20252b;
}

.help-dialog-content h3 {
    margin: 0 0 8px;

    color: #0b2341;

    font-size: 1.1rem;
    font-weight: 700;
}

.help-dialog-content p {
    margin: 0 0 24px;

    color: #5b6570;

    font-size: 0.92rem;
    line-height: 1.6;
}


/* Contact information */
.help-contact {
    border-top: 1px solid #d8dde2;
}

.help-contact-item {
    padding: 15px 0;

    border-bottom: 1px solid #d8dde2;
}

.help-contact-label {
    display: block;

    margin-bottom: 3px;

    color: #5b6570;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.help-contact-item a {
    color: #0b2341;

    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;
}

.help-contact-item a:hover {
    color: #008d97;
    text-decoration: underline;
}

.help-contact-item a:focus-visible {
    outline: 3px solid #00b6ed;
    outline-offset: 3px;
}


/* Prevent page scrolling while Help is open */
body.help-open {
    overflow: hidden;
}


/* =========================================================
   HELP ICON BUTTON RESET
   Allows the existing .help-link styling to work on a button.
   ========================================================= */

button.help-link {
    padding: 0;

    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 1rem;

    background: transparent;

    cursor: pointer;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .help-dialog {
        width: calc(100% - 30px);
    }

    .help-dialog-header {
        padding: 18px 20px;
    }

    .help-dialog-content {
        padding: 22px 20px 26px;
    }
}


/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

    .help-overlay,
    .help-dialog {
        transition: none;
    }
}

.external-link-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 4px;
    vertical-align: -2px;
    fill: currentColor;
}

/* =========================================================
   STICKY FOOTER
   Keeps footer at bottom of viewport on larger screens.
   Allows natural scrolling when content is taller.
   ========================================================= */

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}