/* ==========================================================================
   Spoorvissers theme
   Loaded after bootstrap.css and Site.css (see BundleConfig "~/Content/css").
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
	--sv-petrol-900: #0B2E3A;
	--sv-petrol-700: #0F4C5C;
	--sv-petrol-500: #1F7A8C;
	--sv-aqua: #7FD1E0;
	--sv-aqua-50: #E8F6F9;
	--sv-amber: #F2B544;
	--sv-amber-600: #D9971C;
	--sv-ink: #2C505C;
	--sv-text: #2A3E45;
	--sv-muted: #5E7178;
	--sv-line: #C9D5D8;
	--sv-bg: #F4F7F8;
	--sv-page: #E6EFF2;
	--sv-card: #FFFFFF;
	--sv-danger: #C0392B;
	--sv-radius: 16px;
	--sv-radius-sm: 12px;
	--sv-shadow: 0 1px 2px rgba(16, 36, 43, .06), 0 8px 24px rgba(16, 36, 43, .06);
	--sv-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--sv-nav-height: 72px;
}

/* ---------- base ---------- */
html {
	scroll-padding-top: calc(var(--sv-nav-height) + 16px);
}

body {
	font-family: var(--sv-font);
	color: var(--sv-ink);
	/* tinted page so the white cards stand out instead of floating on white */
	background-color: var(--sv-page);
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--sv-font);
	letter-spacing: -.01em;
}

a {
	color: var(--sv-petrol-500);
}

a:hover,
a:focus {
	color: var(--sv-petrol-700);
}

.sv-wrap {
	width: 100%;
	max-width: 1640px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.body-content {
	flex: 1 0 auto;
	width: 100%;
	padding-top: 32px;
	padding-bottom: 56px;
}

.sv-text-amber {
	color: var(--sv-amber-600);
}

/* ---------- buttons ---------- */
.sv-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 9px 16px;
	font: 600 14px/1.2 var(--sv-font);
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}

/* all buttons light up and lift slightly on hover */
.sv-btn:hover,
.sv-btn:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(31, 122, 140, .35);
}

/* pressed: back to the resting look (each variant repeats its colours under :active) */
.sv-btn:active {
	transform: none;
	box-shadow: none;
}

.sv-btn-lg {
	padding: 12px 20px;
	font-size: 15px;
}

.sv-btn-primary,
.sv-btn.sv-btn-primary:active {
	background: var(--sv-petrol-700);
	color: #fff;
}

.sv-btn-primary:hover,
.sv-btn-primary:focus-visible {
	background: var(--sv-petrol-500);
	color: #fff;
}

.sv-btn-light,
.sv-btn.sv-btn-light:active {
	background: #D0EDF3;
	border-color: #94D3E0;
	color: var(--sv-petrol-700);
}

.sv-btn-light:hover,
.sv-btn-light:focus-visible {
	background: var(--sv-petrol-500);
	border-color: var(--sv-petrol-500);
	color: #fff;
}

.sv-btn-amber,
.sv-btn.sv-btn-amber:active {
	background: var(--sv-amber);
	color: var(--sv-petrol-900);
}

.sv-btn-amber:hover,
.sv-btn-amber:focus-visible {
	background: #F5C565;
	color: var(--sv-petrol-900);
}

.sv-btn-ghost,
.sv-btn.sv-btn-ghost:active {
	background: rgba(255, 255, 255, .14);
	border-color: rgba(255, 255, 255, .3);
	color: #fff;
}

.sv-btn-ghost:hover,
.sv-btn-ghost:focus-visible {
	background: rgba(255, 255, 255, .24);
	color: #fff;
}

/* ---------- navbar ---------- */
.sv-nav {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--sv-line);
}

.sv-nav-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 24px;
	min-height: var(--sv-nav-height);
}

.sv-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--sv-ink);
	text-decoration: none !important;
}

.sv-brand:hover,
.sv-brand:focus {
	color: var(--sv-ink);
}

.sv-brand img {
	flex: none;
}

.sv-brand-name {
	display: block;
	font-weight: 800;
	font-size: 20px;
	letter-spacing: -.02em;
	line-height: 1;
}

.sv-brand-name > span {
	font-weight: 500;
	color: var(--sv-petrol-500);
}

.sv-brand-sub {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sv-muted);
}

.sv-burger {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--sv-radius-sm);
	background: transparent;
	color: var(--sv-ink);
	font-size: 22px;
}

.sv-burger:hover,
.sv-burger:focus {
	background: var(--sv-aqua-50);
	outline: none;
}

.sv-menu {
	margin-left: auto;
}

.sv-links {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sv-links a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--sv-muted);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

.sv-links a .fa {
	display: none;
	width: 18px;
	text-align: center;
}

.sv-links a:hover,
.sv-links a:focus {
	background: #B9E3EC;
	color: var(--sv-petrol-900);
}

.sv-links a.active {
	background: var(--sv-petrol-700);
	color: #fff;
}

.sv-account {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.sv-account-user {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px 4px 4px;
	border-radius: 999px;
	color: var(--sv-ink);
	font-weight: 600;
	font-size: 13px;
	text-decoration: none !important;
}

.sv-account-user:hover,
.sv-account-user:focus {
	background: #B9E3EC;
	color: var(--sv-ink);
}

.sv-account-email {
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* desktop: menu always visible */
@media (min-width: 1200px) {
	.sv-menu.collapse {
		display: flex !important;
		align-items: center;
		gap: 16px;
		height: auto !important;
	}
}

/* ---------- hero ---------- */
.sv-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background-color: var(--sv-petrol-700);
	background-position: center;
	background-size: cover;
}

.sv-hero-inner {
	display: grid;
	justify-items: center;
	gap: 24px;
	align-items: center;
	padding-top: 64px;
	padding-bottom: 64px;
	text-align: center;
}

.sv-eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sv-aqua);
}

.sv-hero h1 {
	margin: 14px 0 16px;
	font-size: clamp(34px, 4.6vw, 56px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.03em;
	color: #fff;
}

.sv-hero h1 em {
	font-style: normal;
	color: var(--sv-amber);
}

.sv-hero p {
	max-width: 520px;
	margin: 0 auto 28px;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .8);
}

.sv-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.sv-next {
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 20px;
	background: rgba(255, 255, 255, .1);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.sv-next-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sv-aqua);
}

.sv-next h3 {
	margin: 8px 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}

.sv-next-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	margin-bottom: 20px;
	font-size: 14px;
	color: rgba(255, 255, 255, .8);
}

.sv-next-meta .fa {
	margin-right: 6px;
	color: var(--sv-aqua);
}

.sv-next-meta > span:first-child {
	text-transform: capitalize;
}

.sv-hero .sv-next-empty {
	margin: 0;
	font-size: 14px;
}

