/* ==========================================================================
   Public Events page (public-events.html)
   Desktop sizes follow the reference screenshot at a 1280px viewport.
   ========================================================================== */

.pe {
  --gr-container: 1170px;
  --gr-gutter: 24px;
  --pe-navy: #0b2f6b;
  --pe-blue: #0b6fc2;
  --pe-link: #0a62bc;
  --pe-icon: #0b4ea2;
  --pe-text: #2f4a6d;
  --pe-muted: #5b6b7f;
  --pe-tint: #e8f5fd;
  --pe-line: #d6e7f4;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1c2c48;
}

/* ---------- Header ---------- */
.pe-header {
  background: #fff;
  position: relative;
  z-index: 10;
}

.pe-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--gr-container) + 2 * var(--gr-gutter));
  min-height: 76px;
  margin-inline: auto;
  padding: 8px var(--gr-gutter);
}

.pe-header__logo {
  flex: none;
  display: block;
}

.pe-header__logo img {
  width: auto;
  height: 50px;
}

.pe-header__eu {
  flex: none;
  height: 42px;
}

/* ---------- Hero ---------- */
.pe-hero {
  position: relative;
  min-height: 264px;
  background: linear-gradient(90deg, #eef8fe 0%, #e9f5fd 100%);
  overflow: hidden;
}

.pe-hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 53.4%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
}

.pe-hero__content {
  position: relative;
  padding-top: 32px;
  padding-bottom: 26px;
}

.pe-hero__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--pe-navy);
}

.pe-hero__subtitle {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--pe-blue);
}

.pe-hero__lead {
  max-width: 548px;
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--pe-text);
}

/* ---------- Event gallery ---------- */
.pe-gallery {
  padding: 28px 0 12px;
}

.pe-gallery__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.pe-gallery__head p {
  max-width: 545px;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pe-text);
}

.pe-gallery__head a {
  color: var(--pe-link);
  font-weight: 600;
  text-underline-offset: 2px;
}

.pe-heading {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--pe-navy);
}

.pe-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px 10px;
  margin-top: 14px;
}

.pe-event {
  display: flex;
  flex-direction: column;
  padding: 7px 7px 14px;
  border: 1px solid #e3edf6;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 50, 100, 0.06);
}

/* 3:2 keeps the full title of the gallery cover images visible */
.pe-event img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  object-fit: cover;
}

.pe-event__date,
.pe-event__place {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 5px;
  font-size: 12.5px;
  color: #4a6283;
}

.pe-event__date {
  margin-top: 10px;
}

.pe-event__date .gr-icon,
.pe-event__place .gr-icon {
  width: 13px;
  height: 13px;
  color: #23497f;
}

.pe-event__title {
  min-height: calc(2 * 1.32em);
  margin-top: 6px;
  padding-inline: 5px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: #0a2a6b;
  text-wrap: balance;
}

.pe-event__place {
  margin-top: 8px;
}

.pe-event__link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding-inline: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pe-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pe-event__link .gr-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.25;
}

.pe-event__link:hover {
  color: #08498c;
}

/* ---------- Event details panel ---------- */
.pe-details {
  margin-top: 18px;
  border: 1px solid var(--pe-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  scroll-margin-top: 16px;
}

.pe-details[hidden] {
  display: none;
}

.pe-details__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 22px 12px;
  background: #e3f3fd;
}

.pe-details__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #0b2f78;
}

.pe-details__title:focus {
  outline: none;
}

.pe-details__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-top: 5px;
  font-size: 13.5px;
  color: #2c4a72;
}

.pe-details__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.pe-details__meta .gr-icon {
  width: 15px;
  height: 15px;
  color: #0b4ea2;
}

.pe-details__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 11px 20px;
  border: 0;
  border-radius: 5px;
  background: #0a3d80;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.pe-details__close:hover {
  background: #082f63;
}

.pe-details__close .gr-icon {
  width: 13px;
  height: 13px;
}

.pe-details__body {
  padding: 14px 16px 16px;
}

