/*
 * Hudikpoker redesign 2026
 * Plain CSS (not part of the LESS build) so it needs no compile step.
 * Loaded only when the redesign is active, see hudik/redesign.php.
 * Colours and fonts from the logo package (LASMIG.txt).
 */

:root {
	--hp-red: #A3302A;
	--hp-red-dark: #7E231F;
	--hp-blue: #1B2A41;
	--hp-blue-light: #24354F;
	--hp-cream: #F3EAD7;
	--hp-cream-soft: #E6DDC9;
	--hp-paper: #FFFBF3;
	--hp-line: #E2D6BE;
	--hp-grey: #7D8590;
	--hp-ink: #22201F;
	--hp-muted: #5A616B;
	--hp-muted-light: #B8BEC6;
	--hp-font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--hp-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--hp-radius: 12px;
	--hp-radius-small: 6px;
}

/* ---------- Page frame ---------- */

html.hp-on body {
	background: var(--hp-cream);
	color: var(--hp-ink);
	font-family: var(--hp-font);
}

/* The old mobile header is replaced by .hp-header */
html.hp-on .m-header {
	display: none;
}

/* Start page: let the sections run edge to edge */
html.hp-on .view-home .l-holder,
html.hp-on .view-home .l-content,
html.hp-on .view-home .l-main,
html.hp-on .view-home .l-inner {
	max-width: none;
	margin: 0;
	padding: 0;
	background: none;
	border-radius: 0;
}

/* Other pages: same width as the header, breadcrumbs in the new colours */
html.hp-on .l-holder {
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 32px 64px;
}

html.hp-on .breadcrumbs {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	color: var(--hp-muted);
	font-family: var(--hp-font);
	font-size: 15px;
}

html.hp-on .breadcrumbs a {
	color: var(--hp-red);
	vertical-align: baseline;
}

html.hp-on .view-tournaments .l-main,
html.hp-on .view-tournament .l-main,
html.hp-on .view-rankings .l-main,
html.hp-on .view-news .l-main,
html.hp-on .view-news-article .l-main,
html.hp-on .view-blog .l-main,
html.hp-on .view-editable .l-main,
html.hp-on .view-contact .l-main,
html.hp-on .view-retail .l-main,
html.hp-on .view-sent .l-main,
html.hp-on .view-login .l-main,
html.hp-on .view-account .l-main {
	padding: 0;
	background: none;
	border-radius: 0;
}

/* The old theme adds side margins on .l-content on small screens */
html.hp-on .l-content {
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 640px) {
	html.hp-on .l-holder {
		padding: 16px 16px 48px;
	}
}

.hp-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 32px;
	padding-right: 32px;
}

@media (max-width: 640px) {
	.hp-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}
}

.hp,
.hp-header,
.hp-footer {
	font-family: var(--hp-font);
	font-size: 17px;
	line-height: 1.55;
}

.hp *,
.hp-header *,
.hp-footer * {
	box-sizing: border-box;
}

.hp p {
	margin: 0;
}

/* ---------- Buttons ---------- */

.hp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border: 2px solid transparent;
	border-radius: var(--hp-radius-small);
	font-family: var(--hp-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}

.hp-btn:focus-visible,
.hp a:focus-visible,
.hp-header a:focus-visible,
.hp-footer a:focus-visible {
	outline: 3px solid var(--hp-red);
	outline-offset: 2px;
}

.hp-btn--small { min-height: 40px; padding: 7px 16px; }
.hp-btn--large { min-height: 52px; padding: 13px 26px; font-size: 18px; }

