/* Tuotu Astro-projektista: src/styles/global.css (bin/sync-astro.py). */
:root {
  color-scheme: dark;
  --bg: #000;
  --text: #e8e8e8;
  --heading: #fff;
  --muted: #949494;
  --accent: #c4c4c4;
  --accent-hover: #fff;
  --border: rgba(255, 255, 255, 0.1);
  --header-bg: #000;
  --wire: #171717;
  --alt: #0f0f0f;
  --panel: #0a0a0a;
  --input-bg: #111;
  --row-hover: #151515;
  --track: #1a1a1a;
  --fill: #8a8a8a;
  --section-y: 100px;
  --max: 1350px;
  --font: 'Inter', system-ui, sans-serif;
  --header-h: 4.75rem;
  --announce-h: 0rem;
  --topbar: calc(var(--header-h) + var(--announce-h));
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #fff;
  --text: #2a2a2a;
  --heading: #111;
  --muted: #5a5a5a;
  --accent: #333;
  --accent-hover: #000;
  --border: rgba(0, 0, 0, 0.12);
  --header-bg: #fff;
  --wire: #ececec;
  --alt: #f4f4f4;
  --panel: #fff;
  --input-bg: #f3f3f3;
  --row-hover: #ececec;
  --track: #e4e4e4;
  --fill: #555;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    color-scheme: light;
    --bg: #fff;
    --text: #2a2a2a;
    --heading: #111;
    --muted: #5a5a5a;
    --accent: #333;
    --accent-hover: #000;
    --border: rgba(0, 0, 0, 0.12);
    --header-bg: #fff;
    --wire: #ececec;
    --alt: #f4f4f4;
    --panel: #fff;
    --input-bg: #f3f3f3;
    --row-hover: #ececec;
    --track: #e4e4e4;
    --fill: #555;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--topbar);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

/* Body links are underlined; whole-block links (cards, nav rows) are not. */
article
  a:not(.chip):not(.article-card a):not(.widget-list a):not(.download-card):not(.share-button):not(
    .hdr-demo a
  ):not(.btn):not(.icon-card a):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

article a.is-external::after {
  content: '';
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.28em;
  vertical-align: -0.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.2H3.8A1.3 1.3 0 0 0 2.5 4.5v7.7A1.3 1.3 0 0 0 3.8 13.5h7.7a1.3 1.3 0 0 0 1.3-1.3V10'/%3E%3Cpath d='M8.2 7.8 13.5 2.5'/%3E%3Cpath d='M9.6 2.5h3.9V6.4'/%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 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.2H3.8A1.3 1.3 0 0 0 2.5 4.5v7.7A1.3 1.3 0 0 0 3.8 13.5h7.7a1.3 1.3 0 0 0 1.3-1.3V10'/%3E%3Cpath d='M8.2 7.8 13.5 2.5'/%3E%3Cpath d='M9.6 2.5h3.9V6.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.8rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.topbar,
.topbar .header,
.topbar .wrap {
  border: 0;
  box-shadow: none;
  outline: none;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.2s ease;
}

/* Opaque as soon as anything scrolls behind it, and while the mobile menu is open. */
.topbar.is-scrolled,
.topbar:has(.nav.is-open) {
  background: var(--header-bg);
}

.header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding: 0.55rem 0 0.4rem;
}

.logo {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  align-self: center;
}

.logo:hover {
  color: var(--heading);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  padding: 0.35rem 0.7rem 0.5rem;
  font-size: 0.92rem;
}

/* A top heading without a page is a button (NavList.astro, PageSpeed Insights 2026-11-05: an anchor with no
   address is not crawlable). The browser's button look is taken off at no weight (:where), so every
   .nav-link rule below decides how it looks, exactly as for a link. */
:where(button.nav-link) {
  appearance: none;
  box-sizing: content-box;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: none;
  cursor: pointer;
}

.header .nav-item:last-child > .nav-link {
  padding-right: 0;
}

.nav-item.has-sub > .nav-link::after {
  content: '';
  width: 0.38em;
  height: 0.38em;
  margin-top: -0.2em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link {
  color: var(--heading);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--border);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  /* On leave: hold for 250ms, then fade. Time enough to reach the panel. */
  transition:
    opacity 0.15s ease 0.25s,
    visibility 0s linear 0.4s;
}

.sub-item {
  position: relative;
}

/* Third level flies out beside its row. */
.sub-menu .sub-menu {
  top: -0.4rem;
  left: 100%;
}

.nav-item:hover > .sub-menu,
.nav-item:focus-within > .sub-menu,
.sub-item:hover > .sub-menu,
.sub-item:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 0.12s ease,
    visibility 0s;
}

/* The grace delay is for leaving the menu, not for moving across it. Once the
   pointer is on another item, that item's panel closes at once — otherwise a
   lingering panel sits on top of the one the pointer just opened. */
.nav-list:hover > .nav-item:not(:hover) > .sub-menu,
.sub-menu:not(.mega-menu):hover > .sub-item:not(:hover) > .sub-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.nav-item:last-child > .sub-menu {
  left: auto;
  right: 0;
}

.nav-item:last-child .sub-menu .sub-menu {
  left: auto;
  right: 100%;
}

.sub-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.sub-menu a:hover {
  color: var(--heading);
}

.sub-menu li.is-current > a {
  color: var(--heading);
}

/* Marks a row that opens a third level. */
.sub-item.has-sub > a::after {
  content: '';
  width: 0.38em;
  height: 0.38em;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Mega menu
   The panel spans the header container, so its item drops out of the
   positioning chain and the panel anchors to .topbar instead.
   ========================================================================== */

.nav-item.is-mega {
  position: static;
}

.mega-menu {
  display: grid;
  right: 0;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.5rem 1.6rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem 2rem;
}

/* The panel hangs off .topbar, so it starts below the nav row. This bridges
   that gap, keeping the item hovered as the pointer crosses it. */
.mega-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  /* Spans the gap between the nav row and the panel, and no further, so it
     cannot swallow hovers meant for the other nav items. */
  height: 1.25rem;
}

.mega-menu > .sub-item {
  position: static;
}

.mega-menu > .sub-item > a {
  display: block;
  padding: 0 0 0.4rem;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mega-menu > .sub-item > a::after {
  content: none;
}

/* Column links sit in the panel, not in a flyout. */
.mega-menu .sub-menu {
  display: block;
  position: static;
  min-width: 0;
  margin-top: 0.4rem;
  padding: 0;
  background: transparent;
  border: 0;
  opacity: 1;
  transition: none;
  /* Follow the panel. A child may override a hidden parent's visibility, and
     `visible` here would leave the columns hit-testable while the panel is shut. */
  visibility: inherit;
  pointer-events: inherit;
}

.mega-menu .sub-menu a {
  padding: 0.3rem 0;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--heading);
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--heading);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--heading);
}

.theme-toggle svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme='light'] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme='light'] .theme-toggle .icon-moon {
  display: block;
}

.header-search {
  position: relative;
  width: 100%;
  max-width: 16rem;
  margin-left: auto;
}

.header-search input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.32rem 0.55rem;
  backdrop-filter: blur(8px);
}

.header-search input:focus {
  outline: 1px solid var(--accent);
}

.search-live {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  min-width: 280px;
  max-height: 320px;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  z-index: 40;
}

.search-live a {
  display: block;
  padding: 0.4rem 0.7rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
}

.search-live a:hover {
  background: var(--row-hover);
  color: var(--heading);
}

.search-live .meta {
  color: var(--muted);
}

main {
  padding: 0;
}

.page-section {
  padding: 2.2rem 0 4rem;
}

.section-alt {
  background: var(--alt);
}

.hero h1 {
  margin-bottom: 0.4rem;
}

.home-hero:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50svh;
  margin-top: calc(-1 * var(--topbar));
  padding: calc(var(--topbar) + 3.5rem) 0 3.5rem;
  text-align: center;
  background: var(--wire);
}

/* Dashed frame + label: the hero image area, as a wireframe. */
.home-hero:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *))::before {
  content: 'Kuva';
  position: absolute;
  inset: calc(var(--topbar) + 1.25rem) 1.25rem 1.25rem;
  padding: 0.5rem 0.7rem;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.home-hero > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  position: relative;
  z-index: 1;
}

.home-hero .lede:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--text);
}

.home-hero-art:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: block;
  width: min(176px, 38vw);
  height: auto;
  margin: 0 auto 1.4rem;
}

.home-articles:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding: 2.2rem 0 4rem;
}

.article-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-card {
  background: transparent;
}

.article-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.article-card a:hover {
  color: inherit;
}

.article-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--wire);
}

.article-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.15rem;
  text-align: left;
}

.article-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-card time {
  color: var(--muted);
  font-size: 0.82rem;
}

.article-card-more {
  margin-top: auto;
  padding-top: 0.35rem;
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: 600;
}

.article-card a:hover .article-card-more {
  color: var(--accent-hover);
}

@media (min-width: 700px) {
  .article-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .article-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-hero h1:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-size: clamp(1.82rem, 3.2vw, 2.22rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 0.7rem;
}

.home-hero .lede:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-size: 1rem;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.home-search:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  position: relative;
  max-width: 400px;
  margin-inline: auto;
}

.home-search-field:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: flex;
  align-items: stretch;
  background: var(--input-bg);
  border: 1px solid var(--border);
}

.home-search-field:focus-within:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  outline: 1px solid var(--accent);
}

.home-search input:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  padding: 1.05rem 0.8rem 1.05rem 1.2rem;
}

.home-search input:focus:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  outline: 0;
}

.home-search button:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  flex-shrink: 0;
  margin: 0.45rem;
  padding: 0 1.15rem;
  border: 0;
  background: var(--heading);
  color: var(--bg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.home-search .search-live:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  left: 0;
  right: 0;
  min-width: 0;
  max-height: 360px;
  text-align: left;
}

.home-search .search-live a:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  text-align: left;
}

.home-quick:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 1.4rem;
  margin-top: 1.25rem;
}

.home-quick a:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--muted);
  font-size: 0.78rem;
}

.home-quick-title:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lede,
.muted {
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 1.2rem;
}

.chip {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.chip:hover {
  color: var(--heading);
  border-color: var(--accent);
}

.salary-page > header,
.salary-page > section {
  padding: var(--section-y) 0;
}

.salary-page > header.salary-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50svh;
  margin-top: calc(-1 * var(--topbar));
  padding-top: calc(var(--topbar) + 2.5rem);
  padding-bottom: 2.5rem;
}

.salary-page > section > .wrap > :first-child {
  margin-top: 0;
}

.salary-page > section {
  position: relative;
}

.salary-page > section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--border);
}

.salary-hero > .wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .salary-hero > .wrap {
    align-items: stretch;
    column-gap: 100px;
  }

  .salary-hero:has(.salary-hero-media img) > .wrap,
  .salary-hero:has(.salary-hero-media .article-wire-box) > .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 30rem);
  }

  .salary-hero:has(.salary-hero-media img) .salary-hero-copy,
  .salary-hero:has(.salary-hero-media .article-wire-box) .salary-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .salary-hero-media {
    align-self: center;
    margin-top: 0;
  }
}

.salary-hero-media {
  align-self: center;
  width: 100%;
  margin: 0;
}

@media (max-width: 799px) {
  .salary-page > header,
  .salary-page > section {
    padding: 40px 0;
  }

  .salary-page > header.salary-hero {
    padding-top: calc(var(--topbar) + 2.5rem);
    padding-bottom: 3rem;
  }

  .salary-hero-media {
    display: block;
    max-width: 16rem;
    margin: 0 auto;
  }
}

.salary-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: top center;
  background: transparent;
  border: 0;
}

.salary-hero-ai {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
  cursor: help;
}

.salary-hero .chips {
  margin: 1.2rem 0 0;
}

.salary-hero h1 {
  padding-top: 0;
  margin-bottom: 1.2rem;
}

.salary-hero h1:has(+ .article-subtitle) {
  margin-bottom: 0.35rem;
}

.article-subtitle {
  margin: 0 0 1.2rem;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--muted);
}

.article-story h2:has(+ .article-subtitle) {
  margin-bottom: 0.35rem;
}

.article-author-box .article-subtitle {
  margin-bottom: 0.55rem;
}

.salary-hero .salary-place {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  padding: 0.22rem 0.55rem 0.22rem 0;
  text-decoration: none;
  border: 0;
}

.salary-hero .salary-place:hover {
  border: 0;
}

.salary-place-icon {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.salary-place-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.salary-hero .salary-place:hover .salary-place-link {
  color: var(--accent-hover);
}

.salary-lede {
  max-width: 40rem;
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.salary-lede + .salary-lede {
  margin-top: 0.85rem;
}

.article-hero-stats {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.article-hero-stats li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--heading);
  font-size: 1.05rem;
}

.article-hero-stats svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
}

.hero-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 12rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-filters select,
.hero-filters input {
  appearance: none;
  min-width: 14rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.5rem 0.7rem;
}

.hero-filters select {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23949494' d='M1 1.5 L6 6.5 L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
}

.hero-filters select:focus,
.hero-filters input:focus {
  outline: 1px solid var(--accent);
}

.hero-filters select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--muted);
}

.salary-hero .salary-pay {
  grid-column: 1 / -1;
}

.salary-figures .hero-filters {
  margin: 0 0 2rem;
}

.salary-figures .salary-pay,
.salary-figures .pay {
  margin: 0;
}

.salary-pay .pay {
  margin: 0;
}

.pay-note {
  margin: 0.75rem 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.data-updated {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.data-updated a {
  color: var(--accent);
}

.data-updated a:hover {
  color: var(--accent-hover);
}

.article-story .data-updated a {
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.article-story .data-updated a:hover {
  color: var(--heading);
}

.salary-faq {
  scroll-margin-top: calc(var(--topbar) + 1.2rem);
}

.salary-faq > .wrap {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .salary-faq > .wrap {
    grid-template-columns: 1fr 1fr;
    column-gap: 100px;
  }
}

.salary-faq h2 {
  margin-top: 0;
}

.salary-page > section.salary-changelog {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: left;
}

.salary-changelog-inner {
  width: 50%;
  margin-inline: auto;
}

.salary-changelog h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 400;
}

.salary-changelog .muted {
  font-size: 0.92rem;
}

.changelog-entry {
  margin: 0.85rem 0 0;
}

.changelog-entry h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.changelog-entry ul {
  display: inline-block;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: left;
}

.changelog-entry li + li {
  margin-top: 0.2rem;
}

@media (max-width: 700px) {
  .salary-changelog-inner {
    width: 100%;
  }
}

.faq-list {
  margin-top: 1rem;
}

.source-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.source-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.source-list li:last-child {
  border-bottom: 0;
}

.source-list a {
  color: var(--heading);
  font-weight: 600;
}

.source-list a:hover {
  color: var(--accent-hover);
}

.source-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--heading);
}

.faq-list summary:hover {
  color: var(--accent-hover);
}

.faq-list details p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.faq-list details p + p {
  margin-top: 0.7rem;
}

.pay-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
}

.yoy {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.yoy-arrow {
  font-size: 0.7rem;
  line-height: 1;
}

.yoy-up {
  color: #8fbf8f;
}

.yoy-down {
  color: #c99292;
}

.pay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0 1.6rem;
}

.pay-card {
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
}

.pay-card .label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pay-card .value {
  display: block;
  color: var(--heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.range-block {
  margin: 0;
}

.range-block h2 {
  margin-top: 0;
}

.range-block h3 {
  margin-top: 3.5rem;
}

.job-work {
  margin: 0;
}

.job-work > .wrap {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .job-work > .wrap {
    grid-template-columns: 1fr 1fr;
    column-gap: 100px;
  }
}

.job-work h2 {
  margin-top: 0;
}

.range-headline {
  font-size: 1.15rem;
  margin: 0.8rem 0 1.2rem;
}

.range-headline strong {
  color: var(--heading);
}

.range-track {
  position: relative;
  height: 22px;
  margin: 0.4rem 0 0.7rem;
  border-radius: 999px;
  background: var(--track);
}

.range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--fill);
}

.range-mark {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 0;
  border-left: 1px dashed var(--heading);
  transform: translateX(-0.5px);
}

.range-median {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 0;
  border-left: 1px dashed var(--muted);
  transform: translateX(-0.5px);
}

.range-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.range-labels span:last-child {
  text-align: right;
}

.range-labels span:nth-child(2) {
  text-align: center;
}

.range-labels strong {
  color: var(--heading);
  font-weight: 600;
}

.exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(7.5rem, 14rem) minmax(0, 1fr) auto;
  column-gap: 0.8rem;
}

.exp-list li {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr) auto;
  grid-column: 1 / -1;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

@supports (grid-template-columns: subgrid) {
  .exp-list li {
    grid-template-columns: subgrid;
    column-gap: 0.8rem;
  }
}

.exp-list li > span:first-child {
  overflow-wrap: break-word;
}

.exp-list li > strong {
  white-space: nowrap;
}

.exp-list span {
  color: var(--muted);
}

.exp-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
  min-width: 0;
}

.exp-bar-fill {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: 999px;
  background: var(--fill);
}

@media (max-width: 600px) {
  .range-labels {
    grid-template-columns: 1fr;
  }

  .range-labels span:last-child,
  .range-labels span:nth-child(2) {
    text-align: left;
  }

  .exp-list {
    display: block;
  }

  .exp-list li {
    grid-template-columns: 1fr auto;
    grid-column: auto;
  }

  .exp-bar {
    grid-column: 1 / -1;
    order: 3;
  }
}

.job-work p,
.job-work li {
  color: var(--muted);
}

.job-work ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.job-work li {
  margin-bottom: 0.4rem;
}

.job-skills > .wrap {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .job-skills > .wrap {
    grid-template-columns: 1fr 1fr;
    column-gap: 100px;
  }
}

.job-skills h2 {
  margin-top: 0;
}

.job-skills ul {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.job-skills li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.job-skills li:last-child {
  border-bottom: 0;
}

.skill-need li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.skill-need div {
  display: grid;
  gap: 0.15rem;
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--accent);
}

.skill-icon svg {
  width: 2rem;
  height: 2rem;
}

.job-skills span {
  color: var(--muted);
  font-size: 0.92rem;
}

.skill-lifts li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
}

.skill-lifts .yoy-up {
  font-weight: 600;
  font-size: 0.92rem;
}

.salary-catalog .salary-filters {
  margin: 0 0 1.2rem;
}

.salary-catalog .salary-filter-check {
  flex-direction: row;
  align-items: center;
  align-self: end;
  min-width: auto;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  color: var(--text);
  padding-bottom: 0.55rem;
}

.salary-catalog .salary-filter-check input {
  min-width: auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.salary-catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem 1.5rem;
  margin: 0 0 1.2rem;
}

.salary-catalog-tools label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.salary-catalog-tools input {
  appearance: none;
  min-width: 16rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.5rem 0.7rem;
}

.salary-catalog-tools input:focus {
  outline: 1px solid var(--accent);
}

.salary-catalog-tools .muted {
  margin: 0 0 0.35rem;
}

.salary-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 1.2rem 0 0;
}

.salary-pager button,
.salary-pager span {
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
}

