:root {
	--updated-home: "2026-04-22";
	--updated-cfp: "2026-04-25";
	--updated-submissions: "2026-04-15";
	--updated-templates: "2026-04-15";
	--updated-organisation: "2026-04-16";
	--updated-venue: "2026-04-22";
	--updated-programme: "2026-04-15";
	--updated-invited: "2026-04-22";
}

html,
body {
	margin: 0;
	padding: 0;
	max-width: 800px;
}

body {
	font-family: Georgia, "Times New Roman", Times, serif;
	background: #f8f8f8;
	color: #222;
	line-height: 1.6;
}

main {
	max-width: 42rem;
	margin: 4rem auto;
	padding: 0 1.5rem;
}

h1 {
	font-size: 2.2rem;
	font-weight: normal;
	margin: 0 0 2rem 0;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid #005099;
}

main div {
	margin-bottom: 1.4rem;
}

a {
	color: #003366;
	text-decoration: underline;
}

a:hover {
	color: #000;
}

h2 {
	font-size: 1.2rem;
	font-weight: normal;
	margin: 2rem -0.5rem 0.5rem;
	padding-bottom: 0.25rem;
	padding-left: 0.5rem;
	border-left: 3px solid #c9523d;
}

table {
	border-collapse: collapse;
	width: 100%;
	margin-bottom: 1.4rem;
}

th,
td {
	text-align: left;
	padding: 0.4rem 0.6rem;
	vertical-align: top;
	border-bottom: 1px solid #ccc;
}

th {
	font-weight: normal;
	color: #555;
	white-space: nowrap;
	width: 12rem;
}

