/* =========================================================
   DUGNAD HALL OF FAME
   ========================================================= */

.tosk-hof {
	position: relative;
	padding: 82px 0 94px;
	overflow: hidden;
	color: #eeeeea;
	background:
		radial-gradient(circle at 8% 11%, rgba(167, 25, 22, .10), transparent 28%),
		radial-gradient(circle at 90% 86%, rgba(214, 152, 65, .08), transparent 29%),
		#111618;
}

.tosk-hof::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px);
	background-size: 42px 42px;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 88%, transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 88%, transparent);
}

.tosk-hof .container {
	position: relative;
	z-index: 1;
}

.tosk-hof__intro {
	max-width: 790px;
	margin-bottom: 38px;
}

.tosk-hof__label,
.tosk-hof__panel-label {
	display: block;
	margin-bottom: 10px;
	color: #d69841;
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.tosk-hof__title {
	margin: 0;
	color: #fafaf6;
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 400;
	letter-spacing: -.04em;
	line-height: 1.04;
}

.tosk-hof__title strong {
	font-weight: 800;
}

.tosk-hof__lead {
	max-width: 720px;
	margin: 18px 0 0;
	color: rgba(238, 238, 234, .65);
	font-size: 15px;
	line-height: 1.78;
}

.tosk-hof__divider {
	width: 62px;
	height: 4px;
	margin-top: 25px;
	background: #a71916;
}


/* =========================================================
   FILTER
   ========================================================= */

.tosk-hof__filters {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px 20px;
	margin-bottom: 25px;
	padding: 25px;
	border: 1px solid rgba(255, 255, 255, .075);
	border-radius: 20px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .006)),
		#15191c;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .20);
}

.tosk-hof__filters > [class*="col-"] {
	width: 100%;
	max-width: none;
	margin: 0 !important;
	padding: 0;
	flex: none;
}

.tosk-hof__filters > .col-12 {
	grid-column: 1 / -1;
}

.tosk-hof__filters .row {
	margin-right: -7px;
	margin-left: -7px;
}

.tosk-hof__filters .row > [class*="col-"] {
	margin-bottom: 0 !important;
	padding-right: 7px;
	padding-left: 7px;
}

.tosk-hof__filter-label {
	display: block;
	margin: 0 0 8px;
	color: rgba(250, 250, 246, .78);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .035em;
}

.tosk-hof__select.form-control {
	height: 48px;
	padding: 0 42px 0 14px;
	border: 1px solid rgba(255, 255, 255, .11);
	border-radius: 10px;
	color: #eeeeea;
	background-color: rgba(5, 8, 9, .46);
	font-size: 13px;
	box-shadow: none;
}

.tosk-hof__select.form-control:focus {
	border-color: rgba(214, 152, 65, .60);
	background-color: rgba(5, 8, 9, .68);
	box-shadow: 0 0 0 3px rgba(214, 152, 65, .08);
}

.tosk-hof__select option {
	color: #eeeeea;
	background: #15191c;
}

.tosk-hof__filter-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	transition:
		transform .2s ease,
		border-color .2s ease,
		background-color .2s ease,
		color .2s ease;
}

.tosk-hof__filter-button:hover,
.tosk-hof__filter-button:focus-visible {
	transform: translateY(-1px);
}

.tosk-hof__filter-button--primary {
	border: 1px solid #a71916;
	color: #fff;
	background: #a71916;
}

.tosk-hof__filter-button--primary:hover,
.tosk-hof__filter-button--primary:focus-visible {
	border-color: #c32925;
	color: #fff;
	background: #c32925;
}

.tosk-hof__filter-button--secondary {
	border: 1px solid rgba(255, 255, 255, .13);
	color: rgba(250, 250, 246, .78);
	background: rgba(255, 255, 255, .035);
}

.tosk-hof__filter-button--secondary:hover,
.tosk-hof__filter-button--secondary:focus-visible {
	border-color: rgba(214, 152, 65, .42);
	color: #d69841;
	background: rgba(214, 152, 65, .06);
}


/* =========================================================
   PANELER OG TABELLER
   ========================================================= */

.tosk-hof__ranking,
.tosk-hof__details {
	margin-bottom: 25px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .075);
	border-radius: 21px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .004)),
		#15191c;
	box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
}

.tosk-hof__details {
	margin-bottom: 0;
}

.tosk-hof__panel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 27px;
	border-bottom: 1px solid rgba(255, 255, 255, .065);
}

.tosk-hof__panel-heading > i {
	color: rgba(214, 152, 65, .66);
	font-size: 22px;
}

.tosk-hof__panel-label {
	margin-bottom: 4px;
}

.tosk-hof__panel-title {
	margin: 0;
	color: #fafaf6;
	font-size: 21px;
	font-weight: 750;
	line-height: 1.25;
}

.tosk-hof__summary {
	padding: 15px 27px;
	border-bottom: 1px solid rgba(255, 255, 255, .055);
	color: rgba(238, 238, 234, .60);
	font-size: 13px;
	line-height: 1.6;
}

.tosk-hof__table-wrap {
	margin: 0;
}

.tosk-hof__table.table {
	width: 100% !important;
	margin: 0 !important;
	border: 0;
	color: rgba(238, 238, 234, .72);
	background: transparent;
	font-size: 13px;
}

.tosk-hof__table.table thead th {
	padding: 15px 18px;
	border-width: 0 0 1px;
	border-color: rgba(255, 255, 255, .075);
	color: rgba(250, 250, 246, .85);
	background: rgba(4, 6, 7, .22);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .07em;
	text-transform: uppercase;
	white-space: nowrap;
}