.salary-pager button {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.salary-pager button:hover,
.salary-pager button[aria-current='page'] {
  color: var(--heading);
  border-color: var(--accent);
}

.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.salary-related,
.job-col {
  min-width: 0;
}

.salary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.salary-table td:nth-child(2) {
  overflow-wrap: anywhere;
}

@media (max-width: 699px) {
  .table-wrap {
    overflow-x: hidden;
  }

  .salary-table {
    table-layout: fixed;
  }

  .salary-table th:nth-child(3),
  .salary-table td:nth-child(3),
  .salary-table th:nth-child(4),
  .salary-table td:nth-child(4),
  .salary-table th:nth-child(6),
  .salary-table td:nth-child(6) {
    display: none;
  }
}

.salary-rank {
  white-space: nowrap;
  color: var(--muted);
}

.salary-rank span + span {
  margin-left: 0.4rem;
}

.yoy-flat {
  color: var(--muted);
}

.salary-table th,
.salary-table td {
  text-align: left;
  vertical-align: top;
  padding: 5px 8px 5px 0;
}

.salary-table th {
  color: var(--heading);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.salary-table td {
  border-bottom: 1px solid var(--border);
}

.salary-table td:first-child {
  padding-right: 12px;
}

.article-body :where(ul, ol) {
  padding-left: 1.2rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 1rem 0;
}

.article-body th,
.article-body td {
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.5rem 0.4rem 0;
  text-align: left;
}

.salary-related > .wrap {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .salary-related > .wrap {
    grid-template-columns: 1fr 1fr;
    column-gap: 100px;
  }
}

.salary-related h2 {
  margin-top: 0;
}

.article-lifts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-lifts li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.article-lifts li:last-child {
  border-bottom: 0;
}

.article-lifts a {
  color: var(--heading);
  font-weight: 600;
}

.article-lifts a:hover {
  color: var(--accent-hover);
}

.article-lifts p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.article-list a {
  color: var(--heading);
  font-weight: 600;
}

.article-list p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-body > p.muted {
  color: var(--muted);
}

@media (min-width: 800px) {
  .article-story .salary-hero > .wrap {
    align-items: center;
  }

  .article-story .salary-hero-media {
    align-self: center;
    margin-top: 0;
  }
}

.article-author-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(500px, 100%);
  margin-inline: auto;
  text-align: center;
}

.article-author-photo {
  width: 7rem;
  height: 7rem;
  margin: 0 0 1rem;
  object-fit: cover;
  border-radius: 50%;
}

.article-author-box h2 {
  margin: 0 0 0.55rem;
}

.article-author-box p {
  margin: 0 0 0.45rem;
  color: var(--muted);
}

.article-author-box p:last-child {
  margin-bottom: 0;
}

.article-author-box a {
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.article-author-box a:hover {
  color: var(--accent-hover);
}

.article-story .article-section > .wrap {
  display: grid;
  gap: 2rem;
}

.article-story .article-section-chart > .wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.article-story .article-section-chart > .wrap > .article-section-copy {
  width: 100%;
  max-width: 50%;
}

.article-story .article-section-chart > .wrap > .unemp-chart {
  width: 100%;
}

.article-story .article-section-chart-split > .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 100px;
  align-items: center;
}

.article-story .article-section-chart-split > .wrap > .article-section-copy {
  max-width: none;
}

@media (max-width: 799px) {
  .article-story .article-section-chart-split > .wrap {
    column-gap: 1.5rem;
  }
}

@media (min-width: 800px) {
  .article-story .article-section > .wrap {
    grid-template-columns: 1fr 1fr;
    column-gap: 100px;
    align-items: start;
  }

  .article-story .article-section-split > .wrap {
    align-items: center;
  }
}

/* Wide content: half-width copy on top, the block itself full width below. */
.article-story .article-section-wide > .wrap {
  display: flex;
  flex-direction: column;
}

.article-story .article-section-wide > .wrap > .article-section-copy {
  width: 100%;
  max-width: 50%;
}

.article-story .article-section-wide > .wrap > :not(.article-section-copy) {
  margin-top: 0;
  margin-bottom: 0;
}

@media (min-width: 800px) {
  .article-story .article-section-wide > .wrap {
    align-items: stretch;
  }
}

@media (max-width: 700px) {
  .article-story .article-section-wide > .wrap > .article-section-copy {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .article-story .article-section-chart > .wrap > .article-section-copy {
    max-width: 100%;
  }
}

.unemp-chart {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.unemp-chart h2 {
  margin: 0 0 0.7rem;
}

.unemp-chart-lede {
  max-width: 40rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.unemp-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.unemp-chart-title {
  fill: var(--heading);
  font-size: 16px;
  font-weight: 600;
}

.unemp-chart-axis,
.unemp-chart-tick,
.unemp-chart-year,
.unemp-chart-legend {
  fill: var(--muted);
  font-size: 12px;
}

.unemp-chart-val {
  fill: var(--heading);
  font-size: 11px;
  font-weight: 600;
}

.unemp-chart-grid {
  stroke: var(--border);
}

.unemp-chart-fi {
  fill: #8eb8e8;
}

.unemp-chart-eu {
  fill: #1e4a8a;
}

.unemp-chart-tip rect,
.unemp-chart-tip polygon {
  fill: #8eb8e8;
}

.unemp-chart-tip text {
  fill: #0b1a2e;
  font-size: 9px;
  font-weight: 600;
}

.unemp-chart figcaption {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.unemp-chart figcaption a {
  color: var(--accent);
}

.unemp-chart figcaption a:hover {
  color: var(--accent-hover);
}

.example-pie {
  width: 100%;
}

.example-pie-legend {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.example-pie-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.example-pie-swatch {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border-radius: 2px;
}


.article-story .article-section-copy > :first-child {
  margin-top: 0;
}

.article-story .article-section-copy p,
.article-story .article-section-copy li {
  color: var(--muted);
}

.article-story .article-section-copy ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.article-story .article-section-media {
  margin: 0;
  width: 100%;
}

.article-story .article-section-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.article-wire-box {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px dashed var(--border);
  background: var(--wire);
  color: var(--muted);
  font-size: 0.82rem;
}

.article-card .article-wire-box {
  aspect-ratio: 4 / 3;
}

.home-hero-art.article-wire-box:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  width: min(176px, 38vw);
  margin: 0 auto 1.4rem;
}

.article-author-photo.article-wire-box {
  width: 7rem;
  height: 7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.article-wire-chart {
  aspect-ratio: 21 / 8;
  min-height: 12rem;
}

@media (max-width: 799px) {
  .article-story .article-section-media {
    max-width: 16rem;
  }

  .article-story .article-section-split .article-section-media {
    max-width: none;
  }
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: 1.4fr 0.8fr;
  }
}

.docs-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .docs-layout {
    grid-template-columns: 14rem minmax(0, 1fr);
    column-gap: 100px;
    align-items: start;
  }

  .docs-nav {
    position: sticky;
    top: calc(var(--topbar) + 1.2rem);
  }
}

.docs-nav h2 {
  margin: 1.4rem 0 0.45rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.docs-nav > :first-child h2 {
  margin-top: 0;
}

.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav a {
  display: block;
  padding: 0.32rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.docs-nav a:hover,
.docs-nav a[aria-current='page'] {
  color: var(--heading);
}

.docs-main > h1 {
  margin-top: 0;
}

.article-body :where(pre, code) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.article-body code {
  background: var(--input-bg);
  padding: 0.1em 0.35em;
}

.article-body pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  background: var(--input-bg);
  border: 1px solid var(--border);
}

.article-body pre code {
  background: transparent;
  padding: 0;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.footer p {
  margin: 0.35rem 0;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
    margin: 0;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
  }

  .header-search {
    max-width: none;
    margin-left: 0;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list,
  .sub-menu {
    display: block;
    position: static;
    border: 0;
    min-width: 0;
    padding: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }

  .mega-menu::before {
    content: none;
  }

  .sub-menu {
    padding-left: 0.8rem;
  }

  .mega-menu {
    width: auto;
    margin-inline: 0;
  }

  .mega-menu > .sub-item > a {
    border-bottom: 0;
  }

  .sub-item.has-sub > a::after {
    display: none;
  }
}

/* ==========================================================================
   Nav state
   ========================================================================== */

.nav-item.is-current > .nav-link,
.nav-item.is-ancestor > .nav-link,
.sub-menu li.is-current > a {
  color: var(--heading);
}

/* ==========================================================================
   Sidebar layout
   ========================================================================== */

.main-wrap {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0;
  align-items: start;
}

@media (min-width: 800px) {
  .main-wrap {
    grid-template-columns: 15rem minmax(0, 1fr);
    column-gap: 3.5rem;
  }

  .main-wrap.is-right {
    grid-template-columns: minmax(0, 1fr) 15rem;
  }

  .main-wrap.is-right > .sidebar {
    order: 2;
  }

  .sidebar {
    position: sticky;
    top: calc(var(--topbar) + 1.2rem);
  }
}

@media (max-width: 799px) {
  .hide-mobile {
    display: none;
  }
}

.main-content > :first-child {
  margin-top: 0;
}

/* ==========================================================================
   Sidebar widget
   ========================================================================== */

.widget + .widget {
  margin-top: 1.8rem;
}

.widget-title {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-list a {
  display: block;
  padding: 0.32rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.widget-list a:hover,
.widget-list li.is-current > a {
  color: var(--heading);
}

.widget-body {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==========================================================================
   Prev / next navigation
   ========================================================================== */

.post-nav {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }

  .post-nav-next {
    text-align: right;
  }
}

.post-nav a {
  display: block;
  color: var(--muted);
}

.post-nav a:hover .post-nav-title {
  color: var(--heading);
}

.post-nav-dir {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-nav-title {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  color: var(--accent);
}

/* ==========================================================================
   Share row
   ========================================================================== */

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0;
}

.share-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.share-button {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.22rem 0.6rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.share-button:hover {
  color: var(--heading);
  border-color: var(--accent);
}

@media print {
  .share,
  .topbar,
  .post-nav,
  .ad-slot {
    display: none;
  }
}

/* ==========================================================================
   Download card
   ========================================================================== */

.download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  color: var(--text);
}

.download-card + .download-card {
  margin-top: 0.6rem;
}

.download-card:hover {
  border-color: var(--accent);
  color: var(--text);
}

.download-badge {
  flex-shrink: 0;
  border: 1px solid var(--border);
  padding: 0.2rem 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.download-body {
  flex: 1;
  min-width: 0;
}

.download-title {
  display: block;
  color: var(--heading);
  font-size: 0.95rem;
}

.download-note {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.download-meta {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ==========================================================================
   Ad slot
   ========================================================================== */

.ad-slot {
  display: block;
  margin: 2rem 0;
}

.ad-slot.is-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ad-slot.is-placeholder.ad-in-article {
  min-height: 6rem;
}

.ad-slot.is-placeholder.ad-banner {
  min-height: 5.5rem;
}

.ad-slot.is-placeholder.ad-rectangle {
  min-height: 15rem;
}

/* ==========================================================================
   Banner hero
   ========================================================================== */

.banner-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--wire);
}

main > .banner-hero:first-child:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin-top: calc(-1 * var(--topbar));
}

main > .banner-hero:first-child .banner-hero-copy:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding-top: calc(var(--topbar) + 2rem);
}

.banner-hero.is-short {
  min-height: 14rem;
}

.banner-hero.is-tall {
  min-height: 24rem;
}

.banner-hero-img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-hero.is-placeholder {
  place-items: center;
  border-bottom: 1px dashed var(--border);
}

.banner-hero-label {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.banner-hero-copy {
  grid-area: 1 / 1;
  align-self: end;
  width: 100%;
  padding: 2rem 0 1.5rem;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
}

.banner-hero-copy h1 {
  margin: 0;
}

.banner-hero-copy p {
  margin: 0.4rem 0 0;
  color: var(--accent);
}

/* ==========================================================================
   Front page rhythm
   Sections sit in .salary-page.article-story, so they inherit the /page
   spacing and hairline rules. On top of that they alternate black / grey.
   ========================================================================== */

.home main > .home-hero:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: var(--wire);
}

.home .salary-page > section:nth-of-type(odd) {
  background: var(--bg);
}

.home .salary-page > section:nth-of-type(even) {
  background: var(--alt);
}

/* Component sections bring their own margins; drop them at the section edges. */
.home .salary-page > section > .wrap > :first-child,
.home .salary-page > section > .wrap > * > :first-child {
  margin-top: 0;
}

.home .salary-page > section > .wrap > :last-child,
.home .salary-page > section > .wrap > * > :last-child {
  margin-bottom: 0;
}

/* Match the 100px column gap the article sections use. */
@media (min-width: 800px) {
  .home .salary-page > .job-work > .wrap,
  .home .salary-page > .job-skills > .wrap,
  .home .salary-page > .salary-faq > .wrap {
    grid-template-columns: 1fr 1fr;
    column-gap: 100px;
  }
}

/* ==========================================================================
   Module gallery
   ========================================================================== */

.module-demo > :first-child {
  margin-top: 0;
}

.module-demo > :last-child {
  margin-bottom: 0;
}

.module-demo-label {
  margin: 2.2rem 0 0.6rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.module-demo > .module-demo-label:first-child {
  margin-top: 0;
}

/* Frames a module that normally owns a whole section. */
.module-demo-frame {
  border: 1px dashed var(--border);
  padding: 1.5rem;
  overflow: hidden;
}

.module-demo-frame > .article-story > .article-section,
.module-demo-frame > .job-work {
  padding: 0;
}

.module-demo-frame .wrap {
  width: 100%;
}

/* The front page hero, shown inline instead of under the header. */
.home-hero.is-inline:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  min-height: 0;
  margin-top: 0;
  padding: 2.5rem 0;
}

.home-hero.is-inline:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *))::before {
  content: none;
}

.module-hero-article {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .module-hero-article {
    grid-template-columns: minmax(0, 1fr) 16rem;
  }
}

.module-hero-copy > :first-child {
  margin-top: 0;
}

.module-cards-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .module-cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.module-widgets {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .module-widgets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

.module-widgets .widget + .widget {
  margin-top: 0;
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.contact-field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.contact-field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  padding: 0.55rem 0.7rem;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 1px solid var(--accent);
}

.contact-field textarea {
  resize: vertical;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
}

.contact-actions button {
  background: var(--heading);
  border: 1px solid var(--heading);
  color: var(--bg);
  font: inherit;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}

.contact-actions button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-actions .muted {
  font-size: 0.82rem;
}

/* ==========================================================================
   Header gallery
   Five working header layouts. Each bar spans the section edge to edge, while
   its contents sit in the same centred container a real header uses.
   ========================================================================== */

.hdr-intro {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.hdr-note {
  margin: -0.3rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* The gallery renders outside .wrap, so a bar is already full width. */
.module-demo-bleed > .wrap > :first-child {
  margin-top: 0;
}

.hdr-frame {
  margin-bottom: 0.5rem;
}

.hdr-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.hdr-demo {
  position: relative;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
}

.hdr-logo {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hdr-logo:hover {
  color: var(--heading);
}

.hdr-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.4rem;
}

.hdr-nav > a,
.hdr-has-sub > a {
  color: var(--muted);
  white-space: nowrap;
}

.hdr-nav > a:hover,
.hdr-has-sub > a:hover {
  color: var(--heading);
}

.hdr-nav-end {
  justify-content: flex-end;
}

.hdr-nav-start {
  justify-content: flex-start;
}

/* Dropdown, with the same grace delay the site header uses. */
.hdr-has-sub {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hdr-has-sub > a::after {
  content: '';
  display: inline-block;
  width: 0.38em;
  height: 0.38em;
  margin-left: 0.35rem;
  margin-top: -0.2em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.hdr-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 13rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--border);
  z-index: 5;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s ease 0.25s,
    visibility 0s linear 0.4s;
}

.hdr-has-sub:hover > .hdr-sub,
.hdr-has-sub:focus-within > .hdr-sub {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 0.12s ease,
    visibility 0s;
}

.hdr-sub a {
  display: block;
  padding: 0.4rem 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.hdr-sub a:hover {
  color: var(--heading);
}

.hdr-form input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
}

.hdr-form input:focus {
  outline: 1px solid var(--accent);
}

/* 1 - Basic */
.hdr-basic .hdr-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
}

/* 2 - Search */
.hdr-search .hdr-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.hdr-search .hdr-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.hdr-search .hdr-form {
  width: min(16rem, 100%);
}

/* 3 - Minimal */
.hdr-minimal .hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
}

.hdr-burger {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.5rem 0.7rem;
  color: var(--heading);
  cursor: pointer;
}

.hdr-burger:hover {
  border-color: var(--accent);
}

.hdr-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--input-bg);
}

.hdr-panel.is-open {
  display: block;
}

.hdr-panel nav {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0;
}

.hdr-panel a {
  padding: 0.4rem 0;
  color: var(--muted);
}

.hdr-panel a:hover {
  color: var(--heading);
}

.hdr-panel a.is-nested {
  padding-left: 1rem;
  font-size: 0.82rem;
}

/* 4 - Stacked */
.hdr-hello {
  background: var(--wire);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.hdr-hello .hdr-inner {
  padding: 0.55rem 0;
}

.hdr-hello a {
  color: var(--accent);
}

.hdr-hello a:hover {
  color: var(--heading);
}

.hdr-main .hdr-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.hdr-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.hdr-form.is-small {
  width: 9rem;
}

.hdr-meta {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.hdr-meta:hover {
  color: var(--heading);
}

.hdr-cta {
  background: var(--heading);
  color: var(--bg);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.hdr-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.hdr-navbar {
  border-top: 1px solid var(--border);
}

.hdr-navbar .hdr-inner {
  padding: 0.8rem 0;
}

/* 5 - Split */
.hdr-split .hdr-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.4rem;
  padding: 1.3rem 0;
}

@media (max-width: 640px) {
  .hdr-split .hdr-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hdr-split .hdr-nav {
    justify-content: center;
  }

  .hdr-search .hdr-stack {
    align-items: flex-start;
  }

  .hdr-sub {
    position: static;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.2rem 0 0.2rem 0.8rem;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }

  .hdr-has-sub {
    display: block;
  }

  .hdr-has-sub > a::after {
    content: none;
  }
}

/* ==========================================================================
   Landing page modules
   The section vocabulary used by /front-page-3/.
   ========================================================================== */

.landing .salary-page > section:nth-of-type(odd),
.landing .salary-page > section:nth-of-type(even) {
  background: transparent;
}

.btn:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 0.55rem 1.1rem;
  color: var(--heading);
  font-size: 0.88rem;
  text-align: center;
}

.btn:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: var(--accent);
  color: var(--heading);
}

.btn-primary:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: var(--heading);
  border-color: var(--heading);
  color: var(--bg);
}

.btn-primary:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Announcement bar */
.announce {
  display: block;
  background: var(--alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  text-align: center;
}

.announce p {
  margin: 0;
  padding: 0.55rem 0;
  color: var(--muted);
}

.announce a {
  color: var(--accent);
  white-space: nowrap;
}

.announce a:hover {
  color: var(--heading);
}

/* Pinned above the nav row. It stays opaque while the bar below is still
   transparent over the hero. */
body.has-announce {
  --announce-h: 2.4rem;
  /* Redeclared so it recomputes here; the :root value was resolved without the bar. */
  --topbar: calc(var(--header-h) + var(--announce-h));
}

.topbar > .announce {
  display: flex;
  align-items: center;
  min-height: var(--announce-h);
}

.topbar > .announce p {
  padding: 0;
  width: 100%;
}

/* Secondary nav */
.subnav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.subnav > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding: 0.7rem 0;
}

.subnav-title {
  color: var(--heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.subnav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subnav-list a {
  color: var(--muted);
  font-size: 0.85rem;
}

.subnav-list a:hover,
.subnav-list a[aria-current='page'] {
  color: var(--heading);
}

/* Split hero */
.split-hero {
  padding: 4rem 0 3rem;
}

.split-hero:not(.split-hero--rails) > .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-hero:not(.split-hero--rails) > .wrap {
    grid-template-columns: minmax(0, 1fr) 22rem;
    column-gap: 4rem;
  }
}

.split-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.1;
}

.split-hero .lede {
  margin: 0;
  max-width: 34rem;
}

.split-hero-card {
  border: 1px solid var(--border);
  background: var(--alt);
  padding: 1.4rem;
}

.split-hero-card-title {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.split-hero-actions {
  display: grid;
  gap: 0.6rem;
}

.split-hero-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.split-hero-note a {
  color: var(--accent);
}

/* ==========================================================================
   Front page 3 — product header + rails hero
   ========================================================================== */

body.product-home {
  /* Brand colours. The BrandPanel pickers override these on <body>. */
  --gh-bg: #000000;
  --gh-subtle: #c9d1d9;
  --gh-accent: #5cc8ff;
  --gh-hello: #000000;
  --gh-header: #011d28;
  /* Shared site tokens follow the brand colours on this page. */
  --text: var(--gh-subtle);
  --heading: var(--gh-text);
  --muted: var(--gh-muted);
  --wire: color-mix(in srgb, var(--gh-text) 9%, var(--gh-bg));
  --alt: color-mix(in srgb, var(--gh-text) 6%, var(--gh-bg));
  --header-h: 8.6rem;
  --announce-h: 3.4rem;
  --topbar: calc(var(--header-h) + var(--announce-h));
  --header-bg: var(--gh-bg);
  --gh-border: #21262d;
  --gh-green: #1f883d;
  /* A lighter green, not a hue jump toward the accent blue. */
  --gh-green-hover: #2ea043;
  --gh-link: #4493f8;
  --gh-muted: #9198a1;
  --gh-text: #f0f6fc;
  font-family: 'Mona Sans', var(--font);
}

body.product-home .topbar,
body.product-home .topbar.is-scrolled,
body.product-home .topbar:has(.nav.is-open) {
  background: var(--gh-bg);
}

.product-topbar {
  color: var(--gh-text);
}

.hello-bar {
  background: var(--gh-hello);
  color: var(--gh-text);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}

.hello-bar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: var(--announce-h);
  padding-block: 0.95rem;
}

.hello-bar[hidden] {
  display: none;
}

.hello-bar p {
  margin: 0;
  color: inherit;
  max-width: 72rem;
}

.hello-bar a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.hello-bar a:hover {
  color: #fff;
}

.product-header {
  border-bottom: 1px solid var(--gh-border);
}

.product-header-inner,
.product-subnav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-block: 1.15rem;
  box-sizing: border-box;
}

.product-header-inner {
  flex-wrap: nowrap;
}

.product-logo {
  color: #fff;
}

.product-logo:hover {
  color: #fff;
}

.product-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.product-nav .nav-list {
  gap: 0.15rem 1.15rem;
}

.product-nav .nav-link {
  color: var(--gh-text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.product-nav .nav-link:hover,
.product-nav .nav-item:hover > .nav-link,
.product-nav .nav-item:focus-within > .nav-link,
.product-nav .nav-item.is-current > .nav-link,
.product-nav .nav-item.is-ancestor > .nav-link {
  color: #fff;
}

.product-nav .sub-menu {
  background: var(--gh-bg);
  border-color: var(--gh-border);
}

.product-nav .sub-menu a {
  color: var(--gh-subtle);
}

.product-nav .sub-menu a:hover,
.product-nav .sub-menu li.is-current > a {
  color: #fff;
}

.product-nav .mega-menu {
  left: 0;
  right: 0;
  width: auto;
  background: var(--gh-bg);
}

/* The mega panel hangs off the header, not off its item, so it opens below the
   row's bottom padding. The nav and the mega item fill the row, however tall a
   wrapped label or the logo makes it, and the panel's bridge spans the padding:
   the pointer never crosses bare nav on its way down, which would shut the panel. */
@media (min-width: 1200px) {
  .product-nav,
  .product-nav .nav-list {
    align-self: stretch;
  }

  .product-nav .nav-item.is-mega {
    display: flex;
    align-self: stretch;
    align-items: center;
  }
}

.product-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.product-search {
  position: relative;
  width: 17rem;
}

.product-search input {
  width: 100%;
  background: color-mix(in srgb, var(--gh-text) 5%, var(--gh-bg));
  border: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
  border-radius: 6px;
  color: var(--gh-text);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.32rem 2rem 0.32rem 0.75rem;
}

.product-search input:focus {
  outline: 2px solid var(--gh-link);
  outline-offset: -1px;
}

.product-search kbd {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
  border-radius: 4px;
  color: var(--gh-muted);
  font: inherit;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.12rem 0.38rem;
}

.product-signin {
  border: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
  border-radius: 6px;
  color: var(--gh-text);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  white-space: nowrap;
}

.product-signin:hover {
  background: color-mix(in srgb, var(--gh-text) 8%, var(--gh-bg));
  border-color: var(--gh-muted);
  color: #fff;
}

.product-signup {
  background: var(--gh-text);
  border-radius: 6px;
  color: color-mix(in srgb, var(--gh-text) 5%, var(--gh-bg));
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  white-space: nowrap;
}

.product-signup:hover {
  background: #fff;
  color: color-mix(in srgb, var(--gh-text) 5%, var(--gh-bg));
}

.product-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
  border-radius: 6px;
  color: var(--gh-text);
  font: inherit;
  font-size: 0.84rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.product-subnav {
  border-bottom: 1px solid var(--gh-border);
}

.product-subnav-inner {
  gap: 0.55rem 1.1rem;
  overflow-x: auto;
}

.product-subnav-parent {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 0.9rem 0 0;
  border-right: 1px solid var(--gh-border);
  color: var(--gh-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-subnav-parent:hover {
  color: #fff;
}

.product-subnav-current {
  display: inline-flex;
  align-items: center;
  background: var(--gh-border);
  border-radius: 999px;
  color: var(--gh-text);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  white-space: nowrap;
}

.product-subnav-current:hover {
  color: #fff;
}

.product-subnav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-subnav a {
  color: var(--gh-subtle);
  font-size: 0.88rem;
  white-space: nowrap;
}

.product-subnav ul a:hover {
  color: #fff;
}

.split-hero.split-hero--rails {
  padding: 0;
  overflow: visible;
  background: var(--gh-bg);
  color: var(--gh-text);
}

.split-hero--rails .split-hero-rails-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: stretch;
  gap: 0;
}

.split-hero.split-hero--rails .split-hero-copy,
.split-hero.split-hero--rails .split-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  background: transparent;
  padding: 100px 2.5rem;
}

.split-hero.split-hero--rails .split-hero-copy {
  border: 0;
  border-left: 1px solid var(--gh-border);
  border-right: 1px solid var(--gh-border);
}

.split-hero.split-hero--rails .split-hero-card {
  border: 0;
  border-right: 1px solid var(--gh-border);
}

.split-hero--rails .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  color: var(--gh-subtle);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split-hero-mark {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gh-green);
}

.split-hero--rails h1 {
  margin: 0;
  color: var(--gh-text);
  font-family: 'Mona Sans', var(--font);
  font-size: clamp(2.8rem, 5.6vw, 4.85rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.split-hero--rails .lede {
  margin: 0 0 1.4rem;
  color: var(--gh-subtle);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 22rem;
}

.split-hero--rails .split-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.split-hero--rails .btn-split:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: inline-flex;
  align-items: stretch;
}

.split-hero--rails .btn-split .btn-primary:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: var(--gh-green);
  border: 0;
  border-radius: 6px 0 0 6px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.72rem 1.15rem;
}

.split-hero--rails .btn-split .btn-primary:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: var(--gh-green-hover);
  color: #fff;
}

.btn-split-caret:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: var(--gh-green);
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0 6px 6px 0;
  color: #fff;
  padding: 0 0.7rem;
  cursor: pointer;
}

.btn-split-caret:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: var(--gh-green-hover);
}

