/* Fightergruppen – [fighting-training] och [fighting-results] */

.fh {
	--fh-red: #8b0000;
	--fh-red-dark: #5e0000;
	--fh-ink: #202020;
	--fh-muted: #5b5b5b;
	--fh-parch: #fbf5ec;
	--fh-line: rgba(54, 69, 79, .18);
	--fh-olive: #556b2f;
	--fh-gold: #c99a06;
	--fh-charcoal: #36454f;
	color: var(--fh-ink);
	max-width: 960px;
	margin: 0 auto;
	font-size: 16px;
}
.fh *, .fh *::before, .fh *::after { box-sizing: border-box; }
.fh h3 { font-family: 'MedievalSharp', serif; margin: 0; line-height: 1.15; color: var(--fh-ink); }
.fh img { max-width: 100%; }
.fh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Meddelanden */
.fh-msg { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-weight: 700; }
.fh-msg--ok { background: #e7efd9; color: #33421b; border-left: 4px solid var(--fh-olive); }
.fh-msg--err { background: #f7dede; color: var(--fh-red-dark); border-left: 4px solid var(--fh-red); }

/* Knappar */
.fh-btn {
	appearance: none; border: 2px solid var(--fh-red); background: var(--fh-red); color: #fff;
	font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 6px; cursor: pointer;
	line-height: 1.1; transition: background .2s, border-color .2s;
}
.fh-btn:hover, .fh-btn:focus-visible { background: var(--fh-red-dark); border-color: var(--fh-red-dark); }
.fh-btn--ghost { background: transparent; color: var(--fh-red); }
.fh-btn--ghost:hover, .fh-btn--ghost:focus-visible { background: var(--fh-red); color: #fff; }
.fh-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--fh-red); text-decoration: underline; cursor: pointer; }

/* Inloggningsrad */
.fh-bar {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	background: var(--fh-parch); border: 1px solid var(--fh-line); border-radius: 8px;
	padding: 12px 16px; margin-bottom: 24px;
}
.fh-bar--in img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.fh-bar--in form { margin-left: auto; }
.fh-login { flex-direction: column; align-items: stretch; gap: 8px; }
.fh-login label { font-weight: 700; }
.fh-login__row { display: flex; gap: 8px; }
.fh-login__row input {
	flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid #b9b2a6; border-radius: 6px; background: #fff;
}

/* Träningspass */
.fh-session {
	background: var(--fh-parch); border: 1px solid var(--fh-line); border-radius: 10px;
	padding: 18px; margin-bottom: 18px;
}
.fh-session--next { border: 2px solid var(--fh-red); padding: 22px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.fh-session__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; }
.fh-session__title { flex: 1; min-width: 0; }
.fh-session__title h3 { font-size: 24px; }
.fh-session--next .fh-session__title h3 { font-size: 30px; }
.fh-session__meta { margin: 4px 0 0; color: var(--fh-muted); font-size: 14px; }
.fh-session__count { text-align: right; font-size: 14px; color: var(--fh-muted); }
.fh-session__count strong { display: block; font-size: 28px; line-height: 1; color: var(--fh-red); font-family: 'MedievalSharp', serif; }
.fh-session__text { margin-top: 14px; }
.fh-session__text p:last-child { margin-bottom: 0; }
.fh-session__more { margin-top: 10px; }
.fh-session__more summary, .fh-past summary { cursor: pointer; color: var(--fh-red); font-weight: 700; }

.fh-kicker {
	display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--fh-red); font-weight: 700; margin-bottom: 2px;
}

