
/*
 * NEWDAWN Today — mobile editorial repair
 * Applies only below 768px.
 */
@media (max-width: 767px) {

  /* Prevent the Today page from squeezing editorial cards into tiny columns. */
  .ndtoday--frontpage {
    overflow: hidden;
  }

  .ndtoday--frontpage .ndtoday__section-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 10px;
  }

  .ndtoday--frontpage .ndtoday__section-grid::-webkit-scrollbar {
    display: none;
  }

  .ndtoday--frontpage .ndtoday__section-grid > .ndtoday-card,
  .ndtoday--frontpage .ndtoday__section-grid > .ndtoday-card--feature,
  .ndtoday--frontpage .ndtoday__section-grid > .ndtoday-card--timeline,
  .ndtoday--frontpage .ndtoday__section-grid > .ndtoday-card--people,
  .ndtoday--frontpage .ndtoday__section-grid > .ndtoday-card--briefing {
    flex: 0 0 84vw !important;
    width: 84vw !important;
    max-width: 520px !important;
    min-width: 0 !important;
    min-height: 430px !important;
    grid-column: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Utility modules stay full width. */
  .ndtoday--frontpage .ndtoday__front-section--presenters .ndtoday-card,
  .ndtoday--frontpage .ndtoday__front-section--schedule .ndtoday-card,
  .ndtoday--frontpage .ndtoday__front-section--fresh .ndtoday-card--embed {
    flex: 0 0 calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  /* Better mobile crop: subject sits higher instead of being cut through the face. */
  .ndtoday--frontpage .ndtoday-card__image {
    background-size: cover !important;
    background-position: 50% 30% !important;
    transform: none !important;
  }

  /* Stronger lower fade keeps text readable without destroying the artwork. */
  .ndtoday--frontpage .ndtoday-card__image {
    background-image:
      linear-gradient(
        180deg,
        rgba(7,8,11,.08) 0%,
        rgba(7,8,11,.12) 40%,
        rgba(7,8,11,.90) 100%
      ),
      var(--ndtoday-bg) !important;
  }

  .ndtoday--frontpage .ndtoday-card__body {
    padding: 26px 24px !important;
    max-width: 92% !important;
  }

  .ndtoday--frontpage .ndtoday-card h2 {
    font-size: clamp(30px, 9vw, 44px) !important;
    line-height: .98 !important;
    letter-spacing: -.035em !important;
    max-width: 12ch;
  }

  .ndtoday--frontpage .ndtoday-card p {
    font-size: 15px !important;
    line-height: 1.42 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }

  .ndtoday--frontpage .ndtoday-card__eyebrow {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  .ndtoday--frontpage .ndtoday-card__time,
  .ndtoday--frontpage .ndtoday-card__countdown {
    font-size: 13px !important;
  }
}
