/*
ETS 2027 shared stylesheet

Edit this file to change the whole site's visual design.

Main controls:
  --banner-image   shared hero banner used on all pages
  --blue           main accent colour
  --dark           heading/nav colour
  --muted          body text colour
  --light          pale section background
  --line           border colour
  --font-body      paragraph/menu font stack
  --font-head      heading/brand font stack
  --nav-height     navigation bar height
*/

:root {
  --banner-image: url('https://upec2025.com/ets2027/london_colour.png');
  --blue: #00386f;
  --dark: #101820;
  --muted: #5b5b5b;
  --light: #f5f7fb;
  --line: #e7e9ef;
  --font-body: Arial, Helvetica, sans-serif;
  --font-head: Arial, Helvetica, sans-serif;
  --nav-height: 86px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--muted);
  line-height: 1.75;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
.brand,
.nav-group > button,
.nav-link {
  font-family: var(--font-head);
  color: var(--dark);
  font-weight: 800;
  line-height: 1.12;
}

/* Navigation */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  max-width: 210px;
  height: var(--nav-height);
  padding: 8px 0;
  color: #111111;
}

.brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 66px;
  object-fit: contain;
}

.brand span {
  color: var(--blue);
  font-size: 34px;
  letter-spacing: -1px;
}

.brand small {
  font-size: 15px;
  letter-spacing: 0.15em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-group {
  position: relative;
}

.nav-group > button,
.nav-link {
  display: block;
  padding: 31px 13px;
  border: 0;
  background: transparent;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dark);
  cursor: pointer;
}

.nav-group > button:hover,
.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--blue);
}

.no-dropdown .dropdown {
  display: none !important;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 245px;
  padding: 12px 0;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

.nav-group:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 9px 20px;
  color: #232323;
  font-weight: 600;
}

.dropdown a:hover,
.dropdown .active,
.dropdown a.active,
.dropdown a[aria-current='page'] {
  color: var(--blue);
  background: #f4f7ff;
}

.nav-toggle {
  display: none;
}

/* Homepage hero */

.hero {
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 64px 6vw;
  color: #ffffff;
  background:
    linear-gradient(rgba(8, 18, 45, 0.28), rgba(8, 18, 45, 0.28)),
    var(--banner-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.kicker {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 8px 0 18px;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 72px);
}

.hero p {
  max-width: 700px;
  color: #ecf2ff;
  font-size: 21px;
}

/* Frosted date/info bubble in the homepage hero */

.date-card {
  justify-self: end;
  width: 320px;
  max-width: 100%;
  margin-right: 20px;
  padding: 24px 28px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.date-card b {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.date-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.08;
}

.date-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  font-weight: 700;
}

.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 24px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  font-weight: 800;
}

/* Main content */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 28px;
}

.section-title {
  margin: 0 0 18px;
  font-size: 44px;
}

.lead {
  max-width: 900px;
  font-size: 19px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 25px;
}

.topic-grid {
  grid-template-columns: repeat(4, 1fr);
}

.topic {
  padding: 24px;
  color: #222222;
  background: #f8faff;
  border-left: 5px solid var(--blue);
  border-radius: 18px;
  font-weight: 800;
}

/* Subpage hero */