.sv-countdown {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.sv-countdown > div {
	padding: 12px 6px;
	border-radius: var(--sv-radius-sm);
	background: rgba(11, 46, 58, .55);
	text-align: center;
}

.sv-countdown b {
	display: block;
	font-size: 26px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.sv-countdown small {
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .65);
}

.sv-countdown-live b {
	color: var(--sv-amber);
}

.sv-wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	width: 100%;
	height: 60px;
	fill: var(--sv-page);
}

/* ---------- statistics (subtle footer strip inside sv-next) ---------- */
.sv-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .15);
}

.sv-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.sv-stat-icon {
	flex: none;
	display: grid !important;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: var(--sv-radius-sm);
	background: rgba(255, 255, 255, .08);
	color: var(--sv-aqua);
	font-size: 13px;
}

.sv-stat > div {
	min-width: 0;
}

.sv-stat b {
	display: block;
	font-size: 15px;
	letter-spacing: -.01em;
	color: #fff;
	white-space: nowrap;
}

.sv-stat span {
	display: block;
	font-size: 11px;
	color: rgba(255, 255, 255, .6);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- dashboard grid & cards ---------- */
.sv-dashboard {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: stretch;
	gap: 24px;
}

.sv-col-3 { grid-column: span 3; }
.sv-col-4 { grid-column: span 4; }
.sv-col-5 { grid-column: span 5; }
.sv-col-6 { grid-column: span 6; }
.sv-col-8 { grid-column: span 8; }
.sv-col-12 { grid-column: span 12; }

.sv-order-1 { order: 1; }
.sv-order-2 { order: 2; }
.sv-order-3 { order: 3; }
.sv-order-4 { order: 4; }
.sv-order-5 { order: 5; }
.sv-order-6 { order: 6; }

.sv-card {
	position: relative;
	min-width: 0;
	padding: 22px;
	border: 1px solid var(--sv-line);
	border-radius: var(--sv-radius);
	background: var(--sv-card);
	box-shadow: var(--sv-shadow);
}

.sv-card-head {
	display: flex;
	flex-wrap: wrap;
	row-gap: 8px;
	align-items: center;
	gap: 10px;
	min-height: 34px;
	margin-bottom: 18px;
}

.sv-card-head h2 {
	margin: 0 !important;
	font-size: 18px;
	font-weight: 700;
}

.sv-card-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--sv-petrol-700);
	color: #fff;
	font-size: 15px;
}

.sv-card-tools {
	margin-left: auto;
}

.sv-card-loader {
	padding: 24px 0;
	color: var(--sv-petrol-500);
}

.sv-card-prepend {
	margin-bottom: 8px;
}

.sv-scroll {
	max-height: 640px;
	overflow-y: auto;
	margin-right: -8px;
	padding-right: 8px;
}

.sv-empty {
	margin: 8px 0 0;
	padding: 24px 12px;
	border: 1px dashed var(--sv-line);
	border-radius: var(--sv-radius-sm);
	text-align: center;
	font-size: 14px;
	color: var(--sv-muted);
}

.sv-empty .fa {
	display: block;
	margin-bottom: 6px;
	font-size: 22px;
	color: var(--sv-aqua);
}

/* year selector */
.sv-year {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sv-year b {
	min-width: 44px;
	font-size: 14px;
	text-align: center;
}

.sv-year button {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--sv-muted);
	font-size: 16px;
	line-height: 1;
	transition: background-color .15s, color .15s;
}

.sv-year button:hover,
.sv-year button:focus-visible,
.sv-year button:active {
	background: #B9E3EC;
	color: var(--sv-petrol-900);
}

.sv-year button.disabled {
	color: #C3CED2;
	background: transparent;
	pointer-events: none;
}

/* narrow cards (e.g. sv-col-3 on desktop): tighten the header so title and tools share one line */
.sv-card {
	container: sv-card / inline-size;
}

@container sv-card (max-width: 300px) {
	.sv-card-head {
		flex-wrap: nowrap;
		gap: 8px;
	}

	.sv-card-head h2 {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 17px;
	}

	.sv-card-head .sv-card-icon {
		width: 30px;
		height: 30px;
		font-size: 14px;
	}

	.sv-card-head .sv-year {
		flex: none;
		gap: 2px;
	}

	.sv-card-head .sv-year b {
		min-width: 36px;
	}

	.sv-card-head .sv-year button {
		width: 26px;
		height: 26px;
		font-size: 15px;
	}
}

@container sv-card (max-width: 250px) {
	.sv-card-head h2 {
		font-size: 16px;
	}

	.sv-card-head .sv-year b {
		min-width: 34px;
	}

	.sv-card-head .sv-year button {
		width: 22px;
		height: 22px;
	}
}

/* avatar */
.sv-avatar {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sv-petrol-500);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
}

.sv-avatar-sm {
	width: 28px;
	height: 28px;
	font-size: 11px;
}

/* ranking podium */
.sv-podium {
	display: grid;
	grid-template-columns: 1fr 1.15fr 1fr;
	align-items: end;
	gap: 8px;
	margin-bottom: 14px;
}

.sv-pod {
	min-width: 0;
	text-align: center;
}

.sv-pod .sv-avatar {
	width: 48px;
	height: 48px;
	margin-bottom: 6px;
}

.sv-pod-1 .sv-avatar {
	width: 58px;
	height: 58px;
	background: var(--sv-amber);
	color: var(--sv-petrol-900);
	box-shadow: 0 0 0 4px rgba(242, 181, 68, .25);
}

.sv-pod-name {
	overflow: hidden;
	font-size: 13px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sv-pod-kg {
	font-size: 12px;
	color: var(--sv-muted);
}

.sv-pod-bar {
	display: grid;
	place-items: center;
	margin-top: 8px;
	border-radius: 10px 10px 0 0;
	background: var(--sv-aqua-50);
	color: var(--sv-petrol-700);
	font-size: 18px;
	font-weight: 800;
}

.sv-pod-1 .sv-pod-bar {
	height: 78px;
	background: linear-gradient(var(--sv-amber), #F7CF7D);
	color: var(--sv-petrol-900);
}

.sv-pod-2 .sv-pod-bar { height: 58px; }
.sv-pod-3 .sv-pod-bar { height: 44px; }

/* tables */
.sv-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.sv-table th {
	padding: 8px 6px;
	border-bottom: 1px solid var(--sv-line);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sv-muted);
}

.sv-table td {
	padding: 10px 6px;
	border-bottom: 1px solid var(--sv-line);
}

.sv-table tr:last-child td {
	border-bottom: 0;
}

.sv-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.sv-rank {
	width: 28px;
	font-weight: 700;
	color: var(--sv-muted);
}

.sv-pill {
	display: inline-block;
	min-width: 32px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--sv-aqua-50);
	color: var(--sv-petrol-700);
	font-weight: 700;
	text-align: center;
}

