/* LMYC Resources — featured video + accordion sections */

.lmyc-resources-main {
  background: linear-gradient(180deg, #fdf8f3 0%, #f3efe6 100%);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.lmyc-resources-main .page-width {
  max-width: min(var(--page-width, 147rem), 112rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.75rem, 4vw, 3rem);
  padding-right: clamp(1.75rem, 4vw, 3rem);
}

.lmyc-resources-intro {
  padding: clamp(2rem, 4vw, 3rem) 0 0.5rem;
}

.lmyc-resources-intro__header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 1.75rem;
}

#main-content .lmyc-resources-intro .main-subheading.lmyc-pink-eyebrow {
  display: block;
  width: auto;
  max-width: max-content;
  margin: 0 auto;
  text-align: center;
  color: #d18e95 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#main-content .lmyc-resources-intro .lmyc-star-divider {
  margin: 0.75rem auto 1rem;
}

.lmyc-resources-intro__lead {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.25rem, 1.65vw, 1.65rem);
  line-height: 1.65;
  color: rgba(47, 61, 40, 0.82);
}

/* Featured welcome video */
.lmyc-resources-featured {
  max-width: 100%;
  margin: 0 auto 1.75rem;
}

.lmyc-resources-video-feature {
  display: grid;
  gap: clamp(1.25rem, 2vw, 2rem);
  padding: clamp(1.35rem, 2.5vw, 2.25rem);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(66, 89, 54, 0.14);
  box-shadow: 0 14px 36px rgba(47, 61, 40, 0.08);
}

@media screen and (min-width: 992px) {
  .lmyc-resources-video-feature {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 3vw, 3rem);
    padding: clamp(2rem, 3vw, 2.75rem);
  }
}

.lmyc-resources-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(145deg, #425936 0%, #2f3d28 100%);
  border: 2px solid rgba(247, 226, 197, 0.28);
}

.lmyc-resources-video-frame__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lmyc-resources-video-frame__thumb--brand {
  object-fit: contain;
  background: #fff;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
}

.lmyc-resources-video-frame__thumb[hidden] {
  display: none;
}

.lmyc-resources-video-frame__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  color: rgba(247, 226, 197, 0.92);
  background:
    radial-gradient(circle at 30% 20%, rgba(209, 142, 149, 0.22), transparent 55%),
    linear-gradient(145deg, #425936 0%, #35482c 100%);
}

.lmyc-resources-video-frame__placeholder[hidden] {
  display: none;
}

.lmyc-resources-video-frame:has(.lmyc-resources-video-frame__thumb:not([hidden])) .lmyc-resources-video-frame__placeholder {
  display: none;
}

.lmyc-resources-video-frame__placeholder svg {
  width: 3.25rem;
  height: 3.25rem;
  opacity: 0.85;
}

.lmyc-resources-video-frame__placeholder span {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.lmyc-resources-video-frame__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: transparent;
  background: rgba(47, 61, 40, 0.08);
  transition: background 0.25s ease;
}

.lmyc-resources-video-frame__play::before {
  content: "";
  width: clamp(4.5rem, 5vw, 5.75rem);
  height: clamp(4.5rem, 5vw, 5.75rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lmyc-resources-video-frame__play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-top: 0.65rem solid transparent;
  border-bottom: 0.65rem solid transparent;
  border-left: 1rem solid #425936;
}

.lmyc-resources-video-frame__play:hover,
.lmyc-resources-video-frame__play:focus-visible {
  background: rgba(47, 61, 40, 0.18);
}

.lmyc-resources-video-frame__play:hover::before,
.lmyc-resources-video-frame__play:focus-visible::before {
  transform: scale(1.06);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.lmyc-resources-video-feature__eyebrow {
  margin: 0;
  color: #d18e95;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lmyc-resources-video-feature__title {
  margin: 0.35rem 0 0.5rem;
  color: #425936;
  font-family: var(--font-heading-family);
  font-size: clamp(1.85rem, 2.8vw, 2.75rem);
  line-height: 1.2;
}

.lmyc-resources-video-feature__meta {
  margin: 0;
  font-size: clamp(1.1rem, 1.25vw, 1.35rem);
  color: rgba(47, 61, 40, 0.65);
}

.lmyc-resources-video-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: clamp(1.1rem, 1.2vw, 1.3rem);
  font-weight: 600;
  color: #425936;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Accordion stack — 2×2 grid on tablet+; open panel spans full width */
.lmyc-resources-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 1.5vw, 1.35rem);
  max-width: 100%;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .lmyc-resources-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 1.5vw, 1.25rem);
  }

  .lmyc-resources-panel.is-open {
    grid-column: 1 / -1;
  }

  .lmyc-resources-panel__trigger {
    padding: clamp(1.1rem, 1.6vw, 1.35rem) clamp(1.15rem, 1.8vw, 1.5rem);
  }

  .lmyc-resources-panel__title {
    font-size: clamp(1.35rem, 1.5vw, 1.65rem);
  }
}

