.teesheet-calendar,
.teesheet-single {
	--teesheet-accent: #0D1B4A;
	--teesheet-row-bg: #ffffff;
	--teesheet-row-bg-alt: #f7f7f8;
	--teesheet-border: #e2e2e4;
	--teesheet-text: inherit;
	--teesheet-radius: 4px;
	font-family: inherit;
	color: var(--teesheet-text);
}

/* --- Ackordeon (månader) --- */
.teesheet-month {
	border-bottom: 1px solid var(--teesheet-border);
}

.teesheet-month-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--teesheet-accent);
	color: #fff;
	border: none;
	padding: 0.95em 1.2em;
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-align: left;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.teesheet-month-toggle:hover {
	filter: brightness(1.1);
}

.teesheet-month-toggle .teesheet-caret {
	width: 0.6em;
	height: 0.6em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.teesheet-month.is-open .teesheet-month-toggle .teesheet-caret {
	transform: rotate(-135deg);
}

.teesheet-month-body {
	background: var(--teesheet-row-bg);
}

/* --- Rader --- */
.teesheet-row {
	display: grid;
	grid-template-columns: 4.5em 1fr auto auto;
	align-items: center;
	gap: 0.75em;
	padding: 0.85em 1.2em;
	border-bottom: 1px solid var(--teesheet-border);
	transition: background-color 0.15s ease;
}

.teesheet-row:nth-child(even) {
	background: var(--teesheet-row-bg-alt);
}

.teesheet-row:hover {
	background: color-mix(in srgb, var(--teesheet-accent) 6%, var(--teesheet-row-bg));
}

.teesheet-date {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.teesheet-day {
	font-weight: 700;
}

.teesheet-weekday {
	font-size: 0.85em;
	opacity: 0.75;
}

.teesheet-title a {
	color: inherit;
	text-decoration: none;
	font-weight: 500;
}

.teesheet-title a:hover {
	text-decoration: underline;
}

.teesheet-badge {
	display: inline-block;
	margin-left: 0.5em;
	padding: 0.1em 0.6em;
	border-radius: 999px;
	font-size: 0.75em;
	font-style: normal;
	background: #eee;
}

.teesheet-badge.is-full { background: #fdecd2; color: #8a5a00; }
.teesheet-badge.is-closed { background: #f4d4d4; color: #8a1f1f; }

.teesheet-format {
	font-size: 0.9em;
	opacity: 0.8;
	white-space: nowrap;
}

.teesheet-action {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

/* --- Knappar --- */
.teesheet-btn {
	display: inline-block;
	background: var(--teesheet-accent);
	color: #fff;
	padding: 0.5em 1em;
	border-radius: var(--teesheet-radius);
	font-size: 0.9em;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid var(--teesheet-accent);
}

.teesheet-btn:hover {
	opacity: 0.85;
	color: #fff;
}

.teesheet-btn-secondary {
	background: transparent;
	color: var(--teesheet-accent);
}

.teesheet-btn-secondary:hover {
	background: var(--teesheet-accent);
	color: #fff;
	opacity: 1;
}

.teesheet-btn-large {
	display: block;
	text-align: center;
	margin-top: 0.75em;
	padding: 0.7em 1em;
}

/* --- Enskild tävling --- */
.teesheet-single-image img {
	width: 100%;
	height: auto;
	border-radius: var(--teesheet-radius);
	margin-bottom: 1em;
	display: block;
}

.teesheet-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.2em;
	margin-bottom: 1.2em;
	font-size: 0.95em;
	opacity: 0.85;
}

.teesheet-single-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 1.5em;
}

.teesheet-panel {
	background: var(--teesheet-row-bg-alt);
	border: 1px solid var(--teesheet-border);
	border-radius: var(--teesheet-radius);
	padding: 1em 1.2em;
	margin-bottom: 1em;
}

.teesheet-panel h4 {
	margin-top: 0;
}

@media (max-width: 700px) {
	.teesheet-row {
		grid-template-columns: 3.5em 1fr;
		grid-template-areas:
			"date title"
			"date format"
			"date action";
	}
	.teesheet-date  { grid-area: date; }
	.teesheet-title { grid-area: title; }
	.teesheet-format{ grid-area: format; }
	.teesheet-action{ grid-area: action; }

	.teesheet-single-grid {
		grid-template-columns: 1fr;
	}
}
