/*
 * Nynäshamnsbostäder: TV board, 1920×1080 landscape (nynasbo-tv module).
 * Layout as on the old board: 60/40 columns, six cards in a 2×3 grid on the left.
 * Sizes are px on purpose: this is a fixed-resolution screen, not a page anyone zooms.
 */

body.tv-mode {
	margin: 0;
	overflow: hidden;
	background: var(--surface-accent-subtle);
}

.tv {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 12px;
	box-sizing: border-box;
	padding: 12px;
	overflow: hidden;
	background: var(--surface-accent-subtle);
	color: var(--text-primary);
	font-family: var(--font-family-primary), system-ui, sans-serif;
	pointer-events: none;
	user-select: none;
}
/* :where keeps the reset below every component rule, so .tv-card__label keeps its own colour. */
.tv :where(p, h2, h3) {
	margin: 0;
	color: inherit;
}

.tv__left,
.tv__right {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 0;
}

.tv__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 40px 8px 8px;
}
.tv__title {
	font-size: 30px;
	font-weight: 700;
	color: var(--text-primary);
}
.tv__logo {
	width: auto;
	height: 96px;
}

.tv__cards {
	display: grid;
	flex: 1;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(3, 1fr);
	gap: 12px;
	min-height: 0;
}
.tv-card {
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: var(--surface-warm);
}
.tv-card__media {
	flex: 0 0 44%;
	min-height: 0;
	background: var(--surface-secondary);
}
.tv-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tv-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	min-height: 0;
}
.tv-card__label {
	align-self: flex-start;
	padding: 2px 10px;
	border-radius: var(--radius-pill);
	background: var(--surface-accent);
	color: var(--text-primary-inverted);
	font-family: var(--font-family-secondary), sans-serif;
	font-size: 14px;
	font-weight: 600;
}
.tv-card__label[hidden] {
	display: none;
}
.tv-card__title {
	font-size: 22px;
	font-weight: 700;
}
.tv-card__facts,
.tv-card__from {
	font-size: 16px;
	color: var(--text-secondary);
}

.tv__clock {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 72px;
	font-family: var(--font-family-secondary), sans-serif;
	font-size: 20px;
	font-weight: 600;
}

.tv__news {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: var(--surface-warm);
}
.tv__news-media {
	flex: 0 0 46%;
	min-height: 0;
	background: var(--surface-secondary);
}
.tv__news-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tv__news-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	padding: 18px;
}
.tv__news-title {
	font-size: 28px;
	font-weight: 700;
}
.tv__news-scroll {
	flex: 1;
	min-height: 0;
	overflow: hidden;
}
.tv__news-text {
	font-size: 17px;
	line-height: 1.45;
}
.tv__news-text p {
	margin: 0 0 8px;
}

.tv__info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	padding: 18px;
	border-radius: var(--radius-md);
	background: var(--surface-accent);
	color: var(--text-primary-inverted);
}
/* Two classes: the kit's h3 colour is .elementor-kit-N h3, which one class does not beat. */
.tv .tv__info-title {
	color: var(--text-primary-inverted);
	font-size: 20px;
	font-weight: 700;
}
.tv__info-text {
	font-size: 16px;
	line-height: 1.4;
}
.tv__qr {
	display: flex;
	align-items: center;
	gap: 14px;
}
.tv__qr img {
	display: block;
	width: 126px;
	height: 126px;
	border-radius: var(--radius-sm);
	object-fit: cover;
}
.tv__qr-url {
	font-size: 18px;
	font-weight: 700;
}
.tv__qr-sub {
	font-size: 14px;
	opacity: 0.85;
}
