/**
 * Base styles of the pages built without Elementor (page templates Artikkeli and Etusivu, see inc/artikkeli.php):
 * Open Sans, box model, screen reader text and the FAQ accordion (.pa-ukk, details and summary).
 * The theme style.css is not loaded with these templates. Open Sans is here, see the note in css/runko.css.
 */

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/open-sans-400.woff2) format("woff2");
}
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/open-sans-400-italic.woff2) format("woff2");
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/open-sans-700.woff2) format("woff2");
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	background: var(--pa-color-bg);
	color: var(--pa-color-text);
	font-family: var(--pa-font-text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img {
	max-width: 100%;
	height: auto;
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: #fff;
	color: #000;
	font-weight: 700;
	text-decoration: none;
}

/* FAQ */
.pa-ukk {
	margin-top: 20px;
	border-top: 1px solid var(--pa-color-line);
}
.pa-ukk .wp-block-details {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--pa-color-line);
}
.pa-ukk summary {
	position: relative;
	display: block;
	padding: 20px 48px 20px 0;
	font-family: var(--pa-font-display);
	font-size: 22px;
	font-weight: var(--pa-weight-display);
	line-height: 1.15;
	color: #fff;
	list-style: none;
	cursor: pointer;
}
.pa-ukk summary::-webkit-details-marker {
	display: none;
}
.pa-ukk summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 6px;
	font-family: var(--pa-font-text);
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	color: var(--pa-color-accent);
	transform: translateY(-50%);
	transition: transform .2s ease;
}
.pa-ukk details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}
.pa-ukk summary:hover {
	color: var(--pa-color-accent);
}
.pa-ukk summary:focus-visible {
	outline: 2px solid var(--pa-color-accent);
	outline-offset: 4px;
}
.pa-ukk details[open] > p {
	margin: 0 0 22px;
}
