/*
@import url("https://fonts.googleapis.com/css2?family=Besley:wght@600&family=Inter:wght@400;500;600;700&display=swap");
*/

/* ==========================================================
   HKKK – perusmuuttujat
   ========================================================== */

:root {
	--hkkk-green-700: #4f7726;
	--hkkk-green-600: #5e852e;
	--hkkk-green-500: #7eb83d;
	--hkkk-green-100: #f2f8e9;
	--hkkk-text: #4d4d4d;
	--hkkk-text-strong: #3f3f3f;
	--hkkk-text-muted: #707070;
	--hkkk-border: #d8d8d8;
	--hkkk-border-light: #e7e7e7;
	--hkkk-background: #ffffff;
	--hkkk-surface: #fafafa;
	--hkkk-error: #b42318;
	--hkkk-error-background: #fff4f2;
	--hkkk-focus: #2257d6;
	--hkkk-content-width: 1000px;
	--hkkk-form-width: 760px;
	--hkkk-radius: 0;
	--hkkk-transition: 160ms ease;
	--hkkk-font-heading: "Besley", Georgia, "Times New Roman", serif;
	--hkkk-font-body: "Inter", Arial, Helvetica, sans-serif;
}


/* ==========================================================
   Reset ja dokumentti
   ========================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	min-width: 320px;
	min-height: 100%;
	margin: 0;
	padding: 0;
	color: var(--hkkk-text);
	background: var(--hkkk-background);
	font-family: var(--hkkk-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

form {
	min-height: 100vh;
	margin: 0;
}

img,
svg {
	display: block;
	max-width: 100%;
}

button,
input,
select,
textarea {
	max-width: 100%;
	font: inherit;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

th {
	text-align: left;
}

hr {
	border: 0;
	height: 1px;
	margin: 24px 0;
	background: var(--hkkk-border-light);
}


/* ==========================================================
   Sivun päärakenne
   ========================================================== */

.hkkk-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.hkkk-main {
	flex: 1 0 auto;
	width: 100%;
}

.hkkk-content {
	width: min(calc(100% - 48px), var(--hkkk-content-width));
	margin: 0 auto;
	padding: 46px 0 72px;
}

/* Kirjautumissivu: kapeampi sisältö logon alle */
.hkkk-login-page .hkkk-content {
	width: min(calc(100% - 48px), 760px);
	margin: 0 auto;

}

/* ==========================================================
   Yläpalkki
   ========================================================== */

.hkkk-header {
	position: relative;
	z-index: 20;
	flex: 0 0 auto;
	width: 100%;
}

.hkkk-header__bar {
	min-height: 72px;
	margin: 6px 12px 0;
	color: #ffffff;
	background: var(--hkkk-green-700);
}

.hkkk-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: min(calc(100% - 24px), 1400px);
	min-height: 72px;
	margin: 0 auto;
}

.hkkk-header__logo-link {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: #ffffff;
	text-decoration: none;
}

.hkkk-header__logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}


/* ==========================================================
   Kirjautumissivu: iso keskitetty logo
   ========================================================== */

.hkkk-login-page .hkkk-header {
	min-height: 235px;
}

.hkkk-login-page .hkkk-header__logo-link {
	top: 18px;
	left: 50%;
	width: 347px;
	height: 173px;
	transform: translateX(-50%);
}

.hkkk-login-page .hkkk-content {
	padding-top: 28px;
}


/* ==========================================================
   Kirjautunut sivu: pieni vasemman reunan logo
   ========================================================== */

.hkkk-authenticated-page .hkkk-header {
	min-height: 125px;
}

.hkkk-authenticated-page .hkkk-header__logo-link {
	top: 18px;
	left: 20px;
	width: 180px;
	height: 97px;
	transform: none;
}


/* ==========================================================
   Yläpalkin toiminnot
   ========================================================== */

.hkkk-header__actions {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 72px;
	margin-left: auto;
	font-size: 12px;
}



