/* ==========================================================================
   Hakastar - tuotesivujen tyylit (/tuotteet ja sen alasivut)

   Sivut generoidaan tiedostolla generoi-tuotteet.mjs. Tyylit noudattavat
   sisalto.css:n linjaa: tummansininen teksti, teravat kulmat, ohuet harmaat
   reunat ja Montserrat. Oranssia kaytetaan vain korostuksissa. Tummaa
   sinista ei kayteta taustavarina: tummat pinnat ovat harmaita (--hk-harmaa).

   Webflown body-vari on oranssi, joten kaikki teksti asetetaan tassa
   tummansiniseksi erikseen.
   ========================================================================== */

:root {
  --hk-teksti: #002648;
  --hk-oranssi: #a65e2e;
  --hk-viiva: #dfe3e8;
  --hk-pohja-vaalea: #f6f8f9;
  --hk-harmaa-nappi: #6d7278;
  /* Kaanteisten osioiden tausta, sama Webflow-muuttuja kuin muulla sivustolla */
  --hk-harmaa: var(--_colors---background-color--bg-primary, #6d7278);
  --hk-teksti-himmea: #5b6b7c;
  --hk-reuna: 4rem;
}

.hk-tuotteet {
  display: block;
  background: #ffffff;
  color: var(--hk-teksti);
  font-family: Montserrat, sans-serif;
  /* Liian pitka yksittainen sana tai koodi rivitetaan eika se levita sivua */
  overflow-wrap: break-word;
}

.hk-tuotteet p,
.hk-tuotteet li,
.hk-tuotteet ul,
.hk-tuotteet ol,
.hk-tuotteet dt,
.hk-tuotteet dd,
.hk-tuotteet th,
.hk-tuotteet td,
.hk-tuotteet h2,
.hk-tuotteet h3 {
  color: var(--hk-teksti);
  font-family: Montserrat, sans-serif;
  letter-spacing: normal;
}

.hk-kehys {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(90rem + 2 * var(--hk-reuna));
  padding-left: var(--hk-reuna);
  padding-right: var(--hk-reuna);
}

.hk-kehys--ilman-reunoja {
  padding-left: 0;
  padding-right: 0;
}

.hk-piilo {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Hero: sama satamakuva ja tummennus kuin muilla sivuilla
   ========================================================================== */

.hk-tuotehero {
  position: relative;
  overflow: hidden;
  background-color: #1d2733;
  height: 70vh;
  min-height: 540px;
  max-height: 680px;
  display: flex;
  align-items: flex-end;
}

.hk-tuotehero--matala {
  height: 48vh;
  min-height: 400px;
  max-height: 480px;
}

.hk-tuotehero-kuva {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.hk-tuotehero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #0000006e;
  background-image: linear-gradient(#00000052, #fff0), linear-gradient(21deg, #00000080, #fff0);
}

.hk-tuotehero-sisalto {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  padding: 0 var(--hk-reuna) 2rem;
}

.hk-tuotehero .hk-tuotehero-ylaotsikko {
  color: var(--hk-oranssi);
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .125rem;
  line-height: 1.4;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hk-tuotehero .hk-tuotehero-otsikko {
  color: #ffffff;
  font-family: Montserrat, sans-serif;
  font-size: 3.75rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: normal;
  margin: 0;
}

/* Tuotesivulla ei ole heroa, joten navigaatio on valkoinen jo ylhaalla.
   Webflow'n vieritysanimaatio (a-37) kirjoittaa navigaatioon inline-tyylit,
   siksi !important. Arvot ovat samat kuin animaation vieritetyssa tilassa. */
.hk-navi-valkoinen .rt-navbar,
.hk-navi-valkoinen .rt-nav-container,
.hk-navi-valkoinen .rt-navbar-main {
  background-color: #ffffff !important;
}

.hk-navi-valkoinen .rt-nav-links {
  color: #000000 !important;
}

.hk-navi-valkoinen .rt-menu-bar {
  background-color: #6d7278 !important;
}

.hk-navi-valkoinen .div-block-3 {
  opacity: 1 !important;
}

/* Kiintean navigaation korkuinen tila sisallon ylapuolelle */
.hk-navitila {
  height: 5rem;
}

/* Murupolku footer.css:sta, reunat samaan linjaan sisallon kanssa */
.hk-tuotteet-murupolku {
  padding-left: var(--hk-reuna);
  padding-right: var(--hk-reuna);
}

.hk-tuotteet-murupolku .hk-breadcrumb-item {
  color: var(--hk-teksti-himmea);
}

/* ==========================================================================
   Osiot ja otsikot
   ========================================================================== */

.hk-tuoteosio {
  padding: 4.5rem 0;
  background: #ffffff;
}

.hk-tuoteosio--tiivis {
  padding-top: 2.5rem;
}

.hk-tuoteosio--vaalea {
  background: var(--hk-pohja-vaalea);
  border-top: 1px solid var(--hk-viiva);
  border-bottom: 1px solid var(--hk-viiva);
}

/* Ryhmat erotetaan ylaosan viivalla, joten oma ylapehmuste olisi tuplana */
.hk-tuoteosio--ryhma {
  padding-top: 0;
}

/* Usein kysyttya -osio sisalto.css:sta samoilla reunoilla kuin muu sisalto */
.hk-tuotteet .hk-faq {
  padding-left: var(--hk-reuna);
  padding-right: var(--hk-reuna);
}

.hk-tuoteosio + .hk-faq {
  padding-top: 3rem;
}

.hk-tuoteosio-otsikko {
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 1.5rem;
}

.hk-tuoteosio-otsikko--iso {
  font-size: 2.4rem;
  line-height: 1.4;
  max-width: 34ch;
}

.hk-tuoteosio-ingressi {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 68ch;
  margin: 0 0 2rem;
}

.hk-tuoteosio-ingressi a,
.hk-johdantoteksti a,
.hk-etu a,
.hk-hakemisto a,
.hk-tuote a:not(.hk-nappi),
.hk-tarjous a,
.hk-taulukko a {
  color: var(--hk-teksti);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.hk-tuoteosio-ingressi a:hover,
.hk-johdantoteksti a:hover,
.hk-etu a:hover,
.hk-hakemisto a:hover,
.hk-taulukko a:hover {
  text-decoration-thickness: 2px;
}

.hk-johdantoteksti {
  max-width: 46rem;
}

.hk-johdantoteksti p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.hk-johdantoteksti p:last-child {
  margin-bottom: 0;
}

.hk-ryhma-ylaosa {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 2rem;
  border-top: 1px solid var(--hk-viiva);
  padding-top: 3rem;
}

.hk-ryhma-ylaosa .hk-tuoteosio-otsikko {
  margin-bottom: .75rem;
}

/* ------ Ryhmien pikalinkit kategoriasivun alussa ------ */

.hk-ryhmalinkit {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.5rem;
}

.hk-ryhmalinkki {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--hk-viiva);
  color: var(--hk-teksti);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .8rem 1.1rem;
  transition: border-color .15s ease, background-color .15s ease;
}

.hk-ryhmalinkki span {
  color: var(--hk-teksti-himmea);
  font-weight: 500;
}

.hk-ryhmalinkki:hover,
.hk-ryhmalinkki:focus-visible {
  border-color: var(--hk-teksti);
  background: var(--hk-pohja-vaalea);
}

/* ==========================================================================
   Tuote- ja kategoriakortit
   ========================================================================== */

.hk-tuoteruudukko {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.hk-kategoriaruudukko {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.hk-tuotekortti,
.hk-kategoriakortti {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--hk-viiva);
  transition: border-color .15s ease, box-shadow .2s ease;
}

.hk-tuotekortti:hover,
.hk-kategoriakortti:hover,
.hk-tuotekortti:focus-within,
.hk-kategoriakortti:focus-within {
  border-color: var(--hk-teksti);
  box-shadow: 0 12px 28px rgba(0, 38, 72, .10);
}

.hk-tuotekortti-kuva {
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid var(--hk-viiva);
  background: #ffffff;
}

.hk-tuotekortti-kuva img,
.hk-kategoriakortti-kuva img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hk-tuotekortti-teksti {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.4rem;
}

.hk-tuotekortti .hk-tuotekortti-merkki {
  color: var(--hk-teksti-himmea);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 .4rem;
}

.hk-tuotekortti .hk-tuotekortti-nimi {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 .6rem;
}

/* Koko kortti on klikattava: linkin ::after peittaa kortin */
.hk-tuotekortti-linkki {
  color: var(--hk-teksti);
  text-decoration: none;
}

.hk-tuotekortti-linkki::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hk-tuotekortti-linkki:focus-visible {
  outline: none;
}

.hk-tuotekortti:focus-within,
.hk-kategoriakortti:focus-within {
  outline: 2px solid var(--hk-teksti);
  outline-offset: 2px;
}

.hk-tuotekortti .hk-tuotekortti-kuvaus {
  font-size: .9rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.hk-tuotekortti-tiedot {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.hk-tuotekortti .hk-tuotekortti-tiedot li {
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.3;
  background: var(--hk-pohja-vaalea);
  border: 1px solid var(--hk-viiva);
  padding: .3rem .5rem;
}

.hk-tuotekortti-cta {
  margin-top: auto;
  color: var(--hk-teksti);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .125rem;
  text-transform: uppercase;
}

.hk-tuotekortti-cta::after {
  content: " \2192";
  color: var(--hk-oranssi);
}

/* ------ Kategoriakortti: kuva vasemmalla, teksti oikealla ------ */

.hk-kategoriakortti {
  flex-direction: row;
}

.hk-kategoriakortti-kuva {
  flex: 0 0 38%;
  aspect-ratio: 1 / 1;
  border-right: 1px solid var(--hk-viiva);
}

.hk-kategoriakortti-teksti {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.hk-kategoriakortti .hk-kategoriakortti-nimi {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .75rem;
}

.hk-kategoriakortti .hk-kategoriakortti-kuvaus {
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 .75rem;
}

.hk-kategoriakortti .hk-kategoriakortti-ryhmat {
  color: var(--hk-teksti-himmea);
  font-size: .8125rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

/* ==========================================================================
   Edut, hakemisto ja valintaopas
   ========================================================================== */

.hk-edut {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.hk-etu {
  border-top: 2px solid var(--hk-teksti);
  padding-top: 1.25rem;
}

.hk-etu .hk-etu-otsikko {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 .6rem;
}

.hk-etu p {
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
}

.hk-hakemisto {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}

.hk-hakemisto .hk-hakemisto-otsikko {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--hk-viiva);
}

.hk-hakemisto .hk-hakemisto-otsikko a {
  text-decoration: none;
}

.hk-hakemisto ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hk-hakemisto li {
  font-size: .9rem;
  line-height: 1.5;
  margin: 0 0 .55rem;
}

.hk-hakemisto li span {
  color: var(--hk-teksti-himmea);
  font-size: .75rem;
  white-space: nowrap;
}

.hk-opas .hk-osio-otsikko {
  font-size: 1.2rem;
}

/* ==========================================================================
   Taulukot: tekniset tiedot, koot ja mallien vertailu
   ========================================================================== */

.hk-taulukko-kehys {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hk-viiva);
  background: #ffffff;
}

.hk-taulukko-kehys:focus-visible {
  outline: 2px solid var(--hk-teksti);
  outline-offset: 2px;
}

.hk-taulukko {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.5;
}

.hk-taulukko th,
.hk-taulukko td {
  text-align: left;
  vertical-align: top;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--hk-viiva);
}

.hk-taulukko tr:last-child th,
.hk-taulukko tr:last-child td {
  border-bottom: none;
}

.hk-taulukko tbody th {
  font-weight: 600;
}

/* Tekniset tiedot: nimi vasemmalla, arvo oikealla */
.hk-osio-sisalto > .hk-taulukko {
  border: 1px solid var(--hk-viiva);
  max-width: 44rem;
}

.hk-osio-sisalto > .hk-taulukko tbody th {
  width: 42%;
  background: var(--hk-pohja-vaalea);
  font-weight: 500;
}

.hk-taulukko thead th {
  background: var(--hk-harmaa);
  color: #ffffff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hk-taulukko--vertailu tbody tr:nth-child(even) {
  background: var(--hk-pohja-vaalea);
}

.hk-taulukko--vertailu td {
  white-space: nowrap;
}

.hk-osio-sisalto .hk-taulukko-kehys {
  max-width: 44rem;
}

/* Kokotaulukko vierii kehyksessaan, joten arvoa ("500 mm") ei katkaista */
.hk-taulukko--variantit th,
.hk-taulukko--variantit td {
  white-space: nowrap;
}

.hk-vertailu {
  margin-top: 3rem;
}

.hk-vertailu .hk-vertailu-otsikko {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

/* ==========================================================================
   Tuotesivu
   ========================================================================== */

.hk-tuote {
  padding: 2.5rem 0 4rem;
}

.hk-tuote-ylaosa {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  column-gap: 4rem;
  align-items: start;
}

.hk-tuote-kuvat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hk-tuote-paakuva {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--hk-viiva);
  background: #ffffff;
}

.hk-tuote-paakuva img,
.hk-tuote-lisakuva img {
  display: block;
  width: 100%;
  height: auto;
}

.hk-tuote-lisakuva {
  margin: 0;
  border: 1px solid var(--hk-viiva);
  background: #ffffff;
}

.hk-tuote-lisakuva img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.hk-tuote .hk-tuote-merkki {
  color: var(--hk-oranssi);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .125rem;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}

.hk-tuote .hk-tuote-nimi {
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.hk-tuote .hk-tuote-johdanto {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 1.75rem;
}

.hk-avaintiedot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1.25rem;
  border-top: 1px solid var(--hk-viiva);
  border-left: 1px solid var(--hk-viiva);
}

.hk-avaintiedot > div {
  padding: .85rem 1rem;
  border-right: 1px solid var(--hk-viiva);
  border-bottom: 1px solid var(--hk-viiva);
}

.hk-avaintiedot dt {
  color: var(--hk-teksti-himmea);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 .25rem;
}

.hk-avaintiedot dd {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.hk-tuote .hk-tuote-tuotenumero {
  color: var(--hk-teksti-himmea);
  font-size: .875rem;
  margin: 0 0 1.5rem;
}

.hk-tuote-tuotenumero span {
  color: var(--hk-teksti);
  font-weight: 600;
}

.hk-tuote .hk-tuote-hinta {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.hk-tuote-hinta span {
  font-size: .9rem;
  font-weight: 500;
  color: var(--hk-teksti-himmea);
}

.hk-tuote-edut {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.hk-tuote .hk-tuote-edut li {
  position: relative;
  font-size: .9rem;
  line-height: 1.5;
  padding-left: 1.6rem;
  margin: 0 0 .55rem;
}

/* Valintamerkki CSS:lla, ei kuvaa */
.hk-tuote-edut li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .3em;
  width: .45rem;
  height: .8rem;
  border-right: 2px solid var(--hk-oranssi);
  border-bottom: 2px solid var(--hk-oranssi);
  transform: rotate(45deg);
}

/* Tuotesisallon osiot kayttavat sisalto.css:n artikkeliasettelua; h2 saa
   saman ulkoasun kuin palvelusivujen h3-valiotsikot. */
.hk-tuotesisalto .hk-osio:first-child {
  border-top: none;
  padding-top: 1rem;
}

.hk-tuotteet .hk-artikkeli h2.hk-osio-otsikko {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* ------ Sopivat hakaset ja naulat ------ */

.hk-kiinnike {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  padding: 1.5rem;
  border: 1px solid var(--hk-viiva);
  background: #ffffff;
  margin: 0 0 1rem;
  max-width: 44rem;
}

.hk-kiinnike-kuva {
  margin: 0;
}

.hk-kiinnike-kuva img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hk-viiva);
}

.hk-tuotteet .hk-kiinnike .hk-kiinnike-nimi {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 .6rem;
}

.hk-kiinnike-teksti p {
  font-size: .95rem;
  margin: 0 0 .9rem;
}

.hk-kiinnike-tiedot {
  margin: 0;
}

.hk-kiinnike-tiedot > div {
  display: flex;
  gap: .75rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--hk-viiva);
  font-size: .9rem;
}

.hk-kiinnike-tiedot > div:last-child {
  border-bottom: none;
}

.hk-kiinnike-tiedot dt {
  flex: 0 0 9.5rem;
  color: var(--hk-teksti-himmea);
}

.hk-kiinnike-tiedot dd {
  margin: 0;
  font-weight: 600;
}

.hk-tuotteet .hk-kiinnike-huomautus {
  font-size: .95rem;
  margin-top: 1.25rem;
}

/* Kiinnikkeen kuvaa ei ole: teksti koko leveydelle */
.hk-kiinnike:not(:has(.hk-kiinnike-kuva)) {
  grid-template-columns: minmax(0, 1fr);
}

/* ==========================================================================
   Tarjouspyynto
   ========================================================================== */

.hk-tarjous {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 4rem;
  align-items: start;
}

.hk-tarjous-teksti p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 44ch;
}

.hk-yhteyshenkilot {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.hk-yhteyshenkilot li {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hk-viiva);
  font-size: .95rem;
}

.hk-yhteyshenkilot li span {
  color: var(--hk-teksti-himmea);
  font-size: .85rem;
}

.hk-tarjous-lomake {
  background: #ffffff;
  border: 1px solid var(--hk-viiva);
  padding: 2rem;
}

/* Tuote ja valintalista: nakyva otsikko, koska kentassa on jo arvo */
.hk-lomake-kentta--nakyva label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hk-teksti-himmea);
}

/* Valittu tuote lomakkeen alussa */
.hk-lomake-tuote {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  background: var(--hk-pohja-vaalea);
  border: 1px solid var(--hk-viiva);
  border-left: 3px solid var(--hk-oranssi);
  padding: .9rem 1rem;
}

.hk-lomake-tuote-otsikko {
  color: var(--hk-teksti-himmea);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hk-lomake-tuote strong {
  color: var(--hk-teksti);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.hk-lomake-tuote span:not(.hk-lomake-tuote-otsikko) {
  color: var(--hk-teksti-himmea);
  font-size: .85rem;
}

.hk-lomake select {
  font-family: Montserrat, sans-serif;
  color: var(--hk-teksti);
  font-size: .9375rem;
  line-height: 1.5;
  background-color: #ffffff;
  border: 1px solid var(--hk-lomake-reuna, #c9cfd6);
  border-radius: 0;
  padding: .8rem 2.5rem .8rem .9rem;
  width: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--hk-teksti) 50%), linear-gradient(135deg, var(--hk-teksti) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - .9rem) 55%;
  background-size: .35rem .35rem;
  background-repeat: no-repeat;
}

.hk-lomake select:focus {
  border-color: var(--hk-teksti);
  outline: 2px solid transparent;
  box-shadow: inset 0 0 0 1px var(--hk-teksti);
}

.hk-lomake .hk-lomake-nappi {
  max-width: none;
  width: auto;
  align-self: flex-start;
}

.hk-tuotteet .hk-lomake-huomautus {
  color: var(--hk-teksti-himmea);
  font-size: .8rem;
  line-height: 1.5;
  margin: 0;
}

.hk-lomake-huomautus a {
  color: inherit;
}

/* ==========================================================================
   Napit: sama ilme kuin sivuston CTA-napeissa (harmaa, oranssi liuku)
   ========================================================================== */

.hk-napit {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hk-nappi {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 3.25rem;
  padding: 1rem 2rem;
  background-color: var(--hk-harmaa-nappi);
  border: 1px solid var(--hk-harmaa-nappi);
  color: #ffffff;
  font-family: Montserrat, sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .125rem;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  isolation: isolate;
}

.hk-nappi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -10%;
  width: 0;
  background-color: var(--hk-oranssi);
  transform: skew(-45deg);
  transition: width .4s ease;
  z-index: -1;
}

.hk-nappi:hover::before,
.hk-nappi:focus-visible::before {
  width: 125%;
}

.hk-nappi:focus-visible {
  outline: 2px solid var(--hk-teksti);
  outline-offset: 2px;
}

.hk-tuotteet .hk-nappi,
.hk-tuotteet .hk-nappi:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Toissijainen: reunus ilman taustaa */
.hk-tuotteet .hk-nappi--reunus {
  background-color: transparent;
  border-color: var(--hk-teksti);
  color: var(--hk-teksti);
}

.hk-tuotteet .hk-nappi--reunus:hover,
.hk-tuotteet .hk-nappi--reunus:focus-visible {
  color: #ffffff;
}

/* Tummalla taustalla */
.hk-tuotteet .hk-nappi--vaalea {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--hk-teksti);
}

.hk-tuotteet .hk-nappi--vaalea:hover,
.hk-tuotteet .hk-nappi--vaalea:focus-visible {
  color: #ffffff;
}

.hk-tuotteet .hk-nappi--reunus-vaalea {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.hk-nappi--reunus-vaalea::before {
  background-color: var(--hk-oranssi);
}

/* ==========================================================================
   CTA-nauha sivun lopussa
   ========================================================================== */

/* Sama harmaa kuin muun sivuston kaanteisissa osioissa (etusivun
   rt-about-v2-bottom). Sinista ei kayteta sivustolla taustavarina. */
.hk-cta-nauha {
  background: var(--hk-harmaa);
  padding: 4rem 0;
}

.hk-cta-nauha-sisalto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hk-tuotteet .hk-cta-nauha-otsikko {
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 .6rem;
}

.hk-tuotteet .hk-cta-nauha-teksti {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
}

/* ==========================================================================
   Responsiivisuus
   ========================================================================== */

@media (max-width: 1199px) {
  .hk-tuoteruudukko {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hk-edut,
  .hk-hakemisto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hk-kategoriakortti {
    flex-direction: column;
  }
  .hk-kategoriakortti-kuva {
    flex-basis: auto;
    border-right: none;
    border-bottom: 1px solid var(--hk-viiva);
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 991px) {
  :root {
    --hk-reuna: 2rem;
  }
  .hk-tuotehero .hk-tuotehero-otsikko {
    font-size: 3rem;
  }
  .hk-navitila {
    height: 4.5rem;
  }
  .hk-tuoteosio-otsikko--iso {
    font-size: 2rem;
  }
  .hk-tuote-ylaosa,
  .hk-tarjous {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
  }
  .hk-tuote-kuvat {
    max-width: 36rem;
  }
}

@media (max-width: 767px) {
  .hk-tuoteruudukko {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .hk-kategoriaruudukko,
  .hk-edut {
    grid-template-columns: minmax(0, 1fr);
  }
  .hk-tuotehero {
    height: 58vh;
    min-height: 420px;
  }
  .hk-tuotehero--matala {
    height: 42vh;
    min-height: 320px;
  }
  .hk-tuotehero .hk-tuotehero-otsikko {
    font-size: 2.4rem;
  }
  .hk-tuotehero .hk-tuotehero-ylaotsikko {
    font-size: .8125rem;
  }
  .hk-tuoteosio {
    padding: 3rem 0;
  }
  .hk-tuoteosio-otsikko {
    font-size: 1.5rem;
  }
  .hk-tuoteosio-otsikko--iso {
    font-size: 1.8rem;
  }
  .hk-johdantoteksti p {
    font-size: 1.05rem;
  }
  .hk-tuote .hk-tuote-nimi {
    font-size: 2rem;
  }
  /* sisalto.css asettaa tassa yhden 1fr-palstan, jonka vahimmaisleveys on
     sisallon levyinen: leveä kokotaulukko levittaisi koko sivun eika
     vierisi omassa kehyksessaan. */
  .hk-tuotteet .hk-osio {
    grid-template-columns: minmax(0, 1fr);
  }
  .hk-tuotekortti-teksti {
    padding: 1rem;
  }
  .hk-tuotekortti .hk-tuotekortti-nimi {
    font-size: 1rem;
  }
  .hk-tuotekortti .hk-tuotekortti-kuvaus {
    display: none;
  }
  .hk-kiinnike {
    grid-template-columns: minmax(0, 1fr);
  }
  .hk-kiinnike-kuva {
    max-width: 12rem;
  }
  .hk-tarjous-lomake {
    padding: 1.25rem;
  }
  .hk-lomake .hk-lomake-nappi {
    width: 100%;
  }
  .hk-cta-nauha-otsikko {
    font-size: 1.5rem;
  }
  .hk-napit .hk-nappi {
    flex: 1 1 100%;
  }
}

@media (max-width: 479px) {
  :root {
    --hk-reuna: 1rem;
  }
  /* Kapealla naytolla kortti on vaakasuuntainen: kuva vasemmalla, teksti
     oikealla. Nain lista on selattavissa ilman ylipitkia kortteja. */
  .hk-tuoteruudukko {
    grid-template-columns: minmax(0, 1fr);
  }
  .hk-tuotekortti {
    flex-direction: row;
    align-items: stretch;
  }
  .hk-tuotekortti-kuva {
    flex: 0 0 36%;
    width: 36%;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    border-bottom: none;
    border-right: 1px solid var(--hk-viiva);
  }
  .hk-tuotekortti-kuva img {
    height: auto;
  }
  .hk-tuotekortti-teksti {
    flex: 1 1 0;
    min-width: 0;
    padding: .9rem 1rem;
  }
  .hk-tuotekortti-tiedot {
    margin-bottom: .8rem;
  }
  .hk-hakemisto {
    grid-template-columns: minmax(0, 1fr);
  }
  .hk-tuotehero .hk-tuotehero-otsikko {
    font-size: 2.1rem;
  }
}

@media (max-width: 399px) {
  /* Pisin nimi (Aitakaasuhakasnaulain) mahtuu 360 px:n nayttoon */
  .hk-tuote .hk-tuote-nimi {
    font-size: 1.75rem;
  }
}

@media (max-width: 359px) {
  .hk-avaintiedot {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Taulukon solu ei muuten rivita pitkaa sanaa, vaan levittaa taulukon */
  .hk-taulukko th,
  .hk-taulukko td {
    overflow-wrap: anywhere;
  }
}
