/* Story chains / "Verlauf" (2026-11-24, Michael): footer button + panel that opens like the sources panel, chapters oldest first, the chapter you read is dimmed and framed. */
.story-toggle{font-size:10px;display:inline-flex;align-items:center;gap:5px;color:var(--muted);border-radius:6px;padding:0;white-space:nowrap;transition:color .2s;cursor:pointer;flex:0 0 auto}
.story-toggle>svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.story-toggle:hover,.story-toggle:focus-visible,.story-toggle[aria-expanded=true]{color:var(--accent-text,var(--accent))}
.story-toggle[hidden],.card-story[hidden]{display:none!important}
@media(min-width:1700px){.story-toggle{font-size:9px}}

.card-story{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .45s var(--ease),opacity .35s}
.story-expanded .card-story{grid-template-rows:1fr;opacity:1}
.story-clip{overflow:hidden;min-height:0;visibility:hidden;transition:visibility .45s}
.story-expanded .story-clip{visibility:visible}
.news-card .card-story{overflow-anchor:none}
.story-inner{padding-top:22px;margin-top:22px;border-top:1px solid var(--line)}
/* inside the reading layer the panel opens and closes at once: the layer counts its columns right after the change */
.pin-reader .card-story,.pin-reader .story-clip{transition:none}

.story-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.story-heading{min-width:0;flex:1;text-align:center}
.story-heading h3{font-family:var(--font-display);font-size:16px;color:var(--ink);line-height:1.5;margin:0;letter-spacing:-.4px}
:root:not([data-font-kind=sans]) .story-heading h3{letter-spacing:0}
.story-position{display:block;font-size:9px;color:var(--muted);line-height:1.5;margin-top:1px;font-variant-numeric:tabular-nums}
.story-step{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:8px;cursor:pointer;transition:color .2s,border-color .2s,background .2s}
.story-step svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.story-step:hover:not(:disabled),.story-step:focus-visible{color:var(--accent-text,var(--accent));border-color:var(--accent-text,var(--accent));background:var(--tint)}
.story-step:disabled{opacity:.35;cursor:default}

.story-note{font-size:10px;color:var(--muted);line-height:1.7;margin:0}
.story-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.story-link{display:flex;align-items:flex-start;gap:10px;width:100%;padding:12px 10px;margin:0;font:inherit;text-align:start;color:inherit;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;transition:background .2s,border-color .2s}
button.story-link{cursor:pointer}
button.story-link:hover,button.story-link:focus-visible{border-color:var(--accent-text,var(--accent));background:var(--tint)}
.story-number{font-size:10px;color:var(--accent-text,var(--accent));line-height:1.8;flex-shrink:0;min-width:1.2em;font-variant-numeric:tabular-nums}
.story-text{min-width:0;flex:1}
.story-text strong{display:block;font-size:11px;line-height:1.6;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.story-text small{display:block;font-size:9px;line-height:1.6;color:var(--muted);margin-top:4px}
.story-text small em{font-style:normal;color:var(--accent-text,var(--accent))}
/* the chapter you are reading: dimmed, framed in the theme colour, not clickable */
.story-link.is-current{cursor:default;border-color:var(--accent-text,var(--accent));box-shadow:inset 0 0 0 1px var(--accent-text,var(--accent))}
.story-link.is-current .story-number,.story-link.is-current .story-text strong,.story-link.is-current .story-text small>time{opacity:.55}
:where(:root:not([data-style=studio])) .story-link{border-radius:var(--r-ctl)}
@media(prefers-reduced-motion:reduce){.card-story,.story-clip{transition:none}}

/* ---- package 48 (2026-11-24, Michael): panels in columns (reading layer and every wide card) ---- */
/* The clip boxes (overflow:hidden) cannot be split between columns: the whole panel jumped into the next column, left empty columns and, in a narrow window, out of sight. In wide
   cards both panels are plain blocks that start right below the footer (or the previous panel), continue in the next column and open and close without a transition. */
.news-card.wide .card-story,.news-card.wide .card-sources{display:none;grid-template-rows:none;opacity:1;transition:none}
.news-card.wide.story-expanded .card-story,.news-card.wide.sources-expanded .card-sources{display:block}
.news-card.wide .story-clip,.news-card.wide .sources-clip{display:block;overflow:visible;min-height:0;transition:none}
.news-card.wide .story-list,.news-card.wide .sources-list{display:block}
.news-card.wide .story-item,.news-card.wide .sources-list>li{margin:0 0 8px;break-inside:avoid}
.news-card.wide .story-head,.news-card.wide .sources-inner>h3{break-after:avoid}
.news-card.wide .story-head,.news-card.wide .sources-inner>h3,.news-card.wide .sources-evidence-note{break-inside:avoid}

/* ---- package 48: the footer icons (sources, timeline, ratings, votes, share) are one size and one distance apart ---- */
.card-footer .card-footer-actions{gap:4px}
.card-footer-actions>:is(.sources-toggle,.story-toggle,.ratings-toggle){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:28px;min-width:28px;height:28px;padding:0;margin:0;border:1px solid transparent;border-radius:var(--r-chip,7px);background:transparent;line-height:1;font-size:10px}
.card-footer-actions>:is(.sources-toggle,.story-toggle,.ratings-toggle)>svg{width:15px;height:15px}
.card-footer-actions>:is(.sources-toggle,.story-toggle,.ratings-toggle):is(:hover,:focus-visible){background:var(--surface-2);border-color:var(--line)}
.card-footer-actions>:is(.sources-toggle,.story-toggle):focus-visible{outline:2px solid var(--accent-text,var(--accent));outline-offset:1px}
.card-footer-actions .card-feedback,.card-footer-actions .vote-group{gap:4px}
