/*
 * Booosted FSE: theme styles.
 * Colours, type sizes and spacing are theme.json presets; this file maps them to the short
 * names the components use, then sets the section themes, block styles, header and footer.
 */

/* a metric-matched fallback, so text keeps its size and line breaks while Archivo loads */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 99.14%;
  ascent-override: 88.76%;
  descent-override: 21.18%;
  line-gap-override: 0%;
}

/* ---------- tokens ---------- */
:root {
  --violet: var(--wp--preset--color--violetti);
  --violet-hi: var(--wp--preset--color--violetti-kirkas);
  --violet-lo: var(--wp--preset--color--violetti-tumma);
  --lilac: var(--wp--preset--color--liila);
  --lilac-2: var(--wp--preset--color--liila-2);
  --gray-1: var(--wp--preset--color--harmaa-1);
  --gray-2: var(--wp--preset--color--harmaa-2);
  --black: var(--wp--preset--color--musta);
  --charcoal: var(--wp--preset--color--hiili);
  --gray-ink: var(--wp--preset--color--harmaa-teksti);
  --white: var(--wp--preset--color--valkoinen);
  --rule-brand: rgb(59 59 59 / 0.2);
  --night-card: rgb(22 16 28 / 0.86);
  --night: linear-gradient(155deg, var(--black) 0%, var(--black) 35%, color-mix(in oklab, var(--black) 86%, var(--violet)) 72%, color-mix(in oklab, var(--black) 80%, var(--violet)) 100%);

  --sans: var(--wp--preset--font-family--archivo);
  --mono: var(--wp--preset--font-family--mono);

  --wrap: 1400px;
  --gut: var(--wp--preset--spacing--reuna);
  --gap: var(--wp--preset--spacing--vali);
  --sec: var(--wp--preset--spacing--osio);
  --edge: max(var(--gut), (100vw - var(--wrap)) / 2);
  --nav-h: 64px;
  --nav-top: calc(12px + var(--wp-admin--admin-bar--height, 0px));
  --r-lg: 22px;
  --r-sm: 10px;

  --fs-h1: var(--wp--preset--font-size--otsikko-1);
  --fs-h2: var(--wp--preset--font-size--otsikko-2);
  --fs-h3: var(--wp--preset--font-size--otsikko-3);
  --fs-h4: var(--wp--preset--font-size--otsikko-4);
  --fs-lead: var(--wp--preset--font-size--ingressi);
  --fs-body: var(--wp--preset--font-size--leipa);
  --fs-small: var(--wp--preset--font-size--small);
  --fs-label: var(--wp--preset--font-size--nimio);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-swing: cubic-bezier(0.34, 1.3, 0.64, 1);
  --livery: var(--violet);
  --fs-h5: var(--wp--preset--font-size--otsikko-5);
  --fs-h6: var(--wp--preset--font-size--otsikko-6);
  --ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ico-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- section themes: every component reads these ---------- */
:root, .is-style-osio-vaalea {
  --bg: var(--white); --fg: var(--black); --fg-2: var(--gray-ink); --line: var(--rule-brand);
  --raise: var(--lilac); --input-bg: var(--white); --input-fg: var(--black); --input-line: rgb(59 59 59 / 0.3); --ph: #6f6f6f;
  --accent: var(--violet); --accent-hi: var(--violet-lo); --accent-fg: var(--white); --focus: var(--violet); --err: #b3263e;
}
.is-style-osio-liila, .is-style-section-3 {
  --bg: var(--lilac); --fg: var(--black); --fg-2: var(--gray-ink); --line: var(--rule-brand);
  --raise: var(--white); --input-bg: var(--white); --input-fg: var(--black); --input-line: rgb(59 59 59 / 0.3); --ph: #6f6f6f;
  --accent: var(--violet); --accent-hi: var(--violet-lo); --accent-fg: var(--white); --focus: var(--violet); --err: #b3263e;
}
.is-style-osio-tumma {
  --bg: var(--black); --fg: var(--lilac); --fg-2: #bdbdbd; --line: rgb(255 255 255 / 0.14);
  --raise: #242424; --input-bg: #232323; --input-fg: var(--lilac); --input-line: rgb(255 255 255 / 0.16); --ph: #9a9a9a;
  --accent: var(--violet); --accent-hi: var(--violet-hi); --accent-fg: var(--white); --focus: var(--lilac-2); --err: #f3a3b4;
}
/* older content uses section-4: it takes the violet theme */
.is-style-osio-violetti, .is-style-section-4 {
  --bg: var(--violet); --fg: var(--white); --fg-2: var(--lilac); --line: rgb(255 255 255 / 0.28);
  --raise: #9a2cc0; --input-bg: var(--white); --input-fg: var(--black); --input-line: transparent; --ph: #6f6f6f;
  --accent: var(--white); --accent-hi: var(--lilac); --accent-fg: var(--violet); --focus: var(--white); --err: #ffe0e7;
}
.is-style-osio-vaalea, .is-style-osio-liila, .is-style-osio-tumma, .is-style-osio-violetti, .is-style-section-3, .is-style-section-4 { background-color: var(--bg); color: var(--fg); }
/* full-width sections get the section rhythm unless the block sets its own padding */
:where(.alignfull.is-style-osio-vaalea, .alignfull.is-style-osio-liila, .alignfull.is-style-osio-tumma, .alignfull.is-style-osio-violetti, .alignfull.is-style-section-3, .alignfull.is-style-section-4) { padding-block: var(--sec); }
/* lilac sections: violet-tinted edges, lightening to a soft white light in the middle */
.alignfull.is-style-osio-liila { background:
  radial-gradient(ellipse 40% 28% at 50% 50%, var(--white) 0%, rgb(255 255 255 / 0.55) 45%, rgb(255 255 255 / 0) 100%),
  linear-gradient(180deg, color-mix(in srgb, var(--lilac) 45%, var(--lilac-2)) 0%, var(--lilac) 30%, color-mix(in srgb, var(--lilac) 60%, var(--white)) 50%, var(--lilac) 70%, color-mix(in srgb, var(--lilac) 45%, var(--lilac-2)) 100%); }
/* dark sections lean softly towards violet in the far corner */
/* the HTML version's dark sections are plain black; the soft violet corner belongs to the page heads and the trust sections */
.alignfull.is-style-osio-tumma { background: var(--black); }
.alignfull.is-style-osio-tumma:is(.bst-page-head, .bst-hero, .bst-trust-sec, .bst-sivun-otsikko, .bst-art-head) { background: var(--night); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* the HTML version's reset with zero specificity: every class rule wins it. WordPress's own flow margins are off
   (theme.json settings.spacing.blockGap null), because their :first-child and :last-child rules beat single-class margins. */
:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, hr, pre) { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-top) + var(--nav-h) + 20px); scrollbar-color: var(--violet) var(--lilac); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; caret-color: var(--violet); }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
@media (max-width: 720px) { h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; } h1 { hyphens: auto; } }
h1 { font-stretch: 75%; }
p { text-wrap: pretty; }
a { text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
img { height: auto; }
::selection { background: var(--violet); color: var(--white); }
.is-style-osio-violetti ::selection { background: var(--white); color: var(--violet); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.tnum { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
@media (max-width: 420px) { h1 .nw, h2 .nw { white-space: normal; } }
.bst-ingressi, .is-style-ingressi { font-size: var(--fs-lead); line-height: 1.45; max-width: 52ch; color: var(--fg-2); }
.bst-nimio { font-size: var(--fs-label); font-weight: 560; font-variant-numeric: tabular-nums; }
.bst-main { margin-block: 0; }
.bst-main > * { margin-block: 0; }

/* one column, the same width in every section: 1400px plus the side gutters */
.bst-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.has-global-padding > .bst-wrap { padding-inline: 0; max-width: var(--wrap); }

/* ---------- buttons ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 52px; text-decoration: none; white-space: nowrap; transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease-out); }
.wp-block-button__link:active { transform: translateY(1px); }
/* on narrow phones a long button label wraps instead of pushing the page wider */
@media (max-width: 480px) { .wp-block-button__link { white-space: normal; text-wrap: balance; text-align: center; } .bst-nav .wp-block-button__link { white-space: nowrap; } }
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) { color: currentColor; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid currentColor; }
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover { background-color: var(--fg); border-color: var(--fg); color: var(--bg); }
/* highlight cards: the picture links to the same page as the button, and hovering it lights the button */
.bst-grp-card:has(.bst-b-vis a:hover) .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) { background-color: var(--fg); border-color: var(--fg); color: var(--bg); }
/* Linkki: a text link with an arrow */
.wp-block-button.is-style-linkki > .wp-block-button__link { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; gap: 0.45em; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.wp-block-button.is-style-linkki > .wp-block-button__link:hover { text-decoration-color: currentColor; background: none; }
.wp-block-button.is-style-linkki > .wp-block-button__link::after { content: ""; width: 1.05em; height: 1.05em; flex: none; background: currentColor; -webkit-mask: var(--ico-arrow) center / contain no-repeat; mask: var(--ico-arrow) center / contain no-repeat; transition: transform 0.25s var(--ease-out); }
.wp-block-button.is-style-linkki > .wp-block-button__link:hover::after { transform: translateX(3px); }

/* ---------- block styles ---------- */
/* Laatta: a card on the section's raised surface */
.wp-block-group.is-style-laatta { background: var(--raise); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); }
/* Vaiheet: child groups numbered with large violet discs on one rail */
.wp-block-group.is-style-vaiheet { counter-reset: vaihe; position: relative; }
:where(.wp-block-group.is-style-vaiheet:not(.is-layout-grid)) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--gap); }
.wp-block-group.is-style-vaiheet > * { margin-block: 0; }
.wp-block-group.is-style-vaiheet::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 3px; background: var(--violet); border-radius: 2px; }
.wp-block-group.is-style-vaiheet > .wp-block-group { counter-increment: vaihe; position: relative; }
.wp-block-group.is-style-vaiheet > .wp-block-group::before { content: counter(vaihe); position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.5rem; border-radius: 50%; background: var(--bg); border: 3px solid var(--violet); color: var(--violet); font-weight: 900; font-stretch: 75%; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.is-style-osio-tumma .wp-block-group.is-style-vaiheet > .wp-block-group::before, .is-style-osio-violetti .wp-block-group.is-style-vaiheet > .wp-block-group::before { color: var(--fg); }
.wp-block-group.is-style-vaiheet > .wp-block-group p { color: var(--fg-2); }
@media (max-width: 760px) {
  .wp-block-group.is-style-vaiheet::before { left: 27px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .wp-block-group.is-style-vaiheet > .wp-block-group { padding-left: 82px; min-height: 58px; }
  .wp-block-group.is-style-vaiheet > .wp-block-group::before { position: absolute; left: 0; top: 0; margin: 0; }
}
/* Rastit: a violet tick per item, on hairlines */
ul.wp-block-list.is-style-rastit { list-style: none; padding: 0; border-top: 1px solid var(--line); }
ul.wp-block-list.is-style-rastit > li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); }
ul.wp-block-list.is-style-rastit > li::before { content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; background: var(--accent); -webkit-mask: var(--ico-check) center / contain no-repeat; mask: var(--ico-check) center / contain no-repeat; }
/* Sirut: a row of pills */
ul.wp-block-list.is-style-sirut { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
ul.wp-block-list.is-style-sirut > li { margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--raise); font-size: var(--fs-small); line-height: 1.3; }
/* Esine: a picture of the product, rounded, with a shadow that falls down; it is not a control */
.wp-block-image.is-style-esine img { border-radius: var(--r-lg); box-shadow: 0 34px 60px -34px rgb(25 25 25 / 0.45), 0 2px 6px rgb(25 25 25 / 0.06); -webkit-user-select: none; user-select: none; }
.is-style-osio-tumma .wp-block-image.is-style-esine img, .is-style-osio-violetti .wp-block-image.is-style-esine img { box-shadow: 0 40px 70px -34px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.08); }
/* Karuselli: one scrolling row, snapping to each picture */
.wp-block-gallery.is-style-karuselli { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 12px; }
.wp-block-gallery.is-style-karuselli.has-nested-images figure.wp-block-image:not(#individual-image) { flex: 0 0 min(78%, 22rem); width: auto; scroll-snap-align: center; }
.wp-block-gallery.is-style-karuselli figure.wp-block-image img { border-radius: var(--r-lg); }

/* ---------- icons: the theme's line icons ---------- */
svg.bst-ico path { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header: the dark bar floats over every page ---------- */
.bst-nav { position: fixed; z-index: 50; top: var(--nav-top); left: 0; right: 0; padding-inline: clamp(8px, 2vw, 24px); pointer-events: none; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > header.wp-block-template-part { margin: 0; }
.bst-nav-bar { pointer-events: auto; max-width: calc(var(--wrap) + 48px); margin-inline: auto; height: var(--nav-h); gap: clamp(12px, 1.6vw, 28px); padding: 0 10px 0 20px; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 16px; box-shadow: 0 10px 22px -14px rgb(25 25 25 / 0.55); background: var(--black); }
.bst-nav-bar > * { margin: 0; }
.bst-nav .bst-logo { flex: none; margin: 0; padding: 10px 0 6px; }
.bst-nav .bst-logo img { width: 118px; height: auto; }
.bst-nav-end { gap: 6px; margin-left: auto; }
.bst-nav-end > * { margin: 0; }
.bst-kirjaudu { font-size: var(--fs-small); font-weight: 560; }
.bst-kirjaudu a { display: inline-block; padding: 10px 12px 10px 5px; text-decoration: none; white-space: nowrap; }
.bst-kirjaudu a:hover { color: var(--lilac-2); }
.bst-nav-demo .wp-block-button__link { min-height: 44px; padding: 0 1.35em; font-size: 1rem; }

/* menu */
.bst-valikko { font-size: 1.05rem; font-weight: 560; }
.bst-valikko .wp-block-navigation-item__content { padding: 8px 2px; text-decoration: none; border-bottom: 1.5px solid transparent; }
.bst-valikko .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover { border-bottom-color: var(--lilac-2); }
.bst-valikko .wp-block-navigation__submenu-icon { width: 26px; height: 26px; margin-left: 2px; padding: 0; border-radius: 8px; display: grid; place-items: center; }
.bst-valikko .wp-block-navigation__submenu-icon svg { width: 12px; height: 12px; stroke: currentColor; }
.bst-valikko .wp-block-navigation__submenu-icon:hover { color: var(--lilac-2); }
.bst-valikko .wp-block-navigation__responsive-container-open { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.14); background: #232323; color: var(--lilac); }

@media (min-width: 1121px) {
  .bst-nav-bar > .bst-valikko { margin-inline: auto; }
  .bst-nav-end { gap: 12px; margin-left: 0; }
  .bst-valikko .wp-block-navigation__container { gap: clamp(16px, 1.75vw, 30px); }
  /* the menu shows in the bar from 1121px; below that it opens from the menu button */
  .bst-valikko .wp-block-navigation__responsive-container-open.always-shown { display: none; }
  .bst-valikko .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) { display: block; position: relative; width: 100%; z-index: auto; background-color: inherit; }
  .bst-valikko .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) .wp-block-navigation__responsive-container-close { display: none; }

  /* dropdown panels */
  body .bst-valikko .has-child > .wp-block-navigation__submenu-container { top: calc(100% + 16px); left: -22px; padding: 20px 26px 22px; gap: 16px; background: var(--bg); color: var(--fg); border: 1px solid rgb(255 255 255 / 0.12); border-radius: 16px; box-shadow: 0 28px 44px -26px rgb(0 0 0 / 0.75); }
  body .bst-valikko .has-child > .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
  body .bst-valikko .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 7px 0; font-size: var(--fs-small); white-space: nowrap; border: 0; }
  body .bst-valikko .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--lilac-2); }
  /* Palvelut: three groups stacked, each group's tools in three columns */
  body .bst-valikko .bst-mega > .wp-block-navigation__submenu-container { min-width: 0; }
  body .bst-valikko .bst-mega .bst-ryhma > .wp-block-navigation__submenu-container { position: static; visibility: inherit; opacity: 1; width: auto; height: auto; overflow: visible; display: grid; grid-template-columns: repeat(3, 13.5rem); column-gap: 32px; min-width: 0; margin-top: 8px; padding: 0; border: 0; background: none; box-shadow: none; }
  body .bst-valikko .bst-mega .bst-ryhma > .wp-block-navigation__submenu-container::before { display: none; }
  body .bst-valikko .bst-ryhma { display: block; }
  body .bst-valikko .bst-ryhma > .wp-block-navigation__submenu-icon { display: none; }
  body .bst-valikko .bst-ryhma + .bst-ryhma { padding-top: 14px; border-top: 1px solid var(--line); }
  body .bst-valikko .bst-ryhma > .wp-block-navigation-item__content, body .bst-valikko .bst-kaikki > .wp-block-navigation-item__content { display: inline-flex; align-items: center; gap: 6px; font-size: 1.125rem; font-weight: 650; color: var(--fg); }
  body .bst-valikko .bst-kaikki > .wp-block-navigation-item__content { font-size: var(--fs-small); color: var(--lilac-2); }
  body .bst-valikko .bst-ryhma > .wp-block-navigation-item__content::after, body .bst-valikko .bst-kaikki > .wp-block-navigation-item__content::after { content: ""; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--ico-arrow) center / contain no-repeat; mask: var(--ico-arrow) center / contain no-repeat; }
}

