/**
 *  * SwiNOG Events – public styles.
 *   *
 *    * Uses CSS custom properties so themes can override without !important.
 *     * All selectors are scoped to .stgl-block to avoid leaking into the theme.
 *      */

.stgl-block {
	--stgl-color-fg: #1d2327;
	--stgl-color-muted: #646970;
	--stgl-color-accent: #2271b1;
	--stgl-color-accent-hover: #135e96;
	--stgl-color-border: #dcdcde;
	--stgl-color-bg-soft: #f6f7f7;
	--stgl-color-bg-tier: #f0f6fc;
	--stgl-radius: 6px;
	--stgl-gap: 1rem;

	color: var(--stgl-color-fg);
	font-size: 1rem;
	line-height: 1.55;
	margin: 1.5em 0;
}

.stgl-block * {
	box-sizing: border-box;
}

.stgl-block-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 0.75em;
}

.stgl-empty {
	color: var(--stgl-color-muted);
	font-style: italic;
	padding: 1em;
	background: var(--stgl-color-bg-soft);
	border-radius: var(--stgl-radius);
	margin: 0;
}

/* ---------- Tables (presentations / agenda) ---------- */

.stgl-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.stgl-table th,
.stgl-table td {
	padding: 0.65em 0.85em;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--stgl-color-border);
}

.stgl-table thead th {
	background: var(--stgl-color-bg-soft);
	font-weight: 600;
	border-bottom: 2px solid var(--stgl-color-border);
}

.stgl-table tbody tr:hover {
	background: var(--stgl-color-bg-soft);
}

.stgl-table .col-time {
	width: 5em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	color: var(--stgl-color-muted);
}

.stgl-table .col-links {
	width: 1%;
	white-space: nowrap;
}

.stgl-table .col-links a {
	margin-right: 0.5em;
}

.stgl-table .col-links a:last-child {
	margin-right: 0;
}

.stgl-table-presentations .stgl-abstract {
	display: block;
	color: var(--stgl-color-muted);
	font-size: 0.9em;
	margin-top: 0.25em;
}

.stgl-table-presentations .stgl-abstract > :first-child {
	margin-top: 0;
}

.stgl-table-presentations .stgl-abstract > :last-child {
	margin-bottom: 0;
}

.stgl-table-presentations .stgl-abstract p {
	margin: 0.4em 0;
}

/* ---------- Sponsors ---------- */

.stgl-sponsors {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.stgl-sponsor-tier {
	background: var(--stgl-color-bg-tier);
	border-radius: var(--stgl-radius);
	padding: 0.25rem;
	margin: 0 0 0.75em;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
}

.stgl-sponsor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--stgl-gap);
}

.stgl-sponsor-card {
	background: #fff;
	border: 1px solid var(--stgl-color-border);
	border-radius: var(--stgl-radius);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.stgl-sponsor-logo {
	max-width: 100%;
	height: auto;
	max-height: 80px;
	object-fit: contain;
	align-self: flex-start;
}

.stgl-sponsor-name {
	font-weight: 600;
	margin: 0;
	font-size: 1rem;
}

.stgl-sponsor-desc {
	font-size: 0.9em;
	color: var(--stgl-color-muted);
	margin: 0;
}

.stgl-sponsor-meta {
	font-size: 0.85em;
	color: var(--stgl-color-muted);
}

.stgl-sponsor-link {
	font-size: 0.9em;
	margin-top: auto;
}

/* ---------- Link icons ---------- */

.stgl-link-slides::before {
	content: "📑 ";
}

.stgl-link-video::before {
	content: "🎬 ";
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
	.stgl-table .col-time {
		width: auto;
	}

	.stgl-table th,
	.stgl-table td {
		padding: 0.5em 0.5em;
	}

	.stgl-sponsor-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Print ---------- */

@media print {
	.stgl-block {
		color: #000;
	}
}