.tosk-hof__table.table tbody td {
	padding: 14px 18px;
	border-width: 0 0 1px;
	border-color: rgba(255, 255, 255, .052);
	color: rgba(238, 238, 234, .70);
	background: transparent;
	vertical-align: middle;
}

.tosk-hof__table.table tbody tr:last-child td {
	border-bottom: 0;
}

.tosk-hof__table.table tbody tr:hover td {
	background: rgba(255, 255, 255, .022);
}

#hallOfFameTabell tbody tr:nth-child(1) td {
	background: linear-gradient(90deg, rgba(214, 152, 65, .09), rgba(214, 152, 65, .015));
}

#hallOfFameTabell tbody tr:nth-child(2) td {
	background: linear-gradient(90deg, rgba(205, 211, 216, .065), rgba(205, 211, 216, .01));
}

#hallOfFameTabell tbody tr:nth-child(3) td {
	background: linear-gradient(90deg, rgba(174, 104, 50, .075), rgba(174, 104, 50, .012));
}

#hallOfFameTabell th:first-child,
#hallOfFameTabell td:first-child {
	width: 86px;
	text-align: center;
}

#hallOfFameTabell th:last-child,
#hallOfFameTabell td:last-child {
	width: 165px;
	text-align: center;
}

.hof-top3-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	font-size: 21px;
	line-height: 1;
}

.tosk-hof .kommentar-knapp {
	padding: 7px 11px;
	border-radius: 8px;
	font-size: 11px;
}


/* DataTables-kontroller */
.tosk-hof .dataTables_wrapper {
	padding: 21px 24px 23px;
	color: rgba(238, 238, 234, .62);
}

.tosk-hof .dataTables_wrapper .tosk-hof__table {
	margin: 14px -24px 16px !important;
	width: calc(100% + 48px) !important;
}

.tosk-hof .dataTables_length,
.tosk-hof .dataTables_filter,
.tosk-hof .dataTables_info,
.tosk-hof .dataTables_paginate {
	color: rgba(238, 238, 234, .60) !important;
	font-size: 12px;
}

.tosk-hof .dataTables_length select,
.tosk-hof .dataTables_filter input {
	height: 38px;
	margin: 0 5px;
	padding: 5px 10px;
	border: 1px solid rgba(255, 255, 255, .11);
	border-radius: 8px;
	color: #eeeeea;
	background: rgba(5, 8, 9, .48);
	box-shadow: none;
}

.tosk-hof .dt-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.tosk-hof .dt-buttons .dt-button,
.tosk-hof .dataTables_wrapper .dataTables_paginate .paginate_button {
	margin: 0;
	padding: 7px 11px;
	border: 1px solid rgba(255, 255, 255, .10) !important;
	border-radius: 8px;
	color: rgba(250, 250, 246, .72) !important;
	background: rgba(255, 255, 255, .035) !important;
	font-size: 11px;
	box-shadow: none !important;
}

.tosk-hof .dt-buttons .dt-button:hover,
.tosk-hof .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.tosk-hof .dataTables_wrapper .dataTables_paginate .paginate_button.current {
	border-color: rgba(214, 152, 65, .45) !important;
	color: #d69841 !important;
	background: rgba(214, 152, 65, .07) !important;
}

.tosk-hof .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
	opacity: .35;
}

.tosk-hof__modal {
	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: 20px;
	background: rgba(18, 22, 24, .96);
	box-shadow: 0 30px 90px rgba(0, 0, 0, .56);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.tosk-hof__modal .modal-header,
.tosk-hof__modal .modal-body {
	padding-right: 27px;
	padding-left: 27px;
}


/* =========================================================
   RESPONSIVT
   ========================================================= */

@media (max-width: 991px) {
	.tosk-hof {
		padding: 64px 0 76px;
	}

	.tosk-hof__filters {
		grid-template-columns: 1fr 1fr;
	}

	.tosk-hof__filters > .col-md-4:last-of-type {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.tosk-hof {
		padding: 48px 0 58px;
	}

	.tosk-hof__intro {
		margin-bottom: 30px;
	}

	.tosk-hof__title {
		font-size: 32px;
	}

	.tosk-hof__lead {
		font-size: 14px;
		line-height: 1.72;
	}

	.tosk-hof__filters {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 21px 19px;
		border-radius: 18px;
	}

	.tosk-hof__filters > .col-md-4:last-of-type {
		grid-column: auto;
	}

	.tosk-hof__filters .row > [class*="col-"] + [class*="col-"] {
		margin-top: 9px;
	}

	.tosk-hof__ranking,
	.tosk-hof__details {
		border-radius: 18px;
	}

	.tosk-hof__panel-heading {
		padding: 20px;
	}

	.tosk-hof__summary {
		padding: 13px 20px;
	}

	.tosk-hof__table-wrap {
		-webkit-overflow-scrolling: touch;
	}

	#hallOfFameTabell {
		min-width: 460px;
	}

	#dugnadDetaljTabell {
		min-width: 760px;
	}

	.tosk-hof .dataTables_wrapper {
		padding: 18px 19px 21px;
	}

	.tosk-hof .dataTables_wrapper .tosk-hof__table {
		margin-right: -19px !important;
		margin-left: -19px !important;
		width: calc(100% + 38px) !important;
	}

	.tosk-hof .dataTables_length,
	.tosk-hof .dataTables_filter {
		float: none;
		width: 100%;
		margin: 8px 0;
		text-align: left;
	}

	.tosk-hof .dataTables_filter input {
		width: calc(100% - 52px);
	}

	.tosk-hof .dataTables_info,
	.tosk-hof .dataTables_paginate {
		float: none;
		width: 100%;
		margin-top: 13px;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tosk-hof__filter-button {
		transition: none;
	}
}
