/* Same portfolio palette for overview cards, the case cover and the headline result. */
.stories .story-card[data-client], .case-more .case-card[data-client] > span, .case .case-lead[data-client], .case-hero[data-client] .case-head {
  background: var(--client-bg); color: var(--client-ink);
}
.case-hero[data-client] .case-head {padding:clamp(1rem,3vw,3rem);width:fit-content}
.case-hero[data-client] .case-head :is(h1,em,.case-tags span), .case-lead[data-client] > :is(span,strong), .story-card[data-client] :is(h2,strong,.read) {color:inherit}
.case-hero[data-client] .case-tags span {background:transparent;border-color:currentColor}
.story-card[data-client]:focus-visible,.case-card[data-client]:focus-visible {outline:4px double currentColor;outline-offset:-5px}
.people {padding:clamp(28px,6vw,96px) var(--edge,5vw);background:#f2eee4;color:#141312}
.people h2 {margin:0 0 .55em;font:400 clamp(2.2rem,5vw,5.8rem)/1.05 Aeonik,Arial,sans-serif}
.person-grid {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(18px,4vw,68px);align-items:start}
.person-list {grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.person-choice {appearance:none;border:0;text-align:left;background:#e5dfd4;color:#141312;padding:8px;font:500 clamp(15px,1.6vw,22px)/1.15 Aeonik,Arial;cursor:pointer}
.person-choice img {display:block;width:100%;height:clamp(58px,6vw,102px);object-fit:contain;object-position:bottom}
.person-choice[aria-expanded=true] {background:#f35c35}
.person-choice:focus-visible {outline:3px solid #141312;outline-offset:-3px}
.person-panel {grid-column:1;grid-row:1;margin:0;min-width:0;padding:clamp(18px,3vw,40px);background:#fff9ef;color:#141312}
.person-panel[hidden] {display:none}
.person-panel img {width:100%;height:clamp(150px,19vw,308px);object-fit:contain;object-position:left bottom}
.person-panel h3 {margin:.45em 0 .15em;font:500 clamp(26px,3.5vw,52px)/1.06 Aeonik,Arial}
.person-panel p {margin:.45em 0;line-height:1.35}
.person-links {display:flex;gap:.5rem 1.4rem;flex-wrap:wrap}
.person-links a,.mail-link {color:inherit;text-decoration:underline;text-underline-offset:.15em;overflow-wrap:anywhere}
.person-panel .contact-source {font-size:.88em;margin-top:1.25rem}
.rc-news {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:1rem}
.rc-news a {color:inherit;font-size:clamp(19px,2.2vw,30px)}
.rf-section .rf-card-name {display:block;position:static;width:auto;height:auto;clip-path:none}
.rc-method {padding:clamp(25px,6vw,80px);background:#f2eee4}
.rc-method h1 {font:400 clamp(3rem,8vw,7rem)/1 Aeonik,Arial}
.rc-method .rc-steps {list-style:decimal;padding-left:1.4rem;max-width:52rem}
.rc-method .rc-steps li {margin-block:1.3rem}
@media(max-width:700px){
 .person-grid {display:block}.person-list {grid-template-columns:repeat(2,minmax(0,1fr))}
 .person-panel {grid-column:1/-1;grid-row:auto}.person-panel img {height:190px}
 .person-choice {min-height:64px}.people {padding-inline:16px}
}

/* Same menu on every page as on the homepage (Ville 30.11.2026: "menun pitäisi olla samanlainen kuin etusivulla joka
   sivulla"). Stories and Klikway had a see-through bar that slid away while scrolling; now they show the orange
   header at the top and the compact orange bar (kielet.css, html.valikko-kiinni) further down, like the homepage. */
html body:has(.case) .site-masthead, html body:has(.kw-page) .site-masthead {
  position: relative !important; inset: auto !important; transform: none !important;
  background: var(--klik-oranssi, #f35c35) !important; color: var(--ink, #201b20) !important;
  --klik-muste: var(--ink, #201b20) !important; --klik-kerma: var(--paper, #f7f2e8) !important;
}
html body .site-masthead .logo { filter: none !important; }
html.valikko-kiinni body#alku:has(main) > main > header:not(.ei-ole) {
  position: fixed !important; inset: 0 0 auto 0 !important;
  background: var(--klik-oranssi, #f35c35) !important; color: var(--ink, #201b20) !important;
  --klik-muste: var(--ink, #201b20) !important; --klik-kerma: var(--paper, #f7f2e8) !important;
}
/* The header now takes its own room above these heroes, so they no longer reserve space for a bar on top of them. */
html body:has(.case) .case-hero { padding-top: clamp(2.6rem, 5vw, 5rem) !important; }
html body:has(.case) .case-back { top: .4rem !important; }
html body:has(.kw-page) .kw-hero { padding-top: clamp(1.5rem, 4vw, 3.5rem) !important; }

/* KLIK peeps 2026 (Ville 1.12.2026: "lähikuvat oikealle ota yhteyttä sivulla ja vasemmalle ilmestyy aina tyypin kokokuva
   ja tarkemmat tiedot"). Cut-out close-ups in the list, the selected person's cut-out full-length photo beside the details. */
.person-choice img {height:clamp(96px,9vw,150px);object-fit:contain;object-position:center bottom}
.person-choice.person-crop img {object-fit:cover;object-position:center 8%}
.person-panel {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(14px,2.4vw,36px);align-items:end}
.person-panel img.person-full {width:100%;height:clamp(360px,46vw,720px);object-fit:contain;object-position:center bottom}
.person-panel .person-info {align-self:end;padding-bottom:.4rem}
.person-panel h3 {margin-top:0}
@media (max-width:700px) {
 .person-panel {grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
 .person-panel img.person-full {height:300px}
 .person-choice img {height:110px}
}
/* Seated team photo at the bottom of the homepage (Ville 1.12.2026). */
.rf-team-photo figure {margin:0;position:relative}
.rf-team-photo img {display:block;width:100%;height:auto}
.rf-team-photo figcaption {display:flex;align-items:baseline;justify-content:space-between;gap:1rem 2rem;flex-wrap:wrap;margin-top:clamp(14px,2vw,28px)}
.rf-team-photo .rf-title {margin:0}

/* Nicknames in Fraunces in the list and above the full-length photo; the full name and the story under the photo
   (Ville 1.12.2026: "lempinimet tulee Frauncesilla ja sama kun se ilmestyy vasemmalle se kokokuva ja sen alla sit koko
   oikea nimi ja kertomukset henkilöistä"). */
.person-choice {font:600 clamp(17px,1.7vw,24px)/1.05 Fraunces,Georgia,serif;letter-spacing:-.02em}
.person-panel {display:block}
.person-panel .person-nick {margin:0 0 .1em;font:600 clamp(44px,6vw,92px)/.95 Fraunces,Georgia,serif;letter-spacing:-.04em}
.person-panel img.person-full {height:clamp(380px,48vw,760px);object-position:left bottom}
.person-panel .person-info {padding:clamp(12px,1.6vw,22px) 0 0}
.person-panel h3 {font:500 clamp(22px,2.2vw,34px)/1.1 Aeonik,Arial;margin:0 0 .3em}
@media (max-width:700px) {.person-panel img.person-full {height:340px}.person-panel .person-nick {font-size:48px}}
/* Mobile tap targets (Ville 1.12.2026: "varmista myös että mobiiliversio on optimoitu"): text links keep their look but
   get a 44 px touch area. */
@media (max-width:700px) {
 .case-back, .kw-textlink, .kw-link, .person-links a, .rf-all a {display:inline-flex;align-items:center;min-height:44px}
}
/* Photo at the left edge of the panel, nickname, name and story beside it (Ville 1.12.2026: "henkilön kuva pitäisi tulla
   vasemman puolen laitaan ja tekstit siihen viereen"). */
.person-panel {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-areas:"img nick" "img info";
  column-gap:clamp(16px,2.6vw,40px);align-items:end;padding-left:0;padding-bottom:0}
.person-panel img.person-full {grid-area:img;align-self:end;height:clamp(420px,46vw,720px);object-position:left bottom}
.person-panel .person-nick {grid-area:nick;align-self:end;margin:0}
.person-panel .person-info {grid-area:info;align-self:start;padding:clamp(10px,1.2vw,18px) 0 clamp(18px,3vw,40px)}
@media (max-width:700px) {
 .person-panel {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);column-gap:14px}
 .person-panel img.person-full {height:320px}
 .person-panel .person-nick {font-size:40px}
}
/* The whole team fits one screen (Ville 1.12.2026: "nyt menee niin korkeaksi ettei kaikki näy selkeästi kerralla"):
   four columns of close-ups and photo heights tied to the viewport. */
@media (min-width:701px) {
 .person-grid {grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
 .person-list {grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .person-choice {padding:6px 8px;font-size:clamp(15px,1.3vw,20px)}
 .person-choice img {height:clamp(70px,calc((100svh - 300px) / 4 - 34px),128px)}
 .person-panel img.person-full {height:clamp(360px,calc(100svh - 200px),660px)}
 .person-panel .person-nick {font-size:clamp(40px,4.4vw,72px)}
}

/* Team photo as a wide picture on the right, the line on the left (1.12.2026). */
.rf-team-photo {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:clamp(20px,3vw,48px);align-items:end}
.rf-team-photo .rf-team-copy {display:grid;gap:clamp(12px,1.6vw,22px);align-self:center}
.rf-team-photo .rf-title {margin:0;text-wrap:balance}
.rf-team-photo img {display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:68% 50%}
@media (max-width:760px) {.rf-team-photo {grid-template-columns:1fr}.rf-team-photo img {aspect-ratio:3/2}}

/* Wide team photo, line over the curtain on the left (Ville 1.12.2026: "hyödytön kiteytys", orange box rejected). */
html body .rf-team-photo {display:grid;grid-template-columns:1fr;position:relative;padding:0;overflow:hidden;background:#201b20;color:#f7f2e8;border-radius:0}
html body .rf-team-photo img {grid-area:1/1;aspect-ratio:21/10;object-fit:cover;object-position:62% 45%;width:100%;height:auto}
html body .rf-team-photo .rf-team-copy {grid-area:1/1;align-self:center;justify-self:start;max-width:min(36%,520px);padding:clamp(20px,4vw,64px);position:relative;z-index:1}
html body .rf-team-photo .rf-title {color:#f7f2e8}
html body .rf-team-photo .rf-all a {color:#f7f2e8}
@media (max-width:760px) {html body .rf-team-photo .rf-team-copy {grid-area:auto;max-width:none;padding:28px 16px 8px}
 html body .rf-team-photo img {grid-area:auto;aspect-ratio:4/3;object-position:60% 50%}}
/* People fill the photo edge to edge, so the line sits in its own ink column beside it, not over faces. */
@media (min-width:761px) {html body .rf-team-photo {grid-template-columns:minmax(0,1fr) minmax(0,2.1fr);align-items:stretch}
 html body .rf-team-photo .rf-team-copy {grid-area:1/1;max-width:none;align-self:center}
 html body .rf-team-photo img {grid-area:1/2;aspect-ratio:3/2;object-position:50% 50%}}
html body .rf-team-photo .rf-team-copy {gap:clamp(14px,1.6vw,24px)}
@media (max-width:760px) {html body .rf-team-photo .rf-team-copy {padding:32px 16px 24px}}
/* Portrait top-down team photo 05416 (Ville 1.12.2026): the line on the ink column, the photo upright beside it. */
@media (min-width:761px) {html body .rf-team-photo {grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
 html body .rf-team-photo img {aspect-ratio:2/3;max-height:min(92svh,980px);object-position:50% 50%}
 html body .rf-team-photo .rf-title {font-size:clamp(44px,5.6vw,96px);line-height:.98}}
@media (max-width:760px) {html body .rf-team-photo img {aspect-ratio:4/5;object-position:50% 45%}}
html body .rf-team-photo .rf-title em {display:block}
/* Photos keep the studio backdrop; the full-length photo fills the whole panel and the texts sit on it in white
   (Ville 1.12.2026: "kuva täyttää koko boksin ja tekstit on valkoisella kuvan päällä"). A low, long shade under the
   text blends into the dark studio floor instead of reading as a box. */
html body .person-panel {position:relative;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;
  padding:clamp(20px,2.8vw,40px);height:clamp(520px,calc(100svh - 200px),720px);background:#2a2420;color:#fff9ef}
html body .person-panel[hidden] {display:none}
html body .person-panel img.person-full {position:absolute;inset:0;width:100%;height:100%;max-width:none;
  object-fit:cover;object-position:center 28%;z-index:0}
html body .person-panel::after {content:"";position:absolute;left:0;right:0;bottom:0;height:62%;z-index:0;pointer-events:none;
  background:linear-gradient(to top,rgba(20,17,15,.72) 0%,rgba(20,17,15,.38) 45%,rgba(20,17,15,0) 100%)}
html body .person-panel .person-nick, html body .person-panel .person-info {position:relative;z-index:1;color:#fff9ef;padding:0}
html body .person-panel .person-nick {margin:0 0 .15em}
html body .person-panel .person-info {max-width:34em}
html body .person-panel h3 {margin:0 0 .2em}
html body .person-panel a {color:#fff9ef}
html body .person-panel .person-info p {margin:.3em 0}
html body .person-panel .contact-source {margin-top:.9rem}
html body .person-choice img {object-fit:cover;object-position:center 25%}
@media (max-width:700px) {html body .person-panel {height:560px;padding:20px 16px}
 html body .person-panel .person-nick {font-size:52px}}
html body .person-panel .person-nick, html body .person-panel .person-info {align-self:flex-start;text-align:left;margin-left:0;width:auto}
html body .rf-team-photo .rf-all {margin:0}html body .rf-team-photo .rf-all + .rf-all {margin-top:-.4em}
/* Close-ups without the backdrop, nickname on the photo, rows with nobody alone (Ville 1.12.2026). */
html body .person-list {display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
html body .person-choice {position:relative;flex:0 0 calc((100% - 18px) / 4);padding:0;overflow:hidden;background:#e5dfd4}
html body .person-choice[aria-expanded=true] {background:#f35c35}
html body .person-choice img {display:block;width:100%;height:clamp(120px,calc((100svh - 260px) / 4),190px);object-fit:contain;object-position:center bottom}
html body .person-choice::after {content:"";position:absolute;left:0;right:0;bottom:0;height:36%;pointer-events:none;
  background:linear-gradient(to top,rgba(20,17,15,.55),rgba(20,17,15,.18) 55%,rgba(20,17,15,0))}
html body .person-tag {position:absolute;left:10px;bottom:8px;z-index:1;color:#fff9ef;font:600 clamp(16px,1.4vw,22px)/1 Fraunces,Georgia,serif;letter-spacing:-.01em}
html body .person-break {flex:0 0 100%;height:0}
html body .person-break:not(.br-d) {display:none}
html body .person-list > .person-panel {flex:0 0 100%}
@media (max-width:700px) {
 html body .person-choice {flex-basis:calc((100% - 12px) / 3)}
 html body .person-choice img {height:150px}
 html body .person-break:not(.br-d) {display:block}
 html body .person-break:not(.br-m) {display:none}
 html body .person-tag {font-size:17px;left:8px;bottom:7px}
}
@media (min-width:701px) {html body .person-choice img {height:clamp(110px,calc((100svh - 310px) / 4),180px)}}
/* See-through compact bar on every page (Ville 1.12.2026); light ink over dark content (toimitus.js, palkki-tumma). */
html.valikko-kiinni body#alku:has(main) > main > header:not(.ei-ole), html.valikko-kiinni #alku > main > header {
  background: transparent !important; transition: color .2s ease;
}
html.valikko-seuraa.palkki-tumma body#alku:has(main) > main > header:not(.ei-ole) {
  color: #f7f2e8 !important; --klik-muste: #f7f2e8 !important;
}
html.valikko-seuraa.palkki-tumma body#alku:has(main) > main > header:not(.ei-ole) .logo { filter: invert(1) !important; }
html.valikko-seuraa.palkki-tumma body#alku:has(main) > main > header:not(.ei-ole) a:not(.menu-contact) { color: #f7f2e8 !important; }
html.valikko-seuraa.palkki-tumma .menu-contact { background: #f7f2e8 !important; color: #201b20 !important; border-color: #f7f2e8 !important; }

/* Interpolations are written as a*(1-p) + b*p: Chromium computed a - (a-b)*p as 0 at p = 1 (1.12.2026). */
/* Menu that follows the scroll (Ville 1.12.2026: "kun rullaat alaspäin oranssi jää paikoilleen ja vain menuelementit
   seuraa"). toimitus.js sets --valikko-p (0 at the top, 1 when compact) and --valikko-h every frame; nothing here
   animates on its own, so the menu moves exactly with the scroll. The header's background stays behind as
   .valikko-pohja. */
html.valikko-seuraa body#alku:has(main) > main > header:not(.ei-ole),
html.valikko-seuraa.valikko-kiinni body#alku:has(main) > main > header:not(.ei-ole) {
  position: fixed !important; inset: 0 0 auto 0 !important; width: auto !important; margin: 0 !important;
  height: var(--valikko-h, 57px) !important; grid-template-rows: var(--valikko-h, 57px) !important;
  padding: 0 var(--valikko-reuna, 24px) !important; box-sizing: border-box !important;
  background: var(--palkki-tausta, transparent) !important; z-index: 30 !important; animation: none !important; transform: none !important;
  font-size: calc(clamp(15px, 1.35vw, 19px) * (1 - var(--valikko-p, 0)) + clamp(14px, 1.1vw, 16px) * var(--valikko-p, 0)) !important;
  transition: color .25s ease !important;
}
html.valikko-seuraa body#alku:has(main) > main > header:not(.ei-ole) .home-link { min-height: 0 !important; }
html.valikko-seuraa body#alku:has(main) > main > header:not(.ei-ole) .logo {
  width: calc(clamp(120px, 9vw, 136px) * (1 - var(--valikko-p, 0)) + 120px * var(--valikko-p, 0)) !important;
  transition: filter .25s ease;
}
html.valikko-seuraa .menu-contact {
  inset-block-start: calc(var(--nappi-y, 16px) * (1 - var(--valikko-p, 0)) + 6.5px * var(--valikko-p, 0)) !important;
  z-index: 31 !important; transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
.valikko-pohja { display: block; width: 100%; }
@media (max-width: 650px) {
  html.valikko-seuraa body#alku:has(main) > main > header:not(.ei-ole) .logo {
    width: calc(clamp(120px, 9vw, 136px) * (1 - var(--valikko-p, 0)) + 104px * var(--valikko-p, 0)) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.valikko-seuraa body#alku:has(main) > main > header:not(.ei-ole), html.valikko-seuraa .menu-contact { transition: none !important; }
}

.valikko-nappi { display: none; }
.valikko-paneeli { display: none; }
@media (max-width: 650px) {
  /* Phones: one row (logo, Valikko, contact) at every scroll position; links and languages live in the panel. */
  html body#alku:has(main) > main > header:not(.ei-ole) {
    grid-template-columns: max-content 1fr calc(var(--nappi-w, 120px) + 10px) !important;
    grid-template-areas: "brand nappi ." !important; grid-template-rows: auto !important; row-gap: 0 !important;
  }
  html body#alku:has(main) > main > header:not(.ei-ole) > nav { display: none !important; }
  .valikko-nappi {
    display: inline-flex; grid-area: nappi; justify-self: end; align-self: center; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 14px; margin-right: 0; border: 1px solid currentColor; border-radius: 0; background: none;
    color: inherit; font: 500 clamp(14px, 1.25vw, 18px)/1.15 Aeonik, Arial, sans-serif; cursor: pointer; text-decoration: none;
  }
  html body#alku:has(main) > main > header:not(.ei-ole) .home-link { align-self: center; }
  .valikko-nappi:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .valikko-paneeli:not([hidden]) {
    display: flex; flex-direction: column; justify-content: space-between; position: fixed; inset: 0; z-index: 29;
    padding: calc(var(--valikko-h, 64px) + 28px) 16px max(28px, env(safe-area-inset-bottom)); background: var(--klik-oranssi, #f35c35);
    color: #201b20; overflow-y: auto;
  }
  .valikko-linkit { display: flex; flex-direction: column; gap: 6px; }
  .valikko-linkit a { color: #201b20; text-decoration: none; font: 500 clamp(40px, 12vw, 56px)/1.05 Aeonik, Arial, sans-serif; letter-spacing: -.03em; padding: 6px 0; }
  .valikko-linkit a[aria-current="page"] { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 3px; }
  .valikko-kielet { display: flex; gap: 0; font: 400 18px/1 Aeonik, Arial, sans-serif; }
  .valikko-kielet a { color: #201b20; min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; position: relative; }
  .valikko-kielet a[aria-current], .valikko-kielet a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
  html.valikko-auki { overflow: hidden; }
  html.valikko-auki body#alku:has(main) > main > header:not(.ei-ole) { color: #201b20 !important; --klik-muste: #201b20 !important; }
  html.valikko-auki body#alku:has(main) > main > header:not(.ei-ole) .logo { filter: none !important; }
  html.valikko-auki .menu-contact { background: #201b20 !important; color: #f7f2e8 !important; border-color: #201b20 !important; }
}
.valikko-pohja { position: relative; z-index: 29; }
@media (max-width: 389px) {
  html body#alku:has(main) > main > header:not(.ei-ole) .logo { width: 100px !important; }
  .valikko-nappi { padding: 0 11px; }
  html body .menu-contact { padding-inline: .9em !important; }
}
@media (max-width: 345px) {
  html body#alku:has(main) > main > header:not(.ei-ole) .logo { width: 84px !important; }
  .valikko-nappi, html body .menu-contact { font-size: 13px !important; }
  .valikko-nappi { padding: 0 9px; margin-right: 6px; }
  html body .menu-contact { padding-inline: .75em !important; }
  html.valikko-seuraa body#alku:has(main) > main > header:not(.ei-ole), html body#alku:has(main) > main > header:not(.ei-ole) {
    column-gap: 4px !important; padding-inline: 12px !important;
    grid-template-columns: max-content 1fr calc(var(--nappi-w, 110px) + 4px) !important;
  }
  html body .menu-contact { inset-inline-end: 12px !important; }
}
/* Phones (Ville 1.12.2026: "logon ympärille tarvis lisää tilaa ja klikkaa tästä napin ei tarvi olla niin levelä"):
   the contact button was as wide as its hidden hover text "Otetaan selvää"; phones have no hover, so it now fits
   "Klikkaa tästä". The row gets 20 px side margins. */
@media (max-width: 650px) {
  html body .menu-contact span:last-child { display: none; }
  html body .menu-contact { padding-inline: .85em !important; inset-inline-end: 20px !important; }
  html.valikko-seuraa body#alku:has(main) > main > header:not(.ei-ole), html body#alku:has(main) > main > header:not(.ei-ole) {
    padding-inline: 20px !important; column-gap: 12px !important;
  }
}
@media (max-width: 345px) {
  html body .menu-contact { inset-inline-end: 14px !important; }
  html.valikko-seuraa body#alku:has(main) > main > header:not(.ei-ole), html body#alku:has(main) > main > header:not(.ei-ole) {
    padding-inline: 14px !important; column-gap: 8px !important;
  }
}
/* Menu has its own cream fill so it reads over photos too (1.12.2026). */
@media (max-width: 650px) { html body .valikko-nappi { background: #f7f2e8 !important; color: #201b20 !important; border-color: #201b20 !important; } }
/* No orange header by default: the header is see-through and the band behind it takes the hero's colour (toimitus.js). */
html body#alku:has(main) > main > header.site-masthead, html body:has(.case) .site-masthead, html body:has(.kw-page) .site-masthead { background: var(--palkki-tausta, transparent) !important; }

/* Ville 1.12.2026: "vaihda klikin tilalle tähän Klikin logo". The official mono logo replaces the word Klik. */
#klik-on-social .rf-social-logo {display:inline-block;height:1.22em;width:auto;vertical-align:-.323em;margin-right:.08em}

footer.end .mail-link {display:inline-block;color:inherit;font:500 clamp(16px,2vw,25px)/1.3 Aeonik,Arial;margin:1em 0}



.story-content section.logo-wall {border-top:0}
.rf-card[data-work="ebeling"] .rf-card-mark {background:#fff}
.rf-card[data-work="puuilo"] .rf-card-mark {background:#e03228}
.rf-card[data-work="fiksuviini"] .rf-card-mark {background:#003049}
.belief h2 > em {display:block}
.rf-guide .rf-all a {color:inherit}

.guide-signup {display:flex; align-items:flex-end; flex-wrap:wrap; gap:.8rem 1rem; margin-top:1.5rem; max-width:36rem}
.guide-email {display:grid; gap:.35rem; flex:1 1 14rem; font:500 1rem/1.3 Aeonik,Arial,sans-serif}
.guide-email input {box-sizing:border-box; width:100%; min-width:0; min-height:46px; padding:.55rem .7rem; border:1px solid currentColor; border-radius:0; font:inherit; color:var(--ink,#201b20); background:var(--paper,#f7f2e8)}
.guide-email input:focus-visible {outline:2px solid currentColor;outline-offset:2px}
.guide-signup .rf-button {margin:0; min-height:46px}
.guide-status {flex-basis:100%;margin:0}
.guide-status:empty,.guide-complete .guide-email,.guide-complete button {display:none}
/* Guide signup in the same style as the homepage contact form (Ville 1.12.2026: "pitäis olla tän tyylinen"): the label
   sits left of a single underline, no box, and the button below. */
.guide-signup {display:grid; grid-template-columns:minmax(0,1fr); justify-items:start; gap:1.6rem; max-width:40rem; margin-top:1.8rem}
.guide-email {display:flex; align-items:baseline; gap:1rem; width:100%; font:400 clamp(18px,1.6vw,24px)/1.2 Aeonik,Arial,sans-serif}
.guide-email input {flex:1 1 auto; width:auto; min-width:0; min-height:44px; padding:.2em 0; border:0; border-bottom:1.5px solid currentColor; border-radius:0; background:transparent; color:inherit; font:inherit}
.guide-email input:focus-visible {outline:none; border-bottom-width:3px}
.guide-signup .rf-button {min-height:46px; padding:0 1.4em}

[data-client="puuilo"] { --client-bg:#e03228; --client-ink:#ffffff; }
[data-client="ebeling"] { --client-bg:#000000; --client-ink:#ffffff; }
[data-client="autoklinikka"] { --client-bg:#e4002b; --client-ink:#ffffff; }
[data-client="kreate"] { --client-bg:#ffaf00; --client-ink:#141312; }
