/* SHFstats Magazine v2: the season navigator ("Säsongens puls"). Lives on the dark band in both themes. */
.band-season { margin-top: 0; border-top: 0; }
.band-season .band-in { padding-top: 36px; }
.sx-head { display: grid; gap: 14px; }
.sx-h { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 20px; line-height: .9; }
.sx-word { font-size: clamp(24px, 3vw, 38px); font-weight: 500; letter-spacing: -0.02em; color: #8A9AAE; }
.sx-num { font-size: clamp(72px, 14vw, 196px); letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.sx-lede { margin: 0; font-size: clamp(17px, 1.9vw, 22px); color: #C3CEDB; }
.sx-lede b { color: #F5F6F8; font-weight: 600; font-variant-numeric: tabular-nums; }
.sx-lenses { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 28px; border-bottom: 1px solid #1E2F44; }
.sx-lenses .tabs { border-bottom: 0; }
.lens { margin: 0; padding: 0 0 6px; list-style: none; display: flex; gap: 4px; }
.lens-b {
    min-height: 36px; padding: 0 12px; border: 1px solid #35506F; border-radius: var(--radius-2); background: transparent;
    color: #8A9AAE; font: 500 14px var(--font-sans); cursor: pointer; transition: color 160ms ease-out, background-color 160ms ease-out;
}
.lens-b:hover { color: #F5F6F8; }
.lens-b[aria-pressed="true"] { background: #1F3858; color: #F5F6F8; border-color: #6FA8E8; }
@media (pointer: coarse) { .lens-b { min-height: 44px; } }
.sx-strip { position: relative; margin-top: 30px; padding-bottom: 26px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sx-strip:focus-visible { outline: 2px solid #6FA8E8; outline-offset: 6px; border-radius: 2px; }
.sx-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; height: clamp(170px, 22vw, 260px); }
.wk { display: flex; flex-direction: column; min-width: 0; border-radius: 2px; position: relative; }
.wk-marks { height: 30px; display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; padding-bottom: 4px; }
.wk-bar { position: relative; flex: 1; }
.wk-s, .wk-p {
    position: absolute; left: 12%; right: 12%; bottom: 0; height: 100%; transform-origin: 50% 100%; transform: scaleY(var(--v, 0));
    transition: transform 460ms cubic-bezier(0.77, 0, 0.175, 1), background-color 160ms ease-out; border-radius: 1px;
}
.wk-s { background: #2B4766; }
.wk-p { background: #6FA8E8; }
.wk.sel { background: #16263A; }
.wk.sel .wk-p { background: #F5F6F8; }
.wk.sel .wk-s { background: #35506F; }
.wk.now::before { content: "nu"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: #F5F6F8; }
.sx-strip.dragging .wk-s, .sx-strip.dragging .wk-p { transition: background-color 120ms ease-out; }
.sx-months { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; }
.mo { position: absolute; left: calc(var(--i) / var(--n) * 100%); font-size: 12px; color: #8A9AAE; padding-left: 3px; border-left: 1px solid #35506F; line-height: 20px; }
@media (max-width: 559px) { .mo:nth-child(even) { display: none; } .wk-marks { height: 24px; } .sx-cols { gap: 1px; } }
.mk { display: inline-block; flex: none; width: 8px; height: 8px; }
.mk-art { border-radius: 50%; background: #6FA8E8; }
.mk-cup { background: #F5F6F8; transform: rotate(45deg) scale(.85); }
.mk-cup.beach { background: #3FA597; }
.mk-ms { background: #E3A23B; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mk-open { width: 10px; height: 3px; background: #8A9AAE; }
.sx-legend { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #8A9AAE; align-items: center; }
.sx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lgb { display: inline-block; width: 12px; height: 10px; border-radius: 1px; }
.lgb-p { background: #6FA8E8; }
.lgb-s { background: #1F3858; border: 1px solid #35506F; }
.sx-hint { flex-basis: 100%; }
html:not(.js) .sx-hint { display: none !important; }

/* the week panel */
.sx-panel { margin-top: 28px; border-top: 2px solid #F5F6F8; padding-top: 18px; min-height: 260px; }
.sp-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.sp-h { margin: 0; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.03em; line-height: 1; display: grid; gap: 6px; }
.sp-h span { font-size: 15px; font-weight: 500; letter-spacing: 0; color: #8A9AAE; }
.sp-figs { margin: 0; display: flex; flex-wrap: wrap; row-gap: 12px; }
.sp-figs > div { padding: 0 22px; border-left: 1px solid #24364D; }
.sp-figs > div:first-child { padding-left: 0; border-left: 0; }
.sp-figs dt { font-size: 13px; font-weight: 500; color: #8A9AAE; }
.sp-figs dd { margin: 2px 0 0; font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
@media (max-width: 559px) { .sp-figs > div { padding: 0 14px; } }
.sp-body { margin-top: 24px; display: grid; gap: 24px 40px; }
@media (min-width: 1024px) { .sp-body { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.sp-hls { display: grid; gap: 16px; align-content: start; }
@media (min-width: 700px) { .sp-hls { grid-template-columns: 1fr 1fr; } }
.sp-res { display: grid; gap: 10px; padding: 14px; background: #16263A; border-radius: var(--radius-3); }
.sp-l { font-size: 13px; font-weight: 600; color: #8A9AAE; }
.sp-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.sp-t { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.sp-sc { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
a.sp-sc:hover { color: #6FA8E8; }
.sp-c { font-size: 12px; color: #8A9AAE; text-align: center; }
.sp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; align-content: start; }
.sp-e { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; padding: 10px 0; border-bottom: 1px solid #1E2F44; align-items: baseline; }
.sp-e > i { margin-top: 4px; }
.sp-e > a, .sp-e > b { font-weight: 600; font-size: 16px; line-height: 1.3; }
.sp-e > span { grid-column: 2; font-size: 13px; color: #8A9AAE; }
.sp-e > a { text-decoration: none; }
.sp-e > a:hover { text-decoration: underline; color: #6FA8E8; }
.sp-empty { margin: 0; color: #8A9AAE; }
@media (prefers-reduced-motion: no-preference) {
    .sp.enter { animation: sp-in 200ms cubic-bezier(0.23, 1, 0.32, 1) both; }
    .sx.grow .wk-s, .sx.grow .wk-p { transform: scaleY(0); transition: none; }
}
@keyframes sp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chron-h { margin-top: 56px; }

/* v3: month navigation, competition lens, hover label, weekly context */
.sx-monthnav { margin-top: 18px; }
.sx-monthnav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mo-b { min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-2); background: transparent; color: #8A9AAE; font: 500 14px var(--font-sans); cursor: pointer; white-space: nowrap;
    transition: color 160ms ease-out, background-color 160ms ease-out; }
.mo-b:hover { color: #F5F6F8; }
.mo-b[aria-current] { background: #1F3858; color: #F5F6F8; }
@media (pointer: coarse) { .mo-b { min-height: 44px; } }
.lens-comp select { min-height: 36px; max-width: 260px; padding: 4px 8px; background: #0A1522; color: #F5F6F8; border: 1px solid #35506F; border-radius: var(--radius-2); font: 400 16px var(--font-sans); margin-bottom: 6px; }
.lens-comp select[hidden] { display: none; }
.sx-lenses { align-items: center; }
.sx-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 4px 8px; background: #16263A; border: 1px solid #35506F; border-radius: var(--radius-2);
    font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 120ms ease-out; z-index: 2; }
.sx-tip.on { opacity: 1; }
.sp-ctx { margin: 14px 0 0; font-size: 15px; color: #C3CEDB; max-width: 72ch; }
.sp-chron { margin: 16px 0 0; font-size: 14px; }
.sp-chron a { color: #6FA8E8; }
.chapter-fold > summary { list-style: none; cursor: pointer; }
.chapter-fold > summary::-webkit-details-marker { display: none; }
.chapter-fold > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); align-self: center;
    transition: transform 200ms cubic-bezier(0.65, 0, 0.35, 1); }
.chapter-fold[open] > summary::after { transform: rotate(-135deg); }
.chapter-fold:not([open]) .ch-num { font-size: clamp(26px, 3vw, 34px); }
.tl-week:target { background: var(--surface-selected); }

/* Chronology hierarchy (2026-10-13): stories stand out as feature rows with their own small visual and a tone bar;
   milestones carry a large figure; cups and beach events get their colour as a marker. Ordinary weeks stay plain. */
.tl-feature { grid-template-columns: 64px minmax(0, 1fr) auto 300px; align-items: start; margin: 10px 0; padding: 18px 18px 18px 0;
    background: var(--surface-card); border-bottom: 0; border-left: 3px solid var(--data); border-radius: var(--radius-1); }
.tl-feature .tl-date { padding-left: 14px; }
.tl-feature.tone-cup { border-left-color: var(--brand-blue); }
.tl-feature.tone-beach { border-left-color: var(--brand-teal); }
.tl-feature.tone-stat { border-left-color: var(--signal); }
.tl-feature.tone-player { border-left-color: var(--brand-ice); }
.tl-feature .tl-h { font-size: 22px; }
.tl-vis { min-height: 140px; }
.tl-milestone .tl-h .fig-xl { font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.tl-milestone { border-top: 2px solid var(--text-primary); }
.tl-cup .tl-kind, .tl-feature .tl-kind { font-weight: 600; }
.tl-cup .tl-kind::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 1px; background: var(--brand-blue); vertical-align: 1px; }
.tl-beach .tl-kind::before { background: var(--brand-teal); }
@media (max-width: 799px) {
    .tl-feature { grid-template-columns: 52px minmax(0, 1fr); padding: 14px 14px 14px 0; }
    .tl-feature .tl-date { padding-left: 10px; }
    .tl-vis { grid-column: 2; order: 4; margin-top: 12px; }
}

/* Keep every regional choice visible and keyboard reachable on narrow screens. */
@media (max-width: 699px) {
    .sx-lenses .tabs { flex: 1 1 100%; min-width: 0; max-width: 100%; margin: 0; padding: 0; }
    .sx-lenses .tabs ul { flex-wrap: wrap; gap: 0 16px; }
}
