/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*

	PAKS public site

	Fluid, responsive layout. The element ids and classes are the
	ones from the original WebForms site (also used by print.css and
	by HTML stored in page content), so keep them.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

:root {
	--brand: #4a6bb3;
	--brand-light: #608fc8;
	--brand-dark: #34508f;
	--brand-tint: #eef3fb;
	--text: #2b2f36;
	--text-muted: #6b7280;
	--border: #e3e7ee;
	--bg: #f4f6f9;
	--surface: #ffffff;
	--link: #2f5fb3;
	--link-hover: #1d3f80;
	--radius: 10px;
	--shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);
	--max-width: 1160px;
	--side-width: 220px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-heading: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after {
	box-sizing: border-box;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
	BASE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

html {
	-webkit-text-size-adjust: 100%;
	/* Same content width whether or not the page needs a scrollbar. */
	scrollbar-gutter: stable;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
}

p {
	margin: 0 0 1em;
}

p.no-padding-no-margin {
	padding: 0;
	margin: 0;
}

hr {
	height: 1px;
	border: 0;
	background: var(--border);
	margin: 1.25rem 0;
}

blockquote {
	margin: 1rem 0;
	padding: .25rem 0 .25rem 1rem;
	border-left: 3px solid var(--brand-light);
	color: var(--text-muted);
}

blockquote p {
	margin: .25rem 0;
}

cite {
	font-size: .875em;
}

fieldset {
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

legend {
	padding: 0 .25rem;
	font-weight: 600;
}

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

table {
	max-width: 100%;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
	HEADINGS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: #1f2937;
	line-height: 1.25;
	margin: 0 0 .5em;
	font-weight: 600;
}

h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
h3.small { font-size: 1rem; }
h4, h5 { font-size: 1rem; }
h6 { font-size: .9rem; }

#heading {
	display: block;
	font-family: var(--font-heading);
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 600;
	line-height: 1.25;
	color: #1f2937;
}

#subheading {
	display: block;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: .5rem;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
	LINKS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

a:link,
a:visited {
	color: var(--link);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	color: var(--link-hover);
	text-decoration: underline;
	text-underline-offset: 2px;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	z-index: 10;
	padding: .5rem 1rem;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
	PAGE FRAME
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.container {
	width: 100%;
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-main {
	flex: 1;
	padding-block: 1.5rem 2.5rem;
}

/* Header */

#top-information {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.top-information-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	padding-block: 1rem;
}

#logo {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
	font-variant: small-caps;
	line-height: 1.1;
}

#logo a,
#logo a:visited {
	color: var(--brand);
	text-decoration: none;
}

#top-information-phone {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	color: var(--text-muted);
	font-size: .9rem;
}

/* Main menu */

#nav-main {
	background: linear-gradient(90deg, var(--brand-light), var(--brand));
	position: sticky;
	top: 0;
	z-index: 5;
	box-shadow: 0 1px 4px rgb(16 24 40 / 15%);
}

.nav-main-inner {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	padding-block: .5rem;
}

#nav-main a:link,
#nav-main a:visited {
	display: inline-block;
	padding: .45rem .9rem;
	border-radius: 999px;
	color: #fff;
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	transition: background-color .15s;
}

#nav-main a:hover,
#nav-main a:focus-visible {
	background: rgb(255 255 255 / 18%);
	color: #fff;
	text-decoration: none;
	outline-color: #fff;
}

#nav-main a.selected-menu-item:link,
#nav-main a.selected-menu-item:visited,
#nav-main a.selected-menu-item:hover {
	background: #fff;
	color: var(--brand-dark);
}

/* Footer */

#footer {
	background: var(--brand-dark);
	color: #c9d6ee;
	font-size: .875rem;
	padding-block: 1.25rem;
}

#footer a:link,
#footer a:visited {
	color: #fff;
}

#footer-sub {
	display: none;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
	PAGE TITLE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