.pe-details__layout {
  display: grid;
  grid-template-columns: 367px minmax(0, 1fr);
  gap: 20px;
}

/* With gallery photos: photos across the top, the information below at full width */
.pe-details__layout--photos {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.pe-details__layout--photos .pe-details__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pe-details__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  object-fit: cover;
}

.pe-details__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 22px 14px;
  padding-top: 6px;
}

.pe-info {
  position: relative;
  padding-left: 40px;
}

.pe-info dt {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #0b2f78;
}

.pe-info__icon {
  position: absolute;
  top: -2px;
  left: 0;
  width: 25px;
  height: 25px;
  color: var(--pe-icon);
}

.pe-info dd {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--pe-muted);
}

.pe-info dd a {
  color: #2f7fd0;
  text-underline-offset: 2px;
}

.pe-info dd a:hover {
  color: var(--pe-link);
}

.pe-info__pending {
  font-style: italic;
}

.pe-subheading {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--pe-navy);
}

/* ---------- About ---------- */
.pe-about {
  padding: 16px 0 22px;
}

.pe-about__inner {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.pe-about__icon {
  width: 56px;
  height: 56px;
  margin: 8px 0 0 6px;
  color: #0b4ea2;
}

.pe-about p {
  max-width: 1000px;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--pe-text);
}

/* ---------- Project partners (the list of the Final Conference page) ---------- */
.pe-partners {
  padding: 18px 0 34px;
}

.pe-partners__intro {
  max-width: 800px;
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--pe-text);
}

.pe-partners__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.pe-partners__grid li {
  display: flex;
}

.pe-partner {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 20px 14px 14px;
  border: 1px solid var(--pe-line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.pe-partner:hover {
  border-color: #b9d3ec;
  box-shadow: 0 8px 20px rgba(11, 47, 107, 0.1);
  transform: translateY(-2px);
}

a.pe-partner:focus-visible {
  outline: 3px solid var(--pe-blue);
  outline-offset: 2px;
}

.pe-partner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  margin-bottom: 10px;
}

.pe-partner__logo img {
  width: auto;
  max-width: 84%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.pe-partner__name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #1c2c48;
}

.pe-partner__country {
  font-size: 12px;
  color: var(--pe-muted);
}

.pe-partner__role {
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--pe-navy);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .pe-partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .pe-partner__logo {
    height: 64px;
  }

  .pe-partner__logo img {
    max-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pe-partner {
    transition: none;
  }

  a.pe-partner:hover {
    transform: none;
  }
}

/* ---------- Footer ---------- */
.pe-footer {
  background: #e0f3fc;
}

.pe-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 98px;
  padding-block: 16px;
}

.pe-footer__logo {
  width: auto;
  height: 48px;
}

.pe-footer__eu {
  height: 40px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .pe-header__logo img {
    height: 44px;
  }

  .pe-header__eu {
    height: 36px;
  }

  .pe-details__layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .pe-details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pe-details__layout--photos {
    grid-template-columns: minmax(0, 1fr);
  }

  .pe-details__layout--photos .pe-details__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pe-footer__inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 1023px) {
  .pe-hero {
    display: flex;
    flex-direction: column;
  }

  .pe-hero__content {
    order: 1;
    padding-bottom: 28px;
  }

  .pe-hero__photo {
    position: static;
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .pe-hero__lead {
    max-width: 680px;
  }

  .pe-gallery__head {
    flex-direction: column;
    gap: 8px;
  }

  .pe-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pe-details__layout {
    grid-template-columns: 1fr;
  }

  .pe-details__media img {
    max-width: 560px;
  }

  .pe-photos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pe-details__layout--photos .pe-details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pe {
    --gr-gutter: 16px;
  }

  .pe-header__logo img {
    height: 40px;
  }

  .pe-header__eu {
    height: 32px;
  }

  .pe-hero__title {
    font-size: 29px;
  }

  .pe-hero__subtitle {
    font-size: 21px;
  }

  .pe-heading {
    font-size: 26px;
  }

  .pe-details__head {
    flex-direction: column;
    padding: 14px 16px;
  }

  .pe-details__title {
    font-size: 19px;
  }

  .pe-details__body {
    padding: 14px 16px 18px;
  }

  .pe-details__grid,
  .pe-details__layout--photos .pe-details__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pe-info dt {
    font-size: 14px;
  }

  .pe-info dd {
    font-size: 13px;
  }

  .pe-about__inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pe-about__icon {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .pe-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .pe-header__inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pe-gallery__grid {
    grid-template-columns: 1fr;
  }

  .pe-event__title {
    min-height: 0;
  }
}

/* ==========================================================================
   Partner pages and event photos
   ========================================================================== */

/* Partner hero */
.pe-hero__eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pe-blue);
}

