/* MÖLINÄ ATLAS · reittisivu 0.2 · 2026-11-03
   Vasen sivu = kartta (Fires of Ganymedes), oikea sivu = epistemia.
   Värit HG: yö #0D0F12 · hunaja #F2B84B · kerma #FFF4DE */

:root {
  --yo: #0D0F12;
  --hunaja: #F2B84B;
  --kerma: #FFF4DE;
  --muste: #1d1a17;
  --muste-2: #5a4f43;
  --viiva: rgba(29, 26, 23, .18);
  --sivu: var(--kerma);
  --sivu-teksti: var(--muste);
  --sivu-heikko: var(--muste-2);
  --placeholder-bg: rgba(242, 184, 75, .14);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --page-h: min(80vh, 780px);
}
:root[data-theme="night"] {
  --sivu: #16191e;
  --sivu-teksti: var(--kerma);
  --sivu-heikko: #c9bda8;
  --viiva: rgba(255, 244, 222, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--yo);
  color: var(--kerma);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--hunaja); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--hunaja); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--hunaja); color: var(--yo); padding: 8px 12px; z-index: 10; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Paikkamerkit [LINKKI] / [KUVA]: piilossa kävijältä, näkyvissä ?luonnos -osoitteella */
.placeholder { display: none; }
html.draft .placeholder { display: inline; background: var(--placeholder-bg); font-style: italic; padding: 0 4px; border-radius: 3px; }
html.draft p.placeholder { display: block; }