/* the language link of the mobile menu is only for phones and tablets */
.bst-valikko .bst-kielilinkki { display: none; }

/* phones and tablets: the menu opens as a dark panel under the bar, rows on hairlines, left-aligned */
@media (max-width: 1120px) {
  .bst-nav-bar > .bst-valikko { order: 3; flex: none; margin-left: 6px !important; margin-right: 0 !important; }
  /* Kirjaudu and Varaa demo sit next to the menu button at the right end of the bar, not in the middle */
  .bst-nav-bar > .bst-nav-end { margin-left: auto !important; }
  .bst-nav-end .bst-kieli { display: none; }
  /* the other language at the end of the open menu panel (inc/kieli.php) */
  body .bst-valikko .is-menu-open .bst-kielilinkki { display: flex; margin-top: 8px; }
  body .bst-valikko .wp-block-navigation__responsive-container.is-menu-open { position: fixed; top: calc(var(--nav-top) + var(--nav-h) + 8px); left: clamp(8px, 2vw, 24px); right: clamp(8px, 2vw, 24px); bottom: auto; max-width: calc(var(--wrap) + 48px); max-height: calc(100dvh - var(--nav-h) - 28px - var(--wp-admin--admin-bar--height, 0px)); margin-inline: auto; padding: 12px 20px 20px !important; overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 16px; background: var(--black) !important; color: var(--lilac) !important; animation: none; }
  body .bst-valikko .is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 0; }
  body .bst-valikko .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 0 !important; align-items: stretch !important; }
  body .bst-valikko .is-menu-open .wp-block-navigation__responsive-container-close { top: 12px; right: 12px; color: var(--lilac); }
  /* the menu button in the bar closes the menu, so the dialog's own close button stays for keyboard and screen reader use only */
  body .bst-valikko .is-menu-open .wp-block-navigation__responsive-container-close:not(:focus-visible) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body .bst-valikko .is-menu-open :is(.wp-block-navigation__container, .wp-block-navigation__submenu-container, .wp-block-navigation-item) { align-items: flex-start !important; justify-content: flex-start !important; text-align: left; }
  body .bst-valikko .is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; }
  body .bst-valikko .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { width: 100%; }
  body .bst-valikko .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item { border-top: 1px solid var(--line); }
  body .bst-valikko .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { padding: 14px 0; font-size: 1.125rem; font-weight: 560; }
  body .bst-valikko .is-menu-open .wp-block-navigation__submenu-container { gap: 0; padding: 0 0 12px 14px !important; }
  body .bst-valikko .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 7px 0; font-size: 1rem; font-weight: 400; color: var(--fg-2); }
  body .bst-valikko .is-menu-open .bst-ryhma > .wp-block-navigation-item__content { margin-top: 10px; padding-bottom: 2px; font-size: var(--fs-label); font-weight: 560; color: var(--fg-2); }
  body .bst-valikko .is-menu-open .bst-ryhma > .wp-block-navigation__submenu-container { padding-left: 0 !important; padding-bottom: 0 !important; }
  body .bst-valikko .is-menu-open .bst-ryhma .wp-block-navigation-item__content { color: var(--fg); }
  body .bst-valikko .is-menu-open .bst-kaikki > .wp-block-navigation-item__content { margin-top: 10px; color: var(--lilac-2); font-weight: 560; }
}
@media (max-width: 620px) {
  .bst-nav-bar { padding-left: 14px; padding-right: 8px; gap: 8px; }
  .bst-nav .bst-logo img { width: 96px; }
  .bst-nav-end { gap: 8px; }
  .bst-kirjaudu { font-size: 0.875rem; }
  .bst-kirjaudu a { padding: 8px 6px; }
  .bst-nav-demo .wp-block-button__link { min-height: 38px; padding: 0 0.85em; font-size: 0.875rem; }
  .bst-valikko .wp-block-navigation__responsive-container-open { width: 40px; height: 40px; }
}
@media (max-width: 380px) { .bst-nav-bar { padding-left: 12px; gap: 6px; } .bst-nav .bst-logo img { width: 84px; } .bst-nav-demo .wp-block-button__link { padding: 0 0.7em; } .bst-kirjaudu a { padding: 8px 3px; } }