#pagetitle {
	margin-bottom: 1rem;
	padding: 1.25rem 1.5rem;
	border-radius: var(--radius);
	background: linear-gradient(120deg, var(--brand-light), var(--brand));
	color: #fff;
	font-family: var(--font-heading);
	font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
	font-weight: 600;
	line-height: 1.25;
	box-shadow: var(--shadow);
}

#pagetitle a:link,
#pagetitle a:visited {
	color: #fff;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
	CONTENT CONTAINERS

	Two column: side menu + main.  Three column: menu + main + aside.
	Front page: main + news.  They stack on narrow screens.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

#content-container-two-column,
#content-container-three-column,
#frontpage-content-container-two-column {
	display: grid;
	gap: 1.5rem 2rem;
	padding: clamp(1rem, 3vw, 2rem);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

#content-container-two-column {
	grid-template-columns: var(--side-width) minmax(0, 1fr);
	grid-template-areas: "side main";
}

#content-side-two-column { grid-area: side; }
#content-main-two-column { grid-area: main; min-height: 20rem; }

#content-container-three-column {
	grid-template-columns: var(--side-width) minmax(0, 1fr) minmax(180px, 260px);
	grid-template-areas: "side1 main side2";
}

#content-side1-three-column { grid-area: side1; }
#content-main-three-column { grid-area: main; min-height: 20rem; }
#content-side2-three-column { grid-area: side2; }

#content-side2-three-column {
	align-self: start;
	padding: 1rem 1.25rem;
	background: var(--brand-tint);
	border-radius: var(--radius);
	font-size: .95rem;
}

#frontpage-content-container-two-column {
	grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

#frontpage-side-two-column {
	align-self: start;
	padding: 1.25rem;
	background: var(--brand-tint);
	border-radius: var(--radius);
}

#frontpage-side-two-column h3 {
	margin-top: 0;
}

/* The old layouts floated their columns; grid replaces that. */
.clear {
	display: none;
}

@media (max-width: 1000px) {
	#content-container-three-column {
		grid-template-columns: var(--side-width) minmax(0, 1fr);
		grid-template-areas:
			"side1 main"
			"side1 side2";
	}
}

@media (max-width: 760px) {
	#content-container-two-column,
	#content-container-three-column,
	#frontpage-content-container-two-column {
		grid-template-columns: minmax(0, 1fr);
	}

	#content-container-two-column {
		grid-template-areas: "side" "main";
	}

	#content-container-three-column {
		grid-template-areas: "side1" "main" "side2";
	}

	/* The section menu goes above the content: drop its empty space. */
	#content-side-two-column ul.list-of-links,
	#content-side1-three-column ul.list-of-links {
		margin: 0;
	}

	#content-side-two-column:not(:has(li)),
	#content-side1-three-column:not(:has(li)) {
		display: none;
	}

	/* Main menu: one row that scrolls sideways. */
	.nav-main-inner {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.nav-main-inner::-webkit-scrollbar {
		display: none;
	}

	#nav-main a:link,
	#nav-main a:visited {
		flex: none;
	}

	#content-main-two-column,
	#content-main-three-column {
		min-height: 0;
	}
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
	FRONT PAGE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

#poster-photo-container {
	display: flex;
	align-items: stretch;
	margin-bottom: 1.5rem;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--brand-light);
	box-shadow: var(--shadow);
}

#feature-area-home {
	order: -1;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(.75rem, 2vw, 1.25rem);
	background: #fff;
}

#feature-area-home img {
	display: block;
	width: clamp(90px, 14vw, 160px);
}

.poster-photo-image {
	flex: 1;
	min-width: 0;
	width: 100%;
	height: auto;
	max-height: 240px;
	object-fit: cover;
	object-position: left center;
	display: block;
}

#three-column-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	margin: 1.75rem 0 0;
}

#three-column-side1,
#three-column-middle,
#three-column-side2 {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	transition: box-shadow .15s, transform .15s;
}

