/*
Theme Name:   Helppokaluste Child
Description:  Helppokaluste.fi child theme.
Author:       Fixin Group Oy
Template:     kadence
Version:      1.0.0
Text Domain:  helppokaluste

BUILD V1 (Sintra HELPPOKALUSTE_VISUAL_BUILD_SPEC_v1.0, Creative
Director Lumi, 2026-08-10) — tämä on ensimmäinen kerta kun design-
tokenit tulevat hyväksytystä visuaalisesta spesifikaatiosta eikä
väliaikaisesta arvauksesta. Kaikki arvot alla on kopioitu suoraan
spesin OSA 1:stä.
*/

:root {
	/* OSA 1.1 — Värijärjestelmä */
	--hk-color-black:      #1C1C1A; /* Helppokaluste Black */
	--hk-color-warm-white: #F7F5F2; /* Warm White — pääpohja */
	--hk-color-stone:      #EDEAE5; /* Stone — vuorotteleva pohja */
	--hk-color-oak:        #A6753E; /* GLOBAL LINK AUDIT, kohta 7: virallinen brändin kultainen väri korvasi vanhan #8B6E4E:n. Muuttujan kautta - vain YKSI paikka koko CSS:ssä, ei hardcoded-arvoja muualla (tarkistettu). */
	--hk-color-gold:       #A6753E; /* Nimetty alias annetun ohjeen mukaan - sama arvo kuin --hk-color-oak, molemmat käytettävissä. */
	--hk-color-cta:        #2D6A4F; /* Action Green — ensisijainen CTA */
	--hk-color-cta-hover:  #235C42;
	--hk-color-text:       #1C1C1A; /* Near Black */
	--hk-color-text-muted: #6B6560; /* Muted */
	--hk-color-border:     #E5E2DC;
	--hk-color-whatsapp:   #25D366;

	/* Taustavärit vanhoilla nimillä (taaksepäinyhteensopivuus muille
	   template-osille, esim. footer, kunnes ne on kaikki päivitetty) */
	--hk-color-bg:          var(--hk-color-warm-white);
	--hk-color-bg-alt:      var(--hk-color-stone);
	--hk-color-accent:      var(--hk-color-oak);
	--hk-color-accent-dark: var(--hk-color-oak);
	--hk-color-footer-bg:   var(--hk-color-black);
	--hk-color-footer-text: var(--hk-color-warm-white);
	--hk-color-card-bg:     #FFFFFF;

	/* OSA 1.2 — Typografia */
	--hk-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	--hk-font-body:    'Inter', system-ui, -apple-system, sans-serif;

	/* OSA 1.3 — Muoto */
	--hk-radius-card: 12px;
	--hk-radius-btn:  6px;
	--hk-radius-tag:  4px;
	--hk-radius: var(--hk-radius-card); /* taaksepäinyhteensopivuus */

	/* OSA 1.5 — Spacing */
	--hk-block-pad-desktop: 96px;
	--hk-block-pad-tablet:  72px;
	--hk-block-pad-mobile:  56px;
	--hk-max-width: 1200px;
}

* { box-sizing: border-box; }

body {
	background: var(--hk-color-warm-white);
	color: var(--hk-color-text);
	font-family: var(--hk-font-body);
	font-size: 17px;
	line-height: 1.7;
	margin: 0;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
	font-family: var(--hk-font-heading);
	color: var(--hk-color-text);
	margin: 0 0 0.5em;
}
h1 { font-size: 56px; line-height: 1.1; font-weight: 700; }
h2 { font-size: 40px; line-height: 1.2; font-weight: 600; }
h3 { font-size: 26px; line-height: 1.3; font-weight: 600; }

.hk-lead { font-size: 20px; line-height: 1.6; }
.hk-label {
	font-size: 12px;
	line-height: 1.4;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--hk-color-oak);
}

/* YHTENÄISYYSKIERROS, kohta 6: TEST LAB -tunnus, nyt oikea logo.
   border-radius pieni, jotta se erottuu selvästi omana merkkinään
   eikä sula taustaan - "tunnus", ei koristekuva. */
.hk-test-lab-mark {
	display: inline-flex;
	margin-bottom: 8px;
}
.hk-test-lab-mark__img {
	display: block;
	border-radius: 6px;
}
.hk-test-lab-mark--large .hk-test-lab-mark__img { border-radius: 10px; }

