/* ============================================================
   Newsletter layout (MVSD-NEWSLETTERS-LANDING, 2026-09-30)
   /newsletters and each bulletin's own page. Main column follows the
   delivery type; the side column is the District News list.
   ============================================================ */

.nl-landing__title {
  margin: 0 0 1.25rem;
  color: var(--color-primary, #01491f);
  text-wrap: balance;
}
.nl-landing__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.nl-landing__main,
.nl-landing__previous {
  min-width: 0;
}
.nl-landing__main:focus {
  outline: none;
}
.nl-landing__heading {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-loose, 0.06em);
  color: var(--color-primary, #01491f);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent, #f5a623);
}
.nl-landing__empty {
  color: var(--color-text-muted, #5a5a5a);
}

/* ---- Main column ------------------------------------------------------ */
/* District: the school pill (.news-card-school, colours in layout.css). */
.nl-lead > .nl-lead__school {
  margin-bottom: 0.6rem;
}
.nl-issues__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.45rem;
}
.nl-issues .news-card-school {
  margin-bottom: 0;
}

/* District "Latest from each school": compact rows (user, 2026-09-30). */
.nl-issues--compact .news-card--teaser {
  grid-template-columns: 44px 1fr;
  gap: 0.6rem;
  padding-block: 0.55rem;
  align-items: center;
}
/* Three classes deep: panels.css's `.news-card--teaser .news-card-thumb`
   (60px) loads AFTER module CSS, so an equal-weight rule here loses and the
   60px thumb spills out of the 44px column into the text. */
.nl-issues--compact .news-card--teaser .news-card-thumb,
.nl-issues--compact .news-card--teaser .news-card-thumb img {
  width: 44px;
  height: 44px;
  min-width: 0;
}
.nl-issues--compact .news-card-title {
  margin-top: 0.1rem;
  font-size: 0.9rem;
  line-height: 1.25;
}
.nl-issues--compact .nl-issues__item:first-child > .news-card--teaser {
  padding-top: 0.2rem;
}
.nl-lead__title {
  margin: 0 0 0.25rem;
  color: var(--color-primary, #01491f);
  text-wrap: balance;
}
.nl-lead__date {
  margin: 0 0 1rem;
  color: var(--color-text-muted, #5a5a5a);
  font-size: 0.9rem;
}

/* Link / PDF: the front page's "From the Principal" panel. */
.nl-lead--zone {
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 2rem);
}

/* Video: a 16:9 player. */
.nl-lead__video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  margin: 0 0 1rem;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.nl-lead__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.nl-lead__summary {
  max-width: 65ch;
}

/* ---- Side column: the District News list ------------------------------- */
.nl-issues {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nl-issues__item + .nl-issues__item > .news-card--teaser {
  border-top: 1px solid var(--color-border, #e0e0e0);
}
.nl-issues__item:first-child > .news-card--teaser {
  padding-top: 0.35rem;
}
.nl-issues__item.is-current > .news-card--teaser {
  box-shadow: inset 3px 0 0 var(--color-accent, #f5a623);
  padding-left: 0.6rem;
}
.nl-issues__item.is-current .news-card-title a {
  text-decoration: none;
  color: var(--color-text, #1a1a1a);
}
.nl-issues__now {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary, #01491f);
}
/* Compact pager for the side column: one line on every page (user,
   2026-09-30). The site pager (feed-list.css) is sized for full-width
   listings; here First / Previous / Next / Last show only their arrows,
   and at most 3 page numbers render (#quantity in the controller). Screen
   readers still hear "First page" etc. (core's visually-hidden text) and the
   title tooltip still names each button. */
.nl-landing__pager .pager {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
}
.nl-landing__pager .pager__items {
  flex-wrap: nowrap;
  gap: 0.25rem;
}
/* border-box: the site pager's padding sits OUTSIDE its min-width, which made
   each button ~48px and the seven of them ~363px, too wide for the column. */
.nl-landing__pager .pager__item a,
.nl-landing__pager .pager__item--first a,
.nl-landing__pager .pager__item--previous a,
.nl-landing__pager .pager__item--next a,
.nl-landing__pager .pager__item--last a {
  box-sizing: border-box;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  font-size: 0.8rem;
}
.nl-landing__pager .pager__item--first [aria-hidden="true"],
.nl-landing__pager .pager__item--previous [aria-hidden="true"],
.nl-landing__pager .pager__item--next [aria-hidden="true"],
.nl-landing__pager .pager__item--last [aria-hidden="true"] {
  font-size: 0;
}
.nl-landing__pager .pager__item--first [aria-hidden="true"]::after,
.nl-landing__pager .pager__item--previous [aria-hidden="true"]::after,
.nl-landing__pager .pager__item--next [aria-hidden="true"]::after,
.nl-landing__pager .pager__item--last [aria-hidden="true"]::after {
  font-size: 1rem;
  line-height: 1;
}
.nl-landing__pager .pager__item--first [aria-hidden="true"]::after { content: "\00AB"; }
.nl-landing__pager .pager__item--previous [aria-hidden="true"]::after { content: "\2039"; }
.nl-landing__pager .pager__item--next [aria-hidden="true"]::after { content: "\203A"; }
.nl-landing__pager .pager__item--last [aria-hidden="true"]::after { content: "\00BB"; }

/* ---- In-place loading (js/newsletters-pager.js) ------------------------ */
.nl-landing.is-loading .nl-landing__grid {
  opacity: 0.55;
  transition: opacity 120ms ease;
}
.nl-landing.is-arriving .nl-landing__grid {
  animation: nl-landing-in 200ms ease-out;
}
@keyframes nl-landing-in {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

@media (max-width: 860px) {
  .nl-landing__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nl-landing.is-loading .nl-landing__grid { transition: none; }
  .nl-landing.is-arriving .nl-landing__grid { animation: none; }
}
