/*
Theme Name: OMA Seasons Child
Theme URI: https://omaihminen.fi/
Description: OMA Seasons -lapsiteema. Kylän tunnetilat ja Polkujen paikat pidetään selkeinä: Toivo säilyy Kylässä, Risteys korvaa Toivon Polut-osiossa.
Author: OMA Ihminen
Version: 2.0.4
Template: oma-seasons
Text Domain: oma-seasons-child
*/

:root {
  --oma-sand: #efe7da;
  --oma-forest: #4f5f42;
  --oma-ink: #26251f;
  --oma-mist: #f7f4ef;
  --oma-line: rgba(38, 37, 31, 0.14);
  --oma-radius: 22px;
  --oma-content: 780px;
}

/* Kylä */
body.oma-kyla-page main,
body.oma-kyla-page .site-main,
body.oma-kyla-page .wp-site-blocks main {
  overflow: hidden;
}

body.oma-kyla-page .entry-content,
body.oma-kyla-page .wp-block-post-content {
  max-width: var(--oma-content);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

body.oma-kyla-page .entry-content > p,
body.oma-kyla-page .wp-block-post-content > p {
  font-size: clamp(1.08rem, 1vw + .85rem, 1.28rem);
  line-height: 1.75;
}

body.oma-kyla-page .entry-content h2,
body.oma-kyla-page .wp-block-post-content h2 {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 1.25rem;
  line-height: 1.08;
  text-wrap: balance;
}

body.oma-kyla-page .oma-kylapolut {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: clamp(3rem, 8vw, 6rem) auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

body.oma-kyla-page .oma-kylapolku {
  display: block;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--oma-line);
  border-radius: var(--oma-radius);
  background: var(--oma-mist);
  color: var(--oma-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

body.oma-kyla-page .oma-kylapolku:hover,
body.oma-kyla-page .oma-kylapolku:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(38, 37, 31, .10);
}

body.oma-kyla-page .oma-kylapolku h3 {
  margin-top: 0;
  margin-bottom: .65rem;
}

body.oma-kyla-page .oma-kylapolku p {
  margin-bottom: 0;
  line-height: 1.55;
}

body.oma-kyla-page .oma-kylapolku--missing {
  opacity: .72;
  cursor: default;
}

/* Yksinäinen toisen vierellä */
body.oma-yksinainen-vierella-page .entry-content,
body.oma-yksinainen-vierella-page .wp-block-post-content {
  max-width: 840px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.oma-vierella {
  padding-block: clamp(1rem, 3vw, 2.5rem) clamp(4rem, 9vw, 7rem);
}

.oma-vierella__ingress {
  max-width: 760px;
  margin: 0 auto clamp(3rem, 8vw, 6rem);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.35;
  text-align: center;
}

.oma-vierella__section {
  margin-top: clamp(3.2rem, 8vw, 6rem);
}

.oma-vierella__section h2 {
  margin: 0 0 1.3rem;
  line-height: 1.08;
  text-wrap: balance;
}

.oma-vierella__section p {
  font-size: clamp(1.06rem, .8vw + .88rem, 1.23rem);
  line-height: 1.78;
  margin: 0 0 1.25rem;
}

.oma-vierella__questions {
  margin: 2.2rem 0;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--oma-line);
  border-radius: var(--oma-radius);
  background: var(--oma-mist);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.5;
}

.oma-vierella__closing {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--oma-radius);
  background: var(--oma-mist);
  text-align: center;
}

.oma-vierella__closing strong {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.oma-vierella__next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.oma-vierella__next a {
  display: block;
  padding: 22px;
  border: 1px solid var(--oma-line);
  border-radius: var(--oma-radius);
  color: var(--oma-ink);
  background: var(--oma-mist);
  text-decoration: none;
}

.oma-vierella__next a:hover,
.oma-vierella__next a:focus-visible {
  box-shadow: 0 12px 34px rgba(38, 37, 31, .09);
}

@media (max-width: 720px) {
  body.oma-kyla-page .oma-kylapolut,
  .oma-vierella__next {
    grid-template-columns: 1fr;
  }

  body.oma-kyla-page .oma-kylapolku {
    min-height: 0;
  }
}


/* 1.2.0: Yksinäinen toisen vierellä -heron viimeistely */
body.oma-yksinainen-vierella-page .oma-vierella-hero {
  position: relative;
  min-height: clamp(360px, 42vw, 600px);
  background-image:
    linear-gradient(180deg, rgba(20, 21, 17, .24), rgba(20, 21, 17, .44)),
    var(--oma-vierella-hero-image) !important;
  background-size: cover !important;
  background-position: center 50% !important;
  overflow: hidden;
}

body.oma-yksinainen-vierella-page .oma-vierella-hero .oma-vierella-hero-image {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  object-fit: cover !important;
  object-position: center 50% !important;
  filter: brightness(.67) saturate(.90);
}

body.oma-yksinainen-vierella-page .oma-vierella-hero .oma-vierella-hero-title {
  position: relative;
  z-index: 3;
  max-width: 14ch;
  margin-inline: auto !important;
  text-align: center !important;
  text-wrap: balance;
  font-size: clamp(3rem, 7.2vw, 7rem) !important;
  line-height: .96 !important;
}

body.oma-yksinainen-vierella-page .oma-vierella-kicker-hidden {
  display: none !important;
}

body.oma-yksinainen-vierella-page .oma-vierella__questions {
  text-align: center;
  line-height: 1.55;
}

body.oma-yksinainen-vierella-page .oma-vierella__questions strong {
  display: inline-block;
}

@media (max-width: 720px) {
  body.oma-yksinainen-vierella-page .oma-vierella-hero {
    min-height: 390px;
    background-position: 52% center !important;
  }

  body.oma-yksinainen-vierella-page .oma-vierella-hero .oma-vierella-hero-title {
    max-width: 11ch;
    font-size: clamp(2.7rem, 13vw, 4.6rem) !important;
  }
}

/* 1.3.0: kysymysosion rauhallinen rytmi */
body.oma-yksinainen-vierella-page .oma-vierella__questions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  text-align: center;
}

body.oma-yksinainen-vierella-page .oma-vierella__question-lead {
  display: block;
  font-family: inherit;
  font-size: clamp(1rem, .65vw + .88rem, 1.18rem);
  line-height: 1.55;
  font-weight: 400;
}

body.oma-yksinainen-vierella-page .oma-vierella__questions strong {
  display: block;
  margin: 0 0 .9rem;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.28;
  text-wrap: balance;
}

body.oma-yksinainen-vierella-page .oma-vierella__questions strong:last-child {
  margin-bottom: 0;
}

/* 1.4.0: Kaipaan yhteyttä -polku */
body.oma-kaipaan-yhteytta-page .entry-content,
body.oma-kaipaan-yhteytta-page .wp-block-post-content {
  max-width: 840px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.oma-yhteys { padding-block: clamp(1rem, 3vw, 2.5rem) clamp(4rem, 9vw, 7rem); }
.oma-yhteys__ingress {
  max-width: 760px; margin: 0 auto clamp(3rem, 8vw, 6rem);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem); line-height: 1.35; text-align: center;
}
.oma-yhteys__section { margin-top: clamp(3.2rem, 8vw, 6rem); }
.oma-yhteys__section h2 { margin: 0 0 1.3rem; line-height: 1.08; text-wrap: balance; }
.oma-yhteys__section p { font-size: clamp(1.06rem, .8vw + .88rem, 1.23rem); line-height: 1.78; margin: 0 0 1.25rem; }
.oma-yhteys__questions {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  margin: clamp(3.2rem, 8vw, 6rem) 0; padding: clamp(1.7rem, 4vw, 2.7rem);
  border: 1px solid var(--oma-line); border-radius: var(--oma-radius); background: var(--oma-mist);
  font-family: Georgia, 'Times New Roman', serif; text-align: center;
}
.oma-yhteys__questions span { font-size: clamp(1rem, .65vw + .88rem, 1.18rem); line-height: 1.55; }
.oma-yhteys__questions strong { display:block; margin:0 0 .9rem; font-size:clamp(1.35rem,2vw,1.9rem); line-height:1.28; text-wrap:balance; }
.oma-yhteys__questions strong:last-child { margin-bottom:0; }
.oma-yhteys__closing {
  margin-top: clamp(4rem, 9vw, 7rem); padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--oma-radius); background: var(--oma-mist); text-align:center;
}
.oma-yhteys__closing strong { display:block; font-family:Georgia,'Times New Roman',serif; font-size:clamp(1.5rem,2.6vw,2.25rem); line-height:1.25; margin-bottom:1rem; }
.oma-yhteys__next { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:clamp(3rem,7vw,5rem); }
.oma-yhteys__next a { display:block; padding:22px; border:1px solid var(--oma-line); border-radius:var(--oma-radius); color:var(--oma-ink); background:var(--oma-mist); text-decoration:none; }
.oma-yhteys__next a:hover,.oma-yhteys__next a:focus-visible { box-shadow:0 12px 34px rgba(38,37,31,.09); }
@media (max-width:720px){ .oma-yhteys__next{grid-template-columns:1fr;} }


