:root {
	color-scheme: light;
	font-family: sans-serif;
	background-color: #eef5ff;
	color: #0b1a33;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, #eef5ff 0%, #fdfdfd 70%);
}

header.hero {
	padding: 3rem 5vw;
	background: #0b1a33;
	color: white;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

header.hero p.lead {
	font-size: 1.2rem;
	max-width: 55ch;
	line-height: 1.6;
}

header.hero h1 {
	margin: 0;
	font-size: 2.5rem;
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 0.5em;
	flex-wrap: wrap;
}

header.hero .logo {
	height: 2.0em;
	width: auto;
	flex: 0 0 auto;
	padding: 0.14em 0.18em;
	border-radius: 0.2em;
	background: rgb(255, 255, 255);
}

header.hero .hero__cta {
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
}

main {
	flex: 1;
	padding: 3rem 5vw 4rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.card {
	background: white;
	border-radius: 18px;
	padding: 2rem;
	box-shadow: 0 24px 45px rgba(15, 37, 82, 0.12);
	border: 1px solid rgba(15, 37, 82, 0.08);
}

.card h2 {
	margin-top: 0;
	font-size: 1.8rem;
	color: #0b1a33;
}

.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 0 auto;
}

.grid article {
	background: #f5f8ff;
	border-radius: 14px;
	padding: 1.4rem;
	border: 1px dashed rgba(15, 37, 82, 0.2);
	min-width: 0;
}

.grid h3 {
	margin-top: 0;
	font-size: 1.2rem;
}

.grid p {
	margin: 0.6rem 0 0;
	line-height: 1.5;
}

figure {
	margin: 0;
}

figure img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid rgba(11, 26, 51, 0.1);
	box-shadow: 0 12px 25px rgba(11, 26, 51, 0.12);
}

iframe {
	width: 100%;
	border: none;
	border-radius: 12px;
	aspect-ratio: 16 / 9;
	display: block;
}

.media-limit {
	max-width: 840px;
	margin: 0 auto;
	width: 100%;
}

.table-scroll {
	overflow-x: auto;
	border-radius: 14px;
	padding: 0.4rem;
	background: rgba(11, 26, 51, 0.05);
}

.table-scroll table {
	min-width: 640px;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

table th,
table td {
	text-align: left;
	padding: 0.9rem;
	border-bottom: 1px solid rgba(11, 26, 51, 0.12);
}

table th {
	width: 140px;
	font-weight: 600;
	font-size: 0.95rem;
	color: rgba(11, 26, 51, 0.8);
}

footer {
	padding: 2rem 5vw 3rem;
	font-size: 0.9rem;
	text-align: center;
	color: rgba(11, 26, 51, 0.7);
}

.toc-fab {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 30;
	width: 3.75rem;
	height: 3.75rem;
	border: none;
	border-radius: 999px;
	background: #0b1a33;
	color: #fff;
	box-shadow: 0 18px 40px rgba(11, 26, 51, 0.28);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
}

.toc-fab:hover,
.toc-fab:focus-visible {
	background: #16315e;
}

.toc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 20;
	background: rgba(11, 26, 51, 0.32);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.toc-panel {
	position: fixed;
	right: 1.25rem;
	bottom: 5.75rem;
	z-index: 25;
	width: min(22rem, calc(100vw - 2rem));
	max-height: min(70vh, 32rem);
	overflow: auto;
	padding: 1rem;
	border: 1px solid rgba(11, 26, 51, 0.12);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 24px 50px rgba(11, 26, 51, 0.18);
	opacity: 0;
	transform: translateY(0.75rem);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.toc-panel.is-open,
.toc-backdrop.is-open {
	opacity: 1;
	pointer-events: auto;
}

.toc-panel.is-open {
	transform: translateY(0);
}

.toc-panel h2 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.toc-list {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.toc-list a {
	display: block;
	padding: 0.55rem 0.7rem;
	border-radius: 10px;
	color: #0b1a33;
	text-decoration: none;
	line-height: 1.4;
}

.toc-list a:hover,
.toc-list a:focus-visible {
	background: #eef5ff;
}

.toc-list a.toc-subitem {
	padding-left: 1.5rem;
	font-size: 0.95rem;
	color: rgba(11, 26, 51, 0.82);
}

.gallery {
	position: relative;
	max-width: 900px;
	margin: auto;
}

.gallery-frame {
	margin: 0;
}

.gallery img,
.gallery video {
	width: 100%;
	height: 420px;
	object-fit: contain;
	border-radius: 14px;
	display: block;
}

.gallery figcaption {
	margin-top: 0.8rem;
	text-align: center;
	font-size: 0.95rem;
	color: #444;
}

.gallery-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);

	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;

	background: rgba(0, 0, 0, 0.45);
	color: white;
	font-size: 22px;

	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: 0.2s;
}

.gallery-btn:hover {
	background: rgba(0, 0, 0, 0.65);
}

.prev {
	left: 12px;
}

.next {
	right: 12px;
}

.gallery img {
	transition: opacity .25s;
}

.gallery-frame {
	position: relative;
}

.gallery-counter {
	position: absolute;
	right: 10px;
	bottom: 10px;

	background: rgba(0, 0, 0, 0.55);
	color: white;

	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.8rem;

	backdrop-filter: blur(4px);
}

@media (max-width: 600px) {
	header.hero {
		padding: 2.5rem 4vw;
	}

	header.hero h1 {
		font-size: 2rem;
		gap: 0.4em;
	}

	main {
		padding: 2.5rem 4vw 6rem;
	}

	iframe {
		height: 240px;
	}

	.toc-fab {
		right: 1rem;
		bottom: 1rem;
		width: 3.5rem;
		height: 3.5rem;
	}

	.toc-panel {
		right: 1rem;
		left: 1rem;
		bottom: 5.25rem;
		width: auto;
		max-height: 60vh;
	}
}

@media (max-width:600px) {
	.gallery img {
		height: 260px;
	}

	.gallery-btn {
		width: 38px;
		height: 38px;
		font-size: 18px;
	}
}