/* language: only the current one shows; the others open from it */
.bst-kieli { font-size: 0.875rem; font-weight: 650; }
.bst-kieli a { text-decoration: none; }
/* the open menu: the HTML version's dark panel (.lang-menu), code and name on each row, the current language left out */
.bst-kieli .pll-switcher-inner > a, .bst-kieli .pll-switcher-inner .pll-submenu-toggle { color: var(--wp--preset--color--liila) !important; }
.bst-kieli { --pll-dropdown-text-color: var(--wp--preset--color--valkoinen); --pll-dropdown-background-color: var(--wp--preset--color--musta); }
.bst-kieli .pll-switcher-inner ul { left: auto; right: -8px; top: calc(100% + 22px); min-width: 9.5rem !important; padding: 8px; background: var(--wp--preset--color--musta); border: 1px solid rgb(255 255 255 / 0.12); border-radius: 12px; box-shadow: 0 24px 40px -24px rgb(0 0 0 / 0.75); }
.bst-kieli .pll-switcher-inner ul::before { content: ""; position: absolute; left: -8px; right: -8px; top: -28px; height: 28px; }   /* bridges the gap to the switcher, so the menu stays open on the way down */
.bst-kieli .pll-switcher-inner li.current-lang { display: none; }
.bst-kieli .pll-switcher-inner li a { display: flex; justify-content: flex-start; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--wp--preset--color--valkoinen); font-size: var(--wp--preset--font-size--small); font-weight: 400; }
.bst-kieli .pll-switcher-inner li a:hover, .bst-kieli .pll-switcher-inner li a:focus-visible { background: rgb(255 255 255 / 0.06); color: var(--wp--preset--color--liila-2); }
.bst-kieli .pll-switcher-inner .bst-kieli-nimi { color: inherit; }
.bst-kieli .pll-switcher-inner li .pll-switcher-label { min-width: 1.6em; font-size: var(--wp--preset--font-size--nimio); font-weight: 650; color: rgb(255 255 255 / 0.6); }

