/* Tuotu Astro-projektista: src/styles/wp.css (bin/sync-astro.py). */
/* ==========================================================================
   Migrated WordPress content in the rails layout (body.page-migrated).
   The wireframe's rails classes do the layout; these rules cover what the
   wireframe never had to: long rich text, real images, forms, the language
   switcher, the post header and the table of contents.
   ========================================================================== */

/* --- Rich text ------------------------------------------------------------ */

.wp-prose > :first-child {
  margin-top: 0;
}

.wp-prose > :last-child {
  margin-bottom: 0;
}

.wp-prose :is(p, ul, ol, table, figure, blockquote, pre) {
  margin: 0 0 1.1em;
}

/* Code: a block of its own, the copy button in a bar on top (src/lib/code-blocks.ts). */
.code-block {
  border: 1px solid var(--gh-border);
  background: color-mix(in srgb, var(--gh-text) 4%, var(--gh-bg));
}

.wp-prose > .code-block:not(:last-child) {
  margin-bottom: 1.1em;
}

.code-block-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 2.9rem;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--gh-border);
  background: color-mix(in srgb, var(--gh-text) 7%, var(--gh-bg));
}

.wp-prose .code-block pre {
  margin: 0;
  padding: 1.1rem 1.25rem 1.25rem;
  overflow-x: auto;
  color: var(--gh-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre;
  tab-size: 2;
}

.code-block code {
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
}

.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--gh-border);
  border-radius: 0;
  background: var(--gh-bg);
  color: var(--gh-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.code-copy[hidden] {
  display: none;
}

.code-copy:hover {
  border-color: var(--gh-muted);
}

.code-copy:focus-visible {
  outline: 2px solid var(--gh-accent);
  outline-offset: 2px;
}

.code-copy svg {
  flex-shrink: 0;
}

.code-copy .code-copy-done,
.code-copy.is-done .code-copy-icon {
  display: none;
}

.code-copy.is-done .code-copy-done {
  display: block;
}

.code-copy.is-done {
  border-color: var(--gh-accent);
  color: var(--gh-accent);
}

.wp-prose p,
.wp-prose li {
  color: var(--gh-subtle);
}

/* Lists pasted into WordPress from elsewhere wrap each item's text in a <p>: the
   text belongs beside the item's marker, not a paragraph's gap below it. */
.wp-prose li > p,
.feature-row--rails .feature-row-extra li > p {
  margin: 0;
}

.wp-prose li > p + p,
.feature-row--rails .feature-row-extra li > p + p {
  margin-top: 0.5em;
}

.wp-prose strong {
  color: var(--gh-text);
  font-weight: 600;
}

.wp-prose a {
  color: var(--gh-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.wp-prose a:hover {
  color: color-mix(in srgb, var(--gh-link) 75%, #fff);
}

.wp-prose :is(h2, h3, h4) {
  margin: 2em 0 0.6em;
  color: var(--gh-text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.wp-prose h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.2;
}

body.page-service main .wp-prose h3:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-size: 24px !important;
  line-height: 1.2 !important;
}

.wp-prose h4 {
  font-size: 1.15rem;
}

.wp-prose :is(ul, ol) {
  padding-left: 1.3em;
}

.wp-prose li + li {
  margin-top: 0.15em;
}

.wp-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.wp-prose picture {
  display: block;
  margin: 1.5em 0;
}

.wp-prose blockquote {
  padding-left: 1.2em;
  border-left: 3px solid var(--gh-accent);
  color: var(--gh-text);
  font-style: italic;
}

.wp-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.wp-prose :is(th, td) {
  padding: 0.7em 0.9em;
  border: 1px solid var(--gh-border);
  text-align: left;
  vertical-align: top;
}

.wp-prose th {
  background: color-mix(in srgb, var(--gh-text) 5%, var(--gh-bg));
  color: var(--gh-text);
  font-weight: 600;
}

.wp-prose iframe,
.wp-prose video {
  max-width: 100%;
}

/* Wide tables scroll inside the column instead of widening the page. */
.wp-prose :has(> table),
.wp-section-body {
  overflow-x: auto;
}

/* --- Sections: prose in a readable column, the intro lined up with it ---- */

.wp-section .section-intro--rails .lede {
  max-width: 40rem;
}

/* The intro spans the text column, so the heading starts where the text does. */
.wp-section .section-intro.is-column {
  max-width: 46rem;
  margin-inline: auto;
}

.wp-section.is-full .section-intro.is-column {
  max-width: 64rem;
}

.wp-section-body {
  max-width: 46rem;
  margin: 3rem auto 0;
}

.wp-section.is-full .wp-section-body {
  max-width: 64rem;
}

.wp-section-cta {
  max-width: 46rem;
  margin: 2rem auto 0;
}

.wp-section-image {
  max-width: 64rem;
  margin: 3rem auto 0;
}

.wp-section-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Sections that follow each other keep one rule between them. */
.wp-section + .wp-section,
.feature-row--rails + .wp-section {
  margin-top: 0;
}

/* Checklist style ("check_lista") for any list in the block. */
.is-checklist .wp-prose ul {
  padding: 0;
  list-style: none;
}

.is-checklist .wp-prose li {
  position: relative;
  padding-left: 1.6rem;
}

.is-checklist .wp-prose li::before {
  content: '';
  position: absolute;
  top: 0.45em;
  left: 0.1rem;
  width: 0.7rem;
  height: 0.4rem;
  border-bottom: 2px solid var(--gh-accent);
  border-left: 2px solid var(--gh-accent);
  transform: rotate(-45deg);
}

/* --- Feature rows with real images --------------------------------------- */

.wp-feature .feature-row-copy .wp-lede {
  margin: 0;
  color: var(--gh-text);
}

.wp-feature .feature-row-extra {
  max-width: 34rem;
}

/* Only lists in plain copy get the rails check marks; nested lists keep bullets. */
.wp-feature .feature-row-extra :is(ol, ul ul) li::before {
  content: none;
}

.wp-feature .feature-row-extra ol {
  padding-left: 1.3em;
  list-style: decimal;
}

.wp-feature .feature-row-extra ol li {
  padding-left: 0;
}

/* The bullets those nested lists keep: the rails list rule takes list-style away
   from every list in the copy, which left their items with no marker at all. */
.wp-feature .feature-row-extra :is(ol, ul) ul {
  display: block;
  margin: 0.35em 0 0;
  padding-left: 1.2em;
  list-style: disc;
}

.wp-feature .feature-row-extra :is(ol, ul) ul li {
  padding-left: 0;
}

.wp-feature .feature-row-extra :is(h2, h3, h4) {
  margin-top: 1.6em;
}

/* Images sit on white: most are mockups and illustrations made for a white page. */
.wp-media {
  display: grid;
  place-items: center;
  padding: 3rem;
  background: #fff;
}

.feature-row--rails .wp-media {
  min-height: 0;
}

.wp-media picture,
.wp-media img {
  display: block;
  max-width: 100%;
  max-height: 40rem;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Before it loads, the img takes its width from its width attribute (capped by max-width)
   and its height from the width and height ratio, so the page keeps its length. Until
   26.11.2026 width:auto made a lazy image 0 px tall until it loaded, and pages grew by up
   to 2 500 px while scrolling. Once loaded (assets/js/media-size.js adds .is-loaded) the
   width follows the file again, so an image held by max-height is drawn as before. */
.wp-media picture,
.wp-media img:not([width]),
.wp-media img.is-loaded {
  width: auto;
}

/* Small-image layouts: a narrower media column. */
@media (min-width: 800px) {
  .wp-feature.is-small-media > .wrap {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .wp-feature.is-small-media.is-flipped > .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

/* --- Page opener and WordPress hero ---------------------------------------- */

body.page-service .wp-opener .split-hero-actions,
body.page-service .wp-hero .split-hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.wp-opener .wp-prose {
  margin-top: 1.2rem;
  max-width: 48rem;
}

.wp-opener-image {
  display: block;
  margin-top: 2.5rem;
}

.wp-opener-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.wp-hero.has-side .split-hero-rails-inner {
  align-items: start;
}

.wp-hero .lede {
  margin-top: 1.2rem;
}

.wp-hero-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.wp-hero-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--gh-subtle);
}

.wp-hero-list li::before {
  content: '';
  position: absolute;
  top: 0.45em;
  left: 0.1rem;
  width: 0.7rem;
  height: 0.4rem;
  border-bottom: 2px solid var(--gh-accent);
  border-left: 2px solid var(--gh-accent);
  transform: rotate(-45deg);
}

.wp-hero .split-hero-card img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* --- Calendly booking page -------------------------------------------------- */

/* WordPress layout: copy left, full cutout photo right. Calendar is its own
   section below (replaces the old "Varaa tästä" button). */
.wp-booking.has-side .split-hero-rails-inner {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.85fr);
}

.wp-booking .split-hero-copy,
.wp-booking .split-hero-card {
  justify-content: center;
}

.wp-booking h1 {
  max-width: 16ch;
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  line-height: 1.08;
  overflow-wrap: break-word;
  hyphens: auto;
}

.wp-booking .wp-prose {
  margin-top: 1.6rem;
  max-width: none;
}

.wp-booking .wp-prose p {
  color: var(--gh-subtle);
}

.wp-booking .split-hero-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.wp-booking .split-hero-card img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 36rem;
  height: auto;
  margin-inline: auto;
  border-radius: 0;
  object-fit: contain;
}

/* The button to Calendly's own page (src/components/blocks/CalendlyLink.astro) and
   the line under it, as the service pages' fine print. */
.wp-booking .wp-booking-actions {
  margin-top: 2rem !important;
}

.wp-booking .wp-booking-note {
  display: block;
  margin-top: 1rem;
  color: var(--gh-muted);
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  font-size: 0.98rem;
}

.wp-booking-calendar {
  padding: 0 0 5rem;
  background: var(--gh-bg);
}

.wp-calendly {
  overflow: hidden;
  width: 100%;
  max-width: 62rem;
  margin-inline: auto;
  border: 1px solid var(--gh-border);
  border-radius: 10px;
  background: #fff;
}

.wp-calendly .calendly-inline-widget {
  width: 100%;
}

.wp-calendly-fallback {
  margin: 0;
  padding: 2rem;
}

.wp-calendly-fallback a {
  color: #0069ff;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .wp-booking.has-side .split-hero-rails-inner {
    grid-template-columns: 1fr;
  }

  .wp-booking h1 {
    max-width: none;
  }

  .wp-booking .split-hero-card {
    order: -1;
    padding: 2rem 1.5rem 0;
  }

  .wp-booking .split-hero-card img {
    max-height: 22rem;
  }
}

@media (max-width: 640px) {
  .wp-booking-calendar {
    padding-bottom: 3rem;
  }

  .wp-booking .split-hero-card {
    padding-inline: 0;
  }
}

/* --- Forms ------------------------------------------------------------------ */

.wp-form {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 32rem;
}

.wp-form-heading {
  margin: 0 0 0.5rem;
  color: var(--gh-text);
}

.wp-form-field label,
.wp-form-field legend {
  display: grid;
  gap: 0.35rem;
  color: var(--gh-text);
  font-size: 0.95rem;
}

.wp-form-field fieldset {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.wp-form :is(input[type='text'], input[type='email'], input[type='tel'], textarea) {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
  border-radius: 6px;
  background: color-mix(in srgb, var(--gh-text) 4%, var(--gh-bg));
  color: var(--gh-text);
  font: inherit;
}

.wp-form :is(input, textarea):focus-visible {
  outline: 2px solid var(--gh-link);
  outline-offset: 1px;
}

.wp-form-check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

/* The send button as the hero's green button (global.css .split-hero--rails .split-hero-actions > .btn-primary),
   not the plain white .btn-primary: Tapio, 2026-10-12, every form and both themes. The light theme's button
   rules (theme-light.css) still set its colours there: navy on white, teal on navy. */
.wp-form .btn:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  justify-self: start;
  padding: 0.7rem 1.1rem;
  border-color: transparent;
  border-radius: 6px;
  background: var(--gh-green);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.wp-form .btn:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: var(--gh-green-hover, var(--gh-green));
  border-color: transparent;
  color: #fff;
}

/* Honeypot: off-screen for people, still filled in by naive bots. */
.wp-form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Card grids (posts, references) ---------------------------------------- */

.wp-cards .icon-card {
  position: relative;
}

body.page-service main .wp-cards .icon-card .wp-card-title:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 0 0 1.2rem;
  color: var(--gh-text);
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

.wp-cards .wp-card-link {
  color: inherit;
  text-decoration: none;
}

/* The whole card is the link. */
.wp-cards .wp-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.wp-cards .icon-card:hover .icon-card-go {
  background: var(--gh-text);
  color: var(--gh-bg);
}

.wp-card-image {
  display: block;
  margin: 0 0 1.2rem;
}

.wp-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: 8px;
}

/* --- Comparison table (two columns, no row labels) --------------------------- */

.wp-compare .ct-note > :last-child {
  margin-bottom: 0;
}

/* --- FAQ ----------------------------------------------------------------------- */

.wp-faq {
  padding-top: 0;
}

.wp-faq .wp-prose {
  padding-bottom: 1rem;
}

/* --- Raw HTML blocks --------------------------------------------------------- */

.wp-raw .wp-prose {
  max-width: 46rem;
  margin-inline: auto;
}

/* --- Post header, breadcrumbs, TOC ----------------------------------------------- */

body.page-service main .wp-breadcrumbs p:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 0 0 1.4rem;
  color: var(--gh-muted);
  font-size: 15px !important;
}