.btn-split-caret span:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.split-hero--rails .split-hero-actions > .btn:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: var(--gh-border);
  border: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
  border-radius: 6px;
  color: var(--gh-text);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.1rem;
}

.split-hero--rails .split-hero-actions > .btn:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: color-mix(in srgb, var(--gh-text) 16%, var(--gh-bg));
  border-color: var(--gh-muted);
  color: #fff;
}

/* A primary button without the split caret. */
.split-hero--rails .split-hero-actions > .btn-primary:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: var(--gh-green);
  border-color: transparent;
  color: #fff;
}

.split-hero--rails .split-hero-actions > .btn-primary:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: var(--gh-green-hover);
  border-color: transparent;
}

.split-hero--rails .split-hero-note {
  margin: 1.15rem 0 0;
  color: var(--gh-text);
  font-size: 0.88rem;
}

.split-hero--rails .split-hero-note a {
  color: var(--gh-link);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.split-hero--rails .split-hero-note a:hover {
  color: color-mix(in srgb, var(--gh-link) 70%, #fff);
}

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

  .split-hero.split-hero--rails .split-hero-copy,
  .split-hero.split-hero--rails .split-hero-card {
    border: 0;
    padding: 0 0 2.5rem;
  }

  .split-hero.split-hero--rails .split-hero-copy {
    padding: 100px 1.5rem 2.5rem;
  }

  .split-hero.split-hero--rails .split-hero-card {
    padding: 0 0 100px;
  }

  .split-hero--rails h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }
}

/* Up to 1199 px the main menu is a panel behind the menu button (see "Product
   header: mobile menu"). */
@media (max-width: 1199px) {
  .product-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--gh-bg);
    border-bottom: 1px solid var(--gh-border);
    padding: 0.6rem 1.5rem 1rem;
    z-index: 30;
  }

  .product-nav.is-open {
    display: block;
  }

  .product-nav .nav-list,
  .product-nav .sub-menu,
  .product-nav .mega-menu {
    display: block;
    position: static;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .product-nav .nav-item,
  .product-nav .sub-item {
    display: block;
  }

  .product-nav .nav-link,
  .product-nav .sub-menu a {
    display: block;
    padding: 0.45rem 0;
  }

  .product-nav .mega-menu::before {
    content: none;
  }

  .product-search {
    display: none;
  }

  .product-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .product-tools {
    margin-left: 0;
  }
}

/* Showcase band */
.showcase {
  padding: 2.5rem 0 3.5rem;
  background: var(--wire);
}

.showcase.is-tinted {
  background: linear-gradient(115deg, #1b1b22 0%, #14141a 40%, #1a1714 100%);
}

html[data-theme='light'] .showcase.is-tinted {
  background: linear-gradient(115deg, #ececf2 0%, #f4f4f6 40%, #f2eee8 100%);
}

.showcase-media {
  display: grid;
  place-items: center;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  min-height: 22rem;
  border: 1px solid var(--border);
  background: var(--wire);
}

.showcase-media img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Logo wall */
.logo-wall:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.logo-wall-note:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.logo-wall-list:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Feature trio */
.feature-trio > .wrap {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 800px) {
  .feature-trio > .wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-trio-cell + .feature-trio-cell {
    border-left: 1px solid var(--border);
  }
}

.feature-trio-cell {
  padding: 2rem 1.6rem;
}

.feature-trio-cell h3 {
  margin: 0.9rem 0 0.45rem;
  font-size: 1.05rem;
}

.feature-trio-cell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Section intro */
.section-intro {
  max-width: 44rem;
}

.section-intro.is-center {
  margin-inline: auto;
  text-align: center;
}

/* An intro over running text (or a case section's grid): left, like the text,
   never centred. It sits at the content's left edge; a centred text column
   lines it up with itself (src/styles/wp.css). */
.section-intro.is-column {
  margin-inline: 0;
  text-align: left;
}

.section-intro--rails.is-column .lede {
  margin-inline: 0;
}

.section-intro h2,
.section-intro h3 {
  margin: 0 0 0.6rem;
}

.section-intro .lede {
  margin: 0;
}

.landing-section {
  padding: var(--section-y) 0 2rem;
}

.landing-section.is-centred > .wrap {
  text-align: center;
}

/* Feature rows */
.feature-row {
  padding: 1rem 0;
}

.feature-row > .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--border);
  padding: 2rem;
}

@media (min-width: 800px) {
  .feature-row > .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 3rem;
  }

  .feature-row.is-flipped > .wrap > .feature-row-copy {
    order: 2;
  }
}

.feature-row-copy .feature-row-title {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
}

.feature-row-copy p {
  margin: 0;
  color: var(--muted);
}

.feature-row-link {
  margin: 1rem 0 0 !important;
}

.feature-row-link a {
  color: var(--accent);
  font-size: 0.88rem;
}

.feature-row-link a:hover {
  color: var(--heading);
}

.feature-row-media {
  margin: 0;
}

.feature-row-media .article-wire-box {
  aspect-ratio: 16 / 10;
}

/* Case study */
.case-study {
  padding: 2rem 0;
}

.case-study-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--alt);
  padding: 2rem;
}

@media (min-width: 800px) {
  .case-study-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 3rem;
  }
}