.pe-hero__partner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.pe-hero__logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 50, 100, 0.12);
}

.pe-hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pe-hero--partner .pe-hero__title {
  max-width: 560px;
}

.pe-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pe-blue);
}

.pe-hero__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--pe-text);
}

.pe-hero__location .gr-icon {
  width: 14px;
  height: 14px;
  color: var(--pe-icon);
}

.pe-hero--partner .pe-hero__lead a {
  color: var(--pe-link);
  font-weight: 600;
}

/* Partner tag on the event cards (page with all partners) */
.pe-event {
  position: relative;
}

.pe-event__partner {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(11, 47, 107, 0.92);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.pe-event__partner:hover {
  background: var(--pe-blue);
}

.pe-empty {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--pe-tint);
  color: var(--pe-text);
}

/* Event photos in the details panel */
.pe-photos__title {
  font-size: 14px;
  font-weight: 700;
  color: #0b2f78;
}

.pe-photos__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.pe-photos__grid figure {
  margin: 0;
}

.pe-photos__link {
  display: block;
  overflow: hidden;
  border-radius: 7px;
}

.pe-photos__link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.pe-photos__link:hover img {
  transform: scale(1.03);
}

.pe-photos__grid figcaption {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--pe-text);
}

.pe-photos__credit {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--pe-muted);
}

@media (max-width: 720px) {
  .pe-hero__logo {
    width: 52px;
    height: 52px;
  }

  .pe-hero__stats {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .pe-photos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }

  .pe-photos__grid figcaption {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pe-photos__link img {
    transition: none;
  }
}

/* ---------- Institutions: big buttons with logos ---------- */
.pe-hlis {
  padding: 34px 0 6px;
}

.pe-hlis__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 18px;
}

.pe-hlis__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pe-navy);
}

.pe-hlis__intro {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pe-text);
}

.pe-hlis__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.pe-hlis__grid > li {
  display: flex;
}

/* Tiles: logo on top, then the short name, the full name and the number of events */
.pe-hli {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 0;
  padding: 18px 16px 16px;
  border: 1px solid var(--pe-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f5f9fd 100%);
  color: var(--pe-navy);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(11, 47, 107, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pe-hli:hover {
  border-color: var(--pe-blue);
  box-shadow: 0 12px 28px rgba(11, 47, 107, 0.14);
  transform: translateY(-3px);
}

.pe-hli:focus-visible {
  outline: 3px solid var(--pe-blue);
  outline-offset: 2px;
}

.pe-hli__logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px #e3edf6, 0 4px 12px rgba(11, 47, 107, 0.1);
}

.pe-hli__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pe-hli__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.pe-hli__short {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.pe-hli__name {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--pe-text);
}

.pe-hli__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pe-blue);
}

.pe-hli__count .gr-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.pe-hli:hover .pe-hli__count .gr-icon {
  transform: translateX(3px);
}

.pe-hli.is-current {
  border-color: var(--pe-navy);
  background: var(--pe-navy);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 47, 107, 0.25);
}

.pe-hli.is-current .pe-hli__name,
.pe-hli.is-current .pe-hli__count {
  color: rgba(255, 255, 255, 0.86);
}