a { color: var(--hk-color-cta); }

@media (max-width: 768px) {
	h1 { font-size: 36px; }
	h2 { font-size: 28px; }
	h3 { font-size: 20px; }
	.hk-lead { font-size: 18px; }
	body { font-size: 16px; }
}

.hk-container {
	max-width: var(--hk-max-width);
	margin: 0 auto;
	padding: 0 40px;
}
@media (max-width: 1024px) { .hk-container { padding: 0 24px; } }
@media (max-width: 600px)  { .hk-container { padding: 0 16px; } }

/* ==========================================================================
   PAINIKKEET — OSA 1.4
   ========================================================================== */

.hk-btn {
	display: inline-block;
	background: var(--hk-color-cta);
	color: #fff;
	border: none;
	border-radius: var(--hk-radius-btn);
	padding: 14px 28px;
	font-family: var(--hk-font-body);
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.hk-btn:hover { background: var(--hk-color-cta-hover); color: #fff; transform: translateY(-1px); }

.hk-btn--secondary {
	background: transparent;
	color: var(--hk-color-black);
	border: 1.5px solid var(--hk-color-black);
	padding: 13px 27px;
}
.hk-btn--secondary:hover { background: var(--hk-color-black); color: var(--hk-color-warm-white); }

.hk-btn--white {
	background: var(--hk-color-warm-white);
	color: var(--hk-color-black);
}
.hk-btn--white:hover { background: #fff; }

.hk-ghost {
	color: var(--hk-color-cta);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	display: inline-block;
}
.hk-ghost:hover { text-decoration: underline; }
.hk-ghost::after { content: " →"; }

@media (max-width: 600px) {
	.hk-btn { width: 100%; text-align: center; }
}

/* ==========================================================================
   LOHKOT — OSA 2 (uudelleenkäytettävä lohkokirjasto)
   Renderöijät: inc/blocks.php. Tässä vain visuaalinen kerros.
   ========================================================================== */

.hk-block { padding: var(--hk-block-pad-desktop) 0; }
@media (max-width: 1024px) { .hk-block { padding: var(--hk-block-pad-tablet) 0; } }
@media (max-width: 600px)  { .hk-block { padding: var(--hk-block-pad-mobile) 0; } }

.hk-block--warm  { background: var(--hk-color-warm-white); }
.hk-block--stone { background: var(--hk-color-stone); }
.hk-block--dark  { background: var(--hk-color-black); color: var(--hk-color-warm-white); }
.hk-block--dark h1, .hk-block--dark h2, .hk-block--dark h3 { color: #fff; }
.hk-block--dark .hk-lead { color: rgba(247,245,242,0.85); }
.hk-block--dark .hk-label { color: var(--hk-color-oak); }

/* LOHKO A — Hero */
.hk-hero {
	position: relative;
	min-height: 580px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: var(--hk-block-pad-desktop) 0;
}
.hk-hero::before {
	content: "";
	position: absolute; inset: 0;
	background: rgba(0,0,0,0.42);
}
.hk-hero__inner { position: relative; z-index: 1; max-width: 640px; }
.hk-hero .hk-label { color: rgba(247,245,242,0.7); }
.hk-hero h1 { color: #fff; }
.hk-hero .hk-lead { color: var(--hk-color-warm-white); margin-bottom: 24px; }
.hk-hero .hk-ghost { color: #fff; }
.hk-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hk-hero--placeholder {
	/* PALVELUT-SIVU, Hero-korjaus: aiempi tumma raidoitettu "kuva
	   puuttuu" -kuvio yhdistettynä tummaan peittoon loi juuri sen
	   "valtava tyhjä tumma alue" -vaikutelman josta oli valitettu.
	   Korvattu samalla kevyellä, tekstivetoisella käsittelyllä joka on
	   jo käytössä .hk-hero--low:ssa (Tietopankki, Test Lab ym.) - sama
	   periaate, ei kolmatta erillistä tyyliä. Tämä EI ole "kuva
	   puuttuu" -tila vaan tarkoituksellinen typografinen hero. */
	background: linear-gradient(135deg, var(--hk-color-stone), var(--hk-color-warm-white));
	min-height: 440px;
}
.hk-hero--placeholder::before { display: none; }
.hk-hero--placeholder .hk-label { color: var(--hk-color-oak); }
.hk-hero--placeholder h1 { color: var(--hk-color-text); }
.hk-hero--placeholder .hk-lead { color: var(--hk-color-text-muted); }
.hk-hero--placeholder .hk-btn--white { background: var(--hk-color-cta); color: #fff; }
.hk-hero--placeholder .hk-btn--white:hover { background: var(--hk-color-cta-hover); }
.hk-hero--placeholder .hk-ghost { color: var(--hk-color-cta); }

/* Matala hero (Tietopankki, Test Lab, Referenssit, Yritys, Yhteystiedot ym.) */
.hk-hero--low {
	min-height: 320px;
	background: var(--hk-color-stone);
	color: var(--hk-color-text);
	padding: 64px 0;
}
.hk-hero--low::before { display: none; }
.hk-hero--low h1 { color: var(--hk-color-text); }
.hk-hero--low .hk-lead { color: var(--hk-color-text-muted); }
.hk-hero--low .hk-label { color: var(--hk-color-oak); }

@media (max-width: 768px) {
	.hk-hero { min-height: 380px; padding: 48px 0; }
	.hk-hero--placeholder { min-height: 320px; }
	.hk-hero--low { min-height: 260px; }
}

/* LOHKO B — Intro/Summary */
.hk-intro { text-align: center; }
.hk-intro__inner { max-width: 720px; margin: 0 auto; }

/* LOHKO C — Kuva + teksti */
.hk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hk-split--reverse .hk-split__image { order: 2; }
.hk-split__image img {
	border-radius: var(--hk-radius-card);
	aspect-ratio: 4/3;
	object-fit: cover;
	width: 100%;
}
.hk-split__image--placeholder {
	aspect-ratio: 4/3;
	border-radius: var(--hk-radius-card);
	background: repeating-linear-gradient(135deg, var(--hk-color-stone), var(--hk-color-stone) 12px, #E2DDD3 12px, #E2DDD3 24px);
	display: flex; align-items: center; justify-content: center;
	color: var(--hk-color-text-muted); font-size: 0.85rem; text-align: center; padding: 20px;
}
@media (max-width: 768px) {
	.hk-split { grid-template-columns: 1fr; gap: 24px; }
	.hk-split--reverse .hk-split__image { order: 0; }
}

/* LOHKO D — Korttiruudukko */
.hk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hk-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.hk-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) {
	.hk-grid, .hk-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.hk-grid, .hk-grid--2, .hk-grid--4 { grid-template-columns: 1fr; }
}

.hk-card {
	background: #fff;
	border: 1px solid var(--hk-color-border);
	border-radius: var(--hk-radius-card);
	padding: 24px;
	text-align: left;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hk-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.10); transform: translateY(-2px); }
.hk-card:focus-visible { outline: 2px solid var(--hk-color-cta); outline-offset: 3px; }
.hk-card img { border-radius: var(--hk-radius-card) var(--hk-radius-card) 0 0; margin: -24px -24px 16px; width: calc(100% + 48px); max-width: none; aspect-ratio: 3/2; object-fit: cover; }
.hk-card__icon { width: 32px; height: 32px; color: var(--hk-color-oak); margin-bottom: 12px; }
/* YHTENÄISYYS- JA SISÄLTÖKIERROS, kohta 2: globaali korttistandardi.
   Otsikko keskitetty ja CTA keskitetty ovat nyt OLETUS kaikille
   korteille - ei enää opt-in-luokkaa. .hk-grid--title-center-luokka
   jätetty koskemattomaksi jo olemassa oleviin PHP-kutsuihin (harmiton,
   säännöt ovat nyt identtiset joka tapauksessa - ei tarvitse siivota
   kutsupaikkoja pois tästä syystä). */
.hk-card h3 { font-size: 20px; margin-bottom: 8px; text-align: center; }
.hk-card p { color: var(--hk-color-text-muted); font-size: 0.95rem; text-align: left; }
.hk-card ul { text-align: left; }
.hk-card .hk-ghost { display: block; text-align: center; margin-top: 12px; }

/* LOHKO E — Tumma CTA */
.hk-cta-dark { background: var(--hk-color-black); color: #fff; text-align: center; }
.hk-cta-dark__inner { max-width: 680px; margin: 0 auto; }
.hk-cta-dark__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 600px) { .hk-cta-dark__actions { flex-direction: column; } }

/* LOHKO F — Prosessi */
.hk-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.hk-process__step { text-align: center; }
.hk-process__num { font-size: 40px; font-weight: 700; color: var(--hk-color-oak); font-family: var(--hk-font-heading); }
/* KOODAUSBRIEF, kohta 6: pelkkä visuaalinen rytmitys - eripituiset
   otsikot saivat leipätekstin alkamaan eri korkeuksilta. Varataan
   otsikolle yhtenäinen korkeus (2 riviä desktopilla) niin että
   leipäteksti alkaa aina samalta kohdalta. Ei muutu teksti, väri,
   typografia tai korttien yleinen ulkoasu. */
.hk-process__step h3 { min-height: 56px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
	.hk-process { grid-template-columns: 1fr; gap: 28px; text-align: left; }
	.hk-process__step h3 { min-height: 0; display: block; justify-content: flex-start; }
}

/* LOHKO G — Referenssilainaus */
.hk-quote { text-align: center; max-width: 800px; margin: 0 auto; }
.hk-quote__mark { font-size: 64px; color: var(--hk-color-oak); opacity: 0.4; font-family: var(--hk-font-heading); line-height: 1; }
.hk-quote blockquote { font-size: 22px; font-style: italic; margin: 0 0 16px; }
.hk-quote__person { font-size: 14px; font-weight: 600; text-transform: uppercase; }
.hk-quote__role { font-size: 13px; color: var(--hk-color-text-muted); }

/* LOHKO H — Kuvakollaasi */
/* KORJAUSKIERROS 1, kohta 7: alkuperäinen repeat(3,1fr) jätti rivin 2
   kolmannen sarakkeen tyhjäksi (5 kuvaa 3 saraketta -> 3+2, mutta rivi 2
   käytti vain 2/3 leveyttä). Korjattu 6-sarakkeiseksi pohjaksi:
   rivi 1 kolme kuvaa á 2/6 (=1/3), rivi 2 kaksi kuvaa á 3/6 (=1/2) -
   tarkoituksellinen sommittelu, ei tyhjää aukkoa, sama visuaalinen
   lopputulos kuin alkuperäinen 3+2-tavoite mutta oikein leveyksin. */
.hk-collage { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.hk-collage > div:nth-child(-n+3) { aspect-ratio: 4/3; grid-column: span 2; }
.hk-collage > div:nth-child(n+4) { aspect-ratio: 3/2; grid-column: span 3; }
.hk-collage__img, .hk-collage__placeholder {
	width: 100%; height: 100%; border-radius: 8px; overflow: hidden;
	background: repeating-linear-gradient(135deg, var(--hk-color-stone), var(--hk-color-stone) 10px, #E2DDD3 10px, #E2DDD3 20px);
	display: flex; align-items: center; justify-content: center; color: var(--hk-color-text-muted); font-size: 0.75rem;
}
@media (max-width: 900px) {
	.hk-collage { grid-template-columns: repeat(2, 1fr); }
	.hk-collage > div:nth-child(-n+3),
	.hk-collage > div:nth-child(n+4) { grid-column: span 1; aspect-ratio: 4/3; }
}

/* LOHKO K — Asiantuntija-apu -bändi */
.hk-expert-help {
	background: var(--hk-color-stone);
	padding: 40px 0;
}
.hk-expert-help__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
@media (max-width: 600px) { .hk-expert-help__inner { flex-direction: column; align-items: flex-start; } .hk-expert-help .hk-btn { width: 100%; text-align: center; } }

/* ==========================================================================
   HEADER
   ========================================================================== */

.hk-header {
	background: var(--hk-color-warm-white);
	border-bottom: 1px solid var(--hk-color-border);
	position: sticky;
	top: 0;
	z-index: 50;
	height: 64px;
	display: flex;
	align-items: center;
}
.hk-header.hk-header--scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.hk-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: var(--hk-max-width);
	margin: 0 auto;
	padding: 0 40px;
	gap: 20px;
}
.hk-logo img { height: 34px; width: auto; }
.hk-nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.hk-nav a {
	color: var(--hk-color-text);
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
}
.hk-nav a:hover { color: var(--hk-color-oak); }
.hk-header-actions { display: flex; align-items: center; gap: 14px; }
/* KORJAUSKIERROS 1, kohta 3: perustila piilottaa lyhyen (emoji)
   version - aiemmin vain pitkä versio piilotettiin mobiilissa, joten
   desktopilla näkyi molemmat yhtä aikaa. */
.hk-header-actions .hk-btn span.hk-btn-label-short { display: none; }
.hk-search-toggle, .hk-mobile-toggle {
	background: none; border: none; cursor: pointer; font-size: 1.1rem;
	color: var(--hk-color-text);
}
.hk-mobile-toggle { display: none; }

/* YHTENÄISYYS- JA SISÄLTÖKIERROS, kohta 30: sivustohaku. Tarkoituksella
   pieni ja huomaamaton (ei visuaalisesti hallitseva) - avautuu headerin
   alle, ei peitä sisältöä, natiivi WP-haku ('s'-parametri). */
.hk-search-panel {
	background: var(--hk-color-warm-white);
	border-bottom: 1px solid var(--hk-color-border);
	padding: 16px 0;
}
.hk-search-panel[hidden] { display: none; }
.hk-search-panel__form {
	max-width: var(--hk-max-width);
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	gap: 10px;
}
.hk-search-panel__form input[type="search"] {
	flex: 1;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--hk-color-border);
	border-radius: var(--hk-radius-btn);
	font-family: var(--hk-font-body);
	font-size: 16px;
}
@media (max-width: 768px) {
	.hk-search-panel__form { padding: 0 16px; flex-direction: column; }
}

/* Mobiilivalikko — OSA 8.2: full-screen overlay */
.hk-mobile-nav {
	display: none;
	position: fixed;
	inset: 0;
	background: var(--hk-color-black);
	z-index: 999;
	padding: 80px 24px 24px;
}
.hk-mobile-nav.hk-mobile-nav--open { display: block; }
.hk-mobile-nav__close {
	position: absolute; top: 20px; right: 20px;
	background: none; border: none; color: #fff; font-size: 28px; cursor: pointer;
}
.hk-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.hk-mobile-nav li { margin-bottom: 8px; }
.hk-mobile-nav a {
	color: #fff; text-decoration: none; font-size: 24px; display: block; padding: 16px 0;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
	.hk-nav { display: none; }
	.hk-mobile-toggle { display: block; }
	.hk-header-actions .hk-btn span.hk-btn-label-full { display: none; }
	.hk-header-actions .hk-btn span.hk-btn-label-short { display: inline; }
	.hk-header-inner { padding: 0 16px; }
}

/* ==========================================================================
   KELLUVA WHATSAPP-PAINIKE — OSA 7
   ========================================================================== */

.hk-whatsapp-float {
	position: fixed;
	bottom: 32px;
	right: 32px;
	z-index: 1000;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--hk-color-whatsapp);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 1.6rem;
	box-shadow: 0 4px 16px rgba(37,211,102,0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hk-whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,0.50); }

/* ETUSIVU V1.2, kohta 4: kontekstuaalinen ohjausbubla */
.hk-whatsapp-wrap {
	position: fixed;
	bottom: 32px;
	right: 32px;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 10px;
}
.hk-whatsapp-wrap .hk-whatsapp-float { position: static; }
.hk-whatsapp-hint {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--hk-color-border);
	border-radius: 24px;
	padding: 8px 8px 8px 16px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	font-size: 13px;
	white-space: nowrap;
}
.hk-whatsapp-hint a { color: var(--hk-color-text); text-decoration: none; font-weight: 500; }
.hk-whatsapp-hint a:hover { text-decoration: underline; }
.hk-whatsapp-hint__close {
	background: none; border: none; cursor: pointer; color: var(--hk-color-text-muted);
	font-size: 16px; line-height: 1; padding: 4px;
}
@media (max-width: 768px) {
	.hk-whatsapp-wrap { bottom: 20px; right: 16px; }
	.hk-whatsapp-hint { display: none; } /* Kompakti mobiilissa - ei peitä sisältöä */
}

.hk-whatsapp-float { position: fixed; }
.hk-whatsapp-float::after {
	content: attr(title);
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
	background: var(--hk-color-black);
	color: #fff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}
.hk-whatsapp-float:hover::after { opacity: 1; }
@media (max-width: 768px) {
	.hk-whatsapp-float::after { display: none; } /* Ei tooltipiä mobiilissa, Spec 7.2 */
}

@media (max-width: 768px) {
	.hk-whatsapp-float { bottom: 20px; right: 16px; width: 52px; height: 52px; }
}

/* Sisältö ei saa jäädä WA-painikkeen alle (OSA 7.3) */
body { padding-bottom: 0; }
.hk-footer { padding-bottom: 40px; }

/* ==========================================================================
   FOOTER — LOHKO J
   ========================================================================== */

.hk-footer {
	background: var(--hk-color-black);
	color: var(--hk-color-warm-white);
	padding: 64px 0 24px;
}
.hk-footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	max-width: var(--hk-max-width);
	margin: 0 auto;
	padding: 0 40px;
}
@media (max-width: 900px) { .hk-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hk-footer-grid { grid-template-columns: 1fr; padding: 0 16px; } }

.hk-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.hk-footer a { color: var(--hk-color-warm-white); text-decoration: none; opacity: 0.85; }
.hk-footer a:hover { opacity: 1; text-decoration: underline; }
.hk-footer ul { list-style: none; padding: 0; margin: 0; }
.hk-footer li { margin-bottom: 8px; font-size: 14px; }
.hk-footer-bottom {
	max-width: var(--hk-max-width);
	margin: 40px auto 0;
	padding: 20px 40px 0;
	border-top: 1px solid rgba(255,255,255,0.15);
	font-size: 13px;
	opacity: 0.7;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
@media (max-width: 600px) { .hk-footer-bottom { padding: 20px 16px 0; } }

/* RATKAISUT V6, kohta 2: pysyvä korttisääntö - otsikko keskitetty,
   teksti/listat vasemmalle. Sovellettu tällä kierroksella Ratkaisut-
   sivuun ja sen alasivuihin (ei koko sivuston massamuokkausta). */
/* YHTENÄISYYSKIERROS, kohta 1: pysyvä korttistandardi koko sivustolle.
   Otsikko keskitetty, teksti/listat vasemmalla (jo käytössä), CTA
   keskitetty (uusi tässä kierroksessa) + selkeä näppäimistöfokus
   saavutettavuutta varten. */
/* YHTENÄISYYS- JA SISÄLTÖKIERROS: .hk-grid--title-center on nyt
   redundantti - sama käyttäytyminen on .hk-card:n perusoletus (ks.
   style.css alkupää). Luokka jätetty koskemattomaksi olemassa
   olevissa PHP-kutsuissa, ei enää tarvitse omaa CSS:ää. Fokusrengas
   on jo määritelty .hk-card:n peruskohdassa, ei toisteta tässä. */

/* RATKAISUT V6, kohta 19: "Näytä kaikki ratkaisut" -hakemisto.
   Natiivi <details>/<summary> - sisältö on aina DOM:ssa. */
.hk-ratkaisut-hakemisto {
	max-width: 900px;
	margin: 0 auto;
	text-align: left;
}
.hk-ratkaisut-hakemisto summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--hk-color-cta);
	text-align: center;
	padding: 12px 0;
	list-style: none;
}
.hk-ratkaisut-hakemisto summary::-webkit-details-marker { display: none; }
.hk-ratkaisut-hakemisto summary::before { content: "⋯ "; }
.hk-ratkaisut-hakemisto[open] summary::before { content: "— "; }
.hk-ratkaisut-hakemisto__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 16px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--hk-color-border);
	border-radius: var(--hk-radius-card);
}
.hk-ratkaisut-hakemisto__grid h4 { font-size: 14px; margin-bottom: 8px; }
.hk-ratkaisut-hakemisto__grid ul { list-style: none; margin: 0; padding: 0; }
.hk-ratkaisut-hakemisto__grid li { margin-bottom: 6px; font-size: 14px; }
.hk-ratkaisut-hakemisto__grid a { color: var(--hk-color-text-muted); text-decoration: none; }
.hk-ratkaisut-hakemisto__grid a:hover { color: var(--hk-color-cta); text-decoration: underline; }
@media (max-width: 700px) {
	.hk-ratkaisut-hakemisto__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
	.hk-ratkaisut-hakemisto__grid { grid-template-columns: 1fr; }
}
.hk-test-page-banner {
	background: #fff3cd;
	border: 1px dashed #cc9a06;
	color: #664d03;
	padding: 14px 18px;
	margin: 20px auto;
	max-width: var(--hk-max-width);
	font-size: 0.9rem;
	border-radius: 4px;
}