.wp-breadcrumbs a {
  color: var(--gh-muted);
}

.wp-breadcrumbs a:hover {
  color: var(--gh-text);
}

.wp-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wp-byline p {
  margin: 0;
}

.wp-byline a {
  color: var(--gh-link);
}

.wp-avatar {
  border-radius: 50%;
}

body.page-service main p.wp-dateline:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--gh-muted);
  font-size: 16px !important;
}

/* --- Table of contents: a full-width rails section, like the other sections ---
   The title, then the headings in columns (three on wide screens, two on
   tablets, one on phones), each with its sub-headings under it. No rules
   inside: the list reads as one. */

.landing-section.landing-section--rails.wp-toc {
  padding: 0;
  border-top: 1px solid var(--gh-border);
  border-bottom: 1px solid var(--gh-border);
  background: var(--gh-bg);
}

.wp-toc > .wrap {
  padding: 0;
  border-left: 1px solid var(--gh-border);
  border-right: 1px solid var(--gh-border);
}

/* The title, as the figures band's ("Referenssit lukuina"), with a chevron. */
.wp-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 2rem 1rem;
  color: var(--gh-text);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.wp-toc details:not([open]) summary {
  padding-bottom: 2rem;
}

.wp-toc summary::-webkit-details-marker {
  display: none;
}

/* Chevron: points down while open, right while folded. */
.wp-toc summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin: -0.3rem 0.25rem 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.wp-toc details:not([open]) summary::after {
  margin-top: 0;
  transform: rotate(-45deg);
}

.wp-toc summary:hover {
  color: #fff;
}

.wp-toc summary:focus-visible {
  outline: 2px solid var(--gh-accent);
  outline-offset: -2px;
}

.wp-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-toc .wp-toc-list {
  columns: 3;
  column-gap: 3rem;
  padding: 0 2rem 2rem;
  counter-reset: toc;
}

.wp-toc li {
  margin: 0;
}

/* A heading and its sub-headings stay together in one column. */
.wp-toc .wp-toc-chapter {
  break-inside: avoid;
  padding-bottom: 0.4rem;
  counter-increment: toc;
}

