/* =========================
   General
   ========================= */

body {
  font-family: sans-serif;
  margin: 2rem;
}

h1,
h2,
h3 {
  margin-top: 1.5rem;
  color: #c7102e;
}


/* =========================
   Speaker / Details
   ========================= */

details {
  margin: 10px 0;
  border: none;
  padding: 0;
}

summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
}

.speaker-info {
  margin-top: 10px;
  padding-left: 20px;
}

/* Nested subsections */
.subsection {
  margin-left: 20px;
  margin-top: 10px;
}

.subsection > summary {
  font-size: 1em;
  font-weight: bold;
}

.subsection > details {
  margin-left: 20px;
}


/* Main section */
details > summary {
  cursor: pointer;
  font-size: 1.5em;
  font-weight: bold;
  color: #c7102e;
  margin: 12px 0;
}


/* Year / subsection */
details.subsection {
  margin-left: 20px;
  font-size: 1.15em;
}

details.subsection > summary {
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  color: #555;
  margin: 8px 0;
}


/* Speaker */
details.subsection > details {
  margin-left: 20px;
}

details.subsection > details > summary {
  cursor: pointer;
  font-size: 0.95em;
  font-weight: normal;
  color: #333;
}

/* =========================
   Embedded Content
   ========================= */

.embed-container {
  margin-top: 15px;
  border: none;
  padding: 0;
  background: transparent;
}

.embed-container a {
  text-decoration: none;
}

.embed-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.embed-placeholder {
  color: #666;
  font-style: italic;
}


/* =========================
   Navigation
   ========================= */

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-nav a {
  margin-left: 20px;
  font-size: 20px;
  text-transform: uppercase;
  color: #91d0ba;
}

.nav-toggle {
  display: none;
}


/* =========================
   Footer
   ========================= */

.footer-image {
  display: block;
  width: 600px;
  max-width: 100%;
  height: auto;
  margin: 2rem auto 0;
}

.footer-text {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto 0;
  font-size: 10px;
  text-align: center;
}


/* =========================
   Publications
   ========================= */

.publications-table {
  width: 100%;
  border: none;
  border-collapse: collapse;
}

.publications-table td {
  padding: 8px 0;
  border: none;
  vertical-align: top;
}

.publications-table .year {
  width: 80px;
  font-weight: bold;
  color: #666;
}

.publications-table .citation {
  padding-left: 20px;
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 768px) {

  .site-nav {
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #91d0ba;
    background: none;
    color: #91d0ba;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav-links a {
    display: block;
    margin: 8px 0;
  }

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