/* Fall Fest flyer selector and festival flyer theme */
.collection-guide-tabs,
.tab-row,
.filter-chip-row {
  overflow: visible;
  padding: 4px;
}

.tab-button.active,
.tab-button[aria-selected="true"],
.collection-day-chip.active,
.fall-fest-flyer-pill.active {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
  outline: 2px solid transparent;
  outline-offset: 3px;
}

.fall-fest-flyer-pill.active {
  background: linear-gradient(180deg, #edf3ff 0%, #dce8ff 100%);
  border-color: rgba(79, 103, 168, 0.28);
  color: #273a5c;
}

.legacy-fall-fest-doc .doc-page {
  box-sizing: border-box;
  width: 8.5in;
  height: 11in;
  min-width: 8.5in;
  max-width: 8.5in;
  min-height: 11in;
  max-height: 11in;
  margin: 0 auto;
  overflow: visible;
}

.legacy-fall-fest-doc .doc-page-inner {
  min-height: 11in;
  padding: 0.34in;
  gap: 10px;
}

.doc-festival-page .doc-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.15in;
  gap: 18px;
  align-items: center;
  padding-bottom: 10px;
}

.doc-festival-page .flyer-title-wrap {
  min-width: 0;
}

.doc-festival-page .doc-title {
  font-size: clamp(2.15rem, 5vw, 3rem);
  max-width: 7.2em;
}

.doc-festival-page .doc-subtitle {
  font-size: 1.08rem;
  font-weight: 700;
}

