
/* Custom theme*/

/* This must remain at the top of this file. */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');
@import url('_extensions/quarto-ext/fontawesome/assets/css/all.css');


:root {
  /* Brand palette, sampled from the logo: navy ink, pale connecting lines and
     one orange node. Orange is used the way the logo uses it — as a single
     highlight, never as a field of colour. */
  --navy-900: #081A3D;
  --navy: #0D2757;
  --blue: #2B5597;
  --blue-300: #8FA2C6;
  --blue-50: #EEF3FA;
  --orange: #F47F09;      /* on navy only: 5.5:1 there, 2.7:1 on white */
  --orange-ink: #B4530B;  /* the same hue, dark enough for text and rules on white */

  /* Warm neutrals: they keep the sunlit hero photo at home next to the navy. */
  --sand: #FAF6F1;
  --sand-200: #EDE3D9;

  --ink: #1A2233;
  --muted: #4B5568;
  --subtle: #5F6B7E;
  --border: #E2E7EF;

  --main-font: 'Roboto', sans-serif;
  --subheader-font: 'Roboto', sans-serif;
  --mono-font: 'Fira Mono', monospace;
  --header-font: 'Lato', sans-serif;
  --bs-navbar-hover-color: var(--orange);
}

/* navbar */

/* the full logo stacks the name on four lines, so it needs more height than
   a symbol would to stay legible; the bar's padding is trimmed to compensate */
.navbar-brand>img {
    max-height: 68px;
    width: auto;
    padding-left: 9px;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-right: 20px;
}

.navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

a.nav-link,
a.nav-link:after,
a.nav-link:before {
  transition: all .3s;
}

a.nav-link {
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-title:hover {
    color: #fff !important;
}

.navbar-nav .nav-link.active {
  color: var(--navy) !important;
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
}

.navbar-dark .navbar-nav .show>.nav-link,
.navbar-dark .navbar-nav .active>.nav-link,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--navy) !important;
}

.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff !important;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: var(--navy);
}

.sidebar nav[role=doc-toc] ul>li>a.active {
    border-left: 1px solid var(--blue) !important;
    color: var(--blue) !important;
}

.dropdown-item:active{
  background-color: var(--blue);
}

/*  A circle image cropper  */

.clipped {
    clip-path: circle();
}

/* link color */

a {
  text-decoration: none;
}

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

a.white {
  color: white;
  text-decoration: none;
}

/* figure captions */

.figure-caption {
  text-align: center;
  font-size: .8rem;
}

/* Add space between Posts title & description */
#title-block-header.quarto-title-block.default .quarto-title .title {
    margin-bottom: 10px;
}


/*----------------------------------------------*/




/* ----------- ABOUT PAGE -----------*/

/*-- Team info cards --*/

/* Three columns side by side */
.card-column {
  float: left;
  width: 28.8%;
  margin-bottom: 16px;
  padding: 0 12px;
  flex-direction: row;
  display: block;
}


/* Display the columns below each other instead of side by side on small screens */

@media screen and (max-width: 952px) {
  .card-column {
    width: 100%;
    display: block;
  }
}

/* Add some shadows to create a card effect */
.team-card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* Some left and right padding inside the container */
.container {
  padding: 0 16px;
}

/* Clear floats */
.container::after, .row::after {
  content: "";
  clear: both;
  display: table;
}

.team-image {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.team-image-text {
  color: var(--blue);
  font-size: 14px;
  padding: 16px 28px;
}

.team-image:hover {
  opacity: 0.7;
}

.name {
  color: var(--navy) !important;
  margin-bottom: 4px;
  line-height: 1.2;
  text-decoration: none !important;
}

.name:hover {
  color: var(--blue) !important;
  text-decoration: none !important;
}

.job-title {
  color: var(--muted);
  font-size: 13px;
  margin-bottom:5px;
  line-height: 1;
}


.button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 8px;
  color: white;
  background-color: var(--blue);
  text-align: center;
  cursor: pointer;
  width: 20%;
  clip-path: circle();
}

.button:hover {
  background-color: var(--navy);
}
/* ----------------------------------*/


/* ----------- PEOPLE PAGES -----------*/

