/* The "Next lesson" card of the start page (index.html, #home-next, assets/home-next.js), directly under the Continue card.
   A .dash-block like the others: the glass card itself (border, gloss strip) comes from home-homework.css, which has to be loaded before
   this file. Scoped to html.ah, uses the colour variables of academy-home.css (--ah-*). */

html.ah .next-block[hidden] { display: none; }
html.ah .next-block { padding-bottom: 24px; }
html.ah .nx-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
html.ah .nx-titles { flex: 1 1 260px; min-width: 0; }
html.ah .next-block .nx-title {
  font-family: var(--ah-head); font-weight: 700; font-size: 25px; line-height: 1.15; text-transform: lowercase; color: var(--ah-ink); margin: 5px 0 0;
}
html.ah .nx-when { margin: 8px 0 0; font: 600 17px/1.35 var(--ah-font); font-variant-numeric: tabular-nums; color: var(--ah-ink); }
html.ah .nx-note { margin: 10px 0 0; font: 400 15px/1.5 var(--ah-font); color: var(--ah-spn); }
html.ah .nx-chip {   /* "In 8 days": the white glossy pill; blue when it is today or tomorrow */
  flex: none; display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 99px; margin-top: 6px;
  font: 700 13px/1.2 var(--ah-font); letter-spacing: .02em; white-space: nowrap; color: var(--ah-ink);
  border: 1.5px solid #35a4dd; background: var(--ah-pill); box-shadow: var(--ah-pill-sh);
}
html.ah .nx-chip.soon {
  color: #06233f; border: 1.5px solid #1778b3; background: var(--ah-pill-a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 4px rgba(20, 110, 170, .3);
}

/* Admin preview: the badge line above the example */
html.ah .nx-adm {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 14px; padding: 8px 14px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 251, 232, .92), rgba(255, 238, 180, .7)); border: 1.5px solid #d99a1c;
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(150, 100, 10, .2);
}
html.ah .nx-adm-b {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 99px; flex: none;
  font: 700 11px/1 var(--ah-font); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  border: 1.5px solid #0a2a48; background: linear-gradient(180deg, #2a72b0 0%, #1d5a93 49%, #0d3358 50%, #164a7d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
html.ah .nx-adm-t { flex: 1 1 240px; min-width: 0; font: 600 13.5px/1.45 var(--ah-font); color: #4a2f00; }

@media (max-width: 560px) {
  html.ah .next-block .nx-title { font-size: 22px; }
  html.ah .nx-when { font-size: 16px; }
  html.ah .nx-row { padding: 0 4px; }
}
@media (forced-colors: active) {
  html.ah .nx-chip, html.ah .nx-adm-b { border: 1px solid CanvasText; }
}