/* contests */
.sv-contest {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--sv-line);
}

.sv-contest:last-child {
	border-bottom: 0;
}

.sv-date {
	flex: none;
	width: 56px;
	overflow: hidden;
	border: 1px solid var(--sv-line);
	border-radius: var(--sv-radius-sm);
	text-align: center;
}

.sv-date > span {
	display: block;
}

.sv-date-day {
	padding: 3px 0;
	background: var(--sv-petrol-700);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.sv-date-nr {
	padding-top: 4px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.1;
}

.sv-date-month {
	padding-bottom: 4px;
	font-size: 11px;
	color: var(--sv-muted);
}

.sv-contest-done .sv-date-day {
	background: var(--sv-muted);
}

.sv-contest-info {
	flex: 1;
	min-width: 0;
}

.sv-contest-info h4 {
	margin: 0 0 3px;
	font-size: 15px;
	font-weight: 700;
}

.sv-contest-info p {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--sv-muted);
}

.sv-tag {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--sv-aqua-50);
	color: var(--sv-petrol-700);
	font-size: 11px;
	font-weight: 700;
}

/* contest results dialog */
.sv-results-modal .modal-content {
	overflow: hidden;
}

.sv-results-head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px 64px 24px 24px;
	background: linear-gradient(135deg, var(--sv-petrol-900), var(--sv-petrol-700) 60%, var(--sv-petrol-500));
	color: #fff;
}

.sv-results-head .sv-date {
	width: 64px;
	border-color: rgba(255, 255, 255, .25);
	background: #fff;
	color: var(--sv-ink);
}

.sv-results-head .sv-date-day {
	background: var(--sv-amber);
	color: var(--sv-petrol-900);
}

.sv-results-title {
	flex: 1;
	min-width: 0;
}

.sv-results-title .modal-title {
	margin: 6px 0 4px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: #fff;
}

.sv-results-title .sv-eyebrow {
	display: block;
	line-height: 1.5;
}

.sv-results-title .sv-eyebrow .fa {
	margin-right: 8px;
	color: var(--sv-amber);
}

.sv-results-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, .8);
}

.sv-results-meta .fa {
	margin-right: 6px;
	color: var(--sv-aqua);
}

.sv-results-close {
	position: absolute;
	top: 16px;
	right: 16px;
	border: 0;
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

.sv-results-close:hover,
.sv-results-close:focus-visible {
	background: rgba(255, 255, 255, .28);
	color: #fff;
	box-shadow: none;
}

.sv-results-close:focus {
	outline: 0;
}

.sv-results-close:focus-visible {
	box-shadow: 0 0 0 3px rgba(127, 209, 224, .6);
}

.sv-results-close:active {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

.sv-results-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-bottom: 1px solid var(--sv-line);
	background: var(--sv-bg);
}

.sv-results-stats > div {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 10px;
	min-width: 0;
	padding: 14px 20px;
}

.sv-results-stats > div + div {
	border-left: 1px solid var(--sv-line);
}

.sv-results-stats .fa {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--sv-aqua-50);
	color: var(--sv-petrol-500);
}

.sv-results-stats b {
	font-size: 17px;
	letter-spacing: -.01em;
	white-space: nowrap;
}

.sv-results-stats small {
	overflow: hidden;
	font-size: 12px;
	color: var(--sv-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sv-results-modal .modal-body {
	max-height: calc(100vh - 320px);
	min-height: 120px;
	overflow-y: auto;
	padding: 8px 24px 16px;
}

.sv-results-table th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--sv-card);
}

.sv-results-table td {
	vertical-align: middle;
}

.sv-results-table .sv-rank {
	width: 44px;
}

.sv-medal {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 13px;
}

.sv-results-row-1 .sv-medal {
	background: var(--sv-amber);
	color: var(--sv-petrol-900);
	box-shadow: 0 0 0 3px rgba(242, 181, 68, .25);
}

.sv-results-row-2 .sv-medal {
	background: #D5DDE0;
	color: var(--sv-ink);
}

.sv-results-row-3 .sv-medal {
	background: #E3B58A;
	color: #4A2C12;
}

.sv-results-row-1 td {
	background: rgba(242, 181, 68, .1);
}

.sv-results-row-1 td:first-child {
	border-radius: 10px 0 0 10px;
}

.sv-results-row-1 td:last-child {
	border-radius: 0 10px 10px 0;
}

.sv-results-row-1 .sv-results-name {
	font-weight: 700;
}

.sv-results-name {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.sv-results-name > span:last-child {
	min-width: 0;
}

.sv-results-name > span:last-child > span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sv-results-place-inline {
	display: none !important;
	font-size: 12px;
	font-weight: 400;
	color: var(--sv-muted);
}

.sv-results-row-1 .sv-avatar {
	background: var(--sv-amber);
	color: var(--sv-petrol-900);
}

.sv-results-table .sv-tag {
	margin: 0;
}

.sv-results-weight {
	width: 150px;
}

.sv-results-bar {
	display: block;
	height: 4px;
	margin-top: 5px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--sv-aqua-50);
}

.sv-results-bar > span {
	display: block;
	height: 100%;
	margin-left: auto;
	border-radius: 999px;
	background: var(--sv-petrol-500);
}

.sv-results-row-1 .sv-results-bar > span {
	background: var(--sv-amber-600);
}

@media (max-width: 767px) {
	.sv-results-head {
		padding: 18px 56px 18px 16px;
		gap: 14px;
	}

	.sv-results-title .modal-title {
		font-size: 18px;
	}

	.sv-results-stats > div {
		grid-template-columns: 1fr;
		padding: 12px;
	}

	.sv-results-stats .fa {
		display: none;
	}

	.sv-results-stats b {
		font-size: 15px;
	}

	.sv-results-modal .modal-body {
		max-height: calc(100vh - 360px);
		padding: 4px 12px 12px;
	}

	.sv-results-weight {
		width: 72px;
	}

	.sv-results-table .sv-rank {
		width: 36px;
	}

	.sv-results-table .sv-avatar,
	.sv-results-table .sv-results-place {
		display: none;
	}

	.sv-results-place-inline {
		display: block !important;
	}
}

/* messages */
.sv-composer {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border: 1px dashed var(--sv-line);
	border-radius: 14px;
	background: #FAFCFC;
}

.sv-composer-field {
	flex: 1;
	min-width: 0;
}

.sv-composer textarea.form-control {
	min-height: 40px;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.sv-post {
	display: flex;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--sv-line);
}

.sv-post:first-child {
	padding-top: 4px;
}

.sv-post:last-child {
	border-bottom: 0;
}

.sv-post-body {
	flex: 1;
	min-width: 0;
}

