/* Loaded after the site CSS: behaviours the live site drove from a server-side circuit, now plain CSS + dd-shell.js. */

/* Mega menu: closed by default, opened by dd-shell.js (hover or keyboard focus) */
.navigation-menu .dropdown-megamenu:not(.dd-open) { display: none !important; }
.navigation-menu .dropdown-megamenu.dd-open { display: flex; width: 100%; }
a.menu-item-container, a.nav-title, a.mobile-submenu-item, a.mobile-submenu-header { color: inherit; text-decoration: none; }
a.menu-item-container:hover .menu-item-title, a.nav-title:hover, a.mobile-submenu-item:hover { text-decoration: underline; }
a.menu-item-container:focus-visible, a.nav-title:focus-visible, .nav-link2 a:focus-visible,
a.mobile-submenu-item:focus-visible, .rounded-btn:focus-visible { outline: 3px solid #FFC20E; outline-offset: 2px; }
a.mobile-submenu-header, a.mobile-submenu-item { display: block; }  /* were <div>s on the live site; links are inline by default */
.mobile-submenu { display: none; }
.mobile-submenu.open { display: block; }

/* Buttons that are links here (the live site navigated from server code); keep the button look */
a.rounded-btn, a.rounded-btn-content, a.learn-more-button { display: inline-block; text-align: center; text-decoration: none; }
a.rounded-btn:not([class*="-text"]), a.rounded-btn-content:not([class*="-text"]), a.learn-more-button:not([class*="-text"]) { color: #000; }
/* second line of a whitepaper page heading: the paper's name */
.dd-h1-sub { display: block; font-size: .55em; font-weight: 600; color: #285D9B; margin-top: .6rem; }
#dd-details { scroll-margin-top: 130px; }

/* Narrow screens: a long address typed into copy must wrap, and the big event heading must fit */
main a, main li, main p { overflow-wrap: anywhere; }
@media (max-width: 420px) {
    h1.section-title.white-text.mt-5 .header span { letter-spacing: 4px; }
    main h2.title, main h2.section-title { font-size: min(32px, 8.2vw) !important; }  /* "CYBERSECURITY" at 36px is wider than a small phone */
}
main h1, main h2, main h3 { overflow-wrap: break-word; }

/* iPad-landscape / small-laptop widths: five menu items, the logo and "Get Started" need 940 px, the container gives 936 (the live site clips the button here) */
@media (min-width: 992px) and (max-width: 1199.98px) { .navbar-collapse .nav-dropdowns { gap: 14px !important; } }

/* Scroll reveal: copy is visible unless JS is running and the element is still below the fold */
.reveal { transition: opacity .7s, filter .7s; }
.js .reveal:not(.show) { opacity: 0; filter: blur(2px); }
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; }
    .js .reveal:not(.show) { opacity: 1; filter: none; }
}

/* Accordions: the service descriptions live in these, so they must be keyboard and screen-reader operable */
.accordion-header:focus-visible { outline: 3px solid #285D9B; outline-offset: 2px; }

/* Call-to-action band that replaces the 25 KB contact form the live site repeated on every page */
.dd-cta { background: #0B213A; color: #fff; text-align: center; padding: 64px 0; margin-top: 80px; }
.dd-cta h2 { font-size: 2rem; font-weight: 600; margin: 0 0 12px; }
.dd-cta p { margin: 0 0 24px; opacity: .9; }

/* Contact page and the form look */
.dd-contact { padding: 170px 0 90px; }
.dd-contact h1 { font-size: 2.5rem; font-weight: 600; color: #0B213A; }
.dd-lead { font-size: 1.15rem; color: #4a5568; max-width: 46rem; margin-bottom: 2rem; }
.dd-contact-card { background: #F6F6F9; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.dd-contact-card h2 { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; }
.dd-contact-card .tel { font-size: 1.35rem; font-weight: 600; }
.dd-contact-alert { background: #fff3f1; border: 1px solid #f3b4a9; }
.dd-form .form-label { font-weight: 600; font-size: .9rem; }
.dd-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.dd-form-status { margin: 12px 0 0; min-height: 1.5em; font-weight: 600; }
.dd-form-status.is-pending { color: #9a5b00; }
