@import url("https://fonts.googleapis.com/css?family=Lato:400,400italic,700,700italic|Source+Code+Pro:400");

:root {
	--bg: #ffffff;
	--surface: #ffffff;
	--text: #444343;
	--muted: #777777;
	--heading: #01365c;
	--primary: #01365c;
	--primary-dark: #002744;
	--border: #e4e4e4;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Lato", sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.75;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--primary);
}

.page {
	max-width: 1080px;
	margin: 0 auto;
	padding: 1.2rem 1rem 2.6rem;
}

.top-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	font-size: 0.95rem;
	color: var(--muted);
}

.hero {
	background: var(--surface);
	/* border: 1px solid var(--border); */
	border-radius: 12px;
	padding: 2rem 1.4rem 1.6rem;
	text-align: center;
}

h1 {
	margin: 0;
	line-height: 1.2;
	font-size: clamp(1.55rem, 3.1vw, 2.35rem);
	color: var(--heading);
}

.authors {
	margin: 0.95rem auto 0.45rem;
	max-width: 900px;
	font-size: 1.02rem;
}

.affiliations,
.venue {
	margin: 0.2rem 0;
	color: var(--muted);
}

.button-row {
	display: flex;
	justify-content: center;
	gap: 0.65rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.btn {
	display: inline-block;
	font-weight: 600;
	padding: 0.58rem 0.95rem;
	border-radius: 6px;
	border: 1px solid var(--primary);
	transition: all 0.2s ease;
}

.btn.primary {
	background: var(--primary);
	color: #fff;
}

.btn.primary:hover {
	background: var(--primary-dark);
	border-color: var(--primary-dark);
	text-decoration: none;
}

.btn.ghost {
	background: #fff;
	border-color: var(--border);
}

.btn.ghost:hover {
	background: #fafafa;
	text-decoration: none;
}

.section {
	background: var(--surface);
	/* border: 1px solid var(--border); */
	border-radius: 12px;
	padding: 1.15rem;
	/* margin-top: 1rem; */
}

.section h2 {
	margin: 0 0 0.55rem;
	font-size: 1.22rem;
	color: var(--heading);
}

.media-grid,
.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem;
}

.figure-box {
	/* border: 1px solid var(--border); */
	border-radius: 8px;
	padding: 0.7rem;
	background: #fff;
}

.figure-box img {
	width: 100%;
	display: block;
	/* border-radius: 8px; */
}

.three-photo-grid {
	padding-top: 1.5rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.4rem;
	max-width: 600px;
	padding-left: 0;
	padding-right: 0;
	margin: 0 auto;
	align-items: start;
}

.photo-box {
	/* border-radius: 8px; */
	overflow: hidden;
	background: #fff;
}

.photo-box img {
	width: 100%;
	display: block;
	height: auto;
	object-fit: contain;
}

.caption {
	font-size: 0.92rem;
	color: var(--muted);
	margin: 0.55rem 0 0;
}

.video-card {
	display: grid;
	align-content: start;
	gap: 0.55rem;
}

.video-placeholder {
	min-height: 220px;
	display: grid;
	place-items: center;
	border: 1px dashed #b8bfd5;
	border-radius: 12px;
	background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
	padding: 1rem;
	text-align: center;
	color: var(--muted);
}

ul.tight {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
}

pre {
	margin: 0;
	padding: 0.9rem;
	background: #f7f7f7;
	color: #444343;
	border: 1px solid var(--border);
	border-radius: 8px;
	overflow-x: auto;
	font-size: 0.89rem;
	font-family: "Source Code Pro", monospace;
}

.footer-links {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.1rem;
	font-size: 0.95rem;
}

@media (max-width: 860px) {
	.media-grid,
	.two-col {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 1.45rem 1rem 1.2rem;
	}
}