.sv-post-head {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.sv-post-head b {
	font-size: 14px;
}

.sv-post-head > span {
	font-size: 12px;
	color: var(--sv-muted);
}

.sv-post-head .message-delete {
	margin-left: auto;
	color: var(--sv-muted);
	font-size: 13px;
}

.sv-post-head .message-delete:hover {
	color: var(--sv-danger);
}

.sv-post-text {
	margin: 6px 0 10px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--sv-text);
	overflow-wrap: anywhere;
}

.sv-post-actions a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sv-muted);
	text-decoration: none;
	cursor: pointer;
}

.sv-post-actions a:hover {
	color: var(--sv-petrol-700);
}

.sv-replies {
	margin-top: 4px;
}

.sv-reply {
	display: flex;
	gap: 10px;
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: var(--sv-radius-sm);
	background: var(--sv-bg);
}

.sv-reply-body {
	flex: 1;
	min-width: 0;
}

.sv-reply-body b {
	font-size: 13px;
}

.sv-reply-body p {
	margin: 2px 0 0;
	font-size: 13px;
	overflow-wrap: anywhere;
}

.sv-reply-input.form-control {
	margin: 8px 0 0;
	border-radius: var(--sv-radius-sm);
}

/* albums */
.sv-albums {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.sv-album {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	padding: 10px;
	border-radius: var(--sv-radius-sm);
	background-color: var(--sv-petrol-700);
	background-position: center;
	background-size: cover;
	color: #fff;
	text-decoration: none !important;
}

.sv-album::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 40%, rgba(11, 46, 58, .85));
	transition: opacity .2s;
}

.sv-album:hover::after {
	opacity: .7;
}

.sv-album-caption {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.sv-album-caption > span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* album photo viewer */
.sv-lightbox .modal-dialog {
	width: auto;
	max-width: 1200px;
	margin: 16px auto;
	padding: 0 16px;
}

.sv-lightbox .modal-content {
	display: flex;
	flex-direction: column;
	height: calc(100vh - 32px);
	overflow: hidden;
	border: 0;
	border-radius: var(--sv-radius);
	background: var(--sv-petrol-900);
	color: #fff;
}

.sv-lightbox-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 16px 16px 24px;
}

.sv-lightbox-title {
	flex: 1;
	min-width: 0;
}

.sv-lightbox-title .sv-eyebrow {
	margin-bottom: 2px;
}

.sv-lightbox-title .modal-title {
	overflow: hidden;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: #fff;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sv-lightbox-counter {
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sv-lightbox .sv-lightbox-btn {
	border: 0;
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

.sv-lightbox .sv-lightbox-btn:hover,
.sv-lightbox .sv-lightbox-btn:focus-visible {
	background: rgba(255, 255, 255, .28);
	color: #fff;
	box-shadow: none;
}

.sv-lightbox .sv-lightbox-btn:focus {
	outline: 0;
}

.sv-lightbox .sv-lightbox-btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(127, 209, 224, .6);
}

.sv-lightbox-stage {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 72px;
	touch-action: pan-y;
}

.sv-lightbox-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
	transition: opacity .2s;
	user-select: none;
}

.sv-lightbox-image.is-loading {
	opacity: .35;
}

.sv-lightbox-spinner {
	position: absolute;
	font-size: 32px;
	color: var(--sv-aqua);
}

.sv-lightbox-nav {
	position: absolute;
	top: 50%;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 18px;
	transition: background-color .15s, transform .15s;
}

.sv-lightbox-nav:hover,
.sv-lightbox-nav:focus-visible {
	background: var(--sv-petrol-500);
	outline: 0;
}

.sv-lightbox-nav:active {
	transform: scale(.94);
}

.sv-lightbox-prev {
	left: 12px;
}

.sv-lightbox-next {
	right: 12px;
}

.sv-lightbox-empty {
	flex: 1;
	margin: 0 24px 24px;
	border-color: rgba(255, 255, 255, .2);
	color: rgba(255, 255, 255, .7);
}

.sv-lightbox-strip {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 16px 24px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

.sv-lightbox-thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 54px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background-color: var(--sv-petrol-700);
	background-position: center;
	background-size: cover;
	opacity: .55;
	transition: opacity .15s, border-color .15s;
}

.sv-lightbox-thumb:hover,
.sv-lightbox-thumb:focus-visible {
	opacity: .9;
	outline: 0;
}

.sv-lightbox-thumb.active {
	border-color: var(--sv-amber);
	opacity: 1;
}

@media (max-width: 767px) {
	.sv-lightbox .modal-dialog {
		margin: 0;
		padding: 0;
	}

	.sv-lightbox .modal-content {
		height: 100vh;
		height: 100dvh;
		border-radius: 0;
	}

	.sv-lightbox-head {
		padding: 12px 12px 12px 16px;
	}

	.sv-lightbox-stage {
		padding: 0;
	}

	.sv-lightbox-image {
		border-radius: 0;
	}

	.sv-lightbox-nav {
		width: 40px;
		height: 40px;
		margin-top: -20px;
		background: rgba(11, 46, 58, .6);
	}

	.sv-lightbox-prev {
		left: 8px;
	}

	.sv-lightbox-next {
		right: 8px;
	}

	.sv-lightbox-strip {
		padding: 12px 16px;
	}

	.sv-lightbox-thumb {
		width: 56px;
		height: 42px;
	}
}

/* documents */
.sv-doc {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: var(--sv-radius-sm);
	color: var(--sv-ink);
	text-decoration: none !important;
}

.sv-doc:hover,
.sv-doc:focus {
	background: var(--sv-bg);
	color: var(--sv-ink);
}

.sv-doc-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #FDECEC;
	color: var(--sv-danger);
	font-size: 17px;
}

.sv-doc-text {
	flex: 1;
	min-width: 0;
}

.sv-doc-text b {
	display: block;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sv-doc-text small {
	font-size: 12px;
	color: var(--sv-muted);
}

.sv-doc-download {
	color: var(--sv-muted);
}

/* contacts */
.sv-contacts {
	display: grid;
	gap: 10px;
}

.sv-contact {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--sv-line);
	border-radius: var(--sv-radius-sm);
}

.sv-contact:nth-child(even) .sv-avatar {
	background: var(--sv-amber);
	color: var(--sv-petrol-900);
}

.sv-contact-text {
	min-width: 0;
}

.sv-contact-text small {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sv-muted);
}

.sv-contact-text a {
	font-size: 14px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* ---------- footer ---------- */
.sv-footer {
	flex-shrink: 0;
	background: var(--sv-petrol-900);
	color: rgba(255, 255, 255, .7);
	font-size: 14px;
}

.sv-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding-top: 28px;
	padding-bottom: 28px;
	flex-direction: column;
}

