/* A story is a long horizontal card; multiple cards fit on wide screens. */
.story-selector { min-width:0; }
.story-selector-heading { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:.5rem 1rem; }
.story-selector-heading h2 { margin:0; font-size:1.1rem; }
.story-server-toggles { display:flex; flex-wrap:wrap; gap:.5rem 1rem; }
.story-selector-note { margin:.45rem 0 .7rem; }
.story-selector-tools { display:flex; flex-wrap:wrap; align-items:flex-end; gap:.45rem .75rem; }
.story-choice-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr)); gap:.5rem; }
.story-choice { display:flex; align-items:center; gap:.5rem; min-height:76px; min-width:0; width:100%; max-width:480px; box-sizing:border-box; padding:.5rem; border:1px solid #d8dee7; border-radius:4px; background:#fff; cursor:pointer; }
.story-choice.is-selected { background:#f1f6fe; border-color:#718eb6; }
.story-choice:hover { border-color:#718eb6; }
.story-choice>input { flex:0 0 auto; width:16px; height:16px; margin:0; }
.story-choice-image { display:block; flex:0 0 94px; width:94px; height:53px; }
.story-choice-image:empty { display:none; }
.story-choice-image img { width:100%; height:100%; object-fit:contain; }
.story-choice-copy { display:flex; flex-wrap:wrap; align-items:baseline; min-width:0; gap:.15rem .45rem; }
.story-choice-copy>strong { font-size:.87rem; line-height:1.4; overflow-wrap:anywhere; }
.story-choice-dates { display:flex; flex-wrap:wrap; flex-basis:100%; gap:.15rem .7rem; color:#50555e; font-size:.73rem; }
.story-marker-host { position:relative; }
.story-marker-line { stroke-width:1.5; vector-effect:non-scaling-stroke; }
.story-marker-jp .story-marker-line { stroke:var(--ui-chart-story-jp,#7c3db5); stroke-dasharray:12 4; }
.story-marker-global .story-marker-line { stroke:var(--ui-chart-story-global,#007f86); stroke-dasharray:9 3 1 3; }
.story-marker-hit { stroke:transparent; stroke-width:14px; pointer-events:stroke; vector-effect:non-scaling-stroke; }
.story-marker.is-hovered .story-marker-line { stroke-width:3.3; }
.story-marker-tooltip { position:absolute; z-index:9; max-width:min(320px,calc(100% - 8px)); box-sizing:border-box; background:#fff; color:#000; border:1px solid #63758e; border-radius:4px; padding:.5rem .65rem; box-shadow:0 2px 7px #0002; font-size:.8rem; line-height:1.45; pointer-events:none; }
.story-marker-tooltip[hidden] { display:none; }
.story-marker-tooltip>div+div { margin-top:.4rem; }
.story-marker-tooltip b,.story-marker-tooltip span { display:block; }
@media(max-width:500px) { .story-choice { padding:.4rem; gap:.4rem; }.story-choice-image { flex-basis:78px; width:78px; height:44px; } }
