.anfd-program {
  line-height: 1.6;
}

/* The original rounded column clipped the final mobile day button. */
#main-content .anfd-program-column {
  border-radius: 0;
  overflow: visible;
}

#event-schedule-heading {
  font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: #ff6501;
}

.anfd-program-days {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 36px;
}

.anfd-program-days a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #ff6501;
  border-radius: 4px;
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

.anfd-program-days a:hover {
  background: #f2f0eb;
}

.anfd-program-days a:focus-visible {
  outline: 3px solid #333;
  outline-offset: 4px;
}

.anfd-program-day {
  margin-top: 40px;
  scroll-margin-top: 160px;
}

.anfd-program-day h3 {
  padding-bottom: 16px;
  border-bottom: 3px solid #ff6501;
  line-height: 1.4;
}

.anfd-program [hidden] {
  display: none !important;
}

.anfd-program-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 16px;
  border: 1px solid #ff6501;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.anfd-program-toggle-icon {
  flex-shrink: 0;
}

.anfd-program-toggle-icon::before {
  content: '+';
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.anfd-program-toggle[aria-expanded='true'] {
  background: #f2f0eb;
}

.anfd-program-toggle[aria-expanded='true'] .anfd-program-toggle-icon::before {
  content: '−';
}

.anfd-program-toggle:hover {
  background: #f2f0eb;
}

.anfd-program-toggle:focus-visible {
  outline: 3px solid #333;
  outline-offset: -4px;
}

.anfd-program-mobile .anfd-program-day {
  margin-top: 12px;
}

.anfd-program-mobile .anfd-program-day h3 {
  padding-bottom: 0;
  border-bottom: 0;
}

#main-content .anfd-program table {
  width: 100%;
  margin: 24px 0 32px;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #dedbd5;
}

@media print {
  .anfd-program .anfd-program-events[hidden],
  .anfd-program .anfd-program-day-title[hidden] {
    display: block !important;
  }

  .anfd-program .anfd-program-days,
  .anfd-program .anfd-program-toggle {
    display: none !important;
  }
}

.anfd-program caption {
  padding-bottom: 10px;
  color: #333;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
}

.anfd-program-time {
  width: 18%;
}

.anfd-program-activity {
  width: 56%;
}

.anfd-program-location {
  width: 26%;
}

#main-content .anfd-program th,
#main-content .anfd-program td {
  padding: 14px 16px;
  border-bottom: 1px solid #dedbd5;
  color: #333;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.anfd-program th {
  background: #f2f0eb;
  font-weight: 700;
}

.anfd-program tbody tr:nth-child(even) {
  background: #faf9f6;
}

.anfd-program td:first-child {
  overflow-wrap: normal;
}

@media (max-width: 600px) {
  #event-schedule-heading {
    font-size: 21px;
  }

  .anfd-program-days {
    flex-direction: column;
  }

  .anfd-program-day h3 {
    font-size: 21px;
  }

  .anfd-program-time {
    width: 30%;
  }

  .anfd-program-activity {
    width: 42%;
  }

  .anfd-program-location {
    width: 28%;
  }

  #main-content .anfd-program th,
  #main-content .anfd-program td {
    padding: 10px 6px;
    font-size: 14px;
  }
}

/* Program hidden until the next event's schedule is published */
.anfd-program.anfd-program-unpublished {
  display: none !important;
}