.hp-btn--red,
.hp-btn--red:visited { background: var(--hp-red); border-color: var(--hp-red); color: #fff; }
.hp-btn--red:hover { background: var(--hp-red-dark); border-color: var(--hp-red-dark); color: #fff; }

.hp-btn--blue,
.hp-btn--blue:visited { background: var(--hp-blue); border-color: var(--hp-blue); color: var(--hp-cream); }
.hp-btn--blue:hover { background: var(--hp-blue-light); border-color: var(--hp-blue-light); color: var(--hp-cream); }

.hp-btn--ghost,
.hp-btn--ghost:visited { border-color: var(--hp-grey); color: var(--hp-cream); }
.hp-btn--ghost:hover { border-color: var(--hp-cream); color: var(--hp-cream); }

.hp-btn--outline-light,
.hp-btn--outline-light:visited { border-color: var(--hp-cream); color: var(--hp-cream); }
.hp-btn--outline-light:hover { background: var(--hp-cream); color: var(--hp-blue); }

.hp-btn--cream,
.hp-btn--cream:visited { background: var(--hp-cream); border-color: var(--hp-cream); color: var(--hp-ink); }
.hp-btn--cream:hover { background: #fff; border-color: #fff; color: var(--hp-ink); }

.hp-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Header ---------- */

.hp-header {
	background: var(--hp-blue);
	color: var(--hp-cream);
	border-bottom: 8px solid var(--hp-grey);
}

.view-home .hp-header {
	border-bottom: 0;
}

.hp-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 32px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.hp-header__logo {
	display: flex;
	flex: none;
}

.hp-header__logo img {
	display: block;
	width: auto;
	height: 40px;
}

.hp-header__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 28px;
}

.hp-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-nav__link,
.hp-nav__link:visited {
	display: inline-block;
	padding: 6px 0;
	border-bottom: 3px solid transparent;
	color: var(--hp-cream);
	font-family: var(--hp-font-display);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: .06em;
	text-decoration: none;
	text-transform: uppercase;
}

/* The old theme underlines a:hover; the red bar is the only underline here */
.hp-nav__link:hover,
.hp-nav__link:focus,
.hp-nav__link[aria-current="page"] {
	border-bottom-color: var(--hp-red);
	color: var(--hp-cream);
	text-decoration: none;
}

.hp-btn:hover,
.hp-btn:focus {
	text-decoration: none;
}

.hp-header__actions {
	display: flex;
	gap: 10px;
}

.hp-header__toggle {
	display: none;
}

/* Mobile: one sticky row (logo + menu button), menu folds out below */
@media (max-width: 860px) {
	.hp-header {
		position: sticky;
		top: 0;
		z-index: 100;
		border-bottom-width: 4px;
	}

	.hp-header__inner {
		position: relative;
		flex-wrap: nowrap;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.hp-header__logo img {
		height: 32px;
	}

	.hp-header__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-right: -8px;
		padding: 0;
		background: none;
		border: 0;
		border-radius: var(--hp-radius-small);
		color: var(--hp-cream);
		cursor: pointer;
	}

	.hp-header__toggle:focus-visible {
		outline: 3px solid var(--hp-red);
		outline-offset: 2px;
	}

	.hp-header__toggle-close,
	.hp-header.is-open .hp-header__toggle-open {
		display: none;
	}

	.hp-header.is-open .hp-header__toggle-close {
		display: block;
	}

	.hp-header__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 8px 16px 24px;
		background: var(--hp-blue);
		border-bottom: 4px solid var(--hp-grey);
		box-shadow: 0 16px 24px rgba(0, 0, 0, .25);
	}

	.hp-header.is-open .hp-header__nav {
		display: flex;
	}

	.hp-nav {
		flex-direction: column;
		gap: 0;
	}

	.hp-nav li + li {
		border-top: 1px solid #3A4A63;
	}

	.hp-nav__link {
		display: block;
		padding: 12px 0;
		border-bottom: 0;
		font-size: 22px;
	}

	.hp-nav__link[aria-current="page"] {
		color: #fff;
		box-shadow: inset 4px 0 0 var(--hp-red);
		padding-left: 12px;
	}

	.hp-header__actions .hp-btn {
		flex: 1 1 0;
		min-height: 48px;
		font-size: 17px;
	}

	/* On the start page the header sits on the hero: no double grey line */
	.view-home .hp-header {
		border-bottom-width: 0;
	}
}

/* ---------- Typography ---------- */

.hp-eyebrow {
	color: var(--hp-muted-light);
	font-family: var(--hp-font-display);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.hp .hp-h2 {
	margin: 0;
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.hp-muted { color: var(--hp-muted); }
.hp-muted-light { color: var(--hp-muted-light); }

.hp-more,
.hp-more:visited {
	color: var(--hp-red);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hp-more:hover { color: var(--hp-red-dark); }

@media (max-width: 640px) {
	.hp .hp-h2 { font-size: 36px; }
}

/* ---------- Hero ---------- */

.hp-hero {
	background: var(--hp-blue);
	color: var(--hp-cream);
	border-bottom: 8px solid var(--hp-grey);
}

.hp-hero__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	align-items: center;
	gap: 40px 48px;
	padding-top: 56px;
	padding-bottom: 72px;
}

.hp-hero__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hp .hp-hero__title {
	margin: 0;
	color: var(--hp-cream);
	font-family: var(--hp-font-display);
	font-size: clamp(56px, 7vw, 92px);
	font-weight: 700;
	line-height: .95;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.hp-hero__lead {
	max-width: 520px;
	color: var(--hp-cream-soft);
	font-size: 19px;
}

.hp-perk {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 520px;
	padding: 14px 18px;
	border: 1px dashed var(--hp-grey);
	border-radius: 8px;
	color: var(--hp-cream-soft);
	font-size: 16px;
}

.hp-perk__big {
	flex: none;
	color: var(--hp-cream);
	font-family: var(--hp-font-display);
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
}

.hp-hero__art {
	display: flex;
	justify-content: center;
}

.hp-hero__art picture {
	display: contents;
}

.hp-hero__art img {
	display: block;
	width: 100%;
	max-width: 540px;
	height: auto;
}

/* Mobile: the mark without its reflection (less tall), above the title */
@media (max-width: 640px) {
	.hp-hero__inner { gap: 28px; padding-top: 28px; padding-bottom: 44px; }
	.hp-hero__art { order: -1; }
	.hp-hero__art img { max-width: 280px; }
}

/* ---------- Sections ---------- */

.hp-section {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 64px;
	padding-bottom: 8px;
}

.hp-home > .hp-section:last-of-type,
.hp-band .hp-section {
	padding-bottom: 64px;
}

.hp-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
}

.hp-section__head--stack {
	flex-direction: column;
	align-items: flex-start;
}

.hp-band {
	margin-top: 64px;
	background: var(--hp-paper);
	border-top: 1px solid var(--hp-line);
	border-bottom: 1px solid var(--hp-line);
}

.hp-band .hp-section {
	padding-top: 64px;
}

.hp-empty {
	padding: 24px;
	border: 1px dashed var(--hp-grey);
	border-radius: var(--hp-radius);
	color: var(--hp-muted);
}

/* ---------- Tournament card ---------- */

.hp-tcard {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
	padding: 24px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius);
}

.hp-date {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	width: 96px;
	padding: 12px 0;
	background: var(--hp-red);
	border-radius: 8px;
	color: var(--hp-cream);
	font-family: var(--hp-font-display);
	line-height: 1;
	text-transform: uppercase;
}

.hp-date__small { font-size: 18px; font-weight: 600; letter-spacing: .1em; }
.hp-date__day { font-size: 52px; font-weight: 700; }

.hp-tcard__body {
	display: flex;
	flex: 999 1 300px;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.hp .hp-tcard__title {
	margin: 0;
	font-family: var(--hp-font-display);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.05;
}

.hp-tcard__title a,
.hp-tcard__title a:visited { color: var(--hp-blue); text-decoration: none; }
.hp-tcard__title a:hover { text-decoration: underline; }

.hp-tcard__meta { color: var(--hp-muted); font-weight: 500; }

.hp-badge {
	align-self: flex-start;
	padding: 3px 12px;
	background: var(--hp-blue);
	border-radius: 999px;
	color: var(--hp-cream);
	font-size: 14px;
	font-weight: 600;
}

.hp-tcard__side {
	display: flex;
	flex: 1 1 220px;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.hp-seats { width: 100%; }

.hp-seats__label {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
	color: var(--hp-muted);
	font-size: 15px;
	font-weight: 500;
}

.hp-seats__bar {
	display: block;
	height: 8px;
	overflow: hidden;
	background: var(--hp-line);
	border-radius: 4px;
}

.hp-seats__bar > span {
	display: block;
	min-width: 4px;
	height: 100%;
	background: var(--hp-blue);
}

.hp-seats--full .hp-seats__bar > span { background: var(--hp-red); }

/* ---------- Tournaments page ---------- */

.hp .hp-h1 {
	margin: 0;
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: clamp(40px, 6vw, 64px);
	font-weight: 700;
	line-height: .95;
	text-transform: uppercase;
}

.hp-tournaments {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hp-page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
}

.hp-switch {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: var(--hp-line);
	border-radius: 8px;
}

.hp-switch__item,
.hp-switch__item:visited {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 16px;
	border-radius: var(--hp-radius-small);
	color: var(--hp-blue);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.hp-switch__item:hover {
	background: rgba(255, 255, 255, .5);
	color: var(--hp-blue);
	text-decoration: none;
}

.hp-switch__item[aria-current="page"] {
	background: var(--hp-blue);
	color: var(--hp-cream);
}

.hp-tlist {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hp-tcard--row {
	padding: 20px 24px;
}

.hp-tcard--row .hp-date {
	width: 84px;
	padding: 10px 0;
}

.hp-tcard--row .hp-date__small { font-size: 16px; }
.hp-tcard--row .hp-date__day { font-size: 44px; }

.hp .hp-tcard--row .hp-tcard__title { font-size: 28px; }

.hp-tcard__titlerow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

.hp-tcard__titlerow .hp-badge {
	align-self: center;
}

.hp-tag {
	padding: 2px 10px;
	border: 1px solid var(--hp-grey);
	border-radius: 999px;
	color: var(--hp-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.hp-tcard__note {
	color: var(--hp-ink);
}

.hp-tcard__winner {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--hp-ink);
	font-weight: 500;
}

.hp-tcard__winner svg {
	flex: none;
	color: var(--hp-red);
}

.hp-tcard__status {
	color: var(--hp-muted);
	font-size: 15px;
	font-weight: 600;
}

.hp-tcard--signed-up {
	border: 2px solid var(--hp-blue);
	padding: 19px 23px;
}

.hp-tcard--signed-up .hp-date {
	background: var(--hp-blue);
}

.hp-tcard--full {
	background: #EDE3CD;
}

.hp-tcard--completed {
	background: #EDE3CD;
}

.hp-tcard--completed .hp-date {
	background: var(--hp-muted);
}

.hp-tcard--completed .hp-tcard__side {
	flex: 0 0 auto;
	align-items: flex-end;
}

.hp-btn--outline,
.hp-btn--outline:visited {
	border-color: var(--hp-blue);
	background: transparent;
	color: var(--hp-blue);
}

.hp-btn--outline:hover {
	background: var(--hp-blue);
	color: var(--hp-cream);
}

.hp-tlist__hint {
	color: var(--hp-muted);
}

.hp-tlist__hint a,
.hp-tlist__hint a:visited {
	color: var(--hp-red);
	font-weight: 600;
}

.hp-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-pagination a,
.hp-pagination a:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius-small);
	color: var(--hp-blue);
	font-weight: 600;
	text-decoration: none;
}

.hp-pagination a:hover {
	border-color: var(--hp-blue);
}

/* The blog uses the old .nav.paginator markup: beat its inline-block, margin and gradient */
.hp-pagination .nav > li > a.paginator__item {
	display: inline-flex;
	margin: 0;
	background-image: none;
}

.hp-pagination .paginator { margin: 0; }

.hp-pagination .pagination--active a,
.hp-pagination a.selected {
	background: var(--hp-blue);
	border-color: var(--hp-blue);
	color: var(--hp-cream);
}

@media (max-width: 640px) {
	.hp-tcard--row {
		align-items: flex-start;
		gap: 16px;
		padding: 16px;
	}

	.hp-tcard--row .hp-tcard__side .hp-btn {
		align-self: stretch;
	}

	.hp-tcard--signed-up {
		padding: 15px;
	}

	.hp-tcard--row .hp-date {
		width: 64px;
		padding: 8px 0;
	}

	.hp-tcard--row .hp-date__small { font-size: 14px; }
	.hp-tcard--row .hp-date__day { font-size: 34px; }

	.hp .hp-tcard--row .hp-tcard__title { font-size: 24px; }

	/* Date card and title side by side, the rest full width */
	.hp-tcard--row .hp-tcard__body {
		flex: 1 1 0;
	}

	.hp-tcard--row .hp-tcard__side {
		flex: 1 1 100%;
	}

	.hp-tcard--completed .hp-tcard__side {
		align-items: flex-start;
	}
}

/* ---------- One tournament ---------- */

.hp-tournament {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hp-thero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
	padding: 28px;
	background: var(--hp-blue);
	border-bottom: 8px solid var(--hp-grey);
	border-radius: var(--hp-radius);
	color: var(--hp-cream);
}

.hp-date--large {
	width: 112px;
	padding: 14px 0;
}

.hp-date--large .hp-date__small { font-size: 20px; }
.hp-date--large .hp-date__day { font-size: 64px; }

.hp-thero--completed .hp-date { background: var(--hp-muted); }

.hp-thero__body {
	display: flex;
	flex: 999 1 320px;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.hp .hp-thero__title {
	color: var(--hp-cream);
	font-size: clamp(36px, 5vw, 56px);
	overflow-wrap: break-word;
	hyphens: auto;
}

.hp-thero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hp-tag--light {
	border-color: var(--hp-grey);
	color: var(--hp-cream-soft);
}

.hp-badge--light {
	align-self: center;
	background: var(--hp-cream);
	color: var(--hp-blue);
}

.hp-thero__action {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 8px;
}

.hp-thero__action .hp-btn--blue,
.hp-thero__action .hp-btn--blue:visited {
	background: var(--hp-red);
	border-color: var(--hp-red);
	color: #fff;
	min-height: 52px;
	padding: 13px 28px;
	font-size: 18px;
}

.hp-thero__action .hp-btn--blue:hover {
	background: var(--hp-red-dark);
	border-color: var(--hp-red-dark);
}

.hp-thero__action .hp-btn--outline,
.hp-thero__action .hp-btn--outline:visited {
	border-color: var(--hp-cream);
	color: var(--hp-cream);
}

.hp-thero__action .hp-btn--outline:hover {
	background: var(--hp-cream);
	color: var(--hp-blue);
}

.hp-thero__action .hp-tcard__status {
	color: var(--hp-cream-soft);
}

.hp-notices {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hp .hp-notice {
	padding: 14px 18px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: 8px;
}

.hp .hp-notice--highlight {
	border: 1px dashed var(--hp-red);
	color: var(--hp-red-dark);
	font-weight: 600;
}

.hp .hp-notice--warning {
	background: #FBE9E7;
	border-color: var(--hp-red);
	color: var(--hp-red-dark);
}

.hp-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
	gap: 14px;
	margin: 0;
}

.hp-facts__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius);
}

.hp-facts__item--wide {
	grid-column: span 2;
}

.hp-facts dt {
	color: var(--hp-muted);
	font-family: var(--hp-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.hp-facts dd {
	margin: 0;
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
}

.hp-facts dd .hp-seats {
	margin-top: 6px;
	font-family: var(--hp-font);
}

.hp-prose {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.65;
}

.hp-prose a,
.hp-prose a:visited {
	color: var(--hp-red);
}

@media (max-width: 640px) {
	.hp-thero {
		align-items: flex-start;
		padding: 20px;
	}

	.hp-thero {
		gap: 16px 18px;
	}

	.hp-date--large {
		width: 64px;
		padding: 8px 0;
	}

	.hp-date--large .hp-date__small { font-size: 14px; }
	.hp-date--large .hp-date__day { font-size: 34px; }

	.hp-thero__body {
		flex: 1 1 0;
	}

	.hp .hp-thero__title {
		font-size: 28px;
		line-height: 1;
	}

	.hp-thero__action {
		flex: 1 1 100%;
	}

	.hp-thero__action .hp-btn {
		width: 100%;
	}

	.hp-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hp-facts dd {
		font-size: 26px;
	}
}

/* ---------- Blog posts ---------- */

.hp-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 20px;
}

.hp-post {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius);
}

.hp-post__meta {
	color: var(--hp-muted);
	font-family: var(--hp-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.hp .hp-post__title {
	margin: 0;
	font-family: var(--hp-font-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.05;
}

.hp-post__title a,
.hp-post__title a:visited { color: var(--hp-blue); text-decoration: none; }
.hp-post__title a:hover { text-decoration: underline; }

.hp-post__text {
	color: var(--hp-muted);
	font-size: 16px;
}

.hp-post__more,
.hp-post__more:visited {
	margin-top: auto;
	color: var(--hp-red);
	font-weight: 600;
}

.hp-post--dark {
	background: var(--hp-blue);
	border-color: var(--hp-blue);
}

.hp-post--dark .hp-post__meta { color: var(--hp-muted-light); }
.hp-post--dark .hp-post__title a,
.hp-post--dark .hp-post__title a:visited { color: var(--hp-cream); }
.hp-post--dark .hp-post__text { color: var(--hp-cream-soft); }
.hp-post--dark .hp-post__more,
.hp-post--dark .hp-post__more:visited { color: var(--hp-cream); }

/* ---------- Membership steps ---------- */

.hp-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-step {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 16px;
	border-top: 4px solid var(--hp-blue);
}

.hp-step__num {
	color: var(--hp-red);
	font-family: var(--hp-font-display);
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
}

.hp-step__title {
	color: var(--hp-blue);
	font-size: 20px;
}

/* ---------- Venue ---------- */

.hp-venue__photo {
	display: block;
	width: 100%;
	height: auto;
	min-height: 220px;
	aspect-ratio: 1600 / 450;
	object-fit: cover;
	border-bottom: 8px solid var(--hp-grey);
	border-radius: var(--hp-radius);
}

.hp-venue__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	align-items: start;
	gap: 24px 48px;
}

.hp-venue__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.hp-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 8px 0 0;
	list-style: none;
}

.hp-list li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hp-list li::before {
	content: '';
	flex: none;
	width: 10px;
	height: 10px;
	background: var(--hp-red);
	transform: rotate(45deg);
}

/* ---------- Ranking strip ---------- */

.hp-ranking {
	margin-top: 64px;
	background: var(--hp-ink);
	color: var(--hp-cream);
}

.hp-ranking__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	padding-top: 40px;
	padding-bottom: 40px;
}

.hp .hp-ranking__title {
	margin: 0 0 4px;
	color: var(--hp-cream);
	font-family: var(--hp-font-display);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
}

.hp-ranking__text { color: #C9C2B4; }
.hp-ranking__text a,
.hp-ranking__text a:visited { color: var(--hp-cream); }

/* ---------- Rankings page ---------- */

.hp-rankings {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hp-empty a,
.hp-empty a:visited {
	color: var(--hp-red);
	font-weight: 600;
}

.hp-rankings__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.hp-rankings__note {
	flex: 1 1 280px;
	color: var(--hp-muted);
	font-size: 15px;
}

.hp-rankings__note a,
.hp-rankings__note a:visited {
	color: var(--hp-red);
	font-weight: 600;
}

/* Radio buttons styled as the segmented switch */
.hp-switch__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hp label.hp-switch__item {
	margin: 0;
	cursor: pointer;
}

.hp-switch__radio:checked + .hp-switch__item {
	background: var(--hp-blue);
	color: var(--hp-cream);
}

.hp-switch__radio:focus-visible + .hp-switch__item {
	outline: 3px solid var(--hp-red);
	outline-offset: 2px;
}

.hp-rankings__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 760px;
}

.hp-rankings__list[hidden] { display: none; }

.hp .hp-ranklist {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius);
	list-style: none;
}

.hp-ranklist__row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 20px;
	border-top: 1px solid var(--hp-line);
}

.hp-ranklist__row:first-child { border-top: 0; }

.hp-ranklist__place {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.hp-ranklist__row--podium .hp-ranklist__place {
	background: var(--hp-blue);
	color: var(--hp-cream);
}

.hp-ranklist__row--1 .hp-ranklist__place { background: var(--hp-red); color: #fff; }

.hp-ranklist__name {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 10px;
	min-width: 0;
	color: var(--hp-ink);
	font-size: 18px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.hp-ranklist__name .hp-badge { align-self: center; }

.hp-ranklist__name small,
.hp-ranklist__points small {
	display: block;
	width: 100%;
	color: var(--hp-muted);
	font-family: var(--hp-font);
	font-size: 14px;
	font-weight: 500;
}

.hp-ranklist__points {
	flex: none;
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	text-align: right;
}

.hp-ranklist__points small {
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 12px;
}

.hp-ranklist__row--me {
	background: #F7EBD0;
	box-shadow: inset 4px 0 0 var(--hp-red);
}

.hp-ranklist--me .hp-ranklist__place {
	background: var(--hp-red);
	color: #fff;
	font-size: 18px;
}

@media (max-width: 640px) {
	.hp-ranklist__row {
		gap: 12px;
		padding: 12px 14px;
	}

	.hp-ranklist__place {
		width: 36px;
		height: 36px;
		font-size: 22px;
	}

	.hp-ranklist__name { font-size: 17px; }
	.hp-ranklist__points { font-size: 26px; }
}

/* ---------- News and blog: lists ---------- */

.hp-entries {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hp-entrylist {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 960px;
}

.hp-entry {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	overflow: hidden;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius);
}

.hp-entry--noimage { grid-template-columns: minmax(0, 1fr); }

.hp-entry__image {
	display: block;
	min-height: 100%;
	background: var(--hp-blue);
}

.hp-entry__image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 200px;
	max-height: 260px;
	object-fit: cover;
}

.hp-entry__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px 28px;
	min-width: 0;
}

.hp-entry .hp-post__title { font-size: 28px; }

.hp-entry__links {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 20px;
	margin-top: auto;
}

.hp-entry__comments,
.hp-entry__comments:visited {
	color: var(--hp-muted);
	font-size: 15px;
}

@media (max-width: 640px) {
	.hp-entry { grid-template-columns: minmax(0, 1fr); }
	.hp-entry__image img { min-height: 0; max-height: 220px; aspect-ratio: 16 / 9; }
	.hp-entry__body { padding: 18px 18px 20px; }
	.hp-entry .hp-post__title { font-size: 24px; }
}

/* Tag filter: checkboxes styled as chips */
.hp-tagfilter fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.hp-tagfilter__legend {
	margin-bottom: 8px;
	padding: 0;
	color: var(--hp-muted);
	font-family: var(--hp-font-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.hp .hp-tagfilter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-tagfilter__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hp label.hp-tagfilter__chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	margin: 0;
	padding: 6px 16px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: 999px;
	color: var(--hp-blue);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.hp label.hp-tagfilter__chip:hover { border-color: var(--hp-blue); }

.hp-tagfilter__input:checked + .hp-tagfilter__chip {
	background: var(--hp-blue);
	border-color: var(--hp-blue);
	color: var(--hp-cream);
}

.hp-tagfilter__input:checked + .hp-tagfilter__chip::after {
	content: '×';
	margin-left: 8px;
	font-size: 18px;
	line-height: 1;
}

.hp-tagfilter__input:focus-visible + .hp-tagfilter__chip {
	outline: 3px solid var(--hp-red);
	outline-offset: 2px;
}

/* ---------- News and blog: one article ---------- */

.hp-article {
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-width: 760px;
}

.hp-article__head {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hp .hp-article__title {
	font-size: clamp(36px, 5.5vw, 56px);
	line-height: 1;
	overflow-wrap: break-word;
	hyphens: auto;
}

.hp-article__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hp-radius);
}

/* Text pasted from Word brings its own fonts and sizes: use ours */
.hp-article__body p,
.hp-article__body span,
.hp-article__body div,
.hp-article__body li {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

.hp-article__body p { margin: 0 0 1em !important; }
.hp-article__body > :last-child { margin-bottom: 0 !important; }

.hp-article__body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--hp-radius-small);
}

.hp-article__body h2,
.hp-article__body h3 {
	margin: 1.4em 0 .4em;
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-weight: 700;
	line-height: 1.1;
}

.hp-article__body h2 { font-size: 32px; }
.hp-article__body h3 { font-size: 26px; }

.hp-article__body table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.hp-article__back a,
.hp-article__back a:visited {
	color: var(--hp-red);
	font-weight: 600;
}

/* ---------- Info pages (editable pages) ---------- */

/* The page's own <h1> from the admin gets the same look as .hp-h1 */
.hp-infopage .hp-article__body > h1:first-child,
.hp-infopage .hp-article__body > .admin-shortcut--area > h1:first-child {
	margin: 0 0 28px !important;
	color: var(--hp-blue);
	font-family: var(--hp-font-display) !important;
	font-size: clamp(36px, 5.5vw, 56px) !important;
	font-weight: 700;
	line-height: 1 !important;
	text-transform: uppercase;
	overflow-wrap: break-word;
	hyphens: auto;
}

.hp-article__body strong,
.hp-article__body b {
	color: var(--hp-ink);
	font-weight: 600;
}

/* Embedded maps and videos fill the column */
.hp-article__body iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 320px;
	border: 0 !important;
	border-radius: var(--hp-radius);
}

.hp-article__body ul,
.hp-article__body ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

.hp-article__body table {
	border-collapse: collapse;
}

.hp-article__body td,
.hp-article__body th {
	padding: 8px 12px;
	border: 1px solid var(--hp-line);
	text-align: left;
	vertical-align: top;
}

.hp-article__body th {
	background: var(--hp-cream-soft);
}

/* ---------- Blog comments ---------- */

.hp-comments {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 28px;
	border-top: 1px solid var(--hp-line);
}

.hp .hp-comments__title {
	margin: 0;
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
}

.hp .hp-comments__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-comment {
	padding: 18px 20px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius);
}

.hp-comment__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin-bottom: 6px !important;
}

.hp-comment__head span {
	color: var(--hp-muted);
	font-size: 15px;
}

.hp-comment__answer {
	margin-top: 12px;
	padding: 12px 16px;
	background: var(--hp-cream);
	border-left: 4px solid var(--hp-red);
	border-radius: var(--hp-radius-small);
}

.hp-commentform {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hp-commentform__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
}

.hp-commentform__row .hp-field { flex: 1 1 220px; }

.hp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.hp-field__label {
	color: var(--hp-ink);
	font-size: 15px;
	font-weight: 600;
}

.hp .hp-input {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #C9BCA2;
	border-radius: var(--hp-radius-small);
	color: var(--hp-ink);
	font-family: var(--hp-font);
	font-size: 17px;
	line-height: 1.4;
}

.hp .hp-input:focus {
	border-color: var(--hp-blue);
	outline: 2px solid var(--hp-blue);
	outline-offset: 0;
}

.hp textarea.hp-input { resize: vertical; }

.hp-alert {
	padding: 12px 16px;
	border-radius: var(--hp-radius-small);
	font-weight: 600;
}

.hp-alert--error {
	background: #F6DCD9;
	border: 1px solid var(--hp-red);
	color: var(--hp-red-dark);
}

/* ---------- Form pages: contact and membership ---------- */

.hp-formpage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 32px 48px;
}

