/*
Theme Name: Hyvinkään järjestötalo by Pencil
Theme URI: https://hyvinkaanjarjestotalo.fi/
Author: Hyvinkään järjestötalo
Description: Hyvinkään järjestötalon oma teema. Ulkoasu on koodattu teemaan, ja sivujen tekstit ja kuvat muokataan suoraan sivulla Pencil by Rino -lisäosalla. Ei sivunrakentajia.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hyvinkaan-jarjestotalo
*/

/* ---------------------------------------------------------------
   Tokens
--------------------------------------------------------------- */
:root {
	--hjt-red: #d11818;
	--hjt-red-btn: #d11719;
	--hjt-accent: #e2564d;
	--hjt-text: #5f656c;
	--hjt-dark: #1a1a1a;
	--hjt-black: #070707;
	--hjt-grey-bg: #ededed;
	--hjt-light-bg: #f6f7f8;
	--hjt-menu: rgba(25, 24, 24, 0.72);
	--hjt-menu-active: #d62222;
	--hjt-heading-font: "Poppins", sans-serif;
	--hjt-body-font: "Roboto", sans-serif;
	--hjt-container: 1200px;
	--hjt-gutter: 20px;
}

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

html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--hjt-text);
	font-family: var(--hjt-body-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.85714;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) img { max-width: 100%; height: auto; }

:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) a { color: var(--hjt-text); text-decoration: none; transition: color .2s; }
:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) a:hover, :where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) a:focus { color: #de463b; }

:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) p { margin: 0 0 18px; }
.pencil-richtext { display: flow-root; }

:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) :is(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	font-family: var(--hjt-heading-font);
	font-weight: 600;
	color: var(--hjt-dark);
	overflow-wrap: break-word;
}
:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h1 { font-size: 48px; line-height: 1.4; color: var(--hjt-red); }
:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h2 { font-size: 32px; line-height: 1.3; color: var(--hjt-red); }
:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h3 { font-size: 24px; line-height: 1.3; color: var(--hjt-red); }
:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h4 { font-size: 20px; line-height: 1.2; }
:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h5 { font-size: 18px; line-height: 1.2; }
:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h6 { font-size: 12px; line-height: 1.25; }

:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) ul { margin: 0; padding: 0; list-style: none; }
:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) figure { margin: 0; }

:focus-visible { outline: 2px dotted currentColor; outline-offset: 2px; }

.hjt-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.hjt-skip-link {
	position: absolute; left: 8px; top: -60px; z-index: 1000;
	padding: 10px 16px; background: #fff; color: var(--hjt-dark);
}
.hjt-skip-link:focus { top: 8px; }

/* ---------------------------------------------------------------
   Layout helpers
--------------------------------------------------------------- */
.hjt-container {
	width: 100%;
	max-width: var(--hjt-container);
	margin-left: auto;
	margin-right: auto;
}
.hjt-stack,
.hjt-flow { display: flex; flex-direction: column; gap: 20px; }
.hjt-stack > *,
.hjt-flow > * { min-width: 0; }
.hjt-center { text-align: center; }
.hjt-tight { margin-top: -4px; margin-bottom: 4px; }
.hjt-spacer { height: 50px; }

.hjt-cols { display: grid; grid-template-columns: 1fr; }
.hjt-cols--2 { grid-template-columns: 1fr 1fr; }
.hjt-cols--3 { grid-template-columns: repeat(3, 1fr); }
.hjt-cols--1-2 { grid-template-columns: 1fr 2fr; }
.hjt-cols--2-1 { grid-template-columns: 2fr 1fr; }
.hjt-cols > * { min-width: 0; padding: 10px; }
.hjt-cols--wide > * { padding: 30px; }

.hjt-section { padding: 0; }
.hjt-section > .hjt-container { padding: 10px; }

.hjt-vline {
	display: block;
	width: 1px;
	margin: 0 auto;
	background: var(--hjt-accent);
}
.hjt-vline--48 { height: 48px; margin-bottom: 40px; }
.hjt-vline--64 { height: 64px; }