.sv-footer .sv-brand,
.sv-footer .sv-brand:hover {
	color: #fff;
}

.sv-footer .sv-brand-name {
	font-size: 17px;
}

.sv-footer .sv-brand-name > span {
	color: var(--sv-aqua);
}

.sv-footer .sv-brand-sub {
	color: rgba(255, 255, 255, .5);
}

/* ==========================================================================
   Bootstrap 3 restyling (login, account and site management pages)
   ========================================================================== */
.panel,
.panel.panel-default {
	border: 1px solid var(--sv-line);
	border-radius: var(--sv-radius);
	background-color: var(--sv-card) !important;
	box-shadow: var(--sv-shadow);
	margin-bottom: 24px;
}

.panel-default > .panel-heading {
	padding: 18px 22px 0;
	color: var(--sv-ink);
	text-shadow: none;
	border-radius: var(--sv-radius) var(--sv-radius) 0 0;
}

.panel-default > .panel-heading h2,
.panel-default > .panel-heading h3 {
	font-size: 18px;
	font-weight: 700;
}

.panel-default > .panel-body {
	padding: 18px 22px 22px;
	border-radius: 0 0 var(--sv-radius) var(--sv-radius);
}

.panel-fast-tab {
	margin-bottom: 16px;
}

.panel-fast-tab > .panel-heading {
	padding: 14px 22px 0;
}

.panel-fast-tab-closed {
	border-bottom: 0;
}

ul.panel-heading-actions {
	top: 10px;
	right: 16px;
	margin: 0;
	padding: 0;
}

ul.panel-heading-actions a {
	margin-left: 4px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--sv-aqua-50);
	color: var(--sv-petrol-700);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

ul.panel-heading-actions a:hover {
	background: #D4EEF3;
}

.content {
	margin-left: 0;
	margin-right: 0;
	padding-top: 0;
}

.content-title {
	margin: 0 0 16px !important;
	color: var(--sv-ink);
	text-shadow: none;
	font-size: 24px;
	font-weight: 800;
}

.btn {
	border-radius: 999px;
	font-weight: 600;
}

.btn-primary,
.btn-primary:focus {
	background-color: var(--sv-petrol-700);
	border-color: var(--sv-petrol-700);
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background-color: var(--sv-petrol-500);
	border-color: var(--sv-petrol-500);
	box-shadow: 0 6px 16px rgba(31, 122, 140, .35);
}

/* pressed: resting colours (also beats bootstrap's :active:hover / .active:focus rules) */
.btn-primary:active,
.btn-primary.active,
.btn-primary:active:hover,
.btn-primary:active:focus,
.btn-primary.active:hover,
.btn-primary.active:focus {
	background-color: var(--sv-petrol-700);
	border-color: var(--sv-petrol-700);
	box-shadow: none;
}

.btn-primary.disabled,
.btn-primary[disabled] {
	background-color: var(--sv-petrol-500);
	border-color: var(--sv-petrol-500);
}

.form-control {
	border-color: var(--sv-line);
	border-radius: 10px;
	box-shadow: none;
}

.form-control:focus {
	border-color: var(--sv-petrol-500);
	box-shadow: 0 0 0 3px rgba(31, 122, 140, .15);
}

.input-group .form-control:not(:last-child) {
	border-radius: 10px 0 0 10px;
}

.input-group-addon {
	border-color: var(--sv-line);
	border-radius: 0 10px 10px 0;
	background: var(--sv-bg);
}

.list-group {
	overflow: hidden;
	border-radius: var(--sv-radius);
	box-shadow: var(--sv-shadow);
}

.list-group-item {
	border-color: var(--sv-line);
	font-weight: 600;
}

.list-group-item:first-child,
.list-group-item:last-child {
	border-radius: 0;
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
	background-color: var(--sv-petrol-700);
	border-color: var(--sv-petrol-700);
}

a.list-group-item:hover,
button.list-group-item:hover,
a.list-group-item:focus,
button.list-group-item:focus,
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
	background-color: #B9E3EC;
	border-color: #94D3E0;
	color: var(--sv-petrol-900);
}

.table-condensed > thead > tr > th {
	color: var(--sv-muted);
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.table thead > tr > th,
.table tbody > tr > th,
.table tfoot > tr > th,
.table thead > tr > td,
.table tbody > tr > td,
.table tfoot > tr > td {
	border-bottom-color: var(--sv-line);
}

.table-hover > tbody > tr:hover,
.table > tbody > tr.active > td,
.table > tbody > tr > td.active,
.table-hover > tbody > tr.active:hover > td {
	background-color: var(--sv-aqua-50);
	color: var(--sv-ink);
}

td.first-column {
	background-color: var(--sv-aqua-50);
	color: var(--sv-petrol-700);
}

.message-reaction-container {
	background-color: var(--sv-aqua-50);
}

.thumbnail {
	border-color: var(--sv-line);
	border-radius: var(--sv-radius-sm);
}

.thumbnail-actions,
.thumbnail-caption {
	background-color: rgba(11, 46, 58, .85);
	border-radius: 8px;
}

a.thumbnail:focus,
a.thumbnail:hover,
a.document:hover {
	border-color: var(--sv-petrol-500);
	box-shadow: 0 0 0 2px rgba(31, 122, 140, .2);
}

a.thumbnail.selected:focus,
a.thumbnail.selected:hover,
.selected,
a.document.selected {
	border-color: var(--sv-petrol-500);
	box-shadow: 0 0 0 3px rgba(31, 122, 140, .3);
}

.modal-content {
	border: 0;
	border-radius: var(--sv-radius);
	box-shadow: 0 24px 64px rgba(11, 46, 58, .3);
}

.modal-header {
	border-bottom-color: var(--sv-line);
}

.modal-title {
	font-weight: 700;
}

.modal-footer {
	border-top-color: var(--sv-line);
}

.validation-success,
.validation-summary-errors {
	border: 0;
	border-radius: var(--sv-radius-sm);
	box-shadow: none;
}

/* ==========================================================================
   Site management (Page/OverviewDetail and the entity partials)
   ========================================================================== */
.sv-btn-outline,
.sv-btn.sv-btn-outline:active {
	background: #fff;
	border-color: var(--sv-line);
	color: var(--sv-text);
}

.sv-btn-outline:hover,
.sv-btn-outline:focus-visible {
	border-color: #9FB2B8;
	color: var(--sv-ink);
}

.sv-btn-danger,
.sv-btn.sv-btn-danger:active {
	background: var(--sv-danger);
	color: #fff;
}

.sv-btn-danger:hover,
.sv-btn-danger:focus-visible {
	background: #A93226;
	color: #fff;
}

.sv-btn-danger-light,
.sv-btn.sv-btn-danger-light:active {
	background: #F6CDC7;
	border-color: #EDA89F;
	color: #A93226;
}

.sv-btn-danger-light:hover,
.sv-btn-danger-light:focus-visible {
	background: var(--sv-danger);
	border-color: var(--sv-danger);
	color: #fff;
}

.sv-btn-danger:hover,
.sv-btn-danger:focus-visible,
.sv-btn-danger-light:hover,
.sv-btn-danger-light:focus-visible {
	box-shadow: 0 6px 16px rgba(192, 57, 43, .35);
}

.sv-btn.disabled,
.sv-btn[disabled] {
	opacity: .45;
	pointer-events: none;
}

.sv-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #D0EDF3;
	color: var(--sv-petrol-700);
	cursor: pointer;
	text-decoration: none !important;
	transition: background-color .15s, color .15s, box-shadow .15s;
}

