/* Free Resources hub (/learn): checklist download, featured recordings,
   and The Lunch Break webinar library with in-page playback. */

/* ---------- Hero ---------- */
.res-hero .pro-intro-grid {
  align-items: center;
}

.res-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.res-jump a {
  color: var(--colours--main-green);
  font-weight: 700;
  text-decoration: none;
}

.res-jump a::after {
  content: " \2193";
}

.res-jump a:hover {
  text-decoration: underline;
}

/* Checklist download card */
.res-checklist {
  scroll-margin-top: 6rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background-color: #fff;
  box-shadow: 0 18px 40px -18px rgba(31, 60, 63, .3), 0 2px 6px rgba(31, 60, 63, .06);
}

/* "Monthly checklist" in the jump links lands on this card, which sits beside
   the links, so the jump barely scrolls. The card nudges instead: a short lift
   and a lime ring that fades. learn.html's script adds .is-nudged on each click
   and removes it when the animation ends. With reduced motion, only the ring. */
.res-checklist.is-nudged {
  animation: res-checklist-nudge 1.2s ease-out;
}

@keyframes res-checklist-nudge {
  0% {
    transform: none;
    box-shadow: 0 0 0 0 rgba(141, 198, 63, .8), 0 18px 40px -18px rgba(31, 60, 63, .3), 0 2px 6px rgba(31, 60, 63, .06);
  }
  25% {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 0 6px rgba(141, 198, 63, .7), 0 28px 50px -18px rgba(31, 60, 63, .35), 0 2px 6px rgba(31, 60, 63, .06);
  }
  55% {
    transform: none;
  }
  100% {
    transform: none;
    box-shadow: 0 0 0 16px rgba(141, 198, 63, 0), 0 18px 40px -18px rgba(31, 60, 63, .3), 0 2px 6px rgba(31, 60, 63, .06);
  }
}

