/* Story listing and individual video pages only; not the floating story player.
   Keep ownership with the storefront layer rather than the legacy theme. */
@layer wm-storefront {
  html.wm-redesign #content.wm-story-surface { min-width: 0 !important; color: var(--wm-text) !important; }
  html.wm-redesign .wm-story-surface :is(.wm-story-index,.wm-story-landing) { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; margin: 16px 0 32px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  html.wm-redesign .wm-story-surface :is(a,video):focus-visible { outline: 2px solid var(--wm-blue) !important; outline-offset: 3px !important; }
  html.wm-redesign .wm-story-surface :is(h2,h3) { position: static !important; display: block !important; width: auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--wm-text) !important; font-family: inherit !important; font-weight: 700 !important; line-height: 1.4 !important; letter-spacing: -.015em !important; text-align: left !important; text-transform: none !important; text-shadow: none !important; box-shadow: none !important; white-space: normal !important; overflow-wrap: anywhere !important; }
  html.wm-redesign .wm-story-surface :is(h2,h3)::before,
  html.wm-redesign .wm-story-surface :is(h2,h3)::after { content: none !important; }
  html.wm-redesign .wm-story-surface .wm-story-index__intro { max-width: 76ch !important; margin: 0 0 24px !important; padding: 0 !important; color: var(--wm-muted) !important; font-size: 19px !important; line-height: 1.6 !important; text-align: left !important; }
  html.wm-redesign .wm-story-surface .wm-story-index__empty { max-width: none !important; margin: 0 !important; padding: 32px 20px !important; border: 1px dashed var(--wm-line) !important; border-radius: 12px !important; background: var(--wm-surface) !important; color: var(--wm-muted) !important; font-size: 18px !important; line-height: 1.6 !important; text-align: center !important; }

  html.wm-redesign .wm-story-surface .wm-story-index__grid { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 20px !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card { position: relative !important; box-sizing: border-box !important; min-width: 0 !important; margin: 0 !important; border: 1px solid var(--wm-line) !important; border-radius: 12px !important; background: var(--wm-surface) !important; box-shadow: none !important; overflow: hidden !important; transform: none !important; transition: border-color 160ms ease !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card__link { display: flex !important; flex-direction: column !important; height: 100% !important; padding: 0 !important; color: inherit !important; text-decoration: none !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card__link:focus-visible { outline-offset: -3px !important; border-radius: 11px !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card__media { position: relative !important; display: block !important; flex: 0 0 auto !important; width: 100% !important; aspect-ratio: 1 !important; margin: 0 !important; overflow: hidden !important; background: #101214 !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card__media img { display: block !important; width: 100% !important; height: 100% !important; aspect-ratio: 1 !important; margin: 0 !important; object-fit: cover !important; transform: none !important; transition: none !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card__play { position: absolute !important; display: flex !important; align-items: center !important; justify-content: center !important; inset: auto 12px 12px auto !important; box-sizing: border-box !important; width: 48px !important; height: 48px !important; border: 0 !important; border-radius: 50% !important; background: var(--wm-orange) !important; color: #151515 !important; box-shadow: none !important; transform: none !important; transition: background-color 160ms ease !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card__play::before { content: none !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card__play svg { display: block !important; width: 24px !important; height: 24px !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card__body { box-sizing: border-box !important; display: flex !important; flex: 1 1 auto !important; flex-direction: column !important; gap: 12px !important; width: 100% !important; min-width: 0 !important; padding: 20px !important; background: none !important; }
  html.wm-redesign .wm-story-surface h2.wm-story-index-card__title { margin: 0 !important; font-size: 19px !important; overflow: visible !important; -webkit-line-clamp: unset !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card__desc { display: -webkit-box !important; min-height: 0 !important; margin: 0 !important; color: var(--wm-muted) !important; font-size: 16px !important; font-weight: 400 !important; line-height: 1.55 !important; text-align: left !important; overflow: hidden !important; overflow-wrap: anywhere !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card__action { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; min-height: 32px !important; margin-top: auto !important; padding-top: 4px !important; color: var(--wm-orange) !important; font-size: 16px !important; font-weight: 650 !important; line-height: 1.4 !important; }
  html.wm-redesign .wm-story-surface :is(.wm-story-index-card__action,.wm-story-landing__actions) svg { display: block !important; flex-shrink: 0 !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card:is(:hover,:focus-within) { border-color: var(--wm-orange) !important; }
  html.wm-redesign .wm-story-surface .wm-story-index-card:is(:hover,:focus-within) .wm-story-index-card__play { background: var(--wm-accent-hover) !important; }

  html.wm-redesign .wm-story-surface .wm-story-index__seo { box-sizing: border-box !important; max-width: none !important; margin: 32px 0 0 !important; padding: 24px 0 0 !important; border-top: 2px solid var(--wm-orange) !important; color: var(--wm-muted) !important; }
  html.wm-redesign .wm-story-surface .wm-story-index__seo > h2 { margin: 0 0 20px !important; font-size: 26px !important; text-align: center !important; }
  html.wm-redesign .wm-story-surface .wm-story-index__copy { max-width: 76ch !important; margin: 0 auto !important; }
  html.wm-redesign .wm-story-surface .wm-story-index__copy p { margin: 0 0 16px !important; color: var(--wm-muted) !important; font-size: 18px !important; line-height: 1.7 !important; text-align: left !important; }
  html.wm-redesign .wm-story-surface .wm-story-index__benefits { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 24px !important; margin: 24px 0 0 !important; padding: 24px 0 0 !important; border-top: 1px solid var(--wm-line) !important; }
  html.wm-redesign .wm-story-surface .wm-story-index__benefits article { min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  html.wm-redesign .wm-story-surface .wm-story-index__benefits h3 { margin: 0 0 10px !important; color: var(--wm-orange) !important; font-size: 20px !important; }
  html.wm-redesign .wm-story-surface .wm-story-index__benefits p { margin: 0 !important; color: var(--wm-muted) !important; font-size: 17px !important; line-height: 1.65 !important; }

  html.wm-redesign .wm-story-surface .wm-story-landing { display: grid !important; grid-template-columns: minmax(0,430px) minmax(0,1fr) !important; align-items: center !important; gap: 32px !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__media { box-sizing: border-box !important; display: block !important; width: min(100%,430px,42vh) !important; width: min(100%,430px,42svh) !important; min-height: 0 !important; aspect-ratio: 9 / 16 !important; margin: 0 auto !important; border-radius: 12px !important; background: #101214 !important; overflow: hidden !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__media video { display: block !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: none !important; aspect-ratio: 9 / 16 !important; margin: 0 !important; object-fit: contain !important; background: #101214 !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__content { box-sizing: border-box !important; width: 100% !important; max-width: 760px !important; min-width: 0 !important; padding: 32px !important; border: 1px solid var(--wm-line) !important; border-radius: 12px !important; background: var(--wm-surface) !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__desc { margin: 0 0 18px !important; color: var(--wm-text) !important; font-size: 24px !important; font-weight: 650 !important; line-height: 1.5 !important; text-align: left !important; overflow-wrap: anywhere !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__support { margin: 0 0 24px !important; color: var(--wm-muted) !important; font-size: 18px !important; font-weight: 400 !important; line-height: 1.7 !important; text-align: left !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__text { max-width: 72ch !important; margin: 0 0 28px !important; color: var(--wm-text) !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__text > h2 { margin: 0 0 14px !important; font-size: 24px !important; line-height: 1.35 !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__text > p { margin: 0 !important; color: var(--wm-text) !important; font-size: 18px !important; font-weight: 400 !important; line-height: 1.7 !important; text-align: left !important; overflow-wrap: anywhere !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__actions { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 12px !important; }
  html.wm-redesign .wm-story-surface :is(.wm-story-landing__cta,.wm-story-landing__back) { box-sizing: border-box !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; min-height: 48px !important; max-width: 100% !important; margin: 0 !important; padding: 12px 18px !important; border: 1px solid var(--wm-line) !important; border-radius: 8px !important; background: var(--wm-raised) !important; color: var(--wm-text) !important; font-family: inherit !important; font-size: 16px !important; font-weight: 650 !important; line-height: 1.5 !important; text-align: center !important; text-decoration: none !important; text-shadow: none !important; white-space: normal !important; box-shadow: none !important; transform: none !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__cta { border-color: transparent !important; background: var(--wm-orange) !important; color: #151515 !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__cta:hover { background: var(--wm-accent-hover) !important; }
  html.wm-redesign .wm-story-surface .wm-story-landing__back:hover { border-color: var(--wm-orange) !important; color: var(--wm-orange) !important; }

  @media (max-width: 1199px) {
    html.wm-redesign .wm-story-surface .wm-story-index__grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 16px !important; }
    html.wm-redesign .wm-story-surface .wm-story-landing { grid-template-columns: minmax(0,.85fr) minmax(0,1fr) !important; gap: 24px !important; }
    html.wm-redesign .wm-story-surface .wm-story-landing__content { padding: 24px !important; }
  }
  @media (max-width: 767px) {
    html.wm-redesign .wm-story-surface :is(.wm-story-index,.wm-story-landing) { margin: 12px 0 24px !important; }
    html.wm-redesign .wm-story-surface .wm-story-index__intro { margin-bottom: 18px !important; font-size: 18px !important; }
    html.wm-redesign .wm-story-surface .wm-story-index__grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
    html.wm-redesign .wm-story-surface .wm-story-index-card__body { gap: 10px !important; padding: 12px !important; }
    html.wm-redesign .wm-story-surface h2.wm-story-index-card__title { font-size: 17px !important; }
    html.wm-redesign .wm-story-surface .wm-story-index-card__play { inset: auto 8px 8px auto !important; width: 44px !important; height: 44px !important; }
    html.wm-redesign .wm-story-surface .wm-story-index__benefits { grid-template-columns: minmax(0,1fr) !important; gap: 20px !important; }
    html.wm-redesign .wm-story-surface .wm-story-index__seo { margin-top: 24px !important; padding-top: 20px !important; }
    html.wm-redesign .wm-story-surface .wm-story-index__seo > h2 { font-size: 23px !important; }
    html.wm-redesign .wm-story-surface .wm-story-landing { grid-template-columns: minmax(0,1fr) !important; gap: 20px !important; }
    html.wm-redesign .wm-story-surface .wm-story-landing__content { max-width: none !important; padding: 20px !important; }
    html.wm-redesign .wm-story-surface .wm-story-landing__desc { font-size: 21px !important; }
    html.wm-redesign .wm-story-surface .wm-story-landing__support { margin-bottom: 20px !important; }
    html.wm-redesign .wm-story-surface .wm-story-landing__text { max-width: none !important; margin-bottom: 24px !important; }
    html.wm-redesign .wm-story-surface .wm-story-landing__text > h2 { font-size: 26px !important; line-height: 1.3 !important; }
    html.wm-redesign .wm-story-surface .wm-story-landing__text > p { font-size: 22px !important; line-height: 1.65 !important; }
    html.wm-redesign .wm-story-surface .wm-story-landing__actions { flex-direction: column !important; align-items: stretch !important; }
  }
  @media (max-width: 359px) {
    html.wm-redesign .wm-story-surface .wm-story-index__grid { grid-template-columns: minmax(0,1fr) !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    html.wm-redesign .wm-story-surface :is(a,.wm-story-index-card,.wm-story-index-card__play) { transition: none !important; }
  }
}
