:root {
  --ink: #151827;
  --muted: #5f6474;
  --line: #dfe2ea;
  --paper: #ffffff;
  --soft: #f4f6fa;
  --red: #d6001c;
  --magenta: #9d0f61;
  --blue: #244da1;
  --teal: #0d766e;
  --gold: #a76a05;
  --site-width: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: var(--blue);
}

.text-map-link {
  align-items: center;
  display: inline-flex;
  gap: .25rem;
  font-weight: 800;
  white-space: nowrap;
}

.text-map-link::before {
  content: "\2197";
  display: inline-block;
  font-size: .9em;
  font-weight: 900;
  line-height: 1;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: block;
  background: #fff;
}

.brand img {
  display: block;
  width: 100%;
  max-width: var(--site-width);
  height: auto;
  margin: 0 auto;
}

.nav {
  display: flex;
  gap: .5rem;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: .85rem 1rem;
  overflow-x: auto;
  white-space: nowrap;
}

.nav a {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: .4rem;
  text-decoration: none;
  font-weight: 750;
  padding: .55rem .8rem;
  border-radius: 6px;
}

.home-nav svg {
  display: none;
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

@media (min-width: 781px) {
  .home-nav svg {
    display: none !important;
  }

  .home-nav span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: #f1f3f8;
  color: var(--red);
}

main {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.session-type {
  color: var(--red);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  margin: 0 0 .65rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 8vw, 5rem);
  line-height: 1;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.15;
  margin-bottom: .75rem;
}

h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 780px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1rem;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  background: var(--red);
  color: #fff;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.event-card,
.highlights article,
.info-list article,
.session {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.event-card {
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgba(21, 24, 39, .08);
}

.event-card span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.event-card-label span {
  margin: 0;
}

.venue-map-link {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  background: var(--soft);
}

.venue-map-link:hover {
  color: var(--red);
  background: #fff;
}

.venue-map-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.event-card strong {
  display: block;
  margin: .2rem 0 1rem;
  font-size: 1.05rem;
}

.event-card strong:last-child {
  margin-bottom: 0;
}

.content-band {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  font-size: clamp(1.65rem, 4vw, 2.7rem);
}

.text-grid {
  columns: 2 260px;
  column-gap: 2rem;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.highlights article {
  padding: 1.3rem;
  background: var(--soft);
}

.highlights h3 {
  color: var(--red);
}

.page-title {
  padding: clamp(2rem, 6vw, 4.5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2rem;
}

.info-list article {
  padding: 1.25rem;
}

.map-link {
  margin-bottom: 0;
  font-weight: 800;
}

.venue-image {
  margin: 2rem 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.venue-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.venue-image iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, 420px);
  border: 0;
}

.venue-image figcaption {
  padding: .7rem 1rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.rapporteur-intro,
.report-placeholder,
.slides-section,
.gallery-section {
  padding-top: 2rem;
}

.rapporteur-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.5rem;
}

.rapporteur-intro p {
  color: var(--muted);
  font-size: 1.05rem;
}

.report-placeholder {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.5rem;
}

.report-box {
  border: 1px dashed #aeb5c6;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  min-height: 220px;
  padding: 1.25rem;
}

.report-box p:last-child {
  margin-bottom: 0;
}

.report-author {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  max-width: 780px;
  margin: .75rem 0 1.75rem;
}

.report-author img {
  display: block;
  width: 116px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.report-author h3 {
  margin-bottom: .1rem;
}

.report-author p {
  color: var(--muted);
  margin-bottom: 0;
}

.report-article {
  max-width: 780px;
}

.report-article p {
  color: var(--ink);
  font-size: 1.02rem;
}

.slides-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.5rem;
}

.slide-download {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 780px;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.slide-file-type {
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--red);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.slide-download h3 {
  margin-bottom: .15rem;
}

.slide-download p {
  color: var(--muted);
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1.25rem;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.gallery-grid a {
  display: block;
  overflow: hidden;
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .2s ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.025);
}

.resources-list {
  display: grid;
  gap: 0;
}

.resource-group {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.resource-speaker h2 {
  margin-bottom: .4rem;
}

.resource-speaker > p:last-child {
  color: var(--muted);
}

.resource-links {
  display: grid;
  gap: .75rem;
}

.resource-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  text-decoration: none;
}

.resource-link:hover,
.resource-link:focus-visible {
  border-color: #aeb5c6;
  background: #fff;
}

.resource-link strong,
.resource-link small {
  display: block;
}

.resource-link small {
  margin-top: .15rem;
  color: var(--muted);
  line-height: 1.35;
}

.resource-type {
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.resource-type.pdf {
  background: var(--red);
}

.resource-type.email {
  background: var(--teal);
  font-size: 1.2rem;
}

.resource-action {
  color: var(--blue);
  font-size: .85rem;
  font-weight: 800;
  white-space: nowrap;
}

.programme {
  display: grid;
  gap: 1rem;
  padding-top: 2rem;
}

.session-subitems {
  display: grid;
  gap: .85rem;
  margin-top: 1rem;
}

.session-subitem {
  border-left: 4px solid var(--red);
  padding: .1rem 0 .1rem 1rem;
}

.session-subitem-time {
  color: var(--red);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  margin-bottom: .25rem;
  text-transform: uppercase;
}

.session-subitem h3 {
  margin-bottom: .25rem;
}

.session-subitem p:last-child {
  margin-bottom: 0;
}

.session {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem;
}

.session time {
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 900;
}

.session.simple {
  background: var(--soft);
}

.speaker-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
}

.speaker-card-wide {
  grid-template-columns: minmax(0, 1fr);
}

.speaker-content {
  min-width: 0;
}

.speaker-list {
  display: grid;
  gap: .9rem;
  margin: .35rem 0 .8rem;
}

.speaker-entry {
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

.speaker-entry-with-avatar {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.speaker-entry-with-avatar .headshot {
  width: 88px;
  font-size: 1.55rem;
}

.speaker-entry-details {
  min-width: 0;
}

.speaker-entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.speaker-entry h3,
.panel-role {
  font-size: 1rem;
  margin-bottom: .35rem;
}

.speaker-bio {
  display: flex;
  flex-direction: column;
  color: var(--muted);
}

.bio-text {
  display: block;
  order: 1;
  max-height: 4.65em;
  overflow: hidden;
}

.speaker-bio.is-expanded .bio-text,
.speaker-bio[open] .bio-text,
.is-editing .bio-text {
  display: block;
  max-height: none;
  overflow: visible;
}

.read-more,
.speaker-bio summary {
  display: inline-flex;
  align-items: center;
  order: 2;
  margin-top: .2rem;
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.speaker-bio summary {
  list-style: none;
}

.speaker-bio summary::-webkit-details-marker {
  display: none;
}

.speaker-bio[open] .read-more-text,
.speaker-bio:not([open]) .show-less-text {
  display: none;
}

.read-more:hover,
.speaker-bio summary:hover {
  color: var(--red);
}

.is-editing .read-more {
  display: none;
}

.panel-roles {
  display: grid;
  gap: .25rem;
  margin: .45rem 0 .85rem;
}

.panel-role {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: baseline;
}

.panel-role-label {
  color: var(--red);
}

.panel-role .editable-field {
  display: inline-block;
}

.session-description {
  color: var(--muted);
}

.headshot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  width: 112px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1f2f79, #a20f63);
}

.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload {
  position: absolute;
  right: .35rem;
  bottom: .35rem;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  display: none;
  place-items: center;
  color: #fff;
  background: rgba(21, 24, 39, .78);
  box-shadow: 0 8px 22px rgba(21, 24, 39, .22);
  cursor: pointer;
}

.avatar-upload svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.is-editing .headshot:hover .avatar-upload,
.is-editing .headshot:focus-within .avatar-upload {
  display: grid;
}

.headshot.accent {
  background: linear-gradient(135deg, #244da1, #0d766e);
}

.headshot.green {
  background: linear-gradient(135deg, #0d766e, #86a315);
}

.headshot.gold {
  background: linear-gradient(135deg, #a76a05, #d6001c);
}

.headshot.violet {
  background: linear-gradient(135deg, #6122a6, #244da1);
}

.headshot.coral {
  background: linear-gradient(135deg, #d6001c, #de7a22);
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

footer p {
  margin: 0;
}

.footer-copy {
  min-width: 14rem;
}

.footer-copy p + p {
  margin-top: .35rem;
}

.footer-logos {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.1rem;
  justify-content: flex-end;
}

.footer-logos img {
  display: block;
  height: 38px;
  max-width: 158px;
  object-fit: contain;
  width: auto;
}

@media (max-width: 780px) {
  .brand img {
    max-width: none;
  }

  .nav {
    justify-content: flex-start;
  }

  .home-nav {
    padding-left: .65rem;
    padding-right: .65rem;
  }

  .home-nav svg {
    display: block !important;
  }

  .home-nav span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero,
  .content-band,
  .info-list,
  .highlights,
  .rapporteur-intro,
  .session {
    grid-template-columns: 1fr;
  }

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

  .resource-group {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .event-card {
    box-shadow: none;
  }


  .session {
    gap: .55rem;
    padding: .9rem;
  }

  .speaker-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
  }

  .speaker-card-wide {
    grid-template-columns: 1fr;
  }

  .speaker-entry-with-avatar {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: .75rem;
  }

  .report-author {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .report-author img {
    width: 88px;
  }

  .headshot {
    width: 72px;
    font-size: 1.25rem;
  }

  .speaker-entry-with-avatar .headshot {
    width: 72px;
    font-size: 1.25rem;
  }

  .slide-download {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .slide-file-type {
    width: 52px;
  }

  .slide-download .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-logos {
    justify-content: flex-start;
  }

  .footer-logos img {
    height: 34px;
    max-width: 142px;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .resource-link {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .resource-type {
    width: 44px;
  }

  .resource-action {
    grid-column: 2;
  }
}
