/* Program download pages (programs/*.html). Shared by every program page.
   /css/** is cached for a year: if you change this file, bump the ?v= on the <link>. */
.prog {
  border-bottom: 1px solid var(--light-grey);
  padding: 1.5rem 5% 5rem;
}

.prog-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

/* series name / big title / day badge */
.prog-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.prog-series {
  font-family: "Satoshi Variable", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--purple);
}

.prog-title {
  font-size: clamp(3.25rem, 8vw, 5.5rem);
  letter-spacing: -1px;
  text-wrap: balance;
}

.prog-eyebrow {
  background-color: var(--light-green);
  color: var(--black);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-weight: 500;
}

.prog-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: .75rem;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--black);
}

.prog-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* download card: PDF mockup on the left, text and button on the right */
.prog-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-areas:
    "img intro"
    "img accent"
    "img btn"
    "img meta";
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: 2rem;
  row-gap: 1rem;
  align-items: center;
  justify-items: start;
  width: 100%;
  margin-top: 1.5rem;
  padding: 2rem 2.5rem 2rem 1.5rem;
  border-radius: 24px;
  background-color: #f4f4f4;
  text-align: left;
}

.prog-card-img {
  grid-area: img;
  display: block;
  width: 100%;
}

.prog-card-img img {
  display: block;
  width: 100%;
  height: auto;
}

.prog-intro {
  grid-area: intro;
  align-self: end;
  margin: 0;
  color: var(--black);
  line-height: 1.45;
}

.prog-intro strong {
  font-weight: 700;
}

.prog-accent {
  grid-area: accent;
  margin: .25rem 0 .5rem;
  font-family: "Nothing You Could Do", cursive;
  color: var(--purple);
  font-size: 2rem;
  line-height: 1.35;
  -webkit-text-stroke: .8px currentColor;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.prog-download {
  grid-area: btn;
  gap: .75rem;
  min-height: 60px;
  padding: 1rem 1.75rem;
  white-space: nowrap;
  text-decoration: none;
}

.prog-download svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.prog-meta {
  grid-area: meta;
  align-self: start;
  margin: 0;
  color: var(--grey);
  font-size: 1rem;
}

/* tablet and phone: mockup beside the short text, button full width underneath */
@media screen and (max-width: 991px) {
  .prog-card {
    grid-template-columns: 44% minmax(0, 1fr);
    grid-template-areas:
      "img intro"
      "img accent"
      "btn btn"
      "meta meta";
    grid-template-rows: 1fr 1fr auto auto;
    column-gap: .75rem;
    row-gap: .75rem;
    padding: 1rem;
  }

  .prog-intro {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
  }

  .prog-accent {
    align-self: start;
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 2rem);
    -webkit-text-stroke: .5px currentColor;
  }

  .prog-download {
    justify-self: stretch;
  }

  .prog-meta {
    justify-self: center;
  }
}

@media screen and (max-width: 767px) {
  .prog {
    padding: .5rem 16px 3.5rem;
  }

  .prog-container {
    gap: 1rem;
  }

  .prog-video {
    margin-top: .25rem;
    border-radius: 16px;
  }

  .prog-card {
    margin-top: .75rem;
    border-radius: 16px;
  }
}