.page-hero {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 6vw;
  color: #ffffff;
  background:
    linear-gradient(rgba(8, 18, 45, 0.38), rgba(8, 18, 45, 0.38)),
    var(--banner-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.page-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 58px;
}

.breadcrumb {
  opacity: 0.9;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content {
  max-width: 1050px;
  margin: 0 auto;
  padding: 70px 28px;
}

.content-card {
  padding: 38px;
  background: #ffffff;
  border: 1px solid #eceef5;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
}

.notice {
  margin: 22px 0;
  padding: 18px 20px;
  color: #654b00;
  background: #fff7e6;
  border-left: 5px solid #e2a400;
  border-radius: 12px;
}

.notice-box {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--light);
  border-left: 5px solid var(--blue);
  border-radius: 12px;
}

.names {
  columns: 3;
  column-gap: 40px;
  margin-top: 18px;
}

.names li {
  margin: 0 0 7px;
  break-inside: avoid;
}

/* Footer */

.footer {
  padding: 55px 6vw;
  color: #cfcfcf;
  background: #141414;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer h3 {
  margin-top: 0;
  color: #ffffff;
}

.footer a {
  display: block;
  margin: 5px 0;
  color: #eeeeee;
}

.copy {
  margin-top: 30px;
  padding-top: 20px;
  color: #999999;
  text-align: center;
  border-top: 1px solid #333333;
}

/* Responsive layout */

@media (max-width: 1050px) {
  body.open {
    overflow: hidden;
  }

  .main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 22px;
  }

  .nav-toggle {
    display: block;
    padding: 8px 12px;
    color: #ffffff;
    background: #111111;
    border: 0;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    width: 100%;
    max-height: none;
    height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));

    background: #ffffff;
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.18);
  }

  .open .nav-menu {
    display: flex;
  }

  .nav-group {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-group > button,
  .nav-link {
    width: 100%;
    padding: 15px 22px;
    text-align: left;
  }

  .nav-group:hover .dropdown {
    display: none;
  }

  .nav-group.show .dropdown {
    display: block;
  }

  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 10px;
    border-radius: 0;
    box-shadow: none;
    background: #f7f9fc;
  }

  .dropdown a {
    padding: 10px 22px 10px 38px;
    font-size: 14px;
    line-height: 1.35;
  }

  .hero {
    min-height: 390px;
    background-position: center center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .grid,
  .topic-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .names {
    columns: 1;
  }

  .brand {
    min-width: 120px;
    max-width: 170px;
  }

  .date-card {
    justify-self: start;
    margin-right: 0;
  }

  .page-hero {
    min-height: 250px;
    padding: 60px 22px;
  }

  .page-hero h1 {
    font-size: 42px;
  }
}


/* Conference topic modal cards */

.topic-trigger {
  cursor: pointer;
}

.topic-trigger:hover,
.topic-trigger:focus {
  background: #eef4ff;
  outline: 2px solid rgba(0, 56, 111, 0.22);
  outline-offset: 2px;
}

.topic-modal[hidden] {
  display: none;
}

.topic-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 18, 45, 0.64);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.topic-modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(78vh, 760px);
  overflow-y: auto;
  padding: 42px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.30);
}

.topic-modal-panel h3 {
  margin: 0 44px 18px 0;
  color: var(--dark);
  font-size: 30px;
  line-height: 1.18;
}

.topic-modal-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.topic-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 28px;
  line-height: 36px;
  cursor: pointer;
}

.topic-modal-close:hover,
.topic-modal-close:focus {
  background: var(--dark);
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .topic-modal {
    padding: 16px;
  }

  .topic-modal-panel {
    padding: 30px 24px;
    max-height: 84vh;
  }

  .topic-modal-panel h3 {
    font-size: 24px;
  }

  .topic-modal-panel p {
    font-size: 16px;
  }
}


/* Committee member cards */

.committee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 34px;
}

.committee-member {
  padding: 26px 22px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.committee-photo {
  width: 148px;
  height: 148px;
  display: block;
  margin: 0 auto 18px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 28px rgba(0, 56, 111, 0.18);
  background: #f4f7ff;
}

.committee-member h3 {
  margin: 0 0 7px;
  color: var(--dark);
  font-size: 21px;
  line-height: 1.2;
}

.committee-role {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.committee-email {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.committee-email:hover {
  color: var(--blue);
}

@media (max-width: 1050px) {
  .committee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .committee-grid {
    grid-template-columns: 1fr;
  }
}


/* Steering Committee Board page only
   These rules are intentionally scoped to .steering-board-page so that
   other committee pages and other site sections are not affected.
*/

.steering-board-page .committee-leadership {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 24px;
  margin: 30px 0 42px;
}

.steering-board-page .committee-grid.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.steering-board-page .committee-section-title {
  margin-top: 20px;
}

.steering-board-page .committee-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .steering-board-page .committee-leadership,
  .steering-board-page .committee-grid.board-grid {
    grid-template-columns: 1fr;
  }
}
