/* LearnWise Pro — "What's new" page and the homepage "Always improving" strip.
   Uses the colour and type tokens from lw-site.css. */

.lw-news__wrap { max-width: 780px; }
.lw-news__head { text-align: center; margin: 0 auto 56px; }
.lw-news__head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 6px 0 14px; }
.lw-news__head p { color: var(--lw-text); font-size: 1.05rem; max-width: 58ch; margin: 0 auto; }
.lw-news__updated { margin-top: 12px !important; font-size: .85rem !important; color: var(--lw-muted) !important; }

.lw-news__month {
  font-family: var(--lw-sans); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--lw-gold-400); margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--lw-hairline);
}

.lw-news__list { list-style: none; margin: 0 0 48px; padding: 0; position: relative; }
.lw-news__list::before { /* the timeline thread */
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--lw-hairline-2);
}
.lw-news__item { position: relative; padding: 0 0 30px 34px; }
.lw-news__item::before { /* the dot */
  content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--lw-black); border: 2px solid var(--lw-gold-500);
}
.lw-news__item:last-child { padding-bottom: 4px; }
.lw-news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 6px; font-size: .82rem; color: var(--lw-muted); }
.lw-news__meta time { color: var(--lw-text); font-weight: 500; min-width: 3.4em; }
.lw-news__tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 9px; border-radius: var(--lw-pill); border: 1px solid var(--lw-hairline-2); color: var(--lw-gold-300);
}
.lw-news__tag--new { background: rgba(212, 175, 55, .14); color: var(--lw-gold-200); border-color: rgba(212, 175, 55, .45); }
.lw-news__tag--fixed { color: var(--lw-text); border-color: rgba(255, 255, 255, .18); }
.lw-news__for::before { content: "·"; margin-right: 10px; color: var(--lw-hairline-2); }
.lw-news__item h3 { font-family: var(--lw-serif); font-weight: 500; font-size: 1.3rem; color: var(--lw-ivory); margin: 0 0 6px; }
.lw-news__item p { margin: 0; color: var(--lw-text); font-size: .98rem; line-height: 1.65; }

.lw-news__cta { text-align: center; padding: 34px 28px; border: 1px solid var(--lw-hairline); border-radius: var(--lw-radius-card); background: var(--lw-glass); }
.lw-news__cta p { color: var(--lw-text); margin: 0 auto 20px; max-width: 54ch; }
.lw-news__cta a:not(.lw-btn) { color: var(--lw-gold-300); }

/* Homepage strip: latest three, side by side */
.lw-latest .lw-news__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.lw-latest .lw-news__list::before { display: none; }
.lw-latest .lw-news__item {
  padding: 26px 26px 24px; border: 1px solid var(--lw-hairline); border-radius: var(--lw-radius-card); background: var(--lw-glass);
}
.lw-latest .lw-news__item::before { display: none; }
.lw-latest__more { text-align: center; }
.lw-latest__more a { color: var(--lw-gold-300); text-decoration: none; font-weight: 500; }
.lw-latest__more a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .lw-latest .lw-news__list { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .lw-news__head { margin-bottom: 40px; }
  .lw-news__item h3 { font-size: 1.15rem; }
  .lw-latest .lw-news__item { padding: 20px; }
}

/* Homepage headline: "Watch them master it." stays on one line on computers,
   and "master it." is never split on phones */
.lw-nowrap { white-space: nowrap; }
@media (min-width: 981px) {
  .lw-hero__title--snap em { white-space: nowrap; }
}