/* "All partners": the GREATER logo, on a warm tile that stands apart from the four institutions */
.pe-hli--all {
  border-color: #f0d887;
  background: linear-gradient(160deg, #fff6d8 0%, #fffdf4 100%);
}

.pe-hli--all:hover {
  border-color: #dcae1f;
}

.pe-hli__logo--greater {
  width: 100%;
  max-width: 172px;
  height: 64px;
  padding: 0 14px;
  border-radius: 14px;
}

.pe-hli__logo--greater img {
  width: 100%;
  height: auto;
}

.pe-hli--all.is-current {
  border-color: var(--pe-navy);
  background: linear-gradient(160deg, #0b2f6b 0%, #12458f 100%);
}

.pe-hli--all.is-current .pe-hli__logo--greater {
  box-shadow: 0 0 0 3px #f2c230;
}

@media (max-width: 1100px) {
  .pe-hlis__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pe-hlis__all {
    grid-column: 1 / -1;
  }

  .pe-hli--all {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .pe-hli__logo--greater {
    width: 172px;
  }

  .pe-hli--all .pe-hli__count {
    margin-top: 6px;
    padding-top: 0;
  }
}

@media (max-width: 860px) {
  .pe-hlis__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .pe-hlis {
    padding-top: 26px;
  }

  .pe-hlis__title {
    font-size: 21px;
  }

  .pe-hlis__grid {
    gap: 10px;
  }

  .pe-hli {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 14px;
  }

  .pe-hli__logo {
    width: 56px;
    height: 56px;
    padding: 6px;
  }

  .pe-hli--all {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .pe-hli__logo--greater {
    width: 118px;
    height: 54px;
    padding: 0 10px;
  }

  .pe-hli__text {
    flex: 1;
  }

  .pe-hli__count {
    margin-top: auto;
    padding-top: 8px;
  }

  .pe-hli__short {
    font-size: 19px;
  }

  .pe-hli__name {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pe-hli,
  .pe-hli__count .gr-icon {
    transition: none;
  }

  .pe-hli:hover {
    transform: none;
  }
}

/* ==========================================================================
   Event details: photos and overview with the key facts, the agenda and
   speakers as short lists ("Show all" for the rest), then the documents.
   Long texts show their first sentences ("Read more" for the rest).
   ========================================================================== */
.pe-dx {
  display: grid;
  gap: 22px;
}

.pe-dx__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 26px;
  align-items: start;
}

.pe-dx__top--photos .pe-photos__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pe-dx__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #0b2f78;
}

.pe-dx__icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--pe-icon);
}

.pe-dx__count {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pe-tint);
  color: var(--pe-navy);
  font-size: 12px;
  font-weight: 700;
}

.pe-prose {
  margin-top: 8px;
}

.pe-dx .pe-prose p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--pe-text);
}

.pe-dx .pe-prose p + p {
  margin-top: 8px;
}

.pe-dx a {
  color: var(--pe-link);
}

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

/* "Read more" / "Show all" */
.pe-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pe-link);
  cursor: pointer;
  list-style: none;
}

.pe-more > summary::-webkit-details-marker {
  display: none;
}

.pe-more > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.pe-more[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.pe-more > summary:hover {
  color: var(--pe-navy);
}

.pe-more > summary:focus-visible {
  outline: 2px solid var(--pe-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.pe-more__close,
.pe-more[open] > summary .pe-more__open {
  display: none;
}

.pe-more[open] > summary .pe-more__close {
  display: inline;
}

.pe-more > :not(summary) {
  margin-top: 8px;
}

/* Who took part */
.pe-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

/* a lone last card (one or three facts) runs across */
.pe-fact:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.pe-fact {
  padding: 12px 14px;
  border: 1px solid #e3eef8;
  border-radius: 10px;
  background: #f5f9fd;
}

.pe-fact dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #0b2f78;
}

.pe-fact dt .pe-dx__icon {
  width: 16px;
  height: 16px;
}

.pe-fact dd,
.pe-fact dd p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pe-text);
}

