/* ==========================================================================
   Hockeygymnasiet Child – egen CSS
   ========================================================================== */

:root {
	--hgc-panel-w: 300px;
	--hgc-header-h: 72px;
	--hgc-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hgc-header-h));
	--hgc-accent: #003c69;
	--hgc-accent-soft: #eaf1f7;
	--hgc-text: #0b1a30;
	--hgc-muted: #5a6b80;
	--hgc-border: #e1e7ee;
}

.hgc-hidden { display: none !important; }

/* ---------- Sidhuvud ---------- */
.hgc-header { z-index: 100; }
.hgc-header .hgc-header__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: none;
	width: 100%;
	min-height: var(--hgc-header-h);
	padding: 0 28px 0 20px;
	margin: 0;
}
.hgc-panel-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	flex: 0 0 auto;
}
.hgc-panel-toggle:hover,
.hgc-panel-toggle:focus-visible { background: rgba(255, 255, 255, .1); }
.hgc-panel-toggle__open { display: none; }
html:not(.hgc-open) .hgc-panel-toggle__close { display: none; }
html:not(.hgc-open) .hgc-panel-toggle__open { display: inline-flex; }

.hgc-branding { display: flex; align-items: center; flex: 0 0 auto; }
.hgc-logo { display: inline-flex; align-items: center; line-height: 0; }
.hgc-header .hgc-logo img { display: block; width: 179px; max-width: none; height: 50px; object-fit: contain; }

.hgc-header .hgc-header__actions { margin-left: auto !important; display: flex; align-items: center; gap: 22px; }
.hgc-header__link {
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}
.hgc-header__link:hover,
.hgc-header__link:focus-visible { color: #f2c94c; text-decoration: none; }

/* ---------- Sidopanel (del av layouten, under sidhuvudet) ---------- */
.hgc-panel {
	position: fixed;
	top: var(--hgc-top);
	left: 0;
	bottom: 0;
	width: var(--hgc-panel-w);
	background: #fff;
	border-right: 1px solid var(--hgc-border);
	overflow-y: auto;
	overscroll-behavior: contain;
	z-index: 90;
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform .25s ease, visibility 0s linear .25s;
	color: var(--hgc-text);
}
html.hgc-open .hgc-panel {
	transform: none;
	visibility: visible;
	transition: transform .25s ease, visibility 0s;
}
.hgc-panel__inner { padding: 22px 14px 40px; }

/* Innehållet flyttas åt sidan i stället för att täckas (stora skärmar). */
@media (min-width: 1024px) {
	.hgc-has-panel .site-main,
	.hgc-has-panel .site-footer,
	.hgc-has-panel .compare-bar {
		transition: margin-left .25s ease;
	}
	html.hgc-open .hgc-has-panel .site-main,
	html.hgc-open .hgc-has-panel .site-footer {
		margin-left: var(--hgc-panel-w);
	}
	html.hgc-open .hgc-has-panel .compare-bar {
		left: var(--hgc-panel-w);
	}
}

/* Sök */
.hgc-panel__section + .hgc-panel__section { margin-top: 18px; }
.hgc-panel__search-title {
	margin: 0 0 12px;
	padding-left: 10px;
	border-left: 4px solid var(--hgc-accent);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hgc-accent);
	line-height: 1.2;
}
.hgc-panel__search { display: grid; gap: 10px; padding: 0 8px; }
.hgc-panel__search label { display: block; font-size: 0; }
.hgc-panel__search select {
	width: 100%;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #c9d3de;
	border-radius: 8px;
	background-color: #fff;
	color: var(--hgc-text);
	font-size: 14px;
}
.hgc-panel__submit {
	height: 38px;
	border: 0;
	border-radius: 8px;
	background: var(--hgc-accent);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}