/* ---------- page head ---------- */
.bst-sivun-otsikko { position: relative; overflow: clip; padding-top: calc(var(--nav-top) + var(--nav-h) + clamp(3rem, 6vw, 5.5rem)); padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.bst-sivun-otsikko h1 { max-width: 22ch; }
.bst-artikkeli-otsikko h1 { max-width: 22ch; }
.bst-sivun-otsikko .bst-wrap > * { margin-block: 0; }
.bst-sivun-otsikko .bst-wrap > * + * { margin-top: 1.25rem; }
.bst-murupolku, .yoast-breadcrumbs { font-size: var(--fs-small); font-weight: 650; color: var(--fg-2); }
.bst-murupolku a, .yoast-breadcrumbs a { color: var(--lilac-2); text-decoration: none; }
.bst-murupolku a:hover, .yoast-breadcrumbs a:hover { text-decoration: underline; }
.bst-murupolku .breadcrumb_last, .yoast-breadcrumbs .breadcrumb_last { color: var(--fg); }
.bst-artikkeli-tiedot { gap: 6px 18px; font-size: var(--fs-small); color: var(--fg-2); }
.bst-artikkeli-tiedot a { color: inherit; }
.bst-sivu > .wp-block-post-content > :first-child:not(.alignfull) { margin-top: var(--sec); }
.wp-block-post-content:not(.bst-art-body) > :last-child:not(.alignfull) { margin-bottom: var(--sec); }
.bst-kansi { margin-top: clamp(2rem, 4vw, 3rem); }
.bst-kansi img { border-radius: var(--r-lg); max-height: 640px; object-fit: cover; }
.bst-kansi + .wp-block-post-content { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- article lists ---------- */
.bst-artikkelit { padding-block: var(--sec); }
.is-style-osio-liila .bst-artikkelit { padding-block: 0; margin-top: clamp(2rem, 4vw, 3rem); }
.bst-artikkelit .wp-block-post-template { gap: clamp(2rem, 3vw, 2.75rem) var(--gap); }
.bst-artikkelit .wp-block-post-featured-image img { border-radius: var(--r-lg); }
.bst-artikkelit .wp-block-post-title { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: 0; }
.bst-artikkelit .wp-block-post-title a { text-decoration: none; }
.bst-artikkelit .wp-block-post-title a:hover { text-decoration: underline; }
.bst-pvm { margin-top: 1rem; font-size: var(--fs-label); font-weight: 560; color: var(--fg-2); }
@media (max-width: 900px) { .bst-artikkelit .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bst-artikkelit .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }

/* ---------- legal documents: one reading column ---------- */
.bst-teksti-sivu { padding-block: clamp(2.5rem, 5vw, 4rem) var(--sec); }
.bst-teksti > * { max-width: 64ch; }
.bst-teksti h2 { margin-top: clamp(2.5rem, 4vw, 3.25rem); }
.bst-teksti h3 { margin-top: 2rem; }
.bst-teksti p, .bst-teksti ul { color: var(--charcoal); line-height: 1.65; overflow-wrap: anywhere; }
.bst-teksti strong { font-weight: 650; color: var(--black); }
.bst-teksti ul { padding-left: 1.25rem; }
.bst-teksti li + li { margin-top: 0.4rem; }
.bst-teksti li::marker { color: var(--violet); }
.bst-teksti table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.bst-teksti th, .bst-teksti td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bst-teksti th { font-size: var(--fs-label); font-weight: 650; color: var(--fg-2); }

/* ---------- search ---------- */
.bst-haku .wp-block-search__inside-wrapper { max-width: 36rem; gap: 8px; }
.bst-haku .wp-block-search__input { min-height: 52px; padding: 0 18px; border: 1px solid var(--input-line); border-radius: 999px; background: var(--input-bg); color: var(--input-fg); }

/* ---------- footer ---------- */
.bst-foot { padding-top: clamp(3.5rem, 7vw, 6rem); }
.bst-foot.alignfull, .bst-foot { background: var(--black); }
.bst-foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.bst-foot-top > * { margin: 0; }
.bst-foot-brand { grid-column: 1 / span 4; }
.bst-foot-brand .bst-logo img { width: 210px; height: auto; }
.bst-foot-brand p { margin-top: 1.25rem; color: var(--fg-2); font-size: var(--fs-small); max-width: 36ch; }
.bst-f-site { grid-column: 5 / span 2; }
.bst-f-serv { grid-column: 7 / span 3; }
.bst-f-contact { grid-column: 10 / span 3; }
ul.bst-foot-col { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; align-content: start; }
.bst-foot-col a { text-decoration: none; font-size: var(--fs-small); }
.bst-foot-col a:hover { color: var(--lilac-2); }
.bst-foot-bar { gap: 10px 24px; margin: 0; padding-block: 18px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: var(--fs-label); }
.bst-foot-bar p { margin: 0; }
.bst-foot-bar a { color: var(--fg-2); text-decoration: none; }
.bst-foot-bar a:hover { color: var(--fg); }
.bst-foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 960px) { .bst-foot-brand { grid-column: 1 / -1; } .bst-f-site, .bst-f-serv, .bst-f-contact { grid-column: span 4; } }
@media (max-width: 620px) { .bst-f-site, .bst-f-serv { grid-column: span 6; } .bst-f-contact { grid-column: 1 / -1; } }

/* ---------- cookie notice (Kansleri) and the chat bubble ---------- */
#kncc-banner .kncc-heading { margin: 0 0 10px; font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--black); }
#kncc-banner .kncc-desc { margin: 0 0 20px; font-family: var(--sans); font-size: 17px; line-height: 1.45; color: var(--charcoal); }
#kncc-banner .kncc-policy-link { font-size: inherit; color: inherit; }
#kncc-banner .kncc-actions, #kncc-banner .kncc-details-actions { gap: 10px; }
#kncc-banner .kncc-btn { padding: 13px 22px; border-radius: 999px; font-family: var(--sans); font-size: 16px; font-weight: 650; line-height: 1.2; }
#kncc-banner .kncc-btn--secondary { padding: 12px 21px; border: 1px solid var(--charcoal); background: transparent; color: var(--charcoal); }
#kncc-banner .kncc-btn--secondary:hover { background: var(--lilac); }
#kncc-banner .kncc-btn--link { padding: 13px 8px; color: var(--charcoal); text-decoration: underline; }
#kncc-banner .kncc-category__name { font-family: var(--sans); font-size: 16px; font-weight: 650; }
#kncc-banner .kncc-category__desc, #kncc-banner .kncc-category__empty-note { font-family: var(--sans); font-size: 15px; line-height: 1.4; }
body .kncc-iframe-placeholder .kncc-iframe-placeholder__overlay { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; }
body .kncc-iframe-placeholder p { max-width: 28ch; margin: 0; font-family: var(--sans); font-size: 19px; line-height: 1.4; }
body .kncc-iframe-placeholder--has-thumb p { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 0.6); }
body .kncc-iframe-placeholder .kncc-iframe-accept { padding: 16px 32px; border: 0; border-radius: 999px; background: var(--violet); color: var(--white); font-family: var(--sans); font-size: 17px; font-weight: 650; line-height: 1.2; white-space: normal; }
body .kncc-iframe-placeholder .kncc-iframe-accept:hover { background: var(--violet-lo); }
/* the chat bubble stays out of the way while the cookie notice is open */
body:has(#kncc-banner:not([style*="none"])) .previewPopover_booosted, body:has(#kncc-banner:not([style*="none"])) .previewContent_booosted { display: none !important; }
@media (max-width: 600px) {
  #kncc-banner.kncc-banner--bar .kncc-inner { padding: 14px 16px; }
  #kncc-banner.kncc-banner--bar .kncc-heading { margin: 0 0 4px; font-size: 17px; }
  #kncc-banner.kncc-banner--bar .kncc-desc { margin: 0 0 10px; font-size: 14px; line-height: 1.35; }
  #kncc-banner.kncc-banner--bar .kncc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #kncc-banner.kncc-banner--bar .kncc-btn { padding: 11px 10px; font-size: 15px; }
  #kncc-banner.kncc-banner--bar .kncc-btn--secondary { padding: 10px 9px; }
  #kncc-banner.kncc-banner--bar .kncc-btn--link { grid-column: 1 / -1; padding: 6px 8px; }
  body .kncc-iframe-placeholder p { font-size: 17px; }
  body .kncc-iframe-placeholder .kncc-iframe-accept { padding: 13px 20px; font-size: 16px; }
}

/* ---------- editor: the fixed header would cover the canvas ---------- */
.editor-styles-wrapper .bst-nav { position: relative; top: 0; }
.editor-styles-wrapper .bst-sivun-otsikko { padding-top: clamp(3rem, 6vw, 5.5rem); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- video preview (YouTube loads on press, with consent) ---------- */
.bst-video-kehys { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-lg); background: var(--black); }
.bst-video-kehys iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bst-video-toista { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.bst-video-toista img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bst-video-ikoni { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--violet); box-shadow: 0 14px 30px -10px rgb(0 0 0 / 0.6); transition: transform 0.25s var(--ease-out), background-color 0.18s; }
.bst-video-ikoni::after { content: ""; position: absolute; left: 34px; top: 27px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--white); }
.bst-video-toista:hover .bst-video-ikoni { transform: scale(1.06); background: var(--violet-hi); }
.bst-video-toista:focus-visible { outline-offset: -4px; }
.bst-video-huom { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 8px 14px; border-radius: 999px; background: rgb(25 25 25 / 0.85); color: var(--white); font-size: var(--fs-small); text-align: center; }
/* the video title sits on the preview picture as in the HTML version, and goes away once the video plays */
.wp-block-embed:has(.bst-video-kehys) { position: relative; }
.wp-block-embed:has(.bst-video-kehys) figcaption { position: absolute; left: 20px; top: 18px; z-index: 1; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgb(25 25 25 / 0.78); color: var(--white); font-size: 1rem; font-weight: 650; line-height: 1.3; pointer-events: none; }
.wp-block-embed:has(.bst-video-kehys iframe) figcaption { display: none; }

/* ---------- pages without a page head: content that does not start with a dark hero starts below the bar ---------- */
.page-template-page-no-title .wp-block-post-content > :first-child:not(.is-style-osio-tumma):not(.bst-hero) { margin-top: calc(var(--nav-top) + var(--nav-h) + clamp(1.5rem, 3vw, 2.5rem)); }
.post-password-form { max-width: 36rem; margin: var(--sec) auto; padding-inline: var(--gut); }
.has-global-padding > .post-password-form { padding-inline: 0; }
.post-password-form p:has(label) { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 1.25rem; }
.post-password-form label { display: grid; gap: 6px; flex: 1 1 14rem; font-size: var(--fs-small); font-weight: 650; }
.post-password-form input[type=password] { width: 100%; min-height: 52px; padding: 0 18px; border: 1px solid var(--input-line); border-radius: 999px; background: var(--input-bg); color: var(--input-fg); font: inherit; font-weight: 400; }
.post-password-form input[type=password]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- team (booosted/team-showcase): person cards with a round photo, name, title and contacts ---------- */
body .team-showcase { --card-radius: 18px; }
body .team-showcase__header { max-width: none; margin-bottom: clamp(2rem, 4vw, 3rem); }
body .team-showcase__heading { margin: 0; font-size: var(--fs-h2); }
body .team-showcase__description { margin-top: 1rem; max-width: 52ch; font-size: var(--fs-lead); color: var(--fg-2); opacity: 1; }
body .team-showcase__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--gap); }
body .team-showcase__member { display: grid; grid-template-columns: 115px minmax(0, 1fr); grid-template-areas: "ph info" "ph links"; column-gap: 18px; align-content: center; align-items: center; padding: 14px 16px 14px 14px; border-radius: 18px; background: var(--white); color: var(--black); box-shadow: 0 24px 40px -34px rgb(25 25 25 / 0.35); animation: none; transition: none; }
body .team-showcase__member:hover { transform: none; }
body .team-showcase__image-wrapper { display: contents; }
body .team-showcase__image, body .team-showcase__member:hover .team-showcase__image { grid-area: ph; align-self: center; width: 115px; height: 115px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 0; background: radial-gradient(circle at 50% 30%, var(--lilac) 0%, var(--lilac-2) 100%); filter: none; transform: none; }
body .team-showcase__gradient-overlay { display: none; }
body .team-showcase__info { grid-area: info; align-self: end; min-width: 0; padding: 0; line-height: 1.35; }
body .team-showcase__name { margin: 0; font-size: var(--fs-h4); line-height: 1.3; letter-spacing: 0; }
body .team-showcase__title { margin: 2px 0 0; font-size: 0.875rem; color: var(--gray-ink); }
body .team-showcase__contact-reveal, body .team-showcase__member:hover .team-showcase__contact-reveal { grid-area: links; align-self: start; position: static; display: grid; gap: 2px; margin-top: 0.5rem; padding: 0; opacity: 1; transform: none; background: none; }
body .team-showcase__contact-item, body .team-showcase__member:hover .team-showcase__contact-item { display: inline-flex; align-items: center; gap: 7px; width: auto; opacity: 1; padding: 0; border-radius: 0; background: none; color: var(--black); font-size: 0.875rem; line-height: 1.3; text-decoration: none; backdrop-filter: none; border: 0; transform: none; overflow-wrap: anywhere; }
body .team-showcase__contact-item:hover { background: none; color: var(--violet); text-decoration: underline; transform: none; }
body .team-showcase__contact-icon { display: inline-grid; width: 15px; height: 15px; flex: none; padding: 0; background: none; color: var(--violet); }
body .team-showcase__contact-icon svg { width: 15px; height: 15px; }

