/* ==========================================================================
   Cybersecurity Readiness Session: highlight + responsive navigation styles
   Load AFTER main.css. Palette follows the site: navy #1e3c72, teal #4acaa8.
   ========================================================================== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* "NEW" pill, used in the banner, nav, and section */
.rs-pill {
    display: inline-block;
    background: #4acaa8;
    color: #0b2f27;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.6;
    padding: 0 .65em;
    border-radius: 999px;
    vertical-align: middle;
}

/* 1. Announcement banner (top of the About section) */
.readiness-banner {
    background: #1e3c72;
    text-align: center;
    padding: .75em 1.25em;
    font-size: 1rem;
    line-height: 1.5;
}
.readiness-banner .rs-pill { margin-right: .6em; }
.readiness-banner a { color: #ffffff !important; border-bottom: 0; font-weight: 700; }
.readiness-banner a:hover { text-decoration: underline; }

/* 2. Sidebar nav item */
#header > nav ul li a.nav-cta { background: rgba(255, 255, 255, 0.18); font-weight: 700; }
#header > nav ul li a.nav-cta:hover { background: rgba(255, 255, 255, 0.32); }
#header > nav ul li a.nav-cta .rs-pill { background: #ffffff; color: #1e3c72; font-size: .6rem; margin-left: .5em; }

/* 3. The section itself */
#main > section#ReadinessSession { background: #f2fbf8; border-top: solid 6px #4acaa8; }
#ReadinessSession .rs-kicker { margin: 0 0 .75em 0; font-weight: 700; color: #1e3c72; }
#ReadinessSession .rs-kicker .rs-pill { margin-right: .6em; }
#ReadinessSession header.major h2 { font-size: 2.1rem; line-height: 1.3; }
#ReadinessSession h3 { margin-top: 1.75em; }
#ReadinessSession .service-card h3 { margin-top: 0; }
#ReadinessSession p,
#ReadinessSession li { color: #555555; }
#ReadinessSession .services-grid { margin-bottom: 2em; }

#ReadinessSession .rs-steps { counter-reset: rs; list-style: none; margin: 0 0 2em 0; padding: 0; }
#ReadinessSession .rs-steps li {
    counter-increment: rs;
    position: relative;
    padding-left: 2.6em;
    margin: 0 0 .9em 0;
    line-height: 1.6;
}
#ReadinessSession .rs-steps li::before {
    content: counter(rs);
    position: absolute;
    left: 0; top: .1em;
    width: 1.8em; height: 1.8em;
    border-radius: 50%;
    background: #1e3c72;
    color: #ffffff;
    font-weight: 700;
    font-size: .8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ReadinessSession .rs-cta {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #1e3c72;
    border-radius: 8px;
    padding: 1.4em 1.75em;
}
#ReadinessSession .rs-cta p { margin: 0 0 .6em 0; }
#ReadinessSession .rs-cta p:last-child { margin-bottom: 0; }
#ReadinessSession .rs-cta-label { font-weight: 700; color: #1e3c72; }
#ReadinessSession .rs-address-big {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3c72;
    word-break: break-all;
    -webkit-user-select: all;
    user-select: all;          /* one click selects the whole address for copying */
}
#ReadinessSession .rs-fine { font-size: .85rem; margin: 1.5em 0 0 0; }

.readiness-banner a:focus-visible,
.readiness-bar a:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

/* 4. Navigation on medium windows
      The theme hides the sidebar at 1024px and below, but this page has no menu
      button to bring it back. Keep the sidebar visible down to 737px, narrower. */
.readiness-bar { display: none; }

@media screen and (min-width: 737px) and (max-width: 1024px) {
    #header {
        -webkit-transform: none;
        transform: none;
        width: 17em;
        z-index: 100;
    }
    #wrapper {
        -webkit-transform: none;
        transform: none;
        padding: 0 17em 0 0;
    }
    #header > header { padding: 1.5em 1em; }
    #header > header .avatar img { max-width: 7em; }
    #header > nav ul li a { padding: .75em .5em; }
}

/* 5. Phones (736px and below)
      The sidebar becomes a normal block at the top of the page, with the menu
      as a two-column grid, and a bar keeps the offer one tap away. */
@media screen and (max-width: 736px) {
    #header {
        position: static;
        -webkit-transform: none;
        transform: none;
        width: 100%;
        height: auto;
        overflow: visible;
        display: block;
        z-index: auto;
    }
    #wrapper { padding: 0; -webkit-transform: none; transform: none; }
    #header > header { padding: 1.25em 1em .5em 1em; }
    #header > header .avatar img { max-width: 5.5em; }
    #header > header h1 { margin-bottom: .25em; }
    #header > nav > ul { display: flex; flex-wrap: wrap; }
    #header > nav > ul > li { flex: 1 1 50%; display: flex; flex-direction: column; border-top: solid 2px #5ccfb1; }
    #header > nav > ul > li:has(> ul) { flex-basis: 100%; }
    #header > nav > ul > li > a { flex: 1 1 auto; padding: .7em .5em; font-size: .95rem; line-height: 1.35; }
    #header > nav > ul > li > a.nav-cta .rs-pill { display: none; }

    .readiness-banner { display: none; }
    .readiness-bar {
        display: block;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 10001;
        background: #1e3c72;
        text-align: center;
        padding: .75em 1em;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.18);
    }
    .readiness-bar a {
        display: block;
        color: #ffffff !important;
        border-bottom: 0;
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.4;
    }
    body { padding-bottom: 3.6em; }
    #ReadinessSession .rs-cta { padding: 1.1em 1em; }
    #ReadinessSession .rs-address-big { font-size: 1.15rem; }
}