.lmyc-resources-panel {
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(66, 89, 54, 0.14);
  box-shadow: 0 8px 22px rgba(47, 61, 40, 0.05);
  overflow: hidden;
}

.lmyc-resources-panel__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: clamp(1.25rem, 2vw, 1.65rem) clamp(1.35rem, 2.2vw, 2rem);
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.2s ease;
}

.lmyc-resources-panel__trigger:hover,
.lmyc-resources-panel__trigger:focus-visible {
  background: rgba(66, 89, 54, 0.05);
}

.lmyc-resources-panel__trigger:focus-visible {
  outline: 2px solid rgba(66, 89, 54, 0.45);
  outline-offset: -2px;
}

.lmyc-resources-panel__title {
  margin: 0;
  color: #425936;
  font-family: var(--font-heading-family);
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.22;
}

.lmyc-resources-panel__count {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  color: rgba(47, 61, 40, 0.62);
  font-weight: 400;
}

.lmyc-resources-panel__chevron {
  flex-shrink: 0;
  width: clamp(1.5rem, 1.8vw, 1.85rem);
  height: clamp(1.5rem, 1.8vw, 1.85rem);
  color: #425936;
  transition: transform 0.28s ease;
}

.lmyc-resources-panel.is-open .lmyc-resources-panel__chevron {
  transform: rotate(180deg);
}

.lmyc-resources-panel__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.lmyc-resources-panel.is-open .lmyc-resources-panel__body {
  grid-template-rows: 1fr;
}

.lmyc-resources-panel__inner {
  overflow: hidden;
}

.lmyc-resources-panel__content {
  padding: 0 clamp(1.35rem, 2.2vw, 2rem) clamp(1.25rem, 2vw, 1.65rem);
  border-top: 1px solid rgba(66, 89, 54, 0.08);
}

.lmyc-resources-panel__sub {
  margin: 1rem 0 0.85rem;
  font-size: clamp(1.05rem, 1.15vw, 1.25rem);
  color: rgba(47, 61, 40, 0.72);
}

.lmyc-resources-panel__sub a {
  color: #425936;
  font-weight: 600;
}

.lmyc-resources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 0.8vw, 0.75rem);
}

@media screen and (min-width: 768px) {
  .lmyc-resources-list:has(.lmyc-resources-item--media) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.65rem, 1vw, 0.85rem);
    align-items: stretch;
  }
}

.lmyc-resources-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: clamp(0.85rem, 1.2vw, 1.1rem) clamp(0.95rem, 1.3vw, 1.2rem);
  border-radius: 0.85rem;
  background: rgba(253, 248, 243, 0.65);
  border: 1px solid rgba(66, 89, 54, 0.08);
}

/* Whole-card tap target — thumbnail + title area opens link */
.lmyc-resources-item--card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.lmyc-resources-item--card:hover,
.lmyc-resources-item--card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(47, 61, 40, 0.12);
  border-color: rgba(66, 89, 54, 0.24);
  background: rgba(255, 255, 255, 0.94);
  outline: none;
}

