/* source-sans-3-latin-400-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/source-sans-3_5.2.9_latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* source-sans-3-latin-700-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('../fonts/source-sans-3_5.2.9_latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

body {
	margin: 0;
	font-family: 'Source Sans 3', verdana, arial;
	background: white;
}

/* --- Header --- */

#header-wrapper {
	width: 100%;
	background-color: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header {
	max-width: 1160px;
	margin-inline: auto;
	height: 72px;
	display: flex;
	align-items: center;
	gap: 16px;
	padding-inline: 16px;
	background-color: #fff;
}

.header a {
	color: #171717;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.header a:hover {
	color: #404040;
}

/* Nav items */
.paalinkki {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.paalinkki .item1 {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px 6px;
	border-radius: 8px;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 700;
	color: #171717;
	text-decoration: none;
}

.paalinkki .item1:hover {
	background-color: #fafafa;
}

.paalinkki .item1::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23171717' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.2s ease;
}

.paalinkki:hover .item1::after {
	transform: rotate(180deg);
}

.paalinkki .item1.cta-link {
	font-weight: 700;
	color: #16818d;
}

.paalinkki .item1.cta-link::after {
	display: none;
}

.paalinkki .item1.cta-link:hover {
	color: #0f5f68;
	background: transparent;
}

/* Dropdown menus — pure CSS, no JS needed */
div.section {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow:
		0 2px 2px -1px rgba(0, 0, 0, 0.04),
		0 4px 6px -2px rgba(0, 0, 0, 0.03),
		0 12px 16px -4px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0.15s;
	overflow: hidden;
}

div.section::before {
	content: '';
	display: block;
	height: 5px;
	background-color: #e2530c;
}

/* Phones: tighter nav that fits 320px, dropdowns open leftwards so they stay inside the screen */
@media (max-width: 600px) {
	.header {
		gap: 8px;
		padding-inline: 12px;
	}

	.paalinkki .item1 {
		padding: 4px;
		font-size: 14px;
	}

	.paalinkki > div.section {
		left: auto;
		right: 0;
	}
}

@media (max-width: 374px) {
	.paalinkki .item1 {
		white-space: normal;
		line-height: 1.15;
	}
}

.paalinkki:hover > div.section,
.paalinkki:focus-within > div.section {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0s;
}

div.section a {
	display: block;
	padding: 12px;
	margin: 2px 8px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #404040;
	text-decoration: none;
	white-space: nowrap;
}

div.section a:hover {
	background-color: #fafafa;
	color: #171717;
}

/* Language dropdown */
.paalinkki.lang-selector .item1::after {
	width: 12px;
	height: 12px;
	background-size: 12px;
}

.langlink {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px !important;
	margin: 2px 8px;
	border-radius: 8px;
}

.langlink img {
	border: 0;
	vertical-align: middle;
}

/* Login form */
.login {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	margin-inline-start: auto;
}

.login form {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	margin-bottom: 0;
}

.login .input-field {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.login .input-field label {
	font-size: 14px;
	font-weight: 400;
	color: #404040;
	line-height: 20px;
}

.login .input-field input[type="text"],
.login .input-field input[type="password"] {
	width: 120px;
	height: 30px;
	padding-inline: 12px;
	border: 1px solid #d4d4d4;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
	font-size: 14px;
	font-family: inherit;
	color: #171717;
	box-sizing: border-box;
}

.login .input-field input:focus-visible {
	outline: 2px solid #16818d;
	outline-offset: -1px;
	border-color: #16818d;
}

.login .remember-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.login .remember-group input[type="checkbox"] {
	width: 16px;
	height: 16px;
	border: 1px solid #d4d4d4;
	border-radius: 4px;
	accent-color: #16818d;
}

.login .remember-group label {
	font-size: 14px;
	font-weight: 400;
	color: #404040;
	line-height: 20px;
	cursor: pointer;
}

.login .submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background-color: #16818d;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.login .submit-btn:hover {
	background-color: #0f5f68;
}

/* Logout link in header */
#logout-link {
	padding: 10px 20px;
	background-color: transparent;
	border: 1px solid #d4d4d4;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 700;
	color: #404040;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

#logout-link:hover {
	background-color: #fafafa;
	border-color: #a3a3a3;
}

/* Logged-in admin bar */
.logged {
	text-align: right;
	font-size: 13px;
	padding: 4px 32px;
	max-width: 980px;
	margin-inline: auto;
	color: #404040;
}

.logged a {
	color: #16818d;
	text-decoration: none;
	font-weight: 700;
}

.logged a:hover {
	text-decoration: underline;
}

.logged img {
	border: none;
}

/* Logo */
#kuvaton-header-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-inline-end: 4px;
}

#kuvaton-header-logo img {
	height: 28px;
	width: 64px;
	border: none;
}

.warning {
	color: red;
	font-weight: bold;
}

/* Footer */

.footer {
  margin-top: 50px;
	background: #1a1b1d;
	color: #666666;
	font-size: 13px;
	padding: 20px;
	text-align: center;
}

.footer div {
	text-align: center;
	color: gray;
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 20px;
}

.footer table {
	margin: 0 auto;
}

.footer td {
	padding: 0 30px;
	line-height: 150%;
	vertical-align: top;
}

@media (max-width: 480px) {
	.footer {
		padding-inline: 8px;
	}

	.footer td {
		padding: 0 8px;
	}
}

.footer a {
  /*font-size: 13px;*/
  font-size: 12pt;
	color: #666666;
	text-decoration: none;
}
