/* style.css - Projekt: PSB-Lanfer
   Colours of the original design (2017): background #A6D7F7, border #1E628F, dark blue #082D45 */

:root {
	--light: #A6D7F7;
	--border: #1E628F;
	--dark: #082D45;
	--paper: #F7FBFE;
	--text: #1B2A33;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
	margin: 0;
	padding: 1.5rem 1rem;
	background-color: var(--light);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
}

#box {
	max-width: 62rem;
	margin: 0 auto;
	border: solid 2px var(--border);
	background-color: var(--paper);
}

#box_head {
	border-bottom: solid 2px var(--border);
	padding: 0.6rem 1rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.5rem, 4.5vw, 2.6rem);
	line-height: 1.25;
	text-align: center;
	background-color: var(--light);
}

#box_head a {
	color: var(--dark);
	text-decoration: none;
}

/* menu bar: items separated by "|" like the original */
#box_nav {
	border-bottom: solid 2px var(--border);
	background-color: var(--dark);
	color: #fff;
	text-align: center;
}

#box_nav ul {
	margin: 0;
	padding: 0.45rem 0.5rem;
	list-style: none;
}

#box_nav li { display: inline; }

#box_nav li + li::before {
	content: "|";
	padding: 0 0.45rem;
	color: var(--light);
}

#box_nav a {
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

#box_nav a:hover,
#box_nav a[aria-current="page"] {
	color: var(--light);
}

#box_nav a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

#box_content {
	min-height: 400px;
	padding: 1.25rem 2rem 2rem;
}

#box_content > * { max-width: 46rem; }

h1, h2, h3 {
	color: var(--dark);
	line-height: 1.3;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: normal;
}

h1 { font-size: 1.8rem; margin: 0.4rem 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; border-bottom: solid 1px var(--light); padding-bottom: 0.2rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }

a { color: var(--border); }
a:hover { color: var(--dark); }

a:focus-visible {
	outline: 2px solid var(--border);
	outline-offset: 2px;
}

#box_nav a:focus-visible { outline-color: var(--light); }

ul { padding-left: 1.3rem; }
li { margin: 0.2rem 0; }

img {
	max-width: 100%;
	height: auto;
}

.portrait {
	float: right;
	margin: 0.3rem 0 1rem 1.5rem;
	border: solid 2px var(--border);
}

/* tables: prices, group details */
table {
	border-collapse: collapse;
	width: 100%;
	margin: 0.5rem 0 1.2rem;
}

th, td {
	padding: 0.4rem 0.6rem 0.4rem 0;
	border-bottom: solid 1px var(--light);
	text-align: left;
	vertical-align: top;
}

th { color: var(--dark); font-weight: 600; }
th[scope="row"] { width: 12rem; font-weight: normal; }
td.num { text-align: right; white-space: nowrap; }

/* certificates: preview next to the text, enlarged view via :target (no JavaScript) */
.certs {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
}

.cert {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	margin: 0;
	padding: 1.25rem 0;
	border-top: solid 1px var(--light);
}

.cert .thumb { flex: 0 0 8.5rem; }

.cert .thumb img {
	display: block;
	width: 8.5rem;
	border: solid 1px var(--border);
	background-color: #fff;
}

.cert .thumb:hover img { border-color: var(--dark); box-shadow: 0 0 0 2px var(--light); }

.cert h2 {
	margin: 0 0 0.2rem;
	border: none;
	padding: 0;
	font-size: 1.25rem;
}

.cert p { margin: 0.4rem 0 0; }
.cert .meta { color: #4A5B66; font-size: 0.95rem; }

.lightbox { display: none; }

#box_content > .lightbox:target {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 10;
	max-width: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background-color: rgba(8, 45, 69, 0.92);
}

.lightbox a {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-height: 100%;
	color: #fff;
	text-decoration: none;
}

.lightbox img {
	width: auto;
	max-height: calc(100vh - 4.5rem);
	background-color: #fff;
}

.lightbox span {
	margin-top: 0.6rem;
	padding: 0.2rem 0.8rem;
	border: solid 1px var(--light);
}

.note {
	border-left: solid 4px var(--border);
	background-color: #fff;
	padding: 0.6rem 1rem;
}

address { font-style: normal; }

#box_foot {
	border-top: solid 2px var(--border);
	background-color: var(--dark);
	color: #fff;
	text-align: center;
	font-size: 0.9rem;
	padding: 0.5rem 1rem;
}

#box_foot p { margin: 0.2rem 0; }
#box_foot a { color: #fff; }
#box_foot a:hover, #box_foot a[aria-current="page"] { color: var(--light); }

@media (max-width: 40rem) {
	body { padding: 0; }
	#box { border-left: none; border-right: none; border-top: none; }
	#box_content { padding: 1rem 1rem 1.5rem; }
	.portrait { float: none; display: block; margin: 0 auto 1rem; }
	th[scope="row"] { width: 40%; }
	.cert { gap: 0.9rem; }
	.cert .thumb { flex-basis: 5.5rem; }
	.cert .thumb img { width: 5.5rem; }
}