.hkkk-header__user {
	overflow: hidden;
	max-width: 220px;
	color: #ffffff;
	font-family: var(--hkkk-font-body);
	font-size: 12px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ==========================================================
   Yläpalkin hover-pudotusvalikot
   ========================================================== */

.hkkk-header-menu {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 72px;
}

/*
 * Valikko on oletuksena piilossa.
 */
.hkkk-header-menu__dropdown {
	position: absolute;
	z-index: 1000;
	top: calc(100% - 8px);
	right: 0;
	display: none;
	min-width: 180px;
	padding: 6px 0;
	color: var(--hkkk-text-strong);
	background: #ffffff;
	border: 1px solid var(--hkkk-border);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/*
 * Avataan hiirellä tai näppäimistöfokuksella.
 */
.hkkk-header-menu:hover .hkkk-header-menu__dropdown {
	display: block;
}

.hkkk-header-menu__trigger {
	display: inline-flex;
	align-items: center;

	min-height: 44px;
	padding: 0;
	color: #ffffff;
	background: transparent;
	border: 0;
	font-family: var(--hkkk-font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}



	.hkkk-header-menu__trigger:hover {
		color: #ffffff;
		text-decoration: underline;
	}

	.hkkk-header-menu__trigger:focus-visible {
		outline: 3px solid var(--hkkk-focus);
		outline-offset: 2px;
	}

.hkkk-header-menu__trigger--profile {
	font-weight: 600;
}

.hkkk-header__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-right: 6px;
	flex: 0 0 24px;
}

	.hkkk-header__icon svg {
		width: 24px;
		height: 24px;
	}

.hkkk-header-menu__arrow {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 2px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform var(--hkkk-transition);
}

.hkkk-header-menu:hover .hkkk-header-menu__arrow {
	transform: rotate(225deg) translate(-1px, -1px);
}

.hkkk-header-menu__arrow {
	display: none;
}

.hkkk-header-menu__item {
	display: block;
	width: 100%;
	min-height: auto;
	padding: 10px 14px;
	color: var(--hkkk-text-strong);
	background: #ffffff;
	border: 0;
	font-family: var(--hkkk-font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

	.hkkk-header-menu__item:visited {
		color: var(--hkkk-text-strong);
	}

	.hkkk-header-menu__item:hover,
	.hkkk-header-menu__item:focus-visible {
		color: var(--hkkk-text-strong);
		background: var(--hkkk-green-100);
		text-decoration: none;
		outline-offset: -2px;
	}

a.hkkk-header-menu__item,
a.hkkk-header-menu__item:visited {
	color: var(--hkkk-text-strong);
}
/* ==========================================================
   Typografia
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	margin-bottom: 0.6em;
	color: var(--hkkk-text-strong);
	font-family: var(--hkkk-font-heading);
	font-weight: 600;
	line-height: 1.3;
}

h1 {
	font-size: 32px;
}

h2 {
	font-size: 24px;
}

h3 {
	font-size: 20px;
}

h4 {
	font-size: 18px;
}

h5 {
	font-size: 16px;
}

h6 {
	font-size: 16px;
}

p {
	margin: 0 0 16px;
	font-family: var(--hkkk-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

small,
.hkkk-text-small {
	font-family: var(--hkkk-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.hkkk-text-xs {
	font-family: var(--hkkk-font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
}

a {
	color: var(--hkkk-green-700);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

	a:visited {
		color: var(--hkkk-green-700);
	}

	a:hover {
		color: #38581a;
	}

	a:active {
		color: #294113;
	}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
	outline: none;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
	outline: 3px solid var(--hkkk-focus);
	outline-offset: 2px;
}


/* ==========================================================
   Yleinen lomakekortti
   ========================================================== */

.hkkk-panel,
.form-panel,
.login-panel,
.application-panel {
	width: 100%;
	max-width: var(--hkkk-form-width);
	margin-bottom: 42px;
	padding: 22px 24px 26px;
	background: var(--hkkk-surface);
	border: 1px solid var(--hkkk-border);
}

.hkkk-panel__heading,
.form-panel__heading {
	margin: 0 0 20px;
	padding: 0 0 13px;
	border-bottom: 1px solid var(--hkkk-border);
	font-family: var(--hkkk-font-heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}


/* ==========================================================
   Lomakekentät
   ========================================================== */

.hkkk-field,
.form-row {
	margin-bottom: 18px;
}

	.hkkk-field:last-child,
	.form-row:last-child {
		margin-bottom: 0;
	}

label,
.hkkk-label {
	display: block;
	margin-bottom: 6px;
	color: var(--hkkk-text-strong);
	font-family: var(--hkkk-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.hkkk-required {
	margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	color: var(--hkkk-text);
	background: #ffffff;
	border: 1px solid #bfc8b5;
	border-radius: var(--hkkk-radius);
	font-family: var(--hkkk-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	transition: border-color var(--hkkk-transition), box-shadow var(--hkkk-transition);
}

	input[type="text"]:hover,
	input[type="email"]:hover,
	input[type="password"]:hover,
	input[type="tel"]:hover,
	input[type="number"]:hover,
	input[type="date"]:hover,
	input[type="search"]:hover,
	select:hover,
	textarea:hover {
		border-color: var(--hkkk-green-700);
	}

	input[type="text"]:focus,
	input[type="email"]:focus,
	input[type="password"]:focus,
	input[type="tel"]:focus,
	input[type="number"]:focus,
	input[type="date"]:focus,
	input[type="search"]:focus,
	select:focus,
	textarea:focus {
		border-color: var(--hkkk-green-700);
		outline: 2px solid rgba(79, 119, 38, 0.2);
		outline-offset: 0;
	}

textarea {
	min-height: 120px;
	resize: vertical;
}

select {
	padding-right: 16px;
	background-color: #ffffff;
}

input[type="checkbox"],
input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	accent-color: var(--hkkk-green-700);
	vertical-align: middle;
}

input:disabled,
select:disabled,
textarea:disabled {
	color: #777777;
	background: #eeeeee;
	cursor: not-allowed;
	opacity: 1;
}

.hkkk-field-hint {
	margin-top: 5px;
	color: var(--hkkk-text-muted);
	font-family: var(--hkkk-font-body);
	font-size: 12px;
	font-weight: 400;
}


/* ==========================================================
   Virheet
   ========================================================== */

.skr-field-error,
.hkkk-field-error {
	display: block;
	margin-top: 5px;
	color: var(--hkkk-error);
	font-family: var(--hkkk-font-body);
	font-size: 14px;
	font-weight: 600;
}

.skr-form-error-summary,
.hkkk-error-summary {
	max-width: var(--hkkk-form-width);
	margin: 0 0 24px;
	padding: 16px 18px;
	color: #7a1b13;
	background: var(--hkkk-error-background);
	border: 1px solid var(--hkkk-error);
	border-left-width: 4px;
}

.skr-form-error-summary-title,
.hkkk-error-summary__title {
	margin-bottom: 8px;
	font-family: var(--hkkk-font-body);
	font-size: 16px;
	font-weight: 700;
}

.skr-form-error-summary ul,
.hkkk-error-summary ul {
	margin: 0;
	padding-left: 21px;
}

.input-validation-error,
.hkkk-input-error,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
	border-color: var(--hkkk-error);
}


/* ==========================================================
   Painikkeet
   ========================================================== */

input[type="submit"],
input[type="button"],
button,
.hkkk-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 18px;
	color: #ffffff;
	background: var(--hkkk-green-700);
	border: 1px solid var(--hkkk-green-700);
	border-radius: var(--hkkk-radius);
	font-family: var(--hkkk-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: color var(--hkkk-transition), background-color var(--hkkk-transition), border-color var(--hkkk-transition);
}

	input[type="submit"]:hover,
	input[type="button"]:hover,
	button:hover,
	.hkkk-button:hover {
		color: #ffffff;
		background: #3d601d;
		border-color: #3d601d;
		text-decoration: none;
	}

	input[type="submit"]:disabled,
	input[type="button"]:disabled,
	button:disabled,
	.hkkk-button[aria-disabled="true"] {
		color: #777777;
		background: #eeeeee;
		border-color: #dddddd;
		cursor: not-allowed;
	}

.hkkk-button--secondary {
	color: var(--hkkk-text-strong);
	background: #ffffff;
	border-color: var(--hkkk-border);
}

	.hkkk-button--secondary:hover {
		color: var(--hkkk-text-strong);
		background: #f2f2f2;
		border-color: #bdbdbd;
	}

.hkkk-button--danger {
	color: #ffffff;
	background: var(--hkkk-error);
	border-color: var(--hkkk-error);
}


/* ==========================================================
   Taulukot
   ========================================================== */

.hkkk-table-wrapper {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.hkkk-table,
table.hkkk-table {
	width: 100%;
	color: var(--hkkk-text);
	background: #ffffff;
	font-family: var(--hkkk-font-body);
	font-size: 14px;
	font-weight: 400;
}

	.hkkk-table th,
	.hkkk-table td {
		padding: 8px 12px;
		border-bottom: 1px solid var(--hkkk-border-light);
		text-align: left;
		vertical-align: top;
	}

	.hkkk-table th {
		color: var(--hkkk-text-strong);
		font-weight: 600;
	}

	.hkkk-table tbody tr:hover {
		background: #fafcf7;
	}


/* ==========================================================
   Footer
   ========================================================== */

.hkkk-footer {
	flex: 0 0 auto;
	margin: 0 12px 12px;
	color: var(--hkkk-text);
	background: var(--hkkk-green-100);
}

.hkkk-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 100%;
	min-height: 50px;
	padding: 12px 22px;
	font-family: var(--hkkk-font-body);
	font-size: 12px;
	font-weight: 400;
}

.hkkk-footer__support {
	min-width: 0;
}

.hkkk-footer__links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
}

	.hkkk-footer__links > * {
		padding: 0 22px;
		border-left: 1px solid rgba(79, 119, 38, 0.12);
		white-space: nowrap;
	}

	.hkkk-footer__links > :first-child {
		border-left: 0;
	}

.hkkk-footer__provider {
	color: var(--hkkk-text-muted);
}


/* ==========================================================
   Apuluokat
   ========================================================== */

.hkkk-visually-hidden {
	position: absolute !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.hkkk-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.hkkk-divider {
	height: 1px;
	margin: 24px 0;
	background: var(--hkkk-border-light);
	border: 0;
}


/* ==========================================================
   Tabletti
   ========================================================== */

@media (max-width: 900px) {
	.hkkk-content {
		width: min(calc(100% - 40px), var(--hkkk-content-width));
		padding-top: 38px;
	}

	/* Kirjautumissivun isoa logoa ei pienennetä tabletissa liikaa */

	.hkkk-login-page .hkkk-header {
		min-height: 225px;
	}

	.hkkk-login-page .hkkk-header__logo-link {
		top: 18px;
		width: min(347px, calc(100vw - 40px));
		height: auto;
		aspect-ratio: 347 / 173;
	}

	.hkkk-authenticated-page .hkkk-header {
		min-height: 120px;
	}

	.hkkk-authenticated-page .hkkk-header__logo-link {
		top: 16px;
		left: 20px;
		width: 180px;
		height: 97px;
	}

	.hkkk-header__actions {
		gap: 18px;
	}

	.hkkk-header__user {
		max-width: 160px;
	}

	.hkkk-footer__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.hkkk-footer__links {
		justify-content: flex-start;
	}

		.hkkk-footer__links > :first-child {
			padding-left: 0;
		}
}


/* ==========================================================
   Mobiili
   ========================================================== */

@media (max-width: 640px) {
	.hkkk-header__bar {
		min-height: 56px;
		margin: 0;
	}

	.hkkk-header__inner {
		width: 100%;
		min-height: 56px;
		padding: 0 16px;
	}


	/* Login: iso logo pysyy keskitettynä */

	.hkkk-login-page .hkkk-header {
		min-height: 205px;
	}

	.hkkk-login-page .hkkk-header__logo-link {
		top: 14px;
		left: 50%;
		width: min(347px, calc(100vw - 32px));
		height: auto;
		aspect-ratio: 347 / 173;
		transform: translateX(-50%);
	}

	.hkkk-login-page .hkkk-content {
		padding-top: 22px;
	}


	/* Kirjautunut sivu: 180 × 97 logo */

	.hkkk-authenticated-page .hkkk-header {
		min-height: 112px;
	}

	.hkkk-authenticated-page .hkkk-header__logo-link {
		top: 8px;
		left: 12px;
		width: 180px;
		height: 97px;
	}

	.hkkk-header__actions {
		gap: 12px;
		min-height: 56px;
		margin-left: auto;
	}

	.hkkk-header__user {
		display: none;
	}

	.hkkk-header__logout-text {
		display: none;
	}

	.hkkk-content {
		width: 100%;
		padding: 28px 16px 48px;
	}

	h1 {
		font-size: 28px;
		line-height: 1.3;
	}

	h2 {
		font-size: 22px;
	}

	h3 {
		font-size: 20px;
	}

	h4 {
		font-size: 18px;
	}

	h5 {
		font-size: 17px;
	}

	h6 {
		font-size: 16px;
	}

	.hkkk-panel,
	.form-panel,
	.login-panel,
	.application-panel {
		width: 100%;
		max-width: none;
		margin-right: 0;
		margin-left: 0;
		padding: 18px 16px 22px;
	}

	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="tel"],
	input[type="number"],
	input[type="date"],
	input[type="search"],
	select,
	textarea {
		min-height: 44px;
	}

	input[type="submit"],
	input[type="button"],
	button,
	.hkkk-button {
		min-height: 44px;
	}

	.hkkk-actions {
		align-items: stretch;
		flex-direction: column;
	}

		.hkkk-actions > * {
			width: 100%;
		}

	.hkkk-footer {
		margin: 0;
	}

	.hkkk-footer__inner {
		padding: 18px 16px;
	}

	.hkkk-footer__links {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

		.hkkk-footer__links > * {
			padding: 0;
			border-left: 0;
		}

	.hkkk-header-menu {
		min-height: 56px;
	}

	.hkkk-header-menu__trigger {
		min-height: 44px;
	}

	.hkkk-header-menu__trigger--profile .hkkk-header__user {
		display: none;
	}

	.hkkk-header-menu__dropdown {
		top: 100%;
		right: 0;
	}

}


/* ==========================================================
   Pieni mobiili
   ========================================================== */

@media (max-width: 380px) {
	.hkkk-header__inner {
		padding-right: 12px;
		padding-left: 12px;
	}

	.hkkk-header__actions {
		gap: 10px;
	}

	.hkkk-content {
		padding-right: 12px;
		padding-left: 12px;
	}

	.hkkk-panel,
	.form-panel,
	.login-panel,
	.application-panel {
		padding-right: 13px;
		padding-left: 13px;
	}
}


/* ==========================================================
   Tulostus
   ========================================================== */

@media print {
	body {
		color: #000000;
		background: #ffffff;
	}

	.hkkk-header,
	.hkkk-footer,
	.hkkk-actions,
	input[type="submit"],
	input[type="button"],
	button {
		display: none !important;
	}

	.hkkk-content {
		width: 100%;
		max-width: none;
		padding: 0;
	}

	a {
		color: #000000;
		text-decoration: none;
	}
}

/* ==========================================================
   Kirjautumislomake
   ========================================================== */

.hkkk-login-panel {
	width: 100%;
	max-width: 760px;
	margin: 32px 0 0;
	padding: 24px;
	color: var(--hkkk-text);
	background: #fafafa;
	border: 1px solid var(--hkkk-border);
	font-family: var(--hkkk-font-body);
}

.hkkk-login-panel__heading {
	margin: 0 0 22px;
	padding: 0 0 12px;
	color: var(--hkkk-text-strong);
	border-bottom: 1px solid var(--hkkk-border);
	font-family: var(--hkkk-font-heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.hkkk-login-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
	align-items: start;
	gap: 72px;
}

.hkkk-login-fields {
	min-width: 0;
}

.hkkk-login-field {
	margin-bottom: 18px;
}

.hkkk-login-label {
	display: block;
	margin-bottom: 6px;
	color: var(--hkkk-text-strong);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.hkkk-login-input {
	display: block;
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	color: var(--hkkk-text);
	background: #ffffff;
	border: 1px solid #bfc8b5;
	border-radius: 0;
	font-family: var(--hkkk-font-body);
	font-size: 16px;
	font-weight: 400;
}

	.hkkk-login-input:hover {
		border-color: var(--hkkk-green-700);
	}

	.hkkk-login-input:focus {
		border-color: var(--hkkk-green-700);
		outline: 2px solid rgba(79, 119, 38, 0.2);
		outline-offset: 0;
	}

.hkkk-login-button {
	min-height: 40px;
	margin-top: 0;
	padding: 8px 18px;
	color: #ffffff !important;
	background: #000000 !important;
	border: 1px solid #000000 !important;
	border-radius: 0;
	font-family: var(--hkkk-font-body);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

	.hkkk-login-button:hover {
		background: #222222 !important;
		border-color: #222222 !important;
		color: #ffffff !important;
	}

.hkkk-login-help {
	padding-top: 38px;
	color: var(--hkkk-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

	.hkkk-login-help p {
		margin: 0 0 34px;
		font-size: inherit;
		line-height: inherit;
	}

		.hkkk-login-help p:last-child {
			margin-bottom: 0;
		}

.hkkk-login-link {
	color: var(--hkkk-green-700);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hkkk-login-error {
	display: block;
	margin-top: 5px;
	color: var(--hkkk-error);
	font-size: 14px;
	font-weight: 600;
}

.hkkk-login-failure {
	display: none;
}

	.hkkk-login-failure:not(:empty) {
		display: block;
		margin: 0 0 18px;
		padding: 10px 12px;
		color: #7a1b13;
		background: var(--hkkk-error-background);
		border: 1px solid var(--hkkk-error);
		font-size: 14px;
		font-weight: 600;
	}


/* ==========================================================
   Rekisteröitymislomake
   ========================================================== */

.hkkk-register-wizard {
	border-collapse: separate !important;
}


	/* Wizardin ulompi sisältöalue */
	.hkkk-register-wizard > tbody > tr > td {
		padding: 28px 32px !important;
	}


		/* Sisempi lomaketaulukko */
		.hkkk-register-wizard > tbody > tr > td > table {
			border-collapse: separate;
			border-spacing: 0 8px;
		}


			/* Label-sarake */
			.hkkk-register-wizard > tbody > tr > td > table > tbody > tr > td:first-child {
				padding-right: 16px;
				vertical-align: middle;
			}


			/* Kenttäsarake */
			.hkkk-register-wizard > tbody > tr > td > table > tbody > tr > td:nth-child(2) {
				padding-top: 2px;
				padding-bottom: 2px;
				vertical-align: middle;
			}


	/* Tekstikentät */
	.hkkk-register-wizard input[type="text"],
	.hkkk-register-wizard input[type="password"],
	.hkkk-register-wizard input[type="email"] {
		width: 220px !important;
		height: 36px;
		min-height: 36px;
		padding: 4px 8px;
		color: var(--hkkk-text);
		background: #ffffff;
		border: 1px solid #bfc8b5;
		border-radius: 0;
		box-sizing: border-box;
		font-family: var(--hkkk-font-body);
		font-size: 14px;
		font-weight: 400;
	}


		/* Kenttien hover */
		.hkkk-register-wizard input[type="text"]:hover,
		.hkkk-register-wizard input[type="password"]:hover,
		.hkkk-register-wizard input[type="email"]:hover {
			border-color: var(--hkkk-green-700);
		}


		/* Kenttien fokus */
		.hkkk-register-wizard input[type="text"]:focus,
		.hkkk-register-wizard input[type="password"]:focus,
		.hkkk-register-wizard input[type="email"]:focus {
			border-color: var(--hkkk-green-700);
			outline: 2px solid rgba(79, 119, 38, 0.2);
			outline-offset: 0;
		}


	/* Kaikkien painikkeiden yhteiset asetukset */
	.hkkk-register-wizard input[type="submit"] {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		height: 40px;
		min-height: 40px;
		min-width: 110px;
		margin-top: 8px;
		margin-right: 8px;
		padding: 0 18px;
		border-radius: 0;
		font-family: var(--hkkk-font-body) !important;
		font-size: 15px;
		font-weight: 600 !important;
		line-height: 1.2;
		text-align: center;
		cursor: pointer;
	}


	/* Luo tunnus */
	.hkkk-register-wizard input[id$="btnLuo"] {
		color: #ffffff !important;
		background: #000000 !important;
		border: 1px solid #000000 !important;
	}

		.hkkk-register-wizard input[id$="btnLuo"]:hover {
			color: #ffffff !important;
			background: #222222 !important;
			border-color: #222222 !important;
		}


	/* Peruuta */
	.hkkk-register-wizard input[id$="btnPeruuta"] {
		color: #000000 !important;
		background: #ffffff !important;
		border: 1px solid #000000 !important;
	}

		.hkkk-register-wizard input[id$="btnPeruuta"]:hover {
			color: #000000 !important;
			background: #f5f5f5 !important;
			border-color: #000000 !important;
		}

@media (max-width: 700px) {
	.hkkk-login-panel {
		max-width: none;
		margin-top: 24px;
		padding: 20px 16px 24px;
	}

	.hkkk-login-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.hkkk-login-help {
		padding-top: 0;
	}

		.hkkk-login-help p {
			margin-bottom: 18px;
		}

	.hkkk-login-button {
		min-height: 44px;
	}
}

.hkkk-field .hkkk-radio-group {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px 24px;
	width: 100%;
	margin: 0;
	padding: 0;
}

	.hkkk-field .hkkk-radio-group .hkkk-radio-option {
		display: inline-flex !important;
		flex: 0 0 auto !important;
		align-items: center;
		justify-content: flex-start;
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		font-size: 16px;
		font-weight: 400 !important;
		line-height: 1.4;
		cursor: pointer;
	}

		.hkkk-field .hkkk-radio-group .hkkk-radio-option span {
			display: inline;
			width: auto;
			margin: 0;
			padding: 0;
			font-weight: 400 !important;
		}

		.hkkk-field .hkkk-radio-group .hkkk-radio-option input[type="radio"] {
			flex: 0 0 auto;
			width: 18px;
			height: 18px;
			margin: 0 8px 0 0 !important;
			padding: 0;
		}