/* 1.5.0: Olen yksin -polku */
body.oma-olen-yksin-page .entry-content,
body.oma-olen-yksin-page .wp-block-post-content {
  max-width: 840px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.oma-yksin { padding-block: clamp(1rem,3vw,2.5rem) clamp(4rem,9vw,7rem); }
.oma-yksin__kicker {
  margin: 0 auto 1.1rem; text-align:center; letter-spacing:.24em; font-weight:700;
  font-size:clamp(.78rem,.45vw + .7rem,.94rem); color:#a95b36;
}
.oma-yksin__ingress {
  max-width:760px; margin:0 auto clamp(3rem,8vw,6rem); text-align:center;
  font-family:Georgia,'Times New Roman',serif; font-size:clamp(1.45rem,2.4vw,2.2rem); line-height:1.35;
}
.oma-yksin__section { margin-top:clamp(3.2rem,8vw,6rem); }
.oma-yksin__section h2 { margin:0 0 1.3rem; line-height:1.08; text-wrap:balance; }
.oma-yksin__section p { font-size:clamp(1.06rem,.8vw + .88rem,1.23rem); line-height:1.78; margin:0 0 1.25rem; }
.oma-yksin__questions {
  display:flex; flex-direction:column; align-items:center; gap:.7rem;
  margin:clamp(3.2rem,8vw,6rem) 0; padding:clamp(1.7rem,4vw,2.7rem);
  border:1px solid var(--oma-line); border-radius:var(--oma-radius); background:var(--oma-mist);
  font-family:Georgia,'Times New Roman',serif; text-align:center;
}
.oma-yksin__questions span { font-size:clamp(1rem,.65vw + .88rem,1.18rem); line-height:1.55; }
.oma-yksin__questions strong { display:block; margin:0 0 .9rem; font-size:clamp(1.35rem,2vw,1.9rem); line-height:1.28; text-wrap:balance; }
.oma-yksin__questions strong:last-child { margin-bottom:0; }
.oma-yksin__closing {
  margin-top:clamp(4rem,9vw,7rem); padding:clamp(2rem,5vw,3rem); border-radius:var(--oma-radius);
  background:var(--oma-mist); text-align:center;
}
.oma-yksin__closing strong { display:block; font-family:Georgia,'Times New Roman',serif; font-size:clamp(1.8rem,3vw,2.7rem); line-height:1.2; margin-bottom:1rem; }
.oma-yksin__next { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:clamp(3rem,7vw,5rem); }
.oma-yksin__next a { display:block; padding:22px; border:1px solid var(--oma-line); border-radius:var(--oma-radius); color:var(--oma-ink); background:var(--oma-mist); text-decoration:none; }
.oma-yksin__next a:hover,.oma-yksin__next a:focus-visible { box-shadow:0 12px 34px rgba(38,37,31,.09); }
@media (max-width:720px){ .oma-yksin__next{grid-template-columns:1fr;} }


/* 1.6.0: Risteys - Polut-maailman uusi paikka */
body.oma-risteys-page .entry-content,
body.oma-risteys-page .wp-block-post-content {
  max-width: 840px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.oma-risteys { padding-block: clamp(1rem,3vw,2.5rem) clamp(4rem,9vw,7rem); }
.oma-risteys__kicker {
  margin:0 auto 1.1rem; text-align:center; letter-spacing:.24em; font-weight:700;
  font-size:clamp(.78rem,.45vw + .7rem,.94rem); color:#a95b36;
}
.oma-risteys__ingress {
  max-width:760px; margin:0 auto clamp(3rem,8vw,6rem); text-align:center;
  font-family:Georgia,'Times New Roman',serif; font-size:clamp(1.45rem,2.4vw,2.2rem); line-height:1.35;
}
.oma-risteys__section { margin-top:clamp(3.2rem,8vw,6rem); }
.oma-risteys__section h2 { margin:0 0 1.3rem; line-height:1.08; text-wrap:balance; }
.oma-risteys__section p { font-size:clamp(1.06rem,.8vw + .88rem,1.23rem); line-height:1.78; margin:0 0 1.25rem; }
.oma-risteys__questions {
  display:flex; flex-direction:column; align-items:center; gap:.7rem;
  margin:clamp(3.2rem,8vw,6rem) 0; padding:clamp(1.7rem,4vw,2.7rem);
  border:1px solid var(--oma-line); border-radius:var(--oma-radius); background:var(--oma-mist);
  font-family:Georgia,'Times New Roman',serif; text-align:center;
}
.oma-risteys__questions span { font-size:clamp(1rem,.65vw + .88rem,1.18rem); line-height:1.55; }
.oma-risteys__questions strong { display:block; margin:0 0 .9rem; font-size:clamp(1.35rem,2vw,1.9rem); line-height:1.28; text-wrap:balance; }
.oma-risteys__questions strong:last-child { margin-bottom:0; }
.oma-risteys__closing {
  margin-top:clamp(4rem,9vw,7rem); padding:clamp(2rem,5vw,3rem);
  border-radius:var(--oma-radius); background:var(--oma-mist); text-align:center;
}
.oma-risteys__closing strong { display:block; font-family:Georgia,'Times New Roman',serif; font-size:clamp(1.7rem,2.8vw,2.5rem); line-height:1.22; margin-bottom:1rem; }
.oma-risteys__next { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:clamp(3rem,7vw,5rem); }
.oma-risteys__next a { display:block; padding:22px; border:1px solid var(--oma-line); border-radius:var(--oma-radius); color:var(--oma-ink); background:var(--oma-mist); text-decoration:none; }
.oma-risteys__next a:hover,.oma-risteys__next a:focus-visible { box-shadow:0 12px 34px rgba(38,37,31,.09); }
@media (max-width:720px){ .oma-risteys__next{grid-template-columns:1fr;} }


/* 1.6.2: Kaipaan yhteyttä -sivun oma hero */
body.oma-kaipaan-yhteytta-page .oma-yhteys-hero {
  position: relative;
  min-height: clamp(360px, 42vw, 600px);
  background-image: linear-gradient(180deg, rgba(20,21,17,.18), rgba(20,21,17,.43)), var(--oma-yhteys-hero-image) !important;
  background-size: cover !important;
  background-position: center 48% !important;
  overflow: hidden;
}
body.oma-kaipaan-yhteytta-page .oma-yhteys-hero .oma-yhteys-hero-image {
  width:100% !important; height:100% !important; position:absolute !important; inset:0 !important;
  object-fit:cover !important; object-position:center 48% !important; filter:brightness(.72) saturate(.92);
}
body.oma-kaipaan-yhteytta-page .oma-yhteys-hero .oma-yhteys-hero-title {
  position:relative; z-index:3; max-width:14ch; text-wrap:balance;
}
body.oma-kaipaan-yhteytta-page .oma-yhteys-kicker-hidden { display:none !important; }
@media(max-width:720px){
 body.oma-kaipaan-yhteytta-page .oma-yhteys-hero{min-height:390px;background-position:58% center !important;}
 body.oma-kaipaan-yhteytta-page .oma-yhteys-hero .oma-yhteys-hero-image{object-position:58% center !important;}
}


/* 1.7.0: Tarvitsen toivoa / Toivo */
body.oma-toivo-page .entry-content,
body.oma-toivo-page .wp-block-post-content {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.oma-toivo-polku {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 9vw, 7rem);
}

.oma-toivo-polku__questions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  margin: clamp(2.5rem, 7vw, 5rem) 0;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid var(--oma-line);
  border-radius: var(--oma-radius);
  background: var(--oma-mist);
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
}

.oma-toivo-polku__questions span {
  font-size: clamp(1rem, .65vw + .88rem, 1.18rem);
  line-height: 1.55;
}

.oma-toivo-polku__questions strong {
  display: block;
  margin: 0 0 .9rem;
  max-width: 24ch;
  font-size: clamp(1.4rem, 2.15vw, 2rem);
  line-height: 1.28;
  text-wrap: balance;
}

.oma-toivo-polku__questions strong:last-child { margin-bottom: 0; }

.oma-toivo-polku__section {
  margin-top: clamp(3.2rem, 8vw, 6rem);
}

.oma-toivo-polku__section h2 {
  margin: 0 0 1.3rem;
  line-height: 1.08;
  text-wrap: balance;
}

.oma-toivo-polku__section p {
  font-size: clamp(1.06rem, .8vw + .88rem, 1.23rem);
  line-height: 1.78;
  margin: 0 0 1.25rem;
}

.oma-toivo-polku__closing {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--oma-radius);
  background: linear-gradient(180deg, rgba(247,244,239,.98), rgba(239,231,218,.82));
  text-align: center;
}

