.ref-inner-page .ref-site {
  padding-inline: var(--ref-gutter);
}

#main-content.ref-page-main {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-top: clamp(144px, 12vw, 192px);
}

#main-content.ref-schedule-main,
#main-content.ref-contact-main {
  padding-top: clamp(120px, 9vw, 152px);
}

.ref-page-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(40px, 4.5vw, 64px);
  text-align: center;
}

.ref-page-heading .ref-hero-event {
  align-items: center;
  justify-content: center;
  margin: 0 0 24px;
  padding: 12px 20px;
  background: #17181c;
  font-size: 14px;
}

.ref-page-heading h1 {
  margin: 0;
  font-family: var(--ref-display);
  font-size: clamp(42px, 6.5vw, 96px);
  font-weight: 600;
  
  line-height: 1.05;
}

.ref-page-heading .ref-accent-word {
  color: var(--ref-orange);
}

.ref-page-heading > p {
  max-width: 50ch;
  margin: 20px 0 0;
  color: rgba(244, 241, 237, 0.68);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.65;
}

.ref-contact-list {
  margin: 0;
}

.ref-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-block: 22px;
  border-top: 1px solid rgba(244, 241, 237, 0.14);
}

.ref-contact-row:last-child {
  border-bottom: 1px solid rgba(244, 241, 237, 0.14);
}

.ref-contact-row dt {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.ref-contact-row dd {
  min-width: 0;
  margin: 0;
}

.ref-contact-emails {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.ref-contact-link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  color: var(--ref-orange);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(252, 80, 0, 0.4);
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.ref-contact-link i {
  flex-shrink: 0;
  font-size: 12px;
}

.ref-contact-link:hover {
  color: #ff9463;
  text-decoration-color: currentColor;
}

.ref-contact-link:active {
  color: var(--ref-ink);
}

.ref-contact-link:focus-visible {
  outline-color: var(--ref-orange);
}

.ref-contact-row p {
  max-width: 60ch;
  margin: 8px 0 0;
  color: rgba(244, 241, 237, 0.65);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .ref-inner-page .ref-site {
    padding-inline: var(--ref-gutter);
  }

  #main-content.ref-page-main {
    padding-top: calc(128px + env(safe-area-inset-top));
  }

  .ref-page-heading .ref-hero-event {
    padding: 12px 14px;
    font-size: 13px;
  }

  .ref-page-heading > p {
    font-size: 16px;
  }

  .ref-contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 20px;
  }

  .ref-contact-row dt {
    font-size: 16px;
  }

  .ref-contact-link {
    min-height: 44px;
    gap: 8px;
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .ref-contact-emails {
    gap: 8px 24px;
  }

  .ref-contact-row p {
    margin-top: 6px;
    font-size: 14px;
  }
}

@media (max-width: 599px) {
  #main-content.ref-schedule-main,
  #main-content.ref-contact-main {
    padding-top: calc(112px + env(safe-area-inset-top));
  }

  .ref-page-heading {
    margin-bottom: 40px;
  }

  .ref-page-heading h1 {
    max-width: 100%;
    font-size: clamp(36px, 9vw, 54px);
    text-wrap: balance;
  }

}


.ref-organizer-label {
  margin: 0;
  color: var(--ref-orange);
  font-size: 12px;
  font-weight: 700;
  
  line-height: 1.3;
  text-transform: uppercase;
}

.ref-organizer-label {
  margin: 28px 0 12px;
  text-align: left;
}

.ref-organizer-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 0;
}

.ref-organizer-strip .ref-organizer-label {
  display: grid;
  min-width: 0;
  min-height: 124px;
  place-items: center;
  margin: 0;
  padding: 20px 14px;
  border-right: 1px dotted rgba(17, 18, 22, 0.65);
  color: #111216;
  font-family: var(--ref-display);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 750;
  
  line-height: 0.95;
  text-align: center;
  text-transform: none;
}

.ref-partner-wordmark {
  color: #111216;
  font-family: var(--ref-display);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 600;
  
  line-height: 1;
}

@media (max-width: 767px) {
  .ref-organizer-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ref-organizer-strip .ref-organizer-label {
    min-height: 92px;
    padding: 16px 10px;
  }

}

