/* Spacious, even three-column layout for current desktop screens. */
body {
  background: #f4f4f1 url("assets/paper_2.png") repeat;
  font-size: 16px;
}

.site-wrap {
  width: 100%;
  max-width: 1280px;
  background-color: transparent;
  background-image: linear-gradient(90deg, transparent 0 248px, rgba(255, 255, 255, .78) 248px 360px, transparent 360px);
  background-repeat: no-repeat;
  box-shadow: none;
}

.site-footer {
  background: #686868;
}

.facts-history {
  padding-bottom: 9px;
  border-bottom: 1px solid #bdbdbb;
  line-height: 1.45;
}

.facts-history strong {
  font-size: 17px;
}

.facts-footer-hint {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.45;
}

.archive-intro {
  margin: 0 0 14px;
  padding: 2px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  color: #f3f3f3;
  font: 15px/1.5 "Trebuchet MS", Arial, sans-serif;
}

.social-links {
  gap: 7px;
}

.social-links > span {
  margin: 0 24px 2px 0;
  font-style: italic;
}

.social-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  width: 155px;
  min-height: 24px;
  text-align: right;
}

.social-links a img {
  display: block;
  width: 24px;
  height: 24px;
}

.masthead {
  height: 145px;
  padding: 14px 32px 0 clamp(36px, 15vw, 190px);
  border-bottom: 1px solid #bdbdbb;
}

.brand,
.brand img {
  width: 210px;
}

.brand img {
  height: 112px;
}

.main-nav {
  right: 32px;
}

.year-strip {
  justify-content: center;
}

.main-grid {
  grid-template-columns: 190px minmax(0, 1fr) 230px;
  gap: 26px;
  padding: 26px 32px 36px;
}

.main-grid > .event-content,
.main-grid > .program-nav,
.main-grid > .facts {
  min-width: 0;
  padding: 0;
}

.program-nav {
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

body.admin-bar .program-nav {
  top: 48px;
  max-height: calc(100vh - 64px);
}

.program-nav h2 {
  justify-content: flex-end;
  text-align: right;
}

.event-panel h1,
.content-page h1,
.event-content > h1,
.program-nav h2,
.facts h2 {
  display: flex;
  align-items: flex-end;
  min-height: 54px;
  margin: 0 0 20px;
  padding: 0 0 10px;
  border-bottom: 1px solid #bdbdbb;
}

.term-heading {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 54px;
  margin: 0 0 20px;
  padding: 0 0 10px 132px;
  border-bottom: 1px solid #bdbdbb;
  font: 18px/1.3 "Trebuchet MS", Arial, sans-serif;
}

.term-heading strong {
  font: italic 18px Georgia, serif;
}

.term-grid .program-nav,
body.admin-bar .term-grid .program-nav {
  max-height: none;
  overflow: visible;
}

.term-concert-list {
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

body.admin-bar .term-concert-list {
  max-height: calc(100vh - 138px);
}

.term-grid .event-panel h1 {
  padding-left: 132px;
}

.event-panel h1,
.content-page h1 {
  padding-left: 132px;
}

.content-page .page-body {
  padding-left: 132px;
}

.event-detail {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
}

.event-date {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  padding: 9px 6px 0 10px;
  border-top: 0;
}

.event-date strong {
  grid-row: auto;
  padding-right: 8px;
  margin-right: 8px;
  border-right: 1px solid #bdbdbb;
}

.event-date .event-month-year {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.event-date .event-year {
  font-size: 11px;
}

.event-date small {
  text-align: center;
  border-top-color: #bdbdbb;
}

.event-intro,
.event-note {
  margin-left: 132px;
}

@media (max-width: 1100px) {
  .term-heading {
    padding-left: 112px;
  }

  .site-wrap {
    background-image: linear-gradient(90deg, transparent 0 202px, rgba(255, 255, 255, .78) 202px 296px, transparent 296px);
  }

  .main-grid {
    grid-template-columns: 160px minmax(0, 1fr) 190px;
    gap: 18px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .event-detail {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 18px;
  }

  .event-date {
    grid-template-columns: 40px minmax(0, 1fr);
    padding-left: 7px;
  }

  .event-panel h1,
  .content-page h1 {
    padding-left: 112px;
  }

  .term-grid .event-panel h1 {
    padding-left: 112px;
  }

  .content-page .page-body {
    padding-left: 112px;
  }

  .event-intro,
  .event-note {
    margin-left: 112px;
  }
}

@media (max-width: 900px) {
  .term-heading {
    padding-left: 0;
  }

  .social-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-links > span {
    width: auto;
  }

  .site-wrap {
    background-image: none;
  }

  .masthead {
    padding-left: 36px;
  }

  .main-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px 28px 36px;
  }

  .program-nav {
    order: 0;
    text-align: left;
    position: static;
    align-self: stretch;
    max-height: none;
    overflow: visible;
  }

  .program-nav h2 {
    justify-content: flex-start;
    text-align: left;
  }

  .event-panel h1,
  .content-page h1 {
    padding-left: 0;
  }

  .term-grid .event-panel h1 {
    padding-left: 0;
  }

  .term-concert-list,
  body.admin-bar .term-concert-list {
    max-height: 260px;
  }

  .content-page .page-body {
    padding-left: 0;
  }

  .program-nav ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .program-nav li {
    flex: 0 0 auto;
  }

  .program-nav li a,
  .program-nav .side-link,
  .program-nav .archive-year {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, .72);
  }

  .event-content {
    order: 1;
  }

  .facts {
    order: 2;
    border-top: 0;
  }

  .event-panel h1,
  .content-page h1,
  .event-content > h1,
  .program-nav h2,
  .facts h2 {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .masthead {
    min-height: 145px;
    height: auto;
    padding: 12px 18px 0;
  }

  .brand,
  .brand img {
    width: 190px;
  }

  .brand img {
    height: 100px;
  }

  .main-nav {
    right: 18px;
    left: 18px;
  }

  .main-grid {
    padding-right: 18px;
    padding-left: 18px;
  }

  .event-detail {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }

  .event-intro,
  .event-note {
    margin-left: 92px;
  }
}

@media (max-width: 420px) {
  .event-date {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    width: 94px;
  }

  .event-date small {
    border-top: 1px solid #bdbdbb;
    padding-top: 6px;
    margin-top: 8px;
  }

  .event-intro,
  .event-note {
    margin-left: 0;
  }
}

/* Fixed return-to-top control. */
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 1000; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; margin: 0; padding: 0; border: 1px solid #777; border-radius: 0; background: #333; color: #fff; font-size: 24px; line-height: 1; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.back-to-top:hover { background: #555; color: #fff; text-decoration: none; }
.back-to-top:focus-visible { outline: 2px solid #333; outline-offset: 3px; }

.back-to-top[hidden] { display: none; }

/* Leave room for the privacy settings control. */
.back-to-top { bottom: 68px; }
.facts .facts-footer-hint + .facts-feature {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #bdbdbd;
}
