/* World Assessment Council — the shared header, its mega menu, and the site-wide content width.
   Loaded on every page after wac-responsive.css. The menu's markup comes from _deploy/tools/wac_nav.py. */

/* ---------- 1. Content width (same on every page) ----------
   --wac-w is the outer width of the page column; --wac-cw is the content inside its side gutters. */
:root { --wac-w: 1240px; --wac-cw: 1192px; --wac-hd-h: 72px; }
@media (min-width: 1800px) { :root { --wac-w: 1420px; --wac-cw: 1372px; } }

html body .breadcrumb-container, html body .related-container, html body .footer-container, html body .page-hero-container,
html body .contact-container, html body .offices-container, html body .footer-inner, html body .content-container,
html body .trends-container, html body .about-container, html body .featured-video-container, html body .episode-library-container,
html body .playlist-container, html body .schedule-container, html body:not(.page-leadership) .hero-container, html body .overview-container,
html body .activities-container, html body .pillar-container, html body .founders-container, html body .impact-overview-container,
html body .charts-container, html body .regional-container, html body .centres-container, html body .success-container,
html body .stats-container, html body .impact-cards-wrapper, html body .slider-nav, html body .mission-container,
html body .pillars-container, html body .spotlight-container, html body .universities-container, html body .pricing-container,
html body .cta-container, html body .trusted-container, html body .features-container, html body .how-it-works-container,
html body .use-cases-container, html body .leadership-container, html body .values-container, html body .objectives-container,
html body .impact-container, html body .hm-mission-container, html body .main-content, html body .skills-chart-container,
html body .key-findings-container, html body .case-overview-container, html body .results-container, html body .hc-container {
  box-sizing: content-box; max-width: var(--wac-cw);
}

/* ---------- 2. Header bar ---------- */
.wac-hd, .wac-hd *, .wac-hd *::before, .wac-hd *::after { box-sizing: border-box; }
.wac-hd { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--wac-hd-h); background: rgba(10, 22, 40, 0.97);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; letter-spacing: 0; line-height: 1.4; }
#wac-hd .wac-hd-in { box-sizing: content-box; max-width: var(--wac-cw); height: 100%; margin: 0 auto; padding: 0 max(24px, 5%); display: flex; align-items: center; gap: 1.5rem; }
.wac-hd-logo { display: inline-flex; align-items: center; flex: none; }
#wac-hd .wac-hd-logo img { height: 36px; width: auto; max-width: none; display: block; }
.wac-hd-nav { display: flex; align-items: center; gap: 0.125rem; margin: 0 auto; height: 100%; }
.wac-mi { height: 100%; display: flex; align-items: center; }
#wrapper #main .wac-hd .wac-mi-btn, #wrapper #main .wac-hd a.wac-mi-link, .wac-hd .wac-mi-btn, .wac-hd a.wac-mi-link {
  display: inline-flex; align-items: center; gap: 0.4rem; height: 40px; padding: 0 0.95rem; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  color: #fff; opacity: 0.9; font: inherit; font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background 0.15s, opacity 0.15s; }