footer {
	max-width: 42rem;
	margin: 2rem auto;
	padding: 1rem 1.5rem;
	font-size: 0.9rem;
	color: #555;
	background: #f0f0f0;
	border-top: 3px solid #005099;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

footer.table-notes {
	display: block;
	background: none;
	border-top: none;
	margin: 0.5rem 0 1.4rem;
	padding: 0;
	font-size: 0.85rem;
}

.site-header {
	background: #f0f0f0;
	border-bottom: 3px solid #005099;
	padding: 1rem 1.5rem;
	font-size: 1.5rem;
	color: #555;
	text-align: center;
}

/* ── CFP index links ── */

.cfp-index {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 1.5rem;
}

.cfp-index a {
	margin-left: 0.5rem;
	margin-right: 0.5rem;
}

/* ── Last-updated dates ── */

.page-home time.last-updated::after {
	content: var(--updated-home);
}

.page-cfp time.last-updated::after {
	content: var(--updated-cfp);
}

.page-submissions time.last-updated::after {
	content: var(--updated-submissions);
}

.page-templates time.last-updated::after {
	content: var(--updated-templates);
}

.page-organisation time.last-updated::after {
	content: var(--updated-organisation);
}

.page-venue time.last-updated::after {
	content: var(--updated-venue);
}

.page-programme time.last-updated::after {
	content: var(--updated-programme);
}

.page-invited time.last-updated::after {
	content: var(--updated-invited);
}

.programme-table th:nth-child(2),
.programme-table td:nth-child(2) {
	color: #888;
	font-style: italic;
}

nav {
	max-width: 42rem;
	margin: 1.5rem auto 0;
	padding: 0 1.5rem;
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

nav a {
	font-family: system-ui, sans-serif;
	font-size: 0.9rem;
	text-decoration: none;
}

nav a:hover {
	text-decoration: underline;
}

main ul {
	list-style: none;
	margin: 0 0 1.4rem;
	padding: 0;
}

main li {
	padding: 0;
}

/* Case 1 — index pages: the page IS the nav destination.
   Link is visually active and non-clickable. */
.page-home nav a.nav-home,
.page-cfp nav a.nav-cfp,
.page-submissions nav a.nav-submissions,
.page-organisation nav a.nav-organisation,
.page-venue nav a.nav-venue,
.page-programme nav a.nav-programme {
	color: #222;
	pointer-events: none;
	cursor: default;
}

/* Case 2 — sub-pages: the page lives under a nav section but is not its index.
   Parent nav link shows active section colour and underline but remains clickable.
   Add one selector per sub-page: .page-{sub} nav a.nav-{parent}. */
.page-invited nav a.nav-programme {
	color: #222;
	text-decoration: underline;
	pointer-events: auto;
	cursor: pointer;
}

/* ── Footer logos ── */

.footer-text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.footer-logos {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.footer-logo {
	height: 5rem;
	width: auto;
}

.tmh-badge {
	height: 2rem;
	width: auto;
	vertical-align: middle;
	margin-right: 0.4rem;
}

/* ── News section dl ── */

section[aria-labelledby="news-heading"] dl,
section[aria-labelledby="dates-heading"] dl,
section[aria-labelledby="key-facts-heading"] dl {
	display: grid;
	grid-template-columns: 10rem 1fr;
	column-gap: 1.5rem;
	row-gap: 0.75rem;
	margin: 0 0 1.4rem;
}

section[aria-labelledby="news-heading"] dt,
section[aria-labelledby="dates-heading"] dt,
section[aria-labelledby="key-facts-heading"] dt {
	font-size: 0.85rem;
	font-family: system-ui, sans-serif;
	padding-top: 0.2rem;
}

section[aria-labelledby="news-heading"] dt {
	color: #c9523d;
}

section[aria-labelledby="dates-heading"] dt,
section[aria-labelledby="key-facts-heading"] dt {
	color: #005099;
}

section[aria-labelledby="news-heading"] dd,
section[aria-labelledby="dates-heading"] dd,
section[aria-labelledby="key-facts-heading"] dd {
	margin: 0;
}

/* ── Invited speakers page ── */

.page-invited section {
	display: flow-root;
	margin-bottom: 2rem;
}

.page-invited figure {
	float: left;
	width: 10rem;
	margin: 0 1.5rem 1rem 0;
}

.page-invited figure img {
	display: block;
	width: 100%;
	height: auto;
}

.page-invited figcaption {
	font-size: 0.8rem;
	color: #555;
	line-height: 1.4;
	margin-top: 0.4rem;
}

/* ── Mobile hamburger navigation ── */

.nav-toggle {
	display: none;
}

.nav-toggle-label {
	display: none;
}

@media (max-width: 39.99rem) {
	.site-header {
		font-size: 0.9rem;
	}

	nav {
		display: none;
	}

	.nav-toggle:checked~nav {
		display: flex;
		flex-direction: column;
		gap: 0;
		margin: 0 auto;
	}

	nav a {
		display: flex;
		align-items: center;
		min-height: 44px;
		border-bottom: 1px solid #eee;
	}

	nav a:last-child {
		border-bottom: none;
	}

	.nav-toggle-label {
		display: flex;
		align-items: center;
		max-width: 42rem;
		margin: 1.5rem auto 0;
		padding: 0 1.5rem;
		min-height: 44px;
		cursor: pointer;
		user-select: none;
		box-sizing: border-box;
	}

	.nav-toggle-label span {
		display: block;
		position: relative;
		width: 1.5rem;
		height: 2px;
		background: #003366;
	}

	.nav-toggle-label span::before,
	.nav-toggle-label span::after {
		content: '';
		display: block;
		position: absolute;
		left: 0;
		width: 1.5rem;
		height: 2px;
		background: #003366;
	}

	.nav-toggle-label span::before {
		top: -0.4rem;
	}

	.nav-toggle-label span::after {
		bottom: -0.4rem;
	}

	.page-invited figure {
		float: none;
		width: 100%;
		margin: 0 0 1rem 0;
	}

	section[aria-labelledby="news-heading"] dl,
	section[aria-labelledby="dates-heading"] dl,
	section[aria-labelledby="key-facts-heading"] dl {
		grid-template-columns: 1fr;
		row-gap: 0.25rem;
	}

	section[aria-labelledby="news-heading"] dt,
	section[aria-labelledby="dates-heading"] dt,
	section[aria-labelledby="key-facts-heading"] dt {
		margin-top: 1rem;
		padding-top: 0;
	}

	section[aria-labelledby="news-heading"] dl dt:first-child,
	section[aria-labelledby="dates-heading"] dl dt:first-child,
	section[aria-labelledby="key-facts-heading"] dl dt:first-child {
		margin-top: 0;
	}

	.footer-logos {
		width: 100%;
		margin-top: 1rem;
	}
}