.article-link:hover {
  color: var(--blue);
  text-decoration: none;
  transition: background-size .4s ease;
  border-bottom: 1px solid
}

.article-link:hover::after {
  border-color: var(--blue);
  right: 0;
  border-radius: 1em;
  border-top: .1em solid var(--blue);
  content: "";
  transition: right .4s cubic-bezier(0,.5,0,1),
              border-color .4s ease-out;
}

/* People page buttons */
.button-column {
  float: left;
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 0 12px;
}

.button-2 {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 10px;
  color: white;
  background-color: var(--blue);
  text-align: center;
  cursor: pointer;
  clip-path: circle();
  text-decoration: none;

}

.button-2:hover {
  background-color: var(--navy);
}

.bio-row {
  flex-direction: column
}

.bio-column-right {
  float: right;
  width: 50%;
  padding: 0 0px;
  flex-direction: column;
  margin-left: 25px;
}

.bio-column-left {
  float: right;
  width: 50%;
  padding: 0 0px;
  flex-direction: column
}


/* Display the columns below each other instead of side by side on small screens */

@media screen and (max-width: 952px) {
  .bio-column-right {
    width: 100%;
    display: block;
  }
  .bio-column-left {
    width: 100%;
    display: block;
    padding-top:20px;
    padding-bottom:20px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ----------------------------------*


/* ----------- POSTS -----------*/

/* Author card at the top of each post  */

.sidebar-iframe {
  border: 0px;
}

.author-card {
    color: black;
    background-color: white;
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(13, 39, 87, 0.12) 0px 0px 8px;
    border-radius: 30px;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    margin-bottom: 40px;
    padding-left: 30px;
    padding-top: 20px;
    padding-bottom:8px;
}

.author-card-text {
  font-size: 0.9rem;
  width: 50%;
}

.author-card-image {
  flex: left;
  width: 16%;
  margin: auto;
  object-fit: contain;
}

@media screen and (max-width: 952px) {
  .author-card {
    color: black;
    background-color: white;
    border-style: solid;
    border-radius: 30px;
    border-color: var(--blue);
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    text-decoration: none;
    display: flex;
  }
  .author-card-text {
    font-size: 0.9rem;
    width: 100%;
  }

  .author-card-image {
    display: block;
    width: 50%;
    margin: auto;
    margin-right: auto !important;
    align-content: center;
    object-fit: center;
  }
}

@media (max-width: 767.98px) {
  .row-b .quarto-layout-row {
    flex-direction: row !important;
}
}

img.rounded {
  object-fit: cover;
  border-radius: 50% !important;
  height: 195px;
  width: 195px;
}

.column-rounded {
  margin-left: auto;
  margin-right: auto;
  width: 50%
}

/* Centre circular images in row layout on phones */

/*@media (max-width: 767.98px)
.quarto-layout-row {
    align-items: center;!important
}*/

@media (max-width: 767.98px) {
  .quarto-layout-row {
    align-items: center !important;
  }
}

/*@media screen and (max-width: 952px) {
  .l-body img {
    margin-right: 15px;
    width: 60px;
  }
}*/

/* event page: side panel + main text as a robust flex layout
   (was floats sized 35% + 60% + 50px, which overflowed and pushed
   the text below the panel on most screens) */
.paper-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2.5rem;
}

.paper-side-column {
  flex: 1 1 260px;
  max-width: 360px;
  position: sticky;
  top: 6rem;
  padding: 24px 20px;
  background-color: var(--blue-50);
  font-size: .85rem;
  border-radius: 24px;
}

.paper-main-column {
  flex: 2 1 420px;
  min-width: 0;
}

.col-image {
  width: 80%;
}


/* Display the columns below each other instead of side by side on small screens */

@media screen and (max-width: 952px) {
  .paper-side-column {
    position: static;
    max-width: none;
  }

  .col-image {
    display: flex;
    justify-content: center;
  }
}

.hex-image-column {
  float:left;
  width: 79%;
}

/* Page buttons highlight colour on Posts */
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--blue);
    border-color: var(--navy);
}

.page-link {
    color: var(--blue);
}

/* Tab appearance in panel-tabset */


.nav-link {
  color: var(--blue);
}