.oma-toivo-polku__closing strong {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.oma-toivo-polku__next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.oma-toivo-polku__next a {
  display: block;
  padding: 22px;
  border: 1px solid var(--oma-line);
  border-radius: var(--oma-radius);
  color: var(--oma-ink);
  background: var(--oma-mist);
  text-decoration: none;
}

.oma-toivo-polku__next a:hover,
.oma-toivo-polku__next a:focus-visible {
  box-shadow: 0 12px 34px rgba(38,37,31,.09);
}

@media (max-width: 720px) {
  .oma-toivo-polku__next { grid-template-columns: 1fr; }
}


/* 1.7.2: Toivo-polku lisätään OMA Seasonsin oman renderöinnin jälkeen. */
body.oma-toivo-page .oma-toivo-polku {
  box-sizing: border-box;
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  padding-inline: clamp(0px, 2vw, 16px);
}


/* 1.7.3: varmistus, jos Toivo-rakenne ei käytä parent-teeman body-luokkia. */
body.oma-toivo-page .oma-toivo-polku,
.oma-toivo-polku {
  box-sizing: border-box;
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}


/* 1.8.3: Tarvitsen toivoa - oma valoisa Toivo-ilme */
body.oma-tarvitsen-toivoa-page {
  background: linear-gradient(180deg, #eee5d7 0%, #f5eee3 45%, #fbf7f1 100%);
}

body.oma-tarvitsen-toivoa-page .oma-toivo-hero {
  position: relative;
  min-height: clamp(390px, 43vw, 650px);
  background-image:
    linear-gradient(90deg, rgba(26,28,23,.62) 0%, rgba(26,28,23,.34) 38%, rgba(26,28,23,.10) 67%, rgba(26,28,23,.04) 100%),
    var(--oma-toivo-hero-image) !important;
  background-size: cover !important;
  background-position: center 46% !important;
  overflow: hidden;
}

body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-hero-image {
  width:100% !important;
  height:100% !important;
  position:absolute !important;
  inset:0 !important;
  object-fit:cover !important;
  object-position:center 46% !important;
  filter:brightness(.84) saturate(.88);
}

body.oma-tarvitsen-toivoa-page .oma-toivo-hero-title,
body.oma-tarvitsen-toivoa-page .oma-toivo-hero-kicker {
  position:relative;
  z-index:3;
}

body.oma-tarvitsen-toivoa-page .oma-toivo-hero-kicker {
  letter-spacing:.24em !important;
}

body.oma-tarvitsen-toivoa-page .oma-toivo-polku {
  width:min(980px, calc(100% - 40px));
  margin-inline:auto;
  padding-top:clamp(3rem,7vw,6rem);
}

.oma-toivo-polku__intro {
  margin:0 auto clamp(2.5rem,6vw,4.5rem);
  max-width:34ch;
  text-align:center;
  font-family:Georgia,'Times New Roman',serif;
  color:var(--oma-forest);
  font-size:clamp(1.65rem,3vw,2.7rem);
  line-height:1.25;
  text-wrap:balance;
}

.oma-toivo-polku__questions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(1rem,2vw,1.5rem);
  margin:0 auto clamp(4rem,8vw,6rem);
  padding:0;
  border:0;
  background:transparent;
  font-family:Georgia,'Times New Roman',serif;
}

.oma-toivo-polku__question {
  min-height:220px;
  padding:clamp(1.7rem,4vw,2.6rem);
  border:1px solid var(--oma-line);
  border-radius:var(--oma-radius);
  background:rgba(247,244,239,.9);
  box-shadow:0 12px 34px rgba(38,37,31,.06);
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1rem;
}

.oma-toivo-polku__question span {
  color:#a45d3b;
  font-size:clamp(.98rem,.6vw + .88rem,1.13rem);
  line-height:1.5;
}

.oma-toivo-polku__question strong {
  max-width:22ch;
  font-size:clamp(1.45rem,2vw,1.95rem);
  line-height:1.25;
  text-wrap:balance;
}

body.oma-tarvitsen-toivoa-page .oma-toivo-polku__section {
  max-width:780px;
  margin-inline:auto;
}

body.oma-tarvitsen-toivoa-page .oma-toivo-polku__closing {
  width:min(880px,100%);
  margin-inline:auto;
  background:linear-gradient(180deg, rgba(249,246,240,.96), rgba(244,233,214,.9));
}

@media(max-width:720px){
  body.oma-tarvitsen-toivoa-page .oma-toivo-hero {
    min-height:430px;
    background-position:62% center !important;
  }
  body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-hero-image {
    object-position:62% center !important;
  }
  .oma-toivo-polku__questions {
    grid-template-columns:1fr;
  }
  .oma-toivo-polku__question {
    min-height:auto;
  }
}


/* 1.8.5: Tarvitsen toivoa - heron kirurginen viimeistely */
body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-hero-title {
  font-size: clamp(3.7rem, 7.5vw, 7.2rem) !important;
  line-height: .95 !important;
  max-width: 8.8ch;
}

/* Piilota mahdollinen vanhan otsikon haamuelementti heroalueelta. */
body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-ghost-title {
  display: none !important;
}

@media (max-width: 720px) {
  body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-hero-title {
    font-size: clamp(3rem, 13vw, 4.8rem) !important;
    max-width: 9ch;
  }
}


/* 1.8.6: Tarvitsen toivoa - lopullinen hero-otsikon korjaus */
@media (min-width: 721px) {
  body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-hero-title {
    font-size: clamp(3.9rem, 5.9vw, 6rem) !important;
    line-height: 1 !important;
    max-width: none !important;
    width: max-content !important;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
  }
}

/* Poista parent-teeman koristeelliset otsikkokopiot/pseudo-elementit. */
body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-hero-title::before,
body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-hero-title::after,
body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-title-wrap::before,
body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-title-wrap::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
}

