.wlg-ks {
	--wlg-ks-accent: #2c3e2d;
	--wlg-ks-accent-soft: #eef1ec;
	--wlg-ks-text: #222;
	--wlg-ks-muted: #767676;
	--wlg-ks-border: #e4e4e0;
	--wlg-ks-radius: 10px;
	font-family: inherit;
	color: var(--wlg-ks-text);
	box-sizing: border-box;
}
.wlg-ks *,
.wlg-ks *::before,
.wlg-ks *::after {
	box-sizing: inherit;
}

.wlg-ks-empty,
.wlg-ks-error {
	color: var(--wlg-ks-muted);
	font-style: italic;
}
.wlg-ks-error {
	color: #a33;
}

/* ---------- Kommende hendelser ---------- */
.wlg-ks-upcoming__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.wlg-ks-upcoming__list--rad {
	flex-direction: row;
	flex-wrap: wrap;
}
.wlg-ks-upcoming__list--rad .wlg-ks-upcoming__item {
	flex: 1 1 240px;
	min-width: 220px;
	flex-direction: column;
	align-items: flex-start;
	background: var(--wlg-ks-accent);
	border: none;
	border-radius: 16px;
	padding: 22px 22px 24px;
	gap: 14px;
}
.wlg-ks-upcoming__list--rad .wlg-ks-upcoming__item:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
	transform: translateY(-2px);
}
.wlg-ks-upcoming__list--rad .wlg-ks-upcoming__date {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	width: auto;
	padding: 5px 12px;
	border-radius: 999px;
}
.wlg-ks-upcoming__list--rad .wlg-ks-upcoming__day,
.wlg-ks-upcoming__list--rad .wlg-ks-upcoming__month {
	display: inline;
}
.wlg-ks-upcoming__list--rad .wlg-ks-upcoming__day {
	font-size: 14px;
	font-weight: 700;
	margin-right: 4px;
}
.wlg-ks-upcoming__list--rad .wlg-ks-upcoming__month {
	font-size: 11px;
	text-transform: uppercase;
}
.wlg-ks-upcoming__list--rad .wlg-ks-upcoming__title {
	color: #fff;
	font-size: 19px;
	line-height: 1.3;
}
.wlg-ks-upcoming__list--rad .wlg-ks-upcoming__meta {
	color: rgba(255, 255, 255, 0.85);
}
.wlg-ks-upcoming__list--rad .wlg-ks-upcoming__desc {
	color: rgba(255, 255, 255, 0.85);
}
.wlg-ks-upcoming__list--rad .wlg-ks-upcoming__chevron {
	border-color: rgba(255, 255, 255, 0.85);
}
.wlg-ks-upcoming__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--wlg-ks-border);
	border-radius: var(--wlg-ks-radius);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.wlg-ks-upcoming__item:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
}
.wlg-ks-upcoming__date {
	flex: 0 0 auto;
	width: 52px;
	text-align: center;
	background: var(--wlg-ks-accent-soft);
	color: var(--wlg-ks-accent);
	border-radius: 8px;
	padding: 6px 0;
	line-height: 1.1;
}
.wlg-ks-upcoming__day {
	display: block;
	font-size: 20px;
	font-weight: 700;
}
.wlg-ks-upcoming__month {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.wlg-ks-upcoming__content {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1 1 auto;
}
.wlg-ks-upcoming__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.wlg-ks-upcoming__title {
	font-weight: 600;
	font-size: 16px;
}
.wlg-ks-upcoming__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	color: var(--wlg-ks-muted);
}
.wlg-ks-upcoming__time::before {
	content: "\1F551\0020";
}
.wlg-ks-upcoming__location::before {
	content: "\1F4CD\0020";
}