.wac-hd .wac-mi-btn svg { width: 12px; height: 12px; transition: transform 0.2s; }
.wac-hd .wac-mi-btn:hover, .wac-hd a.wac-mi-link:hover, .wac-hd .wac-mi.open > .wac-mi-btn, .wac-hd .wac-mi-btn:focus-visible, .wac-hd a.wac-mi-link:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.1); color: #fff; }
.wac-hd .wac-mi.open > .wac-mi-btn svg { transform: rotate(180deg); }
.wac-hd :focus-visible { outline: 2px solid #7fb0ff; outline-offset: 2px; }
.wac-hd-actions { flex: none; display: flex; align-items: center; }
#wrapper #main .wac-hd a.wac-hd-signin, .wac-hd a.wac-hd-signin { color: #fff; font-size: 0.9375rem; font-weight: 500; opacity: 0.92; text-decoration: none; padding: 0 0.95rem; height: 42px; display: inline-flex; align-items: center; white-space: nowrap; }
.wac-hd a.wac-hd-signin:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
#wrapper #main .wac-hd a.wac-hd-cta, .wac-hd a.wac-hd-cta { display: inline-flex; align-items: center; height: 42px; padding: 0 1.25rem; border-radius: 8px; background: #2563eb; color: #fff; font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.wac-hd a.wac-hd-cta:hover { background: #1d4ed8; color: #fff; }
.wac-hd-burger { display: none; }
.wac-hd .wac-only-mobile { display: none !important; }

/* ---------- 3. Mega menu (desktop) ---------- */
.wac-mm { display: none; position: fixed; top: var(--wac-hd-h); left: 0; right: 0; z-index: 999; padding: 10px 20px 0; pointer-events: none; }
.wac-mi.open > .wac-mm { display: block; }
.wac-mm-in { pointer-events: auto; width: 100%; max-width: var(--wac-w); margin: 0 auto; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 0;
  background: #fff; border-radius: 18px; border: 1px solid #dfe5ee; box-shadow: 0 30px 70px rgba(8, 20, 40, 0.28), 0 4px 14px rgba(8, 20, 40, 0.1); overflow: hidden;
  animation: wac-mm-in 0.18s ease-out; max-height: calc(100vh - var(--wac-hd-h) - 24px); overflow-y: auto; }
@keyframes wac-mm-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wac-mm-in { animation: none; } }

#wrapper #main .wac-hd a.wac-mm-feature, .wac-hd a.wac-mm-feature { display: flex; flex-direction: column; background: #0a1628; color: #fff; padding: 16px 16px 20px; text-decoration: none; }
#wac-hd .wac-mm-feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 14px; }
.wac-mm-kicker { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8fb8ff; margin-bottom: 6px; }
.wac-mm-feature strong { font-size: 1.125rem; line-height: 1.3; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -0.01em; }
.wac-mm-ftext { font-size: 0.8438rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78); margin-bottom: 14px; }
.wac-mm-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 600; color: #fff; }
.wac-mm-cta svg { width: 16px; height: 16px; transition: transform 0.15s; }
.wac-mm-feature:hover .wac-mm-cta svg { transform: translateX(3px); }