/* Jos vanha otsikko on oikea DOM-elementti, se poistetaan kokonaan tilasta. */
body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-ghost-title {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 720px) {
  body.oma-tarvitsen-toivoa-page .oma-toivo-hero .oma-toivo-hero-title {
    font-size: clamp(3rem, 13vw, 4.7rem) !important;
    max-width: 8.8ch !important;
    width: auto !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }
}


/* 1.8.8: Tarvitsen toivoa - hero rakennetaan kokonaan uudelleen */
body.oma-tarvitsen-toivoa-page .oma-toivo-hero {
  position: relative !important;
  min-height: clamp(420px, 46vw, 700px) !important;
  background-image:
    linear-gradient(90deg, rgba(22,25,20,.64) 0%, rgba(22,25,20,.34) 42%, rgba(22,25,20,.08) 72%, rgba(22,25,20,.03) 100%),
    var(--oma-toivo-hero-image) !important;
  background-size: cover !important;
  background-position: center 48% !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
}

body.oma-tarvitsen-toivoa-page .oma-toivo-hero__inner {
  position: relative;
  z-index: 5;
  width: min(1320px, calc(100% - 9vw));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

body.oma-tarvitsen-toivoa-page .oma-toivo-hero__kicker {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(.78rem, .3vw + .72rem, .95rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: .23em;
  text-transform: uppercase;
}

body.oma-tarvitsen-toivoa-page .oma-toivo-hero__title {
  margin: 0;
  max-width: none;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(4rem, 6.4vw, 7rem);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.025em;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}

@media (max-width: 720px) {
  body.oma-tarvitsen-toivoa-page .oma-toivo-hero {
    min-height: 440px !important;
    background-position: 63% center !important;
  }
  body.oma-tarvitsen-toivoa-page .oma-toivo-hero__inner {
    width: min(100% - 2rem, 680px);
    padding: 4.5rem 0 3.5rem;
  }
  body.oma-tarvitsen-toivoa-page .oma-toivo-hero__title {
    font-size: clamp(3.15rem, 13vw, 5rem);
    max-width: 8.5ch;
    white-space: normal;
    text-wrap: balance;
  }
}


/* 1.9.0: tunnetilasivujen sisäiset jatkopolut */
.oma-vierella__next,
.oma-yhteys__next,
.oma-yksin__next,
.oma-toivo-polku__next {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
}

@media (max-width: 720px) {
  .oma-vierella__next,
  .oma-yhteys__next,
  .oma-yksin__next,
  .oma-toivo-polku__next {
    grid-template-columns: 1fr !important;
  }
}


/* 2.0.0: Etusivun tunneportti */
.oma-feeling-gateway {
  padding: clamp(3rem, 7vw, 5.5rem) 1.25rem;
  background: #f3ecdf;
  border-bottom: 1px solid rgba(73,83,56,.12);
}
.oma-feeling-gateway__inner {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}
.oma-feeling-gateway__inner > span {
  display: block;
  margin-bottom: 1rem;
  color: #a45d3b;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
}
.oma-feeling-gateway h2 {
  margin: 0 auto 1rem;
  color: #485238;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}
.oma-feeling-gateway p {
  max-width: 560px;
  margin: 0 auto 1.6rem;
  color: #5f6159;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}
.oma-feeling-gateway a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.35rem;
  border: 1px solid rgba(73,83,56,.32);
  border-radius: 999px;
  color: #485238;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease;
}
.oma-feeling-gateway a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.5);
}


/* 2.0.1: Olen yksin - rauhallinen, itsenäinen ilme */
body.oma-olen-yksin-finished .oma-yksin-hero__kicker {
  letter-spacing: .22em !important;
  font-weight: 700 !important;
}

body.oma-olen-yksin-finished .oma-yksin-pause-cards {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 2vw, 1.5rem) !important;
  max-width: 920px !important;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.oma-olen-yksin-finished .oma-yksin-pause-card {
  min-height: 210px;
  padding: clamp(1.6rem, 4vw, 2.5rem) !important;
  border: 1px solid rgba(73,83,56,.17);
  border-radius: 22px;
  background: rgba(249,246,240,.92);
  box-shadow: 0 12px 32px rgba(39,42,33,.055);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

body.oma-olen-yksin-finished .oma-yksin-pause-card strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.3;
  font-weight: 400;
  color: #485238;
  text-wrap: balance;
}

body.oma-olen-yksin-finished .oma-yksin-signature-wrap {
  margin-top: clamp(3rem, 7vw, 6rem) !important;
  margin-bottom: clamp(3rem, 7vw, 6rem) !important;
  text-align: center !important;
}

body.oma-olen-yksin-finished .oma-yksin-signature {
  display: block;
  max-width: 760px;
  margin-inline: auto !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(2rem, 4.4vw, 4rem) !important;
  line-height: 1.08 !important;
  font-weight: 400 !important;
  color: #485238 !important;
  text-wrap: balance;
}

@media (max-width: 720px) {
  body.oma-olen-yksin-finished .oma-yksin-pause-cards {
    grid-template-columns: 1fr !important;
  }
  body.oma-olen-yksin-finished .oma-yksin-pause-card {
    min-height: auto;
  }
}


/* 2.0.2: Yksinäinen toisen vierellä - hiljaisempi ja intiimimpi */
body.oma-vierella-finished {
  background: linear-gradient(180deg, #e9e2d8 0%, #f2ece3 48%, #f8f4ee 100%);
}

body.oma-vierella-finished .oma-vierella-hero {
  position: relative;
}
body.oma-vierella-finished .oma-vierella-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(27,30,25,.22), rgba(27,30,25,.05) 58%, rgba(27,30,25,.16));
  z-index: 1;
}
body.oma-vierella-finished .oma-vierella-hero > * {
  position: relative;
  z-index: 2;
}
body.oma-vierella-finished .oma-vierella-hero__kicker {
  letter-spacing: .22em !important;
  font-weight: 700 !important;
}