/* Calendar grid */
.ref-calendar {
  --calendar-step: 48px;
  --calendar-gutter: 64px;
  --calendar-columns: var(--calendar-gutter) repeat(2, minmax(0, 1fr));
}

.ref-calendar-columns {
  display: grid;
  grid-template-columns: var(--calendar-columns);
  align-items: end;
  padding-bottom: 16px;
  color: rgba(244, 241, 237, 0.62);
  font-size: 13px;
  line-height: 1.4;
}

.ref-calendar-columns > span {
  padding-inline: 8px;
}

.ref-calendar-columns > span:first-child {
  padding: 0 16px 0 0;
  text-align: right;
}

.ref-calendar-columns > span + span {
  color: rgba(244, 241, 237, 0.92);
  font-weight: 700;
}

.ref-calendar-grid {
  display: grid;
  margin-top: 10px;
  grid-template-columns: var(--calendar-columns);
  grid-template-rows:
    [time-0900] var(--calendar-step)
    [time-0930] var(--calendar-step)
    [time-1000] var(--calendar-step)
    [time-1030] var(--calendar-step)
    [time-1100] var(--calendar-step)
    [time-1130] var(--calendar-step)
    [time-1200] var(--calendar-step)
    [time-1230] var(--calendar-step)
    [time-1300] var(--calendar-step)
    [time-1330] var(--calendar-step)
    [time-1400] var(--calendar-step)
    [time-1430] var(--calendar-step)
    [time-1500] var(--calendar-step)
    [time-1530] var(--calendar-step)
    [time-1600] var(--calendar-step)
    [time-1630] var(--calendar-step)
    [time-1700] var(--calendar-step)
    [time-1730] var(--calendar-step)
    [time-1800] var(--calendar-step)
    [time-1830] var(--calendar-step)
    [time-1900];
  background-image: linear-gradient(to bottom, rgba(244, 241, 237, 0.07) 1px, transparent 1px);
  background-position: right top;
  background-size: calc(100% - var(--calendar-gutter)) var(--calendar-step);
  background-repeat: repeat-y;
}

.ref-calendar-grid::before,
.ref-calendar-grid::after {
  grid-column: 3;
  grid-row: time-0900 / time-1900;
  border-left: 1px solid rgba(244, 241, 237, 0.14);
  content: "";
}

.ref-calendar-grid::after {
  grid-column: 2;
}

.ref-calendar-tick {
  position: relative;
  grid-column: 1 / -1;
  align-self: start;
  pointer-events: none;
}

.ref-calendar-tick > span {
  display: block;
  width: var(--calendar-gutter);
  padding-right: 16px;
  color: rgba(244, 241, 237, 0.64);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  transform: translateY(-0.5em);
}

.ref-calendar-tick::after {
  position: absolute;
  top: 0;
  right: 0;
  left: var(--calendar-gutter);
  border-top: 1px solid rgba(244, 241, 237, 0.13);
  content: "";
}

.ref-calendar-at-0900 { grid-row: time-0900; }
.ref-calendar-at-0930 { grid-row: time-0930; }
.ref-calendar-at-1000 { grid-row: time-1000; }
.ref-calendar-at-1030 { grid-row: time-1030; }
.ref-calendar-at-1100 { grid-row: time-1100; }
.ref-calendar-at-1130 { grid-row: time-1130; }
.ref-calendar-at-1200 { grid-row: time-1200; }
.ref-calendar-at-1230 { grid-row: time-1230; }
.ref-calendar-at-1300 { grid-row: time-1300; }
.ref-calendar-at-1330 { grid-row: time-1330; }
.ref-calendar-at-1400 { grid-row: time-1400; }
.ref-calendar-at-1430 { grid-row: time-1430; }
.ref-calendar-at-1500 { grid-row: time-1500; }
.ref-calendar-at-1530 { grid-row: time-1530; }
.ref-calendar-at-1600 { grid-row: time-1600; }
.ref-calendar-at-1630 { grid-row: time-1630; }
.ref-calendar-at-1700 { grid-row: time-1700; }
.ref-calendar-at-1730 { grid-row: time-1730; }
.ref-calendar-at-1800 { grid-row: time-1800; }
.ref-calendar-at-1830 { grid-row: time-1830; }
.ref-calendar-at-1900 { grid-row: time-1900; }