.case-study-brand {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-study-copy h3 {
  margin: 0;
  font-size: 1.25rem;
}

.case-study-link {
  margin: 1rem 0 0;
}

.case-study-link a {
  color: var(--accent);
  font-size: 0.88rem;
}

.case-study-media {
  margin: 0;
}

.case-study-media .article-wire-box {
  aspect-ratio: 3 / 2;
}

/* Icon cards */
.icon-cards {
  padding: 0 0 2rem;
}

.icon-cards > .wrap {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 800px) {
  .icon-cards > .wrap.is-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .icon-cards > .wrap.is-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.icon-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.icon-card-label {
  margin: 0.9rem 0 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.icon-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.icon-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.icon-card-link {
  margin: 1rem 0 0 !important;
}

.icon-card-link a {
  color: var(--accent);
  font-size: 0.85rem;
}

/* Pricing */
.pricing {
  padding: 0 0 2rem;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin: 0 auto 2rem;
  width: fit-content;
  border: 1px solid var(--border);
  padding: 0.25rem;
}

.pricing-toggle button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
}

.pricing-toggle button.is-active {
  background: var(--heading);
  color: var(--bg);
}

.pricing-grid {
  display: grid;
  gap: 1.2rem;
  border: 1px solid var(--border);
  padding: 1.2rem;
  background: var(--alt);
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pricing-tier {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 1.3rem;
}

.pricing-tier.is-featured {
  border-color: var(--accent);
}

.pricing-badge {
  margin: 0;
  color: var(--heading);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-tier h3 {
  margin: 0;
  font-size: 1.3rem;
}

.pricing-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  min-height: 2.4em;
}

.pricing-price {
  margin: 0.4rem 0 0;
  color: var(--heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

.pricing-unit {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.pricing-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.pricing-group-title {
  margin: 0.8rem 0 0.4rem;
  color: var(--heading);
  font-size: 0.78rem;
}

.pricing-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.pricing-group li {
  color: var(--muted);
  font-size: 0.8rem;
  padding-left: 1rem;
  position: relative;
}

.pricing-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--accent);
}

.pricing-footnote {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

/* Logo strip */
.logo-strip {
  padding: 2rem 0;
}

.logo-strip-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.logo-strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--alt);
}

.logo-strip-list li {
  flex: 1 1 6rem;
  display: grid;
  place-items: center;
  min-height: 4.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.logo-strip-list li + li {
  border-left: 1px solid var(--border);
}

/* FAQ with category nav */
.faq-accordion {
  padding: var(--section-y) 0 2rem;
}

.faq-accordion h2 {
  margin: 0 0 1.6rem;
}

.faq-accordion-body {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .faq-accordion-body {
    grid-template-columns: 14rem minmax(0, 1fr);
    column-gap: 3rem;
  }
}

.faq-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.faq-nav button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.faq-nav button:hover {
  color: var(--heading);
}

.faq-nav button.is-active {
  border-left-color: var(--accent);
  color: var(--heading);
}

.faq-panel details {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.faq-panel summary {
  cursor: pointer;
  color: var(--heading);
  font-size: 0.95rem;
}

.faq-panel p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footnotes */
.footnotes {
  padding: 2rem 0 3rem;
}

.footnotes ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  display: grid;
  gap: 0.35rem;
}

/* Big footer */
.big-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.big-footer-top {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .big-footer-top {
    grid-template-columns: 18rem minmax(0, 1fr);
    column-gap: 4rem;
  }
}

.big-footer-logo {
  margin: 0 0 0.6rem;
  color: var(--heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.big-footer-brand p {
  margin: 0 0 1rem;
}

.big-footer-columns {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 620px) {
  .big-footer-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.big-footer-column h2 {
  margin: 0 0 0.6rem;
  color: var(--heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.big-footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.big-footer-column a {
  color: var(--muted);
}

.big-footer-column a:hover {
  color: var(--heading);
}

.big-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.big-footer-bottom p {
  margin: 0;
}

.big-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   SERP climb
   A light search results page where one result rises from sixth place to
   first, once. Fixed light colours: it stays white in dark mode.

   The plain rules below are the finished state: result at #1. That is what
   shows without JavaScript, with reduced motion, and after the animation.
   SerpClimb's inline script adds .is-ready before first paint (animation
   loaded, paused on its first frame) and .is-playing when the box scrolls
   into view. Timeline, percent of --serp-duration:
     0-10   hold at the bottom
     10-74  climb one slot at a time; the row it overtakes drops one slot
     74-82  #1 badge pops in, then everything holds
   ========================================================================== */

.showcase-media:has(> .serp) {
  /* One column no wider than the box; an auto column would grow to the content. */
  grid-template-columns: minmax(0, 1fr);
  place-items: stretch;
  overflow: hidden;
  background: #fff;
}

.serp {
  --serp-row: 8.4rem;
  --serp-duration: 7.5s;
  --serp-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --serp-accent: #188038;
  --serp-gutter: 10rem;
  --serp-col: 41rem;
  width: 100%;
  padding: 2rem 0 1.6rem;
  background: #fff;
  color: #202124;
  color-scheme: light;
  font-family: arial, sans-serif;
  text-align: left;
}

/* Search box */
.serp-head {
  display: grid;
  grid-template-columns: var(--serp-gutter) minmax(0, var(--serp-col));
  padding-right: 1.5rem;
  margin-bottom: 2rem;
}

.serp-query {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 3.1rem;
  padding: 0 1.4rem;
  border-radius: 1.6rem;
  background: #f1f3f4;
  color: #202124;
  font-size: 1rem;
}

.serp-search {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  color: #5f6368;
}

.serp-query-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Results */
.serp-board {
  display: grid;
  grid-template-columns: var(--serp-gutter) minmax(0, var(--serp-col));
  padding-right: 1.5rem;
}

.serp-ranks {
  list-style: none;
  margin: 0;
  padding: 0 1.75rem 0 0;
}

.serp-ranks li {
  display: flex;
  justify-content: flex-end;
  height: var(--serp-row);
  padding-top: 0.55rem;
  color: #9aa0a6;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.serp-list {
  position: relative;
  height: calc(var(--serp-row) * 6);
}

.serp-result {
  position: absolute;
  top: 0;
  left: -0.75rem;
  right: -0.75rem;
  display: flex;
  flex-direction: column;
  height: calc(var(--serp-row) - 0.9rem);
  padding: 0.35rem 0.75rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #fff;
  will-change: transform;
}

.serp-result.is-hero {
  z-index: 2;
  background: #f2f8f4;
}

.serp-source {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.serp-favicon {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--fav, #f1f3f4);
  color: var(--fav-ink, #5f6368);
  font-size: 0.8rem;
  font-weight: 700;
}

.serp-source-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.serp-site {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #202124;
  font-size: 0.875rem;
  white-space: nowrap;
}

.serp-url {
  overflow: hidden;
  color: #4d5156;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-hero .serp-source {
  padding-right: 2.8rem;
}

.serp-badge {
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: #e6f4ea;
  color: var(--serp-accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.serp-title {
  display: block;
  margin: 0.4rem 0 0.2rem;
  overflow: hidden;
  color: #1a0dab;
  font-size: 1.25rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serp-snippet {
  display: -webkit-box;
  overflow: hidden;
  color: #4d5156;
  font-size: 0.875rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.serp-pop {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--serp-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Finished state: your result first, the rest one slot down. */
.serp-result.is-hero { transform: translateY(0); }
.serp-row-0 { transform: translateY(calc(var(--serp-row) * 1)); }
.serp-row-1 { transform: translateY(calc(var(--serp-row) * 2)); }
.serp-row-2 { transform: translateY(calc(var(--serp-row) * 3)); }
.serp-row-3 { transform: translateY(calc(var(--serp-row) * 4)); }
.serp-row-4 { transform: translateY(calc(var(--serp-row) * 5)); }

.serp-ranks li:first-child {
  color: var(--serp-accent);
}

/* Armed: animation loaded and paused on its first frame. */
.serp.is-ready .serp-result,
.serp.is-ready .serp-pop,
.serp.is-ready .serp-ranks li:first-child {
  animation-duration: var(--serp-duration);
  animation-timing-function: var(--serp-ease);
  animation-iteration-count: 1;
  animation-fill-mode: both;
  animation-play-state: paused;
}

.serp.is-ready .serp-result.is-hero { animation-name: serp-hero; }
.serp.is-ready .serp-row-0 { animation-name: serp-row-0; }
.serp.is-ready .serp-row-1 { animation-name: serp-row-1; }
.serp.is-ready .serp-row-2 { animation-name: serp-row-2; }
.serp.is-ready .serp-row-3 { animation-name: serp-row-3; }
.serp.is-ready .serp-row-4 { animation-name: serp-row-4; }
.serp.is-ready .serp-pop { animation-name: serp-pop; }

.serp.is-ready .serp-ranks li:first-child {
  animation-name: serp-rank-top;
  animation-timing-function: linear;
}

/* Playing: scrolled into view. Runs once and stays on the last frame. */
.serp.is-playing .serp-result,
.serp.is-playing .serp-pop,
.serp.is-playing .serp-ranks li:first-child {
  animation-play-state: running;
}

@keyframes serp-hero {
  0%, 10%   { transform: translateY(calc(var(--serp-row) * 5)); }
  16%, 24%  { transform: translateY(calc(var(--serp-row) * 4)); }
  30%, 38%  { transform: translateY(calc(var(--serp-row) * 3)); }
  44%, 52%  { transform: translateY(calc(var(--serp-row) * 2)); }
  58%, 66%  { transform: translateY(calc(var(--serp-row) * 1)); }
  74%, 100% { transform: translateY(0); }
}

/* Row n drops a slot while the climbing result passes it. */
@keyframes serp-row-4 {
  0%, 10%   { transform: translateY(calc(var(--serp-row) * 4)); }
  16%, 100% { transform: translateY(calc(var(--serp-row) * 5)); }
}

@keyframes serp-row-3 {
  0%, 24%   { transform: translateY(calc(var(--serp-row) * 3)); }
  30%, 100% { transform: translateY(calc(var(--serp-row) * 4)); }
}

@keyframes serp-row-2 {
  0%, 38%   { transform: translateY(calc(var(--serp-row) * 2)); }
  44%, 100% { transform: translateY(calc(var(--serp-row) * 3)); }
}

@keyframes serp-row-1 {
  0%, 52%   { transform: translateY(calc(var(--serp-row) * 1)); }
  58%, 100% { transform: translateY(calc(var(--serp-row) * 2)); }
}

@keyframes serp-row-0 {
  0%, 66%   { transform: translateY(0); }
  74%, 100% { transform: translateY(calc(var(--serp-row) * 1)); }
}

@keyframes serp-pop {
  0%, 74%   { opacity: 0; transform: scale(0.6); }
  82%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes serp-rank-top {
  0%, 72%   { color: #9aa0a6; }
  78%, 100% { color: #188038; }
}

@media (prefers-reduced-motion: reduce) {
  .serp.is-ready .serp-result,
  .serp.is-ready .serp-pop,
  .serp.is-ready .serp-ranks li:first-child {
    animation: none;
  }
}

@media (max-width: 860px) {
  .serp {
    --serp-gutter: 2.2rem;
  }

  .serp-ranks {
    padding-right: 0.9rem;
  }

  .serp-board,
  .serp-head {
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .serp {
    --serp-row: 9.2rem;
  }

  .serp-title {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Logo marquee + rails feature trio (Front page 3, below the showcase)
   The track holds two identical copies of the logos; sliding it by -50%
   lands exactly where it started, so the loop has no seam.
   ========================================================================== */

.logo-wall-row:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-wall-viewport:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.logo-wall-track:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: logo-marquee var(--logo-marquee-duration, 40s) linear infinite;
}

.logo-wall-track li:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 2.75rem;
}

.logo-wall.is-paused .logo-wall-track:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  animation-play-state: paused;
}

@keyframes logo-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Text placeholders, varied so the row reads as different brands. */
.logo-wall-mark:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--muted);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-wall-mark.is-style-1:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-style: italic;
  font-weight: 800;
}

.logo-wall-mark.is-style-2:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
}

.logo-wall-mark.is-style-3:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.logo-wall-img:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: block;
  width: auto;
  height: 2rem;
  opacity: 0.8;
}

.logo-wall-toggle:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  color: var(--heading);
  cursor: pointer;
}

.logo-wall-toggle:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: var(--accent);
}

.logo-wall-toggle:focus-visible:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.logo-wall-toggle svg:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  width: 0.75rem;
  height: 0.75rem;
}

.logo-wall-toggle .icon-play:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
.logo-wall.is-paused .logo-wall-toggle .icon-pause:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: none;
}

.logo-wall.is-paused .logo-wall-toggle .icon-play:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: block;
}

/* Rails look */
.logo-wall.logo-wall--rails:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding: 0;
  border-bottom: 1px solid var(--gh-border, var(--border));
  background: var(--gh-bg);
}

.logo-wall--rails > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-left: 1px solid var(--gh-border, var(--border));
  border-right: 1px solid var(--gh-border, var(--border));
}

.logo-wall--rails .logo-wall-row:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  min-height: 9.25rem;
  padding: 0 2rem 0 2.5rem;
}

.logo-wall--rails .logo-wall-mark:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--gh-subtle);
}

.logo-wall--rails .logo-wall-toggle:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: var(--gh-border, var(--border));
  background: color-mix(in srgb, var(--gh-text) 9%, var(--gh-bg));
  color: var(--gh-text);
}

.logo-wall--rails .logo-wall-toggle:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: var(--gh-muted);
}

.logo-wall--rails .logo-wall-toggle:focus-visible:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  outline-color: var(--gh-link, var(--gh-link));
}

.feature-trio.feature-trio--rails {
  border-bottom: 1px solid var(--gh-border, var(--border));
  background: var(--gh-bg);
  color: var(--gh-text, var(--text));
}

.feature-trio--rails > .wrap {
  border-bottom: 0;
  border-left: 1px solid var(--gh-border, var(--border));
  border-right: 1px solid var(--gh-border, var(--border));
}

.feature-trio--rails .feature-trio-cell {
  min-height: 22rem;
  padding: 3.6rem 3.5rem 4.5rem;
}

.feature-trio--rails .feature-trio-art {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 7.25rem;
  margin: 0 0 1.5rem;
}

.feature-trio--rails.is-compact-art .feature-trio-art {
  height: 4rem;
  margin: 0 0 1.2rem;
}

.feature-trio--rails .feature-trio-art img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.feature-trio--rails .feature-trio-cell h3 {
  margin: 3.4rem 0 1rem;
  color: var(--gh-text);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-trio--rails .feature-trio-cell p {
  max-width: 17rem;
  color: var(--gh-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (min-width: 800px) {
  .feature-trio--rails .feature-trio-cell + .feature-trio-cell {
    border-left-color: var(--gh-border, var(--border));
  }
}

/* Same breakpoint where the rails hero drops its rules. */
@media (max-width: 960px) {
  .logo-wall--rails > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
  .feature-trio--rails > .wrap {
    border-left: 0;
    border-right: 0;
  }

  .logo-wall--rails .logo-wall-row:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    min-height: 7rem;
    padding: 0;
  }

  .feature-trio--rails .feature-trio-cell {
    min-height: 0;
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 799px) {
  .feature-trio--rails .feature-trio-cell + .feature-trio-cell {
    border-top: 1px solid var(--gh-border, var(--border));
  }

  .feature-trio--rails .feature-trio-cell h3 {
    margin-top: 1.6rem;
  }
}

/* No motion: a still, wrapped row without the copies or the button. */
@media (prefers-reduced-motion: reduce) {
  .logo-wall-track:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    animation: none;
  }

  .logo-wall-track li[aria-hidden='true']:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
  .logo-wall-toggle:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    display: none;
  }

  .logo-wall-viewport:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ==========================================================================
   Workflow intro + rails feature rows (Front page 3, below the feature trio)
   The rows are full-width bands; the copy cell carries the left rail and the
   media panel sits flush against the right one. The app inside the panel is
   drawn with plain CSS shapes, so it needs no image and has no real UI copy.
   ========================================================================== */

.landing-section.landing-section--rails {
  /* Overlap the trio's bottom rule so the green line replaces it. */
  margin-top: -1px;
  padding: 6.5rem 0 5.5rem;
  border-top: 1px solid color-mix(in srgb, var(--gh-accent) 70%, transparent);
  border-bottom: 1px solid var(--gh-border, var(--border));
  background: var(--gh-bg);
}

.section-intro--rails .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  color: var(--gh-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-intro--rails .eyebrow::after {
  content: '';
  width: 0.5rem;
  height: 0.9rem;
  background: var(--gh-accent);
}

.section-intro--rails h2 {
  margin: 0 0 1rem;
  color: var(--gh-text);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-intro--rails .lede {
  max-width: 28rem;
  margin-inline: auto;
  color: var(--gh-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.feature-row.feature-row--rails {
  margin-top: 3rem;
  padding: 0;
  border-top: 1px solid var(--gh-border, var(--border));
  border-bottom: 1px solid var(--gh-border, var(--border));
  background: var(--gh-bg);
  color: var(--gh-text, var(--text));
}

/* The intro's bottom rule is the first row's top rule. */
.landing-section--rails + .feature-row--rails {
  margin-top: 0;
  border-top: 0;
}

.feature-row--rails > .wrap {
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
}

@media (min-width: 800px) {
  .feature-row--rails > .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 0;
  }
}

.feature-row--rails .feature-row-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  border-left: 1px solid var(--gh-border, var(--border));
}

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

.feature-row--rails .feature-row-copy .feature-row-title {
  max-width: 18ch;
  margin: 0 0 1.1rem;
  color: var(--gh-text);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.feature-row--rails .feature-row-copy p {
  max-width: 30rem;
  color: var(--gh-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.feature-row--rails .feature-row-link {
  margin: 2rem 0 0 !important;
}

.feature-row--rails .feature-row-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gh-link);
  font-size: 1.05rem;
  font-weight: 500;
}

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

.feature-row-chevron {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.15s ease;
}

.feature-row--rails .feature-row-link a:hover .feature-row-chevron {
  transform: translateX(2px);
}

.feature-row--rails .feature-row-media {
  position: relative;
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
}

.feature-row-canvas {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #cfe2ff 0%, #d8f0f6 38%, #f5e6f2 72%, #fbf5dc 100%);
}

/* Soft dot texture in two corners. */
.feature-row-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1.4px);
  background-size: 7px 7px;
  -webkit-mask-image:
    radial-gradient(circle at 88% 10%, #000, transparent 42%),
    radial-gradient(circle at 6% 90%, #000, transparent 38%);
  mask-image:
    radial-gradient(circle at 88% 10%, #000, transparent 42%),
    radial-gradient(circle at 6% 90%, #000, transparent 38%);
}

/* Drawn placeholder apps */
.mock {
  position: absolute;
  background: #0d1117;
  border: 1px solid rgba(240, 246, 252, 0.12);
  box-shadow: 0 24px 48px rgba(1, 4, 9, 0.35);
}

.mock i {
  display: block;
}

.mock-line {
  display: block;
  width: 80%;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(240, 246, 252, 0.22);
}

.mock-line.is-short {
  width: 55%;
}

.mock-line.is-faint {
  background: rgba(240, 246, 252, 0.1);
}

.mock-window {
  top: 9%;
  bottom: 9%;
  left: 6.5%;
  right: -1px;
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  border-right: 0;
  border-radius: 0.75rem 0 0 0.75rem;
  overflow: hidden;
}

.mock-side {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem 0.8rem;
  border-right: 1px solid rgba(240, 246, 252, 0.08);
  background: #161b22;
}

.mock-dots {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.mock-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ff5f57;
}

.mock-dots i:nth-child(2) {
  background: #febc2e;
}

.mock-dots i:nth-child(3) {
  background: #28c840;
}

.mock-line.is-active {
  background: rgba(240, 246, 252, 0.4);
}

.mock-label {
  width: 35%;
  height: 0.35rem;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: rgba(240, 246, 252, 0.12);
}

.mock-avatar {
  width: 1rem;
  height: 1rem;
  margin-top: auto;
  border-radius: 50%;
  background: #d29922;
}

.mock-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 12% 8% 8%;
}

.mock-mark {
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid rgba(240, 246, 252, 0.55);
  border-radius: 50%;
}

.mock-input,
.mock-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid rgba(240, 246, 252, 0.14);
  border-radius: 0.5rem;
}

.mock-input {
  gap: 1.1rem;
  padding: 0.9rem;
}

.mock-chips,
.mock-actions {
  display: flex;
  gap: 0.6rem;
}

.mock-chips i {
  width: 3rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(240, 246, 252, 0.15);
}

.mock-actions i {
  width: 4.5rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(240, 246, 252, 0.18);
}

.mock-card {
  gap: 0.55rem;
  margin-top: auto;
  padding: 0.8rem;
}

.mock-list {
  top: 22%;
  bottom: -1px;
  left: 7%;
  right: 7%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 0;
  border-radius: 0.75rem 0.75rem 0 0;
}

.mock-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.mock-list-head .mock-line {
  width: 30%;
  background: rgba(240, 246, 252, 0.4);
}

.mock-btns {
  display: flex;
  gap: 0.5rem;
}

.mock-btns i {
  width: 2.6rem;
  height: 1.3rem;
  border: 1px solid rgba(240, 246, 252, 0.15);
  border-radius: 0.3rem;
}

.mock-btns i.is-solid {
  background: rgba(240, 246, 252, 0.14);
}

.mock-list-row {
  display: grid;
  grid-template-columns: 1.4rem 9rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.mock-list-row .mock-line {
  width: 100%;
}

.mock-list-row .mock-line.is-faint {
  width: 45%;
}

.mock-badge {
  width: 1.1rem;
  height: 0.8rem;
  border-radius: 0.2rem;
  background: #3178c6;
}

.mock-badge.is-c1 {
  background: #8250df;
}

.mock-badge.is-c2 {
  background: #f85149;
}

/* Same breakpoint where the other rails sections drop their rules. */
@media (max-width: 960px) {
  .landing-section.landing-section--rails {
    padding: 4.5rem 0 3.5rem;
  }

  .feature-row--rails .feature-row-copy,
  .feature-row--rails.is-flipped .feature-row-copy {
    padding: 3rem 1.5rem;
    border-left: 0;
    border-right: 0;
  }

  .feature-row--rails .feature-row-media {
    min-height: 24rem;
  }
}

@media (max-width: 640px) {
  .mock-window {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .mock-list-row {
    grid-template-columns: 1.4rem 5rem minmax(0, 1fr);
  }
}

/* ==========================================================================
   Front page 3: one background colour
   Every page-level surface is pure black. Accents stay as they are: buttons,
   inputs, badges, the announcement bar, image placeholders, gradient panels.
   ========================================================================== */

body.product-home {
  --bg: var(--gh-bg);
  --header-bg: var(--gh-bg);
  background: var(--gh-bg);
}

body.product-home .topbar,
body.product-home .topbar.is-scrolled,
body.product-home .topbar:has(.nav.is-open),
body.product-home .product-nav,
body.product-home .sub-menu,
body.product-home .mega-menu,
body.product-home .split-hero.split-hero--rails,
body.product-home .showcase,
body.product-home .showcase.is-tinted,
body.product-home .logo-wall.logo-wall--rails:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
body.product-home .feature-trio.feature-trio--rails,
body.product-home .landing-section.landing-section--rails,
body.product-home .feature-row.feature-row--rails,
body.product-home .case-study-panel,
body.product-home .pricing-grid,
body.product-home .logo-strip-list {
  background: var(--gh-bg);
}

/* ==========================================================================
   Rails case study, icon cards and pricing (Front page 3)
   ========================================================================== */

/* Intro without the green top line, for sections after the first. */
.landing-section.landing-section--rails.is-quiet {
  margin-top: 0;
  border-top: 0;
}

.landing-section--rails.is-compact .section-intro--rails h2 {
  max-width: 14em;
  margin-inline: auto;
}

/* Case study */
.case-study.case-study--rails {
  margin-top: 3rem;
  padding: 0;
  border-top: 1px solid var(--gh-border, var(--border));
  border-bottom: 1px solid var(--gh-border, var(--border));
  background: var(--gh-bg);
}

.case-study--rails .case-study-panel {
  align-items: stretch;
  min-height: 40rem;
  padding: 4rem;
  border: 0;
  border-left: 1px solid var(--gh-border, var(--border));
  border-right: 1px solid var(--gh-border, var(--border));
  border-radius: 0;
  background: var(--gh-bg);
}

@media (min-width: 800px) {
  .case-study--rails .case-study-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 3rem;
  }
}

.case-study--rails .case-study-copy {
  display: flex;
  flex-direction: column;
}

.case-study--rails .case-study-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding-bottom: 1.9rem;
  border-bottom: 1px solid var(--gh-border, var(--border));
  color: var(--gh-muted);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}

.case-study-brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--gh-accent), var(--gh-link), #f78166, #d29922, var(--gh-accent));
}

.case-study--rails .case-study-copy h3 {
  max-width: 30rem;
  margin: auto 0 0;
  padding-top: 3rem;
  color: var(--gh-text);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.case-study-highlight {
  color: var(--gh-accent);
}

.case-study-highlight::before {
  content: ' ';
}

.case-study--rails .case-study-link {
  margin: 2.2rem 0 0;
}

.case-study--rails .case-study-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gh-link);
  font-size: 1rem;
  font-weight: 500;
}

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

.case-study--rails .case-study-link a:hover .feature-row-chevron {
  transform: translateX(2px);
}

.case-study--rails .case-study-media {
  display: flex;
  margin: 0;
}

.case-study--rails .case-study-media .article-wire-box,
.case-study--rails .case-study-media img {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 20rem;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* Icon cards */
.icon-cards.icon-cards--rails {
  padding: 0;
  border-bottom: 1px solid var(--gh-border, var(--border));
  background: var(--gh-bg);
}

.icon-cards--rails > .wrap {
  gap: 0;
  border-left: 1px solid var(--gh-border, var(--border));
  border-right: 1px solid var(--gh-border, var(--border));
}

.icon-cards--rails .icon-card {
  display: flex;
  flex-direction: column;
  min-height: 31rem;
  padding: 4rem 4rem 5rem;
  border: 0;
  background: transparent;
}

.icon-cards--rails .icon-card-art {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 4rem;
  margin: 0 0 1.2rem;
}

.icon-cards--rails .icon-card-art img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 800px) {
  .icon-cards--rails .icon-card + .icon-card {
    border-left: 1px solid var(--gh-border, var(--border));
  }
}

.icon-cards--rails .icon-card .icon-card-label {
  align-self: flex-start;
  margin: 1.6rem 0 1.4rem;
  padding: 0.3rem 0.55rem;
  border-radius: 0.3rem;
  background: var(--gh-border);
  color: var(--gh-text);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

.icon-cards--rails .icon-card h3 {
  max-width: 18ch;
  margin: 0 0 0.9rem;
  color: var(--gh-text);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.icon-cards--rails .icon-card p {
  max-width: 19rem;
  margin: 0 0 2.5rem;
  color: var(--gh-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Inline links in card copy. Card grids (.wp-cards) are one link per card, so they keep their own plain style. */
.icon-cards--rails:not(.wp-cards) .icon-card p a {
  color: var(--gh-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.icon-cards--rails:not(.wp-cards) .icon-card p a:hover {
  text-decoration-thickness: 2px;
}

.icon-card-go {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: auto;
  border: 1px solid color-mix(in srgb, var(--gh-border) 92%, var(--gh-text));
  border-radius: 50%;
  color: var(--gh-subtle);
}

.icon-card-go:hover {
  border-color: var(--gh-muted);
  color: #fff;
}

.icon-card-go:focus-visible {
  outline: 2px solid var(--gh-link, var(--gh-link));
  outline-offset: 2px;
}

.icon-card-go svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* Pricing */
.pricing.pricing--rails {
  padding: 0;
  border-bottom: 1px solid var(--gh-border, var(--border));
  background: var(--gh-bg);
}

.pricing-intro {
  padding: 5.5rem 0 5rem;
  border-bottom: 1px solid var(--gh-border, var(--border));
}

.pricing--rails .pricing-toggle {
  display: flex;
  gap: 0.25rem;
  width: fit-content;
  margin: 2.5rem auto 0;
  padding: 0.3rem;
  border: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
  border-radius: 999px;
}

.pricing--rails .pricing-toggle button {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  color: var(--gh-text);
  font-size: 1rem;
  font-weight: 500;
}

.pricing--rails .pricing-toggle button.is-active {
  background: var(--gh-green);
  color: #fff;
}

.pricing--rails .pricing-toggle button:focus-visible {
  outline: 2px solid var(--gh-link, var(--gh-link));
  outline-offset: 2px;
}

.pricing--rails .pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--gh-border, var(--border));
  border-right: 1px solid var(--gh-border, var(--border));
  background: var(--gh-bg);
}

.pricing--rails .pricing-tier {
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pricing--rails .pricing-tier + .pricing-tier {
  border-top: 1px solid var(--gh-border, var(--border));
}

/* Rows shared across columns, so prices, buttons and dividers line up. */
@media (min-width: 900px) {
  /* Rows: badge strip, name, blurb, price, unit, buttons, features. */
  .pricing--rails .pricing-grid {
    grid-template-columns: repeat(var(--tiers, 4), minmax(0, 1fr));
    grid-template-rows: repeat(6, auto) 1fr;
  }

  .pricing--rails .pricing-tier {
    grid-row: span 7;
    grid-template-rows: subgrid;
  }

  .pricing--rails .pricing-tier-main {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    align-content: start;
  }

  .pricing--rails .pricing-tier + .pricing-tier {
    border-top: 0;
    border-left: 1px solid var(--gh-border, var(--border));
  }
}

.pricing-tier-top {
  display: flex;
  align-items: center;
  min-height: 3.3rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--gh-border, var(--border));
}

.pricing--rails .pricing-tier.is-featured .pricing-tier-top {
  box-shadow: inset 0 1px 0 var(--gh-muted);
}

.pricing--rails .pricing-badge {
  margin: 0;
  color: var(--gh-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-tier-main {
  display: flex;
  flex-direction: column;
  padding: 2.6rem 1.5rem 2.2rem;
}

.pricing--rails .pricing-tier h3 {
  margin: 0 0 1.1rem;
  color: var(--gh-text);
  font-size: 1.75rem;
  font-weight: 500;
}

.pricing--rails .pricing-blurb {
  min-height: 0;
  margin: 0 0 1.6rem;
  color: var(--gh-muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.pricing--rails .pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0;
  color: var(--gh-text);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.pricing-currency {
  color: var(--gh-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.pricing--rails .pricing-unit {
  margin: 0.2rem 0 1.8rem;
  color: var(--gh-muted);
  font-size: 1.05rem;
}

.pricing--rails .pricing-tier-main .btn:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}

.pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing--rails .pricing-tier-main .btn-primary:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border: 1px solid var(--gh-green);
  background: var(--gh-green);
  color: #fff;
}

.pricing--rails .pricing-tier-main .btn-primary:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: color-mix(in srgb, var(--gh-green) 60%, var(--gh-accent));
  background: color-mix(in srgb, var(--gh-green) 60%, var(--gh-accent));
}

.pricing--rails .pricing-tier-main .btn:not(.btn-primary):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
  background: color-mix(in srgb, var(--gh-text) 11%, var(--gh-bg));
  color: var(--gh-text);
}

.pricing--rails .pricing-tier-main .btn:not(.btn-primary):hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: var(--gh-muted);
}

.pricing-tier-features {
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.5rem 2.5rem;
  border-top: 1px solid var(--gh-border, var(--border));
}

.pricing-tier-features .pricing-group + .pricing-group {
  margin-top: 1.75rem;
}

.pricing--rails .pricing-group-title {
  margin: 0;
  color: var(--gh-text);
  font-size: 1.2rem;
  font-weight: 700;
}

.pricing--rails .pricing-group ul {
  gap: 0.55rem;
  margin-top: 1rem;
}

.pricing--rails .pricing-group li {
  padding-left: 1.75rem;
  color: var(--gh-subtle);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Check mark instead of the square bullet. */
.pricing--rails .pricing-group li::before {
  top: 0.3em;
  left: 0.1rem;
  width: 0.75rem;
  height: 0.42rem;
  border-left: 1.6px solid var(--gh-accent);
  border-bottom: 1.6px solid var(--gh-accent);
  background: none;
  transform: rotate(-45deg);
}

.pricing-tier-footnote {
  margin: auto 0 0;
  padding-top: 2.5rem;
  color: var(--gh-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-tier-footnote a {
  color: var(--gh-subtle);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Closes the bottom of the tier grid, like the compare table note. */
.pricing--rails .pricing-footnote {
  margin: 0;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--gh-border, var(--border));
}

/* One tier only (Koodaava SEO konsultti alone since 2026-10-01): the tier is two columns, the name, price and
   button on the left, what the price includes beside it, so it is not a full-width card. */
@media (min-width: 900px) {
  .pricing--rails .pricing-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .pricing--rails .is-single .pricing-tier {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    grid-template-rows: auto 1fr;
  }

  .pricing--rails .is-single .pricing-tier-top {
    grid-column: 1 / -1;
  }

  .pricing--rails .is-single .pricing-tier-main {
    grid-column: 1;
    grid-row: 2;
    grid-template-rows: none;
    align-content: start;
  }

  .pricing--rails .is-single .pricing-tier-features {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 1.75rem 2rem;
    border-left: 1px solid var(--gh-border, var(--border));
  }

  .pricing--rails .is-single .pricing-tier-features .pricing-group + .pricing-group {
    margin-top: 0;
  }

  .pricing--rails .is-single .pricing-tier-footnote {
    grid-column: 1 / -1;
    padding-top: 0.5rem;
  }
}

/* Same breakpoint where the other rails sections drop their rules. */
@media (max-width: 960px) {
  .case-study--rails .case-study-panel,
  .icon-cards--rails > .wrap,
  .pricing--rails .pricing-grid {
    border-left: 0;
    border-right: 0;
  }

  .case-study--rails .case-study-panel {
    min-height: 0;
    padding: 3rem 1.5rem;
  }

  .icon-cards--rails .icon-card {
    min-height: 0;
    padding: 3rem 1.5rem;
  }

  .pricing-intro {
    padding: 4rem 0 3.5rem;
  }

  .pricing--rails .pricing-footnote {
    padding-inline: 0;
  }
}

@media (max-width: 799px) {
  .icon-cards--rails .icon-card + .icon-card {
    border-top: 1px solid var(--gh-border, var(--border));
  }
}

/* ==========================================================================
   Rails footer (Front page 3)
   ========================================================================== */

.big-footer.big-footer--rails {
  padding: 0;
  border-top: 2px solid var(--gh-accent);
  background: var(--gh-bg);
  color: var(--gh-text);
  font-size: 1rem;
}

.big-footer--rails > .wrap {
  padding: 4rem 0 3rem;
}

.big-footer-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 2.2rem;
  border: 2px solid var(--gh-text);
  border-radius: 50%;
  color: var(--gh-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.big-footer-mark:hover {
  border-color: var(--gh-muted);
  color: var(--gh-text);
}

.big-footer-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--gh-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.big-footer-eyebrow::before {
  content: '';
  width: 0.55rem;
  height: 0.95rem;
  background: var(--gh-accent);
}

.big-footer-pitch {
  max-width: 22rem;
  margin: 0 0 1.25rem;
  color: var(--gh-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.big-footer--rails .big-footer-news .btn-primary:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--gh-green);
  border-radius: 0.35rem;
  background: var(--gh-green);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.big-footer--rails .big-footer-news .btn-primary:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: color-mix(in srgb, var(--gh-green) 60%, var(--gh-accent));
  background: color-mix(in srgb, var(--gh-green) 60%, var(--gh-accent));
}

.big-footer--rails .big-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  margin-top: 3rem;
}

/* Each column carries its own rule, so the gaps break the line. */
.big-footer--rails .big-footer-column {
  padding-top: 2.4rem;
  border-top: 1px solid var(--gh-border);
}

.big-footer--rails .big-footer-column h2 {
  margin: 0 0 1.4rem;
  color: var(--gh-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.big-footer--rails .big-footer-column ul {
  gap: 0.95rem;
}

.big-footer--rails .big-footer-column a {
  color: var(--gh-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.big-footer--rails .big-footer-column a:hover {
  color: var(--gh-muted);
}

.big-footer-bar {
  border-top: 1px solid var(--gh-border);
}

.big-footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.4rem 0;
}

.big-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--gh-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.big-footer-legal a {
  color: var(--gh-muted);
}

.big-footer-legal a:hover {
  color: var(--gh-text);
}

.big-footer-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.big-footer--rails .big-footer-social {
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.big-footer-social a {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gh-muted);
}

.big-footer-social a:hover {
  color: var(--gh-text);
}

.big-footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.big-footer-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--gh-border) 92%, var(--gh-text));
  border-radius: 0.4rem;
  color: var(--gh-text);
  font-size: 0.9rem;
}

.big-footer-lang:focus-within {
  outline: 2px solid var(--gh-link, var(--gh-link));
  outline-offset: 2px;
}

.big-footer-lang select {
  padding: 0 1.3rem 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
}

.big-footer-lang select:focus {
  outline: none;
}

.big-footer-lang option {
  background: color-mix(in srgb, var(--gh-text) 5%, var(--gh-bg));
  color: var(--gh-text);
}

.big-footer-globe {
  width: 1rem;
  height: 1rem;
}

.big-footer-caret {
  position: absolute;
  right: 0.6rem;
  width: 0.85rem;
  height: 0.85rem;
  pointer-events: none;
}

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

/* ==========================================================================
   Rails showcase (Front page 3, under the hero)
   Full-width rules above and below; the placeholder spans the vertical rules.
   ========================================================================== */

.showcase.showcase--rails {
  padding: 0;
  border-top: 1px solid var(--gh-border, var(--border));
  border-bottom: 1px solid var(--gh-border, var(--border));
  background: var(--gh-bg);
}

.showcase--rails .showcase-media {
  min-height: 34rem;
  border: 0;
  border-left: 1px solid var(--gh-border, var(--border));
  border-right: 1px solid var(--gh-border, var(--border));
}

@media (max-width: 960px) {
  .showcase--rails .showcase-media {
    min-height: 20rem;
    border-left: 0;
    border-right: 0;
  }
}

/* ==========================================================================
   Product header search: icon first, expands on click (Front page 3)
   The collapsed look only applies once the script adds .is-collapsible.
   ========================================================================== */

.product-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 2rem;
}

/* The icon keeps a 2rem slot so opening the field cannot reflow the header.
   The input grows left over the nav instead. */
.product-search.is-collapsible {
  width: 2rem;
  flex: 0 0 2rem;
}

.product-search.is-collapsible.is-open {
  z-index: 5;
}

/* Animated only after the initial collapse, so page load does not show it shrinking. */
.product-search.is-collapsible.is-animated input {
  transition:
    width 0.2s ease,
    opacity 0.15s ease 0.05s,
    visibility 0s;
}

.product-search input {
  height: 2rem;
  padding: 0 4rem 0 0.75rem;
}

.product-search kbd {
  right: 2.3rem;
}

.product-search-submit {
  position: absolute;
  top: 50%;
  right: 0.2rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--gh-muted, var(--gh-muted));
  cursor: pointer;
  transform: translateY(-50%);
}

.product-search-submit:hover {
  background: var(--gh-border);
  color: var(--gh-text, var(--gh-text));
}

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

.product-search-submit svg {
  width: 1rem;
  height: 1rem;
}

.product-search.is-collapsible input {
  position: absolute;
  top: 0;
  right: 0;
  width: 2rem;
}

.product-search.is-collapsible.is-open input {
  width: 17rem;
}

.product-search.is-collapsible input,
.product-search.is-collapsible kbd {
  transition:
    opacity 0.15s ease 0.05s,
    visibility 0s;
}

.product-search.is-collapsible:not(.is-open) input,
.product-search.is-collapsible:not(.is-open) kbd {
  opacity: 0;
  visibility: hidden;
  transition:
    width 0.2s ease,
    opacity 0.1s ease,
    visibility 0s linear 0.1s;
}

.product-tools:has(.product-search.is-open) .product-lang {
  visibility: hidden;
  pointer-events: none;
}

.product-search.is-collapsible:not(.is-open) .product-search-submit {
  right: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid color-mix(in srgb, var(--gh-border) 85%, var(--gh-text));
  border-radius: 6px;
  color: var(--gh-text, var(--gh-text));
}

.product-search.is-collapsible:not(.is-open) .product-search-submit:hover {
  border-color: var(--gh-muted);
}

/* Product header: the logo row slides away on scroll-down, back on scroll-up. */
.product-topbar.is-animated {
  transition: transform 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .product-topbar.is-animated {
    transition: none;
  }
}

/* ==========================================================================
   Product header on small screens (Front page 3)
   ========================================================================== */

.product-nav-account {
  display: none;
}

/* The sub-nav scrolls sideways; hide the scrollbar, keep the scrolling. */
.product-subnav-inner {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.product-subnav-inner::-webkit-scrollbar {
  display: none;
}

.product-subnav ul {
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  /* Search and menu button grouped on the right. */
  .product-tools {
    margin-left: auto;
  }

  .product-menu-toggle {
    margin-left: 0;
  }

  .product-nav {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Sub-items are always listed in the panel; the dropdown arrow has no job here. */
  .product-nav .nav-item.has-sub > .nav-link::after {
    display: none;
  }
}

/* Phones. From 861 px there is room beside the logo, and the search opens leftwards
   as on wide screens. */
@media (max-width: 860px) {
  .product-search kbd {
    display: none;
  }

  .product-search input {
    padding-right: 2.4rem;
  }

  /* Opened search covers the whole logo row instead of pushing things off. */
  .product-search.is-collapsible.is-open {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 6;
    width: auto;
    flex: none;
    transform: translateY(-50%);
    background: var(--gh-bg);
  }

  .product-search.is-collapsible.is-open input {
    left: 0;
    right: 0;
    width: auto;
  }

  /* Room for the close button, on both sides so the text stays centred. */
  .hello-bar-inner {
    padding-inline: 2.4rem;
  }
}

@media (max-width: 560px) {
  .product-tools .product-signin,
  .product-tools .product-signup {
    display: none;
  }

  .product-nav-account {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gh-border, var(--border));
  }

  .product-nav-account a {
    flex: 1;
    text-align: center;
  }

  .hello-bar {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Brand panel (Front page 3)
   Floating colour editor on the left. Its own colours are fixed so it stays
   readable whatever the page colours are set to.
   ========================================================================== */

.brand-panel {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 0.6rem;
  color: #e6edf3;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
}

.brand-panel button,
.brand-panel input {
  font: inherit;
}

.brand-panel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1rem 0 0.8rem;
  border: 1px solid #3d444d;
  border-radius: 999px;
  background: #151b23;
  color: #e6edf3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.brand-panel-toggle:hover,
.brand-panel.is-open .brand-panel-toggle {
  border-color: #8b949e;
  background: #212830;
}

.brand-panel-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.brand-panel-body {
  width: min(20rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 5.5rem);
  overflow-y: auto;
  padding: 0.9rem;
  border: 1px solid #3d444d;
  border-radius: 12px;
  background: #0d1117;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.brand-panel-body[hidden] {
  display: none;
}

.brand-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.brand-panel-title {
  margin: 0;
  font-weight: 600;
}

.brand-panel-close {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9198a1;
  cursor: pointer;
}

.brand-panel-close:hover {
  background: #212830;
  color: #e6edf3;
}

.brand-panel-close svg {
  width: 1rem;
  height: 1rem;
}

.brand-panel-list {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-panel-row {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) 5.4rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.25rem;
  border-radius: 8px;
}

.brand-panel-row:hover {
  background: #151b23;
}

.brand-panel-swatch {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  cursor: pointer;
}

.brand-panel-swatch input {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid #3d444d;
  border-radius: 6px;
  background: none;
  cursor: pointer;
}

.brand-panel-swatch input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.brand-panel-swatch input::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}

.brand-panel-swatch input::-moz-color-swatch {
  border: 0;
  border-radius: 5px;
}

.brand-panel-name {
  display: grid;
  min-width: 0;
  cursor: pointer;
}

.brand-panel-name code {
  overflow: hidden;
  color: #9198a1;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-panel-hex {
  width: 100%;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid #3d444d;
  border-radius: 6px;
  background: #010409;
  color: #e6edf3;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
  font-size: 0.8rem !important;
  text-transform: lowercase;
}

.brand-panel-hex:focus,
.brand-panel-swatch input:focus-visible,
.brand-panel button:focus-visible {
  outline: 2px solid #4493f8;
  outline-offset: 1px;
}

.brand-panel-hex[aria-invalid] {
  border-color: #f85149;
}

.brand-panel-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #21262d;
}

.brand-panel-button {
  flex: 1;
  height: 2.2rem;
  border: 1px solid #3d444d;
  border-radius: 6px;
  background: #212830;
  color: #e6edf3;
  font-weight: 500;
  cursor: pointer;
}

.brand-panel-button:hover {
  background: #2a3139;
}

.brand-panel-button.is-primary {
  border-color: rgba(240, 246, 252, 0.1);
  background: #238636;
  color: #fff;
}

.brand-panel-button.is-primary:hover {
  background: #2ea043;
}

.brand-panel-status {
  min-height: 1.2em;
  margin: 0.5rem 0 0;
  color: #9198a1;
  font-size: 0.78rem;
}

.brand-panel-status:empty {
  display: none;
}

@media (max-width: 560px) {
  .brand-panel {
    left: 0.75rem;
    bottom: 0.75rem;
  }

  /* Icon only on phones. */
  .brand-panel-toggle {
    width: 2.75rem;
    padding: 0;
    justify-content: center;
  }

  .brand-panel-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ==========================================================================
   Front page 3 on phones
   One left edge for all text (the .wrap gutter), smaller type and spacing,
   and a compact header.
   ========================================================================== */

@media (max-width: 640px) {
  /* Header */
  body.product-home .hello-bar {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  body.product-home .hello-bar-inner {
    min-height: 0;
    padding-block: 0.5rem;
  }

  body.product-home .hello-bar-inner {
    justify-content: flex-start;
    padding-inline: 0;
    text-align: left;
  }

  body.product-home .product-header-inner {
    padding-block: 0.6rem;
  }

  body.product-home .product-logo {
    font-size: 1.15rem;
  }

  body.product-home .product-subnav-inner {
    gap: 0.4rem 0.9rem;
    padding-block: 0.45rem;
  }

  body.product-home .product-subnav a {
    font-size: 0.8rem;
  }

  body.product-home .product-subnav-current {
    padding-block: 0.2rem;
  }

  /* Same left edge everywhere: cells lose their inner side padding. */
  body.product-home .split-hero.split-hero--rails .split-hero-copy,
  body.product-home .feature-trio-cell,
  body.product-home .feature-row-copy,
  body.product-home .case-study-panel,
  body.product-home .icon-card,
  body.product-home .pricing-tier-main,
  body.product-home .pricing-tier-features,
  body.product-home .pricing-tier-footnote {
    padding-inline: 0;
  }

  /* Hero */
  body.product-home .split-hero.split-hero--rails .split-hero-copy {
    padding-top: 2.75rem;
    padding-bottom: 1.5rem;
  }

  body.product-home .split-hero.split-hero--rails .split-hero-card {
    padding-bottom: 3rem;
  }

  body.product-home .split-hero--rails h1 {
    font-size: 2.1rem;
    line-height: 1.1;
  }

  body.product-home .split-hero--rails .split-hero-lede {
    font-size: 1rem;
  }

  body.product-home .split-hero--rails .btn:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 0.875rem;
  }

  /* Section spacing */
  body.product-home .feature-trio-cell {
    padding-block: 1.75rem;
  }

  body.product-home .landing-section--rails {
    padding-top: 3rem;
    padding-bottom: 2.25rem;
  }

  body.product-home .feature-row-copy,
  body.product-home .case-study-panel,
  body.product-home .icon-card {
    padding-block: 2rem;
  }

  body.product-home .pricing-intro {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  body.product-home .pricing-tier-main {
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
  }

  body.product-home .pricing-tier-features {
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
  }

  body.product-home .pricing-tier-footnote {
    padding-top: 1.5rem;
  }

  /* Type */
  body.product-home main h2:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  body.product-home main h3:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 1.1rem;
  }

  body.product-home .case-study-brand {
    font-size: 1.1rem;
    padding-bottom: 1rem;
  }

  body.product-home .case-study-highlight {
    font-size: inherit;
  }

  body.product-home .pricing-price {
    font-size: 1.5rem;
  }

  body.product-home .logo-wall--rails .logo-wall-mark:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 1.1rem;
  }

  body.product-home .big-footer--rails > .wrap {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  body.product-home .big-footer-column {
    padding-top: 1.5rem;
  }

  /* Centred intros would sit off the shared left edge. */
  body.product-home .section-intro--rails.is-center {
    margin-inline: 0;
    text-align: left;
  }

  body.product-home .section-intro--rails.is-center > * {
    margin-inline: 0;
  }
}

/* ==========================================================================
   Product header: mobile menu (Front page 3)
   Full-height panel under the logo row. Top-level items are rows; the ones
   with children open like an accordion (button added by ProductHeader).
   Up to 1199 px (Tapio, 2026-09-25): narrower, the logo, the eight menu items
   and the tools don't fit on one row, and iPads held sideways (1024–1194 px)
   get the menu made for touch.
   ========================================================================== */

.product-nav-expand {
  display: none;
}

/* Headings without a page of their own (src/components/NavList.astro .is-label):
   the group headings in a list are labels, not links. */
.sub-menu a.is-label {
  cursor: default;
}

.sub-menu a.is-label:hover {
  background: transparent;
}

/* Laptop widths: the open panel stops the page scrolling, and with the scrollbar gone
   the logo row would jump sideways under the pointer; keep the scrollbar's room. Only
   when the page had a scrollbar that takes room (the class is set by ProductHeader):
   on a page too short to scroll the room would appear instead. */
@media (min-width: 861px) and (max-width: 1199px) {
  html.has-product-menu.has-scrollbar-gutter {
    scrollbar-gutter: stable;
  }

  /* The panel reaches the window's edges with 50vw below, which not every browser
     counts without the kept room: here from the row's own 1rem margins instead. */
  html.has-scrollbar-gutter body.product-home .product-nav {
    left: -1rem;
    right: -1rem;
  }
}

@media (max-width: 1199px) {
  html.has-product-menu,
  html.has-product-menu body {
    overflow: hidden;
  }

  html.has-product-menu .brand-panel {
    display: none;
  }

  body.product-home .product-menu-toggle {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-color: var(--gh-border);
  }

  body.product-home .product-menu-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .product-menu-line {
    transition: transform 0.2s ease, opacity 0.15s ease;
    transform-box: fill-box;
    transform-origin: center;
  }

  .product-menu-toggle[aria-expanded='true'] .is-top {
    transform: translateY(4px) rotate(45deg);
  }

  .product-menu-toggle[aria-expanded='true'] .is-middle {
    opacity: 0;
  }

  .product-menu-toggle[aria-expanded='true'] .is-bottom {
    transform: translateY(-4px) rotate(-45deg);
  }

  body.product-home .product-nav {
    display: none;
    /* Edge to edge: the nav sits inside the centred .wrap. */
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    max-height: none;
    padding: 0.25rem 1rem 1.5rem;
    border-top: 1px solid var(--gh-border);
    border-bottom: 0;
    background: var(--gh-bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--gh-border) transparent;
  }

  body.product-home .product-nav.is-open {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  /* Rows */
  body.product-home .product-nav .nav-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid var(--gh-border);
  }

  body.product-home .product-nav .nav-link {
    display: block;
    padding: 0.9rem 0;
    color: var(--gh-text);
    font-size: 1rem;
    font-weight: 600;
  }

  body.product-home .product-nav .nav-item.is-current > .nav-link,
  body.product-home .product-nav .nav-item.is-ancestor > .nav-link {
    color: var(--gh-text);
  }

  body.product-home .product-nav .nav-item.has-sub > .nav-link::after {
    display: none;
  }

  /* A heading without a page opens its list when tapped (ProductHeader). */
  body.product-home .product-nav .nav-link.is-label {
    cursor: pointer;
    user-select: none;
  }

  .product-nav-expand {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: -0.5rem;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--gh-muted);
    cursor: pointer;
  }

  .product-nav-expand:hover {
    color: var(--gh-text);
  }

  .product-nav-expand svg {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.2s ease;
  }

  .nav-item.is-expanded > .product-nav-expand svg {
    transform: rotate(180deg);
  }

  /* Child lists */
  body.product-home .product-nav .nav-item > .sub-menu {
    display: none;
    grid-column: 1 / -1;
    padding: 0 0 0.75rem;
  }

  body.product-home .product-nav .nav-item.is-expanded > .sub-menu {
    display: block;
  }

  body.product-home .product-nav .sub-menu .sub-menu {
    display: block;
    margin: 0.1rem 0 0.35rem 0.75rem;
    padding: 0 0 0 0.5rem;
    border-left: 1px solid var(--gh-border);
  }

  body.product-home .product-nav .sub-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--gh-subtle);
    font-size: 0.94rem;
    font-weight: 400;
  }

  body.product-home .product-nav .sub-menu .sub-menu a {
    padding-block: 0.4rem;
    color: var(--gh-muted);
    font-size: 0.88rem;
  }

  body.product-home .product-nav .sub-menu a:hover {
    background: color-mix(in srgb, var(--gh-text) 6%, var(--gh-bg));
    color: var(--gh-text);
  }

  body.product-home .product-nav .sub-menu li.is-current > a {
    background: color-mix(in srgb, var(--gh-text) 9%, var(--gh-bg));
    color: var(--gh-text);
    font-weight: 500;
  }

  /* Mega menu: column titles become small group labels. */
  body.product-home .product-nav .mega-menu > li + li {
    margin-top: 0.5rem;
  }

  body.product-home .product-nav .mega-menu > li > a {
    padding: 0.55rem 0.75rem 0.3rem;
    color: var(--gh-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body.product-home .product-nav .mega-menu > li > a:hover {
    background: transparent;
  }

  body.product-home .product-nav .mega-menu .sub-menu {
    margin: 0;
    padding: 0;
    border-left: 0;
  }

  body.product-home .product-nav .mega-menu .sub-menu a {
    padding-block: 0.45rem;
    color: var(--gh-subtle);
    font-size: 0.94rem;
  }

  /* Account buttons at the end of the panel */
  body.product-home .product-nav-account {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 0;
  }

  body.product-home .product-nav-account a {
    display: grid;
    place-items: center;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--gh-border);
    border-radius: 6px;
    font-size: 0.94rem;
  }

  body.product-home .product-nav-account .product-signup {
    border-color: var(--gh-text);
  }
}

@media (min-width: 561px) and (max-width: 1199px) {
  /* The logo row still has sign in / up here. */
  body.product-home .product-nav-account {
    display: none;
  }
}

/* ==========================================================================
   Rails additions for long-form service pages
   Feature row image placeholder and extra copy, compact icon cards,
   comparison table and FAQ (used by /tekoalyoptimointi/).
   ========================================================================== */

.feature-row--rails .feature-row-extra {
  max-width: 30rem;
  margin-top: 1.5rem;
  color: var(--gh-subtle);
}

.feature-row--rails .feature-row-extra ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-row--rails .feature-row-extra li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1rem;
  line-height: 1.5;
}

.feature-row--rails .feature-row-extra 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-row--rails .feature-row-extra li strong {
  color: var(--gh-text);
  font-weight: 600;
}

.feature-row--rails .feature-row-extra p {
  margin: 1rem 0 0;
  color: var(--gh-muted);
  font-size: 0.95rem;
}

.feature-row-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gh-text) 7%, var(--gh-bg)), color-mix(in srgb, var(--gh-accent) 9%, var(--gh-bg)));
  color: var(--gh-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.feature-row-placeholder span {
  max-width: 22rem;
}

@media (max-width: 799px) {
  .feature-row--rails .feature-row-media:has(.feature-row-placeholder) {
    min-height: 16rem;
  }
}

/* Tapio's portrait in front of the teal square (src/components/TealPortrait.astro): no
   panel behind it, the square on the column's bottom inset, off the row's rule as on
   /google-mainonta/. Beside a text longer than the screen it keeps to the bottom of the
   screen while the text scrolls past, as the guides' demos keep beside theirs, and comes
   to rest at the bottom of the row (overflow visible: a clipping column would hold it). */
.feature-row--rails .feature-row-media.is-portrait {
  display: grid;
  align-content: end;
  padding: 3rem;
  overflow: visible;
  background: transparent;
}

@media (min-width: 800px) {
  .feature-row--rails .feature-row-media.is-portrait {
    border-right: 1px solid var(--gh-border, var(--border));
    border-left: 1px solid var(--gh-border, var(--border));
  }

  .feature-row--rails .feature-row-media.is-portrait > .teal-portrait:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    position: sticky;
    bottom: 3rem;
  }
}

@media (max-width: 799px) {
  .feature-row--rails .feature-row-media.is-portrait {
    min-height: 0;
    padding: 0 1.5rem 3rem;
  }
}

/* Compact icon cards */
.icon-cards--rails.is-compact .icon-card {
  min-height: 0;
  padding: 3rem 3rem 3.5rem;
}

.icon-cards--rails.is-compact .icon-card p {
  margin-bottom: 0;
}

.icon-cards--rails.is-compact + .icon-cards--rails.is-compact .icon-card {
  border-top: 0;
}

/* Comparison table */
.compare-table--rails {
  border-bottom: 1px solid var(--gh-border);
  background: var(--gh-bg);
}

.compare-table--rails > .wrap {
  border-left: 1px solid var(--gh-border);
  border-right: 1px solid var(--gh-border);
}

.compare-table--rails table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-table--rails th,
.compare-table--rails td {
  padding: 1.35rem 2rem;
  border-bottom: 1px solid var(--gh-border);
  color: var(--gh-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.compare-table--rails tbody tr:last-child > * {
  border-bottom: 0;
}

.compare-table--rails th + th,
.compare-table--rails th + td,
.compare-table--rails td + td,
.compare-table--rails td + th {
  border-left: 1px solid var(--gh-border);
}

.compare-table--rails thead th {
  padding-block: 1.6rem;
  color: var(--gh-text);
  font-size: 1.15rem;
  font-weight: 600;
}

.compare-table--rails tbody th {
  width: 22%;
  color: var(--gh-text);
  font-weight: 500;
}

.compare-table--rails .is-highlight {
  background: color-mix(in srgb, var(--gh-accent) 6%, var(--gh-bg));
  color: var(--gh-subtle);
}

.compare-table--rails thead .is-highlight {
  box-shadow: inset 0 3px 0 var(--gh-accent);
  color: var(--gh-text);
}

/* Each comparison row spans the table's gutters in navy and dark mode.
   The pricing service table draws its own full-width rules for its tabs. */
.compare-table--rails:not(.svc):is([data-band='navy'], [data-band='navy'] *, html:not(.theme-light) *) {
  overflow-x: clip;
  & > .wrap { border-inline: 0; }
  & tr { position: relative; }
  & :is(th, td), & tbody tr { border-bottom: 0; }
  & thead tr::after, & tbody tr:not(:last-child)::after {
    content: '';
    position: absolute;
    inset: auto -100vw 0;
    height: 1px;
    background: var(--framework-rule, #21262d);
    pointer-events: none;
  }
}

@media (max-width: 760px) {
  .compare-table--rails > .wrap {
    border: 0;
  }

  .compare-table--rails table,
  .compare-table--rails tbody,
  .compare-table--rails tr,
  .compare-table--rails th,
  .compare-table--rails td {
    display: block;
    width: auto;
  }

  .compare-table--rails thead {
    display: none;
  }

  .compare-table--rails tbody tr {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gh-border);
  }

  .compare-table--rails tbody tr:last-child {
    border-bottom: 0;
  }

  .compare-table--rails tbody th,
  .compare-table--rails tbody td {
    padding: 0;
    border: 0 !important;
  }

  .compare-table--rails tbody th {
    width: auto;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
  }

  .compare-table--rails tbody td {
    padding: 0.75rem 0.9rem;
    border-radius: 6px;
  }

  .compare-table--rails tbody td + td {
    margin-top: 0.5rem;
  }

  .compare-table--rails tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: var(--gh-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .compare-table--rails tbody td:not(.is-highlight) {
    background: color-mix(in srgb, var(--gh-text) 4%, var(--gh-bg));
  }
}

/* FAQ */
.faq-accordion.faq-accordion--rails {
  padding: 6.5rem 0 5.5rem;
  border-top: 1px solid color-mix(in srgb, var(--gh-accent) 70%, transparent);
  border-bottom: 1px solid var(--gh-border);
  background: var(--gh-bg);
}

.faq-accordion--rails .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  color: var(--gh-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq-accordion--rails .eyebrow::after {
  content: '';
  width: 0.5rem;
  height: 0.9rem;
  background: var(--gh-accent);
}

.faq-accordion--rails h2 {
  max-width: 20ch;
  margin: 0 0 1rem;
  color: var(--gh-text);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.faq-accordion--rails .lede {
  max-width: 34rem;
  margin: 0 0 3rem;
  color: var(--gh-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.faq-accordion--rails .faq-nav button {
  padding: 0.55rem 0.9rem;
  border-left-color: var(--gh-border);
  color: var(--gh-muted);
  font-size: 0.95rem;
}

.faq-accordion--rails .faq-nav button:hover {
  color: var(--gh-text);
}

.faq-accordion--rails .faq-nav button.is-active {
  border-left-color: var(--gh-accent);
  color: var(--gh-text);
}

.faq-accordion--rails .faq-panel details {
  padding: 0;
  border-bottom: 1px solid var(--gh-border);
}

.faq-accordion--rails .faq-panel details:first-child {
  border-top: 1px solid var(--gh-border);
}

.faq-accordion--rails .faq-panel summary {
  position: relative;
  padding: 1.3rem 2.5rem 1.3rem 0;
  color: var(--gh-text);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
}

.faq-accordion--rails .faq-panel summary::-webkit-details-marker {
  display: none;
}

.faq-accordion--rails .faq-panel summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.4rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.7px solid var(--gh-muted);
  border-bottom: 1.7px solid var(--gh-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-accordion--rails .faq-panel details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-accordion--rails .faq-panel summary:hover {
  color: color-mix(in srgb, var(--gh-text) 80%, var(--gh-accent));
}

.faq-accordion--rails .faq-panel summary:focus-visible {
  outline: 2px solid var(--gh-link);
  outline-offset: 2px;
}

.faq-accordion--rails .faq-panel p {
  max-width: 44rem;
  margin: 0 0 1rem;
  color: var(--gh-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-accordion--rails .faq-panel details[open] p:last-child {
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .icon-cards--rails.is-compact .icon-card {
    padding: 2rem 0;
  }

  .faq-accordion.faq-accordion--rails {
    padding: 3rem 0 2.5rem;
  }

  .faq-accordion--rails .lede {
    margin-bottom: 2rem;
  }

  .faq-accordion--rails .faq-nav ul {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
  }

  .faq-accordion--rails .faq-nav button {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--gh-border);
    border-radius: 999px;
    white-space: nowrap;
  }

  .faq-accordion--rails .faq-nav button.is-active {
    border-color: var(--gh-accent);
  }

  .faq-accordion--rails .faq-panel summary {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Heading font (Front page 3 and pages using its blocks)
   Bold Arial with tight negative tracking for the logo and page headings. !important because the
   rails blocks each set their own heading weight and tracking.
   ========================================================================== */

body.product-home .product-logo,
body.product-home main :is(h1, h2, h3, h4, h5, h6):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
  font-weight: 700 !important;
}

body.product-home main :is(h1, h2):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  letter-spacing: -2px !important;
}

body.product-home .product-logo {
  letter-spacing: 0;
}

/* More room between the logo and the main menu on wide screens (narrower, the
   menu needs the room: see the 1200–1339 px row in "Tapio's header"). */
@media (min-width: 1340px) {
  body.product-home .product-logo {
    margin-right: 1.75rem;
  }
}

/* -2px would crush small headings; same feel, scaled down. */
body.product-home main :is(h3, h4, h5, h6):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  letter-spacing: -1px !important;
}

body.product-home .product-logo {
  font-size: 1.35rem;
}

/* Bold Arial runs much wider than the original light face. */
body.product-home .split-hero--rails h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.75rem);
  line-height: 1.02;
}

@media (max-width: 640px) {
  body.product-home .split-hero--rails h1 {
    font-size: 2rem;
  }
}

/* Sub-nav divider runs the full height of the row: the row's vertical
   padding sits on the parent link instead of the container. */
.product-subnav .product-subnav-inner {
  align-items: stretch;
  padding-block: 0;
}

.product-subnav .product-subnav-parent {
  padding-block: 1.15rem;
}

.product-subnav .product-subnav-current,
.product-subnav .product-subnav-inner > ul {
  align-self: center;
}

@media (max-width: 640px) {
  body.product-home .product-subnav .product-subnav-inner {
    padding-block: 0;
  }

  body.product-home .product-subnav .product-subnav-parent {
    padding-block: 0.7rem;
  }
}

/* Rails intro, left aligned: for a longer lede such as a definition.
   Wide screens put the heading and the text side by side. */
.section-intro.section-intro--rails.is-left {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

.section-intro--rails.is-left .lede {
  max-width: 40rem;
  margin: 0;
  color: var(--gh-subtle);
  font-size: 1.15rem;
  line-height: 1.65;
}

@media (min-width: 900px) {
  .section-intro--rails.is-left {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    column-gap: 4rem;
  }

  .section-intro--rails.is-left .eyebrow,
  .section-intro--rails.is-left h2 {
    grid-column: 1;
  }

  .section-intro--rails.is-left h2 {
    margin-bottom: 0;
  }

  .section-intro--rails.is-left .lede {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
  }
}

/* ==========================================================================
   Sub-nav liquid pill (product header)
   The script adds .has-pill and one .product-subnav-pill behind the links.
   ========================================================================== */

.product-subnav-pill {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  background: var(--gh-border);
  pointer-events: none;
  transform-origin: center;
}

.product-subnav-inner.has-pill > a,
.product-subnav-inner.has-pill > ul {
  position: relative;
  z-index: 1;
}

.product-subnav-inner.has-pill .product-subnav-current {
  background: transparent;
  color: var(--gh-subtle);
  transition: color 0.25s ease;
}

.product-subnav-inner.has-pill ul {
  gap: 0 0.1rem;
}

.product-subnav-inner.has-pill ul a {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  transition: color 0.25s ease;
}

.product-subnav-inner.has-pill a.is-active {
  color: var(--gh-text);
}

@media (max-width: 640px) {
  body.product-home .product-subnav-inner.has-pill ul a {
    padding: 0.2rem 0.6rem;
  }
}

/* ==========================================================================
   Buttons (product pages)
   Hover: the colour shifts and the button lifts a hair. Press: it settles back.
   ========================================================================== */

body.product-home :is(.btn, .btn-split-caret, .product-signin, .product-signup):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  position: relative;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

@media (hover: hover) {
  body.product-home :is(.btn:not(.is-plain), .product-signin, .product-signup):hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    box-shadow: 0 8px 18px -12px rgba(1, 4, 9, 0.85);
    transform: translateY(-1px);
  }

  body.product-home .btn-split:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    transform: translateY(-1px);
  }
}

body.product-home :is(.btn, .btn-split-caret, .product-signin, .product-signup):active:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
body.product-home .btn-split:active:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  box-shadow: none;
  transform: translateY(0);
  transition-duration: 0.06s;
}

/* The split button lifts as one piece, not in two halves. */
body.product-home .btn-split .btn:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
body.product-home .btn-split .btn-split-caret:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  transform: none;
}

body.product-home .btn-split:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  transition: transform 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  body.product-home :is(.btn, .btn-split-caret, .product-signin, .product-signup, .btn-split):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    transform: none !important;
    transition-duration: 0.01s !important;
  }
}

/* Eyebrows without the green square (hero, section intros, FAQ, footer). */
body.product-home .split-hero-mark,
body.product-home .section-intro--rails .eyebrow::after,
body.product-home .faq-accordion--rails .eyebrow::after,
body.product-home .big-footer-eyebrow::before {
  display: none;
}

/* Header colour: inside the product header and the hero the page background
   token is the header colour, so the bar, dropdowns, search field, phone menu
   and hero all follow. Add .is-header-tone to any other section for the same look. */
body.product-home .product-topbar,
body.product-home .split-hero.split-hero--rails,
body.product-home .is-header-tone {
  --gh-bg: var(--gh-header);
  --gh-border: rgba(255, 255, 255, 0.1);
}

/* White showcase band (rails). */
:where(html.theme-light) body.product-home .showcase.showcase--rails.is-light {
  --gh-bg: #ffffff;
  --gh-border: #d1d9e0;
  --border: #d1d9e0;
  --wire: #f3f4f6;
  --muted: #59636e;
  background: #ffffff;
}

/* White section (rails): add .is-light-tone to a section. The blocks read the
   --gh-* tokens, so redeclaring them recolours everything inside. */
body.product-home .is-light-tone {
  --gh-bg: #ffffff;
  --gh-text: #1f2328;
  --gh-subtle: #3d444d;
  --gh-muted: #59636e;
  --gh-border: #d1d9e0;
  --gh-link: #0969da;
  --gh-accent: #0a8fd6;
  --text: var(--gh-subtle);
  --heading: var(--gh-text);
  --muted: var(--gh-muted);
  --border: var(--gh-border);
  --wire: #f3f4f6;
  background: var(--gh-bg);
  color: var(--gh-subtle);
}

/* Feature row headlines are big enough for the tighter heading tracking. */
body.product-home main .feature-row--rails .feature-row-copy .feature-row-title:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-weight: 700 !important;
  letter-spacing: -2px !important;
}

/* ==========================================================================
   AI answer demo (before / optimisation / after)
   Fixed light palette, like an app screenshot. State classes come from the
   component script: is-armed, is-running, is-typing, is-thinking on the root;
   is-after on the window; is-shown on messages, answer parts, the verdict and
   the optimisation panel. Started with the play button.
   ========================================================================== */

.ai-demo {
  --ai-ink: #1f2328;
  --ai-muted: #59636e;
  --ai-line: #e1e4e8;
  /* White, as the demo sits on the light grey showcase panel. */
  --ai-soft: #ffffff;
  --ai-blue: #0a7cc1;
  --ai-sky: #5cc8ff;
  --ai-red: #cf222e;
  --ai-green: #1a7f37;
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: 100%;
  /* A grid item's automatic minimum is its content, which is wider than a
     phone; without this the demo pushes the page sideways. */
  min-width: 0;
  margin: 0;
  padding: 3rem 1.5rem;
  color: var(--ai-ink);
  font-family: 'Inter', system-ui, sans-serif;
}

/* The whole flex/grid chain down to the bubbles: without this each box keeps
   its content's width as a floor and the demo does not fit a phone. */
.ai-demo :is(
    .ai-demo-window,
    .ai-demo-stage,
    .ai-demo-thread,
    .ai-demo-msg,
    .ai-demo-body,
    .ai-demo-picks,
    .ai-demo-pick,
    .ai-demo-compose,
    .ai-demo-optimize
  ) {
  min-width: 0;
}

/* Window: no frame, the conversation sits on the band itself. */
.ai-demo-window {
  display: flex;
  flex-direction: column;
  width: min(100%, 46rem);
}

.ai-demo-stage {
  position: relative;
  min-height: 25rem;
}

.ai-demo-thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0 4.2rem;
}

/* Messages */
.ai-demo-msg,
.ai-demo-intro,
.ai-demo-pick,
.ai-demo-source,
.ai-demo-verdict {
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1),
    filter 0.35s ease;
}

.ai-demo.is-armed :is(.ai-demo-msg, .ai-demo-intro, .ai-demo-pick, .ai-demo-source):not(.is-shown),
.ai-demo.is-waiting :is(.ai-demo-msg, .ai-demo-intro, .ai-demo-pick, .ai-demo-source) {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(0.6rem);
}

.ai-demo-msg.is-user {
  align-self: flex-end;
  max-width: 80%;
}

.ai-demo-msg.is-user p {
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 18px 18px 4px 18px;
  background: var(--ai-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ai-demo-msg.is-ai {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
}

.ai-demo-avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-sky), var(--ai-blue));
  color: #fff;
}

.ai-demo-avatar svg {
  width: 1rem;
  height: 1rem;
}

.ai-demo.is-thinking .ai-demo-avatar svg {
  animation: ai-demo-spin 1.2s linear infinite;
}

.ai-demo-intro {
  margin: 0.3rem 0 0.6rem;
  font-size: 0.95rem;
}

.ai-demo-picks {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pick;
}

.ai-demo-pick {
  position: relative;
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.75rem 0.55rem 2.3rem;
  border: 1px solid transparent;
  border-radius: 10px;
  counter-increment: pick;
}

.ai-demo-pick::before {
  content: counter(pick);
  position: absolute;
  top: 0.6rem;
  left: 0.75rem;
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--ai-soft);
  color: var(--ai-muted);
  font-size: 0.803rem;
  font-weight: 700;
}

.ai-demo-pick-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.ai-demo-pick-text {
  color: var(--ai-muted);
  font-size: 0.847rem;
  line-height: 1.45;
}

.ai-demo-pick.is-you {
  border-color: rgba(10, 124, 193, 0.35);
  background: linear-gradient(90deg, rgba(92, 200, 255, 0.16), rgba(92, 200, 255, 0.04));
}

.ai-demo-pick.is-you.is-shown {
  animation: ai-demo-glow 1.6s ease-out 0.2s;
}

.ai-demo-pick.is-you::before {
  background: var(--ai-blue);
  color: #fff;
}

.ai-demo-you {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--ai-blue);
  color: #fff;
  font-size: 0.798rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-demo-source {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border: 1px solid var(--ai-line);
  border-radius: 999px;
  color: var(--ai-muted);
  font-size: 0.831rem;
}

.ai-demo-source strong {
  color: var(--ai-blue);
}

.ai-demo-source-icon {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #011d28;
  color: #fff;
}

.ai-demo-source-icon svg {
  width: 0.8rem;
  height: 0.8rem;
}

/* Thinking dots */
.ai-demo-thinking {
  display: none;
  gap: 0.3rem;
  padding: 0.7rem 0;
}

.ai-demo.is-thinking .ai-demo-thinking {
  display: inline-flex;
}

.ai-demo.is-thinking [data-ai-answer] {
  display: none;
}

.ai-demo-thinking i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #9aa4ae;
  animation: ai-demo-bounce 1s ease-in-out infinite;
}