body.oma-vierella-finished .oma-vierella-pause-cards {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: clamp(1rem,2vw,1.5rem) !important;
  max-width: 920px !important;
  margin: clamp(2.8rem,6vw,5rem) auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.oma-vierella-finished .oma-vierella-pause-card {
  min-height: 230px;
  padding: clamp(1.8rem,4vw,2.7rem) !important;
  border: 1px solid rgba(73,83,56,.14);
  border-radius: 22px;
  background: rgba(244,239,232,.88);
  box-shadow: 0 14px 38px rgba(34,35,31,.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

body.oma-vierella-finished .oma-vierella-pause-card strong {
  font-family: Georgia,'Times New Roman',serif;
  font-size: clamp(1.35rem,2vw,1.9rem);
  line-height: 1.32;
  font-weight: 400;
  color: #485238;
  text-wrap: balance;
}

body.oma-vierella-finished .oma-vierella-emphasis {
  max-width: 760px;
  margin: clamp(2.5rem,5vw,4rem) auto !important;
  text-align: center !important;
  font-family: Georgia,'Times New Roman',serif !important;
  font-size: clamp(1.7rem,3vw,2.7rem) !important;
  line-height: 1.22 !important;
  font-weight: 400 !important;
  color: #485238 !important;
  text-wrap: balance;
}

@media (max-width:720px) {
  body.oma-vierella-finished .oma-vierella-pause-cards {
    grid-template-columns: 1fr !important;
  }
  body.oma-vierella-finished .oma-vierella-pause-card {
    min-height: auto;
  }
}


/* 2.0.3: Kaipaan yhteyttä - lämpimämpi, ulospäin avautuva tunnelma */
body.oma-yhteys-finished {
  background: linear-gradient(180deg, #eee4d5 0%, #f6eee2 48%, #fbf7f1 100%);
}

body.oma-yhteys-finished .oma-yhteys-hero {
  position: relative;
}
body.oma-yhteys-finished .oma-yhteys-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(90deg, rgba(36,37,29,.17), rgba(166,104,66,.04) 58%, rgba(239,199,135,.10));
}
body.oma-yhteys-finished .oma-yhteys-hero > * {
  position: relative;
  z-index: 2;
}
body.oma-yhteys-finished .oma-yhteys-hero__kicker {
  letter-spacing: .22em !important;
  font-weight: 700 !important;
}

body.oma-yhteys-finished .oma-yhteys-pause-cards {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: clamp(1rem,2vw,1.5rem) !important;
  max-width: 920px !important;
  margin: clamp(2.8rem,6vw,5rem) auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.oma-yhteys-finished .oma-yhteys-pause-card {
  min-height: 220px;
  padding: clamp(1.8rem,4vw,2.7rem) !important;
  border: 1px solid rgba(164,93,59,.16);
  border-radius: 22px;
  background: rgba(250,245,237,.94);
  box-shadow: 0 14px 38px rgba(55,43,33,.055);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

body.oma-yhteys-finished .oma-yhteys-pause-card strong {
  font-family: Georgia,'Times New Roman',serif;
  font-size: clamp(1.35rem,2vw,1.9rem);
  line-height: 1.32;
  font-weight: 400;
  color: #485238;
  text-wrap: balance;
}

body.oma-yhteys-finished .oma-yhteys-emphasis {
  max-width: 760px;
  margin: clamp(2.7rem,5vw,4.2rem) auto !important;
  text-align: center !important;
  font-family: Georgia,'Times New Roman',serif !important;
  font-size: clamp(1.75rem,3vw,2.8rem) !important;
  line-height: 1.22 !important;
  font-weight: 400 !important;
  color: #8e5539 !important;
  text-wrap: balance;
}

@media (max-width:720px) {
  body.oma-yhteys-finished .oma-yhteys-pause-cards {
    grid-template-columns: 1fr !important;
  }
  body.oma-yhteys-finished .oma-yhteys-pause-card {
    min-height: auto;
  }
}
