/*
  Project:  Idrottensspel.se
  Audience: Swedish adults comparing licensed casinos, plus club signups
  Tone:     Plain, local, responsible — sport-club warmth rather than a dark casino lobby
  Existing: Navy #274A72, green bar #A3DB9B, pink #D37CD2, cream #F5F5DC, pink script logo
  Brief:    One chrome for the public site and /klubb/. Club layout, homepage colors.
*/

/* Official header: logo left, action right (same structure as /klubb/) */
header#navbar {
	display: flex;
	position: sticky;
	top: 0;
	z-index: 100;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	height: auto !important;
	min-height: 0;
	max-height: none !important;
	overflow: visible;
	background: #274A72 !important;
}

body.page-template-landing-container header#navbar {
	height: auto !important;
	min-height: 142px !important;
	margin-top: 0 !important;
	padding: 0 !important;
}

header#navbar .header_menu {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	min-height: 56px;
	max-width: none;
	margin: 0;
	padding: 8px 16px;
	width: 100%;
	background: #274A72 !important;
}

header#navbar .header_menu.container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

header#navbar .header__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto;
	padding: 0;
}

header#navbar .header__logo a {
	display: flex;
	align-items: center;
	padding: 0;
}

header#navbar .header__logo img {
	width: auto;
	height: 40px;
	max-width: none;
	max-height: 40px;
	padding: 0;
	object-fit: contain;
	background: transparent !important;
}

.header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin-left: auto;
}

