/* World Assessment Council — the learning pages: WAC Masterclasses (/masterclasses/) and WAC Courses (/courses/).
   Loaded after wac-news.css and wac-events.css, which provide the hero, buttons, sections, cards and the form.
   Only what those two do not have is here: the catalogue cards, the "nothing announced yet" panel and the
   members band. The pages are written by _deploy/tools/build_learning.py; the cards by wac-learning.js. */

/* the "nothing announced yet" panel (inside the catalogue grid, across all its columns) */
.lm-grid { align-items: stretch; }
.lm-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; background: #fff; border: 1px dashed #b9c8de; border-radius: 16px; padding: 2rem 2.25rem; }
.lm-empty > div { min-width: 0; }
.page-news .post-content .lm-empty h3 { font-family: var(--wn-font); font-size: 1.3rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 0.4rem; color: var(--wn-ink); }
.page-news .post-content .lm-empty p { font-size: 1rem; line-height: 1.6; color: var(--wn-muted); margin: 0; max-width: 40em; }
.page-news .lm-empty .news-btn { flex: none; background: var(--wn-accent); }
.page-news .lm-empty .news-btn:hover { background: #1d4ed8; }

/* a catalogue card (one masterclass or course) */
.lm-card:hover { transform: none; }
.lm-tile { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.3rem; padding: 1.1rem 1.25rem; background: linear-gradient(135deg, #0a1628 0%, #12305c 100%); color: #fff; }
.lm-tile em { font-style: normal; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8fc4ff; }
.lm-tile strong { font-size: 1.35rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.page-news .post-content p.lm-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.7rem; }
.lm-tag { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; padding: 0.3rem 0.6rem; border-radius: 999px; background: #e3ecfa; color: #1a4b8c; }
.lm-tag.open { background: #dff3e6; color: #14603a; }
.lm-tag.closed { background: #eceff3; color: #475569; }
.lm-tag.members { background: #0a1628; color: #fff; }
.lm-tag.centre { background: #f1f4f8; color: #3b4656; }
.page-news .post-content .lm-card .ev-card-title { margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.page-news .post-content p.lm-led { font-size: 0.9375rem; line-height: 1.5; color: #334155; margin: 0 0 0.2rem; overflow-wrap: anywhere; }
.lm-led b { font-weight: 650; color: var(--wn-ink); }
.lm-facts { margin: 0.8rem 0 0; padding: 0.2rem 0; border-top: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; }
.lm-facts > div { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 0.75rem; padding: 0.45rem 0; }
.lm-facts > div + div { border-top: 1px solid #f3f5f8; }
.lm-facts dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #1a4b8c; padding-top: 0.2rem; }
.lm-facts dd { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #1f2937; overflow-wrap: anywhere; }
.lm-facts dd b { font-weight: 700; }
.lm-facts dd span { color: var(--wn-muted); }
.page-news .post-content p.lm-summary { font-size: 0.9375rem; line-height: 1.6; color: #334155; margin: 0.9rem 0 0; overflow-wrap: anywhere; }
.lm-more { margin: 0.7rem 0 0; }
.lm-more summary { display: inline-flex; align-items: center; gap: 0.4rem; list-style: none; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: #1d4ed8; padding: 0.2rem 0; }
.lm-more summary::-webkit-details-marker { display: none; }
.lm-more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.lm-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lm-more summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; border-radius: 4px; }
.page-news .post-content .lm-more p { font-size: 0.9rem; line-height: 1.6; color: #334155; margin: 0.55rem 0 0; overflow-wrap: anywhere; }
.lm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lm-card-foot { margin-top: auto; padding-top: 1.1rem; }
.page-news .lm-card .news-btn.lm-register { width: 100%; justify-content: center; background: var(--wn-accent); }
.page-news .lm-card .news-btn.lm-register:hover { background: #1d4ed8; }
.page-news .lm-card .news-btn.lm-register.soft { background: #fff; color: #1d4ed8 !important; border: 1px solid #b9c8de; }
.page-news .lm-card .news-btn.lm-register.soft:hover { background: #eef4fd; }
.lm-card.is-closed .lm-tile, .lm-card.is-closed .ev-card-img img { filter: grayscale(0.6); opacity: 0.8; }

/* the members band */
.lm-members-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.page-news .news-cta .lm-members-btns .news-btn.ghost { background: rgba(255, 255, 255, 0.1); color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.45); }
.page-news .news-cta .lm-members-btns .news-btn.ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* responsive */
@media (max-width: 860px) {
  .lm-empty { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
}
@media (max-width: 640px) {
  .page-news .lm-empty .news-btn, .lm-members-btns, .lm-members-btns .news-btn { width: 100%; justify-content: center; }
  .page-news .news-cta.lm-members { padding: 1.5rem; }
  .page-news .lm-empty .news-btn, .lm-members-btns .news-btn { white-space: normal; text-align: center; }
}