/* ---------- product pictures rendered from the HTML version: the image carries the look, the container keeps only its place ---------- */
.wp-block-image.bst-kuva { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; overflow: visible !important; }
.wp-block-image.bst-kuva img { display: block; max-width: 100%; height: auto; }
.wp-block-image.bst-kuva::before, .wp-block-image.bst-kuva::after { content: none !important; }

/* ---------- content made from the HTML version: hidden tab panels stay editable in the editor ---------- */
.bst-piilossa { display: none; }
.editor-styles-wrapper .bst-piilossa { display: block; outline: 1px dashed color-mix(in srgb, currentColor 30%, transparent); outline-offset: 4px; }
/* a picture with switchable layers (homepage tool tabs): the layers sit on top of each other, the chosen one shows */
.bst-kuva-pino { display: grid !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; overflow: visible !important; }
.bst-kuva-pino > .bst-kuva-kerros { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity 0.35s var(--ease-out); }
.bst-kuva-pino > .bst-kuva-kerros.is-on { opacity: 1; }
.bst-kuva-pino > .bst-kuva-kerros { min-width: 0; }
.bst-kuva-pino > .bst-kuva-kerros img { display: block; width: 100%; height: auto; }

/* the article CTA after the content (articles without their own CTA) */
.bst-artikkeli-cta-loppu { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- article page: the table of contents block and the article list in the HTML version's look ---------- */
.bst-art-toc .bst-sisallys-otsikko { margin: 0 0 0.75rem; font-size: inherit; font-weight: 650; }
.bst-art-toc.bst-sisallys ol { gap: 0; border-left: 0; }
.bst-art-toc.bst-sisallys li { padding-left: 0; }
.bst-art-toc :is(a, .bst-el-a).is-current { color: var(--fg); font-weight: 650; box-shadow: inset 2px 0 0 var(--violet); }
.bst-art-meta > * { margin: 0; }
.bst-art-meta a { color: var(--lilac-2); text-decoration: none; }
/* article lists (Ajankohtaista, Lisää artikkeleita): the rows of the HTML version's news list built from Query Loop blocks */
.bst-artikkelilista { margin-top: clamp(2rem, 4vw, 3rem); }
.bst-artikkelilista.bst-nostot + .bst-artikkelilista { margin-top: 0; }
.bst-artikkelilista.bst-nostot + .bst-artikkelilista .bst-news { border-top: 0; }
.bst-news > li { margin: 0; }
.bst-post .wp-block-post-title { font-size: var(--fs-h3); line-height: 1.15; }
.bst-post-meta .wp-block-post-date { color: var(--fg-2); }
.bst-post-meta .wp-block-post-terms, .bst-post-meta .wp-block-post-terms a { color: var(--violet); text-decoration: none; }
.bst-post-meta .wp-block-post-terms__separator { color: var(--violet); }
.bst-post .bst-post-go { margin: 0; }
.bst-post .wp-block-post-featured-image { margin: 0; }
@media (min-width: 901px) {
  .bst-news--nostot > li:nth-child(2) > .bst-post.is-lead .bst-post-cover { grid-column: 7 / span 6; }
  .bst-news--nostot > li:nth-child(2) > .bst-post.is-lead :is(.bst-post-meta, .bst-post-title, .bst-post-ex, .bst-post-go) { grid-column: 1 / span 5; }
}
.bst-post .wp-block-post-excerpt__excerpt { margin: 0; }
.bst-post .wp-block-post-excerpt__more-text { display: none; }
/* category links as pills above the article list */
.bst-kategoriat { display: flex; flex-wrap: wrap; gap: 4px; width: max-content; max-width: 100%; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); padding: 5px; list-style: none; border-radius: 999px; background: var(--raise); }
.bst-kategoriat li { margin: 0; }
.bst-kategoriat a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1em; border-radius: 999px; font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
.bst-kategoriat a:hover { background: color-mix(in srgb, var(--violet) 12%, transparent); }
.bst-kategoriat .current-cat a, .bst-kategoriat a[aria-current] { background: var(--violet); color: var(--white); }
.bst-kategoriat a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bst-sivutus { margin-top: clamp(2rem, 4vw, 3rem); gap: 8px; font-weight: 600; }
.bst-sivutus a, .bst-sivutus .current { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; text-decoration: none; }
.bst-sivutus .current { background: var(--violet); color: var(--white); }

/* ---------- spacing: the block gap is 0 (the HTML version sets every space itself); text content gets its rhythm here ---------- */
.wp-block-buttons.is-layout-flex { gap: 14px 24px; }
.is-layout-grid { gap: var(--gap); }
.bst-teksti > * + *, .bst-sivu .wp-block-post-content > * + *, .single-test_page .wp-block-post-content > * + * { margin-top: 1.1em; }
.bst-teksti > :is(h2, h3) + *, .bst-sivu .wp-block-post-content > :is(h2, h3) + * { margin-top: 0.6em; }
.wp-block-details > summary + * { margin-top: 0; }
.wp-block-details > * + * { margin-top: 0.75rem; }