.header__actions .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.header__actions .menu a {
	color: #ffffff;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}

.header__club {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 999px;
	background: #D37CD2;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.header__club:hover,
.header__club:focus-visible {
	background: #274A72;
	color: #ffffff;
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.header_brands {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 100%;
	min-height: 54px;
	background: #A3DB9B !important;
}

.header__brand_list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 1170px;
	padding: 10px 16px 12px;
}

.header_brands .header__brands-list {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.header_brands .brands-list__item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: 128px;
	height: 36px;
	max-height: 36px;
	padding: 6px;
	border-radius: 18px;
}

.header_brands .brands-list__item::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: 18px;
	background: #FFFFFF;
	opacity: 0.2;
}

.header_brands .brands-list__link {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	height: 100%;
}

.header_brands .brands-list__link img {
	width: auto;
	height: 100%;
	max-width: 100%;
	max-height: 24px;
	padding: 0;
	object-fit: contain;
}

.header__legal {
	margin: 0;
	max-width: 42rem;
	color: #274A72 !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.header__legal a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* /klubb/ header painted with the homepage palette */
.landing__wrapper {
	background-color: #274A72 !important;
}

.header__btn_0 {
	background: #D37CD2 !important;
}

.header__btn_0 a span {
	color: #ffffff !important;
}

.header__btn_1 {
	background: #F5F5DC !important;
}

.header__btn_1 a span {
	color: #274A72 !important;
}

.landing__header_banner {
	background: #A3DB9B !important;
}

.banner__element {
	background: rgba(255, 255, 255, 0.72);
	box-shadow: none;
}

.banner__element:hover {
	transform: none;
}

.element__text,
.banner__disclaimer p,
.banner__disclaimer a {
	color: #274A72 !important;
}

.banner__disclaimer a {
	font-weight: 700;
	text-decoration: underline;
}

/* Footers: club order, homepage cream */
.footer {
	background-color: #F5F5DC;
	color: #274A72;
	padding: 40px 0 28px;
}

.footer__secure {
	display: inline-flex;
	align-items: center;
	margin: 8px auto 20px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #274A72;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
}

.footer__menu .menu,
.footer__menu ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 20px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.footer__menu a {
	color: #274A72;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.footer__menu a:hover,
.footer__menu a:focus-visible {
	text-decoration: underline;
}

.footer__copyright,
.footer .mb-2,
.footer .mb-2 a {
	color: #274A72;
}

.bestplaybonus_footer {
	background: #F5F5DC !important;
	color: #274A72;
	border-image: none;
	border-top: 1px solid #274A72;
}

.landing__secure,
.secure__box,
.secure__box p {
	color: #274A72 !important;
}

.secure__box {
	background-color: #ffffff !important;
}

.landing__menu div ul li a,
.landing__footer_copyright {
	color: #274A72 !important;
}

.landing__footer_logo {
	background: #274A72;
	border-radius: 12px;
}

.landing__menu_coopirighting {
	margin-top: 28px !important;
}

/* Homepage media sections: contained layouts without viewport-relative offsets. */
.challenge {
	overflow: hidden;
	padding: 48px 24px !important;
}

.challenge .challenge-block {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
	width: min(100%, 1170px);
	max-width: 1170px;
	min-height: 360px;
	margin: 0 auto;
	padding: 32px 48px !important;
}

.challenge .challenge-image,
.challenge .challenge-content {
	width: 100%;
	max-width: none;
}

.challenge .challenge-image {
	display: flex;
	align-items: center;
	justify-content: center;
	transform: none !important;
}

.challenge .challenge-image img {
	display: block;
	width: min(100%, 520px);
	height: auto;
	max-height: 420px;
	margin: 0 !important;
	object-fit: contain;
}

.challenge .challenge-content {
	padding: 0 !important;
}

.exchange {
	overflow: hidden;
	padding: 48px 24px !important;
}

.exchange .exchange__content {
	position: relative;
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 480px);
	grid-template-areas:
		"icon image"
		"title image"
		"link image";
	align-items: center;
	column-gap: clamp(32px, 6vw, 80px);
	width: min(100%, 1170px);
	max-width: 1170px;
	min-height: 400px;
	margin: 0 auto;
	padding: 48px 60px !important;
}

.exchange .exchange__icon {
	grid-area: icon;
	align-self: end;
	margin: 0;
}

.exchange .exchange__title {
	grid-area: title;
	margin: 12px 0 24px;
}

.exchange .exchange__link {
	grid-area: link;
	align-self: start;
	justify-self: start;
	margin: 0;
}

.exchange .exchange__image {
	position: static !important;
	grid-area: image;
	align-self: center;
	justify-self: end;
	display: block;
	width: 100%;
	height: auto;
	max-width: 480px;
	max-height: 390px;
	margin: 0 !important;
	object-fit: contain;
	transform: none !important;
}

.footer p.footer__secure {
	color: #FFFFFF !important;
}

/* Unified /klubb/ surface system.
   Dark media cards remain, but page-sized dark/purple bands do not. */
.page-template-landing-container {
	--ids-navy: #274A72;
	--ids-navy-deep: #193651;
	--ids-cream: #F5F5DC;
	--ids-green: #A3DB9B;
	--ids-pink: #D37CD2;
	--ids-sky: #D2ECFF;
	--ids-paper: #FFFEF7;
	--ids-muted: #526B82;
	background: var(--ids-cream);
}

.page-template-landing-container .landing__hero,
.page-template-landing-container .landing__bonuses_feed {
	background-image: none !important;
}

.page-template-landing-container .landing__hero {
	background: var(--ids-cream) !important;
	padding: 28px 16px 42px;
}

.page-template-landing-container .landing__hero > .landing__hero_container {
	max-width: 1152px;
	padding: 48px 40px;
	border-radius: 24px;
	background: linear-gradient(95.54deg, var(--ids-sky) 19.46%, #D9B9DA 109.44%);
}

.page-template-landing-container .landing__hero .hero__title {
	background: none !important;
	-webkit-text-fill-color: currentColor !important;
	color: var(--ids-navy) !important;
}

.page-template-landing-container .landing__hero .first-color {
	color: #A64CA5 !important;
}

.page-template-landing-container .landing__hero .header__subtitle,
.page-template-landing-container .landing__hero h3,
.page-template-landing-container .landing__hero p {
	color: var(--ids-navy) !important;
}

.page-template-landing-container .landing__hero .hero__badges_item,
.page-template-landing-container .landing__hero .hero__badge {
	background: rgba(255, 255, 255, 0.78) !important;
	color: var(--ids-navy) !important;
	border: 1px solid rgba(39, 74, 114, 0.18);
}

.page-template-landing-container .hero__input_block {
	background: rgba(255, 254, 247, 0.82) !important;
	border-color: rgba(39, 74, 114, 0.28) !important;
	box-shadow: none !important;
}

.page-template-landing-container .hero__phone_input {
	background: #FFFFFF !important;
	border-color: rgba(39, 74, 114, 0.42) !important;
	color: var(--ids-navy-deep) !important;
}

.page-template-landing-container .hero__input_btn {
	background: var(--ids-pink) !important;
	color: #FFFFFF !important;
	box-shadow: none !important;
}

.page-template-landing-container .hero__input_btn:hover,
.page-template-landing-container .hero__input_btn:focus-visible {
	background: var(--ids-navy) !important;
}

.page-template-landing-container .landing__exclusive_bonuses {
	background: var(--ids-paper) !important;
}

.page-template-landing-container .exclusive__bonus_title {
	background: none !important;
	-webkit-text-fill-color: currentColor !important;
	color: var(--ids-navy) !important;
}

.page-template-landing-container .exclusive__bonus_subtitle {
	color: var(--ids-muted) !important;
}

.page-template-landing-container .bonus__card {
	border-color: rgba(39, 74, 114, 0.35) !important;
	box-shadow: 0 10px 24px rgba(39, 74, 114, 0.12) !important;
}

.page-template-landing-container .landing__bonuses_feed {
	background: var(--ids-sky) !important;
}

.page-template-landing-container .feed__title {
	color: var(--ids-navy) !important;
}

.page-template-landing-container .feed__subtitle {
	color: var(--ids-muted) !important;
}

.page-template-landing-container .landing__bonuses_feed h3,
.page-template-landing-container .landing__bonuses_feed p {
	color: var(--ids-navy) !important;
}

.page-template-landing-container .feed__members {
	background: rgba(255, 255, 255, 0.76) !important;
	border-color: rgba(39, 74, 114, 0.3) !important;
}

.page-template-landing-container .feed__member {
	background: rgba(210, 236, 255, 0.72) !important;
}

.page-template-landing-container .image__member_wrapper,
.page-template-landing-container .guarantee__img_circle {
	background: var(--ids-navy) !important;
}

.page-template-landing-container .landing__whyus {
	background: var(--ids-cream) !important;
}

.page-template-landing-container .whyus__title {
	color: var(--ids-navy) !important;
}

.page-template-landing-container .whyus__subtitle,
.page-template-landing-container .feature__subtitle {
	color: var(--ids-muted) !important;
}

.page-template-landing-container .feature__title,
.page-template-landing-container .guaarantee__subtitle {
	color: var(--ids-navy) !important;
}

.page-template-landing-container .feature__icon,
.page-template-landing-container .whyus__icon {
	background: var(--ids-navy) !important;
}

.page-template-landing-container .landing__waiting_for {
	background: var(--ids-green) !important;
}

.page-template-landing-container .waitingfor__wrapper {
	background: var(--ids-paper) !important;
	border-color: rgba(39, 74, 114, 0.32) !important;
	box-shadow: none !important;
}

.page-template-landing-container .waitingfor__title,
.page-template-landing-container .waitingfor__subtitle,
.page-template-landing-container .landing__waiting_for p {
	color: var(--ids-navy) !important;
}

.page-template-landing-container .progress__bar,
.page-template-landing-container .progress-bar,
.page-template-landing-container .waitingfor__progress_bar {
	background: var(--ids-pink) !important;
}

.page-template-landing-container .waiting__spots_remaining {
	color: var(--ids-navy) !important;
}

/* 404 */
body:has(.page-404) {
	min-height: 100vh;
	background: #F5F5DC;
	display: flex;
	flex-direction: column;
}

.page-404 {
	flex: 1;
	background: #F5F5DC;
	padding: 48px 16px 72px;
}

.page-404__panel {
	max-width: 640px;
	margin: 0 auto;
	padding: 40px 28px 36px;
	background: linear-gradient(95.54deg, #D2ECFF 19.46%, #C9A5CC 109.44%);
	border-radius: 24px;
	color: #274A72;
}

.page-404__code {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.page-404 h1 {
	margin: 0 0 12px;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	color: #274A72;
}

.page-404__text {
	margin: 0 0 24px;
	max-width: 38rem;
	font-size: 1.05rem;
	line-height: 1.55;
}

.page-404__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.page-404__note {
	margin: 20px 0 0;
	font-size: 14px;
}

.page-404__note a {
	color: #274A72;
	font-weight: 700;
}

@media (max-width: 640px) {
	header#navbar .header_menu {
		flex-wrap: wrap;
	}

	.page-404__panel {
		padding: 28px 18px;
	}

	.page-template-landing-container .landing__hero {
		padding: 12px 10px 28px;
	}

	.page-template-landing-container .landing__hero > .landing__hero_container {
		padding: 28px 16px;
		border-radius: 20px;
	}

	.page-template-landing-container .mobile__block {
		width: 100%;
		padding: 0 !important;
	}

	.page-template-landing-container .mobile__block .hero__title {
		width: 100%;
		margin: 0;
		font-size: clamp(2rem, 10vw, 2.35rem) !important;
		line-height: 1.05;
		text-align: center;
	}

	.page-template-landing-container .mobile__block .first-color {
		margin-bottom: 7px;
	}

	.page-template-landing-container .mobile__block .second-color {
		margin-bottom: 30px;
	}

	.page-template-landing-container .mobile__title {
		margin: 0 0 10px;
		color: var(--ids-navy) !important;
		font-size: 1.125rem !important;
		line-height: 1.4;
		text-align: center;
	}

	.page-template-landing-container .mobile__subtitle {
		margin: 0;
		padding: 0 0 22px;
		color: var(--ids-muted) !important;
		font-size: 0.95rem !important;
		line-height: 1.55;
	}

	.page-template-landing-container .hero__input_mobile-block {
		width: 100%;
		max-width: 360px;
		padding: 22px 20px 18px;
		border: 1px solid rgba(39, 74, 114, 0.24);
		border-radius: 14px;
		background: rgba(255, 254, 247, 0.94);
	}

	.page-template-landing-container .mobile-signup-header {
		margin-bottom: 20px;
		text-align: left;
	}

	.page-template-landing-container .mobile-signup-header h3 {
		margin: 0 0 5px;
		color: var(--ids-navy) !important;
		font-size: 1.25rem;
		font-weight: 700;
		line-height: 1.25;
	}

	.page-template-landing-container .mobile-signup-header p {
		margin: 0;
		color: var(--ids-muted) !important;
		font-size: 0.85rem !important;
		line-height: 1.45;
	}

	.page-template-landing-container .mobile__phone_input {
		width: 100%;
		align-items: stretch;
		gap: 12px;
	}

	.page-template-landing-container .mobile-phone-label {
		align-self: flex-start;
		color: var(--ids-navy);
		font-size: 0.8rem;
		font-weight: 700;
		line-height: 1.3;
	}

	.page-template-landing-container .hero__mobile_input {
		min-height: 50px;
		padding-right: 14px !important;
		padding-left: 92px !important;
		border: 1px solid rgba(39, 74, 114, 0.38);
		background: #FFFFFF;
		color: var(--ids-navy-deep);
	}

	.page-template-landing-container .input-wrapper .iti {
		width: 100%;
	}

	.page-template-landing-container .input-wrapper .iti__selected-flag {
		padding: 0 10px 0 12px;
	}

	.page-template-landing-container .input-wrapper .iti__selected-dial-code {
		margin-left: 6px;
	}

	.page-template-landing-container .hero__mobile_input::placeholder {
		color: #6B7E90;
		opacity: 1;
	}

	.page-template-landing-container .mobile__phone_input-checkbox label {
		align-items: flex-start;
		gap: 10px;
		padding: 12px;
		border-radius: 8px;
		background: rgba(210, 236, 255, 0.48);
	}

	.page-template-landing-container .mobile__phone_input-checkbox label input {
		flex: 0 0 auto;
		width: 18px;
		height: 18px;
		margin-top: 4px;
	}

	.page-template-landing-container .mobile__phone_input-checkbox span,
	.page-template-landing-container .mobile__phone_input-checkbox p {
		margin: 0;
		color: var(--ids-navy) !important;
		font-size: 0.78rem !important;
		line-height: 1.5;
		text-align: left;
	}

	.page-template-landing-container .mobile__phone_input-checkbox a {
		color: var(--ids-navy);
		font-weight: 700;
		text-decoration: underline;
	}

	.page-template-landing-container .hero__mobile_input-btn {
		min-height: 50px;
		max-width: none;
		padding: 12px 16px;
		background: var(--ids-pink);
		color: #FFFFFF;
		font-size: 1rem;
	}

	.page-template-landing-container .hero__input_mobile-note {
		margin-top: 16px;
		padding-top: 14px;
		border-top: 1px solid rgba(39, 74, 114, 0.16);
	}

	.page-template-landing-container .hero__input_mobile-note span {
		color: var(--ids-muted);
		font-size: 0.78rem;
		line-height: 1.45;
	}

	.page-template-landing-container .amount__people_title {
		margin: 22px 0 12px;
		color: var(--ids-navy) !important;
		font-size: 0.875rem;
		line-height: 1.5;
	}

	.page-template-landing-container .mobile__block .me-2 {
		display: flex;
		float: none !important;
		justify-content: center;
		gap: 8px;
		margin: 0 !important;
	}

	.page-template-landing-container .mobile__block .circle.xlarge {
		width: 44px;
		height: 44px;
	}

	.page-template-landing-container .mobile__block .circle.xlarge img {
		padding: 2px;
		border: 2px solid #FFFFFF;
	}

	.page-template-landing-container .mobile__block .circle.xlarge:last-child {
		border-radius: 50%;
		background: var(--ids-navy);
	}

	.page-template-landing-container .amount__joined_people {
		color: #FFFFFF;
		font-size: 0.75rem;
	}

	.page-template-landing-container .landing__exclusive_bonuses {
		padding: 36px 12px;
		text-align: center;
	}

	.page-template-landing-container .landing__exclusive_bonuses > .landing__hero_container,
	.page-template-landing-container .landing__whyus > .landing__hero_container {
		width: 100%;
		padding: 0;
	}

	.page-template-landing-container .exclusive__bonuses {
		width: 100%;
		text-align: center;
	}

	.page-template-landing-container .exclusive__bonus_title-subtitle {
		margin: 0 0 24px;
		padding: 0;
	}

	.page-template-landing-container .exclusive__bonus_title {
		padding: 0;
		font-size: 1.85rem !important;
		line-height: 1.15;
	}

	.page-template-landing-container .exclusive__bonus_subtitle {
		margin: 10px auto 0;
		font-size: 0.95rem !important;
		line-height: 1.5;
	}

	.page-template-landing-container .exclusive__bonus_cards {
		width: 100%;
		gap: 24px;
		padding: 0;
		align-items: center;
	}

	.page-template-landing-container .exclusive__bonus_cards > div {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
	}

	.page-template-landing-container .bonus__card {
		width: 100%;
		max-width: 360px;
	}

	.page-template-landing-container .bestplaybonus-offer-text {
		width: 100%;
		max-width: 360px;
		margin: 9px auto 0;
		padding: 0 6px;
		text-align: center;
	}

	.page-template-landing-container .bestplaybonus-offer-text p,
	.page-template-landing-container .bestplaybonus-offer-text a {
		color: var(--ids-navy) !important;
		font-size: 0.6875rem !important;
		line-height: 1.45;
	}

	.page-template-landing-container .landing__whyus {
		padding: 36px 12px !important;
	}

	.page-template-landing-container .whyus__wrapper_mobile {
		padding: 0;
	}

	.page-template-landing-container .whyus__wrapper_mobile .mobile__guarantee_title {
		margin: 0;
		color: var(--ids-navy) !important;
		font-size: 1.25rem !important;
		line-height: 1.35;
	}

	.page-template-landing-container .mobile__guarantees_list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		margin: 20px 0;
		padding: 0 !important;
	}

	.page-template-landing-container .mobile__guarantee {
		width: auto;
		max-width: none;
		margin: 0;
		padding: 12px 8px;
		border: 1px solid rgba(39, 74, 114, 0.2);
		background: #FFFFFF;
	}

	.page-template-landing-container .mobile__guarantee img {
		max-width: 34px;
		margin: 0 auto 8px;
	}

	.page-template-landing-container .mobile__guarantee_wrapper .mob__guar_title,
	.page-template-landing-container .mobile__guarantee_wrapper .mob__guar_cont {
		color: var(--ids-navy) !important;
		line-height: 1.35;
	}

	.page-template-landing-container .whyus__wrapper_mobile .mobile__guarantee_subtitle {
		margin: 0;
		color: var(--ids-muted) !important;
		font-size: 0.875rem !important;
		line-height: 1.5;
	}

	.page-template-landing-container .landing__waiting_for {
		display: none !important;
	}

	.page-template-landing-container .bestplaybonus_footer {
		padding: 30px 12px 24px;
	}

	.page-template-landing-container .landing__footer_logos {
		flex-wrap: wrap;
		gap: 8px;
	}

	.page-template-landing-container .landing__footer_logo {
		max-width: 105px;
	}

	.challenge .challenge-block,
	.exchange .exchange__content {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 28px 20px !important;
	}

	.challenge .challenge-content {
		order: 1;
	}

	.challenge .challenge-image {
		order: 2;
	}

	.exchange .exchange__content {
		grid-template-areas:
			"icon"
			"title"
			"link"
			"image";
	}

	.exchange .exchange__image {
		justify-self: center;
		margin-top: 8px !important;
	}
}