.wac-mm-main { padding: 20px 22px 18px; min-width: 0; display: flex; flex-direction: column; }
.wac-hd .wac-mm-label { margin: 0 0 10px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #64748b; }
.wac-mm-grid { display: grid; gap: 6px 14px; }
.wac-mm-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wac-mm-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#wrapper #main .wac-hd a.wac-mm-item, .wac-hd a.wac-mm-item { display: flex; align-items: center; gap: 12px; padding: 9px; border-radius: 12px; color: #0f172a; text-decoration: none; transition: background 0.15s; min-width: 0; }
.wac-hd a.wac-mm-item:hover, .wac-hd a.wac-mm-item:focus-visible { background: #f1f5fb; }
#wac-hd .wac-mm-item img { flex: none; width: 104px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: #e8edf5; }
.wac-mm-item > span { display: flex; flex-direction: column; min-width: 0; }
.wac-mm-item strong { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: #0a1628; }
.wac-mm-item > span > span { font-size: 0.8125rem; line-height: 1.4; color: #5b6472; margin-top: 2px; }
.wac-mm-grid.big .wac-mm-item { align-items: flex-start; padding: 10px; }
#wac-hd .wac-mm-grid.big .wac-mm-item img { width: 168px; }
.wac-mm-grid.big .wac-mm-item strong { font-size: 1rem; margin-top: 2px; }
.wac-mm-grid.big .wac-mm-item > span > span { margin-top: 4px; }

.wac-hd .wac-mm-papers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; }
.wac-hd .wac-mm-main > .wac-mm-grid + .wac-mm-label { margin-top: 16px; }
#wrapper #main .wac-hd a.wac-mm-paper, .wac-hd a.wac-mm-paper { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 12px; color: #0f172a; text-decoration: none; transition: background 0.15s; min-width: 0; }
.wac-hd a.wac-mm-paper:hover, .wac-hd a.wac-mm-paper:focus-visible { background: #f1f5fb; }
#wac-hd .wac-mm-paper img { flex: none; width: 58px; height: auto; border-radius: 4px; display: block; box-shadow: 0 3px 10px rgba(8, 20, 40, 0.22); }
.wac-mm-paper > span { display: flex; flex-direction: column; min-width: 0; }
.wac-mm-paper em { font-style: normal; font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: #1a4b8c; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wac-mm-paper strong { font-size: 0.8125rem; line-height: 1.35; font-weight: 600; color: #0a1628; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Educators This Week sessions (Events menu): small picture above a two-line title */
.wac-hd .wac-mm-sessions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px 6px; }
#wrapper #main .wac-hd a.wac-mm-session, .wac-hd a.wac-mm-session { display: flex; flex-direction: column; gap: 7px; padding: 7px; border-radius: 12px; color: #0f172a; text-decoration: none; transition: background 0.15s; min-width: 0; }
.wac-hd a.wac-mm-session:hover, .wac-hd a.wac-mm-session:focus-visible { background: #f1f5fb; }
#wac-hd .wac-mm-session img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; display: block; background: #e8edf5; }
.wac-mm-session > span { display: flex; flex-direction: column; min-width: 0; }
.wac-mm-session strong { font-size: 0.75rem; line-height: 1.33; font-weight: 600; color: #0a1628; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wac-mm-session em { font-style: normal; font-size: 0.6875rem; color: #5b6472; margin-top: 2px; white-space: nowrap; }
#wrapper #main .wac-hd a.wac-mm-session.all, .wac-hd a.wac-mm-session.all { justify-content: center; align-items: flex-start; background: #eef3fb; padding: 10px 12px; }
.wac-hd a.wac-mm-session.all:hover { background: #dbe7fa; }
.wac-mm-session.all strong { font-size: 0.8125rem; color: #1a3d73; }
.wac-mm-session.all em { white-space: normal; line-height: 1.35; margin-bottom: 6px; }
.wac-mm-session.all svg { width: 18px; height: 18px; color: #1a3d73; }

.wac-mm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e6ebf2; }
.wac-mm-chips > span { font-size: 0.75rem; font-weight: 600; color: #64748b; margin-right: 4px; }
#wrapper #main .wac-hd .wac-mm-chips a, .wac-hd .wac-mm-chips a { font-size: 0.8125rem; font-weight: 500; color: #1a3d73; background: #eef3fb; padding: 6px 12px; border-radius: 999px; text-decoration: none; transition: background 0.15s; }
.wac-hd .wac-mm-chips a:hover { background: #dbe7fa; color: #0a1628; }

@media (max-width: 1240px) and (min-width: 1025px) {
  .wac-mm-in { grid-template-columns: 250px minmax(0, 1fr); }
  #wac-hd .wac-mm-item img { width: 88px; }
  #wac-hd .wac-mm-grid.big .wac-mm-item img { width: 132px; }
  .wac-hd .wac-mm-papers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wac-hd .wac-mi-btn, .wac-hd a.wac-mi-link { padding: 0 0.7rem; }
  .wac-mm-session strong { font-size: 0.7188rem; }
}

/* ---------- 4. Phones and tablets (up to 1024px): button + full-width panel ---------- */
@media (max-width: 1024px) {
  :root { --wac-hd-h: 64px; }
  #wac-hd .wac-hd-in { padding: 0 16px; gap: 0.75rem; }
  .wac-hd-actions { margin-left: auto; }
  .wac-hd a.wac-hd-signin { display: none !important; }
  .wac-hd a.wac-hd-cta { height: 40px; padding: 0 1rem; font-size: 0.875rem; }
  .wac-hd-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border-radius: 8px; flex: none;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); cursor: pointer; }
  .wac-hd-burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.2s, opacity 0.2s; }
  .wac-hd.nav-open .wac-hd-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .wac-hd.nav-open .wac-hd-burger span:nth-child(2) { opacity: 0; }
  .wac-hd.nav-open .wac-hd-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .wac-hd { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0a1628; }

  .wac-hd-nav { display: none; position: fixed; top: var(--wac-hd-h); left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #0a1628; padding: 6px 16px 32px; height: calc(100vh - var(--wac-hd-h)); height: calc(100dvh - var(--wac-hd-h)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .wac-hd.nav-open .wac-hd-nav { display: flex; }
  .wac-mi { height: auto; display: block; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  #wrapper #main .wac-hd .wac-mi-btn, #wrapper #main .wac-hd a.wac-mi-link, .wac-hd .wac-mi-btn, .wac-hd a.wac-mi-link { display: flex; width: 100%; height: 54px; padding: 0 4px; justify-content: space-between; font-size: 1.0625rem; font-weight: 600; opacity: 1; border-radius: 0; }
  .wac-hd a.wac-mi-link { border-bottom: 1px solid rgba(255, 255, 255, 0.1); flex: none; }
  .wac-hd-nav > .wac-mi { flex: none; }
  .wac-hd .wac-mi-btn:hover, .wac-hd a.wac-mi-link:hover, .wac-hd .wac-mi.open > .wac-mi-btn { background: transparent; }
  .wac-hd .wac-mi-btn svg { width: 16px; height: 16px; }
  .wac-hd .wac-only-mobile { display: flex !important; }
  @media (min-width: 420px) { .wac-hd a.wac-mi-link.wac-only-mobile:not([data-wac-account]) { display: none !important; } }
  @media (max-width: 419px) { .wac-hd-actions { display: none; } .wac-hd-burger { margin-left: auto; } }

  .wac-mm { position: static; padding: 0 0 14px; pointer-events: auto; }
  .wac-mm-in { display: block; max-width: none; background: transparent; border: 0; border-radius: 0; box-shadow: none; animation: none; max-height: none; overflow: visible; }
  #wrapper #main .wac-hd a.wac-mm-feature, .wac-hd a.wac-mm-feature { display: none; }
  .wac-mm-main { padding: 0; }
  .wac-hd .wac-mm-label { display: none; }
  .wac-hd .wac-mm-main > .wac-mm-grid + .wac-mm-label { display: block; color: rgba(255, 255, 255, 0.55); margin: 14px 4px 6px; }
  .wac-mm-grid.cols-3, .wac-mm-grid.cols-2 { grid-template-columns: 1fr; gap: 2px; }
  #wrapper #main .wac-hd a.wac-mm-item, .wac-hd a.wac-mm-item, .wac-mm-grid.big .wac-mm-item { align-items: center; padding: 8px 4px; border-radius: 10px; }
  .wac-hd a.wac-mm-item:hover, .wac-hd a.wac-mm-item:focus-visible, .wac-hd a.wac-mm-paper:hover { background: rgba(255, 255, 255, 0.07); }
  #wac-hd .wac-mm-item img, #wac-hd .wac-mm-grid.big .wac-mm-item img { width: 84px; }
  .wac-mm-item strong, .wac-mm-grid.big .wac-mm-item strong { color: #fff; font-size: 0.9688rem; margin: 0; }
  .wac-mm-item > span > span, .wac-mm-grid.big .wac-mm-item > span > span { color: rgba(255, 255, 255, 0.7); margin-top: 2px; }
  .wac-hd .wac-mm-papers { grid-template-columns: 1fr; gap: 2px; }
  #wrapper #main .wac-hd a.wac-mm-paper, .wac-hd a.wac-mm-paper { padding: 8px 4px; align-items: center; }
  #wac-hd .wac-mm-paper img { width: 44px; }
  .wac-mm-paper em { color: #8fb8ff; }
  .wac-mm-paper strong { color: #fff; font-size: 0.875rem; -webkit-line-clamp: 2; }
  .wac-hd .wac-mm-sessions { grid-template-columns: 1fr; gap: 2px; }
  #wrapper #main .wac-hd a.wac-mm-session, .wac-hd a.wac-mm-session { flex-direction: row; align-items: center; gap: 12px; padding: 8px 4px; }
  .wac-hd a.wac-mm-session:hover, .wac-hd a.wac-mm-session:focus-visible { background: rgba(255, 255, 255, 0.07); }
  #wac-hd .wac-mm-session img { flex: none; width: 84px; }
  .wac-hd a.wac-mm-session:nth-child(n+7):not(.all) { display: none !important; }
  .wac-mm-session strong { color: #fff; font-size: 0.875rem; }
  .wac-mm-session.all em { margin-bottom: 0; }
  .wac-mm-session em { color: rgba(255, 255, 255, 0.7); }
  #wrapper #main .wac-hd a.wac-mm-session.all, .wac-hd a.wac-mm-session.all { background: rgba(255, 255, 255, 0.1); padding: 12px; justify-content: space-between; margin-top: 6px; }
  .wac-mm-session.all strong, .wac-mm-session.all svg { color: #fff; }
  .wac-mm-chips { border-top: 0; margin-top: 8px; padding: 0 4px; }
  .wac-mm-chips > span { color: rgba(255, 255, 255, 0.55); width: 100%; }
  #wrapper #main .wac-hd .wac-mm-chips a, .wac-hd .wac-mm-chips a { background: rgba(255, 255, 255, 0.1); color: #fff; }
  html.wac-nav-lock, html.wac-nav-lock body { overflow: hidden; }
}
@media (min-width: 600px) and (max-width: 1024px) {
  .wac-mm-grid.cols-3, .wac-mm-grid.cols-2, .wac-hd .wac-mm-papers, .wac-hd .wac-mm-sessions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
}

/* IntegrityCheck keeps its own product menu: on wide screens its bar lines up with the page column. */
@media (min-width: 1025px) {
  html body #main .header:not(:has(.header-inner)) { padding-left: max(5%, calc((100% - var(--wac-cw)) / 2)); padding-right: max(5%, calc((100% - var(--wac-cw)) / 2)); }
}

/* ---------- 5. Footer: LinkedIn, Facebook and YouTube (every page; written by wac_nav.py) ---------- */
html body #main footer .wac-social { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
html body #main footer .wac-social > span { font-size: 0.8125rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); margin-right: 2px; }
html body #main footer .wac-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; opacity: 1; transition: background 0.15s; }
html body #main footer .wac-social a:hover, html body #main footer .wac-social a:focus-visible { background: #2563eb; }
html body #main footer .wac-social svg { width: 19px; height: 19px; display: block; }

/* ---------- 6. Home page: the summit announcement under the hero (written by build_events.py) ---------- */
.wac-announce { background: #071225; padding: 0 5%; }
#wrapper #main a.wac-announce-in, a.wac-announce-in { max-width: var(--wac-cw); margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 16px 0; color: #fff; text-decoration: none; }
.wac-announce img { flex: none; width: 112px; height: 63px; object-fit: cover; border-radius: 8px; display: block; }
.wac-announce-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.wac-announce-txt em { font-style: normal; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8fc4ff; }
.wac-announce-txt strong { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; color: #fff; margin-top: 2px; }
.wac-announce-txt span { font-size: 0.9375rem; line-height: 1.45; color: rgba(255, 255, 255, 0.82); margin-top: 2px; }
.wac-announce-cta { flex: none; display: inline-flex; align-items: center; gap: 8px; background: #2563eb; color: #fff; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 0.9375rem; font-weight: 600; padding: 0.7rem 1.15rem; border-radius: 8px; transition: background 0.15s; white-space: nowrap; }
a.wac-announce-in:hover .wac-announce-cta { background: #1d4ed8; }
.wac-announce-cta svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  #wrapper #main a.wac-announce-in, a.wac-announce-in { flex-wrap: wrap; gap: 12px 14px; }
  .wac-announce img { width: 84px; height: 47px; }
  .wac-announce-txt strong { font-size: 1.0625rem; }
  .wac-announce-txt span { display: none; }
  .wac-announce-cta { width: 100%; justify-content: center; }
}
