/* ============================================================
   Hot Topic: Disease Maps — shared stylesheet
   Colour palette follows Maastricht University's public house
   style (dark blue primary, orange-red + light blue accents).
   Source: maastrichtuniversity.nl house style pages.
   Edit the variables below to restyle the whole site at once.
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-raised: #eef2f6;   /* light cool-blue tint for cards */
  --ink: #10151a;
  --ink-soft: #4c5762;

  --um-blue: #001c3d;        /* UM primary — dark blue */
  --um-orange: #e84e10;      /* UM accent — orange-red */
  --um-lightblue: #00a2db;   /* UM accent — light blue */

  --line: var(--um-blue);
  --line-soft: #7c8794;      /* neutral hairline / secondary text */
  --accent: var(--um-orange);
  --accent-2: var(--um-lightblue);

  --white: #ffffff;

  --display: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--um-blue); text-decoration-color: var(--line-soft); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--um-blue);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- Partner / organizer logo bar ---------- */

.partner-bar {
  background: var(--white);
  border-bottom: 2px solid var(--um-blue);
}

.partner-bar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.partner-bar__label {
  color: var(--line-soft);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  margin-right: 4px;
  white-space: nowrap;
}

/*
  Logos are referenced from their source URLs below (see README for why,
  and how to switch to locally-hosted files under assets/logos/).
  Adjust --logo-h per logo if one looks over/under-sized next to the others.
*/
.partner-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.partner-logo--macsbio,
.partner-logo--biosb {
  height: 46px; /* these two read as more square/icon-shaped than the UM wordmark */
}

.partner-logo--zonmw {
  height: 30px;
}

.partner-bar__divider {
  width: 1px;
  height: 28px;
  background: #dfe3e8;
}

/* ---------- Nav ---------- */

.site-nav {
  border-bottom: 1px solid #dfe3e8;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-nav__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--um-blue);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.site-nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--um-blue);
  border-bottom-color: var(--accent);
}

/* ---------- Nav register button ---------- */

.nav-register {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 3px;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.nav-register:hover { background: var(--um-blue); color: var(--white); }

/* ---------- Page shell ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.eyebrow {
  color: var(--line-soft);
  font-size: 0.92rem;
  margin: 0 0 10px;
}

/* ---------- Hero (home page) ---------- */

.hero {
  position: relative;
  padding-top: 24px;
  padding-bottom: 8px;
}

.hero__net {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  max-width: 32vw;
  max-height: 200px;
  height: auto;
  object-fit: contain;
  z-index: 0;
}

.hero__content { position: relative; z-index: 1; max-width: 480px; }

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.2rem);
  margin-bottom: 0.25em;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Key facts strip ---------- */

.facts {
  margin: 40px 0 8px;
  padding: 22px 0;
  border-top: 2px solid var(--um-blue);
  border-bottom: 1px solid #dfe3e8;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 28px;
}

.facts dt {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--line-soft);
  margin-bottom: 4px;
}

.facts dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--um-blue);
}

/* ---------- CTA ---------- */

.cta-row {
  margin: 34px 0 48px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--um-blue); color: var(--white); }

.deadline-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Section headings ---------- */

section + section { margin-top: 56px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #dfe3e8;
  padding-bottom: 8px;
  margin-bottom: 22px;
  gap: 12px;
}

.section-head h2 { font-size: 1.5rem; margin: 0; }
.section-head .see-all { font-size: 0.92rem; white-space: nowrap; color: var(--accent-2); }

/* ---------- Speaker list ---------- */

.speaker-list { list-style: none; margin: 0; padding: 0; }

.speaker-list li {
  padding: 16px 0;
  border-top: 1px solid #e4e7eb;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.speaker-list li:first-child { border-top: none; }

.speaker-list .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

.speaker-list .affil {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: right;
}

/* ---------- Speaker bio cards (speakers.html) ---------- */

.speaker-card {
  padding: 24px 0;
  border-top: 1px solid #e4e7eb;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start;
}

.speaker-card:first-of-type { border-top: none; }

.speaker-card__photo {
  width: 96px;
  height: 96px;
  border-radius: 3px;
  background: var(--paper-raised);
  border: 1px dashed var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--line-soft);
  text-align: center;
  padding: 6px;
  text-decoration: none;
  overflow: hidden;
}

.speaker-card__photo--filled {
  border-style: solid;
  border-color: #dfe3e8;
  padding: 0;
}

.speaker-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.speaker-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.speaker-card .dept { color: var(--ink); font-weight: 600; font-size: 0.92rem; margin-bottom: 1px; }
.speaker-card .affil { color: var(--um-blue); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.speaker-card .bio-placeholder {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
}

@media (max-width: 480px) {
  .speaker-card { grid-template-columns: 64px 1fr; }
  .speaker-card__photo { width: 64px; height: 64px; }
}

/* ---------- Program / timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid #e4e7eb;
}

.timeline li:first-child { border-top: none; }

.timeline .time {
  font-family: var(--display);
  font-weight: 600;
  color: var(--um-blue);
  font-size: 1.02rem;
  white-space: nowrap;
}

.timeline .what { color: var(--ink); }
.timeline .who { color: var(--ink-soft); font-size: 0.95rem; }

.timeline li.is-break .what,
.timeline li.is-break .time { color: var(--line-soft); font-style: italic; }

.timeline li.is-highlight {
  background: var(--paper-raised);
  margin: 0 -16px;
  padding: 14px 16px;
  border-radius: 3px;
  border-top: none;
  border-left: 3px solid var(--accent-2);
}

/* ---------- Breakout / materials cards ---------- */

.breakout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.breakout-card {
  background: var(--white);
  border: 1px solid #dfe3e8;
  border-top: 3px solid var(--um-blue);
  border-radius: 4px;
  padding: 20px;
}

.breakout-card h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.breakout-card .room-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.logo-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.logo-slot {
  width: 56px;
  height: 56px;
  border: 1px dashed var(--line-soft);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: var(--line-soft);
  text-align: center;
  padding: 4px;
  background: var(--paper-raised);
}

.materials-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 0.95rem;
}

.materials-list li {
  padding: 6px 0;
  border-top: 1px dotted #e4e7eb;
}
.materials-list li:first-child { border-top: none; }

.materials-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dotted #e4e7eb;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
}

/* ---------- Misc ---------- */

.note-box {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 20px 0;
}

.contact-block {
  font-size: 0.95rem;
  margin-top: 4px;
}

.org-affil-shared {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 4px 0 24px;
}

.org-affil-shared__logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}

footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 56px;
  color: var(--line-soft);
  font-size: 0.85rem;
  border-top: 1px solid #dfe3e8;
  padding-top: 20px;
}

.funding-statement {
  margin: 6px 0 0;
  max-width: none;
}

.funder-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.funder-logo-slot {
  height: 24px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.funder-logo {
  display: block;
  height: 100%;
  max-height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.85;
}