/* A link fills its line; the hover reaches a little past the text on both sides. */
.wp-toc a {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: baseline;
  margin-inline: -0.75rem;
  padding: 0.45rem 0.75rem;
  color: var(--gh-subtle);
  font-size: 1.0625rem;
  line-height: 1.45;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.wp-toc .wp-toc-chapter > a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--gh-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}

/* Sub-headings: under their heading's text, smaller and quieter. */
.wp-toc .wp-toc-chapter ol {
  padding: 0 0 0.3rem 2.5rem;
}

.wp-toc .wp-toc-chapter ol a {
  grid-template-columns: minmax(0, 1fr);
  padding-block: 0.3rem;
  color: var(--gh-muted);
  font-size: 0.95rem;
}

.wp-toc .wp-toc-chapter ol li.is-level-3 > a {
  padding-left: calc(0.75rem + 1.25rem);
}

/* Headings with numbers of their own ("1. Haetaan lista urleista") get no second one. */
.wp-toc.is-numbered .wp-toc-chapter > a {
  grid-template-columns: minmax(0, 1fr);
}

.wp-toc.is-numbered .wp-toc-chapter > a::before {
  content: none;
}

.wp-toc.is-numbered .wp-toc-chapter ol {
  padding-left: 1.25rem;
}

.wp-toc a:hover,
.wp-toc a:focus-visible {
  background: color-mix(in srgb, var(--gh-text) 6%, transparent);
  color: var(--gh-text);
}

.wp-toc a:hover::before,
.wp-toc a:focus-visible::before {
  color: var(--gh-accent);
}

.wp-toc a:focus-visible {
  outline: 2px solid var(--gh-accent);
  outline-offset: -2px;
}

/* Tablets: two columns; the section loses its side rails like the other sections. */
@media (max-width: 960px) {
  .wp-toc > .wrap {
    border-left: 0;
    border-right: 0;
  }

  .wp-toc .wp-toc-list {
    columns: 2;
    padding-inline: 1.5rem;
  }

  .wp-toc summary {
    padding-inline: 1.5rem;
  }
}

/* Phones: one column, the text on the page gutter like every other block. */
@media (max-width: 640px) {
  .wp-toc .wp-toc-list {
    columns: 1;
    padding: 0 0 1.5rem;
  }

  .wp-toc summary {
    padding: 1.5rem 0 0.75rem;
  }

  .wp-toc details:not([open]) summary {
    padding-bottom: 1.5rem;
  }

  .wp-toc a {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    font-size: 1rem;
  }

  .wp-toc .wp-toc-chapter ol {
    padding-left: 2.1rem;
  }
}

/* --- Header: whole-bar hello link, language switcher ------------------------------- */

/* The whole WordPress hello bar text is one link: let it wrap (the wireframe's
   short trailing link was nowrap). */
.hello-bar a.hello-bar-link {
  color: inherit;
  text-decoration: none;
  white-space: normal;
}

/* The language switch: FI | EN as a two-part toggle, as the theme switch beside it (Tapio, 2026-10-22:
   "Muuta lang switcher ikonista FI/EN toggleksi"). The page's language is lit; the other part is a link
   to the translation (src/components/ProductHeader.astro). The header is navy in both themes, so the
   colours are the theme switch's own (src/styles/theme-light.css). */
.product-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.product-lang a {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 1.7rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  color: #d6daee;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.product-lang a:hover {
  color: #ffffff;
}

.product-lang a[aria-current] {
  background: #ffffff;
  color: #000024;
  cursor: default;
}

.product-lang a:focus-visible {
  outline: 2px solid #4cc8bf;
  outline-offset: 2px;
}

/* The mobile menu panel lists the languages; the toggle is enough elsewhere. */
.product-languages {
  display: none;
}

@media (max-width: 860px) {
  .product-lang {
    display: none;
  }

  .product-languages {
    display: flex;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
  }

  .product-languages a[aria-current] {
    color: var(--gh-text);
    font-weight: 600;
  }
}

/* --- Footer ------------------------------------------------------------------------ */

/* A mega footer (src/components/SiteFooter.astro, src/data/footer.ts; Tapio, 2026-09-23:
   "Tapio Kauranen osio on iso ja muut osiot on 3 column"): Tapio's own cell large
   across the top, and under it everything else in three columns — the highlights, the
   link columns and the latest articles — each a cell, a line between every two, all
   between the site's rails. Then the legal bar.

   Room to breathe (Tapio, 2026-09-24: "Footer is cramped … make it more roomy without
   deleting links", then "looks the same"): the columns get the whole width at every
   size — beside Tapio's cell they were 320 px at most — and every link stays on one
   line, so no column gives its text under 252 px, the width of the longest label,
   "Kannattaako hakukoneoptimointi?": three columns from 1024 px, two from 690 px, one
   on a phone. */
.site-footer {
  /* Every cell's side inset: 36 px up to 1200 px, then growing to 48 px at 1600 px. The
     three columns keep at least 252 px of text at every width. */
  --sf-pad: clamp(2.25rem, 3vw, 3rem);
  border-top: 2px solid var(--gh-accent);
  background: var(--gh-bg);
  color: var(--gh-text);
}

.site-footer-main {
  border-inline: 1px solid var(--gh-border);
}

/* --- Tapio's cell: the name large, the pitch, contact, the free check, the portrait
   standing on the cell's bottom rule; the text beside the portrait. Roomy (Tapio,
   2026-09-24: "add more space to this"). */
.site-footer-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  /* Room for the portrait's backdrop, which reaches a quarter of its width to the left. */
  column-gap: 4.5rem;
  padding: clamp(3rem, 5vw, 4.5rem) var(--sf-pad) 0;
  border-bottom: 1px solid var(--gh-border);
}

.site-footer-brand > * {
  grid-column: 1;
  justify-self: start;
}

.site-footer-name {
  color: var(--gh-text);
  font-family: 'Mona Sans', var(--font);
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
}

.site-footer-name:hover {
  color: var(--gh-subtle);
}

.site-footer-pitch {
  max-width: 24rem;
  margin: 1.4rem 0 0;
  color: var(--gh-subtle);
  font-size: 1.05rem;
  line-height: 1.5;
}