.pe-fact dd {
  margin-top: 6px;
}

.pe-facts__list li {
  position: relative;
  padding-left: 13px;
}

.pe-facts__list li + li {
  margin-top: 3px;
}

.pe-facts__list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pe-blue);
}

/* Agenda and speakers */
.pe-dx__programme {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* only an agenda or only speakers: one card across */
.pe-dx__programme--single {
  grid-template-columns: minmax(0, 1fr);
}

/* an event with only its photo(s) */
.pe-dx__top--media {
  grid-template-columns: minmax(0, 560px);
}

.pe-dx__card {
  padding: 16px 18px;
  border: 1px solid var(--pe-line);
  border-radius: 12px;
  background: #fff;
}

.pe-dx__card > p {
  margin-top: 8px;
}

.pe-list {
  margin-top: 8px;
}

.pe-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #edf3f9;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--pe-text);
}

.pe-list > li:first-child {
  border-top: 0;
}

.pe-more--list .pe-list > li:first-child {
  border-top: 1px solid #edf3f9;
}

.pe-more--list > summary {
  margin-top: 2px;
}

.pe-more--list > .pe-list {
  margin-top: 4px;
}

.pe-list__time {
  flex: none;
  align-self: flex-start;
  min-width: 52px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--pe-tint);
  color: var(--pe-navy);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.pe-list--speakers li {
  flex-direction: column;
  gap: 2px;
}

.pe-list__name {
  font-weight: 700;
  color: #0b2f78;
}

.pe-list__role {
  font-size: 12.5px;
  color: var(--pe-muted);
}

.pe-list__topic {
  font-size: 13px;
  color: var(--pe-text);
}

/* Documents */
.pe-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  align-items: start;
  gap: 12px;
}

.pe-docs__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--pe-line);
  border-radius: 10px;
  background: #fff;
}

.pe-docs__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #0b2f78;
}

.pe-docs__label .pe-dx__icon {
  width: 16px;
  height: 16px;
}

.pe-docs__body p,
.pe-docs__links span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--pe-text);
}

.pe-docs__links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Long texts: a few lines, then "Read more" (added by main.js where the text overflows) */
.pe-clamp {
  --clamp-lines: 4;
  --clamp-lh: 1.5em;
  --clamp-bg: #fff;
}

.pe-clamp--overview {
  --clamp-lines: 6;
  --clamp-lh: 1.6em;
  margin-top: 8px;
  font-size: 14.5px;
}

.pe-clamp--overview .pe-prose {
  margin-top: 0;
}

.pe-clamp--fact {
  --clamp-lines: 5;
  --clamp-bg: #f5f9fd;
  font-size: 13.5px;
}

.pe-clamp--doc {
  --clamp-lh: 1.45em;
  font-size: 13px;
}

.js .pe-clamp {
  position: relative;
  max-height: calc(var(--clamp-lh) * var(--clamp-lines));
  overflow: hidden;
}

.js .pe-clamp.is-fit,
.js .pe-clamp.is-open {
  max-height: none;
  overflow: visible;
}

.js .pe-clamp.is-clamped:not(.is-open)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(var(--clamp-lh) * 1.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--clamp-bg));
  pointer-events: none;
}

.pe-clamp__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pe-link);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.pe-clamp__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.pe-clamp__toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(-135deg);
}

.pe-clamp__toggle:hover {
  color: var(--pe-navy);
}

.pe-clamp__toggle:focus-visible {
  outline: 2px solid var(--pe-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 1023px) {
  .pe-dx__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .pe-dx__top--photos .pe-photos__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pe-dx__media .pe-details__media img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  .pe-dx__programme,
  .pe-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  /* captions of the event photos: three lines on phones (the full text is the photo's description) */
  .pe-dx .pe-photos__grid figcaption {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .pe-dx__top--photos .pe-photos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pe-more > summary::after {
    transition: none;
  }
}