.hp-formpage__intro {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.hp-formpage__intro .hp-article__body > .admin-shortcut--area > h1:first-child {
	margin-bottom: 20px !important;
}

.hp-formpage__lead {
	color: var(--hp-blue);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
}

/* Desktop: text and steps on the left, form on the right. Mobile: text, form, steps */
.hp-formpage--retail { grid-template-rows: auto 1fr; }
.hp-formpage--retail .hp-formpage__intro { grid-column: 1; grid-row: 1; }
.hp-formpage--retail .hp-formcard { grid-column: 2; grid-row: 1 / span 2; }
.hp-formpage--retail .hp-formpage__aside { grid-column: 1; grid-row: 2; }

.hp-formcard {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 28px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-top: 6px solid var(--hp-red);
	border-radius: var(--hp-radius);
}

.hp .hp-formcard__title {
	margin: 0 0 4px;
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
}

.hp-fieldrow {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 16px;
}

.hp-field__optional {
	color: var(--hp-muted);
	font-weight: 400;
}

.hp .hp-input[readonly] {
	background: var(--hp-cream);
	color: var(--hp-muted);
}

/* The old theme styles all inputs; make sure ours win */
.hp input.hp-input,
.hp textarea.hp-input {
	box-shadow: none;
	background-clip: padding-box;
}

.hp-formcard .hp-btn { min-width: 180px; }

/* Steps in one column next to the form */
.hp-steps--compact {
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

.hp-steps--compact .hp-step {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	column-gap: 14px;
	row-gap: 2px;
	padding-top: 14px;
	border-top-width: 3px;
}

.hp-steps--compact .hp-step__num {
	grid-row: span 2;
	font-size: 44px;
}

.hp-steps--compact .hp-step__title { font-size: 18px; }

@media (max-width: 860px) {
	.hp-formpage { grid-template-columns: minmax(0, 1fr); }

	.hp-formpage--retail { grid-template-rows: none; }

	.hp-formpage--retail .hp-formpage__intro,
	.hp-formpage--retail .hp-formcard,
	.hp-formpage--retail .hp-formpage__aside {
		grid-column: auto;
		grid-row: auto;
	}
	.hp-formcard { padding: 22px 18px; }
}

/* ---------- Thank-you page ---------- */

.hp-sent {
	display: flex;
	justify-content: center;
	padding: 24px 0;
}

.hp-sent__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 620px;
	padding: 40px 32px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius);
	text-align: center;
}