.ai-demo-thinking i:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-demo-thinking i:nth-child(3) {
  animation-delay: 0.3s;
}

/* Verdict stamp */
.ai-demo-verdict {
  position: absolute;
  right: 0;
  bottom: 1rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.ai-demo-verdict:not(.is-shown) {
  opacity: 0;
  transform: translateY(0.6rem) scale(0.97);
}

.ai-demo-verdict.is-bad {
  background: #fff1f0;
  color: var(--ai-red);
}

.ai-demo-verdict.is-good {
  background: #e8f6ff;
  color: var(--ai-blue);
}

.ai-demo-verdict-icon {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.823rem;
  line-height: 1;
}

.ai-demo-verdict.is-bad .ai-demo-verdict-icon {
  background: var(--ai-red);
}

.ai-demo-verdict.is-bad .ai-demo-verdict-icon::before {
  content: '✕';
}

.ai-demo-verdict.is-good .ai-demo-verdict-icon {
  background: var(--ai-blue);
}

.ai-demo-verdict.is-good .ai-demo-verdict-icon::before {
  content: '✓';
}

/* Optimisation panel */
.ai-demo-optimize {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(243, 244, 246, 0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ai-demo-optimize.is-shown {
  opacity: 1;
}

.ai-demo-optimize-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.ai-demo-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(10, 124, 193, 0.25);
  border-top-color: var(--ai-blue);
  border-radius: 50%;
  animation: ai-demo-spin 0.8s linear infinite;
}

.ai-demo-optimize.is-complete .ai-demo-spinner {
  border-color: var(--ai-blue);
  background: var(--ai-blue);
  animation: none;
}

.ai-demo-optimize ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  background: #fff;
  list-style: none;
  box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.2);
}