.site-footer-about {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--gh-link);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer-about:hover {
  color: color-mix(in srgb, var(--gh-link) 75%, #fff);
}

/* Tight, as an address block (Tapio, 2026-09-24: "make this section tigther"). */
.site-footer-contact {
  display: grid;
  gap: 0.55rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer-contact li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.1rem 0.65rem;
  align-items: start;
}

/* The Y-tunnus under the company's name. */
.site-footer-contact li > small {
  grid-column: 2;
  color: var(--gh-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.site-footer-contact svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  color: var(--gh-muted);
}

.site-footer-contact a {
  color: var(--gh-subtle);
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.site-footer-contact a:hover {
  color: var(--gh-text);
}

.site-footer-cta {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  margin: 3rem 0 0;
}

/* The hero's green button (global.css .split-hero--rails .split-hero-actions > .btn-primary). */
.site-footer-button {
  padding: 0.7rem 1.1rem;
  border-radius: 6px;
  background: var(--gh-green);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer-button:hover {
  background: var(--gh-green-hover);
  color: #fff;
}

.site-footer-cta small {
  color: var(--gh-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.site-footer-brand > .site-footer-cta {
  margin-bottom: clamp(3.25rem, 5vw, 4.5rem);
}

.site-footer-brand > .site-footer-portrait {
  position: relative;
  isolation: isolate;
  display: block;
  grid-row: 1 / span 5;
  grid-column: 2;
  align-self: end;
  justify-self: end;
  /* The backdrop's right edge on the cell's inset (it reaches 14 % of the width out);
     off the rule by the text's own bottom space (Tapio: "my picture is too close to the
     bottom add aspace"). */
  margin: 0 1.7rem clamp(3.25rem, 5vw, 4.5rem) 0;
}

/* The logo's backdrop (public/images/tapio-kauranen.png; Tapio, 2026-09-24: "put a blue
   rectangle behind me so that its a bit offcenter"): the logo's teal, near square, from
   Tapio's forehead down to the rule, reaching further out on the left than on the
   right, so he stands right of its centre as in the logo. */
.site-footer-portrait::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 13% -14% 0 -26%;
  background: #4cc8bf;
}

.site-footer-portrait img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 19rem;
  margin: 0 auto;
}

/* Over the three columns: the cell in three too, each on its column's text — the
   name, the contact and the free check, the portrait. The gap is two cells' inset and
   the line between them. From 1140 px, where the address fits on one line. */
@media (min-width: 1140px) {
  .site-footer-brand {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      'name contact portrait'
      'pitch contact portrait'
      'about cta portrait';
    column-gap: calc(2 * var(--sf-pad) + 1px);
  }

  .site-footer-brand > .site-footer-name {
    grid-area: name;
  }

  .site-footer-brand > .site-footer-pitch {
    grid-area: pitch;
  }

  .site-footer-brand > .site-footer-about {
    grid-area: about;
  }

  .site-footer-brand > .site-footer-contact {
    grid-area: contact;
    margin-top: 0.35rem;
  }

  .site-footer-brand > .site-footer-cta {
    grid-area: cta;
  }

  .site-footer-brand > .site-footer-portrait {
    grid-area: portrait;
    justify-self: center;
    margin-right: 0;
  }
}

/* A phone: the text the whole width, so the name, the address and the email stay on
   one line; the portrait beside the free check only. */
@media (max-width: 767px) {
  .site-footer-brand > :not(.site-footer-cta, .site-footer-portrait) {
    grid-column: 1 / -1;
  }

  .site-footer-brand > .site-footer-portrait {
    grid-row: 5;
    margin-right: 1.15rem;
  }

  .site-footer-portrait img {
    max-height: 13rem;
  }
}

/* A narrow phone: the portrait and its backdrop under the free check, in the middle. */
@media (max-width: 560px) {
  .site-footer-brand > .site-footer-cta {
    margin-bottom: 0;
  }

  .site-footer-brand > .site-footer-portrait {
    grid-row: auto;
    grid-column: 1 / -1;
    justify-self: center;
    margin: 2.75rem 0 clamp(3.25rem, 5vw, 4.5rem);
  }

  .site-footer-portrait img {
    max-height: 15rem;
  }
}

/* --- Everything else: columns of cells. The gaps are the lines between them. */
.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--gh-border);
}

.site-footer-nav > * {
  min-width: 0;
  background: var(--gh-bg);
}

/* The highlights: the three things most visitors come for, in the first row. */
.site-footer-feature {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 3rem var(--sf-pad) 3.25rem;
  color: var(--gh-text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.site-footer-feature:hover {
  background: color-mix(in srgb, var(--gh-text) 4%, var(--gh-bg));
}

.site-footer-feature-eyebrow {
  color: var(--gh-green-hover, var(--gh-green));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer-feature-title {
  font-family: 'Mona Sans', var(--font);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* The last word and the arrow never part (a no-break space does not hold before an inline block). */
.site-footer-feature-end {
  white-space: nowrap;
}

.site-footer-feature-arrow {
  display: inline-block;
  margin-left: 0.1rem;
  color: var(--gh-muted);
  transition: transform 0.15s ease;
}

.site-footer-feature:hover .site-footer-feature-title {
  color: var(--gh-link);
}

.site-footer-feature:hover .site-footer-feature-arrow {
  color: var(--gh-link);
  transform: translateX(3px);
}

.site-footer-feature-text {
  color: var(--gh-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* The link columns and the latest articles. */
.site-footer-col {
  padding: 3rem var(--sf-pad) 3.5rem;
}

.site-footer-col h2 {
  margin: 0 0 1.5rem;
  color: var(--gh-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer-col ul {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-col a {
  display: grid;
  gap: 0.25rem;
  color: var(--gh-text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.site-footer-col a:hover {
  color: var(--gh-link);
}

/* A client's result under its name. */
.site-footer-col a small {
  color: var(--gh-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.site-footer-latest ul {
  gap: 1.4rem;
}

.site-footer-latest a {
  gap: 0.35rem;
}

.site-footer-latest time {
  color: var(--gh-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-footer-latest a:hover time {
  color: var(--gh-link);
}

.site-footer-more {
  display: inline-block;
  margin-top: 1.75rem;
  color: var(--gh-link) !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer-more:hover {
  color: color-mix(in srgb, var(--gh-link) 75%, #fff) !important;
}

/* A tablet: two columns. The most read guide the whole row wide, the other two
   highlights, the link columns and the latest articles two by two, so every row is full. */
@media (max-width: 1023px) {
  .site-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-feature:first-child {
    grid-column: 1 / -1;
  }
}

/* A phone: one column. */
@media (max-width: 689px) {
  .site-footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer-feature,
  .site-footer-col {
    padding-block: 2.5rem 2.75rem;
  }
}

/* --- The legal bar: the copyright under the first column, the links under the rest.
   The gap is the line between them, on the columns' own line; the text on the cells'
   own inset. */
.site-footer-bar {
  border-top: 1px solid var(--gh-border);
}

.site-footer-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-inline: 1px solid var(--gh-border);
  background: var(--gh-border);
}

.site-footer-bar-inner > * {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 1.5rem var(--sf-pad);
  background: var(--gh-bg);
}

.site-footer-bar-links {
  grid-column: 2 / -1;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2.25rem;
}

@media (max-width: 1023px) {
  .site-footer-bar-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 689px) {
  .site-footer-bar-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.site-footer-copy {
  /* The text's inset, where the cookie button stands. */
  --sf-copy-inset: var(--sf-pad);
  position: relative;
  color: var(--gh-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* The cookie settings button (CookieConsent part="button") before the copyright, at the
   footer's bottom left, no longer fixed over the page (Tapio, 2026-09-25). consent.js
   shows it once the visitor has chosen and hides it while the banner is open. Absolute,
   so the bar keeps its height either way; the copyright makes room while it shows. */
.site-footer-copy > .kncc-floating-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--sf-copy-inset);
  z-index: auto;
  margin-block: auto;
}

.site-footer-copy:has(> .kncc-floating-btn:not([style*='none'])) {
  padding-left: calc(var(--sf-copy-inset) + 3rem + 1rem);
}

.site-footer-legal,
.site-footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-legal a,
.site-footer-legal button,
.site-footer-langs a {
  color: var(--gh-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-footer-legal button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

.site-footer-legal a:hover,
.site-footer-legal button:hover,
.site-footer-langs a:hover {
  color: var(--gh-text);
}

.site-footer-langs a[aria-current] {
  color: var(--gh-text);
  font-weight: 600;
}

.site-footer-legal button:focus-visible,
.site-footer-legal a:focus-visible,
.site-footer-langs a:focus-visible,
.site-footer-col a:focus-visible,
.site-footer-contact a:focus-visible,
.site-footer-about:focus-visible,
.site-footer-name:focus-visible,
.site-footer-button:focus-visible {
  outline: 2px solid var(--gh-link);
  outline-offset: 3px;
}

.site-footer-feature:focus-visible {
  outline: 2px solid var(--gh-link);
  outline-offset: -2px;
}

/* A phone: no side rails, as the site's other columns. */
@media (max-width: 560px) {
  .site-footer-main,
  .site-footer-bar-inner {
    border-inline: 0;
  }

  /* The text on the page's gutter. */
  .site-footer-brand,
  .site-footer-feature,
  .site-footer-col {
    padding-inline: 0;
  }

  .site-footer-bar-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer-bar-inner > * {
    padding: 1.25rem 0;
  }

  /* Room above and below the cookie button, as on wider screens. */
  .site-footer-copy {
    --sf-copy-inset: 0px;
    min-height: 4.5rem;
  }

  .site-footer-bar-links {
    grid-column: auto;
  }
}

/* --- Beaver Builder pieces ---------------------------------------------------------- */

/* Opening hero with a portrait (the circle-cropped photo from Beaver Builder). */
.wp-opener-portrait img {
  display: block;
  width: 7.5rem;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 50%;
}

/* Name and title under a portrait. */
.wp-media-caption {
  display: grid;
  gap: 0.2rem;
  margin-top: 1.2rem;
  color: var(--gh-muted);
  text-align: center;
}

/* Caption lines (headings in WordPress): the first is the name. */
body.page-service main .wp-media-caption > *:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 0;
  color: #59636e;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
}

body.page-service main .wp-media-caption > :first-child:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: #1f2328;
  font-weight: 600 !important;
}

/* Several photos in one image column stack with a gap. */
.wp-media > * + :is(picture, a) {
  margin-top: 1.5rem;
}

.wp-media {
  grid-auto-flow: row;
  align-content: center;
}

/* A section that continues the previous one (text after cards) needs less air. */
.wp-section.is-untitled {
  padding-top: 3rem;
  border-top: 0;
}

.wp-section.is-untitled .wp-section-body {
  margin-top: 0;
}

.wp-callouts .feature-trio-cell {
  display: flex;
  flex-direction: column;
}

.wp-callout-image img {
  width: 3rem;
  height: auto;
  margin-bottom: 1rem;
}

/* Buttons after a trio or card row, aligned with the rails. */
.wp-after-trio {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--gh-border);
}

.wp-after-trio .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.wp-after-trio .feature-row-link {
  margin: 0 !important;
}

/* Figures inside prose (Beaver Builder photos between paragraphs). */
.wp-prose figure {
  margin: 1.5em 0;
}

.wp-prose figcaption {
  margin-top: 0.5em;
  color: var(--gh-muted);
  font-size: 0.9em;
}

/* Logo wall images: calm, same height, light on dark. */
.logo-wall-img:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  max-height: 2.8rem;
  width: auto;
}

/* --- Logo: Tapio's portrait icon beside the name ------------------------------------ */

.product-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.product-logo-icon img {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
}

@media (max-width: 640px) {
  .product-logo-icon img {
    width: 2.2rem;
    height: 2.2rem;
  }
}

/* Customer logos are coloured PNGs made for light backgrounds; on the dark
   rails band they read as one calm white wordmark row. */
.logo-wall--rails .logo-wall-img:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.78;
}

/* Hand-drawn "Kysy lisää" arrow above hero forms (white artwork, made for dark). */
.wp-form-arrow img {
  display: block;
  width: 11rem;
  height: auto;
  margin: 0 0 1rem;
}

/* --- Archives: reference filter and page links ---------------------------------------- */

.wp-archive-filter .wrap,
.wp-pagination .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.5rem 0;
}

.wp-pagination .wrap {
  justify-content: center;
  padding: 2.5rem 0 3.5rem;
}

.wp-archive-filter a,
.wp-pagination :is(a, span) {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  color: var(--gh-subtle);
  font-size: 0.95rem;
}

.wp-archive-filter a:hover,
.wp-pagination a:hover {
  border-color: var(--gh-muted);
  color: var(--gh-text);
}

.wp-archive-filter a[aria-current],
.wp-pagination span[aria-current] {
  border-color: var(--gh-text);
  background: var(--gh-text);
  color: var(--gh-bg);
}

/* --- Search ------------------------------------------------------------------------ */

/* Suggestions under a search field (src/lib/search-suggest.ts), in the header and
   on /search/. The list is the field's own box grown downwards: as wide as the
   field, its background, border and corners, and the focus ring drawn round the
   field and the list together. The box starts behind the field, which goes
   frameless while the list is open, so the two read as one. The group names as
   the mega menu's column names. */
.search-suggest {
  position: absolute;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
  outline: 2px solid var(--gh-link);
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.5);
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  text-align: left;
}

.search-suggest[hidden] {
  display: none;
}

/* The items scroll inside the box, under a rule that parts them from the field. */
.search-suggest-scroll {
  max-height: min(70vh, 40rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.4rem 0;
  border-top: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
}

/* A rule between the groups, and over "all results". */
.search-suggest-scroll > * + * {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Items start where the field's text does (--suggest-inset, set per field). */
.search-suggest-heading {
  padding: 0.55rem var(--suggest-inset, 1rem) 0.3rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-suggest [role='option'] {
  display: block;
  padding: 0.45rem var(--suggest-inset, 1rem);
  color: var(--gh-subtle);
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
}

.search-suggest [role='option'][aria-selected='true'] {
  background: var(--gh-border);
}

/* A term: what was typed as it is, the rest of the term in white. */
.search-suggest-term strong {
  color: #fff;
  font-weight: 600;
}

/* A page: its title, in white like the menus' links. */
.search-suggest .search-suggest-page {
  color: #fff;
  font-weight: 600;
}

.search-suggest .search-suggest-all {
  color: var(--gh-link);
  font-weight: 600;
}

.search-suggest-all::after {
  content: ' →';
  content: ' →' / '';
}

.search-suggest-none {
  margin: 0;
  padding: 0.55rem var(--suggest-inset, 1rem);
  color: var(--gh-subtle);
}

/* The header's field: 17rem wide and 2rem tall when open, anchored right
   (global.css), its text 0.75rem in; on phones it covers the logo row. */
.product-search .search-suggest {
  --suggest-inset: 0.75rem;
  top: 0;
  right: 0;
  width: 17rem;
  /* The field's height, less the box's top border and the rule under the field. */
  padding-top: calc(2rem - 2px);
  border-radius: 6px;
  outline-offset: -1px;
  background: color-mix(in srgb, var(--gh-text) 5%, var(--gh-bg));
}

.product-search:has(> .search-suggest:not([hidden])) input {
  border-color: transparent;
  background: transparent;
  outline: none;
}

@media (max-width: 860px) {
  .product-search .search-suggest {
    left: 0;
    width: auto;
  }
}

/* --- Search page ------------------------------------------------------------------- */

/* The guides' opener, a little closer to the results. */
@media (min-width: 961px) {
  body.is-search .guide-hero.split-hero.split-hero--rails .split-hero-copy {
    padding-top: 120px;
    padding-bottom: 110px;
  }
}

.site-search {
  max-width: 40rem;
}

/* The field and its button in one box, as the site's form fields are drawn. */
.site-search-field {
  position: relative;
  /* Its suggestions over the results under it. */
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 3.75rem;
  padding: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
  border-radius: 8px;
  background: color-mix(in srgb, var(--gh-text) 4%, var(--gh-bg));
}

.site-search-field:focus-within {
  outline: 2px solid var(--gh-link);
  outline-offset: 1px;
}

.site-search-field input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 0;
  background: transparent;
  color: var(--gh-text);
  font: inherit;
  font-size: 1.125rem;
  outline: none;
}

/* The placeholder in the old grey, so it does not read as typed text. */
.site-search-field input::placeholder {
  color: #9198a1;
}

.site-search-submit {
  flex: none;
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 6px;
  background: var(--gh-text);
  color: color-mix(in srgb, var(--gh-text) 5%, var(--gh-bg));
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-search-submit:hover {
  background: #fff;
}

.site-search-submit:focus-visible {
  outline: 2px solid var(--gh-link);
  outline-offset: 2px;
}

/* Its suggestions: the field's box grown down (.search-suggest), the list from the
   field's bottom border on, the items where the field's text starts. */
.site-search-field .search-suggest {
  --suggest-inset: 1rem;
  top: -1px;
  left: -1px;
  right: -1px;
  padding-top: calc(3.75rem - 2px);
  border-radius: 8px;
  outline-offset: 1px;
  background: color-mix(in srgb, var(--gh-text) 4%, var(--gh-bg));
}

.site-search-field:has(> .search-suggest:not([hidden])) {
  border-color: transparent;
  background: transparent;
  outline: none;
}

/* Popular searches: the archive filter's round links. */
.site-search-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin-top: 1.5rem;
}

.site-search-popular[hidden] {
  display: none;
}

body.page-service main .site-search-popular > p:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 0;
  color: var(--gh-subtle);
  font-size: 1rem;
}

.site-search-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-service main .site-search-terms a:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  color: var(--gh-subtle);
  font-size: 0.95rem;
  text-decoration: none;
}

body.page-service main .site-search-terms a:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: var(--gh-muted);
  color: var(--gh-text);
}

/* Filters by kind and the count, in the archive filter's row. */
.site-search-filter[hidden] {
  display: none;
}

.site-search-filter > .wrap {
  align-items: center;
}

.site-search-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-search-kinds:empty {
  display: none;
}

.site-search-kinds button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  background: transparent;
  color: var(--gh-subtle);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.site-search-kinds button:hover {
  border-color: var(--gh-muted);
  color: var(--gh-text);
}

.site-search-kinds button[aria-pressed='true'] {
  border-color: var(--gh-text);
  background: var(--gh-text);
  color: var(--gh-bg);
}

.site-search-kinds button:focus-visible {
  outline: 2px solid var(--gh-link);
  outline-offset: 2px;
}

.site-search-count {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

body.page-service main .site-search-status:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 0 0 0 auto;
  color: var(--gh-subtle);
  font-size: 0.95rem;
}

/* The results: the archive's cards under their own rule, each sentence at most
   three lines, the searched words in white. */
.site-search-results[hidden],
.site-search-more[hidden],
.site-search-empty[hidden] {
  display: none;
}

body.is-search .site-search-results {
  border-top: 1px solid var(--gh-border);
}

body.page-service main .site-search-results p.wp-card-text:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.site-search-results .wp-card-text strong {
  color: var(--gh-text);
  font-weight: 600;
}

/* "Show more": the page links' round button, between the rails. */
.site-search-more {
  border-bottom: 1px solid var(--gh-border);
}

.site-search-more > .wrap {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0 3rem;
  border-inline: 1px solid var(--gh-border);
}

.site-search-more button {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 1.1rem;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  background: transparent;
  color: var(--gh-subtle);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.site-search-more button:hover {
  border-color: var(--gh-muted);
  color: var(--gh-text);
}

.site-search-more button:focus-visible {
  outline: 2px solid var(--gh-link);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .site-search-more > .wrap {
    border-inline: 0;
  }
}

/* Nothing found: "did you mean" and the popular searches. */
body.is-search .site-search-empty {
  border-top: 1px solid var(--gh-border);
}

/* Its text lined up with the opener's, beside where the portrait is. */
@media (min-width: 641px) {
  body.is-search .site-search-empty .section-intro.is-column {
    padding-left: calc(5.625rem + 1.5rem);
  }
}

@media (min-width: 961px) {
  body.is-search .site-search-empty .section-intro.is-column {
    max-width: calc(100% * 8 / 12);
  }
}

body.page-service main .site-search-empty .section-intro p:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 0 0 1rem;
  color: var(--gh-subtle);
}

.site-search-fix[hidden] {
  display: none;
}

body.page-service main .site-search-fix a:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--gh-link);
  font-weight: 600;
}

.wp-form-done,
.wp-form-error {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 6px;
}

.wp-form-done {
  border: 1px solid color-mix(in srgb, var(--gh-green) 70%, transparent);
  color: var(--gh-text);
}

.wp-form-error {
  border: 1px solid #f85149;
  color: #ffa198;
}

/* --- One tone --------------------------------------------------------------------------
   Every surface takes the header tone (--gh-header on body.page-wp, global.css), so no
   section or gap differs from the rest. The tone was the near-black grey #141516; it is
   pure black #000 since 2026-09-24 (Tapio: "Change the bg color of the website to full
   #000"). */
body.page-migrated {
  --gh-bg: var(--gh-header);
  --bg: var(--gh-header);
  --header-bg: var(--gh-header);
  /* One text colour (Tapio, 2026-09-24: "Tämä on hyvä tekstin väri varmista että tämä on
     kaikkialla"): secondary text, the grey #9198a1 until then, is the body text's #c9d1d9.
     --muted follows. Headings stay white; white panels set their own greys. */
  --gh-muted: var(--gh-subtle);
  /* The wireframe's grey links (#c4c4c4) in the same colour. */
  --accent: var(--gh-subtle);
  background: var(--gh-header);
}

/* The hello bar in the site's old near-black grey (Tapio, 2026-09-24: "Hellobar muun
   väriseksi", then, after the logo's teal, "Hellobar on liian värikäs! Lisää se vanhalla
   harmaalla"): on the all-black site a black bar didn't stand out from the header. */
body.page-migrated {
  --gh-hello: #141516;
}

/* --- Front page --------------------------------------------------------------------------- */

/* Hero texts centred: portrait, heading, text and button on one axis. The service-page
   rules zero the left padding (!important), so both sides get the same padding back. */
body.is-front .wp-opener .split-hero-copy,
body.is-front .wp-opener .split-hero-card {
  align-items: center;
  padding-inline: 2.5rem !important;
  text-align: center;
}

body.is-front .wp-opener .wp-opener-portrait img {
  margin-inline: auto;
}

body.is-front .wp-opener .split-hero-actions {
  justify-content: center;
}

body.is-front .wp-opener .wp-prose {
  margin-inline: auto;
}

/* --- Logo wall ------------------------------------------------------------------------------ */

/* A rule on top as well: in the wireframe the showcase band above drew it; after a hero
   (logo rows from WordPress, wrapped for their anchor) nothing does. */
body.page-migrated main > div > .logo-wall--rails:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-top: 1px solid var(--gh-border, var(--border));
}

/* The accent line that closes the logo band (the next section's top rule), 2px. */
body.page-migrated div:has(> .logo-wall--rails) + .landing-section--rails:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-top-width: 2px;
}

/* --- Front page: service cards -------------------------------------------------------- */

/* Service cards: a short description under the title. */
body.page-service main .wp-cards p.wp-card-text:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: -0.6rem 0 1.2rem;
  color: var(--gh-muted);
  font-size: 17px !important;
}

/* Feature row without media: the copy spans the row. */
@media (min-width: 800px) {
  .feature-row--rails.is-text-only > .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature-row--rails.is-text-only .feature-row-copy {
  border-right: 1px solid var(--gh-border, var(--border));
}

/* Links in a caption on the white image panel. */
.wp-media-caption a {
  color: #0969da;
  text-decoration: underline;
}

/* Case pages: a page screenshot filling the whole media column, from its top. */
.feature-row--rails .wp-media.is-cover {
  min-height: 30rem;
  padding: 0;
}

.feature-row--rails .wp-media.is-cover picture {
  position: absolute;
  inset: 0;
  max-height: none;
  border-radius: 0;
}

.feature-row--rails .wp-media.is-cover img {
  width: 100%;
  height: auto;
  min-height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

/* Case pages: a link to the client's site as a button (as under the banner). */
.feature-row--rails .feature-row-button a,
.case-site-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 6px;
  background: var(--gh-green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.feature-row--rails .feature-row-button a:hover,
.case-site-button:hover {
  background: var(--gh-green-hover);
  color: #fff;
}

:is(.feature-row-button, .case-site-button) svg {
  width: 1rem;
  height: 1rem;
}

/* Case pages: key figures in a row of rails cells. */
.case-figures {
  border-top: 1px solid var(--gh-border);
  background: var(--gh-bg);
}

.case-figures > .wrap {
  padding: 0;
  border-left: 1px solid var(--gh-border);
  border-right: 1px solid var(--gh-border);
}

body.page-service main .case-figures-title:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 0;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gh-border);
  color: var(--gh-text);
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  line-height: 1.3 !important;
}

.case-figures-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.case-figure {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 2.5rem 2rem;
}

.case-figure + .case-figure {
  border-left: 1px solid var(--gh-border);
}

.case-figure dd {
  margin: 0;
  color: var(--gh-text);
  font-family: 'Mona Sans', var(--font);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}

.case-figure dt {
  color: var(--gh-muted);
  font-size: 1rem;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .case-figures-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-figure:nth-child(odd) {
    border-left: 0;
  }

  .case-figure:nth-child(n + 3) {
    border-top: 1px solid var(--gh-border);
  }

  .case-figure {
    padding: 1.75rem 1.25rem;
  }
}

/* Case pages: a section intro starts where the rows' text does (their copy's
   padding and rule), not on the rail. */
.case-intro .section-intro.is-column {
  margin-left: calc(4rem + 1px);
}

@media (max-width: 960px) {
  .case-intro .section-intro.is-column {
    margin-left: 1.5rem;
  }
}

@media (max-width: 640px) {
  .case-intro .section-intro.is-column {
    margin-left: 0;
  }
}

/* Case pages: a paragraph under a section intro's subtitle, on its left edge. */
body.page-service main .case-intro-text:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--gh-subtle);
}

/* Case pages: project facts beside the phones; the site is a button. */
.case-facts {
  display: grid;
  margin: 1.5rem 0 0;
}

.case-facts > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--gh-border);
}

.case-facts dt {
  color: var(--gh-muted);
  font-size: 0.95rem;
}

.case-facts dd {
  margin: 0;
  color: var(--gh-text);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Case pages: the client's words. */
.case-quote figure {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.case-quote blockquote {
  margin: 0;
}

body.page-service main .case-quote blockquote p:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--gh-text);
  font-size: clamp(1.4rem, 2.4vw, 2rem) !important;
  line-height: 1.35 !important;
}

.case-quote figcaption {
  margin-top: 1.25rem;
  color: var(--gh-muted);
}

/* Case pages: site screenshots in a browser window on the white media panel. */
.wp-media.has-frame .ref-show-frame {
  width: 100%;
}

.wp-media.has-frame .ref-show-frame :is(picture, img) {
  width: 100%;
  max-height: none;
  border-radius: 0;
}

/* A hero eyebrow that links (a case page's category): a tag like the card labels. */
.split-hero--rails .eyebrow a {
  padding: 0.3rem 0.55rem;
  border-radius: 0.3rem;
  background: var(--gh-border);
  color: var(--gh-text);
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-decoration: none;
}

.split-hero--rails .eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Case pages: the hero's two buttons side by side. */
body.is-case .split-hero--rails .split-hero-actions {
  flex-direction: row;
  flex-wrap: wrap;
}

/* Case pages: a picture beside the hero's text (the Google result), on its right. */
.split-hero-media .case-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (min-width: 961px) {
  body.product-home .split-hero.split-hero--rails.is-stacked.has-media .split-hero-rails-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    column-gap: 4rem;
  }

  body.product-home .split-hero.split-hero--rails.is-stacked.has-media .split-hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  body.product-home .split-hero.split-hero--rails.is-stacked.has-media .split-hero-card {
    grid-column: 1;
    grid-row: 2;
  }

  .split-hero.split-hero--rails.is-stacked.has-media .split-hero-media {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* Narrower, the picture follows the text. */
@media (max-width: 960px) {
  body.product-home .split-hero.split-hero--rails.is-stacked.has-media .split-hero-card {
    padding-bottom: 2.5rem !important;
  }

  .split-hero.split-hero--rails.is-stacked.has-media .split-hero-media {
    padding-bottom: 5rem;
  }
}

/* Case pages: a centred intro's subtitle as prominent as a feature row's. */
body.page-service main .case-intro .section-intro--rails p.lede:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--gh-subtle);
  font-size: 23px !important;
  line-height: 1.45 !important;
}

/* Case pages: card explanations get the card's full width (three lines at most). */
.case-cards.icon-cards--rails.is-compact .icon-card {
  padding-inline: 2rem;
}

.case-cards.icon-cards--rails .icon-card :is(h3, p) {
  max-width: none;
}

/* Phones: the page screenshot at its own shape (a narrow column would crop its sides),
   and key figures small enough to stay on one line. */
@media (max-width: 799px) {
  .feature-row--rails .wp-media.is-cover {
    min-height: 0;
  }

  .feature-row--rails .wp-media.is-cover picture {
    position: static;
  }

  .feature-row--rails .wp-media.is-cover img {
    height: auto;
  }

  .case-figure dd {
    font-size: 1.7rem;
    white-space: nowrap;
  }
}

/* Case hero: the link to the client's own site is a plain outbound link. */
.split-hero--rails .split-hero-actions > .btn.is-plain:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding-left: 0.25rem;
  border-color: transparent;
  background: none;
}

.split-hero--rails .split-hero-actions > .btn.is-plain:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: transparent;
  background: none;
  color: #fff;
  text-decoration: underline;
}

.split-hero--rails .split-hero-actions > .btn svg:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  width: 1rem;
  height: 1rem;
  margin-left: 0.4rem;
  vertical-align: -0.15em;
}

/* Case cards: the main thing that was done takes the whole row. */
.case-cards .icon-card.is-wide :is(h3, p) {
  max-width: 44ch;
}

@media (min-width: 800px) {
  .case-cards .icon-card.is-wide {
    grid-column: 1 / -1;
  }

  /* A full-width first card shifts the rows: they start at cards 2, 5, 8… */
  .case-cards:has(.icon-card.is-wide:first-child) > .wrap > .icon-card {
    border-top: 1px solid var(--gh-border);
    border-left: 1px solid var(--gh-border);
  }

  .case-cards:has(.icon-card.is-wide:first-child) > .wrap > .icon-card:is(:first-child, :nth-child(3n + 2)) {
    border-left: 0;
  }

  .case-cards:has(.icon-card.is-wide:first-child) > .wrap > .icon-card:first-child {
    border-top: 0;
  }

  .case-cards:has(.icon-card.is-wide:first-child) > .wrap > .icon-card:last-child:not(:nth-child(3n + 1)) {
    border-right: 1px solid var(--gh-border);
  }
}

/* Two to a row below 1100 px (global.css): after the full-width card the rows
   start at cards 2, 4, 6… */
@media (min-width: 800px) and (max-width: 1099px) {
  .case-cards:has(.icon-card.is-wide:first-child) > .wrap > .icon-card:nth-child(2n + 3) {
    border-left: 1px solid var(--gh-border);
  }

  .case-cards:has(.icon-card.is-wide:first-child) > .wrap > .icon-card:nth-child(2n) {
    border-left: 0;
  }

  .case-cards:has(.icon-card.is-wide:first-child) > .wrap > .icon-card:last-child:nth-child(odd) {
    border-right: 0;
  }

  .case-cards:has(.icon-card.is-wide:first-child) > .wrap > .icon-card:last-child:nth-child(even) {
    border-right: 1px solid var(--gh-border);
  }
}

/* ==========================================================================
   Phones: one column, one gutter, a calmer type scale
   ========================================================================== */
@media (max-width: 640px) {
  /* Every block's text starts at the page gutter. The rails cells lose their
     vertical rules here, so their inner padding only made the edge ragged. */
  .feature-row--rails .feature-row-copy,
  .feature-row--rails.is-flipped .feature-row-copy,
  .icon-cards--rails .icon-card,
  .icon-cards--rails.is-compact .icon-card,
  .case-cards.icon-cards--rails.is-compact .icon-card,
  .case-figure,
  body.page-service main .case-figures-title:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    padding-inline: 0;
  }

  /* Media panels: less white around the image, so the image itself is bigger. */
  .wp-media {
    padding: 1.25rem;
  }

  /* No vertical rules on a single column. */
  .case-figures > .wrap {
    border-left: 0;
    border-right: 0;
  }

  /* Two figures per row: the right one keeps clear of the rule between them. */
  .case-figure:nth-child(even) {
    padding-left: 1.25rem;
  }

  /* One step down from the desktop scale. */
  body.product-home .split-hero--rails h1 {
    font-size: 1.75rem;
  }

  body.page-service main .section-intro--rails h2:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
  body.page-service main .case-figures-title:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 1.5rem !important;
  }

  body.page-service main :is(h3, .feature-row-title):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 1.3rem !important;
  }

  /* A topic-opening row heading reads as big as a section intro, not bigger. */
  body.page-service main .feature-row--rails .feature-row-copy > h2.feature-row-title:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 1.5rem !important;
  }

  body.page-service main .feature-row--rails .feature-row-copy > h2.feature-row-title + p:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 18px !important;
  }

  body.page-service main :is(p:not(.eyebrow, .pricing-price, .pricing-badge, .icon-card-label, .pricing-footnote, .pricing-tier-footnote), li, td):not(.ai-demo *, .logo-wall *, .ref-show *, .opt *, .aic *, .est-ui *, .quiz *, .gd *):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 16px !important;
  }

  /* Section subtitles stay a step above the body text. */
  body.page-service main .feature-row--rails .feature-row-copy > p:not(.feature-row-link):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
  body.page-service main .case-intro .section-intro--rails p.lede:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 18px !important;
  }

  .case-figure dd {
    font-size: 1.6rem;
  }

  /* Hero buttons: one line, still a comfortable tap target. */
  body.product-home .split-hero--rails .split-hero-actions > .btn:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
  }
}