.hp-sent__card .hp-h1 { font-size: clamp(34px, 5vw, 48px); }

.hp-sent__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: var(--hp-blue);
	border-radius: 50%;
	color: var(--hp-cream);
}

.hp-sent__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 8px;
}

/* ---------- Shared bits for forms and alerts ---------- */

.hp-alert--success {
	background: #E3ECF5;
	border: 1px solid var(--hp-blue);
	color: var(--hp-blue);
}

.hp-field__help {
	color: var(--hp-muted);
	font-size: 14px;
}

.hp-field--short { max-width: 260px; }

.hp-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 16px;
	cursor: pointer;
}

/* The old theme hides real checkboxes (display: none) and draws its own */
.hp .hp-check input {
	display: inline-block;
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--hp-blue);
}

.hp-btn--block { width: 100%; }

.hp .hp-table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.hp .hp-table th,
.hp .hp-table td {
	padding: 10px 8px;
	border-bottom: 1px solid var(--hp-line);
	text-align: left;
}

.hp .hp-table thead th {
	border-bottom: 2px solid var(--hp-blue);
	color: var(--hp-muted);
	font-size: 14px;
	font-weight: 600;
}

.hp .hp-table .is-num { text-align: right; white-space: nowrap; }

.hp-yes { color: var(--hp-blue); font-weight: 700; }

