/* xag-story-list.css  LISTING STORY TEMPLATE shared by the News page and the Events page (owner 2026-11-04: "must be attractive for readers").
   Page heading, one featured lead story, then clear sections (big heading + equal-height .xc-grid card row), newest first.
   Cards reuse xag-cards.css (.xc-grid/.xc-card). Tokens only: spacing scale 4/8/12/16/24/32/48, no colours or fonts here. */
.xsl { display: flex; flex-direction: column; gap: var(--xag-sp-7); margin: var(--xag-sp-5) 0 var(--xag-sp-6); }
.xsl-sec { display: flex; flex-direction: column; gap: var(--xag-sp-4); }
.xsl-sec > .xc-grid { margin: 0; }
html body .xsl-sec h2.xsl-h:not(#xag) { font-size: 1.875rem; line-height: 1.2; margin: 0; }

/* the lead story: large image, big headline, 2-line summary, purple Read button */
.xsl-lead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--xag-sp-6); align-items: center;
  padding: var(--xag-sp-5); border: 1px solid var(--xag-c-line); border-radius: var(--xag-radius-l, 24px); background: var(--xag-c-surface); }
.xsl-media .xsl-pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--xag-radius, 16px); display: block; }
.xsl-lead-body { display: flex; flex-direction: column; gap: var(--xag-sp-3); min-width: 0; align-items: flex-start; }
html body .xsl-lead-body > h3.xsl-lead-title:not(#xag) { font-size: 2.25rem; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
html body .xsl-lead-body > h3.xsl-lead-title:not(#xag)::before { display: none; }
.xsl-lead-sum { margin: 0; font-size: 1.125rem; line-height: 1.5; max-width: 70ch;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.xsl-kicker { display: flex; flex-wrap: wrap; gap: var(--xag-sp-2); align-items: center; font-size: .9rem; }
.xsl-cat { display: inline-block; padding: var(--xag-sp-1) var(--xag-sp-3); border: 1px solid var(--xag-c-line-strong); border-radius: var(--xag-btn-radius, 28px); font-size: .8rem; font-weight: 700; white-space: nowrap; }

/* cards: fixed 16:10 picture (xag-cards.css), placeholder on-theme when a story has no picture */
.xsl .xc-card { padding: 0; overflow: hidden; border: 1px solid var(--xag-c-line); border-radius: var(--xag-radius, 16px); background: var(--xag-c-surface); }
.xsl .xc-body { padding: var(--xag-sp-4); gap: var(--xag-sp-2); }
.xsl .xc-title { margin: 0; font-size: 1.25rem; }
.xsl .xc-actions { grid-template-columns: minmax(0, 1fr); }
.xsl-ph { display: flex; align-items: center; justify-content: center; color: var(--xag-c-on-accent);
  background: linear-gradient(135deg, var(--xag-c-solid-purple), var(--xag-c-solid-cyan)); }

.xsl-ph svg { width: 48px; height: 48px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* empty state */
.xsl-soon { text-align: center; padding: var(--xag-sp-7) var(--xag-sp-5); border: 1px solid var(--xag-c-line); border-radius: var(--xag-radius-l, 24px); background: var(--xag-c-surface); }
.xsl-soon h2 { margin: 0 0 var(--xag-sp-2); }
.xsl-soon p { margin: 0 auto; max-width: 70ch; }

/* article dialog: line length about 70 characters */
.xsl-dlg .xc-more-body { display: flex; flex-direction: column; gap: var(--xag-sp-4); }
.xsl-dlg .xsl-pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--xag-radius, 16px); }
.xsl-dlg .xsl-text { max-width: 70ch; font-size: 1.0625rem; line-height: 1.6; }
.xsl-dlg .xsl-text p { margin: 0 0 var(--xag-sp-4); }
.xsl-dlg .xc-more-body .news-card { border: 0; padding: 0; background: none; box-shadow: none; max-width: 70ch; }

@media (max-width: 900px) {
  .xsl-lead { grid-template-columns: minmax(0, 1fr); gap: var(--xag-sp-4); padding: var(--xag-sp-4); }
  html body .xsl-lead-body > h3.xsl-lead-title:not(#xag) { font-size: 1.75rem; }
  html body .xsl-sec h2.xsl-h:not(#xag) { font-size: 1.5rem; }
}
.xsl-dlg .xc-more-head { align-items: flex-start; }
.xsl-dlg .xc-more-head h2 { padding-top: var(--xag-sp-2); }
.xsl-x { flex: none; width: var(--xag-close-size, 44px); height: var(--xag-close-size, 44px); border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* page heading (yellow with the dot, like every section heading) and the News / Events switcher */
html body h1.xsl-title:not(#xag) { color: var(--xag-h-sec); font-size: 2.25rem; line-height: 1.2; font-weight: 700; margin: 0 0 var(--xag-sp-2); }
html body h1.xsl-title:not(#xag)::before { content: ""; display: inline-block; width: .42em; height: .42em; margin-inline-end: .5em; border-radius: 50%; vertical-align: .12em; background: var(--xag-h-sec); }
.xsl-intro { margin: 0 0 var(--xag-sp-4); max-width: 70ch; font-size: 1.125rem; line-height: 1.5; }
.xsl-switch { display: flex; flex-wrap: wrap; gap: var(--xag-sp-2); margin: 0 0 var(--xag-sp-4); }
.xsl-switch .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* date badge (events): day and month, on the picture or the placeholder */
.xsl-badge { position: absolute; top: var(--xag-sp-3); left: var(--xag-sp-3); z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: var(--xag-sp-1) var(--xag-sp-2);
  border-radius: var(--xag-radius, 16px); background: var(--xag-c-inverse); color: var(--xag-c-on-inverse); line-height: 1.1; text-align: center; pointer-events: none; box-shadow: var(--xag-c-shadow-sm); }
.xsl-badge b { font-size: 1.5rem; }
.xsl-badge span { font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.xsl-media { position: relative; display: block; min-width: 0; }
.xsl-media > .xsl-pic, .xsl-media > .xsl-ph { width: 100%; }
.xc-card > .xsl-media > .xc-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: flex; border-radius: 0; }
.xsl-lead > .xsl-media > .xsl-pic, .xsl-lead > .xsl-media > .xsl-ph { aspect-ratio: 16 / 9; border-radius: var(--xag-radius, 16px); }
.xsl-lead > .xsl-media .xsl-badge { top: var(--xag-sp-4); left: var(--xag-sp-4); min-width: 72px; }
.xsl-lead > .xsl-media .xsl-badge b { font-size: 2rem; }
.xsl-place { font-size: .95rem; }
.xsl-lead-meta { margin: 0; font-size: 1rem; }

.xsl-ph.xsl-pic { display: flex; }