@keyframes res-checklist-ring {
  0%, 40% {
    box-shadow: 0 0 0 5px rgba(141, 198, 63, .8), 0 18px 40px -18px rgba(31, 60, 63, .3), 0 2px 6px rgba(31, 60, 63, .06);
  }
  100% {
    box-shadow: 0 0 0 5px rgba(141, 198, 63, 0), 0 18px 40px -18px rgba(31, 60, 63, .3), 0 2px 6px rgba(31, 60, 63, .06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .res-checklist.is-nudged {
    animation-name: res-checklist-ring;
  }
}

.res-checklist-label {
  margin: 0 0 .25rem;
  color: var(--la-orange-text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.res-checklist h3 {
  margin: 0 0 .35rem;
  color: var(--colours--dark-teal);
  font-size: 1.5rem;
  line-height: 1.2;
}

.res-checklist-sub {
  margin: 0 0 1.1rem;
  font-size: .9375rem;
  line-height: 1.5;
}

.res-form {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

/* The sign-up script hides the form after a submit; display:flex above would
   otherwise override the hidden attribute (LA-559). */
.res-form[hidden] {
  display: none;
}

.res-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.res-form label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 0;
  font-weight: 400;
}

.res-form label span {
  color: var(--colours--dark-teal);
  font-size: .8125rem;
  font-weight: 600;
}

.res-form input,
.res-form select {
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0 .75rem;
  border: 1px solid #d9dcda;
  border-radius: .6rem;
  background-color: #fff;
  color: #333;
  font: inherit;
  font-size: .9375rem;
}

.res-form input:focus,
.res-form select:focus {
  border-color: var(--colours--main-green);
  outline: 2px solid rgba(0, 111, 81, .18);
}

.res-submit {
  align-self: flex-start;
  margin-top: .25rem;
  border: 0;
  cursor: pointer;
}

.res-submit:disabled {
  opacity: .6;
}

.res-form-note {
  margin: 0;
  color: #6b6560;
  font-size: .8125rem;
}

.res-thanks p {
  margin: 0 0 1rem;
}

.res-thanks-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--colours--dark-teal);
  font-size: 1.125rem;
  font-weight: 700;
}

/* ---------- Start here ---------- */
.res-featured .centered-content,
.res-library .centered-content {
  grid-row-gap: 0;
  row-gap: 0;
}

.res-feature-cards,
.res-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.res-feature a {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  height: 100%;
  padding: .75rem .75rem 1.1rem;
  border-radius: 1.1rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(31, 60, 63, .08);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}

.res-feature a:hover {
  box-shadow: 0 10px 24px -10px rgba(31, 60, 63, .3);
  transform: translateY(-2px);
}

.res-feature img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: .35rem;
  border-radius: .7rem;
}

.res-feature h3,
.res-video h3 {
  margin: 0;
  color: var(--colours--dark-teal);
  font-size: 1.0625rem;
  line-height: 1.3;
}

.res-feature-link {
  margin-top: auto;
  padding-top: .25rem;
  color: var(--colours--main-green);
  font-weight: 700;
}

.res-video-topic {
  color: var(--la-orange-text);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Webinar library ---------- */
.res-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.75rem;
}

.res-filter {
  padding: .45rem .9rem;
  border: 1px solid #dcdfdd;
  border-radius: 999px;
  background: #fff;
  color: var(--colours--dark-teal);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.res-filter:hover {
  border-color: var(--colours--main-green);
}

.res-filter.is-active {
  border-color: var(--colours--main-green);
  background: var(--colours--main-green);
  color: #fff;
}

.res-video {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.res-video[hidden] {
  display: none;
}

.res-video-play {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: .2rem;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: .8rem;
  background: #1f3c3f;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.res-video-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s, opacity .2s;
}

.res-video-play:hover img {
  transform: scale(1.03);
  opacity: .9;
}

.res-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding-left: .15rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .92);
  color: var(--colours--main-green);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  transform: translate(-50%, -50%);
}

.res-video-time {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  padding: .1rem .45rem;
  border-radius: .35rem;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
}

.res-video-play:focus-visible,
.res-filter:focus-visible,
.res-more:focus-visible {
  outline: 3px solid var(--colours--main-orange);
  outline-offset: 2px;
}

.res-video-frame {
  display: block;
  width: 100%;
  margin-bottom: .2rem;
  border: 0;
  border-radius: .8rem;
  aspect-ratio: 16 / 9;
}

.res-more {
  display: block;
  margin: 2rem auto 0;
  padding: .7rem 1.4rem;
  border: 2px solid var(--colours--main-green);
  border-radius: 999px;
  background: transparent;
  color: var(--colours--main-green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.res-more:hover {
  background: var(--colours--main-green);
  color: #fff;
}

.res-more[hidden] {
  display: none;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
  .res-checklist {
    max-width: 560px;
    margin: 1.5rem auto 0;
  }

  .res-feature-cards,
  .res-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 479px) {
  .res-checklist {
    padding: 1.25rem;
  }

  .res-form-row {
    grid-template-columns: 1fr;
  }

  .res-feature-cards,
  .res-videos {
    grid-template-columns: 1fr;
  }

  .res-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-right: -1rem;
    margin-left: -1rem;
    padding: 0 1rem .25rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .res-filters::-webkit-scrollbar {
    display: none;
  }

  .res-filter {
    flex: none;
  }
}

/* Topic and date on one line above each recording title. */
.res-video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .6rem;
}

.res-video-meta time {
  color: #6b6560;
  font-size: .8125rem;
  font-weight: 500;
}

/* Compact checklist form (the page has a lot more on it now). */
.res-checklist {
  padding: 1.35rem 1.4rem 1.25rem;
}

.res-checklist h3 {
  font-size: 1.3125rem;
}

.res-checklist-sub {
  margin-bottom: .85rem;
  font-size: .875rem;
}

.res-form {
  gap: .55rem;
}

.res-form-row {
  gap: .55rem;
}

.res-form label {
  gap: .15rem;
}

.res-form label span {
  font-size: .75rem;
}

.res-form input,
.res-form select {
  height: 2.35rem;
  padding: 0 .6rem;
  border-radius: .5rem;
  font-size: .875rem;
}

.res-submit {
  margin-top: .15rem;
}

.res-form-note {
  font-size: .75rem;
}

/* Jump links: smaller, with dots between them. */
.res-jump {
  gap: .35rem .9rem;
  font-size: .875rem;
}

.res-jump li + li::before {
  content: "\00b7";
  margin-right: .9rem;
  color: #b9b4ad;
}

.res-jump a::after {
  content: "";
}

@media screen and (max-width: 479px) {
  .res-form-row {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 479px) {
  /* Names and job/state stay side by side; email and district stack. */
  .res-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .res-form-row-stack {
    grid-template-columns: 1fr;
  }

  .res-jump li + li::before {
    content: none;
  }
}

/* Little hand-drawn heart after the headline. */
.res-heart {
  display: inline-block;
  margin-left: .35rem;
  color: var(--la-orange-text);
  vertical-align: -.1em;
  transform: rotate(12deg);
}

@media screen and (max-width: 479px) {
  .res-heart {
    width: 30px;
    height: 28px;
  }
}

.res-heart {
  transform: rotate(-9deg);
  vertical-align: -.15em;
}

.res-nowrap {
  white-space: nowrap;
}

/* Text column and checklist card share a bottom edge on laptops. */
@media screen and (min-width: 992px) {
  .res-hero .pro-intro-grid {
    align-items: end;
  }

  .res-hero .res-jump {
    margin-bottom: .2rem;
  }
}

/* ---------- "Want a little more support?" services strip ---------- */
.res-services .centered-content {
  grid-row-gap: 0;
  row-gap: 0;
}

.res-service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.res-service a {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  height: 100%;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background-color: #f6efe4;
  color: inherit;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

.res-service:nth-child(2) a {
  background-color: #e8f0dc;
}

.res-service:nth-child(3) a {
  background-color: #fbe8d6;
}

.res-service a:hover {
  box-shadow: 0 10px 24px -12px rgba(31, 60, 63, .3);
  transform: translateY(-2px);
}

.res-service-label {
  color: var(--la-orange-text);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.res-service-title {
  color: var(--colours--dark-teal);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.res-service-text {
  flex: 1;
  color: #4a4a4a;
  font-size: .9375rem;
  line-height: 1.55;
}

.res-service-link {
  padding-top: .25rem;
  color: var(--colours--main-green);
  font-weight: 700;
}

/* The latest Weekly Update sits right above the signup, so trim the gap. */
.res-newsletter {
  padding-bottom: 3rem;
}

@media screen and (max-width: 767px) {
  .res-service-cards {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
}