/* Klikkbare rader med beskrivelse - skjult til man trykker/åpner */
.wlg-ks-upcoming__item--expandable {
	cursor: pointer;
}
.wlg-ks-upcoming__chevron,
.wlg-ks-full__event-chevron {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--wlg-ks-muted);
	border-bottom: 2px solid var(--wlg-ks-muted);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	margin-top: -2px;
}
.wlg-ks-upcoming__item--expandable.is-open .wlg-ks-upcoming__chevron,
.wlg-ks-full__event--expandable.is-open .wlg-ks-full__event-chevron {
	transform: rotate(-135deg);
	margin-top: 2px;
}
.wlg-ks-upcoming__desc {
	display: none;
	font-size: 13px;
	color: var(--wlg-ks-muted);
	margin-top: 4px;
}
.wlg-ks-upcoming__item--expandable.is-open .wlg-ks-upcoming__desc {
	display: block;
}
.wlg-ks-upcoming__cta {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 20px;
	background: var(--wlg-ks-accent);
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
}
.wlg-ks-upcoming__cta:hover {
	opacity: 0.9;
	color: #fff;
}

/* ---------- Full kalender ---------- */
.wlg-ks-full__toggle {
	display: inline-flex;
	background: var(--wlg-ks-accent-soft);
	border-radius: 999px;
	padding: 3px;
	margin-bottom: 20px;
}
.wlg-ks-full__toggle-btn {
	border: none;
	background: transparent;
	padding: 7px 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: var(--wlg-ks-accent);
}
.wlg-ks-full__toggle-btn.is-active {
	background: var(--wlg-ks-accent);
	color: #fff;
}

.wlg-ks-full__month-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.wlg-ks-full__month-label {
	font-size: 18px;
	font-weight: 700;
	text-transform: capitalize;
}
.wlg-ks-full__nav {
	border: 1px solid var(--wlg-ks-border);
	background: #fff;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	color: var(--wlg-ks-accent);
}
.wlg-ks-full__nav:hover {
	background: var(--wlg-ks-accent-soft);
}

.wlg-ks-full__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
}
.wlg-ks-full__weekday {
	font-size: 11px;
	text-transform: uppercase;
	color: var(--wlg-ks-muted);
	padding: 4px 0 8px;
	letter-spacing: 0.03em;
}
.wlg-ks-full__day {
	aspect-ratio: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	border-radius: 8px;
	font-size: 13px;
	cursor: default;
	position: relative;
}
.wlg-ks-full__day.is-outside {
	color: #c9c9c4;
}
.wlg-ks-full__day.has-events {
	cursor: pointer;
	background: var(--wlg-ks-accent-soft);
	font-weight: 700;
	color: var(--wlg-ks-accent);
}
.wlg-ks-full__day.has-events:hover {
	background: var(--wlg-ks-accent);
	color: #fff;
}
.wlg-ks-full__day.is-today {
	box-shadow: inset 0 0 0 2px var(--wlg-ks-accent);
}
.wlg-ks-full__day-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.7;
}

.wlg-ks-full__day-events {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.wlg-ks-full__day-events:empty {
	display: none;
}

/* Gjenbruk listestil for enkelt-hendelser i månedsvisningens dagdetaljer og i full liste */
.wlg-ks-full__event {
	display: flex;
	gap: 14px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--wlg-ks-border);
	border-radius: var(--wlg-ks-radius);
}
.wlg-ks-full__event-time {
	flex: 0 0 auto;
	width: 50px;
	font-size: 12px;
	color: var(--wlg-ks-accent);
	font-weight: 700;
	padding-top: 2px;
}
.wlg-ks-full__event-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
}
.wlg-ks-full__event-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.wlg-ks-full__event-title {
	font-weight: 600;
	font-size: 15px;
}
.wlg-ks-full__event-meta {
	font-size: 12px;
	color: var(--wlg-ks-muted);
}
.wlg-ks-full__event--expandable {
	cursor: pointer;
}
.wlg-ks-full__event-desc {
	display: none;
	font-size: 13px;
	color: var(--wlg-ks-muted);
	margin-top: 4px;
}
.wlg-ks-full__event--expandable.is-open .wlg-ks-full__event-desc {
	display: block;
}

.wlg-ks-full__list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.wlg-ks-full__list-month-heading {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wlg-ks-muted);
	margin: 0 0 10px;
}
.wlg-ks-full__list-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

@media (max-width: 480px) {
	.wlg-ks-full__day {
		font-size: 11px;
	}
	.wlg-ks-upcoming__item {
		flex-direction: row;
	}
}