/* ── Ylätunniste ── */
.site-header {
  max-width: 1320px; margin: 0 auto; padding: 22px 24px 10px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between;
}
.brand { display: block; font-weight: 700; letter-spacing: .14em; font-size: 15px; color: var(--hunaja); }
.tagline { display: block; font-style: italic; color: #d8ccb6; font-size: 15px; }
.header-tools { display: flex; gap: 6px; }
.header-tools button, .page-nav button {
  font: inherit; font-size: 14px; cursor: pointer;
  background: transparent; color: var(--kerma);
  border: 1px solid rgba(255, 244, 222, .3); border-radius: 999px; padding: 5px 14px;
}
.header-tools button[aria-pressed="true"] { background: var(--hunaja); color: var(--yo); border-color: var(--hunaja); }

.notice {
  max-width: 1272px; margin: 6px auto 18px; padding: 10px 16px;
  border-left: 3px solid var(--hunaja); background: rgba(242, 184, 75, .07);
  font-size: 15px; line-height: 1.55; margin-inline: max(24px, calc((100% - 1272px) / 2));
}
.notice-second { display: block; }

/* ── Kirja-aukeama ── */
.book {
  max-width: 1320px; margin: 0 auto; padding: 0 24px 24px;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 0; perspective: 2200px;
}
.page { min-width: 0; }

.page-map {
  margin: 0; background: #0a0c0f;
  border-radius: 6px 0 0 6px;
  box-shadow: inset -24px 0 40px -24px rgba(0, 0, 0, .9);
  display: flex; flex-direction: column; justify-content: center; padding: 18px 10px 12px;
}
.map { display: block; width: 100%; height: auto; overflow: visible; }
.map-caption { text-align: center; color: #bfb39e; font-size: 13px; padding-top: 6px; }

.route-shadow { fill: none; stroke: rgba(13, 15, 18, .55); stroke-width: 14; stroke-linecap: round; }
.route { fill: none; stroke: var(--hunaja); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 4 18; opacity: .9; }
.stop { cursor: pointer; }
.stop circle.dot { fill: var(--yo); stroke: var(--hunaja); stroke-width: 5; transition: r .3s, fill .3s; }
.stop:hover circle.dot, .stop:focus circle.dot { fill: var(--hunaja); }
.stop.is-mist circle.dot { fill: rgba(255,244,222,.5); stroke: #9fd6d2; stroke-dasharray: 4 4; }
.stop.is-active circle.dot { fill: var(--hunaja); r: 15; }
.stop text {
  font-family: var(--serif); font-size: 30px; fill: var(--kerma); paint-order: stroke;
  stroke: var(--yo); stroke-width: 7px; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.stop:hover text, .stop:focus text, .stop.is-active text { opacity: 1; }
.platform-ring { fill: none; stroke: #fff; stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }

.train .car { fill: var(--hunaja); stroke: var(--yo); stroke-width: 3; }
.train .window { fill: var(--yo); }
.train .lamp { fill: #fff6d8; filter: url(#glow); animation: lamp 1.6s ease-in-out infinite alternate; }
@keyframes lamp { from { opacity: .65; } to { opacity: 1; } }

.page-text {
  position: relative;
  background: var(--sivu); color: var(--sivu-teksti);
  border-radius: 0 6px 6px 0;
  box-shadow: inset 22px 0 30px -22px rgba(0, 0, 0, .35), 0 20px 50px rgba(0, 0, 0, .45);
  height: var(--page-h);
  display: flex; flex-direction: column;
  transform-origin: left center;
  transition: background .3s, color .3s;
}
#readable { flex: 1; overflow-y: auto; padding: 44px 46px 20px; scrollbar-width: thin; }

.page-nav {
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px 14px; border-top: 1px solid var(--viiva);
}
.page-nav button { color: var(--sivu-teksti); border-color: var(--viiva); min-width: 44px; min-height: 36px; }
.page-nav button:disabled { opacity: .3; cursor: default; }
.nav-mid { display: flex; align-items: center; gap: 12px; }
.page-nav .play { border-color: var(--hunaja); color: var(--sivu-teksti); position: relative; overflow: hidden; }
.page-nav .play[aria-pressed="true"] { background: var(--hunaja); color: var(--yo); }
.play-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--yo); opacity: .5; width: 0; }
.page-label { font-size: 13px; color: var(--sivu-heikko); letter-spacing: .04em; text-align: center; }

/* Sivunkääntö: uusi sivu kääntyy kartan puolelta paikalleen */
.page-text.turn-fwd { animation: turnFwd .62s cubic-bezier(.3, .7, .3, 1); }
.page-text.turn-back { animation: turnBack .62s cubic-bezier(.3, .7, .3, 1); }
@keyframes turnFwd {
  0% { transform: rotateY(-88deg); filter: brightness(.55); }
  100% { transform: rotateY(0); filter: none; }
}
@keyframes turnBack {
  0% { transform: rotateY(28deg) translateX(-6px); opacity: .2; }
  100% { transform: none; opacity: 1; }
}

/* ── Sivun sisältö ── */
.chapter { margin-bottom: 3.2em; }
.chapter-head h2 { font-size: 30px; line-height: 1.2; margin: 0 0 .3em; font-weight: 700; }
.chapter-head .voice, .voice { font-style: italic; color: var(--sivu-heikko); }
.chapter-head { border-bottom: 1px solid var(--viiva); padding-bottom: .7em; margin-bottom: 1em; }
.chapter-body p { margin: 0 0 .75em; }
.chapter-body .indented { padding-left: 1.2em; }
.chapter-body h3 { font-size: 19px; margin: 1.4em 0 .4em; color: var(--sivu-teksti); }
.chapter-body h4 { font-size: 16px; font-style: italic; font-weight: 600; margin: 1.1em 0 .3em; color: var(--sivu-heikko); }
.page-text a { color: inherit; text-decoration-color: var(--hunaja); text-decoration-thickness: 2px; }
.chapter-body a[href^="http"] { word-break: break-all; }

.chapter-cover { min-height: 60%; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.chapter-cover .chapter-head { border: 0; }
.chapter-eyebrow { letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: #a8761a; margin: 0 0 1em; }
:root[data-theme="night"] .chapter-eyebrow { color: var(--hunaja); }
.chapter-cover h2 { font-size: 34px; font-weight: 600; }
.chapter-mist { text-align: center; padding: 3em 0; }
.mist-word { font-size: 28px; letter-spacing: .5em; color: var(--sivu-heikko); opacity: .7; }

/* Kirjatila (JS): vain yksi asema kerrallaan */
html.js-book .chapter { display: none; margin: 0; }
html.js-book .chapter.is-current { display: block; }
html.js-book .chapter-cover.is-current { display: flex; height: 100%; }
html.js-book .chapter-mist.is-current { display: flex; height: 100%; align-items: center; justify-content: center; }
html.js-book .page-nav { display: flex; }

.footer {
  max-width: 1320px; margin: 0 auto; padding: 16px 24px 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #a99d88; font-size: 14px;
}

/* ── Kapea näyttö: kartta ylös, sivu alle ── */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .site-header { padding: 16px 16px 8px; }
  .notice { margin-inline: 16px; }
  .book { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .page-map { border-radius: 6px 6px 0 0; padding: 10px 4px 6px; box-shadow: inset 0 -20px 30px -20px rgba(0,0,0,.9); }
  .page-text { border-radius: 0 0 6px 6px; height: auto; min-height: 60vh; transform-origin: center top; }
  #readable { padding: 26px 20px 12px; overflow: visible; }
  .chapter-head h2 { font-size: 25px; }
  .stop text { font-size: 40px; }
  @keyframes turnFwd { 0% { transform: rotateX(-35deg); opacity: .3; } 100% { transform: none; opacity: 1; } }
  .page-nav { position: sticky; bottom: 0; background: var(--sivu); }
  .footer { padding: 14px 16px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-text.turn-fwd, .page-text.turn-back { animation: none; }
  .platform-ring, .train .lamp { animation: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .notice, .header-tools, .page-nav, .page-map, .footer { display: none; }
  .book { display: block; }
  .page-text { height: auto; box-shadow: none; }
  html.js-book .chapter { display: block; }
}

/* ── Kuuntele: ääni vain lukijan omasta painalluksesta ── */
.listen { margin: 0 0 1.2em; }
.listen a, .listen button {
  display: inline-flex; align-items: center; gap: .4em;
  font: inherit; font-size: 15px; cursor: pointer; text-decoration: none;
  color: var(--sivu-teksti); background: transparent;
  border: 1px solid var(--hunaja); border-radius: 999px; padding: 6px 16px;
}
.listen a:hover, .listen button:hover { background: rgba(242, 184, 75, .18); }
.listen iframe { display: block; width: 100%; border: 0; border-radius: 10px; margin-top: .4em; background: transparent; }
.listen iframe.video { aspect-ratio: 16 / 9; height: auto; }
.listen iframe.apple { height: 175px; overflow: hidden; }

/* ── Omat äänitiedostot ── */
.tracks { margin: 0 0 1.6em; }
.tracks-empty { display: none; }
html.draft .tracks-empty { display: block; }
.tracks-title { font-size: 13px !important; letter-spacing: .18em; text-transform: uppercase; color: var(--sivu-heikko) !important; margin: 0 0 .5em !important; font-weight: 600; }
.tracks ol { list-style: none; margin: 0; padding: 0; }
.track {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto;
  column-gap: 12px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--viiva);
}
.track[hidden] { display: none; }
.track img, .track-nocover { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.track-nocover { display: grid; place-items: center; background: rgba(242,184,75,.18); color: #a8761a; font-size: 22px; }
.track-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.track-title { font-weight: 600; }
.track-album, .track-date { font-size: 13px; font-style: italic; color: var(--sivu-heikko); }
.track-time { font-size: 13px; color: var(--sivu-heikko); font-variant-numeric: tabular-nums; }
.track audio { grid-column: 2 / 4; width: 100%; height: 34px; margin-top: 4px; }
html.js-audio .track audio { display: none; }
.track-play {
  grid-row: 1 / 3; grid-column: 3; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--hunaja); background: transparent; color: var(--sivu-teksti); font-size: 14px;
}
.track.is-playing .track-play { background: var(--hunaja); color: var(--yo); }
.track-bar { grid-column: 2; height: 3px; background: var(--viiva); border-radius: 2px; overflow: hidden; margin-top: 6px; cursor: pointer; }
.track-bar i { display: block; height: 100%; width: 0; background: var(--hunaja); }
html.js-audio .track-time { display: none; }
.track.is-playing .track-title::after { content: " ♪"; color: #a8761a; }
.placeholder.track-ph, .tracks li.placeholder { list-style: none; }
.poster { margin: 1em 0; }
.poster img { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.now-playing { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--kerma); font-size: 14px; padding-top: 8px; }
.now-playing[hidden] { display: none; }
.now-playing button { font: inherit; font-size: 12px; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hunaja); background: var(--hunaja); color: var(--yo); }
.profiles a { color: #d8ccb6; } .profiles a:hover { color: var(--hunaja); }
.tracks-opening { max-width: 420px; margin: 2em auto 0; text-align: left; }
/* Mölinä Records -tunnari ylätunnisteessa */
.tracks-header { list-style: none; margin: 8px 0 0; padding: 0; max-width: 360px; }
.tracks-header .track { color: var(--kerma); border-bottom: 0; padding: 4px 0; grid-template-columns: 40px minmax(0,1fr) auto; }
.tracks-header .track img { width: 40px; height: 40px; }
.tracks-header .track-play { color: var(--kerma); width: 34px; height: 34px; }
.tracks-header .track-bar { background: rgba(255,244,222,.2); }
.tracks-header .track-title { font-size: 15px; }

/* 0.7 näyttelygalleria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 1em 0 1.4em; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.08); }
.gallery img { display: block; width: 100%; height: 150px; object-fit: cover; transition: transform .3s ease; }
.gallery-works img { object-fit: contain; background: #1a1a1a; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); }
.gallery figcaption { font-size: .78em; line-height: 1.3; margin-top: .35em; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(8,9,12,.9); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: 4px; }
.lightbox figcaption { color: #FFF4DE; font-size: .9em; margin-top: .5em; }
.lightbox-close { position: fixed; top: 12px; right: 16px; font-size: 32px; line-height: 1; background: none; border: 0; color: #FFF4DE; cursor: pointer; }
.credit { font-size: .8em; opacity: .75; margin-top: -.6em; }

/* 0.8 · kirjan kansi takakannessa */
.book-cover { margin: 0 0 1rem; max-width: 150px; }
.nowrap { white-space: nowrap; }
.book-cover img { display: block; width: 100%; height: auto; box-shadow: 0 2px 10px rgba(0,0,0,.25); }

/* 0.9 · Jatkuvuuspiraatti · avoin paluupiste */
.chapter-sub { margin: .2rem 0 0; font-style: italic; opacity: .75; }
.return-ways { list-style: none; padding: 0; margin: 1rem 0; }
.return-ways li { padding: .45rem 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.return-ways li:last-child { border-bottom: 0; font-style: italic; }
.return-lead { line-height: 1.7; }

/* 0.11 · arkistosalin lukittu kappale (HG-läppä) */
.track-locked .track-note { display: block; font-size: .85em; font-style: italic; opacity: .75; }
.track-play-fake { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid currentColor; text-decoration: none; margin-right: .6rem; flex: none; }
.track-locked { display: flex; align-items: center; }
.track-archive .track-note { display: block; font-size: .85em; font-style: italic; opacity: .75; }

/* 0.13 · Teokset omaksi · tuotekortit */
.shop-note { font-size: .9em; opacity: .8; }
.work-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin: .6rem 0 1.4rem; }
.work-card { display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; padding: .6rem; background: rgba(255,255,255,.35); }
.work-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; }
.work-card h5 { margin: .5rem 0 .2rem; font-size: .95rem; line-height: 1.3; }
.work-meta { font-size: .78rem; opacity: .75; margin: 0 0 .4rem; flex: 1; }
.work-price { font-weight: 600; margin: 0 0 .5rem; }
.work-ask { display: inline-block; text-align: center; padding: .35rem .6rem; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-size: .85rem; }
.return-beat { margin-top: 1.2rem; font-weight: 600; }

/* 0.14 · ostoreitit */
.print-prices { list-style: none; padding: 0; margin: .4rem 0 .8rem; }
.print-prices li { padding: .25rem 0; }
a.track-buy { font-size: .8rem; margin-left: .5rem; white-space: nowrap; }

/* Store 0.1 · ostoskori (näkyy vain, kun kauppa on asennettu) */
.work-add { margin-top: .4rem; padding: .4rem .6rem; border-radius: 999px; border: 0; background: #f2b84b; color: #1e1a18; font: inherit; font-size: .85rem; cursor: pointer; }
.work-card .work-ask-secondary { font-size: .78rem; padding: .2rem .5rem; opacity: .8; }
.work-card.is-sold { opacity: .55; }
.print-order { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin: .4rem 0 .8rem; }
.print-order select { font: inherit; max-width: 100%; }
.kori-btn { position: fixed; right: 16px; bottom: 16px; z-index: 50; padding: .6rem 1rem; border-radius: 999px; border: 0; background: #f2b84b; color: #1e1a18; font: 600 1rem Lora, Georgia, serif; box-shadow: 0 2px 10px rgba(0,0,0,.35); cursor: pointer; }
.kori-pulse { transform: scale(1.08); transition: transform .2s; }
.kori-panel { position: fixed; right: 16px; bottom: 72px; z-index: 51; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto; background: #fbf3df; color: #1e1a18; border-radius: 10px; padding: 1rem; box-shadow: 0 6px 30px rgba(0,0,0,.45); font-family: Lora, Georgia, serif; }
.kori-head { display: flex; justify-content: space-between; align-items: center; }
.kori-test { background: rgba(242,184,75,.3); padding: .2rem .5rem; border-radius: 4px; font-size: .8rem; }
.kori-list { list-style: none; padding: 0; margin: .6rem 0; }
.kori-list li { display: flex; gap: .5rem; align-items: baseline; padding: .3rem 0; border-bottom: 1px solid rgba(0,0,0,.1); font-size: .9rem; }
.kori-name { flex: 1; } .kori-x { border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: inherit; }
.kori-sum { font-weight: 600; }
.kori-form label { display: block; margin: .4rem 0; font-size: .85rem; }
.kori-form input:not([type=checkbox]), .kori-form select, .kori-form textarea { display: block; width: 100%; font: inherit; padding: .3rem; box-sizing: border-box; }
.kori-form .work-ask { background: #1e1a18; color: #fbf3df; cursor: pointer; font: inherit; margin-top: .4rem; }
.kori-form button[disabled] { opacity: .4; }
.kori-msg { font-size: .85rem; }
.kori-pwyw input { width: 4.5rem; font: inherit; } .track-tue-btn { margin-left: .5rem; font-size: .78rem; } .kori-digi { font-size: .8rem; }
.track-link { display: block; font-size: .78rem; opacity: .8; }

/* Kirjan hinnat (Takakansi) · 0.18 */
.book-price { font-size: 1.05rem; line-height: 1.5; margin: .8rem 0 .3rem; }
.book-spec { font-size: .85rem; opacity: .75; margin-top: 0; }

/* 0.18b: hidden-attribuutti voittaa aina (kori: osoite/lataus-ruutu, printtilomake) */
[hidden] { display: none !important; }

/* ── 0.19 · Päävalikko (iso, selkeä, myös vanhemmille kävijöille) ── */
.site-nav { flex-basis: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.site-nav a {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; min-height: 48px;
  border: 1px solid rgba(255, 244, 222, .3); border-radius: 10px; text-decoration: none;
  color: var(--kerma); background: rgba(255, 244, 222, .04);
}
.site-nav a strong { font-size: 17px; color: var(--hunaja); }
.site-nav a span { font-size: 13px; font-style: italic; opacity: .85; }
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(242, 184, 75, .14); border-color: var(--hunaja); }
@media (max-width: 900px) { .site-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .site-nav { display: none; } }

/* Kauppa- ja yhteysasemat */
.chapter-shop h3, .chapter-contact h3 { margin: 1.4rem 0 .4rem; font-size: 1.1rem; }
.shop-row { display: flex; gap: 14px; align-items: flex-start; }
.shop-row img { width: 96px; height: auto; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.25); flex: none; }
.book-offer { border: 1px solid rgba(0,0,0,.12); border-radius: 6px; padding: .6rem .7rem; background: rgba(255,255,255,.35); }
.book-offer .work-add { display: block; margin-top: .5rem; }
.shop-list { padding-left: 1.1rem; }
.shop-list li { margin: .3rem 0; }
.contact-form label { display: block; margin: .5rem 0; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; box-sizing: border-box; font: inherit; padding: .45rem; margin-top: .2rem; }
.contact-form .work-ask { background: #1e1a18; color: #fbf3df; cursor: pointer; font: inherit; padding: .5rem 1.2rem; }
.contact-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-ok { background: rgba(242,184,75,.25); padding: .5rem .7rem; border-radius: 6px; }
.rel-list li { margin: .5rem 0; }
.rel-tracks { font-size: .85em; opacity: .75; }
.rel-list .work-add { margin-left: .3rem; }

/* 0.11 Mölinä-sivu, Musiikkihalli, Taidegalleria */
.chapter-molina .chapter-head { text-align: left; }
.chapter-molina h3 { margin: 1.6em 0 .2em; letter-spacing: .06em; }
.molina-end { margin-top: 1.6em; font-style: italic; text-align: center; }
.hall-group { margin: 1.6em 0 0; }
.hall-title { font-size: 1.05rem; margin: 0 0 .1em; }
.chapter-body .hall-title { margin-top: 1.8em; }
.hall-sub { font-size: 13px; font-style: italic; color: var(--sivu-heikko); margin: 0 0 .5em; }
.hall-soon li[hidden] { display: none; }
.work-zoom { display: block; border-radius: 3px; overflow: hidden; cursor: zoom-in; }
.work-zoom img { transition: transform .3s ease; }
.work-zoom:hover img, .work-zoom:focus-visible img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .work-zoom img { transition: none; } }

/* 0.12 soittolista */
.hall-play { margin: 1em 0 0; }
.hall-playall { font: inherit; font-weight: 600; cursor: pointer; padding: .45rem 1.1rem; border-radius: 999px; border: 0; background: var(--hunaja); color: #1e1a18; }
.hall-playall:hover, .hall-playall:focus-visible { background: #ffd27a; }
.hall-play-note { display: block; margin-top: .4em; font-size: 13px; font-style: italic; color: var(--sivu-heikko); }
.now-playing #np-prev, .now-playing #np-next { background: transparent; color: var(--hunaja); font-size: 10px; letter-spacing: -2px; }

/* 0.14 yksi soitin yläreunassa, pysyy näkyvissä */
.player[hidden] { display: none; }
.player { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  max-width: 1272px; margin: 0 auto 12px; padding: 8px 16px 10px; background: rgba(11, 8, 8, .94); color: var(--kerma);
  border-bottom: 1px solid rgba(242, 184, 75, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.pl-meta { min-width: 0; display: flex; flex-direction: column; }
.pl-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { font-size: 12px; font-style: italic; opacity: .75; }
.pl-buttons { display: flex; align-items: center; gap: 8px; }
.pl-buttons button { font: inherit; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hunaja); background: transparent; color: var(--hunaja); font-size: 10px; letter-spacing: -2px; }
.pl-buttons .pl-toggle { width: 44px; height: 44px; background: var(--hunaja); color: var(--yo); font-size: 15px; letter-spacing: 0; }
.pl-buttons button:hover, .pl-buttons button:focus-visible { background: #ffd27a; color: var(--yo); outline: none; }
.pl-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255, 244, 222, .2); cursor: pointer; overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 0; background: var(--hunaja); }
.player.is-playing .pl-toggle { box-shadow: 0 0 0 3px rgba(242, 184, 75, .25); }
@media (max-width: 900px) { .player { margin-bottom: 8px; padding: 8px 12px 10px; } }

/* 0.15 lyriikat kappaleen alla */
.track-lyrics { grid-column: 1 / -1; grid-row: 10; margin: 8px 0 2px; }
.extra-lyrics .track-lyrics { margin: 4px 0; }
.track-lyrics summary { cursor: pointer; display: inline-block; font-size: 13px; letter-spacing: .06em; color: #a8761a; list-style: none; padding: 2px 0; }
.track-lyrics summary::-webkit-details-marker { display: none; }
.track-lyrics summary::before { content: "▸ "; }
.track-lyrics[open] summary::before { content: "▾ "; }
:root[data-theme="night"] .track-lyrics summary { color: var(--hunaja); }
.lyrics { margin: .4em 0 .6em; padding: .8em 1em; border-left: 2px solid rgba(242,184,75,.5); background: rgba(242,184,75,.07); border-radius: 0 6px 6px 0; font-size: 15px; line-height: 1.55; }
.lyrics p { margin: 0 0 1em; }
.lyrics p:last-child { margin-bottom: 0; }

/* 0.22 teoksen kelluva kortti */
.work-dialog { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; max-height: 94vh; overflow: visible; }
.work-dialog::backdrop { background: rgba(8, 9, 12, .88); }
.wd-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); background: #fbf3df; color: #1e1a18;
  border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); max-height: 94vh; }
.wd-img { background: #0b0808; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.wd-img img { max-width: 100%; max-height: 94vh; width: auto; height: auto; display: block; }
.wd-info { padding: 28px 26px 22px; display: flex; flex-direction: column; overflow: auto; }
.wd-count { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin: 0 0 .6em; }
.wd-title { font-size: 1.35rem; line-height: 1.25; margin: 0 0 .4em; }
.wd-meta { font-size: 14px; opacity: .8; margin: 0 0 1em; }
.wd-price { font-size: 1.25rem; font-weight: 600; margin: 0 0 1em; }
.work-dialog.is-sold .wd-price { color: #b3121f; }
.wd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wd-actions .work-ask { font-size: 14px; }
.wd-nav { margin-top: auto; padding-top: 22px; display: flex; gap: 10px; }
.wd-nav button { font: inherit; font-size: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #a8761a; background: transparent; color: #a8761a; cursor: pointer; }
.wd-nav button:hover, .wd-nav button:focus-visible { background: #f2b84b; color: #1e1a18; border-color: #f2b84b; outline: none; }
.wd-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; font-size: 28px; line-height: 1; border: 0; border-radius: 50%; background: rgba(251, 243, 223, .9); color: #1e1a18; cursor: pointer; }
@media (max-width: 760px) {
  .wd-inner { grid-template-columns: 1fr; overflow: auto; }
  .wd-img img { max-height: 58vh; }
  .wd-info { padding: 18px 18px 16px; }
  .wd-nav { justify-content: space-between; }
}

/* 0.23 tilakuvien selaus */
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,244,222,.5);
  background: rgba(11,8,8,.55); color: #FFF4DE; font-size: 20px; cursor: pointer; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-nav:hover, .lb-nav:focus-visible { background: #f2b84b; color: #1e1a18; border-color: #f2b84b; outline: none; }
@media (max-width: 760px) { .lb-nav { top: auto; bottom: 16px; transform: none; } }

/* 0.29 printin teosvalikko */
.print-teos select { max-width: min(100%, 22rem); }
.print-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); }
.print-thumb[hidden], .print-aihe[hidden] { display: none; }