.lmyc-resources-item--card:focus-visible {
  box-shadow:
    0 14px 32px rgba(47, 61, 40, 0.12),
    0 0 0 2px rgba(66, 89, 54, 0.35);
}

.lmyc-resources-item--card:active {
  transform: translateY(-1px) scale(0.992);
  box-shadow: 0 8px 20px rgba(47, 61, 40, 0.1);
}

.lmyc-resources-item--card .lmyc-resources-item__frame {
  position: relative;
  overflow: hidden;
}

.lmyc-resources-item--card .lmyc-resources-item__frame img {
  transition: transform 0.35s ease;
}

.lmyc-resources-item--card:hover .lmyc-resources-item__frame img,
.lmyc-resources-item--card:focus-visible .lmyc-resources-item__frame img {
  transform: scale(1.04);
}

.lmyc-resources-item--card .lmyc-resources-item__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(47, 61, 40, 0.04) 35%, rgba(47, 61, 40, 0.28) 100%);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.lmyc-resources-item--card:hover .lmyc-resources-item__frame::after,
.lmyc-resources-item--card:focus-visible .lmyc-resources-item__frame::after {
  opacity: 1;
}

.lmyc-resources-item--video .lmyc-resources-item__frame::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: clamp(2rem, 4.5vw, 2.65rem);
  height: clamp(2rem, 4.5vw, 2.65rem);
  margin-top: calc(clamp(2rem, 4.5vw, 2.65rem) / -2);
  margin-left: calc(clamp(2rem, 4.5vw, 2.65rem) / -2);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.94);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23425936'%3E%3Cpath d='M8 5.5v13l10.5-6.5L8 5.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 54% center;
  background-size: 46%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.lmyc-resources-item--video:hover .lmyc-resources-item__frame::before,
.lmyc-resources-item--video:focus-visible .lmyc-resources-item__frame::before {
  opacity: 1;
  transform: scale(1);
}

.lmyc-resources-item--card .lmyc-resources-item__link {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(66, 89, 54, 0.1);
  border: 1px solid rgba(66, 89, 54, 0.14);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lmyc-resources-item--card:hover .lmyc-resources-item__link,
.lmyc-resources-item--card:focus-visible .lmyc-resources-item__link {
  background: #425936;
  border-color: #425936;
  color: #fdf8f3;
}

.lmyc-resources-item--video .lmyc-resources-item__link::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 0.32rem solid transparent;
  border-bottom: 0.32rem solid transparent;
  border-left: 0.48rem solid currentColor;
}

.lmyc-resources-item--media {
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto;
}

.lmyc-resources-item__frame {
  aspect-ratio: 16 / 9;
  border-radius: 0.55rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(66, 89, 54, 0.18), rgba(209, 142, 149, 0.14));
  border: 1px solid rgba(66, 89, 54, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lmyc-resources-item__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lmyc-resources-item__frame svg {
  width: 1.35rem;
  height: 1.35rem;
  color: rgba(66, 89, 54, 0.55);
}

.lmyc-resources-item__frame svg[data-fallback][hidden] {
  display: none;
}

.lmyc-resources-item__frame img[hidden] + svg[data-fallback] {
  display: block;
}

.lmyc-resources-item__meta {
  margin: 0;
  font-size: clamp(0.85rem, 0.95vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d18e95;
  font-weight: 600;
}

.lmyc-resources-item__title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.05rem, 1.15vw, 1.3rem);
  line-height: 1.4;
  color: #303d1c;
  font-weight: 500;
}

.lmyc-resources-item__link {
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  font-weight: 600;
  color: #425936;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
}

.lmyc-resources-item--pending {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 1.25rem;
  border-style: dashed;
}

.lmyc-resources-pending-badge {
  display: inline-flex;
  margin: 0 auto 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(209, 142, 149, 0.18);
  color: #a86a72;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lmyc-resources-more {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.lmyc-resources-more a {
  color: #425936;
  font-weight: 600;
}

.lmyc-resources-note {
  margin: 2rem auto 0;
  max-width: 58rem;
  text-align: center;
  font-size: clamp(1.05rem, 1.2vw, 1.3rem);
  line-height: 1.65;
  color: rgba(47, 61, 40, 0.8);
}