.nav-pills .nav-link {
    background: none;
    border: 10px;
    border-radius: 1.00rem;
}

.nav-pills .nav-link.active {
    background-color: var(--navy);
    color: #fff;
}

.nav-link:hover {
  color: var(--navy);
}

.nav-item .nav-link {
  color: white;
}

.nav-pills .nav-item .nav-link {
  color: var(--blue);
}

.nav-pills .nav-item .nav-link:hover {
  color: var(--navy);
}


/* Tab appearance in panel-tabset */

.value-box-title {
  font-family: var(--main-font);
}

/* ---------- footer (Quarto page-footer) ---------- */

footer.footer .nav-footer {
  min-height: auto;
  /* contents line up with the homepage sections (64rem wide); the selector
     outranks Bootstrap's own .nav-footer padding */
  padding: 2.75rem max(1.5rem, calc((100% - 64rem) / 2)) 2.25rem;
  align-items: center;
  gap: 1.5rem 2.5rem;
}

.footer-logo {
  display: block;
  width: auto;
  height: 64px;
}

.nav-footer .footer-items .nav-link {
  padding: 0.25rem 0.75rem;
  color: #fff;
  font-weight: 500;
}

/* the tab styles elsewhere darken links on hover, which vanishes on navy */
.nav-footer .footer-items .nav-link:hover,
.nav-footer .footer-items .nav-link:focus-visible {
  color: var(--orange) !important;
}

.nav-footer-right {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--blue-300);
}

.nav-footer-right a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-footer-right a:hover {
  color: var(--orange);
}

/* Affiliated Universities */

/*.grid-layout {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto auto auto;
  gap: 0.8rem 2rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}*/

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  justify-items: center;
}



.full-text {
  grid-column: 1 / span 2;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.full-icons {
  grid-column: 1 / span 2;
  text-align: center;
  margin-top: 0;
  padding-top: 0;
}

.icon-link {
  width: 22px;
  height: 22px;
  margin: 0 8px;
  vertical-align: middle;
  transition: transform 0.2s;
}

.icon-link:hover {
  transform: scale(1.2);
}

.full-title {
  text-align: center;
}

.profile-title-box {
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;     
  border-radius: 6px;
  display: inline-block;
  margin: 0 auto 1rem;
  font-weight: 600;
  font-size: 1.1rem;        
  text-align: center;
}

.profile-title-box h4 {
  margin: 0.2rem 0;
}

.card-uni {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  width: 100%;
  max-width: 260px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-uni-imgs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.card-uni-imgs img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* map with clickable pin: wrapper hugs the image so the overlay
   percentages (from Python/nl_maps_unis/map_uni_pins.py) line up exactly */
.card-uni-imgs .map-wrap {
  position: relative;
  display: inline-flex;
}

.card-uni-imgs .map-wrap img {
  width: auto;
  height: 100px;
}

.map-pin-link {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -60%);
  border-radius: 50%;
  border-bottom: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.map-pin-link:hover,
.map-pin-link:focus-visible {
  background-color: rgba(43, 85, 151, 0.14);
}

.card-uni-imgs .profile-img {
  border-radius: 50%; 
  object-fit: cover;
  width: 120px;
  height: 120px;
  border: 2px solid var(--border);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}





/* ---------- listing cards (events, blog) ---------- */

/* The thumbnail is the whole card: no frame, no inner padding. */
.quarto-grid-item.card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(13, 39, 87, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quarto-grid-link:hover .quarto-grid-item.card {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(13, 39, 87, 0.16);
}

.quarto-grid-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 16px;
}

.quarto-grid-item .card-img-top {
  margin: 0;
}

.quarto-grid-item .thumbnail-image {
  display: block;
  width: 100%;
  height: auto !important;  /* the listing writes an inline height */
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .quarto-grid-item.card {
    transition: none;
  }

  .quarto-grid-link:hover .quarto-grid-item.card {
    transform: none;
  }
}

/* ---------- modern navbar refresh ---------- */

.navbar {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.navbar .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* at squeezed widths (navbar still expanded), drop the long title — the logo carries the brand */
@media (min-width: 992px) and (max-width: 1250px) {
  .navbar .navbar-title {
    display: none;
  }
  .navbar .navbar-nav .nav-link {
    padding: 0.45rem 0.7rem;
  }
}

/* phones: a little smaller, still tall enough to read the name */
@media (max-width: 575.98px) {
  .navbar-brand > img {
    max-height: 60px;
    padding-right: 0;
  }
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
}

.navbar .navbar-nav .nav-link.active {
  background-color: var(--orange);
  font-weight: 600;
}

.navbar .nav-link .bi {
  margin-right: 0.4rem;
}

/* modern chevron instead of the default caret triangle; rotates when the menu is open */
.navbar .dropdown-toggle::after {
  content: "";
  border: none;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.35rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.2s ease;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.navbar .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 0.4rem;
  margin-top: 0.35rem;
}

.navbar .dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
}

.navbar .dropdown-item:hover {
  background-color: var(--blue-50);
  color: var(--navy);
}

/* ---------- contact modal ---------- */

#contact-modal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

#contact-modal .modal-header {
  border-bottom: none;
  padding: 1.5rem 1.75rem 0.25rem;
}

#contact-modal .modal-title {
  color: var(--navy);
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

#contact-modal .modal-body {
  padding: 0.25rem 1.75rem 1.75rem;
}