#three-column-side1:hover,
#three-column-middle:hover,
#three-column-side2:hover {
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

/* The markup is side1, side2, middle (for the old float layout). */
#three-column-side1 { order: 1; }
#three-column-middle { order: 2; }
#three-column-side2 { order: 3; }

#three-column-container .photo-border {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	padding: 0;
	border: 0;
	border-radius: calc(var(--radius) - 4px);
	background: none;
	margin-bottom: .75rem;
}

#three-column-container h2 {
	margin-bottom: .35rem;
}

#three-column-container p {
	flex: 1;
	font-size: .95rem;
	color: var(--text-muted);
}

@media (max-width: 560px) {
	#poster-photo-container {
		flex-direction: column;
	}

	.poster-photo-image {
		max-height: 140px;
	}
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
	LISTS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

ul {
	margin: 0 0 1em;
	padding-left: 1.25rem;
}

li {
	padding: .1rem 0;
}

ul.list-of-links {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

ul.list-of-links li {
	padding: 0;
	margin: 0;
}

ul.list-of-links li a {
	display: block;
	padding: .5rem .75rem;
	border-radius: 8px;
	line-height: 1.35;
}

ul.list-of-links li a:hover {
	background: var(--brand-tint);
	text-decoration: none;
}

ul.list-of-links li.current a {
	background: var(--brand-tint);
	color: var(--brand-dark);
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--brand);
}

#frontpage-side-two-column ul.list-of-links {
	margin: 0;
}

#frontpage-side-two-column ul.list-of-links li a {
	padding-inline: 0;
	border-bottom: 1px solid var(--border);
	border-radius: 0;
}

#frontpage-side-two-column ul.list-of-links li a:hover {
	background: none;
	text-decoration: underline;
}

ul.no-lines,
ul.no-lines li {
	border: none;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
	IMAGES & PHOTOS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.photo-border {
	display: block;
	padding: 4px;
	margin-bottom: .5rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
}

.photo-float-left {
	float: left;
	margin: 0 1rem .5rem 0;
}

.image-border-none {
	border: none;
}

.arrow {
	vertical-align: middle;
	margin-left: .25rem;
}

/* "Les mer" link + arrow at the bottom of the front page cards. */
.read-more {
	margin-top: auto;
	font-weight: 600;
	white-space: nowrap;
}

.read-more .arrow {
	width: 10px;
	height: 5px;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
	FORMS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

form[role="search"] {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.5rem;
}

input[type="search"],
input[type="text"],
.search-input {
	flex: 1 1 240px;
	max-width: 420px;
	padding: .55rem .8rem;
	font: inherit;
	border: 1px solid #c9d1de;
	border-radius: 8px;
	background: #fff;
}

input:focus-visible {
	outline: 2px solid var(--brand-light);
	outline-offset: 1px;
	border-color: var(--brand-light);
}

button,
input[type="submit"],
input.button-big,
input.button-small {
	padding: .55rem 1.2rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--brand);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
	background: var(--brand-dark);
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
	MISC
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.news-date {
	font-size: .875em;
	font-style: italic;
	color: var(--text-muted);
}

.none {
	display: none;
}

.WatermarkText {
	color: #bbb;
}

#PageListing {
	margin-top: 3px;
	padding: 15px;
	width: 100%;
}

.preview-banner {
	margin: 0 0 1rem;
	padding: .6rem 1rem;
	background: #fff4c2;
	border: 1px solid #e0c24a;
	border-radius: var(--radius);
	color: #5a4a00;
	font-weight: 600;
}

/* Image gallery */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: .75rem;
}

.gallery-item img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	height: auto;
	object-fit: cover;
	border-radius: 8px;
	transition: transform .15s, box-shadow .15s;
}

.gallery-item:hover img {
	transform: scale(1.03);
	box-shadow: var(--shadow);
}

.gallery-pager {
	text-align: center;
	margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