@media screen and (min-width: 1200px) {
  .lmyc-resources-panel__trigger {
    padding: 1.75rem 2.25rem;
  }

  .lmyc-resources-panel__title {
    font-size: clamp(1.85rem, 1.75vw, 2.35rem);
  }

  .lmyc-resources-panel__count {
    font-size: clamp(1.1rem, 1.1vw, 1.35rem);
  }

  .lmyc-resources-panel__chevron {
    width: 2rem;
    height: 2rem;
  }

  .lmyc-resources-video-feature__title {
    font-size: clamp(2.15rem, 2.2vw, 2.85rem);
  }

  .lmyc-resources-item--media {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto;
  }

  .lmyc-resources-item__title {
    font-size: clamp(1.15rem, 1.1vw, 1.4rem);
  }

  .lmyc-resources-item__link {
    font-size: 1.15rem;
  }
}

@media screen and (min-width: 1400px) {
  .lmyc-resources-panel__trigger {
    padding: 2rem 2.5rem;
  }

  .lmyc-resources-panel__title {
    font-size: 2.4rem;
  }

  .lmyc-resources-item--media {
    grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr) auto;
  }
}

@media (max-width: 749px) {
  .lmyc-resources-item,
  .lmyc-resources-item--media {
    grid-template-columns: minmax(0, 5rem) minmax(0, 1fr);
  }

  .lmyc-resources-item__link {
    grid-column: 2;
    justify-self: start;
  }

  /* Bigger accordion tabs on mobile — desktop unchanged */
  .lmyc-resources-stack {
    gap: 1.1rem;
  }

  .lmyc-resources-panel__trigger {
    padding: 1.5rem 1.35rem;
    min-height: 4.75rem;
    gap: 1rem;
  }

  .lmyc-resources-panel__title {
    font-size: clamp(1.5rem, 5.4vw, 1.95rem);
    line-height: 1.24;
  }

  .lmyc-resources-panel__count {
    margin-top: 0.45rem;
    font-size: clamp(1.05rem, 3.9vw, 1.25rem);
  }

  .lmyc-resources-panel__chevron {
    width: 1.9rem;
    height: 1.9rem;
  }

  /* Whole-card video rows — larger thumb + always-visible play hint */
  .lmyc-resources-item--card.lmyc-resources-item--media {
    grid-template-columns: minmax(0, 6.75rem) minmax(0, 1fr);
    padding: 1rem 1.05rem;
    gap: 0.85rem 0.95rem;
  }

  .lmyc-resources-item--card .lmyc-resources-item__meta {
    font-size: 0.92rem;
  }

  .lmyc-resources-item--card .lmyc-resources-item__title {
    font-size: 1.08rem;
    line-height: 1.38;
  }

  .lmyc-resources-item--card .lmyc-resources-item__link {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.15rem;
    font-size: 0.92rem;
    padding: 0.38rem 0.72rem;
  }

  .lmyc-resources-item--video .lmyc-resources-item__frame::before {
    opacity: 0.94;
    transform: scale(1);
  }

  .lmyc-resources-item--video .lmyc-resources-item__frame::after {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmyc-resources-panel__body,
  .lmyc-resources-panel__chevron,
  .lmyc-resources-item--card,
  .lmyc-resources-item--card .lmyc-resources-item__frame img,
  .lmyc-resources-item--card .lmyc-resources-item__frame::after,
  .lmyc-resources-item--video .lmyc-resources-item__frame::before,
  .lmyc-resources-item--card .lmyc-resources-item__link {
    transition: none;
  }

  .lmyc-resources-item--card:hover,
  .lmyc-resources-item--card:focus-visible,
  .lmyc-resources-item--card:active {
    transform: none;
  }

  .lmyc-resources-item--card:hover .lmyc-resources-item__frame img,
  .lmyc-resources-item--card:focus-visible .lmyc-resources-item__frame img {
    transform: none;
  }
}