/* Case hero: the project in a few lines under the subtitle. */
.case-hero-facts {
  display: grid;
  gap: 0.4rem;
  margin: 1.6rem 0 0;
}

.case-hero-facts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.page-service main .case-hero-facts dt:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--gh-text);
  font-size: 1rem;
  font-weight: 600;
}

body.page-service main .case-hero-facts dd:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 0;
  color: var(--gh-subtle);
  font-size: 1rem;
}

.case-hero-facts a {
  color: var(--gh-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Case pages: a list in a centred intro, with the same check marks as the rows. */
.case-intro-list {
  display: grid;
  gap: 0.25rem;
  max-width: 34rem;
  margin: 1.2rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

body.page-service main .case-intro-list li:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  position: relative;
  padding-left: 1.6rem;
  color: var(--gh-subtle);
}

.case-intro-list li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 0.1rem;
  width: 0.7rem;
  height: 0.4rem;
  border-bottom: 2px solid var(--gh-accent);
  border-left: 2px solid var(--gh-accent);
  transform: rotate(-45deg);
}

/* Archive: the card grid draws its own rule (the filter row above it has none). */
body.is-archive .wp-cards {
  border-top: 1px solid var(--gh-border);
}

/* ==========================================================================
   Archive filter row: part of the rails, not floating between them
   ========================================================================== */

.wp-archive-filter {
  border-top: 1px solid var(--gh-border);
}

.wp-archive-filter > .wrap {
  padding: 1.25rem 2rem;
  border-left: 1px solid var(--gh-border);
  border-right: 1px solid var(--gh-border);
}

@media (max-width: 640px) {
  .wp-archive-filter > .wrap {
    padding: 1rem 0;
    border-left: 0;
    border-right: 0;
  }
}


/* --- Pictures on the generic template ------------------------------------------ */

/* Pages and posts on the plain block template, and pages of their own that opt in
   (body.media-frames, src/pages/[...slug].astro): no white panel under
   every picture (Tapio, 2026-09-23). An opaque picture gets a frame; one with
   transparency sits on the page's tone, lit softly from behind (src/lib/image-frame.ts). */
body.media-frames .wp-media:is(.is-framed, .is-cutout) {
  background: transparent;
}

body.media-frames :is(.wp-media, .wp-section-image).is-framed img {
  border: 1px solid var(--gh-border, var(--border));
  border-radius: 8px;
}

body.media-frames .wp-media.is-cutout {
  background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--gh-text) 8%, transparent), transparent 65%);
}