.sv-icon-btn:hover,
.sv-icon-btn:focus-visible {
	background: var(--sv-petrol-500);
	color: #fff;
	box-shadow: 0 4px 12px rgba(31, 122, 140, .35);
}

.sv-icon-btn:active {
	background: #D0EDF3;
	color: var(--sv-petrol-700);
	box-shadow: none;
}

/* collapse toggles: same look as the top menu links */
.sv-icon-btn[data-toggle="collapse"] {
	border-radius: 999px;
	background: transparent;
	color: var(--sv-muted);
}

.sv-icon-btn[data-toggle="collapse"]:hover,
.sv-icon-btn[data-toggle="collapse"]:focus-visible,
.sv-icon-btn[data-toggle="collapse"]:active {
	background: #B9E3EC;
	color: var(--sv-petrol-900);
	box-shadow: none;
}

.sv-pill-muted {
	background: var(--sv-bg);
	color: var(--sv-muted);
}

.sv-nowrap {
	white-space: nowrap;
}

.sv-clamp {
	display: -webkit-box;
	max-width: 560px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* ---------- layout ---------- */
.sv-admin {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	align-items: start;
	gap: 28px;
}

.sv-admin-side {
	position: sticky;
	top: calc(var(--sv-nav-height) + 24px);
}

.sv-admin-main {
	min-width: 0;
}

/* ---------- side navigation ---------- */
.sv-admin-nav {
	padding: 10px;
	border: 1px solid var(--sv-line);
	border-radius: var(--sv-radius);
	background: var(--sv-card);
	box-shadow: var(--sv-shadow);
}

.sv-admin-nav-title {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sv-muted);
}

.sv-admin-nav-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sv-admin-nav-list a,
.sv-admin-nav-back {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--sv-radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: var(--sv-text);
	text-decoration: none !important;
	transition: background-color .15s, color .15s;
}

.sv-admin-nav-list a .fa,
.sv-admin-nav-back .fa {
	width: 18px;
	text-align: center;
	color: var(--sv-petrol-500);
}

.sv-admin-nav-list a:hover,
.sv-admin-nav-list a:focus {
	background: #B9E3EC;
	color: var(--sv-petrol-900);
}

.sv-admin-nav-list a.active {
	background: var(--sv-petrol-700);
	color: #fff;
}

.sv-admin-nav-list a.active .fa {
	color: var(--sv-aqua);
}

.sv-admin-nav-back {
	margin-top: 8px;
	border-top: 1px solid var(--sv-line);
	border-radius: 0 0 var(--sv-radius-sm) var(--sv-radius-sm);
	padding-top: 14px;
	font-size: 13px;
	color: var(--sv-muted);
}

.sv-admin-nav-back:hover,
.sv-admin-nav-back:focus {
	background: #B9E3EC;
	color: var(--sv-petrol-900);
}

/* ---------- page header ---------- */
.sv-admin-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.sv-admin-head-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--sv-petrol-700), var(--sv-petrol-500));
	color: #fff;
	font-size: 22px;
	box-shadow: 0 6px 16px rgba(15, 76, 92, .25);
}

.sv-admin-title {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--sv-ink);
}

.sv-admin-desc {
	margin: 4px 0 0;
	font-size: 15px;
	color: var(--sv-muted);
}

/* ---------- panels ---------- */
.sv-panel {
	margin-bottom: 24px;
	border: 1px solid var(--sv-line);
	border-radius: var(--sv-radius);
	background: var(--sv-card);
	box-shadow: var(--sv-shadow);
}

.sv-panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	min-height: 64px;
	padding: 12px 16px 12px 22px;
	border-bottom: 1px solid var(--sv-line);
}

.sv-panel-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	font-size: 16px;
	font-weight: 700;
	color: var(--sv-ink);
}

.sv-panel-title .fa {
	color: var(--sv-petrol-500);
}

.sv-panel-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 0 auto;
	padding: 0;
	list-style: none;
}

.sv-panel-body {
	padding: 20px 22px 22px;
}

.sv-panel-scroll {
	max-height: 440px;
	overflow-y: auto;
	padding-top: 0;
	padding-bottom: 12px;
}

.sv-admin-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 40px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--sv-petrol-500);
}

.sv-admin-loader .fa {
	font-size: 18px;
}

.sv-admin .sv-empty {
	margin: 12px 0 4px;
}

/* ---------- overview ---------- */
.sv-overview-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 0 6px;
}

.sv-overview-toolbar-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sv-muted);
}

.sv-overview-filter {
	width: 130px;
}

.table.sv-admin-table {
	margin-bottom: 0;
	font-size: 14px;
}

.table.sv-admin-table > thead > tr > th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 14px 10px 10px;
	border-top: 0;
	border-bottom: 1px solid var(--sv-line);
	background: var(--sv-card);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sv-muted);
	white-space: nowrap;
}

.table.sv-admin-table > thead > tr > th label {
	margin: 0;
	font-weight: inherit;
}

.table.sv-admin-table > tbody > tr > td {
	padding: 12px 10px;
	border-top: 0;
	border-bottom: 1px solid var(--sv-line);
	vertical-align: middle;
	color: var(--sv-text);
}

.table.sv-admin-table > tbody > tr:last-child > td {
	border-bottom: 0;
}

.table.sv-admin-table > tbody > tr.active > td {
	background: var(--sv-aqua-50);
	color: var(--sv-petrol-900);
}

.table.sv-admin-table > tbody > tr:hover > td {
	background: #B9E3EC;
	color: var(--sv-petrol-900);
}

.table.sv-admin-table > tbody > tr.active > td:first-child {
	box-shadow: inset 3px 0 0 var(--sv-petrol-500);
}

.sv-admin-table .fa-check {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #E4F4EA;
	color: #23864B;
	font-size: 11px;
}

/* album overview */
.sv-album-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	padding-top: 18px;
}