#contact-modal .contact-blurb {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

#contact-modal .form-label {
  font-weight: 600;
  color: var(--muted);
}

#contact-modal .form-control {
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

#contact-modal .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(43, 85, 151, 0.2);
}

.contact-submit {
  background-color: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background-color: var(--navy);
  color: #fff;
}

.contact-submit:disabled {
  background-color: #9BADCB;
}

.contact-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  display: none;
}

.contact-status.is-success {
  display: block;
  color: #2e7d32;
}

.contact-status.is-error {
  display: block;
  color: #b3261e;
}

/* ---------- event page: poster cards ---------- */

.paper-main-column h3 {
  display: inline-block;
  margin-top: 2.25rem;
  padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--orange-ink);
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.poster-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(13, 39, 87, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(13, 39, 87, 0.16);
}

.poster-card a {
  border-bottom: none;
  text-decoration: none;
}

.poster-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.poster-card p {
  margin: 0;
  line-height: 1.45;
}

.poster-card strong {
  color: var(--navy);
}

.poster-uni {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--subtle);
}

/* ---------- member directory ---------- */

.member-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem auto 2.25rem;
}

.member-chip {
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.member-chip:hover {
  background-color: rgba(43, 85, 151, 0.1);
}

.member-chip.active {
  background-color: var(--blue);
  color: #fff;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto 2.5rem;
}

.member-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1rem 1.2rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(13, 39, 87, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(13, 39, 87, 0.16);
}

.member-card.is-hidden {
  display: none;
}

.member-photo {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.9rem;
  border: 2px solid var(--border);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.member-name {
  margin: 0 0 0.3rem;
  color: var(--navy);
  font-size: 1rem !important;
}

.member-role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.member-uni {
  margin: 0.15rem 0 0.65rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--subtle);
}

.member-link .icon-link {
  width: 20px;
  height: 20px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.member-link:hover .icon-link {
  opacity: 1;
}

.member-note {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
}

.members-h {
  display: table;
  margin: 0 auto 1.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--orange-ink);
  text-align: center;
}

.phd-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto 2.5rem;
}

