/* 5M Leadership site styles
   One shared stylesheet for every page. Colours are taken from the logo. */

:root {
  --navy: #050A30;
  --navy-line: #26305E;
  --red: #FF3131;
  --ink: #1B2033;
  --muted: #4A5066;
  --on-navy: #C9CEE3;
  --line: #DCDFE8;
  --panel: #F2F3F7;
  --white: #FFFFFF;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }
a:hover { color: #1C2A6B; }

h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.2; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 12px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Header and navigation ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: relative; z-index: 50; }
.site-header .wrap {
  min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: block; padding: 12px 0; }
.logo img { height: 34px; width: auto; }

.nav-toggle {
  display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); font: 700 15px/1 "Lato", sans-serif; cursor: pointer;
}

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 28px 0 25px; font-size: 15px; font-weight: 700;
  color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent;
}
.main-nav > ul > li > a:hover { color: var(--navy); border-bottom-color: var(--line); }
.main-nav > ul > li > a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--red); }

.submenu {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -20px;
  min-width: 220px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(5, 10, 48, 0.08); display: none;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
.submenu a { display: block; padding: 10px 20px; font-size: 16px; color: var(--ink); text-decoration: none; }
.submenu a:hover { background: var(--panel); color: var(--navy); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent;
}
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #1C2A6B; color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--panel); color: var(--navy); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }

/* ---------- Home page ---------- */

.home { padding-top: 48px; }
.strapline { font-size: 20px; color: var(--muted); margin-bottom: 28px; }

.keystone { background: var(--navy); color: var(--white); }
.keystone-top { display: flex; flex-wrap: wrap; }
.keystone-text { flex: 1 1 480px; min-width: 0; padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.keystone-text h2 { font-size: 40px; line-height: 1.15; }
.keystone-text .lead { font-size: 19px; color: var(--on-navy); }
.keystone-text .where { font-size: 16px; color: var(--on-navy); }
.keystone-photo { flex: 1 1 420px; min-width: 0; height: auto; min-height: 320px; align-self: stretch; object-fit: cover; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.levels { display: flex; flex-wrap: wrap; gap: 1px; background: var(--navy-line); border-top: 1px solid var(--navy-line); }
.level {
  flex: 1 1 300px; min-width: 0; background: var(--navy); padding: 32px 36px;
  color: var(--white); text-decoration: none; display: flex; flex-direction: column; gap: 8px;
}
.level:hover { background: #0B1448; color: var(--white); }
.level-name { font-size: 22px; font-weight: 700; }
.level-for { font-size: 15px; font-weight: 700; }
.level-desc { font-size: 16px; color: var(--on-navy); }
.level-link { font-size: 15px; font-weight: 700; margin-top: 8px; text-decoration: underline; }
.cohorts { padding: 20px 36px; font-size: 16px; border-top: 1px solid var(--navy-line); }

.pair { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.card { flex: 1 1 440px; min-width: 0; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { width: 100%; height: 280px; object-fit: cover; }
.card-body { padding: 36px 40px 40px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.card-body h2 { font-size: 30px; color: var(--navy); }
.card-body p { color: var(--muted); }
.card-body .btn { margin-top: auto; align-self: flex-start; }

.section { margin-top: 72px; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 32px;
}
.section-head h2 { font-size: 30px; color: var(--navy); }
.section-head a { font-weight: 700; font-size: 16px; }

.books { display: flex; flex-wrap: wrap; gap: 48px; }
.books-photo { flex: 1 1 460px; min-width: 0; height: 380px; object-fit: cover; }
.books-list { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 32px; justify-content: center; }
.book { display: flex; flex-direction: column; gap: 10px; }
.book + .book { padding-top: 32px; border-top: 1px solid var(--line); }
.book h3 { font-size: 26px; }
.book p { color: var(--muted); font-size: 17px; }
.book a { font-weight: 700; font-size: 16px; }

.resources { background: var(--panel); padding: 48px; }
.resources .section-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 28px; }
.tiles { display: flex; flex-wrap: wrap; gap: 24px; }
.tile {
  flex: 1 1 300px; min-width: 0; background: var(--white); border: 1px solid var(--line);
  padding: 28px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 8px;
}
a.tile:hover { border-color: var(--navy); }
.tile-name { font-size: 21px; font-weight: 700; color: var(--navy); }
.tile-desc, .tile label { font-size: 16px; color: var(--muted); }
.signup { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.signup input {
  flex: 1 1 160px; min-width: 0; min-height: 46px; padding: 0 14px;
  border: 1px solid #B4B9C9; font: 16px "Lato", sans-serif; color: var(--ink);
}
.signup button {
  min-height: 46px; padding: 0 20px; background: var(--navy); color: var(--white);
  border: 0; font: 700 16px "Lato", sans-serif; cursor: pointer;
}
.signup button:hover { background: #1C2A6B; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 80px; background: var(--navy); color: var(--on-navy); font-size: 15px; }
.footer-top { padding-top: 56px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 8px; }
.footer-brand a { color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-nav .head { font-weight: 700; color: var(--white); }
.footer-nav a { color: var(--on-navy); text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--navy-line); }
.footer-bottom .wrap { padding-top: 20px; padding-bottom: 20px; font-size: 14px; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-header .wrap { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; padding-bottom: 12px; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a[aria-current="page"] { border-bottom-color: var(--red); }
  .submenu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 16px; }
  .submenu a { padding: 10px 0; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .home { padding-top: 32px; }
  .strapline { font-size: 18px; }
  .keystone-text { padding: 32px 24px; }
  .keystone-text h2 { font-size: 32px; }
  .keystone-photo { height: 260px; }
  .level { padding: 28px 24px; }
  .cohorts { padding: 20px 24px; }
  .card img { height: 220px; }
  .card-body { padding: 28px 24px 32px; }
  .card-body h2, .section-head h2 { font-size: 26px; }
  .books-photo { height: 260px; }
  .resources { padding: 32px 20px; }
}

/* ---------- Inner pages ---------- */

.page { padding-top: 40px; }
.breadcrumb { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 8px; }

.page-head { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.page-head-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font-size: 44px; line-height: 1.12; color: var(--navy); }
.page-head .kicker { font-size: 16px; font-weight: 700; color: var(--navy); }
.page-head .lead { font-size: 20px; color: var(--muted); }
.page-head img { flex: 1 1 380px; min-width: 0; height: 360px; object-fit: cover; }

.block { padding: 56px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 24px 48px; }
.block:last-of-type { border-bottom: 0; }
.block > h2 { flex: 0 1 300px; font-size: 28px; color: var(--navy); }
.block-body { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.block-body h3 { font-size: 20px; margin-top: 8px; }
.block-body p, .block-body li { color: var(--ink); }
.block-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.block-body .small { font-size: 16px; color: var(--muted); }

.table-box { overflow-x: auto; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; min-width: 620px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--navy); color: var(--white); font-weight: 700; }
.data-table tbody th { font-weight: 700; color: var(--navy); white-space: nowrap; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: #FAFAFC; }

.facts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fact { flex: 1 1 200px; background: var(--white); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.fact .label { font-size: 14px; font-weight: 700; color: var(--muted); }
.fact .value { font-size: 18px; font-weight: 700; color: var(--navy); }

.options { display: flex; flex-wrap: wrap; gap: 24px; }
.option { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.option h3 { font-size: 21px; color: var(--navy); margin: 0; }
.option p { color: var(--muted); font-size: 16px; }

.level-list { display: flex; flex-direction: column; border: 1px solid var(--line); }
.level-row { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 28px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.level-row:last-child { border-bottom: 0; }
.level-row:hover { background: var(--panel); color: var(--ink); }
.level-row .lr-name { flex: 0 1 200px; font-size: 22px; font-weight: 900; color: var(--navy); }
.level-row .lr-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.level-row .lr-for { font-weight: 700; }
.level-row .lr-desc { color: var(--muted); font-size: 16px; }
.level-row .lr-link { font-weight: 700; font-size: 15px; text-decoration: underline; color: var(--navy); }

.cta-band { margin-top: 24px; background: var(--navy); color: var(--white); padding: 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: 28px; }
.cta-band p { color: var(--on-navy); margin-top: 10px; max-width: 620px; }
.cta-band .btn-row { margin-top: 0; }

.level-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 28px 0 0; font-weight: 700; font-size: 16px; }

@media (max-width: 600px) {
  .page { padding-top: 28px; }
  .page-head { gap: 28px; padding-bottom: 36px; }
  .page-head h1 { font-size: 34px; }
  .page-head .lead { font-size: 18px; }
  .page-head img { height: 240px; }
  .block { padding: 40px 0; }
  .block > h2 { font-size: 24px; }
  .cta-band { padding: 32px 24px; }
  .level-row { padding: 24px 20px; }
}
.data-table td.nw { white-space: nowrap; }

/* ---------- Upcoming events ---------- */

.event-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.event { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 28px 32px; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event-date { flex: 0 0 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 0; background: var(--navy); color: var(--white); text-align: center; }
.event-day { font-size: 34px; font-weight: 900; line-height: 1; }
.event-month { font-size: 13px; font-weight: 700; margin-top: 6px; }
.event-body { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.event-type { font-size: 14px; font-weight: 700; color: var(--muted); }
.event-title { font-size: 21px; color: var(--navy); }
.event-meta { font-size: 15px; color: var(--ink); font-weight: 700; }
.event-desc { font-size: 16px; color: var(--muted); }
.event-btn { flex: 0 0 auto; }
.events-empty { padding: 28px 32px; border: 1px solid var(--line); color: var(--muted); }

@media (max-width: 600px) {
  .event { padding: 24px 20px; align-items: flex-start; }
  .event-date { flex-basis: 72px; }
  .event-day { font-size: 28px; }
  .event-body { flex-basis: calc(100% - 104px); }
  .event-btn { margin-left: 104px; max-width: calc(100% - 104px); white-space: normal; }
}

/* ---------- Books ---------- */

.book-feature { display: flex; flex-wrap: wrap; gap: 32px 56px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.book-cover { flex: 0 0 220px; }
.book-cover img { width: 220px; height: auto; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(5, 10, 48, 0.12); }
.book-info { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.book-info .kicker { font-size: 15px; font-weight: 700; color: var(--muted); }
.book-info h2 { font-size: 36px; color: var(--navy); }
.book-info .subtitle { font-size: 20px; color: var(--muted); }
.book-info h3 { font-size: 19px; margin-top: 10px; }
.book-info ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Footer extras ---------- */

.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-bottom a { color: var(--on-navy); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.social { display: flex; gap: 18px; margin-top: 6px; }
.social a { color: var(--on-navy); }
.social a:hover { color: var(--white); }

/* ---------- Videos, lists and demos ---------- */

.item-type { font-size: 14px; font-weight: 700; color: var(--muted); }
.item-desc { font-size: 16px; color: var(--muted); }
.option .item-type { margin-bottom: -4px; }

.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--navy); cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.video-play-icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center;
  background: var(--red); color: var(--white); font: 700 16px "Lato", sans-serif;
}
.video-play:hover .video-play-icon, .video-play:focus-visible .video-play-icon { background: #D92B2B; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.video-card { border: 1px solid var(--line); display: flex; flex-direction: column; }
.video-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.video-title { font-size: 19px; color: var(--navy); }

.video-featured { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; }
.video-featured .video-frame { flex: 1 1 560px; min-width: 0; }
.video-featured-body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.video-featured-title { font-size: 28px; color: var(--navy); }

.stack-list { display: flex; flex-direction: column; border: 1px solid var(--line); }
.stack-row { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.stack-row:last-child { border-bottom: 0; }
.stack-row:hover { background: var(--panel); color: var(--ink); }
.stack-title { font-size: 20px; font-weight: 900; color: var(--navy); }
.stack-link { font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: underline; margin-top: 4px; }

.fallback { padding: 28px 32px; border: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hub { background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.hub:hover { background: var(--panel); color: var(--ink); }
.hub-name { font-size: 18px; font-weight: 900; color: var(--navy); }

.signup-panel { background: var(--navy); color: var(--white); padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.signup-panel h2 { font-size: 26px; }
.signup-panel p { color: var(--on-navy); }
.signup-panel label { font-size: 15px; font-weight: 700; }
.signup-panel .signup input { border-color: var(--white); }
.signup-panel .signup button { background: var(--red); }
.signup-panel .signup button:hover { background: #D92B2B; }
.signup-msg { font-size: 15px; font-weight: 700; color: var(--white); min-height: 1em; }

.quote { margin: 0; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 700; line-height: 1.45; color: var(--navy); }
.quote .quote-by { display: block; margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--muted); }

@media (max-width: 600px) {
  .stack-row { padding: 20px; }
  .signup-panel { padding: 28px 22px; }
  .quote { font-size: 20px; }
  .video-featured-title { font-size: 24px; }
}
.options.three .option { flex-basis: 180px; }

.card-wide { flex-direction: row; flex-wrap: wrap; margin-top: 24px; }
.card-wide img { flex: 1 1 380px; min-width: 0; width: auto; height: auto; min-height: 280px; max-height: 360px; }
.card-wide .card-body { flex: 1 1 460px; min-width: 0; justify-content: center; }
@media (max-width: 600px) { .card-wide img { min-height: 220px; max-height: 260px; } }

/* ---------- Register button in the header ---------- */

.main-nav > ul > li > a.nav-cta { margin: 18px 0; padding: 10px 18px; background: var(--navy); color: var(--white); border-bottom: 0; }
.main-nav > ul > li > a.nav-cta:hover { background: #1C2A6B; color: var(--white); border-bottom: 0; }
.main-nav > ul > li > a.nav-cta[aria-current="page"] { background: var(--red); }

/* ---------- Registration page ---------- */

.reg-layout { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; padding-bottom: 24px; }
.reg-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.reg-intro h1 { font-size: 44px; color: var(--navy); }
.reg-intro .lead { font-size: 20px; color: var(--muted); }
.reg-intro h2 { font-size: 20px; margin-top: 12px; }
.reg-intro .small { font-size: 16px; color: var(--muted); }
.reg-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.reg-panel { flex: 1.2 1 480px; min-width: 0; border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 36px; }
.reg-form { display: flex; flex-direction: column; gap: 20px; }
.reg-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row .field { flex: 1 1 200px; }
[hidden] { display: none !important; }
.reg-form label { font-size: 16px; font-weight: 700; }
.reg-form .optional { font-weight: 400; color: var(--muted); }
.reg-form input, .reg-form select, .reg-form textarea {
  min-height: 48px; padding: 10px 14px; border: 1px solid #B4B9C9; background: var(--white);
  font: 17px "Lato", sans-serif; color: var(--ink); width: 100%;
}
.reg-form textarea { resize: vertical; }
.reg-form input:focus, .reg-form select:focus, .reg-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.reg-session-note { margin-top: -8px; padding: 12px 16px; background: var(--panel); font-weight: 700; color: var(--navy); }
.reg-error { padding: 12px 16px; border: 1px solid #B42318; color: #B42318; font-size: 16px; }
.reg-error a { color: #B42318; font-weight: 700; }
.reg-submit { align-self: flex-start; border: 0; cursor: pointer; font-family: "Lato", sans-serif; min-height: 52px; padding: 0 28px; font-size: 17px; }
.reg-submit:disabled { opacity: 0.6; cursor: default; }
.reg-form .small { font-size: 14px; color: var(--muted); margin-top: -8px; }
.reg-done { display: flex; flex-direction: column; gap: 16px; }
.reg-done h2 { font-size: 30px; color: var(--navy); }
.reg-done:focus { outline: none; }

@media (max-width: 860px) {
  .main-nav > ul > li > a.nav-cta { display: inline-block; margin: 14px 0 4px; }
}
@media (max-width: 600px) {
  .reg-intro h1 { font-size: 34px; }
  .reg-panel { padding: 24px 20px; }
}

/* ---------- The Corporate Simulator cards ---------- */

.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.sim-card { border: 1px solid var(--line); display: flex; flex-direction: column; background: var(--white); }
.sim-card img { width: 100%; height: auto; aspect-ratio: 1600 / 1128; object-fit: cover; }
.sim-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.sim-body h2 { font-size: 23px; color: var(--navy); }
.sim-body .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Contact and plain text pages ---------- */

.contact-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; }
.contact-item { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.contact-item a { font-weight: 700; }
.contact-social { display: flex; flex-direction: column; gap: 4px; }
.prose { max-width: 760px; padding-bottom: 24px; }
.prose h1 { font-size: 40px; color: var(--navy); }
.prose h2 { font-size: 22px; color: var(--navy); margin-top: 36px; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose .updated { color: var(--muted); font-size: 16px; margin-top: 10px; }
@media (max-width: 600px) { .prose h1 { font-size: 32px; } }

/* Menu: short description under each product and resource */
.submenu { min-width: 440px; }
@media (max-width: 860px) { .submenu { min-width: 0; } }
.submenu a { line-height: 1.3; }
.submenu .nav-desc { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; }
.submenu a:hover .nav-desc { color: var(--ink); }
.submenu .sub-item a { padding-left: 36px; font-size: 15px; }
@media (max-width: 860px) { .submenu .sub-item a { padding-left: 16px; } }

/* Service intake form */
.intake-head { max-width: 760px; display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; }
.intake-head h1 { font-size: 44px; line-height: 1.12; color: var(--navy); }
.intake-head .lead { font-size: 20px; color: var(--muted); }
.intake-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.intake-steps { position: sticky; top: 24px; }
.intake-steps ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.intake-steps a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.intake-steps a:hover, .intake-steps a.on { color: var(--navy); border-left-color: var(--red); }
.intake-panel { max-width: 760px; }
.intake-form fieldset { border: 1px solid var(--line); padding: 24px 24px 28px; margin: 0; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 24px; }
.intake-form legend { font-size: 22px; font-weight: 900; color: var(--navy); padding: 0 8px; display: flex; align-items: center; gap: 10px; }
.intake-form legend .num { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-size: 15px; }
.intake-form .label-like { font-size: 16px; font-weight: 700; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 10px 14px; min-height: 44px; font-weight: 400 !important; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--panel); }
.checks { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; line-height: 1.45; cursor: pointer; }
.check input, .choice input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--navy); }
.check.agree { border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 860px) {
  .intake-layout { grid-template-columns: 1fr; gap: 24px; }
  .intake-steps { position: static; }
  .intake-steps ol { display: flex; flex-wrap: wrap; gap: 4px 16px; border-left: 0; }
  .intake-steps a { padding: 4px 0; border-left: 0; font-size: 14px; }
  .intake-head h1 { font-size: 34px; }
  .intake-form fieldset { padding: 18px 16px 22px; }
}

/* Home: three featured programmes that take turns (assets/js/site.js) */
.feature-tabs { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.feature-tabs [role="tab"] { position: relative; flex: 1 1 0; min-width: 0; padding: 18px 20px 20px; border: 0; border-right: 1px solid var(--navy-line); background: #0B1448; color: var(--on-navy); font: 700 16px/1.3 "Lato", Arial, sans-serif; text-align: left; cursor: pointer; }
.feature-tabs [role="tab"]:hover { color: var(--white); }
.feature-tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: var(--white); }
.feature-tabs [role="tab"]:focus-visible { outline: 3px solid #7C8CE0; outline-offset: -3px; }
.ft-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: transparent; overflow: hidden; }
[role="tab"][aria-selected="true"] .ft-bar { background: var(--navy-line); }
[role="tab"][aria-selected="true"] .ft-bar::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(1); }
.feature-rotator.is-playing [role="tab"][aria-selected="true"] .ft-bar::after { animation: ft-fill var(--ft-time, 8s) linear forwards; }
.feature-rotator.is-paused [role="tab"][aria-selected="true"] .ft-bar::after { animation-play-state: paused; }
@keyframes ft-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.feature-pause { flex: 0 0 auto; padding: 0 18px; border: 0; background: #0B1448; color: var(--on-navy); font: 700 14px "Lato", Arial, sans-serif; cursor: pointer; }
.feature-pause:hover, .feature-pause:focus-visible { color: var(--white); }
.feature-stage { display: grid; }
.feature-stage > .feature-slide { grid-area: 1 / 1; transition: opacity 0.5s ease, visibility 0.5s; }
.feature-stage > .feature-slide[aria-hidden="true"] { opacity: 0; visibility: hidden; }
.feature-kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy); margin-bottom: -8px; }
.feature-portrait { object-position: 50% 18%; }
@media (prefers-reduced-motion: reduce) { .feature-stage > .feature-slide { transition: none; } }
@media (max-width: 600px) {
  .feature-tabs [role="tab"] { flex: 1 1 50%; padding: 14px 12px 16px; font-size: 14px; border-bottom: 1px solid var(--navy-line); }
  .feature-pause { flex: 1 1 100%; padding: 10px; border-top: 1px solid var(--navy-line); }
  .feature-portrait { object-position: 50% 15%; }
}

/* Speaker page */
.speaker-head img { height: 460px; }
.options.two .option { flex-basis: 320px; }
.talk-for { font-size: 15px; font-weight: 700; color: var(--navy) !important; margin-top: auto; }
.speak-formats { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); }
.speak-formats > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.speak-formats > div:last-child { border-bottom: 0; }
.speak-formats dt { flex: 0 1 240px; font-weight: 700; color: var(--navy); }
.speak-formats dd { flex: 1 1 300px; margin: 0; color: var(--ink); }
#book .reg-form { max-width: 760px; }
@media (max-width: 600px) { .speaker-head img { height: 380px; } }
