/* EAJS Virtual 2026 */

:root {
  --navy: #06377b;       /* EAJS logo dark blue */
  --blue: #25abe3;       /* EAJS logo light blue */
  --navy-pressed: #021d45; /* near-black navy for the selected menu item */
  --text: #1c1c1c;
  --muted: #555;
  --rule: #dde3ea;
  --panel: #f1f5f9;

  /* Closest match to the lettering in the EAJS logo.
     To match the EAJS website exactly, swap in its font name here. */
  --font: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  font-size: 112.5%; /* 18px base, scales with browser zoom */
  scroll-padding-top: 3.5rem; /* stops headings hiding under the menu bar */
  /* Stops phone and tablet browsers enlarging text in some sections
     but not others, so all section headings stay the same size */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Links and focus */

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
}

.skip-link:focus { left: 0; }

/* Header */

.site-header {
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
}

.logo {
  height: 6.5rem;
  width: auto;
  margin: 0 0.75rem 1.5rem;
}

h1 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 600;
}

.subtitle {
  margin: 0 0 0.2rem;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 600;
}

.event-details {
  margin: 0;
  color: var(--navy);
  font-size: 0.95rem;
}

/* Menu bar */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--navy);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.site-nav a {
  display: block;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover { background: rgba(255, 255, 255, 0.12); }

.site-nav a[aria-current="true"] {
  background: var(--navy-pressed);
  color: #fff;
}

/* Sections */

main section.wrap { padding: 3.5rem 1.25rem 0.5rem; }
main section#register { padding-top: 2.5rem; } /* smaller gap after the About section */
main { padding-bottom: 3rem; }

h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 600;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  color: var(--navy);
  font-size: 1.1rem;
}

.themes { padding-left: 1.2rem; }
.themes li { margin-bottom: 0.6rem; }

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Registration form */

.form-placeholder {
  border: 1px dashed var(--muted);
  background: var(--panel);
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  margin: 1.5rem 0 0.5rem;
}

iframe {
  width: 100%;
  min-height: 1100px;
  border: 0;
  margin: 1.5rem 0 0.5rem;
}

/* Programme */

.programme {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.slot {
  display: grid;
  grid-template-columns: 8rem 1fr;
  column-gap: 1rem;
  align-items: baseline; /* lines the time up with the title next to it */
  margin-bottom: 2rem;
}

.time {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--navy);
}

.session {
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy);
}

.talk { margin-top: 0.75rem; }
.talk p { margin: 0; }

.talk .name { font-weight: normal; }
.talk .title { font-weight: 600; }

.talk .tbc { font-weight: normal; color: var(--muted); }

/* Breaks: same size as session titles, in grey */
.break .time { color: var(--navy); }

.break .slot-body p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

details { margin-top: 0.2rem; }

summary {
  cursor: pointer;
  width: fit-content;
  font-size: 0.85rem;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

details[open] summary { margin-bottom: 0.4rem; }

details p {
  margin: 0 0 0.7rem !important;
  font-size: 0.92rem;
  color: #333;
}

/* Organisers */

.people {
  list-style: none;
  padding: 0;
}

.people li { margin-bottom: 0.3rem; }

/* Small screens */

@media (max-width: 36rem) {
  .logo { height: 4.5rem; }
  h1 { font-size: 1.7rem; }
  .site-nav ul { gap: 0.15rem; padding: 0.4rem 0.25rem; }
  .site-nav a { padding: 0.4rem 0.55rem; font-size: 0.85rem; }

  .slot { grid-template-columns: 1fr; }
  .time { margin-bottom: 0.15rem; }
  .break { display: flex; gap: 0.75rem; }
}
