.history26 .history-hero{background:linear-gradient(90deg,rgba(16,21,51,.97),rgba(16,21,51,.78) 50%,rgba(16,21,51,.45)),url('/assets/images/fredrikstad-cup-hero-1200.webp') center/cover;color:#fff}
.history-hero-inner{display:flex;justify-content:space-between;align-items:center;gap:40px;padding-block:58px}
.history26 .history-hero .stats26-eyebrow{color:var(--color-highlight)}
.history26 .history-hero h1{font-size:clamp(50px,6.5vw,90px);line-height:.92;letter-spacing:-.03em}
.history-hero-inner>div>p:not(.stats26-eyebrow){margin-top:24px;font-size:18px;color:#ece7ef;line-height:1.5}
.history-section{padding:0 0 65px;scroll-margin-top:90px}
.history-year-guidance{max-width:48rem;margin:var(--space-6) auto 0;padding-bottom:var(--space-4);color:var(--color-ink-soft);font-size:var(--text-base);text-align:center}
.history-chart-scroll{overflow-x:auto;padding:0 0 4px}
.history-chart{min-width:770px;display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:12px;padding-top:25px;border-bottom:1px solid var(--color-border)}
.history-year-bar{border:0;padding:0;background:transparent;display:flex;flex-direction:column;gap:12px;align-items:stretch;min-width:0}
.history-bar-field{position:relative;height:160px;display:flex;align-items:flex-end;background:repeating-linear-gradient(to top,#f2eef4 0,#f2eef4 1px,transparent 1px,transparent 40px)}
.history-bar{height:var(--height);display:block;width:100%;background:#ddcce6;position:relative;min-height:2px;transition:background .15s}
.history-bar strong{position:absolute;top:-27px;left:0;right:0;font-size:14px;font-weight:800;line-height:20px;color:var(--color-brand)}
.history-bar-year{display:grid;place-items:center;font-weight:800;font-size:13px;line-height:1;padding:8px 0 18px;text-align:center}
.history-year-bar:hover .history-bar{background:#a87ebb}.history-year-bar[aria-pressed=true] .history-bar{background:var(--color-accent)}
.history-year-bar[aria-pressed=true] .history-bar-year{color:var(--color-brand);box-shadow:inset 0 -3px var(--color-brand)}
.history-year-missing{display:flex;flex-direction:column;justify-content:flex-end;gap:12px;color:#8a8590;text-align:center}
.history-year-missing>span:first-child{height:160px;display:grid;place-content:center;font-size:11px;line-height:1.3;background:repeating-linear-gradient(135deg,#f6f4f7,#f6f4f7 5px,#ede9f0 5px,#ede9f0 6px)}
.history26 .history-year-panel{display:grid;grid-template-columns:310px 1fr;background:#f7f7f8;margin-top:26px;border-top:4px solid var(--color-accent)}
.history-year-summary{padding:30px;border-right:1px solid #e3d9e9}
.history-year-summary h3{font-family:var(--font-sans);font-size:80px;font-weight:900;color:var(--color-brand);line-height:.9;letter-spacing:-.035em}
.history-year-summary dl{display:flex;gap:27px;margin:27px 0!important}.history-year-summary dl>div{display:flex;flex-direction:column}.history-year-summary dt{order:1;font-size:var(--text-sm);color:var(--color-ink-soft)}.history-year-summary dd{font-size:24px;font-weight:900;line-height:1.2}
.history-year-actions{display:flex;flex-direction:column;gap:14px}
.history-year-actions a,.history-year-actions button{font-size:13px;font-weight:800;text-align:left;color:var(--color-brand);text-decoration:none;padding:10px 0;border:0;background:transparent;display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #ddd0e5;min-height:44px}
.history-year-actions a:hover,.history-year-actions button:hover{text-decoration:underline}
.history-year-actions .history-detail-link{background:var(--color-brand);color:#fff;padding:13px;border:0}
.history-result-missing{font-size:var(--text-sm);color:var(--color-ink-soft)}
.history-year-classes{padding:30px;min-width:0}
.history-year-classes h4{font-size:20px;font-weight:800;margin-bottom:20px}
.history-class-group{margin-top:18px}.history-class-group h5{font-size:12px;font-weight:800;text-transform:uppercase;color:var(--color-ink-soft);margin:0 0 8px}
.history-class-group ul{list-style:none;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.history-class-group li{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;padding:9px 10px;font-size:12px;border:1px solid #e9e1ed;line-height:1.4}
.history-class-group li>span{color:var(--color-brand);font-size:11px;font-weight:700}.history-class-group strong{font-size:14px}.history-class-group small{font-weight:400;font-size:10px;color:var(--color-ink-soft)}
.history26 .history-caption{font-size:var(--text-sm);color:var(--color-ink-soft);margin-top:16px;line-height:1.5}
.history-clubs-section{background:#f6f4f2;padding:clamp(4.5rem,6vw,5.5rem) 0;scroll-margin-top:90px}
.history-enhance{display:none!important}.history-ready .history-enhance{display:revert!important}
.history-ready .history-modes{display:flex!important;gap:10px;flex-wrap:wrap;margin-bottom:23px}
.history-modes button{border:1px solid #d8ccd9;background:#fff;padding:12px 16px;font-size:13px;font-weight:800;min-height:45px}
.history-modes button span{font-weight:500;opacity:.7;padding-left:12px}.history-modes button[aria-pressed=true]{background:var(--color-brand);border-color:var(--color-brand);color:#fff}
.history-ready .history-filters{display:grid!important;grid-template-columns:1.5fr 1fr 1fr;gap:18px}
.history-filters label{font-weight:800;font-size:12px}.history-filters input,.history-filters select{font-size:15px;background:#fff}
.history-list-status{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:24px;font-weight:800;font-size:14px}
.history-list-status button{background:transparent;border:0;border-bottom:1px solid #d9cfde;padding:8px 0;font-size:13px;min-height:44px}.history-list-status button:disabled{opacity:.4;cursor:default}
.history-list-header,.history-club>summary{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(270px,1.4fr) 70px 85px 22px;gap:20px;align-items:center}
.history-list-header{padding:18px 20px 12px;margin-top:13px;font-size:11px;font-weight:800;color:var(--color-ink-soft);border-bottom:1px solid #d8d1d9}
.history-list-header>span:nth-child(3),.history-list-header>span:nth-child(4){text-align:right}
.history-club{border-bottom:1px solid #e3dde4;background:#fff}
.history-club>summary{list-style:none;cursor:pointer;padding:19px 20px;min-height:72px}
.history-club>summary::-webkit-details-marker{display:none}.history-club>summary:hover{background:#fffbed}.history-club[open]>summary{background:#fff5cf;box-shadow:inset 4px 0 var(--color-highlight)}
.history-club-name{font-size:17px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.history-presence{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px}
.history-presence>span{display:grid;place-items:center;font-size:9px;min-height:23px;color:#96909b;background:#f4f1f6;line-height:1}
.history-presence>span.history-present{background:#ffe1e5;color:#963346;font-weight:800}
.history-attendance,.history-team-total{text-align:right;font-size:20px;font-weight:900;line-height:1.1}.history-attendance small,.history-team-total small{display:none;font-size:11px;font-weight:500;color:var(--color-ink-soft)}
.history-attendance{color:var(--color-ink)}.history-expand{font-size:24px;color:var(--color-ink);font-weight:400;text-align:center}.history-club[open] .history-expand{transform:rotate(45deg)}
.history-club-detail{padding:0 20px}.history-club-detail:empty{padding:0}
.history-club-detail h4{font-size:14px;margin:22px 0 8px}.history-club-detail>p{font-size:var(--text-sm);color:var(--color-ink-soft);margin-bottom:18px}
.history-club-detail table{border-collapse:collapse;width:100%;font-size:13px;margin-bottom:22px}
.history-club-detail caption{text-align:left;font-weight:800;padding:18px 0 12px}
.history-club-detail th,.history-club-detail td{text-align:left;padding:11px 12px;border-bottom:1px solid #ede7f1;vertical-align:top}
.history-club-detail thead th{font-size:11px;text-transform:uppercase;color:var(--color-ink-soft);background:#f1f3f5}
.history-club-detail tbody th{font-weight:800;color:var(--color-ink);white-space:nowrap}
.history-club-detail td:nth-child(2),.history-club-detail td:nth-child(3){white-space:nowrap;font-weight:700}
.history-class-pills{display:flex;flex-wrap:wrap;gap:5px}.history-class-pills span{display:inline-block;padding:3px 7px;background:#f1f3f5;font-size:11px;color:var(--color-ink)}
.history-class-group li.history-class-J,.history-class-pills span.history-class-J{background:#fff0f1;color:#963346;border-color:#f6dce0}
.history-class-group li.history-class-G,.history-class-pills span.history-class-G{background:#e3f3e9;color:#246443;border-color:#cde7d8}
.history-class-group li.history-class-other,.history-class-pills span.history-class-other{background:#fff5cf;color:#785c09;border-color:#f1e3b2}
.history-class-group li>span{color:inherit}
.history-class-pills b{font-weight:800;margin-left:5px}
.history-club-detail a{display:inline-block;color:var(--color-brand);font-size:13px;font-weight:800;text-decoration:underline;margin-bottom:22px}
.history-empty{text-align:center;padding:35px;background:#fff;font-size:15px;color:var(--color-ink-soft)}
.history-more{text-align:center;padding-top:24px}.history-more p{font-size:var(--text-sm);color:var(--color-ink-soft);margin-bottom:12px}.history-more button{border:1px solid var(--color-brand);background:#fff;padding:13px 25px;color:var(--color-brand);font-weight:800;font-size:14px}
.history26 .history-next{margin-top:60px;margin-bottom:40px}
@media(max-width:1050px){.history-list-header,.history-club>summary{grid-template-columns:minmax(200px,1.4fr) minmax(240px,1.3fr) 50px 65px 20px;gap:12px}.history-class-group ul{grid-template-columns:repeat(4,minmax(0,1fr))}.history26 .history-year-panel{grid-template-columns:280px 1fr}.history-year-classes,.history-year-summary{padding:24px}.history-hero-years{display:none}.history26 .stats26-metrics dd{font-size:49px}}
@media(max-width:800px){.history-list-header,.history-club>summary{grid-template-columns:minmax(130px,1fr) 55px 65px 20px;gap:12px}.history-presence,.history-presence-label{display:none}.history26 .history-year-panel{grid-template-columns:1fr}.history-year-summary{display:grid;grid-template-columns:1fr 1fr;gap:0 22px;border-right:0;border-bottom:1px solid #e3d9e9}.history-year-summary>.stats26-eyebrow{grid-column:1/-1}.history-year-summary dl{margin:0!important;align-self:center}.history-year-summary h3{font-size:66px}.history-year-actions{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;margin-top:20px;gap:12px 20px}.history-year-actions a,.history-year-actions button{gap:15px}.history-class-group ul{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:600px){.history-hero-inner{padding-block:42px}.history26 .history-hero h1{font-size:52px}.history-hero-inner>div>p:not(.stats26-eyebrow){font-size:16px}.history-hero-links{gap:12px}.history26 .stats26-metrics dd{font-size:46px}.history26 .history-scope{font-size:12px}.history-section{padding:40px 0}.history26 h2{font-size:35px}.history-chart{gap:10px}.history-bar-field,.history-year-missing>span:first-child{height:125px}.history-year-summary{padding:22px 18px;gap:0 15px}.history-year-summary dl{gap:18px}.history-year-summary dd{font-size:23px}.history-year-summary h3{font-size:58px}.history-year-classes{padding:22px 18px}.history-class-group ul{grid-template-columns:repeat(3,minmax(0,1fr))}.history-clubs-section{padding:40px 0}.history-modes button{padding:11px 12px;font-size:12px}.history-ready .history-filters{grid-template-columns:1fr 1fr!important;gap:16px 12px}.history-filters label:first-child{grid-column:1/-1}.history-filters input,.history-filters select{font-size:16px}.history-list-header{padding-inline:12px;gap:8px}.history-club>summary{padding:18px 12px;gap:8px}.history-list-header,.history-club>summary{grid-template-columns:minmax(100px,1fr) 40px 54px 18px}.history-club-name{font-size:15px}.history-attendance,.history-team-total{font-size:19px}.history-club-detail{padding:0 12px}.history-club-detail th,.history-club-detail td{padding:10px 5px}.history-club-detail table{font-size:12px}.history-class-pills span{padding:3px 5px;font-size:10px}.history26 .history-next{margin-top:40px}}
@media print{.history-hero-years,.history-hero-links,.history26 .history-enhance{display:none!important}.history26 .history-hero{background:#fff;color:#101533}.history26 .history-year-panel{break-inside:avoid}.history-club{break-inside:avoid}.history-chart-scroll{overflow:visible}}

/* History inherits site tokens; chart labels are available without hover. */
.history-year-bar { text-decoration: none; color: var(--color-ink); }
.history-bar-chart { width: 100%; height: 100%; overflow: visible; }
.history-bar-chart rect { fill: var(--color-brand); }
.history-bar-labels { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.history-bar-labels text { fill: var(--color-ink); font-size: 16.5px; font-weight: 800; }
.history-year-bar[aria-pressed=true] rect { fill: var(--color-accent); }
.history-year-bar[aria-pressed=true] .history-bar-year { text-decoration: underline; text-decoration-thickness: 3px; }
.history-table-scroll { overflow-x: auto; }
.history-club-detail td:last-child { white-space: normal; }
.history-presence > span { color: var(--color-ink-soft); }
.history-class-group small { color: inherit; }
@media (max-width: 38rem) {
    .history26 .history-hero h1 { font-size: clamp(2.4rem, 10vw, 3.25rem); }
    .history-year-summary { grid-template-columns: 1fr; }
    .history-year-summary dl { margin-top: 1rem !important; }
    .history-class-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Shared information-page hero and a calmer historical overview. */
.hero.hero--history { --hero-image: url('/assets/images/fredrikstad-cup-vinnere-1200.webp'); --hero-position: center 40%; }
.hero.hero--history h1 span { color: var(--color-highlight); }
#history26 .stats26-metrics { padding-block: var(--space-8); border-bottom: 0; }
#history26 .stats26-metrics dd { color: var(--color-ink); font-size: clamp(2rem, 5vw, 4rem); white-space: nowrap; }
#history26 .history-year-panel { border-top: 0; background: white; margin-top: var(--space-7); }
#history26 .history-year-summary { background: var(--color-highlight); border: 0; }
#history26 .history-year-summary h3 { color: var(--color-ink); }
#history26 .history-year-actions .history-detail-link { background: var(--color-ink); border-radius: var(--radius-sm); }
#history26 .history-year-actions .history-result-link { padding: 11px 13px; border: 2px solid var(--color-ink); border-radius: var(--radius-sm); background: transparent; color: var(--color-ink); }
#history26 .history-year-actions .history-result-link:hover { background: var(--color-ink); color: white; text-decoration: none; }
#history26 .history-modes { margin-bottom: var(--space-6); }
#history26 .history-modes button { min-height: 48px; font-size: 1rem; border: 2px solid var(--color-ink); }
#history26 .history-modes button[aria-pressed=true], #history26 .history-modes button:hover { background: var(--color-ink); color: white; border-color: var(--color-ink); }
#history26 .history-list-status { margin-top: var(--space-7); font-size: 1.125rem; }
#history26 .history-list-header { margin-top: var(--space-6); border-bottom: 0; }
#history26 .history-class-group li.history-class-J, #history26 .history-class-pills span.history-class-J { background: var(--color-surface-tint); color: var(--color-brand); border-color: #dfcce5; }
#history26 .history-class-group li > span, #history26 .history-class-group strong, #history26 .history-class-pills span { font-size: .875rem; }
#history26 .history-next { background: var(--color-ink); }
body:has(#history26) { --footer-surround-background: var(--color-canvas); }
body:has(#history26) main { background: var(--color-canvas); }
#history26 { display: flow-root; background: var(--color-canvas); }
#history26 > .stats26-shell:last-child { display: flow-root; }
@media(max-width:600px) {
    #history26 .stats26-metrics { padding-block: var(--space-7); }
    #history26 .history-class-group ul { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
