@font-face {
    font-family: "HaboroContrast";
    src: url("https://johnproulx.com/wp-content/uploads/fonts/HaboroContrast-NorReg.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Teaching page section replicas based on #teaching template */
:root {
  --jp-teach-card: #f8f8f8;
  --jp-teach-ink: #333333;
  --jp-teach-muted: #555555;
}

html {
  scroll-padding-top: 5rem;
}

.jp-teach-sections {
  margin-top: 1.75rem;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.jp-teach-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding-top: 5rem;
}

.jp-teach-section[id] {
  scroll-margin-top: 5rem;
}

.jp-teach-section.is-reverse .jp-teach-section__media {
  order: 2;
}

.jp-teach-section.is-reverse .jp-teach-section__panel {
  order: 1;
}

.jp-teach-section__media {
  margin: 0;
  background: var(--jp-teach-card);
  overflow: hidden;
  margin-bottom: 0 !important;
  aspect-ratio: 1 / 1;
}

.jp-teach-section__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.jp-teach-section__panel {
  background: var(--jp-teach-card);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: clamp(360px, 42vw, 560px);
  padding: clamp(1.1rem, 2.3vw, 1.6rem);
}

.jp-teach-section__scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
}

.jp-teach-section__title {
  margin: 0 0 0.55rem;
  font-family: "HaboroContrast";
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  color: var(--jp-teach-ink);
}

.jp-teach-section__rule {
  height: 2px;
  width: 60%;
  margin: 1rem auto 1.15rem;
  background: linear-gradient(
    90deg,
    rgba(198, 168, 83, 0) 0%,
    rgba(198, 168, 83, 0.7) 50%,
    rgba(198, 168, 83, 0) 100%
  );
}

.jp-teach-section__footer {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--jp-teach-ink);
}

.jp-teach-section__panel.has-overflow .jp-teach-section__footer {
  display: block;
}

#menu-teaching-menu .menu-item > a {
    color: #fff;
}

#post-610 #menu-teaching-menu li:first-of-type {
    display: none;
}

#post-610 #menu-teaching-menu li:nth-of-type(2)::before {
    content: none;
}

#post-610,
#post-610 .entry-content-wrap,
#post-610 .entry-content.single-content {
    background: transparent !important;
}

#post-610 .jp-title {
    color: #fff;
}

@media (max-width: 980px) {
  .jp-teach-section {
    grid-template-columns: 1fr;
  }

  .jp-teach-section.is-reverse .jp-teach-section__media,
  .jp-teach-section.is-reverse .jp-teach-section__panel {
    order: initial;
  }

  .jp-teach-section__media {
    min-height: 280px;
  }
}
