
/* NN News HP: mobile-only Literature / Analysis carousel */
@media screen and (max-width:700px) {
  .nn-la-mobile .nn-la-mobile-rotator {
    position: relative;
    width: 100%;
    min-width: 0;
  }

  /* Keep static cards as fallback until JS starts. */
  .nn-la-mobile .nn-la-mobile-rotator:not(.is-ready) > .nn-la-card {
    margin-bottom: 12px;
  }

  .nn-la-mobile .nn-la-mobile-rotator.is-ready {
    min-height: 190px;
    transition: height .35s ease;
  }

  .nn-la-mobile .nn-la-mobile-rotator.is-ready > .nn-la-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .65s ease, visibility 0s linear .65s;
  }

  .nn-la-mobile .nn-la-mobile-rotator.is-ready > .nn-la-card.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
    transition: opacity .65s ease, visibility 0s linear 0s;
  }

  .nn-la-mobile .nn-la-mobile-controls {
    display: none;
  }

  .nn-la-mobile .nn-la-mobile-rotator.is-ready .nn-la-mobile-controls {
    display: flex;
    position: absolute;
    bottom: 0;
    right: 2px;
    gap: 8px;
    z-index: 3;
  }

  .nn-la-mobile-controls button {
    width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 50%;
    padding: 0;
    background: var(--card);
    color: var(--green);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px #0002;
    font-size: 19px;
    line-height: 1;
  }

  .nn-la-mobile-controls button:hover,
  .nn-la-mobile-controls button:focus-visible {
    background: var(--deep);
    color: white;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nn-la-mobile .nn-la-mobile-rotator.is-ready,
  .nn-la-mobile .nn-la-mobile-rotator.is-ready > .nn-la-card {
    transition: none;
  }
}