/* ---------- Login ---------- */

.hp-login {
	display: grid;
	grid-template-columns: minmax(0, 480px) minmax(0, 360px);
	justify-content: center;
	align-items: start;
	gap: 24px;
	padding: 8px 0 24px;
}

.hp-login__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-top: 6px solid var(--hp-red);
	border-radius: var(--hp-radius);
}

.hp-login__card .hp-h1 { font-size: clamp(36px, 5vw, 48px); }

.hp-login__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hp-login__forgot {
	padding-top: 16px;
	border-top: 1px solid var(--hp-line);
}

.hp-login__forgot summary {
	color: var(--hp-red);
	font-weight: 600;
	cursor: pointer;
}

.hp-login__forgot[open] summary { margin-bottom: 12px; }
.hp-login__forgot .hp-muted { margin-bottom: 12px; }
.hp-login__forgot .hp-alert { margin-bottom: 12px; }

.hp-login__join {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 28px;
	background: var(--hp-blue);
	border-bottom: 8px solid var(--hp-grey);
	border-radius: var(--hp-radius);
	color: var(--hp-cream-soft);
}

.hp .hp-login__join .hp-formcard__title { color: var(--hp-cream); }

@media (max-width: 860px) {
	.hp-login { grid-template-columns: minmax(0, 1fr); }
	.hp-login__card { padding: 24px 18px; }
}