.ai-demo-optimize li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ai-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.ai-demo-optimize li.is-done {
  color: var(--ai-ink);
}

.ai-demo-tick {
  position: relative;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid #c8d0d8;
  border-radius: 50%;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.4s cubic-bezier(0.34, 1.8, 0.64, 1);
}

.ai-demo-optimize li.is-done .ai-demo-tick {
  border-color: var(--ai-blue);
  background: var(--ai-blue);
  transform: scale(1.1);
}

.ai-demo-optimize li.is-done .ai-demo-tick::after {
  content: '';
  position: absolute;
  top: 0.22rem;
  left: 0.33rem;
  width: 0.28rem;
  height: 0.5rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.ai-demo-progress {
  width: min(100%, 18rem);
  height: 4px;
  border-radius: 4px;
  background: #e1e4e8;
  overflow: hidden;
}

.ai-demo-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ai-sky), var(--ai-blue));
  transition: width 2.6s linear;
}

.ai-demo-optimize.is-shown .ai-demo-progress i {
  width: 100%;
}

/* Composer */
.ai-demo-compose {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  border: 1px solid var(--ai-line);
  border-radius: 999px;
  background: #fff;
}

.ai-demo-input {
  flex: 1;
  min-height: 1.4em;
  overflow: hidden;
  color: var(--ai-ink);
  font-size: 0.92rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ai-demo-input:empty::before {
  content: 'Kysy mitä tahansa';
  color: #9aa4ae;
}

.ai-demo.is-typing .ai-demo-input::after {
  content: '';
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--ai-ink);
  vertical-align: text-bottom;
  animation: ai-demo-caret 0.9s steps(1) infinite;
}