/* ---------- icons inside text: <span class="bst-ikoni bst-ikoni--arrow">, drawn with a mask in the text colour ---------- */
.bst-ikoni { display: inline-block; width: 1em; height: 1em; flex: none; overflow: hidden; color: inherit; vertical-align: -0.125em; background: currentColor; -webkit-mask: var(--bst-ikoni) center / contain no-repeat; mask: var(--bst-ikoni) center / contain no-repeat; font-size: inherit; line-height: 1; }
.bst-ikoni--app-board { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 4h17v16h-17z'/%3E%3Cpath d='M3.5 9h17M9 9v11'/%3E%3Cpath d='M12 13h5.5M12 16.5h3.5'/%3E%3C/svg%3E"); }
.bst-ikoni--app-chat { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5A2.5 2.5 0 016.5 4h11A2.5 2.5 0 0120 6.5v8a2.5 2.5 0 01-2.5 2.5H10l-4.5 3.5V17A2.5 2.5 0 014 14.5z'/%3E%3Cpath d='M8.5 10.5h.01M12 10.5h.01M15.5 10.5h.01'/%3E%3C/svg%3E"); }
.bst-ikoni--app-form { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16M4 9h10'/%3E%3Cpath d='M4 12.5h16v3H4zM4 18h7'/%3E%3C/svg%3E"); }
.bst-ikoni--app-inpage { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M7.5 8h9M7.5 11h6'/%3E%3Cpath d='M7 14.5h10v3H7z'/%3E%3C/svg%3E"); }
.bst-ikoni--app-path { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 4h7v5.5h-7zM13.5 4h7v5.5h-7z'/%3E%3Cpath d='M7 9.5V14a2.5 2.5 0 002.5 2.5h4'/%3E%3Cpath d='M13.5 13.5h7v6h-7z'/%3E%3C/svg%3E"); }
.bst-ikoni--app-popup { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18v14H3z'/%3E%3Cpath d='M7.5 8.5h9v7h-9z'/%3E%3Cpath d='M14.5 10l1 1'/%3E%3C/svg%3E"); }
.bst-ikoni--app-pro { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5h7v6h-7zM13.5 5h7v6h-7zM3.5 13h7v6h-7zM13.5 13h7v6h-7z'/%3E%3C/svg%3E"); }
.bst-ikoni--app-sticky { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 4h13v16h-13z'/%3E%3Cpath d='M16.5 8h4v8h-4'/%3E%3Cpath d='M18.5 10.5v3'/%3E%3C/svg%3E"); }
.bst-ikoni--arrow { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.bst-ikoni--bag { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6z'/%3E%3Cpath d='M9 8V6a3 3 0 016 0v2'/%3E%3C/svg%3E"); }
.bst-ikoni--cal { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5h16v15H4z'/%3E%3Cpath d='M4 10h16M8.5 3v5M15.5 3v5'/%3E%3C/svg%3E"); }
.bst-ikoni--chat { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5A2.5 2.5 0 016.5 4h11A2.5 2.5 0 0120 6.5v8a2.5 2.5 0 01-2.5 2.5H10l-4.5 3.5V17A2.5 2.5 0 014 14.5z'/%3E%3C/svg%3E"); }
.bst-ikoni--check { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.bst-ikoni--dash { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E"); }
.bst-ikoni--doc { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7z'/%3E%3Cpath d='M14 3v4h4M10 12h5M10 16h5'/%3E%3C/svg%3E"); }
.bst-ikoni--globe { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 100 18 9 9 0 000-18z'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3c2.4 2.6 3.6 5.6 3.6 9s-1.2 6.4-3.6 9c-2.4-2.6-3.6-5.6-3.6-9S9.6 5.6 12 3z'/%3E%3C/svg%3E"); }
.bst-ikoni--left { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.bst-ikoni--mail { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.5h17v13h-17z'/%3E%3Cpath d='M3.5 6l8.5 7 8.5-7'/%3E%3C/svg%3E"); }
.bst-ikoni--menu { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16M4 16h16'/%3E%3C/svg%3E"); }
.bst-ikoni--phone { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h3.2l1.6 4.4-2.2 1.4a11.5 11.5 0 006.1 6.1l1.4-2.2 4.4 1.6V18a2.5 2.5 0 01-2.5 2.5A15.5 15.5 0 013.5 6 2.5 2.5 0 016 3.5z'/%3E%3C/svg%3E"); }
.bst-ikoni--pin { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.8-6.5-11a6.5 6.5 0 0113 0c0 5.2-6.5 11-6.5 11z'/%3E%3Cpath d='M12 12.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z'/%3E%3C/svg%3E"); }
.bst-ikoni--play { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E"); }
.bst-ikoni--plus { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.bst-ikoni--right { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.bst-ikoni--send { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l16-8-6 16-2.5-6.5z'/%3E%3Cpath d='M11.5 13.5L20 4'/%3E%3C/svg%3E"); }
.bst-ikoni--spin { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 109 9'/%3E%3C/svg%3E"); }
.bst-ikoni--svc-custom { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3Cpath d='M9 3.5v5M15 9.5v5M7 15.5v5'/%3E%3C/svg%3E"); }
.bst-ikoni--svc-link { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zM18 8.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zM12 20.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z'/%3E%3Cpath d='M8.5 6h7M7.2 8.2l3.6 7.6M16.8 8.2l-3.6 7.6'/%3E%3C/svg%3E"); }
.bst-ikoni--svc-update { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 9A8 8 0 006.2 6.3L4 8.5'/%3E%3Cpath d='M4 4.5v4h4'/%3E%3Cpath d='M4.5 15a8 8 0 0013.3 2.7l2.2-2.2'/%3E%3Cpath d='M20 19.5v-4h-4'/%3E%3C/svg%3E"); }
.bst-ikoni--svc-web { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 4.5h17v15h-17z'/%3E%3Cpath d='M3.5 8.5h17'/%3E%3Cpath d='M7 12h6M7 15.5h4'/%3E%3Cpath d='M15.5 12h2v3.5h-2z'/%3E%3C/svg%3E"); }
.bst-ikoni--thumb-down { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath transform='rotate(180 12 12)' d='M7.5 11v9h-3v-9z'/%3E%3Cpath transform='rotate(180 12 12)' d='M7.5 11l3.6-6.6c1.5 0 2.6 1.2 2.3 2.7L12.8 10h5.4a2 2 0 012 2.3l-1.1 5.9a2.2 2.2 0 01-2.2 1.8H7.5'/%3E%3C/svg%3E"); }
.bst-ikoni--thumb-up { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 11v9h-3v-9z'/%3E%3Cpath d='M7.5 11l3.6-6.6c1.5 0 2.6 1.2 2.3 2.7L12.8 10h5.4a2 2 0 012 2.3l-1.1 5.9a2.2 2.2 0 01-2.2 1.8H7.5'/%3E%3C/svg%3E"); }
.bst-ikoni--x { --bst-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
/* buttons that carry an arrow in the HTML version */
.wp-block-button.bst-nuoli > .wp-block-button__link::after { content: ""; width: 1.1em; height: 1.1em; flex: none; background: currentColor; -webkit-mask: var(--ico-arrow) center / contain no-repeat; mask: var(--ico-arrow) center / contain no-repeat; transition: transform 0.25s var(--ease-out); }
.wp-block-button.bst-nuoli > .wp-block-button__link:hover::after { transform: translateX(3px); }
.bst-grp-card:has(.bst-b-vis a:hover) .wp-block-button.bst-nuoli > .wp-block-button__link::after { transform: translateX(3px); }

/* screen reader text (icon-only buttons and links made from the HTML version) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* team cards: the title in full contrast (the block's own CSS dims it) */
body .team-showcase__title { opacity: 1; color: var(--gray-ink); }
/* the phone book's groups (Meistä, Ota yhteyttä): each group's people are a team-showcase block beside the group name,
   three cards across lines 3 to 12 as the HTML version's .people; the name moves above below 1360px */
body .bst-dir-group > .team-showcase { grid-column: 3 / -1; margin: 0; }
body .bst-dir-group > .team-showcase .team-showcase__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1360px) { body .bst-dir-group > .team-showcase { grid-column: 1 / -1; } }
@media (max-width: 1100px) { body .bst-dir-group > .team-showcase .team-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { body .bst-dir-group > .team-showcase .team-showcase__grid { grid-template-columns: 1fr; } }

/* ---------- guide lists from a Query Loop, in the look of the HTML version's .arts list ---------- */
.bst-oppaat .bst-arts > li { margin: 0; position: relative; }
.bst-art-kysely { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; align-items: center; gap: 1rem var(--gap); padding: clamp(1.25rem, 2.4vw, 2rem) 0; border-bottom: 1px solid var(--line); }
.bst-art-kysely > * { margin: 0; }
.bst-art-kysely .wp-block-post-title { font-size: var(--fs-h3); }
.bst-art-kysely .wp-block-post-title a { text-decoration: none; }
.bst-art-kysely .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.bst-art-kysely:hover .wp-block-post-title { color: var(--violet); }
.bst-art-kysely .bst-go { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--fg); display: grid; place-items: center; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ease-out); }
.bst-art-kysely:hover .bst-go { background: var(--violet); border-color: var(--violet); color: var(--white); transform: translateX(4px); }
.bst-art-kysely:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
@media (max-width: 720px) { .bst-art-kysely { grid-template-columns: minmax(0, 1fr) auto; } .bst-art-kysely .bst-mono { grid-column: 1 / -1; } }
/* open positions (Rekrytointi): Rekry category articles as the tick list of the HTML version */
.bst-rk-jobs > li > * { margin: 0; }
.bst-rk-jobs .bst-ico { margin-top: 4px; color: var(--violet); }
.bst-rk-jobs .wp-block-post-title { font-size: inherit; line-height: inherit; }
.bst-rk-jobs .wp-block-post-title a { color: var(--fg); font-weight: 650; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.15em; }
.bst-rk-jobs .wp-block-post-title a:hover { text-decoration-color: currentColor; }

/* ---------- second QA round 25.11.2026 ---------- */
/* the HTML version's list reset (ul[role="list"]): the role travels as the class bst-r-list */
:is(ul, ol, div).bst-r-list { list-style: none; padding: 0; }   /* as specific as ul[role="list"] in the HTML version */
/* product pictures may spill their shadows past the screen edge: no sideways scrolling */
.bst-main { overflow-x: clip; }
/* introduction video: the HTML version's dark gradient over the preview picture and the note at the bottom */
.bst-video-kehys { background: transparent; }
.bst-video-toista img { border-radius: inherit; }
.bst-video-toista::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(25 25 25 / 0.62) 0%, rgb(25 25 25 / 0) 32%, rgb(25 25 25 / 0) 64%, rgb(25 25 25 / 0.62) 100%); pointer-events: none; }
.bst-video-toista .bst-video-ikoni { z-index: 2; }
.bst-video-toista::after { content: "Video avautuu YouTubesta"; position: absolute; left: 20px; bottom: 18px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgb(25 25 25 / 0.78); color: var(--gray-1); font-size: var(--fs-label); font-weight: 560; }
@media (max-width: 720px) { .bst-video-toista::after { display: none; } }
/* article head: breadcrumb spacing, meta row in the mono size, reading time */
/* breadcrumbs above a page title (articles, category pages and other Yoast trails) keep the HTML version's distance */
:is(.bst-art-head, .bst-page-head, .bst-sivun-otsikko) .bst-murupolku { margin-bottom: 1.25rem; }
.bst-art-meta > * { margin: 0; }
.bst-art-meta .wp-block-post-terms, .bst-art-meta .wp-block-post-terms a, .bst-art-meta .bst-lukuaika { color: var(--lilac-2); text-decoration: none; }
.bst-art-toc .bst-sisallys-otsikko { margin: 0 0 0.75rem; font-size: inherit; font-weight: 650; }
/* tables of the legal and cookie pages: light rows as in the HTML version, not the table block's grid */
.wp-block-table { margin: 0.75rem 0 1.75rem; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.wp-block-table table.has-fixed-layout { table-layout: auto; }
.wp-block-table :is(th, td) { padding: 10px 14px 10px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wp-block-table th { font-size: var(--fs-label); font-weight: 650; color: var(--fg-2); }
.wp-block-table thead { border-bottom: 0; }
/* text links made from buttons keep the size of the text around them */
.wp-block-button.is-style-linkki > .wp-block-button__link { font-size: inherit; letter-spacing: normal; }
/* the focus ring follows the pill */
.wp-block-button__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 999px; }
.wp-block-button.is-style-linkki > .wp-block-button__link:focus-visible { border-radius: 4px; }
/* guide lists (homepage, webshop page): grey dates, full-width rules and the lilac hover row of the HTML version */
.bst-art-kysely .wp-block-post-date, .bst-art-kysely .bst-mono { color: var(--fg-2); }
@media (min-width: 721px) {
  .bst-arts > li { position: relative; isolation: isolate; }
  .bst-arts > li .bst-art-kysely { border-bottom: 0; }
  .bst-arts > li::after { content: ""; position: absolute; bottom: 0; left: calc(-1 * var(--edge)); width: 100vw; height: 1px; background: var(--line); }
  .bst-arts > li::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(-1 * var(--edge)); width: 100vw; background: var(--lilac); opacity: 0; transition: opacity 0.25s var(--ease-out); }
  .bst-arts > li:hover::before, .bst-arts > li:focus-within::before { opacity: 1; }
}
/* article count next to the category filter */
.bst-news-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.bst-news-bar .bst-kategoriat { margin: 0; }
.bst-news-bar .bst-news-count { margin: 0; color: var(--fg-2); }
/* a text link with its own leading icon (Avaa kartalla): the icon instead of the arrow */
.wp-block-button.bst-linkki-ikoni > .wp-block-button__link::after { content: none; }
.wp-block-button.bst-linkki-ikoni .bst-ikoni { color: var(--violet); }
/* the real chat on the 24/7 page is not a decorative example: it takes clicks and touches */
.bst-upotus.bst-chat, .bst-upotus.bst-chat * { pointer-events: auto; }
/* the skip link shows above the fixed header when focused */
.skip-link.screen-reader-text:focus { position: fixed !important; top: 12px !important; left: 12px !important; z-index: 2147483647 !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 12px 18px !important; overflow: visible !important; clip: auto !important; clip-path: none !important; white-space: nowrap; border-radius: 999px; background: var(--white) !important; color: var(--black) !important; box-shadow: 0 0 0 3px var(--violet); }
/* current page in the main menu */
.bst-valikko .wp-block-navigation-item__content[aria-current="page"] { color: var(--lilac-2); }
/* in the open mobile menu every level is one list: the current page reads white and bold */
body .bst-valikko .is-menu-open .wp-block-navigation-item__content[aria-current="page"] { color: var(--white) !important; font-weight: 700; }
/* category links in article rows sit above the row's stretched title link */
.bst-post-meta .wp-block-post-terms { position: relative; z-index: 1; }
/* Swedish is left out of the renewal: no SV in the language switcher */
.lang-item-sv, .bst-valikko [lang="sv-SE"], .bst-valikko [hreflang="sv-SE"] { display: none !important; }

/* ---------- mobile QA round 25.11.2026 ---------- */
/* Booosted's own tools and the cookie button step aside while the mobile menu is open, and the footer leaves room for them */
html.has-modal-open :is(#chatbot-widget, #lead-widget, #kncc-floating-btn) { display: none !important; }
.bst-foot-bar { padding-bottom: calc(18px + 56px); }
/* mobile menu: a 44 px close button where the menu button is; the menu button closes the menu too (teema.js) */
.bst-valikko .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; display: grid; place-items: center; }
.bst-valikko .wp-block-navigation__responsive-container-open[aria-expanded="true"] svg { display: none; }
.bst-valikko .wp-block-navigation__responsive-container-open[aria-expanded="true"]::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat; }
/* category filter: one row that scrolls sideways on a phone, as in the HTML version */
.bst-news-bar .bst-kategoriat-nav { min-width: 0; max-width: 100%; }
@media (max-width: 720px) { .bst-news-bar .bst-kategoriat-nav { overflow-x: auto; scrollbar-width: none; } .bst-news-bar .bst-kategoriat-nav::-webkit-scrollbar { display: none; } .bst-news-bar .bst-kategoriat { flex-wrap: nowrap; } .bst-kategoriat li { flex: none; } }
/* text links wrap and stay left-aligned; buttons break between words, not inside them */
.wp-block-button.is-style-linkki > .wp-block-button__link { white-space: normal; text-align: left; justify-content: flex-start; }
.wp-block-button__link { word-break: normal; overflow-wrap: break-word; }
.wp-block-buttons > .wp-block-button { max-width: 100%; min-width: 0; }
/* tables: the content sets the column widths; long cookie names stay whole and the table scrolls if needed */
.wp-block-table table, .wp-block-table table.has-fixed-layout { table-layout: auto !important; }
.wp-block-table :is(td, th) { word-break: normal !important; overflow-wrap: normal !important; }
.bst-art-body .wp-block-table table { min-width: 34rem; }
.bst-art-body :is(pre, code) { white-space: pre-wrap; overflow-wrap: anywhere; }
/* a rendered picture never grows a container-query box: the newsletter hero picture keeps its width */
.wp-block-image.bst-kuva { container-type: normal !important; }
/* the price plus: a short horizontal row when the cards stack, as in the HTML version */
@media (max-width: 900px) { .wp-block-image.bst-price-plus img { display: none; } .wp-block-image.bst-price-plus { display: grid; place-items: center; height: 32px; } .wp-block-image.bst-price-plus::before { content: "+"; color: var(--violet); font-size: 2rem; font-weight: 650; line-height: 1; } }
/* team: two columns on a tablet; e-mail addresses break before the @ */
.team-showcase__contact-item span { overflow-wrap: break-word; word-break: normal; }
/* form embed: the form draws a transparent inner padding of its own (8px + 24px, and 8px + 32px when the form is at
   least 640px wide), so the frame is pulled out by that amount and the fields line up with the text column.
   The frame reserves the form's real height (518px, 534px with the wider padding) until the form reports it,
   so the page does not jump when the form loads. */
.bst-upotus.bst-upotus--lomake { container-type: inline-size; min-height: 0; --bst-upotus-h: 518px !important; }
.bst-upotus--lomake > iframe { --bst-lomake-reuna: 32px; width: calc(100% + 2 * var(--bst-lomake-reuna)); max-width: none; margin: calc(-1 * var(--bst-lomake-reuna)); }
@container (min-width: 560px) { .bst-upotus--lomake > iframe { --bst-lomake-reuna: 40px; --bst-upotus-h: 534px; } }
/* video: the corners stay clean, the HTML version's radius, and a smaller play button on a phone */
.bst-video-kehys { border-radius: 18px; clip-path: inset(0 round 18px); }
.bst-video-toista, .bst-video-toista img, .bst-video-toista::before { border-radius: inherit; }
@media (max-width: 720px) { .bst-video-ikoni { transform: scale(0.81); } .bst-video-toista:hover .bst-video-ikoni { transform: scale(0.86); } }
/* language switcher: a 24 px minimum target for the link and its toggle */
.wp-block-polylang-language-switcher a, .pll-submenu-toggle, .bst-valikko .lang-item a { min-width: 24px; min-height: 24px; display: inline-flex; align-items: center; justify-content: center; }
/* main menu: the tools under a group sit as close as in the HTML version; the space between the groups stays */
body .bst-valikko .bst-mega .bst-ryhma > .wp-block-navigation__submenu-container { row-gap: 0; }
/* gallery: side room so the first and last frames can reach the centre (the list reset must not remove it) */
.bst-g-track.bst-r-list { padding: 30px calc(50% - var(--g-w) / 2) 40px; }   /* the list reset above would also take the room under the cards that keeps the arrows off the picture */
/* English pages */
:lang(en) .bst-video-toista::after { content: "The video opens from YouTube"; }

/* 24/7 page: before the chat loads, its panel is a white card with the site's violet button in the middle
   instead of the embed block's dashed placeholder */
.bst-support-chat.bst-upotus:not(.is-loaded) { background: var(--wp--preset--color--valkoinen); border-radius: 22px; }
.bst-support-chat .bst-upotus-avaa { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: auto; height: 52px; padding: 0 1.5em; border: 0; border-radius: 999px; background: var(--wp--preset--color--violetti); color: var(--wp--preset--color--valkoinen); font-weight: 650; }
.bst-support-chat .bst-upotus-avaa:hover { background: var(--wp--preset--color--violetti-kirkas); }
.bst-support-chat .bst-upotus-avaa:focus-visible { outline: 2px solid var(--wp--preset--color--violetti); outline-offset: 3px; }

/* touch screens: the footer links get a taller tap area (the list keeps its rhythm) */
@media (pointer: coarse) {
  /* the standalone arrow links (link-style buttons): an invisible 44px tap area, nothing moves */
  .wp-block-button.is-style-linkki > .wp-block-button__link { position: relative; }
  .wp-block-button.is-style-linkki > .wp-block-button__link::before { content: ""; position: absolute; inset: -12px -4px; }
  .bst-foot-col a, .bst-foot-legal a { display: inline-block; padding-block: 5px; }
  ul.bst-foot-col { gap: 0.1rem; }
}
/* dashboard table on a phone: the picture keeps a readable size and scrolls sideways, with a fade at the right edge */
@media (max-width: 720px) {
  .bst-ledger-wrap > .bst-ledger-pad { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  .bst-ledger-wrap > .bst-ledger-pad::-webkit-scrollbar { display: none; }
  .bst-ledger-wrap > .bst-ledger-pad img { min-width: 680px; }
}
/* the Palvelut menu: group headings and their links start on the same line (the navigation block pads each link by 1em of its own font size, so the larger or smaller heading moved off the line) */
body .bst-valikko .bst-mega .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding-left: 0 !important; padding-right: 0 !important; }

/* Booosted's side contact button (52 px wide) sits on the left edge of the screen from 576 px up. Until the
   container clears it (about 1600 px), the page edge leaves room for it, so it never covers text (Jimi 27.11.2026). */
@media (min-width: 576px) and (max-width: 1600px) {
  :root { --wp--preset--spacing--reuna: 68px; }
}

/* ---------- sales tool pages and test pages (body.bst-tyosivu): dark gray page; violet and lilac sections and the tool blocks take the dark tokens ---------- */
body.bst-tyosivu { background: var(--black); }
.bst-tyosivu .bst-main,
.bst-tyosivu .bst-main :is(.is-style-osio-vaalea, .is-style-osio-liila, .is-style-osio-violetti, .is-style-section-3, .is-style-section-4) {
  --bg: var(--black); --fg: var(--lilac); --fg-2: #bdbdbd; --line: rgb(255 255 255 / 0.14);
  --raise: #242424; --input-bg: #232323; --input-fg: var(--lilac); --input-line: rgb(255 255 255 / 0.16); --ph: #9a9a9a;
  --accent: var(--violet); --accent-hi: var(--violet-hi); --accent-fg: var(--white); --focus: var(--lilac-2); --err: #f3a3b4;
  background: var(--bg); color: var(--fg); color-scheme: dark;
}
.bst-tyosivu .bst-foot { border-top: 1px solid rgb(255 255 255 / 0.08); }
.bst-tyosivu .bst-sivun-otsikko h1 { max-width: none; }
/* space: below the bar or the page head, and before the footer */
.bst-tyosivu.page-template-page-no-title .wp-block-post-content > :first-child:not(.is-style-osio-tumma):not(.bst-hero) { margin-top: calc(var(--nav-top) + var(--nav-h) + clamp(2.5rem, 5vw, 4rem)); }
.bst-tyosivu .bst-sivu > .wp-block-post-content > :first-child:not(.alignfull),
.single-test_page .test-page-content { margin-top: clamp(2.5rem, 5vw, 4rem); }
.bst-tyosivu .wp-block-post-content > :last-child { margin-bottom: var(--sec); }
/* a violet or lilac section at the top has its own spacing in the content: it starts below the bar like the other tool pages */
.bst-tyosivu.page-template-page-no-title .wp-block-post-content > .alignfull:is(.is-style-section-3, .is-style-section-4):first-child { margin-top: calc(var(--nav-top) + var(--nav-h) + clamp(2.5rem, 5vw, 4rem)) !important; padding-top: 0 !important; }

/* site and add-on offer (booosted/site-offer, booosted/addon-offer) */
.bst-tyosivu .booosted-offer {
  --bo-ink: var(--lilac); --bo-muted: #bdb3c7; --bo-line: rgb(255 255 255 / 0.16); --bo-surface: #222; --bo-surface-2: #2c2c2c;
  --bo-purple: var(--lilac-2); --bo-magenta: #e08af7; --bo-warn: #f3a3b4;
}
.bst-tyosivu .booosted-offer :is(input, select, textarea) { color: var(--bo-ink); }
.bst-tyosivu .booosted-offer__action[data-action=pdf], .bst-tyosivu .booosted-offer__picker-count { background: var(--violet); border-color: var(--violet); color: var(--white); }
.bst-tyosivu .booosted-offer__action[data-action=pdf]:hover { background: var(--violet-hi); }
.bst-tyosivu .booosted-offer__preview { background: #fff; }

/* SEO & GEO check (booosted/visibility-check) */
.bst-tyosivu .booosted-visibility {
  --bv-ink: var(--lilac); --bv-muted: #bdb3c7; --bv-line: rgb(255 255 255 / 0.16); --bv-surface: #222; --bv-surface-2: #2c2c2c;
  --bv-purple: var(--lilac-2); --bv-magenta: #e08af7; --bv-ok: #4cc38a; --bv-error: #f3a3b4;
}
.bst-tyosivu .booosted-visibility :is(input, select) { color: var(--bv-ink); }
.bst-tyosivu .booosted-visibility :is(.booosted-visibility__submit, .booosted-visibility__action--primary) { background: var(--violet); border-color: var(--violet); color: var(--white); }
.bst-tyosivu .booosted-visibility__history li button.is-remove.is-confirm { color: var(--bv-error); }
/* phone: the company name and the buttons on the first line, the details below */
@media (max-width: 600px) {
  .bst-tyosivu .booosted-visibility__history li { flex-wrap: wrap; gap: 4px 14px; }
  .bst-tyosivu .booosted-visibility__history li b { flex: 1 1 0; min-width: 0; }
  .bst-tyosivu .booosted-visibility__history li button { order: 1; }
  .bst-tyosivu .booosted-visibility__history li span { order: 2; flex: 1 1 100%; }
}

/* price calculator and onboarding form (booosted/price-calculator, booosted/onboarding-form): borders follow the text colour */
.bst-tyosivu .price-calculator { --calc-accent: var(--lilac-2); --calc-btn-bg: var(--violet); --calc-btn-fg: var(--white); --calc-bg-hover: rgb(255 255 255 / 0.05); }
.bst-tyosivu .price-calculator__addon { border-radius: 20px; }
.bst-tyosivu .onboarding-form { --of-accent: var(--lilac-2); --of-btn-bg: var(--violet); --of-btn-fg: var(--white); --of-bg-hover: rgb(255 255 255 / 0.05); --of-error: #f3a3b4; --of-success: #4cc38a; }

/* test pages: instructions as readable text */
.single-test_page .test-page-content > * + * { margin-top: 1rem; }
.single-test_page .test-page-content h2 { font-size: var(--fs-h3); }
.single-test_page .test-page-content > * + h2 { margin-top: clamp(2rem, 4vw, 2.75rem); }
.single-test_page .test-page-content :is(ol, ul) { padding-left: 1.4em; }
.single-test_page .test-page-content li + li { margin-top: 0.4em; }

/* ---------- phones and tablets ---------- */
/* FAQ: the topic links over the questions are jump links; stacked under the contact text they read as pills, not as a loose list */
@media (max-width: 900px) {
  body .bst-faq .bst-faq-topics { display: flex; flex-wrap: wrap; gap: 8px; }
  body .bst-faq .bst-faq-topics > li { margin: 0; }
  body .bst-faq .bst-faq-topics a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
  body .bst-faq .bst-faq-topics a:hover { border-color: currentColor; }
}
/* the hero band covers only the lower part of a stacked hero: its lines fade in instead of ending at the top edge */
@media (max-width: 720px) {
  .bst-ribbon--hero { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%); mask-image: linear-gradient(to bottom, transparent 0, #000 28%); }
}
/* open menu: a group heading (Konversiotyökalut, Asiakaspalvelutyökalut, Hakunäkyvyys) stands above its items, not below them */
@media (max-width: 1120px) {
  body .bst-valikko .is-menu-open .bst-ryhma > .wp-block-navigation-item__content { margin-top: 14px; padding-bottom: 4px; font-size: 1.0625rem; font-weight: 700; color: var(--fg); }
}
/* ---------- animations: lighter rendering ---------- */
/* services hero: the dark pool behind the dashboard no longer blurs the moving light behind it; a backdrop blur is
   computed again on every frame of the animation. The gradient alone darkens the area */
body .bst-route-hero .bst-route::before { -webkit-backdrop-filter: none; backdrop-filter: none;
  background: radial-gradient(closest-side, rgb(25 25 25 / 0.95), rgb(25 25 25 / 0.84) 45%, rgb(25 25 25 / 0.45) 75%, transparent); }