/* Fixed image frames: the frame owns the size, the image is cropped into it */
.hjt-frame { overflow: hidden; }
.hjt-frame img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.hjt-btn {
	display: inline-block;
	padding: 12px 24px;
	border: 1px solid #fff;
	border-radius: 8px;
	background: #fff;
	color: var(--hjt-dark);
	font-family: var(--hjt-heading-font);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center;
	transition: background-color .3s, color .3s, border-color .3s;
}
.hjt-btn:hover, .hjt-btn:focus { color: #fff; background: rgba(255, 255, 255, 0); }

.hjt-btn--white:hover, .hjt-btn--white:focus { color: #fff; background: transparent; border-color: #fff; }

.hjt-btn--ghost-light { background: transparent; color: #fff; }
.hjt-btn--ghost-light:hover, .hjt-btn--ghost-light:focus { background: #fff; color: var(--hjt-dark); }

.hjt-btn--ghost-dark { background: transparent; color: var(--hjt-dark); border-color: var(--hjt-dark); }
.hjt-btn--ghost-dark:hover, .hjt-btn--ghost-dark:focus { background: var(--hjt-dark); color: #fff; }

.hjt-btn--red { background: var(--hjt-red-btn); color: #fff; }
.hjt-btn--red:hover, .hjt-btn--red:focus { background: #090909; color: #fff; }

.hjt-btn--large { font-size: 22px; background: #c90c0c; }

.hjt-btn--red-bright { background: #de1919; color: #fff; }
.hjt-btn--red-bright:hover, .hjt-btn--red-bright:focus { background: #090909; color: #fff; }

.hjt-btn--dance { background: #e61212; color: #fcfcfc; }
.hjt-btn--dance:hover, .hjt-btn--dance:focus { background: #8f0b0b; color: #fcf7f7; }

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */
.hjt-header { position: relative; z-index: 50; background: #fff; }
.hjt-header__brand { border-bottom: 1px solid #eaeaea; }
.hjt-header__brand-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 18px 20px;
}
.hjt-logo { display: block; width: 190px; line-height: 0; }
.hjt-logo img { display: block; width: 190px; height: auto; }

.hjt-header__nav { background: #fff; }
.hjt-header__nav .hjt-container { display: flex; justify-content: flex-end; }
.hjt-nav__region { display: block; }

.hjt-menu { display: flex; align-items: stretch; height: 70px; }
.hjt-menu > li { position: relative; display: flex; }
.hjt-menu a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 18px;
	color: var(--hjt-menu);
	font-family: var(--hjt-body-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 70px;
	text-transform: uppercase;
	white-space: nowrap;
}
.hjt-menu a:hover,
.hjt-menu > li:hover > a,
.hjt-menu .current-menu-item > a,
.hjt-menu .current-menu-ancestor > a,
.hjt-menu .current_page_item > a { color: var(--hjt-menu-active); }

.hjt-icon { display: inline-flex; line-height: 0; }
.hjt-icon svg { width: 1em; height: 1em; fill: currentColor; }
.hjt-menu a .hjt-icon svg { width: 11px; height: 11px; }

.hjt-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	width: 240px;
	border-top: 2px solid var(--hjt-accent);
	background: #fff;
	box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.hjt-menu > li:hover > .sub-menu,
.hjt-menu > li:focus-within > .sub-menu,
.hjt-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hjt-menu .sub-menu a {
	padding: 16.2px 18px;
	border-bottom: 1px solid #eaeaea;
	color: var(--hjt-text);
	line-height: 1.45;
	white-space: normal;
}
.hjt-menu .sub-menu a:hover, .hjt-menu .sub-menu .current-menu-item > a { color: #1a1a1a; }

.hjt-submenu-toggle,
.hjt-menu-toggle {
	display: none;
	padding: 0;
	border: 0;
	background: none;
	color: var(--hjt-dark);
	cursor: pointer;
}

/* ---------------------------------------------------------------
   Page hero (inner pages)
--------------------------------------------------------------- */
.hjt-main { display: block; }

.hjt-page-hero {
	position: relative;
	margin-top: 29px;
	padding: 240px 0;
	overflow: hidden;
	background: var(--hjt-dark);
	text-align: center;
}
.hjt-page-hero__media,
.hjt-page-hero__media::after { position: absolute; inset: 0; }
.hjt-page-hero__media::after { content: ""; background: rgba(26, 26, 26, .128); }
.hjt-page-hero--dark .hjt-page-hero__media::after { background: rgba(26, 26, 26, .65); }
.hjt-page-hero--plain .hjt-page-hero__media::after { background: rgba(26, 26, 26, .64); }
.hjt-page-hero__media img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.hjt-page-hero__inner { position: relative; }
.hjt-page-hero__title { margin-bottom: 76px; color: #fff; font-size: 48px; line-height: 1.4; }

/* ---------------------------------------------------------------
   Call-to-action band
--------------------------------------------------------------- */
.hjt-cta-band { padding: 94px 0; background: #808080; text-align: center; }
.hjt-cta-band__inner { display: flex; flex-direction: column; gap: 20px; max-width: 700px; margin: 0 auto; padding: 10px; }
.hjt-cta-band__title { color: #fff; font-size: 48px; line-height: 1.3; }
.hjt-cta-band__subtitle { color: #000; font-size: 24px; }
.hjt-cta-band__text { color: #fff; }
.hjt-cta-band__text a { color: #fff; }
.hjt-cta-band__actions { margin-top: 20px; }

/* ---------------------------------------------------------------
   Front page
--------------------------------------------------------------- */
.hjt-home-hero {
	position: relative;
	margin-top: 29px;
	padding: 240px 0 100px;
	overflow: hidden;
	background: var(--hjt-dark);
}
.hjt-home-hero__slides,
.hjt-home-hero__slides::after,
.hjt-home-hero__slide { position: absolute; inset: 0; }
.hjt-home-hero__slides::after { content: ""; background: rgba(26, 26, 26, .128); }
.hjt-home-hero__slide { opacity: 0; animation: hjt-fade 10s infinite; }
.hjt-home-hero__slide:nth-child(2) { animation-delay: 5s; }
.hjt-home-hero__slide:first-child { opacity: 1; }
.hjt-home-hero__slide img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
@keyframes hjt-fade {
	0% { opacity: 0; }
	5% { opacity: 1; }
	50% { opacity: 1; }
	55% { opacity: 0; }
	100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hjt-home-hero__slide { animation: none; }
	.hjt-home-hero__slide:nth-child(2) { opacity: 0; }
}
.hjt-home-hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.hjt-home-hero__content { grid-column: 2; }
.hjt-home-hero__title { color: #fff; font-size: 48px; line-height: 1.4; }
.hjt-home-hero__text { margin-right: 16%; color: #c9cfd7; }

.hjt-home-info { padding: 104px 0; background: #fff; }
.hjt-home-info h4 { color: var(--hjt-dark); }

.hjt-icon-list li { display: flex; align-items: center; gap: 5px; padding-bottom: 0; line-height: 1.85714; }
.hjt-icon-list .hjt-icon { color: #db1717; font-size: 14px; width: 1.25em; }

.hjt-counters { display: flex; flex-wrap: wrap; }
.hjt-counter {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 200px;
	padding: 24px;
	background: rgba(26, 26, 26, .08);
	text-align: center;
}
.hjt-counter__number { font-family: var(--hjt-heading-font); font-size: 32px; font-weight: 600; line-height: 1; color: var(--hjt-text); }
.hjt-counter__title { margin-top: 5px; font-size: 11px; line-height: 2.5; letter-spacing: 1px; text-transform: uppercase; }

.hjt-frame--house { max-width: 500px; margin-left: auto; margin-right: auto; }

.hjt-home-services { padding: 0 0 50px; background: var(--hjt-grey-bg); }
.hjt-home-services > .hjt-container { display: flex; flex-direction: column; gap: 20px; padding: 0; }
.hjt-home-services__lead { color: var(--hjt-dark); }
.hjt-home-services__grid { margin-top: 44px; }
.hjt-home-services__grid > * { padding: 0; }
.hjt-service { display: flex; flex-direction: column; gap: 20px; }
.hjt-service__title { padding-left: 16px; border-left: 2px solid var(--hjt-accent); }
.hjt-service__text { padding: 0 48px 0 16px; }
.hjt-service__action { padding: 0 0 0 0; }

/* ---------------------------------------------------------------
   Vuokraus
--------------------------------------------------------------- */
.hjt-rent-intro { padding: 104px 0; }
.hjt-rent-intro .hjt-cols > * { padding: 10px; }
.hjt-kicker { color: var(--hjt-black); font-size: 19px; letter-spacing: 2px; text-transform: uppercase; }
.hjt-rent-intro .hjt-btn { margin-bottom: 0; }

.hjt-rent-contact { position: relative; margin-top: 48px; min-height: 536px; }
.hjt-rent-contact__media { position: absolute; inset: 0; overflow: hidden; }
.hjt-rent-contact__media img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.hjt-rent-contact__box {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 400px;
	padding: 40px 64px 40px 40px;
	background: #fff;
}
.hjt-rent-contact__box h2 { font-size: 32px; }

.hjt-rent-spaces { padding: 0; }
.hjt-rent-spaces .hjt-container { padding: 10px; }
.hjt-rent-spaces .hjt-container { display: flex; flex-direction: column; gap: 20px; }

.hjt-price-group .hjt-container { padding: 10px; }
.hjt-price-group .hjt-container { display: flex; flex-direction: column; gap: 20px; }
.hjt-price-group__lead { color: var(--hjt-black); font-weight: 700; }

.hjt-price-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	padding: 10px;
}

.hjt-price {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	padding: 35px;
	overflow: hidden;
	color: #fff;
	text-align: center;
	background: var(--hjt-price-bg);
	transition: background-color 1.5s;
}
.hjt-price:hover { background: var(--hjt-price-hover); }
.hjt-price--green { --hjt-price-bg: #23873d; --hjt-price-hover: #3c8b50; --hjt-ribbon: #d11719; }
.hjt-price--blue { --hjt-price-bg: #252387; --hjt-price-hover: #4c4abf; --hjt-ribbon: #d11719; }
.hjt-price--orange { --hjt-price-bg: #ba7e20; --hjt-price-hover: #986311; --hjt-ribbon: #3f3d3d; }
.hjt-price--magenta { --hjt-price-bg: #ba2097; --hjt-price-hover: #104095; --hjt-ribbon: #b0a4a4; }

.hjt-price__title { margin-bottom: 15px; color: #fff; font-size: 23px; line-height: 1.3; }
.hjt-price__desc { margin: 0 0 15px; color: #fff; }
.hjt-price__button {
	display: inline-block;
	padding: 12px 24px;
	border: 2px solid #fff;
	border-radius: 8px;
	color: #fff;
	font-family: var(--hjt-body-font);
	font-size: 20px;
	line-height: 1;
	transition: background-color .3s, color .3s;
}
.hjt-price__button:hover, .hjt-price__button:focus { background: #fff; color: var(--hjt-price-bg); }

.hjt-price__ribbon {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	width: 150px;
	height: 150px;
	overflow: hidden;
	transform: rotate(90deg);
	pointer-events: none;
}
.hjt-price__ribbon span {
	position: absolute;
	left: 0;
	width: 200%;
	margin-top: 35px;
	background: var(--hjt-ribbon);
	color: var(--hjt-text);
	font-family: var(--hjt-body-font);
	font-size: 25px;
	font-weight: 800;
	line-height: 50px;
	text-align: center;
	text-transform: uppercase;
	transform: translateY(-50%) translateX(-50%) translateX(35px) rotate(-45deg);
}
.hjt-price__ribbon span .pencil-field { pointer-events: auto; }

.hjt-price-feature { padding: 0 10px; }

.hjt-section--text .hjt-container { padding: 10px; }

/* Gallery (justified rows, ~200px tall) */
.hjt-section--gallery { padding-top: 40px; }
.hjt-section--gallery-page { padding: 50px 0 40px; }
.hjt-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.hjt-gallery::after { content: ""; flex-grow: 999; }
.hjt-gallery__item {
	flex: var(--r) 1 calc(var(--r) * 180px);
	overflow: hidden;
	cursor: zoom-in;
}
.hjt-gallery__item img { display: block; width: 100%; height: auto; transition: transform .3s; }
.hjt-gallery__item:hover img { transform: scale(1.03); }

.hjt-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(0, 0, 0, .87);
}
.hjt-lightbox[hidden] { display: none; }
.hjt-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hjt-lightbox button {
	position: absolute;
	border: 0;
	background: none;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	padding: 12px;
}
.hjt-lightbox__close { top: 10px; right: 14px; }
.hjt-lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.hjt-lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------
   Harrastukset
--------------------------------------------------------------- */
.hjt-clubs { padding: 93px 0 67px; }
.hjt-club__name { color: #d11818; }
.hjt-club__people li { color: #060606; font-family: Arial, Helvetica, sans-serif; font-size: 22px; font-weight: 500; line-height: 1.85714; }
.hjt-clubs__note { padding: 20px; }
.hjt-clubs__note p + p { margin-top: 33px; }
.hjt-spacer--25 { height: 25px; }
.hjt-spacer--31 { height: 31px; }
.hjt-spacer--0 { height: 0; }
.hjt-clubs__note p { margin-bottom: 18px; }

.hjt-promo { padding: 30px; background: #d11818; color: #fff; }
.hjt-promo__title { margin-bottom: 10px; color: #fff; font-size: 47px; line-height: 54px; }
.hjt-promo__text { margin-bottom: 20px; font-size: 18px; }
.hjt-promo__text p { color: #fff; }
.hjt-promo__button {
	display: inline-block;
	padding: 15px 22px;
	background: #070707;
	color: #fff;
	font-size: 15px;
	line-height: 1;
}
.hjt-promo__button:hover, .hjt-promo__button:focus { background: #313131; color: #fff; }

.hjt-frame--logo { width: 159px; margin: 0 auto; }

/* ---------------------------------------------------------------
   Tanssit
--------------------------------------------------------------- */
.hjt-dances { padding: 66px 0; }
.hjt-dances .hjt-container { display: flex; flex-direction: column; gap: 20px; }

/* ---------------------------------------------------------------
   Yhteystiedot
--------------------------------------------------------------- */
.hjt-contact > .hjt-container { padding: 0; }
.hjt-contact { padding-bottom: 104px; }
.hjt-contact__intro { padding: 154px 10px 66px; }
.hjt-contact__lead { max-width: 800px; margin-left: auto; margin-right: auto; font-size: 25px; line-height: 1.85714; text-align: center; }
.hjt-round-social {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(15px + 2 * .85em);
	height: calc(15px + 2 * .85em);
	border-radius: 50%;
	background: #000;
	color: #fff;
	font-size: 15px;
	transition: background-color .3s;
}
.hjt-round-social:hover, .hjt-round-social:focus { background: #e2564d; }
.hjt-round-social .pencil-button__text,
.hjt-footer__social .pencil-button__text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hjt-round-social__icon,
.hjt-footer__social-icon {
	display: block;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hjt-round-social__icon { width: 15px; height: 15px; }

.hjt-contact__boxes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid #f2f2f2;
	background: #fff;
}
.hjt-icon-box { padding: 26px 10px 45px; text-align: center; }
.hjt-icon-box__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2em;
	height: 2em;
	margin-bottom: 16px;
	border-radius: 50%;
	background: rgba(26, 26, 26, .08);
	color: var(--hjt-accent);
	font-size: 24px;
	line-height: 1;
}
.hjt-icon-box__icon .hjt-icon svg { width: .75em; height: .75em; }
.hjt-icon-box__title { margin-bottom: 8px; font-size: 30px; line-height: 1.2; }
.hjt-icon-box__text { font-size: 19px; line-height: 1.6; }
.hjt-icon-box__text p { margin: 0; }

.hjt-map { line-height: 0; }
.hjt-map iframe {
	width: 100%;
	height: 584px;
	border: 0;
	filter: contrast(95%) hue-rotate(340deg);
}

/* ---------------------------------------------------------------
   Johtokunta
--------------------------------------------------------------- */
.hjt-board { padding: 30px 0 20px; }
.hjt-board__group { margin-bottom: 90px; }
.hjt-board .hjt-cols { grid-template-columns: 72% 28%; }
.hjt-board__role {
	margin-bottom: 20px;
	padding: 15px 10px;
	border-radius: 10px;
	background: #20a837;
	color: #fdfdfd;
	font-size: 32px;
	line-height: 1.3;
}
.hjt-board__people li {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #050404;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.85714;
}
.hjt-board__people .hjt-icon { color: #1aa23b; font-size: 14px; }
.hjt-board__note { padding: 10px; }

/* ---------------------------------------------------------------
   Historiikki
--------------------------------------------------------------- */
.hjt-history { padding: 40px 0; }
.hjt-history__entry { padding: 10px 0 66px; }
.hjt-history__group { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; }
.hjt-history__entry--compact { padding: 0; }
.hjt-history__image { width: 50%; }

/* ---------------------------------------------------------------
   Posts (Muistelmia) and WordPress content
--------------------------------------------------------------- */
.hjt-posts { padding: 70px 0 122px; }
.hjt-posts__list { display: grid; gap: 20px; }
.hjt-post-card { padding: 30px; background: #f5f5f5; }
.hjt-post-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hjt-post-card__cats a,
.hjt-post-card__cat {
	display: inline-block;
	padding: 2px 8px;
	background: #e4e4e4;
	color: var(--hjt-text);
	font-size: 16px;
	line-height: 1.6;
}
.hjt-post-card__title { margin-top: 6px; font-size: 24px; line-height: 1.3; }
.hjt-post-card__title a { color: var(--hjt-red); }
.hjt-post-card__title a:hover { color: #de463b; }
.hjt-post-card__excerpt { font-size: 18px; line-height: 1.85714; }
.hjt-post-card__excerpt p { margin: 0; }
.hjt-post-card__more {
	display: inline-block;
	margin-top: 8px;
	padding: 8px 10px;
	border-radius: 3px;
	background: #5f656c;
	color: #fff;
	font-size: 17px;
	line-height: 1.2;
}
.hjt-post-card__more:hover, .hjt-post-card__more:focus { background: #1a1a1a; color: #fff; }

.hjt-content-area { padding: 29px 0 0; background: #f5f5f5; }
.hjt-content-area > .hjt-container { padding: 4em 0; }
.hjt-article { padding: 5.34em 6.67em; background: #fff; }
.hjt-article__title { margin-bottom: 10px; font-size: 30px; line-height: 1.3; }
.hjt-article__meta { margin-bottom: 30px; font-size: 16px; }
.hjt-article__meta a { color: var(--hjt-text); }
.hjt-prose { font-size: 16px; line-height: 1.85714; }
.hjt-prose img { height: auto; }
.hjt-prose a { color: var(--hjt-red); text-decoration: underline; }
.hjt-prose ul { list-style: disc; padding-left: 1.5em; margin-bottom: 18px; }
.hjt-prose ol { padding-left: 1.5em; margin-bottom: 18px; }
.hjt-prose h2, .hjt-prose h3, .hjt-prose h4 { margin: 1.2em 0 .6em; }
.hjt-post-nav { display: flex; justify-content: space-between; gap: 20px; padding: 2em 0 0; font-size: 16px; }
.hjt-archive-header { padding-bottom: 30px; }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.hjt-footer { position: relative; background: #000; color: #fff; }
.hjt-footer__arrow {
	position: absolute;
	top: 0;
	left: 50%;
	width: 24px;
	height: 13px;
	background: #c4d602;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transform: translateX(-50%);
}
.hjt-footer__top { padding: 65px 0 40px; }
.hjt-footer__contact { max-width: 600px; }
.hjt-footer__title { margin-bottom: 20px; color: #fff; font-size: 18px; font-weight: 500; line-height: 1.3; }
.hjt-footer__text p { color: #fff; }
.hjt-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 35px 10px 45px;
	border-top: 1px solid rgba(255, 255, 255, .21);
}
.hjt-footer__copy {
	margin: 0;
	color: rgba(255, 255, 255, .39);
	font-family: var(--hjt-heading-font);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.2;
}
.hjt-footer__social {
	position: relative;
	display: inline-flex;
	color: rgba(255, 255, 255, .45);
	transition: color .3s;
}
.hjt-footer__social:hover, .hjt-footer__social:focus { color: #00ce1b; }
.hjt-footer__social-icon { width: 39px; height: 39px; }

/* ---------------------------------------------------------------
   Tervetuloa (blank page)
--------------------------------------------------------------- */
.hjt-welcome { padding: 50px 20px; background: #e6e6e6; text-align: center; }
.hjt-welcome__inner { max-width: 1140px; margin: 0 auto; }
.hjt-welcome .hjt-frame { max-width: 1200px; margin: 20px auto 0; }

/* ---------------------------------------------------------------
   Pencil edit mode helpers
--------------------------------------------------------------- */
.hjt-price__ribbon .pencil-field { color: inherit; }

/* ---------------------------------------------------------------
   Tablet
--------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hjt-container { max-width: 1024px; }
	:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h1 { font-size: 30px; }
	:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h2 { font-size: 25px; }
	:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h3 { font-size: 20px; }

	.hjt-page-hero__title, .hjt-home-hero__title { font-size: 48px; }
	.hjt-home-hero__text { margin-right: 8%; }
	.hjt-home-info { padding: 80px 40px; }
	.hjt-home-info .hjt-cols { grid-template-columns: 1fr; }
	.hjt-home-services { padding: 80px 40px 0; }
	.hjt-service__text { padding-right: 24px; }
	.hjt-cta-band__title { font-size: 36px; }
	.hjt-counter { width: 50%; }

	.hjt-rent-contact__media { right: 0; }
	.hjt-price-grid { grid-template-columns: repeat(2, 1fr); }
	.hjt-promo__title { font-size: 35px; line-height: 1.2; }
	.hjt-article { padding: 3em 3.34em; }
	.hjt-content-area > .hjt-container { padding: 2em 20px; }
}

/* Header switches to a compact bar with a toggle */
@media (max-width: 921px) {
	.hjt-header__brand-inner { justify-content: space-between; min-height: 70px; padding: 10px 20px; }
	.hjt-logo, .hjt-logo img { width: 90px; }
	.hjt-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
	.hjt-menu-toggle .hjt-icon svg { width: 26px; height: 26px; }
	.hjt-menu-toggle__close { display: none; }
	.hjt-menu-toggle[aria-expanded="true"] .hjt-menu-toggle__open { display: none; }
	.hjt-menu-toggle[aria-expanded="true"] .hjt-menu-toggle__close { display: inline-flex; }

	.hjt-header__nav { display: none; border-bottom: 1px solid #eaeaea; }
	.hjt-header.is-open .hjt-header__nav { display: block; }
	.hjt-header__nav .hjt-container { display: block; }
	.hjt-menu { flex-direction: column; height: auto; }
	.hjt-menu > li { flex-wrap: wrap; }
	.hjt-menu a { flex: 1; padding: 0 20px; line-height: 52px; border-top: 1px solid #eaeaea; font-size: 16px; }
	.hjt-menu a .hjt-icon { display: none; }
	.hjt-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		border-top: 1px solid #eaeaea;
		color: var(--hjt-menu);
	}
	.hjt-submenu-toggle .hjt-icon svg { width: 14px; height: 14px; transition: transform .2s; }
	.hjt-submenu-toggle[aria-expanded="true"] .hjt-icon svg { transform: rotate(180deg); }
	.hjt-menu .sub-menu {
		position: static;
		display: none;
		flex-basis: 100%;
		width: 100%;
		border-top: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.hjt-menu > li.is-open > .sub-menu { display: block; }
	.hjt-menu .sub-menu a { padding: 0 20px 0 40px; line-height: 48px; border-bottom: 0; }

	.hjt-page-hero, .hjt-home-hero { margin-top: 0; }
}

/* ---------------------------------------------------------------
   Mobile
--------------------------------------------------------------- */
@media (max-width: 767px) {
	.hjt-container { max-width: 767px; }
	:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h1 { font-size: 24px; }
	:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h2 { font-size: 22px; }
	:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h3 { font-size: 20px; }
	:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h4 { font-size: 18px; }
	:where(.hjt-header, .hjt-main, .hjt-footer, .hjt-welcome) h5 { font-size: 16px; }

	.hjt-cols--2, .hjt-cols--3, .hjt-cols--1-2, .hjt-cols--2-1 { grid-template-columns: 1fr; }
	.hjt-cols--wide > * { padding: 10px; }

	.hjt-page-hero { padding: 120px 20px; }
	.hjt-page-hero__title { font-size: 34px; margin-bottom: 40px; }

	.hjt-home-hero { padding: 160px 24px 60px; }
	.hjt-home-hero__inner { grid-template-columns: 1fr; }
	.hjt-home-hero__content { grid-column: 1; }
	.hjt-home-hero__title { font-size: 32px; }
	.hjt-home-hero__text { margin-right: 0; }

	.hjt-home-info { padding: 64px 14px; }
	.hjt-home-services { padding: 64px 24px 20px; }
	.hjt-home-services h2 { text-align: center; }
	.hjt-home-services__grid { row-gap: 40px; }
	.hjt-counter { width: 50%; padding: 24px 10px; }

	.hjt-cta-band { padding: 64px 20px; }
	.hjt-cta-band__title { font-size: 30px; }

	.hjt-rent-intro { padding-top: 50px; }
	.hjt-rent-contact { min-height: 0; }
	.hjt-rent-contact__media { position: relative; aspect-ratio: 16 / 9; }
	.hjt-rent-contact__box { position: relative; width: 100%; padding: 30px 20px; }
	.hjt-price-grid { grid-template-columns: 1fr; }

	.hjt-contact__boxes { grid-template-columns: 1fr; }
	.hjt-contact__lead { font-size: 20px; }
	.hjt-map iframe { height: 400px; }

	.hjt-promo__title { font-size: 32px; }
	.hjt-history__image { width: 100%; }
	.hjt-board__role { font-size: 24px; }
	.hjt-board .hjt-cols { grid-template-columns: 1fr; }
	.hjt-board__people li { font-size: 20px; }
	.hjt-club__people li { font-size: 18px; }
	.hjt-contact__intro { padding-top: 60px; padding-bottom: 40px; }
	.hjt-contact { padding-bottom: 60px; }

	.hjt-gallery__item { flex-basis: calc(var(--r) * 120px); }

	.hjt-article { padding: 2em 1.4em; }
	.hjt-content-area > .hjt-container { padding: 1.5em 14px; }

	.hjt-footer__top { padding: 50px 20px 10px; }
	.hjt-footer__bottom { flex-direction: column; text-align: center; padding: 30px 20px 40px; }
}
