/* =========================================================
   HierojaÄssä – sivuston tyylit
   Värit ja fontit on koottu alle :root-lohkoon. Muuta niitä
   sieltä, niin muutos näkyy kaikilla sivuilla.
   ========================================================= */

:root {
  --paper: #f4f4f1;      /* sivun taustaväri */
  --paper-2: #e9e8e3;    /* vaihtoehtoisten osioiden tausta */
  --ink: #161616;        /* teksti ja tummat pinnat */
  --ink-2: #444542;      /* toissijainen teksti */
  --line: #d4d3cc;       /* ohuet viivat */
  --on-ink: #f1f1ee;     /* teksti tummalla pohjalla */
  --on-ink-2: #b9b9b3;
  --frost: #1b6894;      /* X°CRYO-sivun korostusväri */
  --frost-tint: #e3eef4;

  --font-body: "Barlow", Arial, Helvetica, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.9vw, 4.25rem); text-transform: uppercase; letter-spacing: 0; hyphens: manual; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); font-weight: 600; }

p { margin: 0 0 1em; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 14px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 50px; padding: 12px 22px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: .02em; text-decoration: none; line-height: 1.1;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn--light:hover { background: #fff; }
.btn--frost { background: var(--frost); border-color: var(--frost); color: #fff; }
.btn--frost:hover { background: #12557b; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Ylätunniste ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--on-ink);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: block; flex-shrink: 0; }
.brand img { width: 172px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 4px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em;
  text-decoration: none; color: var(--on-ink-2);
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; border-radius: 0; }
.nav .btn { margin-left: 12px; min-height: 42px; padding: 8px 16px; font-size: 1.1rem; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  background: none; border: 2px solid var(--on-ink-2); color: var(--on-ink);
  border-radius: var(--radius); padding: 8px 14px; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .03em; cursor: pointer;
}

/* Kapea näyttö: logo ja Varaa aika ylhäällä, linkit yhdellä pyyhkäistävällä rivillä */
@media (max-width: 889px) {
  .site-header { position: static; }
  .site-header .wrap { position: relative; flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 12px; padding-bottom: 0; }
  .brand img { width: 136px; }
  .nav {
    width: 100%; flex-wrap: nowrap; gap: 2px; margin-top: 10px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    border-top: 1px solid #2d2d2b; padding: 2px 0;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 8px; font-size: 1.1rem; letter-spacing: 0; white-space: nowrap; flex-shrink: 0; }
  .nav a:first-child { padding-left: 0; }
  .nav .btn { position: absolute; top: 8px; right: var(--gutter); margin: 0; min-height: 38px; padding: 6px 14px; font-size: 1.05rem; }
}


/* ---------- Etusivun hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero__byline { font-weight: 500; color: var(--ink-2); margin-bottom: 18px; }
.hero h1 { margin-bottom: 32px; }
.hero__plate {
  background: var(--ink); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  aspect-ratio: 1 / 1; display: grid; place-items: center;
}
.hero__plate img { width: 100%; }
.hero__more { margin-top: 18px; }
.hero__more a { font-weight: 500; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__plate { order: -1; aspect-ratio: auto; padding: 28px 24px; }
  .hero__plate img { max-width: 380px; margin: 0 auto; }
}

/* ---------- Tietopalkki toimipisteistä ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts .wrap > div { padding: 22px 24px 22px 0; }
.facts .wrap > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .facts .wrap { grid-template-columns: 1fr; }
  .facts .wrap > div, .facts .wrap > div + div { padding: 16px 0; border-left: 0; }
  .facts .wrap > div + div { border-top: 1px solid var(--line); }
}

/* ---------- Osiot ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink p { color: var(--on-ink-2); }
.section + .section:not(.section--alt):not(.section--ink) { border-top: 1px solid var(--line); }

.lede { font-size: clamp(1.2rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 44em; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* Otsikko vasemmalla, teksti oikealla */
.rail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); }
.rail > h2, .rail__head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
@media (max-width: 860px) {
  .rail { grid-template-columns: 1fr; gap: 8px; }
  .rail > h2, .rail__head { position: static; }
}

.quote {
  margin: 1.6em 0; padding: 0 0 0 22px; border-left: 4px solid var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15;
}

/* ---------- Palvelulista ---------- */
.services { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 16px 40px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.service h3 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 700; }
.service p { margin: 0; color: var(--ink-2); }
.service > a { font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 8px; }
}

.tag {
  display: inline-block; vertical-align: middle; margin-left: .4em;
  padding: 2px 10px; border: 1px solid var(--ink-2); border-radius: 999px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2);
}

/* Palvelut-sivun laajat palvelukuvaukset */
.offer { padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.offer:first-child { border-top: 2px solid var(--ink); }
.offer h2 { margin-bottom: .4em; }

/* ---------- Ajanvarausosio (tumma) ---------- */
.book__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid #3a3a37; }
.book__loc { padding: 28px 32px 8px 0; }
.book__loc + .book__loc { padding-left: 32px; border-left: 1px solid #3a3a37; }
.book__loc h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .2em; }
.book__loc p { margin-bottom: 20px; }
.book__note { margin-top: 36px; }
.book__note a { color: var(--on-ink); }
@media (max-width: 720px) {
  .book__grid { grid-template-columns: 1fr; }
  .book__loc, .book__loc + .book__loc { padding: 24px 0 8px; border-left: 0; }
  .book__loc + .book__loc { border-top: 1px solid #3a3a37; }
}

/* ---------- Alasivujen otsikko ---------- */
.page-head { padding: clamp(44px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 16ch; }
.page-head .lede { margin-top: 8px; }

/* ---------- X°CRYO ---------- */
.cryo-head .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.cryo-head h1 { max-width: none; font-size: clamp(2.3rem, 4.6vw, 4rem); }
.cryo-mark { color: var(--frost); }
.cryo-panel {
  background: var(--frost-tint); border-top: 4px solid var(--frost);
  padding: 24px 26px; border-radius: 0 0 var(--radius) var(--radius);
}
.cryo-panel h2 { font-size: 1.5rem; color: var(--frost); margin-bottom: .6em; }
.cryo-panel dl { margin: 0; }
.cryo-panel dt { font-weight: 600; }
.cryo-panel dd { margin: 0 0 14px; color: var(--ink-2); }
.cryo-panel dd:last-child { margin-bottom: 0; }
.steps { list-style: none; counter-reset: step; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 18px 56px; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--frost); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.steps strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ink); padding: 20px 24px; margin: 1.2em 0; border-radius: 0 var(--radius) var(--radius) 0; }
.callout--frost { border-left-color: var(--frost); }
.source { font-size: 1rem; color: var(--ink-2); }
@media (max-width: 820px) { .cryo-head .wrap { grid-template-columns: 1fr; } }

/* ---------- UKK ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.8rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 8px; }

/* ---------- Ajanvaraus ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab {
  min-height: 50px; padding: 10px 20px; cursor: pointer;
  border: 2px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.booking__addr { color: var(--ink-2); margin-bottom: 14px; }
.booking__frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.booking__frame iframe { display: block; width: 100%; height: 900px; border: 0; }
.booking__aside { position: sticky; top: calc(var(--header-h) + 24px); border-top: 2px solid var(--ink); padding-top: 18px; }
.booking__aside h2 { font-size: 1.5rem; margin-bottom: .3em; }
.booking__aside p { font-size: 1.05rem; }
@media (max-width: 900px) {
  .booking { grid-template-columns: 1fr; }
  .booking__aside { position: static; }
  .tab { flex: 1 1 auto; }
}

/* ---------- Yhteystiedot ---------- */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.place { border-top: 2px solid var(--ink); padding-top: 20px; }
.place h2 { margin-bottom: .2em; }
.map {
  margin: 18px 0 14px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; padding: 20px;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map.is-loaded { padding: 0; }
.map p { font-size: 1rem; color: var(--ink-2); max-width: 30ch; margin: 10px auto 0; }
.map button { cursor: pointer; }
.contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-list h3 { font-size: 1.35rem; margin-bottom: .3em; }
@media (max-width: 760px) {
  .places, .contact-list { grid-template-columns: 1fr; }
}

/* ---------- Alatunniste ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-2); padding: 64px 0 28px; font-size: 1rem; }
.site-footer a { color: var(--on-ink); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid h2 { font-size: 1.3rem; color: var(--on-ink); margin-bottom: .5em; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: 6px; }
.footer__logo { width: 150px; margin-bottom: 14px; }
.footer__base { margin-top: 48px; padding-top: 20px; border-top: 1px solid #333331; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Aktiivinen "Varaa aika" -painike pysyy luettavana */
.nav .btn[aria-current="page"] { color: var(--ink); box-shadow: none; border-radius: var(--radius); text-decoration: none; }

/* X°CRYO-laitekuva */
.cryo-head .wrap { align-items: center; }
.cryo-side { display: grid; gap: 16px; }
.cryo-photo { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cryo-photo img { width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.cryo-photo figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; text-align: center; }
@media (max-width: 820px) { .cryo-photo img { max-height: 300px; } }

/* Kuva Teemusta */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius); background: var(--paper-2); }
.rail__head .photo { margin-top: 28px; max-width: 380px; }
.about-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(28px, 5vw, 72px); align-items: end; }
@media (max-height: 760px) { .rail__head { position: static; } }
@media (max-width: 860px) {
  .rail__head .photo { max-width: 420px; margin-bottom: 16px; }
}
@media (max-width: 720px) {
  .about-head .wrap { grid-template-columns: 1fr; }
  .about-head .photo { max-width: 420px; }
}

/* Kuvatekstit ja omat laitekuvat */
.photo figcaption { font-size: .9rem; color: var(--ink-2); margin-top: 8px; }
.cryo-photo.photo { padding: 0; background: none; border: 0; }
.cryo-photo.photo img { max-height: none; object-fit: cover; aspect-ratio: 4 / 5; }
.cryo-photo.photo figcaption { text-align: left; }
.cryo-head .cryo-side { max-width: 400px; }
.offer .rail__head .photo { max-width: 340px; }
@media (max-width: 820px) { .cryo-head .cryo-side { max-width: 420px; } }

/* Hinnasto */
.prices { width: 100%; max-width: 420px; border-collapse: collapse; margin: 0 0 1.2em; caption-side: bottom; }
.prices caption { text-align: left; font-size: .95rem; color: var(--ink-2); padding-top: 8px; }
.prices th, .prices td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.prices tr:first-child th, .prices tr:first-child td { border-top: 2px solid var(--ink); }
.prices td { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.prices__note { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--ink-2); }

/* Tiivis ylävalikko kapeammilla näytöillä, jotta linkit mahtuvat näkyviin */
@media (min-width: 1030px) and (max-width: 1309px) {
  .site-header .wrap { gap: 12px; }
  .brand img { width: 128px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 7px; font-size: 1.02rem; letter-spacing: 0; }
  .nav .btn { margin-left: 6px; padding: 6px 12px; font-size: 1rem; min-height: 38px; }
}
.nav a { white-space: nowrap; }

/* Erittäin tiivis ylävalikko (700–859 px, esim. suurennettu näyttö) */
@media (min-width: 890px) and (max-width: 1029px) {
  .site-header .wrap { gap: 10px; }
  .brand img { width: 110px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 5px; font-size: .95rem; letter-spacing: 0; }
  .nav .btn { margin-left: 4px; padding: 5px 10px; font-size: .95rem; min-height: 36px; }
}
.tag { text-transform: none; }

/* Koko logo ylätunnisteessa (korkeuden mukaan) */
:root { --header-h: 92px; }
.brand img { height: auto; width: 230px; }
@media (max-width: 1309px) { .brand img { height: auto; width: 170px; } }
@media (max-width: 1029px) { .brand img { height: auto; width: 132px; } }
@media (max-width: 889px) { .brand img { height: auto; width: 160px; } .nav .btn { top: 12px; } }

/* ---------- Tietopankki ---------- */
.kb-label { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; margin: 0 0 .4em; }
.kb-search { max-width: 560px; margin-bottom: 40px; }
.kb-search label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.kb-search input {
  width: 100%; min-height: 52px; padding: 10px 16px; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
}
.kb-empty { margin-top: 12px; color: var(--ink-2); }
.kb-group + .kb-group { margin-top: 48px; }
.kb-group h2 { border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.kb-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.kb-card { border-bottom: 1px solid var(--line); }
.kb-card[hidden] { display: none; }
.kb-card a { display: block; padding: 20px 0 18px; text-decoration: none; }
.kb-card h3 { margin: 0 0 .25em; font-size: 1.6rem; font-weight: 700; }
.kb-card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.kb-card p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }

.kb-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.kb-toc li a { display: block; padding: 4px 0 4px 14px; text-decoration: none; color: var(--ink-2); font-size: 1rem; line-height: 1.35; }
.kb-toc li a:hover { color: var(--ink); text-decoration: underline; }
.kb-toc .kb-toc-3 a { padding-left: 28px; font-size: .95rem; }
@media (max-width: 860px) { .kb-toc { display: none; } }

.kb-article h2 { margin-top: 1.6em; }
.kb-article h2:first-child { margin-top: 0; }
.kb-article [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.kb-vaiva { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.kb-vaiva h3 { margin-top: 0; font-size: 1.65rem; font-weight: 700; }
.kb-vaiva ul { margin-bottom: .8em; }
.kb-help { background: #fff; border-left: 4px solid var(--ink); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.kb-flags { margin: 2.4em 0 1.6em; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-top: 4px solid #a3261b; border-radius: 0 0 var(--radius) var(--radius); }
.kb-flags h2 { margin: 0 0 .6em; }
.kb-flags .kb-label { color: #a3261b; margin-top: 1em; }
.kb-flags .kb-label:first-of-type { margin-top: 0; }
.kb-flags .kb-note { font-size: 1rem; color: var(--ink-2); margin: 1em 0 0; }
.kb-source { font-size: .98rem; }
.kb-source cite { font-style: italic; }
.kb-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 22px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin: 28px 0; }
.kb-cta p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.kb-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kb-pn a { display: block; text-decoration: none; padding: 12px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.kb-pn a span { display: block; font-family: var(--font-body); font-weight: 400; font-size: .95rem; color: var(--ink-2); }
.kb-pn .kb-next { text-align: right; }
.kb-pn a:hover { text-decoration: underline; }
.hero__byline a { color: inherit; }
.kb-notice { margin-top: 20px; color: var(--ink-2); max-width: 44em; } .kb-notice .tag { margin: 0 8px 0 0; }
.kb-levels { margin: 0 0 1em; border-top: 2px solid var(--ink); }
.kb-levels > div { display: grid; grid-template-columns: 200px 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kb-levels dt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.kb-levels dd { margin: 0; }
@media (max-width: 600px) { .kb-levels > div { grid-template-columns: 1fr; } }

/* Tietopankki: harjoitteet ja UKK */
.kb-exs { display: grid; gap: 14px; margin: 1em 0 1.4em; }
.kb-ex { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kb-ex h3 { margin: 0 0 .4em; font-size: 1.4rem; font-weight: 700; }
.kb-ex p { margin: 0 0 .5em; }
.kb-ex p:last-child { margin-bottom: 0; }
.kb-ex-note { color: var(--ink-2); font-size: 1rem; }
.kb-article .faq { margin-top: .4em; }
.kb-glossary > div { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (max-width: 480px) { h1 { font-size: 2rem; } }
h1 { overflow-wrap: break-word; hyphens: auto; }
.rail > * { min-width: 0; }
.kb-pn a, .kb-card h3 { overflow-wrap: anywhere; hyphens: auto; }
a[href^="tel:"] { white-space: nowrap; }

/* Tietopankin lähdeluettelo */
.kb-sources { margin-top: 8px; }
.kb-sources summary { cursor: pointer; font-weight: 600; }
.kb-sources ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: .9rem; line-height: 1.5; }
.kb-sources li { padding-left: 1.6em; text-indent: -1.6em; margin-bottom: 10px; overflow-wrap: anywhere; }
.kb-sources a { overflow-wrap: anywhere; }

/* Asiakkaiden arviot */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; }
.review__stars { margin: 0 0 10px; color: #c8941f; letter-spacing: 2px; font-size: 1.05rem; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.review figcaption { margin-top: 14px; color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.reviews-more { margin-top: 20px; }
.reviews-more > summary { cursor: pointer; font-weight: 600; display: inline-block; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.reviews-more[open] > summary { margin-bottom: 4px; }

/* Etusivun hero-kuva ja logolaatta */
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
@media (max-width: 820px) {
  .hero__photo img { aspect-ratio: 4 / 3; object-position: center 35%; max-height: 360px; }
}
.logo-plate { background: var(--ink); border-radius: var(--radius); padding: 28px 24px; }
.logo-plate img { background: none; }

/* Lihasartikkelit (O, I, F, N) */
.muscle { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 36px; }
.muscle h2 { margin-bottom: 14px; }
.muscle__lat { display: block; font-family: var(--font-body); font-size: 1rem; font-weight: 500; font-style: italic; color: var(--ink-2); text-transform: none; letter-spacing: 0; margin-top: 4px; }
.muscle__oifn { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.muscle__oifn > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.muscle__oifn > div:first-child { border-top: 0; }
.muscle__oifn dt { font-weight: 700; }
.muscle__oifn dt abbr { display: inline-block; min-width: 1.6em; text-decoration: none; color: var(--ink); }
.muscle__oifn dd { margin: 0; }
.muscle__note { margin-top: 12px; color: var(--ink-2); }
.muscle__fig { margin: 0 0 16px; max-width: 420px; }
.muscle__fig img { width: 100%; height: auto; border-radius: var(--radius); background: #fff; }
.muscle__fig figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 560px) { .muscle__oifn > div { grid-template-columns: 1fr; gap: 2px; } }

/* Lahjakorttilomake */
.giftform fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.giftform legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.giftform__row { margin-bottom: 14px; }
.giftform__row label { display: block; font-weight: 600; margin-bottom: 4px; }
.giftform input[type="text"], .giftform input[type="email"], .giftform input[type="tel"], .giftform input[type="number"], .giftform input[type="date"], .giftform select, .giftform textarea, .giftform__done textarea {
  width: 100%; max-width: 480px; font: inherit; padding: 10px 12px; border: 1px solid var(--ink-2); border-radius: var(--radius); background: #fff; color: var(--ink); }
.giftform__radio { display: inline-flex; gap: 8px; align-items: center; margin: 0 20px 12px 0; font-weight: 600; }
.giftform__check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.giftform__check input, .giftform__radio input { width: 1.15em; height: 1.15em; margin-top: .2em; accent-color: var(--ink); }
.giftform__hint { font-size: .92rem; color: var(--ink-2); margin: 6px 0 0; }
.giftform__error { color: #a3261b; font-weight: 600; }
.giftform__done:focus { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Lahjakorttipohja (tulostus) */
.giftcard { background: var(--ink); color: var(--on-ink); border-radius: 14px; padding: 40px 44px; max-width: 760px; margin-top: 32px; }
.giftcard__logo { width: 220px; height: auto; }
.giftcard__label { font-family: var(--font-display); text-transform: uppercase; font-size: 3rem; line-height: 1; margin: 28px 0 8px; letter-spacing: .02em; }
.giftcard__product { font-size: 1.6rem; font-weight: 600; margin: 0 0 18px; }
.giftcard__to, .giftcard__msg { margin: 0 0 6px; color: var(--on-ink); font-size: 1.1rem; }
.giftcard__msg { font-style: italic; }
.giftcard__meta { display: flex; gap: 40px; margin: 24px 0 18px; }
.giftcard__meta dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-ink-2); }
.giftcard__meta dd { margin: 2px 0 0; font-weight: 700; font-size: 1.15rem; }
.giftcard__info { font-size: .85rem; color: var(--on-ink-2); margin: 0; line-height: 1.5; }
@media print {
  .site-header, .site-footer, .giftmaker__noprint, .skip-link { display: none !important; }
  body { background: #fff; }
  .giftmaker { padding: 0; }
  .giftcard { -webkit-print-color-adjust: exact; print-color-adjust: exact; margin: 0 auto; }
  @page { size: A4 landscape; margin: 15mm; }
}

/* Vuokrasopimuspohja */
.contract { background: #fff; color: #111; max-width: 820px; padding: 36px 40px; border: 1px solid #ccc; border-radius: 6px; font-size: .95rem; line-height: 1.4; }
.contract h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; margin: 18px 0 6px; color: #111; }
.contract p { margin: 0 0 6px; color: #111; overflow-wrap: anywhere; }
.contract__head { display: flex; align-items: center; gap: 24px; border-bottom: 2px solid #111; padding-bottom: 12px; }
.contract__logo { width: 120px; height: auto; background: #161616; padding: 8px; border-radius: 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.contract__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; margin: 0; color: #111; }
.contract__no { margin: 4px 0 0; }
.contract__cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.contract__fields { width: 100%; border-collapse: collapse; }
.contract__fields th { text-align: left; font-weight: 600; white-space: nowrap; padding: 6px 10px 2px 0; width: 1%; vertical-align: bottom; }
.contract__fields td { border-bottom: 1px solid #555; padding: 6px 0 2px; }
.contract__eur { float: right; }
.contract__check { margin-top: 6px; }
.contract__terms { margin: 0; padding-left: 1.3em; font-size: .85rem; }
.contract__terms li { margin: 0 0 3px; }
.contract__contra { font-size: .8rem; margin-top: 8px !important; }
.contract__accept { font-weight: 600; margin-top: 8px !important; }
.contract__sign { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 20px; margin-top: 30px; }
.contract__sign div { border-top: 1px solid #111; padding-top: 4px; font-size: .78rem; }
.contract__return { margin-top: 16px; border-top: 1px dashed #777; padding-top: 4px; font-size: .85rem; }
@media (max-width: 640px) {
  .contract { padding: 20px 16px; }
  .contract__cols, .contract__sign { grid-template-columns: 1fr; }
  .contract__fields th { white-space: normal; width: 35%; }
  .contract__head { flex-direction: column; align-items: flex-start; }
}
@media print {
  @page { size: A4; margin: 11mm 12mm; }
  .contract-page { padding: 0 !important; }
  .contract-page .wrap { padding: 0; max-width: none; }
  .contract { border: 0; padding: 0; max-width: none; font-size: 9.6pt; line-height: 1.35; }
  .contract__return { font-size: 9.4pt; }
  .contract__fields th, .contract__fields td { padding-top: 8px; }
  .contract h3 { font-size: 9.5pt; margin: 8px 0 3px; }
  .contract__title { font-size: 15pt; }
  .contract__logo { width: 90px; }
  .contract__fields th, .contract__fields td { padding-top: 5px; }
  .contract__terms { font-size: 8.8pt; }
  .contract__terms li { margin-bottom: 4px; }
  .contract__contra { font-size: 8.4pt; }
  .contract__sign { margin-top: 40px; }
  .contract__cols, .contract__sign { grid-template-columns: 1fr 1.4fr; }
  .contract__sign { grid-template-columns: 1fr 1.3fr 1.3fr; }
  .contract__head { flex-direction: row; }
}

/* Kipukartta */
.kb-map { display: grid; grid-template-columns: 1fr 220px; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 40px; }
.kb-map h2 { margin-top: 0; }
.kb-map__list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kb-map__list a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.kb-map__list a:hover, .kb-map__list a:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kb-map__fig { width: 100%; max-width: 220px; height: auto; justify-self: center; }
.kb-map__body * { fill: #e4e2da; stroke: #e4e2da; stroke-linecap: round; }
.kb-map__dot { fill: var(--ink); stroke: #fff; stroke-width: 3; cursor: pointer; transition: r .15s; }
.kb-map a:hover .kb-map__dot, .kb-map a:focus-visible .kb-map__dot { r: 12; fill: var(--frost); }
@media (max-width: 700px) {
  .kb-map { grid-template-columns: 1fr; padding: 20px 16px; }
  .kb-map__fig { max-width: 170px; order: -1; }
}

/* Hierojaopiskelijalle: anatomian sanasto */
.gl-stats { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.gl-stats li { font-size: 1rem; }
.gl-stats strong { font-family: var(--font-display); font-size: 1.9rem; margin-right: 6px; }
.gl-search { margin-bottom: 20px; }
.gl-jump { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.gl-jump a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.gl-jump a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gl-sec { margin: 0 0 48px; scroll-margin-top: calc(var(--header-h) + 16px); }
.gl-sec h2 { margin-bottom: 8px; }
.gl-count { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: #6b6a66; margin-left: 6px; }
.gl-note { max-width: 70ch; margin: 0 0 14px; }
.gl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gl-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.4; }
.gl-table th, .gl-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.gl-table thead th { background: #ecebe5; font-weight: 600; }
.gl-table td, .gl-table th { overflow-wrap: break-word; }
.gl-table tr.gl-group th { background: #f6f5f0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: .95rem; padding-top: 12px; }
.gl-table { table-layout: auto; font-size: .88rem; }
.gl-table tbody th { font-weight: 600; }
.gl-table td[data-l="Latina"] { font-style: italic; }
.gl-table tbody tr:last-child > * { border-bottom: 0; }
.gl-info p { max-width: 75ch; }
@media (max-width: 1060px) {
  .gl-wrap { border: 0; background: transparent; overflow: visible; }
  .gl-table thead { display: none; }
  .gl-table, .gl-table tbody, .gl-table tr, .gl-table th, .gl-table td { display: block; width: 100%; }
  .gl-table tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 8px 12px; }
  .gl-table th, .gl-table td { border: 0; padding: 3px 0; }
  .gl-table tr.gl-group { background: transparent; border: 0; padding: 14px 0 4px; margin: 0; }
  .gl-table tr.gl-group th { background: transparent; padding: 0; font-size: 1.05rem; }
  .gl-table tbody th { font-size: 1.05rem; }
  .gl-table td::before { content: attr(data-l) ": "; font-weight: 600; font-style: normal; color: #55544f; }
  .gl-table td.gl-empty { display: none; }
  .gl-stats strong { font-size: 1.5rem; }
}
.gl-figs-intro { max-width: 760px; font-size: .95rem; margin: 0 0 16px; }
.gl-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.gl-fig { margin: 0; background: #fff; border: 1px solid var(--line, #e2ded5); border-radius: 10px; padding: 8px; }
.gl-fig:first-child { grid-column: 1 / -1; max-width: 640px; }
.gl-fig img { display: block; width: 100%; height: auto; }
.gl-fig figcaption { font-size: .85rem; color: var(--muted, #6b665c); padding: 6px 4px 0; }
@media (max-width: 700px) { .gl-figs { grid-template-columns: 1fr; } }
.muscle__fi { font-weight: 400; color: var(--muted, #6b665c); }
/* Anatomian harjoituskoe */
.koe { max-width: 760px; scroll-margin-top: calc(var(--header-h) + 16px); }
.koe-setup fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.koe-setup legend { font-weight: 700; margin-bottom: 8px; }
.koe-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.koe-chip { position: relative; cursor: pointer; }
.koe-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.koe-chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; line-height: 1.3; }
.koe-chip input:checked + span { background: var(--ink); color: var(--paper); }
.koe-chip input:focus-visible + span { outline: 3px solid var(--frost); outline-offset: 2px; }
.koe-select { display: inline-flex; flex-direction: column; gap: 6px; font-weight: 700; margin-bottom: 20px; }
.koe-select select { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff; min-width: 240px; }
.koe-note { color: var(--ink-2); font-size: .92rem; }
.koe-msg { color: #a12a1e; font-weight: 600; }
.koe-top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.koe-bar { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.koe-bar span { display: block; height: 100%; background: var(--ink); }
.koe-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 4vw, 28px); }
.koe-stem { margin: 0 0 6px; }
.koe-term { font-size: 1.35rem; font-weight: 700; }
.koe-lat { font-style: italic; color: var(--ink-2); }
.koe-term.koe-lat { color: var(--ink); }
.koe-desc { display: block; font-size: 1.05rem; line-height: 1.5; }
.koe-ask { font-weight: 600; margin: 0 0 14px; }
.koe-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.koe-opt { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; overflow-wrap: anywhere; }
.koe-opt:hover:not(:disabled) { border-color: var(--ink); }
.koe-opt:disabled { cursor: default; }
.koe-key { flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; border: 1px solid currentColor; font-size: .85rem; font-weight: 700; }
.koe-opt.is-correct { background: #e3f1e6; border-color: #2e7d43; }
.koe-opt.is-wrong { background: #f7e3e0; border-color: #a12a1e; }
.koe-feedback { min-height: 1.5em; margin: 14px 0 0; }
.koe-feedback.is-ok strong { color: #2e7d43; }
.koe-feedback.is-bad strong { color: #a12a1e; }
.koe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.koe-result { text-align: center; }
.koe-result .koe-actions { justify-content: center; }
.koe-score { font-family: var(--font-display); font-size: 3rem; font-weight: 700; margin: 0; line-height: 1; }
.koe-pct { font-weight: 700; margin: 6px 0 12px; }
.koe-h { margin: 32px 0 12px; }
.koe-wrong { padding-left: 1.4em; display: grid; gap: 14px; }
.koe-wrong .koe-term { font-size: 1.05rem; }
.koe-wrong .koe-ask { margin: 0 0 4px; font-weight: 400; color: var(--ink-2); }
.koe-right { margin: 0; font-weight: 600; color: #2e7d43; }
.koe-foot { margin-top: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.koe-write { display: flex; flex-wrap: wrap; gap: 10px; }
.koe-write input { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 1.1rem; padding: 12px 14px; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); }
.koe-write input.is-correct { background: #e3f1e6; border-color: #2e7d43; }
.koe-write input.is-wrong { background: #f7e3e0; border-color: #a12a1e; }
.koe [hidden] { display: none !important; }
/* Hierojaopiskelijalle */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.op-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: .97rem; }
.op-table th, .op-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.op-table thead th { background: var(--paper-2); border-top: 0; }
.op-table td:first-child { font-style: italic; }
.op-tools { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.op-tools a { display: block; height: 100%; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.op-tools a:hover { border-color: var(--ink); }
.op-tools strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.op-tools span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 640px) { .op-tools { grid-template-columns: 1fr; } .op-table td:first-child { font-style: italic; } }
.prose ul.op-tools { padding-left: 0; margin-left: 0; } .prose ul.op-tools li { margin: 0; }
.kb-student { display: block; margin: 20px 0 0; padding: 18px 20px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); text-decoration: none; max-width: 760px; }
.kb-student:hover { background: #2a2a28; }
.kb-student__tag { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--on-ink-2); margin-bottom: 4px; }
.kb-student strong { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.kb-student span:last-child { color: var(--on-ink-2); }
.kb-student strong::after { content: " →"; }
.op-table--plain td:first-child { font-style: normal; }
.op-table--plain tbody th { background: var(--paper); font-weight: 700; padding-top: 12px; }
.op-table--plain td:last-child { white-space: nowrap; width: 1%; }
.gl-reco { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--radius); padding: clamp(16px, 3vw, 24px); max-width: 860px; }
.gl-reco h2 { margin-top: 0; }
.gl-reco ul { padding-left: 1.2em; }
.gl-reco li { margin-bottom: .5em; }
.book__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.place__photo { margin: 0 0 16px; }
.place__photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.place__photo figcaption { font-size: .9rem; margin-top: 6px; color: var(--ink-2); }
/* Ilmaiset treeniohjelmat */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(24px, 5vw, 64px); align-items: center; }
.lp-cover img, .lp-sample img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.lp-cover { transform: rotate(2deg); }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(24px, 5vw, 56px); align-items: start; }
.prose ul.lp-progs { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.lp-progs li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px; margin: 0; }
.lp-progs strong { display: block; font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }
.lp-progs span { color: var(--ink-2); }
.lp-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); max-width: 520px; display: grid; gap: 8px; margin-bottom: 1.2em; }
.lp-form label { font-weight: 600; margin-top: 6px; }
.lp-form label span { font-weight: 400; color: var(--ink-2); }
.lp-form input[type=text], .lp-form input[type=email] { font: inherit; padding: 12px 14px; border: 1px solid #9a9993; border-radius: var(--radius); background: #fff; width: 100%; }
.lp-form input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.lp-form .btn { margin-top: 10px; justify-self: start; }
.lp-small { font-size: .92rem; color: var(--ink-2); margin: 6px 0 0; }
.lp-done { background: #fff; border-left: 4px solid var(--ink); padding: 16px 20px; max-width: 520px; margin-bottom: 1.2em; }
.lp-done__title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin: 0 0 4px; }
.kb-optin { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; text-decoration: none; }
.kb-optin:hover { background: #2a2a28; }
.kb-optin img { width: 92px; height: auto; border-radius: 3px; display: block; }
.kb-optin strong { display: block; font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.kb-optin span { color: var(--on-ink-2); }
.kb-optin strong::after { content: " →"; }
@media (max-width: 720px) { .lp-hero, .lp-split { grid-template-columns: 1fr; } .lp-cover { max-width: 220px; } .lp-sample { max-width: 280px; } }

/* Mobiilin sisällysluettelo */
.toc-fab, .toc-panel { display: none; }
@media (max-width: 860px) {
  .toc-fab { display: block; position: fixed; right: 16px; bottom: 16px; z-index: 50; padding: 12px 18px; min-height: 44px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
  .toc-panel:not([hidden]) { display: block; position: fixed; left: 12px; right: 12px; bottom: 72px; max-height: 65vh; overflow-y: auto; z-index: 50; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
  .toc-panel ul { list-style: none; margin: 8px 0 0; padding: 0; }
  .toc-panel li a, .toc-top { display: block; padding: 10px 4px; color: var(--ink); text-decoration: none; line-height: 1.35; border-bottom: 1px solid var(--line); }
  .toc-top { font-weight: 600; }
}

/* Tietopankin haku */
.haku { margin: 20px 0 8px; position: relative; max-width: 640px; }
.haku__label { display: block; font-weight: 600; margin-bottom: 6px; }
.haku__input { width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 16px; min-height: 48px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); }
.haku__tulokset { list-style: none; margin: 6px 0 0; padding: 0; position: absolute; left: 0; right: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.18); max-height: 60vh; overflow-y: auto; }
.haku__tulokset a { display: block; padding: 12px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.haku__tulokset li:last-child a { border-bottom: 0; }
.haku__tulokset a:hover, .haku__tulokset a:focus { background: var(--paper, #f4f4f1); }
.haku__tulokset strong { display: block; }
.haku__tulokset span { display: block; font-size: .92rem; color: var(--ink-2); margin-top: 2px; }
.haku__tyhja { padding: 14px 16px; color: var(--ink-2); }
.haku__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.haku__chips a { padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.haku__chips a:hover { background: var(--ink); color: #fff; }

/* Treeni ja kirjat -pudotusvalikko */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd__menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 250px;
  flex-direction: column; padding: 6px; background: #161616; border: 1px solid #2d2d2b; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.nav-dd__menu a { padding: 10px 14px; }
.nav-dd:hover .nav-dd__menu, .nav-dd:focus-within .nav-dd__menu { display: flex; }
@media (max-width: 889px) {
  .nav-dd { display: contents; }
  .nav-dd__menu, .nav-dd:hover .nav-dd__menu, .nav-dd:focus-within .nav-dd__menu { display: none; }
}
.book { display: grid; grid-template-columns: 184px 1fr; gap: 32px; align-items: start; scroll-margin-top: 24px; }
.book + .book { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line, #d8d8d2); }
@media (max-width: 640px) { .book { grid-template-columns: 1fr; gap: 16px; } }

/* Kampanjakuva */
.campaign{display:grid;grid-template-columns:minmax(0,200px) 1fr;gap:28px;align-items:center}
.campaign img{width:100%;height:auto;display:block;border-radius:6px}
@media(max-width:640px){.campaign{grid-template-columns:1fr}.campaign figure{max-width:220px}}