.ref-calendar-at-0900 > span {
  color: var(--ref-ink);
  font-weight: 650;
}

.ref-calendar-event {
  --calendar-event-accent: #111216;
  z-index: 1;
  min-width: 0;
  margin: 6px 8px;
  padding: 18px;
  border-left: 6px solid var(--calendar-event-accent);
  border-radius: 18px;
  color: #111216;
}

.ref-calendar-event h2 {
  margin: 0;
  font-family: var(--ref-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 650;
  
  line-height: 1.05;
}

.ref-calendar-event-time {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.ref-calendar-compact {
  display: flex;
  grid-column: 2 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
}

.ref-calendar-compact h2 {
  font-size: clamp(18px, 1.7vw, 24px);
}

.ref-calendar-compact .ref-calendar-event-time {
  flex-shrink: 0;
  margin: 0;
  white-space: nowrap;
}

.ref-calendar-opening {
  --calendar-event-accent: #111216;
  grid-row: time-0900 / time-0930;
  background: #70dfbc;
}

.ref-calendar-talks {
  --calendar-event-accent: #111216;
  grid-row: time-0930 / time-1030;
  background: #7cb8ff;
}

.ref-calendar-ctf {
  --calendar-event-accent: #111216;
  display: flex;
  grid-column: 2;
  grid-row: time-1030 / time-1830;
  flex-direction: column;
  align-items: flex-start;
  background: var(--ref-orange);
}

.ref-calendar-ctf h2 {
  font-size: clamp(30px, 3.7vw, 56px);
  
}

.ref-calendar-ctf .ref-calendar-event-time {
  margin-bottom: 18px;
}

.ref-calendar-ctf-tracks {
  max-width: 58ch;
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.ref-calendar-ctf-tracks strong {
  font-weight: 800;
  
  text-transform: uppercase;
}

.ref-calendar-event-content {
  position: relative;
  width: 100%;
}

.ref-calendar-break {
  --calendar-event-accent: #111216;
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.ref-calendar-break h2 {
  font-size: clamp(16px, 1.6vw, 22px);
}

.ref-calendar-break .ref-calendar-event-time {
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}

.ref-calendar-coffee {
  grid-row: time-1030 / time-1130;
  background: #e8c6a4;
}

.ref-calendar-recruitment-midday {
  grid-row: time-1130 / time-1300;
  background: #ff77bd;
}

.ref-calendar-lunch {
  grid-row: time-1300 / time-1430;
  background: var(--ref-violet);
  color: #f4f1ed;
}

.ref-calendar-recruitment-afternoon {
  grid-row: time-1430 / time-1800;
  background: #ff77bd;
}

.ref-calendar-awards {
  --calendar-event-accent: #111216;
  grid-row: time-1830 / time-1900;
  margin-block: 2px;
  padding-block: 8px;
  background: #efc86b;
}

.ref-calendar-awards h2 {
  font-size: 16px;
}

.ref-calendar-awards .ref-calendar-event-time {
  font-size: 12px;
}

@media (max-width: 599px) {
  .ref-calendar {
    --calendar-step: 44px;
    --calendar-gutter: 42px;
  }

  .ref-calendar-columns {
    padding-bottom: 12px;
    font-size: 12px;
  }

  .ref-calendar-columns > span {
    min-width: 0;
    padding-inline: 4px;
    overflow-wrap: anywhere;
  }

  .ref-calendar-columns > span:first-child {
    padding-right: 8px;
  }

  .ref-calendar-tick > span {
    padding-right: 8px;
    font-size: 12px;
  }

  .ref-calendar-event {
    margin: 3px 4px;
    padding: 10px 8px;
    border-left-width: 4px;
    border-radius: 12px;
  }

  .ref-calendar-event h2 {
    overflow-wrap: anywhere;
  }

  .ref-calendar-event-time {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .ref-calendar-compact {
    gap: 6px;
    padding: 7px 8px;
  }

  .ref-calendar-compact h2 {
    font-size: 16px;
  }

  .ref-calendar-compact .ref-calendar-event-time {
    font-size: 11px;
  }

  .ref-calendar-ctf h2 {
    font-size: clamp(24px, 5vw, 34px);
  }

  .ref-calendar-break {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    padding: 6px 8px;
  }

  .ref-calendar-break h2 {
    font-size: clamp(13px, 3.4vw, 17px);
  }

  .ref-calendar-break .ref-calendar-event-time {
    font-size: 10px;
    line-height: 1.3;
  }

  .ref-calendar-awards {
    margin-block: 1px;
    padding-block: 4px;
  }

  .ref-calendar-awards h2 {
    font-size: 13px;
  }

  .ref-calendar-awards .ref-calendar-event-time {
    font-size: 10px;
  }
}

/* Keep half-hour event boundaries while showing an hourly calendar rhythm. */
.ref-calendar-grid {
  background-size: calc(100% - var(--calendar-gutter)) calc(var(--calendar-step) * 2);
}

.ref-calendar-at-0930,
.ref-calendar-at-1030,
.ref-calendar-at-1130,
.ref-calendar-at-1230,
.ref-calendar-at-1330,
.ref-calendar-at-1430,
.ref-calendar-at-1530,
.ref-calendar-at-1630,
.ref-calendar-at-1730,
.ref-calendar-at-1830 {
  display: none;
}

/* Match the original calendar block forms. */
.ref-calendar-event {
  --calendar-event-accent: rgba(244, 241, 237, 0.55);
  margin: 3px 8px;
  padding: 20px;
  border-left: 3px solid var(--calendar-event-accent);
  border-radius: 0 5px 5px 0;
  background: rgba(244, 241, 237, 0.04);
  color: var(--ref-ink);
}

.ref-calendar-compact {
  gap: 20px;
  padding: 6px 16px;
}

.ref-calendar-compact h2 {
  font-size: 18px;
}

.ref-calendar-compact .ref-calendar-event-time {
  flex-shrink: 0;
  margin: 0;
  white-space: nowrap;
}

.ref-calendar-opening {
  --calendar-event-accent: #55e3b9;
  background: #55e3b9;
  color: #111216;
}

.ref-calendar-talks {
  --calendar-event-accent: #68b8ff;
  background: #68b8ff;
  color: #111216;
}

.ref-calendar-ctf {
  --calendar-event-accent: var(--ref-orange);
  background: var(--ref-orange);
  color: #111216;
}

.ref-calendar-ctf h2 {
  font-size: clamp(30px, 3.7vw, 56px);
}

.ref-calendar-ctf-tracks {
  color: #111216;
}

.ref-calendar-break {
  --calendar-event-accent: #ffd09b;
  gap: 12px;
  padding: 6px 12px;
  background: #ffd09b;
  color: #111216;
}

.ref-calendar-break h2 {
  font-size: clamp(16px, 1.6vw, 20px);
}

.ref-calendar-break .ref-calendar-event-time {
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}

.ref-calendar-recruitment {
  --calendar-event-accent: #635bff;
  display: block;
  padding: 20px;
  background: #635bff;
  color: #f4f1ed;
}

.ref-calendar-recruitment h2 {
  margin-top: 14px;
  font-size: clamp(22px, 2.4vw, 34px);
}

.ref-calendar-recruitment .ref-calendar-event-time {
  color: #e5e1ff;
  opacity: 1;
}

.ref-calendar-lunch {
  --calendar-event-accent: #ff70b8;
  background: #ff70b8;
  color: #111216;
}

.ref-calendar-awards {
  --calendar-event-accent: #ffd34f;
  margin-block: 1px;
  padding-block: 0;
  background: #ffd34f;
  color: #201a0e;
}

.ref-calendar-awards h2 {
  font-size: 15px;
}

.ref-calendar-awards .ref-calendar-event-time {
  font-size: 12px;
  opacity: 0.85;
}

@media (max-width: 599px) {
  .ref-calendar-event {
    margin: 2px 4px;
    padding: 12px 8px;
    border-left-width: 3px;
    border-radius: 0 4px 4px 0;
  }

  .ref-calendar-compact {
    gap: 6px;
    padding: 6px 8px;
  }

  .ref-calendar-compact h2 {
    font-size: 16px;
  }

  .ref-calendar-recruitment {
    padding: 12px 8px;
  }

  .ref-calendar-recruitment h2 {
    margin-top: 8px;
    font-size: clamp(16px, 4vw, 24px);
  }
}