.phd-block {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.phd-block.is-hidden {
  display: none;
}

.phd-uni {
  margin: 0 0 0.4rem;
  color: var(--blue);
  font-size: 0.95rem !important;
}

.phd-names {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- event pages ---------- */

.event-side {
  text-align: center;
}

/* the host institution's logo in a white circle */
.event-badge {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.1rem;
  padding: 14px;  /* host logos are wide wordmarks: let them use the circle's width */
  background: #fff;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(13, 39, 87, 0.1);
}

.event-side p {
  margin-bottom: 0.9rem;
}

.event-download {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.event-download:hover,
.event-download:focus-visible {
  background-color: var(--blue);
  color: #fff;
}

.event-facts {
  margin: 0 0 1.4rem;
}

.event-fact {
  display: inline-block;
  margin: 0 0.35rem 0.4rem 0;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background-color: var(--blue-50);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
}

/* the programme: one row per talk, title and discussant on their own lines */
.programme h4 {
  margin: 1.6rem 0 0.4rem;
  color: var(--navy);
}

.programme ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.programme li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.45;
}

.programme li:last-child {
  border-bottom: 1px solid var(--border);
}

.programme .talk-title {
  display: block;
  font-style: italic;
}

.programme .discussant {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.programme .session-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

/* ---------- an event that hasn't happened yet ---------- */

/* the page stays blank apart from the card and its code: no title or date
   on the page (the title still names the browser tab) */
main:has(.future-event) > header {
  display: none;
}

.future-event {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 4rem;
}

@media (max-width: 900px) {
  .future-event {
    grid-template-columns: minmax(0, 1fr);
  }
  .future-card {
    order: -1;  /* the message first on phones */
  }
}

/* the code: a dark editor panel with brand-toned syntax colours */
.future-code div.sourceCode {
  margin: 0;
  border: none;
  border-radius: 16px;
  background-color: var(--navy-900);
  box-shadow: 0 10px 30px rgba(13, 39, 87, 0.18);
}

.future-code pre.sourceCode {
  margin: 0;
  padding: 1.1rem 0;
  background: transparent;
  color: #DCE4F2;
  font-size: 0.72rem;
  line-height: 1.65;
  overflow-x: auto;
}

.future-code .code-copy-button {
  display: none;
}

/* full-width lines, so a highlighted step reads as a bar across the panel.
   Lines stay inline-block (as pandoc makes them): as blocks, the newlines
   between them would render as blank lines. */
.future-code pre > code.sourceCode {
  display: block;
  min-width: max-content;
}

.future-code pre > code.sourceCode > span {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.65;
  padding: 0 1.1rem;
  border-left: 3px solid transparent;
  transition: opacity 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

/* the site's light syntax theme colours every line dark: repaint for the dark panel */
.future-code pre > code.sourceCode > span,
.future-code code span {
  color: #DCE4F2;
}

.future-code code span.fu { color: #8CC4FF; }
.future-code code span.st { color: #FFC58A; }
.future-code code span.dv,
.future-code code span.fl { color: #FFA35C; }
.future-code code span.at { color: #B9C6DE; }
.future-code code span.sc,
.future-code code span.ot { color: var(--blue-300); }

/* while the snippet types itself, the line being typed is lit, like an
   editor's current line */
.future-event.is-playing .future-code code > span.is-active {
  background-color: rgba(244, 127, 9, 0.14);
  border-left-color: var(--orange);
}

.future-caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background-color: var(--orange);
  animation: caret-blink 1s steps(1) infinite;
}

/* solid while typing, blinking while the card updates */
.future-event.is-typing .future-caret {
  animation: none;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

/* the card: six stacked layers that make up the finished image */
.future-stage {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(13, 39, 87, 0.1);
}

.fc-layer {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), clip-path 0.9s cubic-bezier(0.6, 0, 0.2, 1);
}

.fc-layer:not(.fc-bg) {
  position: absolute;
  inset: 0;
}

.future-event.is-playing .fc-layer:not(.is-shown) {
  opacity: 0;
}

/* how each layer arrives */
.future-event.is-playing .fc-404:not(.is-shown) {
  clip-path: inset(0 100% 0 0);  /* drawn left to right, like a plot rendering */
}

.future-event.is-playing .fc-rule:not(.is-shown) {
  opacity: 1;
  clip-path: inset(0 50% 0 50%);  /* grows out from its centre */
}

.future-event.is-playing .fc-headline:not(.is-shown),
.future-event.is-playing .fc-subline:not(.is-shown) {
  transform: translateY(14px);
}

.future-event.is-playing .fc-logo:not(.is-shown) {
  transform: scale(0.6);
  transform-origin: 50% 89%;  /* the logo's position on the card */
}

.fc-layer.is-shown {
  clip-path: inset(0);
}

.future-replay {
  display: block;
  margin: 1rem auto 0;
  padding: 0.35rem 1rem;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.future-replay:hover,
.future-replay:focus-visible {
  background-color: var(--blue);
  color: #fff;
}

.future-replay[hidden] {
  display: none;
}

.justify {
  text-align: justify !important
}