.ai-demo.is-typing .ai-demo-input:empty::before {
  content: none;
}

.ai-demo-send {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #d8dde3;
  color: #fff;
  transition:
    background-color 0.2s ease,
    transform 0.35s cubic-bezier(0.34, 1.8, 0.64, 1);
}

.ai-demo.is-typing .ai-demo-send {
  background: var(--ai-ink);
}

.ai-demo-send.is-pressed {
  transform: scale(0.8);
}

.ai-demo-send svg {
  width: 1rem;
  height: 1rem;
}

/* Start button, centred on the empty conversation */
.ai-demo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.3rem 0.55rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: #011d28;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(1, 29, 40, 0.5);
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.34, 1.8, 0.64, 1);
}

.ai-demo-play[hidden],
.ai-demo-replay[hidden] {
  display: none;
}

.ai-demo-play:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.ai-demo-play:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.ai-demo-play-icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: #5cc8ff;
  color: #011d28;
  animation: ai-demo-pulse 2s ease-out infinite;
}

.ai-demo-play-icon svg {
  width: 1rem;
  height: 1rem;
  margin-left: 2px;
}

/* Replay, under the caption once the demo has run */
.ai-demo-replay {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #c8d0d8;
  border-radius: 999px;
  background: transparent;
  color: var(--ai-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ai-demo-replay:hover {
  border-color: var(--ai-ink);
}

.ai-demo-replay svg {
  width: 0.95rem;
  height: 0.95rem;
}

@keyframes ai-demo-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(92, 200, 255, 0.6);
  }

  100% {
    box-shadow: 0 0 0 14px rgba(92, 200, 255, 0);
  }
}

.ai-demo-caption {
  width: min(100%, 46rem);
  min-height: 1.5em;
  margin: 0.25rem 0 0;
  color: var(--ai-muted);
  font-size: 0.92rem;
  text-align: center;
}

.ai-demo-play:focus-visible,
.ai-demo-replay:focus-visible {
  outline: 2px solid var(--ai-blue);
  outline-offset: 2px;
}

@keyframes ai-demo-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(92, 200, 255, 0.55);
  }

  100% {
    box-shadow: 0 0 0 12px rgba(92, 200, 255, 0);
  }
}

@keyframes ai-demo-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  30% {
    transform: translateY(-0.3rem);
    opacity: 1;
  }
}

@keyframes ai-demo-caret {
  50% {
    opacity: 0;
  }
}

@keyframes ai-demo-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .ai-demo {
    padding: 1.5rem 0;
  }

  .ai-demo-stage {
    min-height: 27rem;
  }

  .ai-demo-thread {
    padding: 0.25rem 0 4.4rem;
  }

  .ai-demo-msg.is-ai {
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.6rem;
  }

  .ai-demo-avatar {
    width: 1.6rem;
    height: 1.6rem;
  }

  .ai-demo-verdict {
    font-size: 0.842rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-demo *,
  .ai-demo *::before,
  .ai-demo *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Tekoälyoptimointi page tweaks (body.page-service)
   !important because each rails block sets its own type, padding and borders.
   ========================================================================== */

body.page-service .split-hero-card {
  border: none !important;
}

body.page-service .split-hero-copy {
  border: none !important;
  padding-left: 0 !important;
}

body.page-service .split-hero-actions {
  display: none !important;
}

/* Body copy: paragraphs, list items and table cells share one style.
   UI labels, prices, the logo row, the demos and the price estimator keep their own. */
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-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

body.page-service p.eyebrow {
  font-family: Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -1px !important;
  text-transform: none !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: 30px !important;
  line-height: 110% !important;
}

@media (max-width: 640px) {
  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: 17px !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: 24px !important;
  }
}

/* AI demo on a dark band: same layout, dark palette. */
.showcase:not(.is-light) .ai-demo {
  --ai-ink: #f0f6fc;
  /* The site's one text colour (wp.css body.page-migrated). */
  --ai-muted: #c9d1d9;
  --ai-line: rgba(255, 255, 255, 0.14);
  --ai-soft: #161b22;
  --ai-blue: #5cc8ff;
}

.showcase:not(.is-light) .ai-demo-pick.is-you::before,
.showcase:not(.is-light) .ai-demo-you,
.showcase:not(.is-light) .ai-demo-verdict.is-good .ai-demo-verdict-icon {
  color: #011d28;
}

.showcase:not(.is-light) .ai-demo-pick.is-you {
  border-color: rgba(92, 200, 255, 0.4);
  background: linear-gradient(90deg, rgba(92, 200, 255, 0.16), rgba(92, 200, 255, 0.03));
}

.showcase:not(.is-light) .ai-demo-verdict.is-bad {
  background: rgba(248, 81, 73, 0.14);
  color: #ff7b72;
}

.showcase:not(.is-light) .ai-demo-verdict.is-bad .ai-demo-verdict-icon {
  background: #f85149;
}

.showcase:not(.is-light) .ai-demo-verdict.is-good {
  background: rgba(92, 200, 255, 0.14);
}

.showcase:not(.is-light) .ai-demo-optimize {
  background: rgba(0, 0, 0, 0.72);
}

.showcase:not(.is-light) .ai-demo-optimize ul,
.showcase:not(.is-light) .ai-demo-compose {
  background: #0d1117;
}

.showcase:not(.is-light) .ai-demo-optimize ul {
  box-shadow: none;
}

.showcase:not(.is-light) :is(.ai-demo-tick, .ai-demo-replay) {
  border-color: rgba(255, 255, 255, 0.25);
}

.showcase:not(.is-light) .ai-demo-optimize li.is-done .ai-demo-tick::after {
  border-color: #011d28;
}

.showcase:not(.is-light) .ai-demo-progress {
  background: rgba(255, 255, 255, 0.12);
}

.showcase:not(.is-light) .ai-demo-send {
  background: #30363d;
}

.showcase:not(.is-light) .ai-demo.is-typing .ai-demo-send {
  background: #f0f6fc;
  color: #0d1117;
}

.showcase:not(.is-light) .ai-demo-play {
  background: #f0f6fc;
  color: #011d28;
  box-shadow: 0 12px 30px -10px rgba(92, 200, 255, 0.35);
}

.showcase:not(.is-light) .ai-demo-source-icon {
  background: #5cc8ff;
  color: #011d28;
}

/* Comparison on white: the highlighted column in the brand blue. */
body.product-home .landing-section.is-light-tone,
body.product-home .compare-table.is-light-tone {
  --gh-accent: var(--gh-header);
}

body.product-home .compare-table--rails.is-light-tone .is-highlight {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: var(--gh-header);
  color: #c9d1d9;
}

body.product-home .compare-table--rails.is-light-tone thead .is-highlight {
  box-shadow: none;
  color: #fff;
}

/* Coloured feature rows sit flush: a black gap between two bands looks broken. */
body.product-home .feature-row--rails + .feature-row--rails:is(.is-light-tone, .is-header-tone):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
body.product-home .feature-row--rails:is(.is-light-tone, .is-header-tone) + .feature-row--rails:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin-top: 0;
}

/* Fine print in the same face, at its own smaller size. */
body.page-service main :is(.pricing-footnote, .pricing-tier-footnote):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif !important;
  font-weight: 400 !important;
}

/* Paragraph and list in a feature row read as one text: same colour. */
body.page-service .feature-row--rails .feature-row-copy p:not(.feature-row-link),
body.page-service .feature-row--rails .feature-row-extra li {
  color: var(--gh-subtle);
}

/* Section intro link and comparison note (service pages). */
.section-intro--rails .section-intro-link {
  margin: 1.25rem 0 0;
}

.section-intro--rails .section-intro-link a {
  color: var(--gh-link);
  font-weight: 600;
}

.section-intro--rails .section-intro-link a:hover {
  text-decoration: underline;
}

.compare-table--rails .compare-table-note {
  margin: 0;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--gh-border);
  color: var(--gh-muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .compare-table--rails .compare-table-note {
    padding-inline: 0;
  }
}

/* FAQ with a single group: no category column. */
.faq-accordion-body.is-single {
  grid-template-columns: minmax(0, 1fr);
}

/* Stacked rails hero: heading, text and button in one column. */
body.product-home .split-hero.split-hero--rails.is-stacked .split-hero-rails-inner {
  grid-template-columns: minmax(0, 1fr);
}

body.product-home .split-hero.split-hero--rails.is-stacked .split-hero-copy {
  padding-bottom: 0;
  border-right: 0;
}

body.product-home .split-hero.split-hero--rails.is-stacked .split-hero-card {
  justify-content: flex-start;
  padding-top: 1.5rem;
  border-left: 1px solid var(--gh-border);
}

body.product-home .split-hero.split-hero--rails.is-stacked .lede {
  max-width: 44rem;
}

body.page-service .split-hero.is-stacked .split-hero-actions {
  display: flex !important;
  margin-top: 1.75rem;
}

@media (max-width: 640px) {
  body.product-home .split-hero.split-hero--rails.is-stacked .split-hero-card {
    padding-top: 1rem;
    border-left: 0;
  }
}