.hgc-panel__submit:hover { background: #002a4a; }

/* Sektionsrubriker */
.hgc-panel__heading {
	margin: 0 0 6px;
	padding: 8px 12px;
	border-radius: 6px;
	background: var(--hgc-accent-soft);
	color: var(--hgc-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.3;
}
.hgc-panel__heading::before { content: "\25CF"; margin-right: 8px; font-size: 9px; vertical-align: 2px; }

/* Länkar */
.hgc-panel__menu { list-style: none; margin: 0; padding: 0; }
.hgc-panel__menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--hgc-text);
	font-size: 15px;
	text-decoration: none;
	line-height: 1.3;
}
.hgc-panel__menu a:hover,
.hgc-panel__menu a:focus-visible { background: #f3f6f9; color: var(--hgc-accent); }
.hgc-panel__menu .is-current > a {
	background: var(--hgc-accent);
	color: #fff;
	font-weight: 600;
}
.hgc-panel__menu .is-current .hgc-prem { background: rgba(255, 255, 255, .18); color: #fff; }

/* Premium-märke */
.hgc-prem {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 7px 2px 3px;
	border-radius: 999px;
	background: var(--hgc-accent-soft);
	color: var(--hgc-accent);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.hgc-prem img { width: 14px; height: 14px; border-radius: 50%; }

/* ---------- Surfplatta och mobil ---------- */
@media (max-width: 1023px) {
	.hgc-panel {
		width: min(420px, 100%);
		box-shadow: 0 12px 30px rgba(11, 26, 48, .18);
	}
	.hgc-header .hgc-header__inner { padding: 0 16px 0 10px; gap: 10px; }
	.hgc-header__actions { gap: 14px; }
}
@media (max-width: 600px) {
	.hgc-panel { width: 100%; }
	.hgc-header .hgc-logo img { width: 143px; height: 40px; }
	.hgc-header__link { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.hgc-panel,
	.hgc-has-panel .site-main,
	.hgc-has-panel .site-footer { transition: none !important; }
}

/* ==========================================================================
   Kalender – Tryouts, camps och turneringar (listlayout)
   ========================================================================== */
.hgc-cal-loading .hgp-wrap { min-height: 520px; visibility: hidden; }
.hgc-cal { --hgc-cal-ink: #001321; color: #fff; }

.hgc-cal__eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px;
	color: #9fb6cc; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hgc-cal__eyebrow::before { content: ""; width: 14px; height: 2px; background: #e5b723; border-radius: 2px; }
.hgc-cal__title { margin: 0 0 10px; color: #fff; font-size: clamp(30px, 3.2vw, 44.8px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hgc-cal__sub { margin: 0 0 18px; max-width: 560px; color: #c3d1de; font-size: 16.8px; line-height: 1.5; }
.hgc-cal__count {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .08);
	font-size: 14px; font-weight: 600; color: #fff;
}
.hgc-cal__count i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }

.hgc-cal__filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 14px; }
.hgc-cal__chip {
	display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; cursor: pointer;
	border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
}
.hgc-cal__chip small { margin-left: 6px; font-size: 11.2px; opacity: .75; }
.hgc-cal__chip:hover { background: rgba(255, 255, 255, .12); }
.hgc-cal__chip.is-on { background: #fff; border-color: #fff; color: var(--hgc-cal-ink); }

.hgc-cal__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hgc-cal__adds { display: flex; flex-wrap: wrap; gap: 8px; }
.hgc-cal__add {
	display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; line-height: 1.2;
}
.hgc-cal__add:hover { border-color: #fff; color: #fff; text-decoration: none; }
.hgc-cal__add--pri { background: #e5b723; border-color: #e5b723; color: var(--hgc-cal-ink); }
.hgc-cal__add--pri:hover { background: #f2c94c; border-color: #f2c94c; color: var(--hgc-cal-ink); }
.hgc-cal__add--adm { border-style: dashed; opacity: .7; font-weight: 600; }

.hgc-cal__pager { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); font-size: 13.6px; }
.hgc-cal__pager span { margin-right: 6px; }
.hgc-cal__arr {
	width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; background: transparent;
	color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.hgc-cal__arr:hover:not([disabled]) { background: rgba(255, 255, 255, .1); }
.hgc-cal__arr[disabled] { opacity: .35; cursor: default; }

.hgc-cal__list { display: grid; gap: 8px; }
.hgc-cal__item {
	display: grid; grid-template-columns: 82px 40px minmax(0, 1fr) auto; align-items: center; gap: 14px;
	padding: 10px 14px; border-radius: 14px; background: #fff; color: #0d1b2a;
}
.hgc-cal__date {
	display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px;
	border-radius: 10px; background: #1f8a4c; color: #fff; text-align: center; line-height: 1.1;
}
.hgc-cal__date b { font-size: 21.6px; font-weight: 800; }
.hgc-cal__date span { margin-top: 2px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.hgc-cal__date--tryout { background: #003c69; }
.hgc-cal__date--camp { background: #e5b723; color: #001321; }

.hgc-cal__icon {
	display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; overflow: hidden;
	border: 1px solid #e3e9f0; border-radius: 50%; background: #f5f7fa;
}
.hgc-cal__icon img { width: 100%; height: 100%; object-fit: cover; }
.hgc-cal__icon em { font-style: normal; font-size: 12px; font-weight: 800; color: #003c69; }

.hgc-cal__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hgc-cal__org { font-size: 16px; font-weight: 800; color: #001321; }
.hgc-cal__badge {
	padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	background: #e3f4e9; color: #17643a;
}
.hgc-cal__badge--tryout { background: #e5eef6; color: #003c69; }
.hgc-cal__badge--camp { background: #fdf3d3; color: #7a5a00; }
.hgc-cal__name { margin: 2px 0 4px; font-size: 16px; font-weight: 600; color: #0d1b2a; line-height: 1.3; }
.hgc-cal__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.8px; color: #5b6b7c; }
.hgc-cal__meta span { display: inline-flex; align-items: center; gap: 5px; }
.hgc-cal__meta svg { width: 14px; height: 14px; flex: 0 0 14px; }

.hgc-cal__cta { display: flex; align-items: center; gap: 14px; justify-self: end; }
.hgc-cal__btn {
	display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 10px; background: #003c69;
	color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.hgc-cal__btn:hover { background: #002a4a; color: #fff; text-decoration: none; }
.hgc-cal__edit { color: #5b6b7c; font-size: 13px; text-decoration: underline; }
.hgc-cal__edit:hover { color: #003c69; }

.hgc-cal__empty { padding: 22px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #c3d1de; }
.hgc-cal__foot { margin: 16px 0 0; color: #c3d1de; font-size: 14px; }
.hgc-cal__foot a { color: #fff; font-weight: 700; text-decoration: underline; }

/* Surfplatta och mobil (som ny26): knapparna delar raden lika, bläddringen ligger till höger. */
@media (max-width: 1023px) {
	.hgc-cal__tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.hgc-cal__adds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.hgc-cal__add { justify-content: center; text-align: center; }
	.hgc-cal__add--adm { grid-column: 1 / -1; justify-self: center; }
	.hgc-cal__pager { justify-self: end; }
}
/* Mobil: datum + text, ikonen göms och knappen ligger i full bredd under. */
@media (max-width: 767px) {
	.hgc-cal__filter { flex-wrap: nowrap; gap: 6px; }
	.hgc-cal__chip { flex: 1 1 auto; justify-content: center; padding: 7px 6px; font-size: 12.5px; white-space: nowrap; }
	.hgc-cal__chip small { margin-left: 4px; }
	.hgc-cal__add { padding: 8px 10px; font-size: 12.5px; }
	.hgc-cal__item { grid-template-columns: 68px minmax(0, 1fr); grid-template-areas: "date main" "cta cta"; gap: 12px; padding: 10px 12px; }
	.hgc-cal__date { grid-area: date; align-self: start; min-height: 54px; }
	.hgc-cal__icon { display: none; }
	.hgc-cal__main { grid-area: main; }
	.hgc-cal__cta { grid-area: cta; justify-self: stretch; gap: 12px; }
	.hgc-cal__btn { flex: 1; justify-content: center; font-size: 12.5px; }
	.hgc-cal__meta { flex-direction: column; gap: 2px; }
}
@media (max-width: 380px) {
	.hgc-cal__chip { font-size: 11.5px; padding: 7px 4px; }
	.hgc-cal__chip small { margin-left: 3px; }
}

/* Starkare regler så att föräldratemats stilar för mörka sektioner inte tar över. */
section.hgc-cal-on .hgc-cal p { line-height: 1.4; }
section.hgc-cal-on .hgc-cal p.hgc-cal__eyebrow { margin: 0 0 10px; color: #9fb6cc; }
section.hgc-cal-on .hgc-cal p.hgc-cal__sub { margin: 0 0 18px; color: #c3d1de; }
section.hgc-cal-on .hgc-cal p.hgc-cal__name { margin: 2px 0 4px; color: #0d1b2a; font-size: 16px; font-weight: 600; }
section.hgc-cal-on .hgc-cal .hgc-cal__item a.hgc-cal__btn { color: #fff; }
section.hgc-cal-on .hgc-cal .hgc-cal__item a.hgc-cal__edit { color: #5b6b7c; font-weight: 500; }
section.hgc-cal-on .hgc-cal .hgc-cal__item a.hgc-cal__edit:hover { color: #003c69; }
section.hgc-cal-on .hgc-cal a.hgc-cal__add--pri { color: #001321; }
section.hgc-cal-on .hgc-cal p.hgc-cal__foot { margin: 16px 0 0; color: #c3d1de; }
section.hgc-cal-on .hgc-cal p.hgc-cal__foot a { color: #fff; }

/* ==========================================================================
   Startsidans hero: bildspel i duotonfärg med pixel-övergång. Färgtemat
   (--hgc-c, --hgc-acc, --hgc-d) byts med varje bild och färgar även
   sökrutan, kortet, nedräkningsraden och statistikraden.
   ========================================================================== */
@property --hgc-c   { syntax: "<color>"; inherits: true; initial-value: #2f6bff; }
@property --hgc-acc { syntax: "<color>"; inherits: true; initial-value: #8fb8ff; }
@property --hgc-d   { syntax: "<color>"; inherits: true; initial-value: #020a2c; }
:root { transition: --hgc-c 1s ease, --hgc-acc 1s ease, --hgc-d 1s ease; }

.hgp-hero.hgc-fx { position: relative; overflow: hidden; background: #000; isolation: isolate; }
.hgp-hero.hgc-fx .hgp-hero__bg { display: none; }
.hgp-hero.hgc-fx > .hgp-wrap { position: relative; z-index: 2; }

.hgc-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hgc-slide {
	position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
	background: var(--slide-d);
}
.hgc-slide.is-on { opacity: 1; }
.hgc-slide img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	filter: grayscale(1) contrast(1.2) brightness(1.05);
	transform: scale(1.1); transition: transform 8s cubic-bezier(.2, .6, .3, 1);
}
.hgc-slide.is-on img { transform: scale(1); }
/* Duoton: färgen multipliceras över gråskalan, den mörka tonen lyfter skuggorna. */
.hgc-slide::before, .hgc-slide::after { content: ""; position: absolute; inset: 0; }
.hgc-slide::before { background: var(--slide-c); mix-blend-mode: multiply; }
.hgc-slide::after  { background: var(--slide-d); mix-blend-mode: lighten; }
.hgc-px { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 1; image-rendering: pixelated; }
.hgc-shade {
	position: absolute; inset: 0; z-index: 2;
	background:
		linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .28) 48%, rgba(0, 0, 0, .08) 100%),
		linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 62%);
}

/* Räknare och förloppsstaplar nere till vänster */
.hgc-hero-ui {
	position: absolute; left: 56px; bottom: 26px; z-index: 3;
	display: flex; align-items: center; gap: 12px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em;
}
.hgc-hero-ui__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hgc-acc); }
.hgc-hero-ui__bars { display: flex; gap: 6px; }
.hgc-hero-ui__bar {
	position: relative; width: 42px; height: 14px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.hgc-hero-ui__bar span { position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hgc-hero-ui__bar i { position: absolute; inset: 0; width: 0; background: var(--hgc-acc); }
.hgc-hero-ui__bar.is-done i { width: 100%; }
.hgc-hero-ui__bar.is-on i { animation: hgc-bar var(--hgc-dur, 8s) linear forwards; }
.hgc-fx.is-paused .hgc-hero-ui__bar.is-on i { animation-play-state: paused; }
@keyframes hgc-bar { from { width: 0; } to { width: 100%; } }

/* Rubrikens andra rad i temafärgen */
.hgc-acc { color: var(--hgc-acc); transition: color 1s ease; }

/* Sökrutan som glas i temafärgen */
.hgc-fx .hgp-search {
	background: color-mix(in srgb, var(--hgc-d) 58%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
	border: 1px solid color-mix(in srgb, var(--hgc-acc) 55%, transparent);
	box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .8);
}
.hgc-fx .hgp-search label { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .14); }
.hgc-fx .hgp-search select { color: #fff; background-color: transparent; }
.hgc-fx .hgp-search select option { color: #0b1a30; }
.hgc-fx .hgp-search .hgp-btn { background: var(--hgc-acc); color: var(--hgc-d); border-color: var(--hgc-acc); }
.hgc-fx .hgp-usp li::before { color: var(--hgc-acc); }

/* Kortet som glas i temafärgen */
.hgc-fx .hgp-preview {
	background: color-mix(in srgb, var(--hgc-d) 66%, transparent);
	-webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, .14); color: #fff;
	box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .85);
}
.hgc-fx .hgp-preview__head { background: color-mix(in srgb, var(--hgc-c) 38%, transparent); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.hgc-fx .hgp-preview .hgp-badge { background: color-mix(in srgb, var(--hgc-acc) 22%, transparent); color: var(--hgc-acc); border: 1px solid color-mix(in srgb, var(--hgc-acc) 45%, transparent); }
.hgc-fx .hgp-preview dl > div { border-color: rgba(255, 255, 255, .12); }
.hgc-fx .hgp-preview dt { color: rgba(255, 255, 255, .72); }
.hgc-fx .hgp-preview dd, .hgc-fx .hgp-preview dd a { color: #fff; }
.hgc-fx .hgp-preview__foot { border-color: rgba(255, 255, 255, .12); background: transparent; }
.hgc-fx .hgp-preview__foot .hgp-btn { background: var(--hgc-acc); color: var(--hgc-d); border-color: var(--hgc-acc); }
.hgc-fx .hgp-preview__nav, .hgc-fx .hgp-preview__nav span { color: rgba(255, 255, 255, .8); }
.hgc-fx .hgp-preview .hgp-arrow { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.hgc-fx .hgp-preview__card-in { animation: hgc-card-in .5s ease; }
@keyframes hgc-card-in { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Nedräkningsraden ovanför och statistikraden under heron */
.hgc-themed.hgp-topbar {
	position: relative;
	background: color-mix(in srgb, var(--hgc-d) 85%, #000);
}
.hgc-themed.hgp-topbar::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--hgc-acc), transparent);
}
.hgc-themed.hgp-topbar b { color: var(--hgc-acc); border-color: color-mix(in srgb, var(--hgc-acc) 40%, transparent); background: color-mix(in srgb, var(--hgc-acc) 12%, transparent); }
.hgc-themed.hgp-stats {
	position: relative; overflow: hidden;
	background: color-mix(in srgb, var(--hgc-d) 85%, #000);
}
.hgc-themed.hgp-stats::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
	background: linear-gradient(90deg, transparent, var(--hgc-acc), transparent);
}
.hgc-themed.hgp-stats::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(60% 140% at 50% 0%, color-mix(in srgb, var(--hgc-c) 22%, transparent), transparent 70%);
}
.hgc-themed.hgp-stats .hgp-wrap { position: relative; z-index: 1; }
.hgc-themed.hgp-stats b { color: var(--hgc-acc); transition: color 1s ease; }

@media (max-width: 760px) {
	.hgc-hero-ui { left: 20px; bottom: 14px; }
	.hgc-hero-ui__bar { width: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.hgc-slide img { transition: none; transform: none; }
	.hgc-hero-ui__bar.is-on i { animation: none; width: 100%; }
}

/* Föräldratemats mörka hero-övertoning och gula sökknapp ersätts av temafärgerna. */
.hgp-hero.hgc-fx::before,
.hgp-hero.hgc-fx::after { display: none !important; }
.hgp-hero.hgc-fx .hgp-search .hgp-btn,
.hgp-hero.hgc-fx .hgp-preview__foot .hgp-btn {
	background: var(--hgc-acc) !important;
	border-color: var(--hgc-acc) !important;
	color: var(--hgc-d) !important;
}
/* Färglagren ska ligga ovanpå bilden. */
.hgc-slide img { z-index: 0; }
.hgc-slide::before { z-index: 1; }
.hgc-slide::after { z-index: 2; }

/* Klubblogotyp i hero-kortet */
.hgp-preview__logo.hgc-club-logo { background: #fff; overflow: hidden; }
.hgp-preview__logo.hgc-club-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }

/* ---------- Hero: sökrutans underkant i linje med kortets underkant (dator) ---------- */
@media (min-width: 761px) {
	.hgp-hero.hgc-fx > .hgp-wrap { align-items: end; }
	.hgp-hero.hgc-fx > .hgp-wrap > div:first-child { position: relative; }
	.hgp-hero.hgc-fx .hgp-usp { position: absolute; left: 0; right: 0; top: 100%; margin-top: 14px; }
}

/* ---------- Hero på mobil (som ny26) ---------- */
@media (max-width: 760px) {
	/* Raden med NIU/LIP-nedräkningen visas inte på mobil. */
	.hgp-topbar { display: none !important; }

	.hgp-hero.hgc-fx { padding-top: 0; padding-bottom: 28px; }
	.hgp-hero.hgc-fx > .hgp-wrap { display: block; }
	/* Hela bildbanern syns först; rubrik, sök och bildräknare ligger längst ned i den. */
	.hgp-hero.hgc-fx > .hgp-wrap > div:first-child {
		min-height: calc(100svh - var(--hgc-top, 120px));
		display: flex; flex-direction: column; justify-content: flex-end;
		padding-top: 48px; padding-bottom: 96px; box-sizing: border-box; /* plats för Klaviyo- och cookieknappar */
	}
	.hgp-hero.hgc-fx h1 { font-size: clamp(30px, 8.4vw, 38px); line-height: 1.08; }

	/* Sökfunktionen som en rad i full bredd med en ikonknapp. */
	.hgp-hero.hgc-fx .hgp-search {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) 52px;
		gap: 0; width: 100%; padding: 6px; border-radius: 14px; box-sizing: border-box;
	}
	.hgp-hero.hgc-fx .hgp-search label {
		display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0;
		padding: 6px 10px; font-size: 11px; border: 0; border-right: 1px solid rgba(255, 255, 255, .14);
	}
	.hgp-hero.hgc-fx .hgp-search label:nth-of-type(3) { border-right: 0; }
	.hgp-hero.hgc-fx .hgp-search select {
		width: 100%; min-width: 0; padding: 0 14px 0 0; border: 0; height: auto; min-height: 0;
		font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
	}
	.hgp-hero.hgc-fx .hgp-search .hgp-btn {
		display: flex; align-items: center; justify-content: center;
		width: 52px; min-width: 0; height: auto; min-height: 52px; padding: 0; margin: 0;
		font-size: 0 !important; border-radius: 10px;
	}
	.hgp-hero.hgc-fx .hgp-search .hgp-btn::before {
		content: ""; width: 20px; height: 20px; background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2.6'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2.6'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	}
	/* De tre punkterna bredvid varandra på en rad. */
	.hgp-hero.hgc-fx .hgp-usp { position: static; display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 6px; margin: 12px 0 0; font-size: clamp(10px, 2.8vw, 12.5px); }
	.hgp-hero.hgc-fx .hgp-usp > * { white-space: nowrap; margin: 0 !important; }

	/* Bildbytet (räknare + staplar) direkt under sökfunktionen. */
	.hgc-hero-ui.is-inline { position: static; margin-top: 16px; }
	.hgc-hero-ui.is-inline .hgc-hero-ui__bar { width: 34px; }

	/* Kortet ligger längre ned och syns när man börjar skrolla. */
	.hgp-hero.hgc-fx .hgp-preview { margin-top: 56px; }

	/* Statistikraden som 2 × 2. */
	.hgc-themed.hgp-stats ul { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px 0; }
	.hgc-themed.hgp-stats li { border-left: 0 !important; }
	.hgc-themed.hgp-stats li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .12) !important; }
}
@media (max-width: 760px) {
	.hgc-themed.hgp-stats b { font-size: clamp(22px, 6.4vw, 30px); white-space: nowrap; }
}

/* ---------- Händelseticker "På gång" under startsidans navigering ---------- */
.hgc-tk { background: #fff; border-bottom: 1px solid #e3e9f0; color: #001321; }
.hgc-tk__in { display: flex; align-items: center; gap: 14px; max-width: 1240px; margin: 0 auto; padding: 12px 24px; }
.hgc-tk__lb {
	flex: none; display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
	background: #eef3f8; color: #001321 !important; font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
	text-transform: uppercase; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease;
}
.hgc-tk__lb:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 19, 33, .12); }
.hgc-tk__vp {
	flex: 1; min-width: 0; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.hgc-tk__tr { display: flex; width: max-content; animation: hgc-tk-scroll var(--hgc-tk-dur, 30s) linear infinite; }
.hgc-tk__vp:hover .hgc-tk__tr, .hgc-tk__vp:focus-within .hgc-tk__tr { animation-play-state: paused; }
.hgc-tk__set { display: flex; flex: none; gap: 10px; padding-right: 10px; }
@keyframes hgc-tk-scroll { to { transform: translateX(-50%); } }
.hgc-tk__it {
	display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 6px 14px 6px 8px;
	border: 1px solid #e3e9f0; border-radius: 999px; background: #fff; color: #001321 !important;
	font-size: 14px; line-height: 1.2; text-decoration: none !important; transition: border-color .2s ease, box-shadow .2s ease;
}
a.hgc-tk__it:hover { border-color: #c5d2e0; box-shadow: 0 4px 12px rgba(0, 19, 33, .08); }
.hgc-tk__it b { font-weight: 700; }
.hgc-tk__ty {
	padding: 4px 9px; border-radius: 999px; font-size: 10.25px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	background: #fff2d6; color: #8a5a00;
}
.hgc-tk__it--tryout .hgc-tk__ty { background: #e3f0ff; color: #0b4fb3; }
.hgc-tk__it--camp .hgc-tk__ty { background: #e1f7ec; color: #0b7a45; }
.hgc-tk__dt { color: #5b6b7b; font-size: 12.5px; }
@media (max-width: 760px) {
	.hgc-tk__in { padding: 10px 16px; gap: 10px; }
	/* På mobil kan man även svepa själv. */
	.hgc-tk__vp { overflow-x: auto; scrollbar-width: none; }
	.hgc-tk__vp::-webkit-scrollbar { display: none; }
	.hgc-tk__it { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.hgc-tk__tr { animation: none; }
	.hgc-tk__vp { overflow-x: auto; scrollbar-width: none; }
	.hgc-tk__set[aria-hidden] { display: none; }
}

/* ==========================================================================
   Sidfot (som ny26)
   ========================================================================== */
.site-footer.hgc-foot {
	--hgc-f-line: rgba(255, 255, 255, .10); --hgc-f-txt: #c9d4df; --hgc-f-mut: #8a9bad; --hgc-f-gold: #f2c230;
	margin-top: 0; padding: 0; border: 0;
	background: radial-gradient(1200px 400px at 85% 0%, #0a2a47 0%, transparent 60%), #04121f;
	color: var(--hgc-f-txt); font-size: 15px; line-height: 1.55;
}
.hgc-foot a { color: inherit; text-decoration: none; transition: color .15s; }
.hgc-foot a:hover, .hgc-foot a:focus-visible { color: #fff; }
.hgc-foot__wrap { max-width: 1200px; margin: 0 auto; padding: 64px 24px 0; }
.hgc-foot__grid {
	display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 48px;
	padding-bottom: 48px; border-bottom: 1px solid var(--hgc-f-line);
}
.hgc-foot__brand img { display: block; width: 170px; height: auto; margin-bottom: 18px; }
.hgc-foot__brand p { margin: 0 0 22px; max-width: 320px; color: var(--hgc-f-txt); }
.hgc-foot .hgc-foot__cta {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px;
	background: var(--hgc-f-gold); color: #04121f; font-size: 14px; font-weight: 700;
}
.hgc-foot .hgc-foot__cta:hover { color: #04121f; filter: brightness(1.07); }

.hgc-foot__col h3 { margin: 0; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; }
.hgc-foot .hgc-foot__col h3 button {
	all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%;
	cursor: default; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
}
.hgc-foot__col h3 button::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--hgc-f-gold); }
.hgc-foot__chev { display: none; margin-left: auto; transition: transform .2s; }
.hgc-foot__col ul { margin: 18px 0 0; padding: 0; list-style: none; }
.hgc-foot__col li { margin: 0 0 10px; }
.hgc-foot__col li a { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; }
.hgc-foot__prem {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 3px; border-radius: 999px;
	background: rgba(255, 255, 255, .14); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
.hgc-foot__prem img { width: 12px; height: 12px; border-radius: 50%; }

.hgc-foot__bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
	padding: 22px 0 26px; color: var(--hgc-f-mut); font-size: 13px;
}
.hgc-foot__bar nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hgc-foot .hgc-foot__top {
	all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
	padding: 4px 4px 4px 16px; border: 1px solid var(--hgc-f-line); border-radius: 999px;
	color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; transition: background .15s;
}
.hgc-foot .hgc-foot__top:hover, .hgc-foot .hgc-foot__top:focus-visible { background: rgba(255, 255, 255, .08); }
.hgc-foot__top span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: #1f6fd6; }

/* Surfplatta: logotypen över, tre kolumner under. */
@media (max-width: 1024px) {
	.hgc-foot__grid { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
	.hgc-foot__brand { grid-column: 1 / -1; }
}
/* Mobil: kolumnerna fälls ihop och öppnas med ett tryck. */
@media (max-width: 767px) {
	.hgc-foot__wrap { padding: 44px 20px 0; }
	.hgc-foot__grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; }
	.hgc-foot__brand { padding-bottom: 28px; }
	.hgc-foot__col { border-top: 1px solid var(--hgc-f-line); }
	.hgc-foot .hgc-foot__col h3 button { cursor: pointer; padding: 18px 0; }
	.hgc-foot__chev { display: block; }
	.hgc-foot__col ul { margin: 0; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
	.hgc-foot__col.is-open ul { max-height: 420px; padding-bottom: 14px; }
	.hgc-foot__col.is-open .hgc-foot__chev { transform: rotate(180deg); }
	.hgc-foot__bar { flex-direction: column; align-items: flex-start; border-top: 1px solid var(--hgc-f-line); }
}
/* Plats för cookieknappen nere till höger så att den inte täcker "Till toppen". */
@media (min-width: 768px) { .hgc-foot__bar { padding-right: 64px; } }
