/* ---------- Story page (story.html): one event or development across its articles ----------
 * The head (title, latest development, figures), the articles by day, and the side panels
 * (sources, political context, dossier). The figures use the metric blocks of metrics.css.
 * Every text is cut so the layout holds at any width. */

.st-page { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 48px; }

.st-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.st-crumbs a { color: var(--muted); }
.st-crumbs a:hover { color: var(--color-primary); }
.st-crumbs .accent { color: var(--color-primary); }
.st-status { padding: 2px 6px; border: 1px solid var(--color-success); color: var(--color-success); }

/* Head: title and latest development on the left, the figures on the right */
.st-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; align-items: start; }
.st-head .mx-stats dt { letter-spacing: .02em; }
.st-title-block { display: grid; gap: 14px; min-width: 0; }
.st-title-block h1 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.st-latest { display: grid; gap: 8px; padding: 16px 18px; border-left: 2px solid var(--color-primary); }
.st-latest-label { display: flex; margin: 0; flex-wrap: wrap; gap: 4px 10px; margin: 0; color: var(--color-primary); font-size: 10px; letter-spacing: .06em; }
.st-latest-label .muted { color: var(--muted); }
.st-latest-text { margin: 0; font-size: 16px; line-height: 1.55; }
.st-latest-source { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12px; }
.st-latest-source span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-timeframe { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.st-timeframe strong { color: var(--text); font-weight: 600; }

/* Range with one tick per rated article (figures panel of the story page) */
.mx-range-tick { position: absolute; top: 4px; left: calc((var(--v) - 1) / 19 * 100%); width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: var(--muted); opacity: .8; }

/* Body: the articles by day, the side panels */
.st-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px; align-items: start; }
.st-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; margin: 0 0 4px; }
.st-section-head h2 { overflow: hidden; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.st-section-head .mono { flex: none; color: var(--muted); font-size: 9px; }

.st-articles { padding: 16px 18px 6px; }
.st-day { margin: 0; padding: 14px 0 6px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.st-day .accent { color: var(--color-primary); }
.st-list { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
.st-list::before { content: ""; position: absolute; left: 55px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }

.st-item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 22px; padding: 10px 0 14px; }
.st-item::before { content: ""; position: absolute; left: 52px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-bright); }
.st-item.is-development::before { background: var(--color-primary); box-shadow: 0 0 0 3px var(--panel); }
.st-time { padding-top: 2px; color: var(--muted); font-size: 11px; text-align: right; }
.st-article { display: grid; gap: 6px; min-width: 0; }
.st-source { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-size: 12px; }
.st-source-name { overflow: hidden; min-width: 0; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.st-flag { flex: none; padding: 1px 6px; border: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; white-space: nowrap; }
.st-flag.is-development { border-color: color-mix(in srgb, var(--color-primary) 60%, var(--line)); color: var(--color-primary); }
.st-flag .icon { margin-right: 3px; font-size: 10px; }
.st-headline { display: -webkit-box; overflow: hidden; color: var(--text); font-family: var(--font-heading); font-size: 15px; font-weight: 600; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.st-headline:hover { color: var(--color-primary); }
.st-development { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.st-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.st-item.is-copy .st-headline { color: var(--muted); font-weight: 500; }

/* Side panels */
.st-side { display: grid; gap: 16px; min-width: 0; }
.st-sources { display: grid; gap: 2px; margin: 8px 0 0; padding: 0; list-style: none; }
.st-sources li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.st-sources li:last-child { border-bottom: 0; }
.st-sources li > span:nth-child(2) { display: grid; min-width: 0; }
.st-sources strong { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.st-sources small { overflow: hidden; color: var(--muted); font-family: var(--font-mono); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.st-sources li.is-copy strong { color: var(--muted); font-weight: 500; }
.st-sources li.is-copy .source-avatar { border-style: dashed; }

.st-dossier { display: grid; gap: 10px; }
.st-dossier-title { display: -webkit-box; overflow: hidden; margin: 0; font-family: var(--font-heading); font-size: 16px; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.st-dossier-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.st-dossier-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--color-primary); font-size: 11px; font-weight: 700; }
.st-dossier-link:hover { color: var(--color-primary-hover); }

.st-method { display: flex; gap: 10px; padding: 12px 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.st-method .icon { flex: none; color: var(--color-primary); }

@media (max-width: 980px) {
  .st-head, .st-body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .st-articles { padding: 12px 12px 4px; }
  .st-item { grid-template-columns: 36px minmax(0, 1fr); gap: 18px; }
  .st-list::before { left: 45px; }
  .st-item::before { left: 42px; }
}