/* Service pages drop the hero copy padding, so the stacked text follows it. */
body.page-service .split-hero.is-stacked .split-hero-card {
  padding-left: 0 !important;
  border-left: 0 !important;
}

/* …but not the front page's hero card, whose text sits inside its own panel
   (2026-09-29; first made on the live site that evening). */
body.is-front .split-hero.is-stacked.wp-opener .split-hero-card {
  padding-inline: 2.5rem !important;
}

/* Stacked hero: title, text and button share one width and one gap. */
body.product-home .split-hero.split-hero--rails.is-stacked {
  --hero-gap: 1.75rem;
}

body.product-home .split-hero.split-hero--rails.is-stacked h1 {
  max-width: 44rem;
  margin: 0 !important;
}

body.product-home .split-hero.split-hero--rails.is-stacked .split-hero-copy {
  padding-bottom: 0 !important;
}

body.product-home .split-hero.split-hero--rails.is-stacked .split-hero-card {
  padding-top: var(--hero-gap) !important;
}

body.product-home .split-hero.split-hero--rails.is-stacked .lede {
  margin: 0 !important;
}

body.product-home .split-hero.split-hero--rails.is-stacked .split-hero-actions {
  margin-top: var(--hero-gap) !important;
}

/* ==========================================================================
   Reference showcase: annotated screenshot (service pages)
   ========================================================================== */

.ref-show {
  --ref-ink: #011d28;
  --ref-arrow: #0a7cc1;
  --ref-green: #1a7f37;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 3.5rem 1.5rem 4rem;
  color: var(--ref-ink);
}

.ref-show-heading {
  margin: 0 0 1.5rem;
  color: var(--ref-ink);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  text-align: center;
}

.ref-show-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.ref-show-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ref-show-label {
  margin: 0;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.ref-show-note.is-top {
  flex-direction: column;
  gap: 0.6rem;
  width: min(100%, 26rem);
  text-align: center;
}

.ref-show-note.is-left {
  justify-content: flex-end;
  text-align: right;
}

.ref-show-note.is-right {
  justify-content: flex-start;
}

/* Search box above the screenshot */
.ref-show-search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.75rem 0.7rem 1.1rem;
  border: 1px solid #dfe1e5;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px -6px rgba(32, 33, 36, 0.28);
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  text-align: left;
}

.ref-show-search-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  color: #70757a;
}

.ref-show-query {
  flex: 1;
  color: #202124;
  font-size: 1.05rem;
}

.ref-show-rank {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--ref-green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Side cards (left icon, right statistic) */
.ref-show-card {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid #e1e4e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px -14px rgba(1, 29, 40, 0.3);
  text-align: left;
}

.ref-show-card-label {
  margin: 0;
  color: #59636e;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ref-show-stat {
  margin: 0;
  color: var(--ref-green);
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: clamp(2.2rem, 3.2vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  white-space: nowrap;
}

.ref-show-chart {
  display: block;
  width: 100%;
  height: 2.2rem;
  stroke: var(--ref-green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.ref-show-chart path {
  vector-effect: non-scaling-stroke;
}

.ref-show-chart-area {
  fill: rgba(26, 127, 55, 0.12);
  stroke: none;
}

.ref-show-card-text {
  margin: 0;
  color: #3d444d;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Button to the live site */
body.product-home .ref-show .ref-show-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 6px;
  background: var(--gh-green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

body.product-home .ref-show .ref-show-link:hover {
  background: var(--gh-green-hover);
  color: #fff;
}

.ref-show-link svg {
  width: 1rem;
  height: 1rem;
}

/* Arrows */
.ref-show-arrow {
  flex-shrink: 0;
  stroke: var(--ref-arrow);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ref-show-note.is-top .ref-show-arrow {
  width: 2.6rem;
  height: 3rem;
}

.ref-show-note:is(.is-left, .is-right) .ref-show-arrow {
  width: 4.2rem;
  height: 2.4rem;
}

/* Screenshot frame */
.ref-show-frame {
  overflow: hidden;
  border: 1px solid #d1d9e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 60px -24px rgba(1, 29, 40, 0.35);
}

.ref-show-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #e1e4e8;
  background: #f6f8fa;
}

.ref-show-bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #d0d7de;
}

.ref-show-bar span {
  margin-left: 0.75rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  color: #59636e;
  font-size: 0.72rem;
}

.ref-show-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.ref-show-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 1.5rem;
  background: #eef1f4;
  color: #59636e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

/* Phones and small tablets: notes around the image, arrows pointing at it. */
@media (max-width: 900px) {
  .ref-show {
    padding: 2.5rem 0 3rem;
  }

  .ref-show-heading {
    margin-bottom: 1rem;
  }

  .ref-show-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .ref-show-frame {
    order: -1;
  }

  .ref-show-note.is-left,
  .ref-show-note.is-right {
    justify-content: flex-start;
    text-align: left;
  }

  .ref-show-note.is-left .ref-show-arrow,
  .ref-show-note.is-right .ref-show-arrow {
    order: -1;
    width: 2.2rem;
    height: 1.8rem;
    transform: rotate(-90deg);
  }

  .ref-show-note.is-right .ref-show-arrow {
    transform: rotate(90deg) scaleY(-1);
  }

  .ref-show-label {
    font-size: 1rem;
  }
}

/* Let the annotated screenshot inherit its chapter's palette. */
body.product-home .showcase.showcase--rails:has(.ref-show) {
  background: var(--gh-bg);
}

body.product-home .showcase--rails:has(.ref-show) .showcase-media {
  border-color: transparent;
  background: transparent;
}

/* Reference showcase: side notes without boxes. */
.ref-show-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Reference showcase: callouts animate in one at a time (script adds is-armed,
   then is-in on each note). */
.ref-show.is-armed .ref-show-note {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.6s ease,
    transform 0.8s cubic-bezier(0.2, 1.2, 0.4, 1);
}

.ref-show.is-armed .ref-show-note.is-left {
  transform: translateX(-2rem);
}

.ref-show.is-armed .ref-show-note.is-right {
  transform: translateX(2rem);
}

.ref-show.is-armed .ref-show-note.is-in {
  opacity: 1;
  transform: none;
}

.ref-show.is-armed :is(.ref-show-arrow, .ref-show-chart) path[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s ease 0.35s;
}

.ref-show.is-armed .ref-show-note.is-in :is(.ref-show-arrow, .ref-show-chart) path[pathLength] {
  stroke-dashoffset: 0;
}

.ref-show.is-armed .ref-show-note.is-in .ref-show-arrow path + path {
  transition-delay: 0.85s;
}

.ref-show.is-armed .ref-show-chart-area {
  opacity: 0;
  transition: opacity 0.6s ease 0.9s;
}

.ref-show.is-armed .ref-show-note.is-in .ref-show-chart-area {
  opacity: 1;
}

.ref-show.is-armed .ref-show-rank {
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) 0.6s;
}

.ref-show.is-armed .ref-show-note.is-in .ref-show-rank {
  transform: scale(1);
}

/* The chart line keeps a fixed stroke width while the chart stretches. */
.ref-show.is-armed .ref-show-chart path[pathLength] {
  vector-effect: none;
}

/* Stacked hero: more air above and below. */
body.product-home .split-hero.split-hero--rails.is-stacked .split-hero-copy {
  padding-top: 170px !important;
}

body.product-home .split-hero.split-hero--rails.is-stacked .split-hero-card {
  padding-bottom: 170px !important;
}

@media (max-width: 640px) {
  body.product-home .split-hero.split-hero--rails.is-stacked .split-hero-copy {
    padding-top: 5rem !important;
  }

  body.product-home .split-hero.split-hero--rails.is-stacked .split-hero-card {
    padding-bottom: 5rem !important;
  }
}

/* Reference showcase: smaller case heading, button half over the image. */
.ref-show-heading {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
}

.ref-show-media {
  position: relative;
  min-width: 0;
  margin-bottom: 1.5rem;
}

body.product-home .ref-show .ref-show-link {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  margin: 0;
  white-space: nowrap;
  box-shadow: 0 12px 28px -10px rgba(1, 29, 40, 0.55);
  translate: -50% 50%;
}

@media (max-width: 900px) {
  .ref-show-media {
    order: -1;
  }
}

/* ==========================================================================
   Reference slider (manual; one ReferenceShowcase per slide)
   ========================================================================== */

.ref-slider {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 2.5rem;
}

.ref-slider-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ref-slider-track::-webkit-scrollbar {
  display: none;
}

.ref-slider-track:focus-visible {
  outline: 2px solid #0a7cc1;
  outline-offset: -2px;
}

.ref-slider-track > * {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.ref-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.ref-slider-controls[hidden] {
  display: none;
}

.ref-slider-arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #d1d9e0;
  border-radius: 50%;
  background: #fff;
  color: #011d28;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.ref-slider-arrow:hover:not(:disabled) {
  border-color: #011d28;
  background: #011d28;
  color: #fff;
}

.ref-slider-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.ref-slider-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
}

.ref-slider-dots {
  display: flex;
  gap: 0.5rem;
}

.ref-slider-dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8d0d8;
  cursor: pointer;
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

.ref-slider-dot[aria-current='true'] {
  width: 1.75rem;
  background: #011d28;
}

:is(.ref-slider-arrow, .ref-slider-dot):focus-visible {
  outline: 2px solid #0a7cc1;
  outline-offset: 3px;
}

/* Reference slider: mouse drag. Snapping is off while the track follows the
   pointer, and text is not selected along the way. */
.ref-slider-track.is-draggable {
  cursor: grab;
}

.ref-slider-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.ref-slider-track.is-dragging * {
  pointer-events: none;
}

/* Rails logo row: small centred caption above the logos. */
.logo-wall--rails .logo-wall-note:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 0;
  padding-top: 2rem;
  color: var(--gh-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.logo-wall--rails:has(.logo-wall-note) .logo-wall-row:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  min-height: 7rem;
}

.ref-slider-track.is-settling {
  scroll-snap-type: none;
}

/* Feature row copy: one even gap between paragraphs and lists. */
.feature-row--rails .feature-row-copy > p:not(.feature-row-link) {
  margin-bottom: 0;
}

.feature-row--rails .feature-row-extra {
  margin-top: 1rem;
}

.feature-row--rails .feature-row-extra > :is(p, ul, ol) {
  margin: 1rem 0 0;
}

.feature-row--rails .feature-row-extra > :is(p, ul, ol):first-child {
  margin-top: 0;
}

/* Coloured feature rows sit flush against the band above (no black strip). */
body.product-home .feature-row.feature-row--rails:is(.is-light-tone, .is-header-tone):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin-top: 0;
}

/* A feature row that opens a topic (level 2): section-size heading and a
   subtitle between the heading and body text in size. */
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 *)) {
  max-width: 20ch;
  font-size: clamp(2rem, 3.4vw, 2.75rem) !important;
  line-height: 1.1 !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: 23px !important;
  line-height: 1.45 !important;
}

@media (max-width: 640px) {
  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: 20px !important;
  }
}

/* Topic-opening feature rows (H2) get more air above and below. */
body.product-home .feature-row--rails .feature-row-copy:has(> h2.feature-row-title) {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

@media (max-width: 640px) {
  body.product-home .feature-row--rails .feature-row-copy:has(> h2.feature-row-title) {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* Text-only trio cells with several paragraphs: room between lines and paragraphs. */
.feature-trio--rails .feature-trio-cell p + p {
  margin-top: 0.9rem;
}

body.page-service main .feature-trio--rails .feature-trio-cell p:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  line-height: 1.7 !important;
}

body.page-service main .feature-trio--rails .feature-trio-cell:not(:has(.feature-icon)):not(:has(.feature-trio-art)) h3:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin-top: 0;
}

body.page-service main .feature-trio--rails .feature-trio-cell:has(.feature-trio-art) h3:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin-top: 0;
}

body.page-service main .feature-trio--rails .feature-trio-cell :is(h3, p):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  max-width: 34rem;
}

/* Rails icon cards, three per row: rules between rows and cards for any count. */
@media (min-width: 800px) {
  .icon-cards--rails > .wrap.is-cols-3 > .icon-card:nth-child(3n + 1) {
    border-left: 0;
  }

  .icon-cards--rails > .wrap.is-cols-3 > .icon-card:nth-child(n + 4) {
    border-top: 1px solid var(--gh-border, var(--border));
  }

  .icon-cards--rails > .wrap.is-cols-3 > .icon-card:last-child:not(:nth-child(3n)) {
    border-right: 1px solid var(--gh-border, var(--border));
  }
}

/* Compact rails cards: two per row below 1100 px. Three to a row leave a title
   154–259 px, narrower than a long Finnish word ("hakukoneoptimointikoulutus" is
   289 px at 22 px): titles ran out of their cards and pages scrolled sideways. */
@media (min-width: 800px) and (max-width: 1099px) {
  .icon-cards--rails.is-compact > .wrap.is-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .icon-cards--rails.is-compact > .wrap.is-cols-3 > .icon-card:nth-child(odd) {
    border-left: 0;
  }

  .icon-cards--rails.is-compact > .wrap.is-cols-3 > .icon-card:nth-child(even) {
    border-left: 1px solid var(--gh-border, var(--border));
  }

  .icon-cards--rails.is-compact > .wrap.is-cols-3 > .icon-card:nth-child(n + 3) {
    border-top: 1px solid var(--gh-border, var(--border));
  }

  /* A card alone in the last row closes its side, as in three columns. */
  .icon-cards--rails.is-compact > .wrap.is-cols-3 > .icon-card:last-child {
    border-right: 0;
  }

  .icon-cards--rails.is-compact > .wrap.is-cols-3 > .icon-card:last-child:nth-child(odd) {
    border-right: 1px solid var(--gh-border, var(--border));
  }
}

/* Cards without an icon start with their label. */
.icon-cards--rails .icon-card:not(:has(.feature-icon)) .icon-card-label {
  margin-top: 0;
}

.icon-cards--rails .icon-card:has(.icon-card-art) .icon-card-label {
  margin-top: 0;
}

/* Icon card tag: clear space before the heading. */
.icon-cards--rails .icon-card .icon-card-label {
  margin-bottom: 1rem !important;
}

/* WordPress kotisivut: the footer in the header blue too. */
body.page-wp .big-footer--rails {
  --gh-bg: var(--gh-header);
  --gh-border: rgba(255, 255, 255, 0.1);
  background: var(--gh-bg);
}

/* ==========================================================================
   WordPress kotisivut: Tapio's header (Source Sans, mega menu)
   ========================================================================== */

body.page-wp .product-logo,
body.page-wp .product-nav .nav-link {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif !important;
}

body.page-wp .product-logo {
  font-weight: 700 !important;
  letter-spacing: -0.3px;
}

@media (min-width: 1200px) {
  body.page-wp .product-nav {
    margin-left: auto;
  }

  body.page-wp .product-nav .nav-list {
    gap: 0.25rem 2.1rem;
  }

  body.page-wp .product-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
  }

  /* Chevron: points right, turns down while its menu is open. */
  body.page-wp .product-nav .nav-item.has-sub > .nav-link::after {
    width: 0.42em;
    height: 0.42em;
    margin-top: 0;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
  }

  body.page-wp .product-nav .nav-item.has-sub:is(:hover, :focus-within) > .nav-link::after {
    transform: rotate(45deg);
  }

  /* The whole header darkens while the mega panel is open. */
  body.page-wp .product-topbar {
    transition: background-color 0.2s ease;
  }

  body.page-wp .product-topbar:has(.nav-item.is-mega:hover, .nav-item.is-mega:focus-within) {
    --gh-bg: var(--wp-header-deep, #00121b);
  }

  /* Mega panel: full width, three columns lined up with the page container. */
  body.page-wp .product-nav .mega-menu {
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 3rem;
    padding: 2.25rem max(1.5rem, calc((100vw - var(--max)) / 2)) 3rem;
    border: 0;
    /* On the black page the shadow doesn't show: a rule ends the panel. */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--wp-header-deep, #00121b);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.5);
  }

  body.page-wp .product-nav .mega-menu > .sub-item > a {
    margin-bottom: 1.1rem;
    padding: 0;
    border: 0;
    color: #fff;
    font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
    font-size: 0.836rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    pointer-events: none;
  }

  body.page-wp .product-nav .mega-menu .sub-menu {
    display: grid;
    gap: 1.35rem;
    margin: 0;
  }

  body.page-wp .product-nav .mega-menu .sub-menu a {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0;
    color: #fff;
    font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
  }

  body.page-wp .product-nav .mega-menu .sub-menu a:hover .nav-label,
  body.page-wp .product-nav .mega-menu .sub-menu a:not(:has(.nav-label)):hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  body.page-wp .nav-icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    color: #fff;
  }

  body.page-wp .nav-text {
    display: grid;
    gap: 0.3rem;
  }

  body.page-wp .nav-desc {
    color: #9aa7b0;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.45;
  }

  /* Ordinary dropdowns (WordPress, Blogi) in the same dark tone. */
  body.page-wp .product-nav .nav-item:not(.is-mega) > .sub-menu {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--wp-header-deep, #00121b);
  }

  body.page-wp .product-nav .nav-item:not(.is-mega) > .sub-menu a {
    color: #fff;
    font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
    font-weight: 600;
  }
}

/* 1200–1339 px has no rule of its own any more (Tapio, 2026-10-22: "the menu is space-evenly here, it should be the same as on the mega-large screens"). The Sept 25 override (menu spread over the room, gaps from 1rem) was made for an eight-item menu that needed ~1340 px at 2.1rem gaps; the five-item menu of 2026-10 fits at 1200 px with the wide screens' 2.1rem gaps and ~270 px to spare (measured with a Windows scrollbar, Finnish and English). Header menu button stays at <=1199 px. */

/* Menu panel (up to 1199 px): descriptions in small print under their links. */
@media (max-width: 1199px) {
  body.page-wp .nav-icon {
    display: none;
  }

  body.page-wp .nav-text {
    display: grid;
    gap: 0.15rem;
  }

  body.page-wp .nav-desc {
    color: var(--gh-muted);
    font-size: 0.836rem;
    line-height: 1.35;
  }
}

/* ==========================================================================
   Comparison marks: check / cross / dash icon with its note beside it
   ========================================================================== */

.compare-table--rails td.has-mark {
  vertical-align: top;
}

.ct-mark {
  --ct-yes: #4ade80;
  --ct-no: #f87171;
  --ct-partial: #fbbf24;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.ct-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.15em;
}

.ct-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.ct-mark.is-yes .ct-icon {
  color: var(--ct-yes);
}

.ct-mark.is-no .ct-icon {
  color: var(--ct-no);
}

.ct-mark.is-partial .ct-icon {
  color: var(--ct-partial);
}

.ct-note {
  min-width: 0;
}

/* Icon rows are lighter than text rows, so they can sit closer together. */
@media (min-width: 761px) {
  .compare-table--rails tr:has(> .has-mark) > * {
    padding-block: 0.8rem;
  }
}

/* The site in pure black (Tapio, 2026-09-24: "Change the bg color of the website to full
   #000"; it was the near-black grey #141516). The header, every section and the footer
   follow this tone, and so do the menus' panels. */
body.page-wp {
  --gh-header: #000000;
  --wp-header-deep: #000000;
}

body.page-wp .ref-show {
  --ref-ink: var(--gh-header);
}

html:not(.theme-light) body.page-wp .ref-show {
  --ref-ink: var(--gh-text);
  --ref-arrow: var(--gh-link);
}
html:not(.theme-light) .ref-show-card-label { color: var(--gh-muted); }
html:not(.theme-light) .ref-show-card-text { color: var(--gh-subtle); }
html:not(.theme-light) .ref-show-stat { color: #56d364; }

body.page-wp .ref-slider-dot[aria-current='true'],
body.page-wp .ref-slider-arrow:hover:not(:disabled) {
  border-color: var(--gh-header);
  background: var(--gh-header);
}

body.page-wp .ref-slider-arrow {
  color: var(--gh-header);
}