/* ---------- Mina sidor ---------- */

.hp-account {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hp-account__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hp .hp-accountnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0 0 10px;
	list-style: none;
	border-bottom: 1px solid var(--hp-line);
}

.hp-accountnav li { flex: none; }

.hp-accountnav__link,
.hp-accountnav__link:visited {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 14px;
	border-radius: 999px;
	color: var(--hp-blue);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.hp-accountnav__link:hover {
	background: var(--hp-cream-soft);
	color: var(--hp-blue);
	text-decoration: none;
}

.hp-accountnav__link[aria-current="page"] {
	background: var(--hp-blue);
	color: var(--hp-cream);
}

.hp-accountnav__link--logout,
.hp-accountnav__link--logout:visited { color: var(--hp-red); }

.hp-account__form { max-width: 640px; }

.hp-account__cols {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	align-items: start;
	gap: 24px 40px;
}

@media (max-width: 860px) {
	.hp-account__cols { grid-template-columns: minmax(0, 1fr); }
}

/* Membership status */
.hp-membership {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 32px;
	max-width: 860px;
	padding: 24px 28px;
	background: var(--hp-blue);
	border-bottom: 8px solid var(--hp-grey);
	border-radius: var(--hp-radius);
	color: var(--hp-cream-soft);
}

.hp-membership__label {
	color: var(--hp-muted-light);
	font-family: var(--hp-font-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.hp-membership__status {
	color: var(--hp-cream);
	font-family: var(--hp-font-display);
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.hp-membership__text strong { color: var(--hp-cream); }

.hp-membership--inactive { border-bottom-color: var(--hp-red); }

/* Link cards on the overview */
.hp-accountcards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 14px;
	max-width: 860px;
}

.hp-accountcard,
.hp-accountcard:visited {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius);
	color: var(--hp-ink);
	text-decoration: none;
	transition: border-color .15s;
}

.hp-accountcard:hover {
	border-color: var(--hp-blue);
	text-decoration: none;
}

.hp-accountcard__title {
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
}

.hp-accountcard .hp-muted { font-size: 15px; }

/* Recruit */
.hp-refer__bonus {
	padding: 12px 16px;
	background: var(--hp-cream);
	border-left: 4px solid var(--hp-red);
	border-radius: var(--hp-radius-small);
}

.hp-copy {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
}

.hp-copy > .hp-input,
.hp-copy > .hp-field { flex: 1 1 240px; min-width: 0; }

.hp .hp-copy .hp-input[readonly] {
	background: #fff;
	color: var(--hp-ink);
	font-size: 15px;
}

/* Tournament history: same markup as before, new colours */
.hp .thist {
	--ink: var(--hp-ink);
	--muted: var(--hp-muted);
	--line: var(--hp-line);
	--paper: var(--hp-paper);
	--gold: var(--hp-red);
	--gold-ink: var(--hp-red-dark);
	--chip: var(--hp-cream-soft);
	max-width: 860px;
	padding: 8px 20px 12px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius);
}

.thist__count {
	padding: 10px 4px;
	color: var(--hp-muted);
	font-family: var(--hp-font-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.thist-colhead,
.thist-row {
	display: grid;
	grid-template-columns: 4.4rem minmax(0, 1fr) 6.5rem 5rem 5.5rem;
	gap: .9rem;
	align-items: center;
}

.thist-colhead {
	padding: .55rem .25rem;
	border-top: 2px solid var(--hp-blue);
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.thist-colhead span:nth-child(n+3),
.thist-row > span:nth-child(n+4) { text-align: right; }

.thist-row,
.thist-row:visited {
	padding: .7rem .25rem;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

.thist-row:last-child { border-bottom: 0; }

.thist-row:hover,
.thist-row:focus-visible {
	background: var(--hp-cream);
	color: var(--ink);
	text-decoration: none;
	outline: none;
}

.thist-row:focus-visible { box-shadow: inset 0 0 0 2px var(--hp-blue); }

.thist-rank { display: inline-flex; align-items: center; gap: .35rem; }

.thist-rank__disc {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	background: var(--chip);
	border-radius: 50%;
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: 19px;
	font-weight: 700;
	line-height: 1;
}

.thist-rank__field { color: var(--muted); font-size: 13px; }

.thist-row--cash .thist-rank__disc { background: var(--hp-blue); color: var(--hp-cream); }
.thist-row--win .thist-rank__disc { background: var(--hp-red); color: #fff; }

.thist-name { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.thist-row:hover .thist-name { text-decoration: underline; text-underline-offset: 2px; }
.thist-date { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.thist-buyin,
.thist-prize { font-variant-numeric: tabular-nums; }
.thist-prize { color: var(--muted); }
.thist-prize--won { color: var(--hp-red); font-weight: 700; }

.thist-more { margin: 1rem 0 .5rem; }

.hp .thist-more__btn {
	min-height: 44px;
	padding: 8px 22px;
	background: transparent;
	border: 2px solid var(--hp-blue);
	border-radius: var(--hp-radius-small);
	color: var(--hp-blue);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.hp .thist-more__btn:hover { background: var(--hp-blue); color: var(--hp-cream); }
.hp .thist-more__btn[disabled] { opacity: .5; cursor: default; }

.thist-empty { padding: 1.25rem .25rem; color: var(--muted); }

@media (max-width: 560px) {
	.hp .thist { padding: 4px 12px 8px; }
	.thist-colhead { display: none; }

	.thist-row {
		grid-template-columns: 3.1rem 1fr auto;
		grid-template-areas:
			"rank name  prize"
			"rank date  buyin";
		gap: .2rem .9rem;
		padding: .8rem .25rem;
	}

	.thist-rank { grid-area: rank; align-self: center; }
	.thist-name { grid-area: name; }
	.thist-date { grid-area: date; }
	.thist-buyin { grid-area: buyin; text-align: right; }
	.thist-prize { grid-area: prize; text-align: right; }
	.thist-buyin::before { content: "Inköp "; color: var(--muted); font-size: 12px; }
}

/* Statistics: old markup from the LESS build, new colours */
.hp-stats .period-picker { max-width: 520px; margin: 0; }

.hp-stats .segmented {
	background: var(--hp-line);
	border-radius: 8px;
}

.hp-stats .segmented__item {
	color: var(--hp-blue);
	font-size: 15px;
}

.hp-stats .segmented__item.is-active {
	background: var(--hp-blue);
	color: var(--hp-cream);
}

.hp-stats .segmented__item:focus-visible { outline-color: var(--hp-red); }

.hp-stats .form-chart {
	margin: 0;
	padding: 24px;
	background: var(--hp-paper);
	border-color: var(--hp-line);
	border-radius: var(--hp-radius);
}

.hp-stats .form-chart .is-win { --form-color: var(--hp-red); }
.hp-stats .form-chart .is-itm { --form-color: var(--hp-blue); }
.hp-stats .form-chart .is-top { --form-color: #8E9DB3; }
.hp-stats .form-chart .is-out { --form-color: #D6CAB2; }

.hp .hp-stats .form-chart__heading,
.hp-stats .form-chart__heading {
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: 28px;
	font-weight: 700;
	text-transform: uppercase;
}

.hp-stats .form-chart__sub,
.hp-stats .form-chart__legend { color: var(--hp-muted); font-size: 15px; }

.hp-stats .form-chart__bar.is-selected::after { background: var(--hp-blue); }
.hp-stats .form-chart__bar.is-selected .form-chart__rank { color: var(--hp-blue); }

.hp-stats .form-chart__detail { background: var(--hp-cream); }
.hp-stats .form-chart__detail dt { color: var(--hp-muted); font-size: 13px; }
.hp-stats .form-chart__detail dd { color: var(--hp-blue); font-size: 18px; }

.hp-stats .stats-layout { max-width: none; }

.hp-stats .t-table-wrap {
	padding: 16px 20px;
	background: var(--hp-paper);
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius);
}

.hp-stats .t-table caption {
	padding-bottom: 8px;
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
}

.hp-stats .t-table th,
.hp-stats .t-table td { border-bottom-color: var(--hp-line); }

.hp-stats .t-table thead th {
	background: var(--hp-paper);
	border-bottom-color: var(--hp-blue);
	color: var(--hp-muted);
}

.hp-stats .t-table tbody tr:last-child th,
.hp-stats .t-table tbody tr:last-child td { border-bottom: 0; }

.hp-stats .t-table .is-positive { color: var(--hp-blue); font-weight: 700; }
.hp-stats .t-table .is-negative { color: var(--hp-red); font-weight: 700; }

.hp-stats .t-empty {
	padding: 24px;
	border: 1px dashed var(--hp-grey);
	border-radius: var(--hp-radius);
	color: var(--hp-muted);
}

.hp-stats .visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* ---------- Tournament popups (structure, entries/results) ---------- */

/* The popup is its own page in an iframe; body.hp-popup is its root */
body.hp-popup {
	background: var(--hp-paper);
	color: var(--hp-ink);
	font-family: var(--hp-font);
	font-size: 17px;
	line-height: 1.5;
}

.hp-popup .popup { padding: 32px; }

.hp-popup .popup__title {
	margin: 0 48px 6px 0;
	color: var(--hp-blue);
	font-family: var(--hp-font-display);
	font-size: clamp(28px, 6vw, 40px);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.hp-popup .popup__sub {
	margin: 0 0 20px;
	color: var(--hp-muted);
	font-family: var(--hp-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* Fact boxes: same look as on the tournament page */
.hp-popup .t-facts {
	gap: 0;
	margin: 20px 0;
	background: var(--hp-blue);
	border: 0;
	border-bottom: 6px solid var(--hp-grey);
	border-radius: var(--hp-radius);
}

.hp-popup .t-facts__item {
	padding: 16px 20px;
	background: transparent;
}

.hp-popup .t-facts__item + .t-facts__item { border-left: 1px solid var(--hp-blue-light); }

.hp-popup .t-facts dt {
	color: var(--hp-muted-light);
	font-family: var(--hp-font-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.hp-popup .t-facts dd {
	color: var(--hp-cream);
	font-family: var(--hp-font-display);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
}

.hp-popup .t-facts .t-facts__note {
	color: var(--hp-cream-soft);
	font-family: var(--hp-font);
	font-size: 15px !important;
	line-height: 1.4;
}

.hp-popup .popup__rule {
	margin: 0 0 12px;
	padding: 12px 16px;
	background: var(--hp-cream);
	border-left: 4px solid var(--hp-red);
	border-radius: var(--hp-radius-small);
	line-height: 1.5;
}

.hp-popup .popup__rule strong { color: var(--hp-blue); }

/* Tables */
.hp-popup .t-table-wrap { margin-top: 20px; }

.hp-popup .t-table th,
.hp-popup .t-table td {
	padding: 10px 10px;
	border-bottom-color: var(--hp-line);
}

.hp-popup .t-table thead th {
	background: var(--hp-paper);
	border-bottom: 2px solid var(--hp-blue);
	color: var(--hp-muted);
	font-family: var(--hp-font-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hp-popup .t-table tbody td:first-child { font-weight: 600; }

/* Prize places and "you" */
.hp-popup .t-table .is-itm td { background: #E3E8F0; }
.hp-popup .t-table .is-itm:first-child td { background: #F3DCD9; }
.hp-popup .t-table .is-itm td:last-child { color: var(--hp-blue); font-weight: 700; }
.hp-popup .t-table .is-me td { background: #F7EBD0; font-weight: 600; }
.hp-popup .t-table .is-me td:first-child { box-shadow: inset 4px 0 0 var(--hp-red); }
.hp-popup .t-table small { color: var(--hp-muted); }

/* Structure: rebuy levels and the addon break */
.hp-popup .t-table--structure .is-rebuy td:first-child { box-shadow: inset 4px 0 0 var(--hp-red); }
.hp-popup .popup__legend { background: var(--hp-red); }

.hp-popup .t-table__break td {
	padding: 8px;
	background: var(--hp-blue);
	color: var(--hp-cream);
	font-family: var(--hp-font-display);
	font-size: 15px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.hp-popup .popup__footnote {
	margin-top: 14px;
	color: var(--hp-muted);
	font-size: 14px;
}

@media (max-width: 640px) {
	.hp-popup .popup { padding: 60px 16px 24px; }
	.hp-popup .t-facts dd { font-size: 28px; }
	.hp-popup .t-table th,
	.hp-popup .t-table td { padding: 9px 6px; }
}

/* The frame around the popup on the tournament page */
html.hp-on .fancybox-tournament .fancybox-slide--iframe .fancybox-content {
	border-radius: var(--hp-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

html.hp-on .fancybox-tournament .fancybox-bg { background: var(--hp-blue); }
html.hp-on .fancybox-tournament.fancybox-is-open .fancybox-bg { opacity: .85; }

html.hp-on .fancybox-tournament .fancybox-close-small {
	top: 10px;
	right: 10px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: var(--hp-blue);
	border-radius: 50%;
	color: var(--hp-cream);
	opacity: 1;
}

html.hp-on .fancybox-tournament .fancybox-close-small:hover { background: var(--hp-red); color: #fff; }

@media (max-width: 860px) {
	html.hp-on .fancybox-tournament .fancybox-slide--iframe .fancybox-content {
		border-radius: 0;
		box-shadow: none;
	}
}

/* ---------- Footer ---------- */

.hp-footer {
	background: var(--hp-blue);
	color: var(--hp-cream);
}

.hp-footer .hp-wrap {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 32px;
}

.hp-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 40px;
}

.hp-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hp-footer__icon {
	display: block;
	width: 64px;
	height: auto;
}

.hp-footer .hp-footer__heading {
	display: block;
	margin: 0 0 4px;
	color: var(--hp-muted-light);
	font-family: var(--hp-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.hp-footer__link,
.hp-footer__link:visited,
.hp-footer__links a,
.hp-footer__links a:visited {
	color: var(--hp-cream);
}

.hp-footer__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
}

.hp-footer__links a { text-decoration: none; }
.hp-footer__links a:hover { text-decoration: underline; }

.hp-newsletter__row {
	display: flex;
	gap: 8px;
}

.hp-newsletter__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	padding: 10px 14px;
	background: var(--hp-blue-light);
	border: 1px solid var(--hp-grey);
	border-radius: var(--hp-radius-small);
	color: var(--hp-cream);
	font: inherit;
	font-size: 16px;
}

.hp-newsletter__input::placeholder { color: var(--hp-muted-light); }

.hp-newsletter__info {
	margin: 0;
	color: var(--hp-muted-light);
	font-size: 14px;
}

.hp-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 20px;
	border-top: 1px solid #3A4A63;
	color: var(--hp-muted-light);
	font-size: 15px;
}
