/* Additions on top of the archived Flatsome stylesheet.
   Everything here replaces a behaviour that the WordPress theme provided with
   JavaScript: the mobile drawer, the sticky header, the scroll-in animations
   and the back-to-top button. */

/* Flatsome hides animated blocks until its script reveals them. */
[data-animate] { opacity: 1 !important; transform: none !important; }
.bg { opacity: 1 !important; }

/* ---------- mobile drawer ---------- */
.mfp-hide { display: none !important; }

body.mm-open { overflow: hidden; }
body.mm-open #main-menu {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #ffffff;
  overflow-y: auto;
  padding: 24px 20px 48px;
}
#main-menu .sidebar-menu { max-width: 520px; margin: 0 auto; }
#main-menu .nav-sidebar > li > a {
  display: block;
  padding: 14px 0;
  font-size: 20px;
  border-bottom: 1px solid #e6e6e6;
  color: #003d66;
}
#main-menu .nav-sidebar > li:last-child > a { border-bottom: 0; }
#main-menu ul.sub-menu { display: none; padding-left: 14px; }
#main-menu li.mm-sub-open > ul.sub-menu { display: block; }
#main-menu ul.sub-menu a { color: #4a6664; }

.mm-close {
  display: block;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: #003d66;
  cursor: pointer;
}

/* ---------- back to top ---------- */
#top-link { display: none; }
body.mm-scrolled #top-link { display: inline-flex; }

/* ---------- archive notes ---------- */
.archive-note {
  margin-top: 18px;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .72);
}
.archive-note a { color: #ffffff; text-decoration: underline; }
.archive-form-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .7);
}
.absolute-footer .archive-note { color: rgba(255, 255, 255, .8); }

/* the notification bar and share row were script-driven */
.share-icons, .social-icons.follow-icons { opacity: 1; }

/* the archived pages used a light-grey drop shadow on cards */
.box-shadow-5 { box-shadow: 0 12px 30px rgba(0, 61, 102, .08); }

/* long strings in the legal text must not push the layout sideways */
p, li, a { overflow-wrap: break-word; }

/* Flatsome fades section backgrounds in with a script; keep them visible. */
.section-bg, .bg, .bg-fill, .section-bg-overlay { opacity: 1 !important; }

.archive-portrait-note {
  max-width: 760px;
  margin: 0 auto 22px;
  padding: 0 15px;
  font-size: 13px;
  line-height: 1.7;
  color: #607a87;
  text-align: center;
}

/* the drawer's list animates in through the theme script */
#main-menu .nav-anim > li,
#main-menu .nav-anim > li > a { opacity: 1 !important; transform: none !important; }
#main-menu .nav-sidebar { margin: 8px 0 0; }
#main-menu li { list-style: none; }

/* sources page */
.archive-lede { font-size: 1.08em; }
.archive-table { width: 100%; border-collapse: collapse; margin: 18px 0 0; font-size: 15px; line-height: 1.7; }
.archive-table th, .archive-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid #e4e4e2; }
.archive-table th { background: #f4f7f8; font-family: "Raleway", sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #003d66; }
.archive-table td:first-child { width: 42%; color: #33525f; }
.archive-small { font-size: 14px; color: #5b7482; }
#main a { text-decoration: underline; }
#main h1, #main h2 { margin-bottom: .5em; }
#main ul { margin-left: 20px; }

/* click-to-watch poster in place of the archived YouTube embed */
.archive-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 894px;
  margin: 0 auto;
  background: #002b47 url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 894 502'%3E%3Crect width='894' height='502' fill='%23002b47'/%3E%3Cg stroke='%23165a7a' stroke-width='1.5' fill='none'%3E%3Cpath d='M0 360c150-60 240 40 390-20s260-90 504-10'/%3E%3Cpath d='M0 400c150-60 240 40 390-20s260-90 504-10'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
  border-radius: 4px;
  overflow: hidden;
}
.archive-video-link {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  text-decoration: none;
}
.archive-video-play {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(232, 73, 63, .92);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.archive-video-play:after {
  content: "";
  position: absolute;
  left: 32px; top: 25px;
  border-left: 26px solid #fff;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
}
.archive-video-label {
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.archive-video-link:hover .archive-video-play { background: #e8493f; }