/* Rules on both sides of the picture: the outer rail, and the line between picture and
   text (the text's column draws only its outer rail). */
@media (min-width: 800px) {
  body.media-frames .feature-row--rails .feature-row-media {
    border-right: 1px solid var(--gh-border, var(--border));
    border-left: 1px solid var(--gh-border, var(--border));
  }
}

/* Bands sit flush, as on the pages with a file of their own: no dark stripe between
   two rows, one 1 px line where two bands meet. */
body.media-frames .feature-row--rails {
  margin-top: 0;
}

body.media-frames :is(.feature-row--rails, .landing-section--rails, div:has(> .logo-wall)) + .feature-row--rails:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-top: 0;
}

/* The same when a script stands between the two bands: the contents bar's script
   (Toc.astro) comes after the list on a page of its own (the party-ideas tool). */
body.media-frames :is(.feature-row--rails, .landing-section--rails) + script + .feature-row--rails {
  border-top: 0;
}

/* A text section's accent line is the rule where it meets the band above: that band
   drops its own (a continuing section, .is-untitled, has no accent line). */
body.media-frames :is(.feature-row--rails, .landing-section--rails):has(+ .landing-section--rails:not(.is-untitled)) {
  border-bottom: 0;
}

/* An intro band or "Kysy lisää" under a row, a table or the logo row: that band's bottom rule
   is the line between them. */