.sv-album {
	display: block;
	overflow: hidden;
	border: 1px solid var(--sv-line);
	border-radius: var(--sv-radius-sm);
	background: var(--sv-card);
	background-size: cover;
	color: var(--sv-ink);
	text-decoration: none !important;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.sv-album:hover,
.sv-album:focus {
	border-color: var(--sv-petrol-500);
	color: var(--sv-ink);
	transform: translateY(-2px);
	box-shadow: var(--sv-shadow);
}

.sv-album.active {
	border-color: var(--sv-petrol-700);
	box-shadow: 0 0 0 3px rgba(31, 122, 140, .25);
}

.sv-album-cover {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--sv-bg) center / cover no-repeat;
}

.sv-album-title {
	display: block;
	padding: 9px 12px;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.sv-album.active .sv-album-title {
	background: var(--sv-petrol-700);
	color: #fff;
}

/* ---------- detail ---------- */
.sv-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 20px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: var(--sv-radius-sm);
	font-size: 14px;
	font-weight: 500;
}

.sv-alert > .fa {
	margin-top: 2px;
}

.sv-alert ul {
	margin: 0;
	padding-left: 18px;
}

.sv-alert-add {
	border-color: #CDEBD8;
	background: #EEF8F2;
	color: #1D6B3D;
}

.sv-alert-edit {
	border-color: #CBE9EF;
	background: var(--sv-aqua-50);
	color: var(--sv-petrol-700);
}

.sv-alert-delete {
	border-color: #F4D3CE;
	background: #FCEDEB;
	color: #9B2C20;
}

.sv-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 24px;
	max-width: 880px;
}

.sv-field {
	min-width: 0;
}

.sv-field-wide {
	grid-column: 1 / -1;
}

.sv-field > label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sv-text);
}

.sv-field-nested {
	margin-top: 14px;
}

.sv-admin .form-control,
.sv-admin .dropdown .dropdown-toggle.btn-default {
	height: 40px;
	border: 1px solid var(--sv-line);
	border-radius: 10px;
	background-color: #fff;
	font-size: 14px;
	color: var(--sv-ink);
	box-shadow: none;
}

.sv-admin textarea.form-control {
	height: auto;
	min-height: 120px;
	line-height: 1.5;
	resize: vertical;
}

.sv-admin .input-group .form-control:not(:last-child) {
	border-radius: 10px 0 0 10px;
}

.sv-admin .input-group-addon {
	color: var(--sv-muted);
}

.sv-admin .form-text {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--sv-bg);
	font-size: 14px;
	color: var(--sv-text);
}

/* checkbox fields: a bordered row with the box and its label */
.sv-field-check {
	display: flex;
	align-items: center;
	align-self: end;
	gap: 10px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--sv-line);
	border-radius: 10px;
	background: #fff;
}

.sv-field-check > input[type="checkbox"] {
	flex: none;
	display: inline-block;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--sv-petrol-700);
	cursor: pointer;
}

.sv-field-check > label {
	flex: 1;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--sv-ink);
	cursor: pointer;
}

/* knockout / bootstrap dropdowns rendered as select-like fields */
.sv-admin .dropdown .dropdown-toggle.btn-default {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	text-align: left;
}

.sv-admin .dropdown .dropdown-toggle.btn-default:hover,
.sv-admin .dropdown.open > .dropdown-toggle.btn-default,
.sv-admin .dropdown .dropdown-toggle.btn-default:focus {
	border-color: var(--sv-petrol-500);
	background-color: #fff;
}

.sv-admin .dropdown.open > .dropdown-toggle.btn-default {
	box-shadow: 0 0 0 3px rgba(31, 122, 140, .15);
}

.sv-admin .dropdown .dropdown-toggle input.dropdown-text {
	flex: 1;
	min-width: 0;
	width: auto;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-weight: 500;
	color: var(--sv-ink);
}

.sv-admin .dropdown .dropdown-toggle .caret {
	flex: none;
	width: auto;
	margin: 0;
	color: var(--sv-muted);
}

.sv-admin .dropdown-menu {
	max-height: 280px;
	overflow-y: auto;
	margin-top: 4px;
	padding: 6px;
	border: 1px solid var(--sv-line);
	border-radius: var(--sv-radius-sm);
	box-shadow: 0 12px 32px rgba(16, 36, 43, .14);
}

.sv-admin .dropdown-menu > li > a {
	padding: 7px 10px;
	border-radius: 8px;
	font-size: 14px;
}

/* collections inside a detail (timings, results, reactions, photos) */
.sv-subsection {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--sv-line);
}

.sv-subsection-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.sv-subsection-head h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--sv-ink);
}

.sv-subsection-head .sv-icon-btn {
	margin-left: auto;
}

.table.sv-edit-table {
	margin-bottom: 0;
	border: 1px solid var(--sv-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--sv-radius-sm);
	font-size: 14px;
}

.table.sv-edit-table > thead > tr > th {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--sv-line);
	background: var(--sv-bg);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sv-muted);
	white-space: nowrap;
}

.table.sv-edit-table > thead > tr > th:first-child {
	border-top-left-radius: var(--sv-radius-sm);
}

.table.sv-edit-table > thead > tr > th:last-child {
	border-top-right-radius: var(--sv-radius-sm);
}

.table.sv-edit-table > thead > tr > th label {
	margin: 0;
	font-weight: inherit;
}

.table.sv-edit-table > tbody > tr > td {
	padding: 8px 12px;
	border-top: 0;
	border-bottom: 1px solid var(--sv-line);
	vertical-align: middle;
	color: var(--sv-text);
}

.table.sv-edit-table > tbody > tr:last-child > td {
	border-bottom: 0;
}

.table.sv-edit-table > tbody:empty::after {
	content: "Nog niets toegevoegd";
	white-space: nowrap;
	display: table-cell;
	padding: 16px 12px;
	font-size: 14px;
	color: var(--sv-muted);
}

.sv-edit-table > tbody > tr.bg-add > td {
	background: #EEF8F2;
}

.sv-edit-table > tbody > tr.bg-edit > td {
	background: var(--sv-aqua-50);
}

.sv-edit-table > tbody > tr.bg-delete > td {
	background: #FCEDEB;
}

.sv-edit-table > tbody > tr.bg-add > td:first-child {
	box-shadow: inset 3px 0 0 #2E9E5B;
}

.sv-edit-table > tbody > tr.bg-edit > td:first-child {
	box-shadow: inset 3px 0 0 var(--sv-petrol-500);
}

.sv-edit-table > tbody > tr.bg-delete > td:first-child {
	box-shadow: inset 3px 0 0 var(--sv-danger);
}

.sv-edit-table > tbody > tr.bg-delete > td:not(.sv-col-action) {
	opacity: .55;
}

.sv-edit-table .form-control,
.sv-edit-table .dropdown .dropdown-toggle.btn-default {
	height: 36px;
}