.fh-date {
	flex: 0 0 auto; width: 64px; text-align: center; background: var(--fh-red); color: #fff;
	border-radius: 8px; padding: 8px 0 6px; line-height: 1;
}
.fh-date__day { display: block; font-family: 'MedievalSharp', serif; font-size: 28px; }
.fh-date__month { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.fh-session--next .fh-date { width: 76px; }
.fh-session--next .fh-date__day { font-size: 36px; }

/* Anmälan */
.fh-signup {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
	margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: #fff; border: 1px dashed var(--fh-line);
}
.fh-signup--yes { border: 1px solid var(--fh-olive); background: #f1f5e9; }
.fh-signup--no { border: 1px solid #b9b2a6; background: #f4f1ec; }
.fh-signup__status--no { color: var(--fh-muted); }
.fh-signup__status--no::before { content: '✗ '; }
.fh-count-extra { display: block; font-size: 13px; }

.fh-declined { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; font-size: 14px; color: var(--fh-muted); }
.fh-declined__label { font-weight: 700; }
.fh-declined__who { display: inline-flex; align-items: center; gap: 6px; opacity: .75; }
.fh-declined__who img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.fh-declined__who--me { opacity: 1; font-weight: 700; }
.fh-signup form { margin: 0; }
.fh-signup__form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fh-signup__status { font-weight: 700; color: var(--fh-olive); margin-left: auto; }
.fh-signup__status::before { content: '✓ '; }
.fh-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.fh-check input { width: 18px; height: 18px; accent-color: var(--fh-red); }

/* Fighterkort */
.fh-fighters {
	list-style: none; margin: 16px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.fh-fighter {
	background: #fff; border: 1px solid var(--fh-line); border-radius: 8px; overflow: hidden;
	display: flex; flex-direction: column; margin: 0;
}
.fh-fighter--me { outline: 2px solid var(--fh-olive); }
.fh-fighter__img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top; display: block; background: var(--fh-charcoal); }
.fh-fighter__body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.fh-fighter__name { font-family: 'MedievalSharp', serif; font-size: 18px; line-height: 1.15; }

.fh-fighters--compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.fh-fighters--compact .fh-fighter { flex-direction: row; align-items: center; }
.fh-fighters--compact .fh-fighter__img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; margin: 6px 0 6px 6px; }
.fh-fighters--compact .fh-fighter__body { padding: 6px 10px; gap: 2px; }
.fh-fighters--compact .fh-fighter__name { font-size: 16px; }

.fh-ride {
	align-self: flex-start; font-size: 12px; font-weight: 700; color: #6b4a00;
	background: #fde9b3; border-radius: 999px; padding: 2px 8px;
}
.fh-ride::before { content: '🚗 '; }

.fh-chips, .fh-awards { display: flex; flex-wrap: wrap; gap: 4px; }
.fh-chip {
	font-size: 11px; line-height: 1.3; padding: 2px 7px; border-radius: 999px;
	background: #eee8dd; color: var(--fh-charcoal);
}
.fh-chip--armor { background: var(--fh-charcoal); color: #fff; }
.fh-award {
	font-size: 11px; line-height: 1.3; padding: 2px 7px; border-radius: 3px; font-weight: 700;
	border: 1px solid currentColor;
}
.fh-award--vita_porten { color: #6a6a6a; background: #fff; }
.fh-award--silver_guard { color: #4e5c66; background: #e9eef1; }
.fh-award--order_of_the_wing { color: var(--fh-olive); background: #eef2e4; }
.fh-award--knight { color: #7a5b00; background: #fbefc8; }

.fh-empty { color: var(--fh-muted); font-style: italic; margin: 14px 0 0; }
.fh-empty--big { font-size: 18px; text-align: center; padding: 30px 0; }

/* Tidigare */
.fh-past { margin-top: 24px; }
.fh-past > summary { font-size: 18px; padding: 10px 0; }
.fh-past__list { margin-top: 12px; }
.fh-session--past .fh-date { background: var(--fh-charcoal); }
.fh-session--past .fh-session__count strong { color: var(--fh-charcoal); }

/* Resultat */
.fh-board {
	background: var(--fh-charcoal); color: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 24px;
}
.fh .fh-board h3 { color: #f2e5d5 !important; font-size: 22px; margin-bottom: 12px; }
.fh-board__list { list-style: none; margin: 0; padding: 0; counter-reset: fh; }
.fh-board__list li {
	counter-increment: fh; display: flex; align-items: center; gap: 12px;
	padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .15);
}
.fh-board__list li::before { content: counter(fh); width: 22px; text-align: right; opacity: .6; font-family: 'MedievalSharp', serif; }
.fh-board__list img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.fh-board__name { flex: 1; font-family: 'MedievalSharp', serif; font-size: 18px; }
.fh-board__wins { font-weight: 700; color: #f6d26b; font-size: 14px; }
.fh-board__note { margin: -4px 0 10px; font-size: 13px; opacity: .75; }
.fh-board .fh-hearts { color: #ff6b6b; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }

.fh-round {
	background: var(--fh-parch); border: 1px solid var(--fh-line); border-radius: 10px;
	padding: 20px; margin-bottom: 20px;
}
.fh-round__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fh-round__head h3 { font-size: 26px; }
.fh-round__date { color: var(--fh-muted); font-size: 14px; }
.fh-round__text { margin-top: 12px; }

.fh-champion {
	display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px;
	border-radius: 10px; background: linear-gradient(135deg, #fff6d6, #f7e3a1); border: 2px solid var(--fh-gold);
}
.fh-champion img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--fh-gold); flex: 0 0 96px; }
.fh-champion .fh-kicker { color: #7a5b00; }
.fh-champion .fh-kicker::before { content: '♛ '; }
.fh-champion__name { display: block; font-family: 'MedievalSharp', serif; font-size: 28px; line-height: 1.1; margin-bottom: 6px; }

.fh-roster { list-style: none; padding: 0; margin: 16px 0 0; }
.fh-roster__row {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 8px 0; border-top: 1px solid var(--fh-line); margin: 0;
}
.fh-roster__row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.fh-roster__row--winner .fh-roster__name { font-weight: 700; }
.fh-roster__row--winner .fh-roster__name::after { content: ' ♛'; color: var(--fh-gold); }
.fh-roster__name { font-family: 'MedievalSharp', serif; font-size: 18px; min-width: 120px; }
.fh-roster .fh-hearts { margin-left: auto; }

.fh-hearts { display: inline-flex; gap: 1px; color: var(--fh-red); font-size: 18px; line-height: 1; white-space: nowrap; }
.fh-heart--extra { color: var(--fh-gold); text-shadow: 0 0 4px rgba(201, 154, 6, .6); }
.fh-heart--lost { display: inline-flex; align-items: center; margin-left: 2px; }
.fh-heart--lost svg { display: block; width: .95em; height: .95em; }
.fh-minus { font-size: 12px; font-weight: 700; color: #fff; background: var(--fh-red); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.fh-champion__lives { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fh-extra { font-size: 12px; font-weight: 700; color: #7a5b00; background: #fbefc8; border-radius: 999px; padding: 2px 8px; }

@media (max-width: 600px) {
	.fh-session, .fh-session--next, .fh-round { padding: 14px; }
	.fh-session__head { grid-template-columns: auto minmax(0, 1fr); }
	.fh-session__count { grid-column: 2; text-align: left; }
	.fh-session__count strong { display: inline; font-size: 20px; }
	.fh-session--next .fh-session__title h3 { font-size: 24px; }
	.fh-fighters { grid-template-columns: repeat(2, 1fr); }
	.fh-fighters--compact { grid-template-columns: 1fr; }
	.fh-signup__status { margin-left: 0; }
	.fh-champion img { width: 72px; height: 72px; flex-basis: 72px; }
	.fh-champion__name { font-size: 22px; }
	.fh-roster .fh-hearts { margin-left: 52px; }
}

/* Tränare */
.fh-session__trainers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 0; font-size: 14px; }
.fh-session__trainers > span:first-child { font-weight: 700; color: var(--fh-olive); }
.fh-session__trainer { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.fh-session__trainer img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.fh-fighter { position: relative; }
.fh-fighter--trainer { border-color: var(--fh-olive); }
.fh-trainer-badge {
	position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; background: var(--fh-olive); color: #fff; border-radius: 999px; padding: 3px 9px;
}
.fh-fighters--compact .fh-trainer-badge { position: static; align-self: center; margin-left: 6px; }

.fh-login__help { margin: 2px 0 0; font-size: 14px; color: var(--fh-muted); }
.fh-login__help a { color: var(--fh-red); text-decoration: underline; }

/* Rubriker för anmälda / avanmälda */
.fh .fh-list-head { font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fh-charcoal); margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--fh-line); }
.fh .fh-list-head span { color: var(--fh-muted); font-weight: 400; }
.fh .fh-list-head--declined { font-size: 13px; color: var(--fh-muted); margin-top: 18px; padding-top: 0; border-top: 0; }
.fh-list-head + .fh-fighters, .fh-list-head + .fh-empty, .fh-list-head + .fh-declined { margin-top: 10px; }
@media (max-width: 860px) {
	.fh-fighters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.fh-fighters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.fh-brings-armor {
	align-self: flex-start; font-size: 12px; font-weight: 700; color: #fff;
	background: var(--fh-charcoal); border-radius: 999px; padding: 2px 8px;
}
.fh-brings-armor::before { content: '🛡 '; }

/* Klickbara bilder → fighterkort */
.fh-open { appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; display: inline-flex; flex: 0 0 auto; border-radius: inherit; line-height: 0; }
.fh-open img { transition: transform .15s, box-shadow .15s; }
.fh-open:hover img, .fh-open:focus-visible img { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(139, 0, 0, .35); }
.fh-open:focus-visible { outline: 2px solid var(--fh-red); outline-offset: 2px; }
.fh-open--card { display: block; width: 100%; overflow: hidden; }
.fh-open--card:hover img, .fh-open--card:focus-visible img { transform: scale(1.03); box-shadow: none; }
.fh-champion .fh-open { flex: 0 0 96px; }

.fh-dialog {
	max-width: min(560px, calc(100vw - 32px)); width: 100%; margin: auto; padding: 0;
	border: 0; border-radius: 12px; background: var(--fh-parch); color: var(--fh-ink);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: visible;
}
.fh-dialog::backdrop { background: rgba(20, 15, 10, .6); }
.fh-dialog__close {
	position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
	border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.fh-dialog__content { max-height: calc(100vh - 48px); overflow: auto; border-radius: 12px; }
.fh-profile__img { width: 100%; aspect-ratio: 4 / 5; max-height: 62vh; object-fit: cover; object-position: center top; display: block; background: var(--fh-charcoal); }
.fh-profile__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.fh .fh-profile__name { font-size: 28px; }
.fh-profile__section { display: flex; flex-direction: column; gap: 6px; }
.fh-profile__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fh-red); }
.fh-profile__none { color: var(--fh-muted); font-style: italic; font-size: 14px; }
.fh-profile .fh-award, .fh-profile .fh-chip { font-size: 13px; padding: 3px 9px; }
.fh-profile__lives { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--fh-muted); }
.fh-profile__lives .fh-hearts { font-size: 22px; }
.fh-profile__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 0; }
.fh-profile__stats div { background: #fff; border: 1px solid var(--fh-line); border-radius: 8px; padding: 8px 6px; text-align: center; }
.fh-profile__stats dd { margin: 0; font-family: 'MedievalSharp', serif; font-size: 26px; line-height: 1; color: var(--fh-red); order: -1; }
.fh-profile__stats div { display: flex; flex-direction: column; gap: 4px; }
.fh-profile__stats dt { font-size: 12px; color: var(--fh-muted); font-weight: 400; }
@media (max-width: 600px) {
	.fh-profile__stats { grid-template-columns: repeat(2, 1fr); }
}

/* Säsongsväljare (Imperator per år) */
.fh-seasons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.fh-seasons span { font-weight: 700; color: var(--fh-muted); margin-right: 4px; }
.fh-seasons a { display: inline-block; padding: 6px 14px; border: 1px solid var(--fh-line); border-radius: 999px; text-decoration: none !important; color: var(--fh-charcoal); background: #fff; font-weight: 700; }
.fh-seasons a:hover { border-color: var(--fh-red); color: var(--fh-red); }
.fh-seasons a.is-active { background: var(--fh-red); border-color: var(--fh-red); color: #fff; }
.fh-profile__total { margin: 10px 0 0; font-size: 13px; color: var(--fh-muted); }

/* Textsektioner på sidorna: temat ger listor både 3em marginal och 2rem padding –
   för mycket indrag på mobil. (Ligger här eftersom denna fil cache-bustas.) */
@media (max-width: 767px) {
	.pagebuilderTextContainer ol:not([class]),
	.pagebuilderTextContainer ul:not([class]) { margin-left: 0; padding-left: 1.4em; }
	.pagebuilderTextContainer li > ol:not([class]),
	.pagebuilderTextContainer li > ul:not([class]) { padding-left: 1.2em; }
}
.fh .fh-profile__since { margin: -4px 0 4px; font-size: 14px; color: var(--fh-muted); font-style: italic; }
.fh .fh-profile__bonds { list-style: none; margin: 0 0 6px; padding: 0; font-size: 14px; }
.fh .fh-profile__bonds li { margin: 2px 0; }