body.media-frames :is(.feature-row--rails, .landing-section--rails, .icon-cards--rails, .compare-table--rails, div:has(> .logo-wall)) + :is(.rails-intro, .contact-band):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-top: 0;
}

/* The page's last band: the footer's accent line closes it. */
body.media-frames main > :is(.feature-row--rails, .landing-section--rails, .icon-cards--rails):last-child:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-bottom: 0;
}

/* The WordPress-site test on /wordpress-verkkosivut/ and its English page (a hand-made embed, #rb-testi): a
   white card with black text, whose headings and paragraphs name no colour of their own. On the dark page
   the site's own heading and text colours were set on them and read as near-white on the white card, so
   the question could not be read (2026-10-01). They take the card's colour. */
#rb-testi :is(h1, h2, h3, h4, h5, h6, p, li, span, div, strong, em, small, a:not(.rb-cta, .rb-link)) {
  color: inherit;
}

/* Contrast fixes from the SEO analysis 26.11.2026. */
/* Rating stars in the Google mock-ups (Tampere page): #f4b400 on white was 1.85:1; the demos' own amber is 4.87:1. */
body .gd .tre-pack-item .tre-pack-info .tre-pack-rating span,
body .gd .tre-profile-item .tre-profile-info .tre-profile-rating [aria-hidden='true'] {
  color: #9a6700;
}

/* "Lue kohta" buttons in the white demo box: in the dark theme the page link colour (#4493f8) was 3.1:1 on white.
   Same teal as in the light theme (6.1:1). */
html:not(.theme-light) body.is-section-refresh main .gd a.gd-btn:not(.btn) {
  color: #086e68;
}

/* AEO page bar "Itse 4 osaa": white on #0f8a83 was 4.21:1; #086e68 is 6.1:1. */
body.is-aeo main .aeo-mini .aeo-mini-split > span:first-child {
  background: #086e68;
}

/* Phones: one-line links got a 19–22 px tap area (card titles on 44 pages, the byline on 54, the case
   author). Padding on an inline box grows the tap area without moving the text; on block links the
   negative margin keeps the layout. SEO analysis 26.11.2026. */
@media (max-width: 767px) {
  .wp-byline a,
  .case-hero-facts dd > a,
  .service-offer .service-offer-name a,
  .service-offer .service-offer-custom a {
    padding-block: 0.35rem;
  }

  .wp-card-title > a.wp-card-link {
    display: inline-block;
    padding-block: 0.35rem;
    margin-block: -0.35rem;
  }
}