.sv-col-action {
	width: 1%;
	text-align: right;
	white-space: nowrap;
}

.sv-col-wide {
	min-width: 220px;
}

.sv-admin a[ko-action="new-to-collection"] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 8px 14px;
	border: 1px dashed #A9D6DF;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sv-petrol-700);
	text-decoration: none;
	transition: background-color .15s, border-color .15s;
}

.sv-admin a[ko-action="new-to-collection"]:hover,
.sv-admin a[ko-action="new-to-collection"]:focus-visible {
	border-color: var(--sv-petrol-500);
	background: var(--sv-aqua-50);
}

.sv-admin a[ko-action="remove-from-collection"] {
	display: inline-flex;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	background: #F6CDC7;
	color: #A93226;
	text-decoration: none;
	transition: background-color .15s, color .15s, box-shadow .15s;
}

.sv-admin a[ko-action="remove-from-collection"]:hover,
.sv-admin a[ko-action="remove-from-collection"]:focus-visible {
	background: var(--sv-danger);
	color: #fff;
	box-shadow: 0 4px 12px rgba(192, 57, 43, .35);
}

.sv-admin a[ko-action="remove-from-collection"]:active {
	background: #F6CDC7;
	color: #A93226;
	box-shadow: none;
}

/* album photos */
.sv-photo-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.sv-btn.fileinput-button {
	display: inline-flex;
}

.sv-photo-toolbar-sep {
	width: 1px;
	height: 24px;
	margin: 0 6px;
	background: var(--sv-line);
}

.sv-photo-toolbar-hint {
	font-size: 13px;
	font-weight: 600;
	color: var(--sv-muted);
}

.sv-admin .progress {
	height: 8px;
	margin: 14px 0 0;
	border-radius: 999px;
	background: var(--sv-bg);
	box-shadow: none;
}

.sv-admin .progress-bar {
	background: var(--sv-petrol-500);
	box-shadow: none;
}

.sv-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.sv-photo-grid:empty {
	display: none;
}

a.thumbnail.sv-photo {
	position: relative;
	display: block;
	aspect-ratio: 1;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	background: var(--sv-bg) center / cover no-repeat;
}

a.thumbnail.sv-photo:hover,
a.thumbnail.sv-photo:focus {
	border-color: var(--sv-petrol-500);
	box-shadow: none;
}

a.thumbnail.sv-photo.selected {
	border: 2px solid var(--sv-petrol-700);
	box-shadow: 0 0 0 3px rgba(31, 122, 140, .3);
}

a.thumbnail.sv-photo.selected::after {
	content: "\f00c";
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--sv-petrol-700);
	color: #fff;
	font: 12px/1 FontAwesome;
}

@media (max-width: 991px) {
	.sv-admin {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.sv-admin-side {
		position: static;
	}

	/* the side navigation becomes a horizontally scrolling tab bar */
	.sv-admin-nav {
		padding: 6px;
	}

	.sv-admin-nav-title,
	.sv-admin-nav-back {
		display: none;
	}

	.sv-admin-nav-list {
		display: flex;
		gap: 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.sv-admin-nav-list li {
		flex: none;
	}

	.sv-admin-nav-list a {
		padding: 8px 14px;
	}
}

@media (max-width: 767px) {
	.sv-form-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sv-admin-head-icon {
		width: 44px;
		height: 44px;
		font-size: 18px;
	}

	.sv-admin-title {
		font-size: 24px;
	}

	.sv-panel-head {
		padding-left: 16px;
	}

	.sv-panel-body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.sv-panel-scroll {
		overflow-x: auto;
	}

	/* editable collections: every row becomes a small card */
	.table.sv-edit-table,
	.sv-edit-table > tbody,
	.sv-edit-table > tbody > tr,
	.sv-edit-table > tbody > tr > td {
		display: block;
		width: 100%;
	}

	.table.sv-edit-table {
		border: 0;
	}

	.sv-edit-table > thead {
		display: none;
	}

	.sv-edit-table > tbody > tr {
		margin-bottom: 10px;
		padding: 12px;
		border: 1px solid var(--sv-line);
		border-radius: var(--sv-radius-sm);
	}

	.table.sv-edit-table > tbody > tr > td,
	.table.sv-edit-table > tbody > tr:last-child > td {
		padding: 4px 0;
		border: 0;
		background: transparent !important;
		box-shadow: none !important;
	}

	.sv-edit-table > tbody > tr.bg-add { background: #EEF8F2; }
	.sv-edit-table > tbody > tr.bg-edit { background: var(--sv-aqua-50); }
	.sv-edit-table > tbody > tr.bg-delete { background: #FCEDEB; }

	.sv-edit-table > tbody > tr > td[data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--sv-muted);
	}

	.sv-col-wide {
		min-width: 0;
	}

	.sv-photo-toolbar-sep,
	.sv-photo-toolbar-hint {
		display: none;
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.sv-burger {
		display: block;
	}

	.sv-menu {
		flex-basis: 100%;
		margin: 0;
	}

	.sv-menu.in {
		padding: 8px 0 16px;
		border-top: 1px solid var(--sv-line);
	}

	.sv-links {
		flex-direction: column;
		margin-bottom: 12px;
	}

	.sv-links a {
		border-radius: var(--sv-radius-sm);
		padding: 10px 12px;
	}

	.sv-links a .fa {
		display: inline-block;
	}

	.sv-account {
		flex-wrap: wrap;
	}

	.sv-col-3,
	.sv-col-4,
	.sv-col-5 {
		grid-column: span 6;
	}
}

@media (max-width: 820px) {
	.sv-hero-inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 40px;
		padding-bottom: 56px;
	}

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

	/* an odd last stat takes the full row so the grid stays balanced */
	.sv-stat:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.sv-col-3,
	.sv-col-4,
	.sv-col-5,
	.sv-col-6,
	.sv-col-8 {
		grid-column: span 12;
	}

	/* on one column follow the natural (reading) order */
	.sv-dashboard > .sv-card {
		order: 0;
	}

	/* no nested scrolling on small screens */
	.sv-scroll {
		max-height: none;
		overflow: visible;
		margin-right: 0;
		padding-right: 0;
	}
}

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

	.sv-brand-sub {
		display: none;
	}

	.sv-hero-inner {
		padding-top: 32px;
	}

	.sv-next {
		padding: 18px;
	}

	.sv-countdown b {
		font-size: 22px;
	}

	.sv-stats {
		gap: 8px 12px;
	}

	.sv-stat {
		gap: 8px;
	}

	.sv-stat-icon {
		width: 26px;
		height: 26px;
		font-size: 12px;
	}

	.sv-card {
		padding: 18px;
	}

	.sv-footer-copy {
		margin-left: 0;
	}
}