.fall-fest-logo-card {
  width: 2.15in;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fall-fest-logo-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.legacy-fall-fest-doc .legacy-festival-section-grid {
  gap: 9px;
}

.legacy-fall-fest-doc .doc-card {
  padding: 10px;
  border-radius: 14px;
  gap: 7px;
}

.legacy-fall-fest-doc .doc-section-title {
  font-size: 0.88rem;
}

.legacy-fall-fest-doc .doc-entry-list {
  gap: 5px;
}

.legacy-fall-fest-doc .doc-schedule-item {
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 10px;
}

.legacy-fall-fest-doc .doc-schedule-time {
  font-size: 0.74rem;
  line-height: 1.2;
}

.legacy-fall-fest-doc .doc-schedule-copy h4 {
  font-size: 0.82rem;
  line-height: 1.16;
}

.legacy-fall-fest-doc .doc-schedule-copy p {
  font-size: 0.72rem;
  line-height: 1.24;
}

.legacy-fall-fest-doc .doc-footer {
  padding-top: 8px;
  font-size: 0.72rem;
}

@media (max-width: 820px) {
  .fall-fest-print-root .doc-festival-page .doc-header {
    grid-template-columns: minmax(0, 1fr) 2.15in;
  }

  .fall-fest-print-root .fall-fest-logo-card {
    width: 2.15in;
  }
}

@media print {
  @page { size: 8.5in 11in; margin: 0; }

  .collection-guide-tabs,
  .flyer-doc-pill-row {
    overflow: visible;
  }

  body,
  .phone-shell,
  main,
  #schedule,
  #schedule-list,
  .collection-detail-view,
  .collection-guide-section,
  .flyer-shell,
  .fall-fest-flyer-stack,
  .fall-fest-flyer-group,
  .flyer-preview-shell {
    background: #fff !important;
    box-shadow: none !important;
  }

  .collection-back-link,
  .collection-guide-hero,
  .collection-guide-tabs,
  .collection-day-selector,
  .flyer-group-selector,
  .fall-fest-flyer-group__header {
    display: none !important;
  }

  .legacy-fall-fest-doc .doc-page {
    width: 8.5in !important;
    height: 11in !important;
    min-height: 11in !important;
    max-height: 11in !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    break-after: auto !important;
    page-break-after: auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .legacy-fall-fest-doc .doc-page-inner {
    height: 11in !important;
    min-height: 11in !important;
    padding: 0.28in !important;
  }
}

body.theme-dark .fall-fest-flyer-pill.active {
  background: rgba(112, 146, 226, 0.2);
  color: #eef4ff;
}

/* Mt. Pulaski Fall Fest festival flyer body: COVH-inspired boxed schedule layout. */
.doc-festival-page.fall-fest-print-page {
  overflow: visible;
}

.doc-festival-page.fall-fest-print-page .doc-page-inner {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 11in;
  min-height: 11in;
  max-height: 11in;
}

.fall-fest-print-root {
  display: grid;
  gap: 1.25rem;
  width: 8.5in;
  min-width: 8.5in;
  max-width: 8.5in;
}

.fall-fest-flyer-screen-shell {
  overflow-x: auto;
}

.fall-fest-print-toolbar {
  justify-content: flex-end;
}

.fall-fest-print-sheet {
  box-sizing: border-box;
  width: 8.5in;
  height: 11in;
  min-width: 8.5in;
  max-width: 8.5in;
  min-height: 11in;
  max-height: 11in;
  margin: 0 auto;
  overflow: visible;
}

.fall-fest-print-root .doc-footer {
  margin-top: auto;
}

.fall-fest-flyer-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0.14in;
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
}

.fall-fest-flyer-column {
  min-width: 0;
  min-height: 0;
}

.fall-fest-pagination-source {
  display: none;
}

.fall-fest-footer-reserve {
  display: block !important;
  visibility: hidden;
}

.fall-fest-day-section {
  display: block;
  break-inside: auto;
  page-break-inside: auto;
  margin: 0 0 0.12in;
}

.fall-fest-day-title {
  display: block;
  margin: 0 0 0.055in;
  padding: 0.055in 0.08in;
  border: 1.5px solid #674220;
  border-radius: 0.08in;
  background: linear-gradient(180deg, #fff6df 0%, #f4d590 100%);
  color: #4b2910;
  font-size: 0.76rem;
  line-height: 1.1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  break-after: avoid;
  page-break-after: avoid;
}

.fall-fest-day-continued {
  font-size: 0.82em;
  letter-spacing: normal;
  text-transform: none;
}

.fall-fest-event-card {
  display: grid;
  grid-template-columns: 0.75in minmax(0, 1fr);
  gap: 0.055in;
  width: 100%;
  margin: 0 0 0.055in;
  padding: 0.07in;
  border: 1px solid rgba(103, 66, 32, 0.42);
  border-radius: 0.08in;
  background: rgba(255, 252, 242, 0.96);
  box-shadow: 0 1px 0 rgba(103, 66, 32, 0.08);
  break-inside: avoid;
  page-break-inside: avoid;
}

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

.fall-fest-info-card,
.fall-fest-event-card:not(:has(.fall-fest-event-time)) {
  grid-template-columns: minmax(0, 1fr);
}

.fall-fest-event-time {
  color: #6f3d15;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}

.fall-fest-event-copy h4 {
  margin: 0;
  color: #2f210f;
  font-size: 0.73rem;
  line-height: 1.12;
}

.fall-fest-event-copy p,
.fall-fest-event-copy .flyer-list {
  margin: 0.025in 0 0;
  color: #4f3a22;
  font-size: 0.64rem;
  line-height: 1.16;
}

.fall-fest-event-location {
  font-weight: 750;
}

.fall-fest-continuation-header {
  display: flex;
  justify-content: space-between;
  gap: 0.15in;
  align-items: center;
  margin-bottom: 0.12in;
  padding-bottom: 0.08in;
  border-bottom: 2px solid rgba(103, 66, 32, 0.32);
  color: #4b2910;
}

.fall-fest-continuation-header p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 850;
}

.fall-fest-continuation-header strong {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .fall-fest-print-root .fall-fest-flyer-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media print {
  body.fall-fest-printable-document .fall-fest-flyer-screen-shell,
  body.fall-fest-printable-document .fall-fest-print-toolbar {
    display: none !important;
  }

  .fall-fest-print-root {
    display: block !important;
    gap: 0 !important;
  }

  .fall-fest-print-page {
    break-after: page !important;
    page-break-after: always !important;
  }

  .fall-fest-print-page:last-child {
    break-after: auto !important;
    page-break-after: auto !important;
  }

  .fall-fest-flyer-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: 0.14in !important; }

  .fall-fest-day-title,
  .fall-fest-event-card,
  .fall-fest-continuation-header {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}
