/* ==========================================================================
   Kempu design system
   Ported from Assets/kempu-templates. Shared by the front end and the editor,
   so a block looks the same in the page editor as it does on the page.
   ========================================================================== */

:root,
.editor-styles-wrapper {
  /* Neutrals carry no hue. Every grey here used to be rotated toward orange,
     which is what made a page of hairlines read as homeware rather than as an
     instrument. The ramp is the one Platform itself is drawn in. */
  --ink: #0B0B0C;
  --ink2: #0B0B0C;
  --body: #52525B;
  --muted: #6A6A74;
  --line: #E4E4E7;
  --soft: #F5F5F6;
  --surface: #FFFFFF;
  /* Actions are near-black, exactly as the product draws its primary button.
     --clay keeps its name because fifty rules reach for it; what changed is
     that it is no longer a brand colour, it is the ink an action is set in. */
  --clay: #0E0E10;
  --clay-tint: #F0EEFC;
  /* The one brand colour, taken from Platform's own wordmark and active nav
     rather than invented for the website. It marks interaction — focus, the
     current item, the live thing — and nothing else. It is never a ground. */
  --signal: #6151E5;
  --signal-tint: #F0EEFC;
  --signal-lit: #A9A2F7;
  --focus-ring: var(--signal);
  /* Display type, measured from x.ai: Geist carries its own tightness, so
     headings track at -.01em and never go past medium. Page titles sit a
     touch lighter than section headings. Every heading rule reads these
     rather than keeping its own hand-tuned value. */
  --display-tracking: -.01em;
  --display-weight: 500;
  --display-weight-title: 450;
  /* --surface used to do two jobs. It was the page ground AND the tint every
     cell, pill, figure and column lifted itself with — which worked only
     because the ground was cream, so "the ground" and "a step off the ground"
     happened to be the same value. Neutralising the ground collapsed the
     second job everywhere at once: white cells on a white page.
     They are separate now. --surface is the ground; --panel is a step off it,
     and it is a light wash of the brand rather than a grey, because a page
     already this restrained does not need more grey in it. */
  --panel: #F4F3FD;
  /* The ground a product screen stands on at the top of a page: the panel
     with the signal colour glowing faintly from behind the screen. */
  --stage:
    radial-gradient(70% 60% at 50% 0%, rgba(97, 81, 229, .16), rgba(97, 81, 229, 0) 72%),
    linear-gradient(180deg, #EFEDFC 0%, var(--panel) 100%);
  --panel-hover: #EBE8FA;
  --panel-line: #E4E1F7;
  /* The hairline a full-width panel band carries top and bottom. */
  --panel-edge: inset 0 1px 0 var(--panel-line), inset 0 -1px 0 var(--panel-line);
  --menu-panel: var(--panel);
  --menu-hover: var(--panel-hover);

  /* Plates. A band that carries weight gets a material, not an absence:
     the old cream and peach grounds were fields, and removing them left
     the page blank rather than sharp. These are the same fields with the
     dust taken out — deep, lit from the top edge, and sitting on the page
     rather than tinting it. */
  --plate-dark:
    radial-gradient(120% 140% at 50% -20%, #1E1E27 0%, #0E0E12 48%, #08080A 100%);
  /* The page's closing banner: a photograph rather than a field. Racks in
     the dark with their status lights, the logo's light at work, on the two
     edges, and a still centre the headline sits in. The veil keeps that
     centre ink on any width, where cover crops the racks away. The photo's
     URL comes from inc/presentation.php (--plate-close-photo). */
  --plate-close:
    radial-gradient(56% 90% at 50% 50%, rgba(8, 8, 12, .62), rgba(8, 8, 12, 0) 72%),
    var(--plate-close-photo, none) center / cover no-repeat,
    #050312;
  --plate-soft: var(--panel);
  --plate-gloss: inset 0 1px 0 rgba(255,255,255,.08);
  --plate-lift: 0 28px 70px rgba(8,8,12,.20);
  --ease: cubic-bezier(.2, .9, .3, 1.15);
  --snap: cubic-bezier(.4, 0, .2, 1);
  /* A long out-curve for things that arrive: fast start, unhurried landing. */
  --glide: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1200px;
  --gutter: 60px;
  --radius-panel: 16px;
  --radius-card: 12px;
  --radius-media: 10px;
  --band-edge: 16px;
  --radius-band: 14px;
  /* Colour fields, kept — a band that wants a colour still gets one. These
     are the accent set's own tints rather than a second dusty palette, so
     the field a section sits on and the chip inside it are the same system.
     Clean and cool where the old ones were chalky. */
  --tint-field: var(--panel);
  --pastel-clay: #FBEDE7;
  --pastel-green: #E9F5EC;
  --pastel-blue: #E9F1FB;
  --pastel-violet: #F3ECFC;
  --pastel-amber: #FBF0E1;
  --pastel-rose: #FCEBF1;
  --pastel-teal: #E3F2F1;
  --cell-bg: var(--panel);
  --cell-hover: var(--panel-hover);
  /* A card is outlined on the white page, so that fills belong to bands and
     panels alone and do not stack up with every row of cards. */
  --card-bg: #fff;
  --card-line: var(--line);

  /* The arrow and the plus, as shapes rather than markup, so a core block the
     theme does not render can still wear them. Same paths as kempu_arrow()
     and the .k-acc mark. */
  --k-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='11' viewBox='0 0 13 11' fill='none'%3E%3Cpath d='M7.5 1L12 5.5 7.5 10M12 5.5H1' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --k-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11'%3E%3Cpath d='M0 5h11v1H0z'/%3E%3Cpath d='M5 0h1v11H5z'/%3E%3C/svg%3E");
}

/* A phone's banner is tall and narrow, where cover would keep only the
   empty middle. There the photograph sits along the bottom edge, a little
   wider than the banner, so both racks frame the button; above it the
   photograph fades into its own top colour, so there is no seam. */
@media (max-width: 720px) {
  :root {
    --plate-close:
      radial-gradient(70% 60% at 50% 45%, rgba(8, 8, 12, .55), rgba(8, 8, 12, 0) 75%),
      linear-gradient(#050312 calc(100% - 80vw), rgba(5, 3, 18, 0) calc(100% - 50vw)),
      var(--plate-close-photo, none) center bottom / 125% auto no-repeat,
      #050312;
  }
}

/* --- Base --------------------------------------------------------------- */

/* The whole design measures in border boxes: .k-wrap is 1200 including its
   gutters, not 1200 plus them. Without this every band is 120px too wide. */
*,
*::before,
*::after { box-sizing: border-box; }

/* Sections carry their own vertical rhythm, so the editor's block gap must not
   add a second one between them. Core's rule is written with :where(), so it
   loses to these — while a plain paragraph dropped straight onto a page still
   keeps the block gap it should have. */
.wp-site-blocks > *,
.wp-site-blocks .wp-block-post-content > .k-section,
.wp-site-blocks .wp-block-post-content > .k-hero,
.wp-site-blocks .wp-block-post-content > .k-pagehero,
.wp-site-blocks .wp-block-post-content > .k-cta { margin-block-start: 0; margin-block-end: 0; }

/* Bands set their own measure through .k-wrap, so no editor layout constraint
   may narrow them — otherwise every line of copy wraps a word early. */
.k-section,
.k-hero,
.k-header,
.k-footer,
.wp-block-post-content > .k-section,
.wp-block-post-content > .k-hero { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
/* The Paragraph block's copy. Not a theme.json block style: that compiles to a
   bare `p` and is printed only on pages holding a Paragraph block, so it
   restyled the footer and every component's text on those pages alone. Here it
   always loads, stays inside the content, and any component class outranks it. */
:where(.wp-block-post-content, .k-entry-content, .is-root-container) p { font-size: var(--wp--preset--font-size--medium); line-height: 1.62; color: var(--body); }
h1, h2, h3, h4, h5, h6 { margin: 0; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2 { text-wrap: balance; }

body {
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.wp-site-blocks,
.editor-styles-wrapper {
  overflow-x: clip;
}

.k-mono {
  font-family: var(--wp--preset--font-family--mono);
  font-variant-ligatures: none;
}

/* Typography helpers, matching the reference sheet exactly. */
.k-lede { font-size: 18px; font-weight: 400; line-height: 1.625; color: var(--body); text-wrap: pretty; }
.k-small { font-size: 15px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.k-tiny { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.k-label { font-size: 14px; font-weight: 500; letter-spacing: .005em; color: var(--muted); margin: 0; }
.k-src {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11.5px; letter-spacing: -.01em; color: var(--muted);
}
.k-ink { color: var(--ink); }

/* --- Section band ------------------------------------------------------- */

.k-section {
  --section-space-top: 0px;
  --section-space-bottom: 0px;
  width: 100%;
  padding-top: var(--section-space-top, 0px);
  padding-bottom: var(--section-space-bottom, 0px);
}
.k-section > .k-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.k-section--narrow > .k-wrap { max-width: 840px; }

.k-section--bg-surface { background: var(--panel); box-shadow: var(--panel-edge); }
/* Where two panel bands touch, one hairline separates them, not two. Styles
   that repaint `bg-surface` are not panel bands, and outrank this rule. */
:where(.k-section--bg-surface:not(.is-style-open-story, .is-style-feature-starts, .is-style-legal-notice)) + .k-section--bg-surface { box-shadow: inset 0 -1px 0 var(--panel-line); }
.k-section--bg-clay { background: var(--clay-tint); }
.k-section--bg-dark { background: var(--ink2); color: #fff; --focus-ring: #A9A2F7; }
.k-section--bg-surface { --cell-bg: #fff; --cell-hover: #FAF9FE; --card-line: var(--panel-line); }
.k-section--bg-clay { --cell-bg: rgba(255,255,255,.65); --cell-hover: rgba(255,255,255,.9); }
.k-section--bg-dark { --cell-bg: #242528; --cell-hover: #2E3034; }
.k-section--border-top { border-top: 1px solid var(--line); }
.k-section--border-bottom { border-bottom: 1px solid var(--line); }
.k-section--center { text-align: center; }

/* One reversal set, so every component inherits dark treatment from its band. */
.k-section--bg-dark h1, .k-section--bg-dark h2, .k-section--bg-dark h3, .k-section--bg-dark h4,
.k-section--bg-dark .k-ink { color: #fff; }
.k-section--bg-dark .k-lede, .k-section--bg-dark .k-small, .k-section--bg-dark p { color: #D0D7D2; }
.k-section--bg-dark .k-src, .k-section--bg-dark .k-label, .k-section--bg-dark .k-tiny { color: #B6C4BA; }
.k-section--bg-dark .k-rule, .k-section--bg-dark .k-entry, .k-section--bg-dark .k-feature--ruled { border-color: rgba(255,255,255,.13); }
.k-section--bg-dark .k-check-item { border-color: rgba(255,255,255,.13); }
.k-section--border-top.k-section--bg-dark, .k-section--border-bottom.k-section--bg-dark { border-color: rgba(255,255,255,.13); }

.k-section--bg-clay .k-lede { color: var(--body); }

.k-rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- Controls ----------------------------------------------------------- */

.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 9999px;
  font-size: 14px; font-weight: 500; letter-spacing: -.006em;
  border: 1px solid transparent; white-space: nowrap; cursor: pointer;
  font-family: inherit;
  transition: background-color .18s var(--snap), border-color .18s var(--snap), color .18s var(--snap), transform .18s var(--snap);
}
/* Light buttons carry a faint indigo light under the pointer (--sheen); dark
   ones turn indigo instead, as one flat colour. The pointer's position comes
   from site.js as --mx/--my; until it does, the light sits in the middle, so a
   keyboard focus or a touch still lands on a lit button. */
.k-btn { position: relative; isolation: isolate; overflow: hidden; }
.k-btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), var(--sheen, transparent), transparent 70%);
  opacity: 0; transition: opacity .32s var(--snap); pointer-events: none;
}
.k-btn:is(:hover, :focus-visible)::before { opacity: 1; }
.k-btn:is(.k-btn--line, .k-btn--onlight) { --sheen: rgba(97,81,229,.13); }
.k-btn:active { transform: scale(.97); }
.k-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.k-btn--dark { background: var(--ink); color: #fff; }
.k-btn--dark:hover { background: var(--signal); color: #fff; }
:is(.k-section, .k-hero) .k-btn--dark { background: var(--clay); }
:is(.k-section, .k-hero) .k-btn--dark:hover { background: var(--signal); }
.k-btn--line { background: #fff; color: var(--ink); border-color: #DCD9D4; }
.k-btn--line:hover { border-color: #A9A6A0; color: var(--ink); }
.k-btn--onlight { background: #fff; color: var(--ink); }
.k-btn--onlight:hover { background: #E4E4E7; color: var(--ink); }
.k-btn--ondark { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.k-btn--ondark:hover { border-color: rgba(255,255,255,.7); color: #fff; }
.k-btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }

.k-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.k-actions--center { justify-content: center; }

.k-arw { flex: none; }
/* The arrow hands over rather than nudging: on hover it leaves through the
   right edge of its own box and comes back in from the left. The svg clips its
   path, so the box itself never moves and nothing beside it shifts. One rule
   for every link that carries the arrow. */
@keyframes k-arw-swap {
  0% { transform: translateX(0); }
  44% { transform: translateX(15px); }
  44.01% { transform: translateX(-15px); }
  100% { transform: translateX(0); }
}
.k-arw path { transform-box: view-box; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(a, button, .k-link):is(:hover, :focus-visible) .k-arw path { animation: k-arw-swap .56s var(--snap); }
}
.k-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink);
  /* A hairline that settles under the label on hover. It is the text's own
     decoration, so it follows a wrapped label and skips the arrow. */
  text-decoration: underline 1px transparent; text-underline-offset: .42em;
  transition: text-decoration-color .24s var(--snap), text-underline-offset .24s var(--snap);
}
.k-link:hover { text-decoration-color: currentColor; text-underline-offset: .24em; }
.k-link--clay { color: var(--signal); }
.k-section--bg-dark .k-link { color: #fff; }

/* --- Motion ------------------------------------------------------------- */

/* Crisp, not soft: content arrives sharp and settles on a long out-curve,
   instead of focusing in through a blur. */
.k-rv { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .8s var(--glide); }
.k-rv.is-in { opacity: 1; transform: none; }
@keyframes k-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.k-up { animation: k-rise .5s var(--ease) both; }

/* The editor never hides content behind a scroll reveal. */
.editor-styles-wrapper .k-rv { opacity: 1; transform: none; }
.editor-styles-wrapper .k-up { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .k-rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .k-up, .k-hero-swap, .k-marq-row { animation: none !important; }
  /* State still changes, it just does not travel: no drop-in panel, no
     spring on the current dot, no rule drawing across a row. */
  .k-mega, .k-navitem.is-open .k-mega { translate: none; scale: none; }
  .k-navlink::after,
  .k-entries.is-style-ruled a.k-entry::after,
  .k-shot-link::after { transition: opacity .2s linear; }
  .k-shot-link::after { transform: none; }
}

/* --- Header / navigation ------------------------------------------------ */

/* The template part wraps the bar in a div of its own, and a sticky box may
   only travel inside its parent — a wrapper exactly as tall as the header
   leaves it nowhere to go, so it scrolls away. The wrapper carries no styling
   of its own, so drop its box entirely and let the header stick against the
   page. */
.wp-site-blocks > .wp-block-template-part:has(> .k-header) { display: contents; }

.k-header {
  position: sticky; top: 0; z-index: 60; height: 68px;
  display: flex; align-items: center;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  /* At the top of the page the bar is part of the page; once the page moves
     under it, a crisp hairline and a soft shadow lift it off (site.js sets
     .is-scrolled). */
  border-bottom: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: border-color .3s var(--snap), box-shadow .3s var(--snap);
}
.k-header.is-scrolled {
  border-bottom-color: rgba(17,17,18,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 28px -12px rgba(17,17,18,.12);
}
/* How far through an article the reader is: a signal hairline on the bar's
   lower edge, only where there is an article to read (data-reading). */
.k-header__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--signal); transform-origin: left center;
  transform: scaleX(var(--read, 0)); pointer-events: none;
}
.k-header__inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
}
.k-header__left { display: flex; align-items: center; gap: 26px; }
/* Keep linked page sections clear of the sticky navigation. */
.k-section[id] { scroll-margin-top: 88px; }
.k-header__right { display: flex; align-items: center; gap: 10px; }

/* The logo: Hubot Sans outlines with the square light tilted behind the k
   (inc/brand.php). The k is 19.2px high and the x-height 14.3px, so the gap
   between the light and the k stays a full pixel. The letters follow the text
   colour and the light the signal colour; the site name stays in the link for
   screen readers. The svg inside it only cuts the pulse at that gap. */
.k-wordmark { display: inline-flex; color: var(--ink); line-height: 0; }
.k-wordmark > svg { display: block; width: auto; height: 23.6px; overflow: visible; }
/* Narrow phones: the logo keeps clear of the button beside it. */
@media (max-width: 389px) { .k-header .k-wordmark > svg { height: 20px; } }
.k-wordmark__light,
.k-wordmark__pulse { fill: var(--signal); }
/* In the header the light is live: a copy of it grows out from behind the k
   and fades, every 2.8s. At 1.7 times it is as tall as the k, so it never shows
   above it. Everywhere else, and for anyone who asks for less motion, it rests. */
.k-wordmark__pulse { opacity: 0; transform-box: fill-box; transform-origin: center; }
.k-header .k-wordmark__pulse { animation: k-wordmark-pulse 2.8s ease-out 1.2s infinite; }
@keyframes k-wordmark-pulse {
  0% { opacity: .45; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.7); }
}
@media (prefers-reduced-motion: reduce) { .k-header .k-wordmark__pulse { animation: none; } }
.k-wordmark__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.k-nav { display: flex; align-items: center; gap: 2px; }
.k-nav .k-nav__mobile-only { display: none; }
.k-navitem { position: relative; }
.k-navlink {
  display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: transparent; border: 0; color: var(--ink);
  font-size: 13px; font-weight: 400; font-family: inherit; cursor: pointer;
  transition: background-color .14s var(--snap);
}
.k-navlink:hover { background: var(--soft); color: var(--ink); }
/* The current section wears a dot under its name, the logo's light at nav
   size. It springs in, and gives way while that entry's panel is open. */
.k-navlink { position: relative; }
.k-navlink::after {
  content: ""; position: absolute; left: 50%; bottom: 1px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--signal); transform: scale(0);
  transition: transform .42s var(--ease);
}
.k-navlink:is(.is-active, .is-current)::after { transform: scale(1); }
.k-navitem.is-open > .k-navlink::after { transform: scale(0); }
/* Where the reader is. The bar lights the one entry holding this page's
   section; inside a panel the group holding the page and the link to it
   light too. Colour only on the bar, so it never reads as an open panel. */
.k-navlink:is(.is-active, .is-current) { color: var(--signal); }

.k-mega {
  position: absolute; left: -10px; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px -26px rgba(17,17,18,.26), 0 2px 6px -2px rgba(17,17,18,.06);
  padding: 10px; opacity: 0; visibility: hidden; z-index: 90;
  /* It drops into place from just under the bar and fades back out, rather
     than blinking. translate and scale, not transform, so a centred panel's
     own translateX is left alone. */
  translate: 0 -8px; scale: .985; transform-origin: 50% 0;
  transition: opacity .18s var(--snap), translate .3s var(--snap), scale .3s var(--snap), visibility 0s linear .18s;
}
.k-navitem.is-open .k-mega {
  opacity: 1; visibility: visible; translate: 0 0; scale: 1;
  transition: opacity .2s var(--snap), translate .5s var(--glide), scale .5s var(--glide), visibility 0s;
}
/* What the panel holds follows it in, a few milliseconds apart (--i is the
   entry's place in its panel, set by site.js). */
@keyframes k-menu-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1081px) and (prefers-reduced-motion: no-preference) {
  .k-navitem.is-open .k-mega [data-k-i] { animation: k-menu-in .46s var(--glide) both; animation-delay: calc(var(--i, 0) * 22ms + 40ms); }
}
.k-navitem.is-open > .k-navlink { background: var(--signal-tint); color: var(--signal); }
.k-mega::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.k-mega__grid { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.k-mega__grid--norail { grid-template-columns: minmax(0, 1fr); }

/* The rail is attached to the panel's edge and shares its corners, the same
   way the tinted group does on the other side. One language for both menus:
   a tinted rail on one edge, untinted columns beside it. */
.k-rail {
  background: var(--menu-panel);
  border: 0;
  margin: -10px 0 -10px -10px;
  padding: 30px 18px 30px 28px;
  border-radius: 18px 0 0 18px;
  display: flex;
  flex-direction: column;
}
.k-rail h4 { letter-spacing: -.01em; margin: 0; text-wrap: balance; }

/* The screen of the link being pointed at, in place of the introduction
   (site.js): the same window onto a screen as a picture card, every screen
   at one scale (--media-w), its top-left corner showing. */
.k-rail { position: relative; }
/* filter, not opacity: the panel's entrance animation holds opacity. */
.k-rail__intro { transition: filter .2s var(--snap), translate .3s var(--glide); }
.k-rail.is-previewing .k-rail__intro { filter: opacity(0); translate: 0 -4px; pointer-events: none; }
.k-rail__preview {
  position: absolute; top: 30px; left: 28px; right: 18px; z-index: 1;
  display: flex; flex-direction: column; gap: 12px; height: var(--preview-h, 200px);
  opacity: 0; translate: 0 6px; pointer-events: none;
  transition: opacity .2s var(--snap), translate .35s var(--glide);
}
.k-rail.is-previewing .k-rail__preview { opacity: 1; translate: 0 0; }
.k-rail__preview-frame {
  position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 10px;
  background: #fff; box-shadow: 0 0 0 1px var(--panel-line), 0 14px 30px -18px rgba(37, 30, 120, .35);
}
.k-rail__preview-frame img {
  display: block; width: calc(var(--media-w, 2240) * .2px); max-width: none; height: auto;
  opacity: 0; transition: opacity .25s var(--snap);
}
.k-rail__preview-frame.is-loaded img { opacity: 1; }
.k-rail__preview-name { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .k-rail__intro, .k-rail__preview { translate: none !important; }
}
@media (max-width: 1080px) {
  .k-rail__preview { display: none; }
  .k-rail.is-previewing .k-rail__intro { filter: none; translate: none; }
}

/* A destination in a menu column shows where it goes as it is pointed at:
   the site's arrow slides in at the end of the row. */
.k-mega-group :is(.k-rail__row, .k-mega__item:not(:has(p)))::after {
  content: ""; flex: none; align-self: center; width: 13px; height: 11px; margin-left: auto;
  background: currentColor;
  -webkit-mask: var(--k-arrow) center / contain no-repeat; mask: var(--k-arrow) center / contain no-repeat;
  opacity: 0; translate: -6px 0;
  transition: opacity .16s var(--snap), translate .3s var(--glide);
}
.k-mega-group :is(.k-rail__row, .k-mega__item:not(:has(p))):is(:hover, :focus-visible)::after { opacity: .7; translate: 0 0; }
@media (max-width: 1080px) { .k-mega-group :is(.k-rail__row, .k-mega__item:not(:has(p)))::after { content: none; } }
.k-rail__row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px;
  border-radius: 8px; font-size: 14px; color: var(--ink);
  transition: background-color .14s var(--snap);
}
.k-rail__row:hover { background: var(--menu-hover); }
.k-rail__row svg { stroke: #8A8B90; flex: none; transition: stroke .14s var(--snap); }
.k-rail__row:hover svg { stroke: var(--signal); }

.k-mega__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; align-content: start; }
.k-mega__item {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  transition: background-color .14s var(--snap);
}
.k-mega__item:hover { background: var(--menu-hover); }
.k-mega__item h4 { margin: 0 0 4px; }
.k-mega__item p { font-size: 13.5px; line-height: 1.45; color: var(--body); margin: 0; }
.k-mega__ico {
  width: 34px; height: 34px; border-radius: 9px; background: #F1F1F4; flex: none;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .14s var(--snap);
}
.k-mega__ico svg { stroke: #111112; transition: stroke .14s var(--snap); }
.k-mega__item:hover .k-mega__ico { background: var(--accent-bg, var(--signal-tint)); }
.k-mega__item:hover .k-mega__ico svg { stroke: var(--accent-ink, var(--signal)); }
:is(.k-mega__item, .k-rail__row).is-current { background: var(--menu-hover); color: var(--signal); }
.k-mega__item.is-current h4 { color: var(--signal); }
.k-mega__item.is-current .k-mega__ico { background: var(--accent-bg, var(--signal-tint)); }
.k-mega__item.is-current .k-mega__ico svg { stroke: var(--accent-ink, var(--signal)); }
.k-rail__row.is-current svg { stroke: var(--signal); }
.k-rail .k-link.is-current { text-decoration: underline; text-underline-offset: 4px; }

/* Category columns use the same editable links as the panel rail. */
.k-mega-group { min-width: 0; padding: 20px 18px; display: flex; flex-direction: column; }
.k-mega-group__heading {
  margin: 0 0 14px; font-size: 11px; line-height: 1.5;
  font-weight: 600; letter-spacing: .055em; text-transform: uppercase; color: var(--body);
}
.k-mega-group.is-active > .k-mega-group__heading { color: var(--signal); }
.k-mega-group__links { display: flex; flex-direction: column; gap: 2px; }
.k-mega-group .k-rail__row { min-height: 44px; line-height: 1.5; font-size: 14px; }
.k-mega-group .k-rail__row:hover { background: var(--menu-hover); }
.k-mega-group .k-rail__row:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.k-mega-group__more {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; margin-top: auto; padding: 14px 0 0;
  border-top: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600;
}
.k-mega-group__more .k-arw { flex: none; }
.k-mega-group__more.is-current { color: var(--signal); }
.k-mega-group__more:focus-visible,
.k-mega-group .k-mega__item:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.k-mega-group:has(> .k-mega-group__more) > .k-mega-group__links { margin-bottom: 18px; }

/* Use cases get room for context; team and industry lists stay easy to scan. */
.k-mega-group--featured { grid-column: span 2; }
.k-mega-group--featured .k-mega-group__links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px;
}
.k-mega-group .k-mega__item { min-width: 0; padding: 10px; margin: 0 -10px; gap: 10px; }
.k-mega-group .k-mega__item > span:last-child { min-width: 0; }
.k-mega-group .k-mega__item h4 { font-size: 14px; line-height: 1.5; font-weight: 600; }
.k-mega-group .k-mega__item p { font-size: 12px; line-height: 1.55; }
.k-mega-group .k-mega__ico { width: 30px; height: 30px; border-radius: 8px; }
.k-mega-group .k-mega__ico svg { width: 17px; height: 17px; }
.k-mega-group--featured .k-mega__ico { background: var(--accent-bg, var(--signal-tint)); }
.k-mega-group--featured .k-mega__ico svg { stroke: var(--accent-ink, var(--signal)); }
.k-mega-group--teams .k-rail__row { min-height: 48px; font-size: 13px; }
.k-mega-group--tinted {
  background: var(--menu-panel);
  border: 0;
  /* bleed over the panel's own 10px padding, then put it back as padding so
     the heading sits on the same baseline as the untinted columns */
  margin: -10px -10px -10px 0;
  padding: 30px 28px 30px 18px;
  border-radius: 0 18px 18px 0;
}
.k-mega-group--tinted :is(.k-mega__item, .k-rail__row):hover,
.k-mega-group--tinted :is(.k-mega__item, .k-rail__row):focus-visible,
.k-mega-group--tinted :is(.k-mega__item, .k-rail__row).is-current { background: #fff; }

/* A wide grouped menu is centred on the header, so its trigger's position
   cannot push the last category beyond the viewport. */
@media (min-width: 1081px) {
  .k-navitem:has(> .k-mega .k-mega-group) { position: static; }
  .k-navitem:has(> .k-mega .k-mega-group) > .k-mega {
    left: 50%; top: calc(100% + 10px); max-width: calc(100% - 48px);
    transform: translateX(-50%);
  }
  .k-navitem:has(> .k-mega .k-mega-group) > .k-mega::before { top: -30px; height: 30px; }
}

/* Mobile navigation: the mega panels flatten into a single scrolling sheet. */
.k-header__toggle { display: none; }
@media (max-width: 1080px) {
  :root, .editor-styles-wrapper { --gutter: 28px; }
  .k-header__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); cursor: pointer; flex: none;
  }
  /* Anchored to the header, not the viewport. The header carries a
     backdrop-filter, which makes it the containing block for any fixed
     descendant — a position:fixed sheet here resolves inset against the 68px
     bar and collapses to a sliver showing only the first menu item. */
  .k-header__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    background: #fff; padding: 20px var(--gutter) 60px;
    overflow-y: auto; display: none; flex-direction: column; align-items: stretch; gap: 6px;
  }
  .k-header.is-open .k-header__nav { display: flex; }
  /* The sheet's rows arrive one after another, top first. */
  @media (prefers-reduced-motion: no-preference) {
    .k-header.is-open .k-header__nav > * { animation: k-menu-in .5s var(--glide) both; animation-delay: calc(var(--i, 0) * 35ms); }
  }
  .k-navlink::after { content: none; }
  .k-header__signin { display: none; }
  .k-nav .k-nav__mobile-only { display: flex; }

  /* The menu becomes a list of destinations: ruled rows for the top level,
     a plain indented list for whatever is inside one. */
  .k-header__nav { gap: 0; padding-top: 4px; }
  .k-navitem { position: static; border-bottom: 1px solid var(--line); }
  .k-navlink {
    width: 100%; justify-content: space-between;
    height: 58px; padding: 0; border-radius: 0; font-size: 18px;
  }
  .k-navlink:hover,
  .k-navitem.is-open > .k-navlink { background: transparent; }
  .k-chev { transition: transform .16s var(--snap); }
  .k-navitem.is-open > .k-navlink .k-chev { transform: rotate(180deg); }
  .k-nav .k-nav__mobile-only {
    height: 58px; padding: 0; border-radius: 0; font-size: 18px;
    border-bottom: 1px solid var(--line);
  }

  .k-mega {
    position: static; opacity: 1; visibility: visible; transform: none; translate: none; scale: none; transition: none; width: auto !important;
    box-shadow: none; border: 0; border-radius: 0; display: none;
    /* Indented, so a destination inside a menu reads as one. */
    padding: 0 0 18px 14px;
    grid-column: auto;
  }
  .k-navitem.is-open .k-mega { display: block; }

  /* Destinations first; the rail's link and short list follow them. */
  .k-mega__grid { display: flex; flex-direction: column; gap: 0; }
  .k-mega__cols { order: 1; display: flex; flex-direction: column; gap: 0; }
  .k-rail { order: 2; background: transparent; border-radius: 0; padding: 0; }

  /* The framing that introduces a panel on a wide screen is only scrolling
     on a phone. The destinations it introduces stay. */
  .k-rail > h4,
  .k-rail > .k-small { display: none; }
  .k-rail > .k-rule { margin: 4px 0 10px !important; }

  .k-mega__item { padding: 0; gap: 12px; align-items: center; min-height: 46px; }
  .k-mega__item:hover { background: transparent; }
  .k-mega__item h4 { margin: 0; font-size: 16px; }
  .k-mega__item p { display: none; }
  .k-mega__ico { width: 26px; height: 26px; border-radius: 7px; }
  .k-mega__ico svg { width: 15px; height: 15px; }

  /* The rail's icons sit in the same 26px slot as the panel items above them,
     so both lists share one left edge. */
  .k-rail__row { min-height: 44px; margin: 0; padding: 0 0 0 5px; gap: 17px; font-size: 16px; }
  .k-rail__row:hover { background: transparent; }
  .k-rail__row svg { width: 16px; height: 16px; }
  :is(.k-mega__item, .k-rail__row).is-current,
  .k-mega-group--tinted :is(.k-mega__item, .k-rail__row).is-current { background: transparent; }

  .k-mega-group { padding: 14px 0; }
  .k-mega-group + .k-mega-group { border-top: 1px solid var(--line); }
  .k-mega-group__heading { margin-bottom: 8px; }
  .k-mega-group .k-rail__row { padding: 8px 10px; margin: 0 -10px; gap: 10px; font-size: 16px; }
  .k-mega-group--featured .k-mega-group__links { display: flex; gap: 2px; }
  .k-mega-group .k-mega__item { min-height: 48px; padding: 8px 10px; }
  .k-mega-group .k-mega__item h4 { font-size: 16px; font-weight: 500; }
  .k-mega-group--tinted { background: transparent; border-radius: 0; }
  .k-mega-group__more { margin-top: 0; padding-top: 8px; font-size: 14px; }
  .k-mega-group:has(> .k-mega-group__more) > .k-mega-group__links { margin-bottom: 8px; }
}

/* --- Hero --------------------------------------------------------------- */

.k-hero { padding: 96px 0 0; text-align: center; }
.k-hero__inner { max-width: 840px; margin: 0 auto; padding: 0 var(--gutter); }
.k-hero h1 { margin: 32px 0 0; }
.k-hero__lede { margin: 24px auto 0; max-width: 62ch; font-size: 19px; }
.k-hero .k-actions { justify-content: center; }
.k-hero__shot { max-width: var(--wrap); margin: 64px auto 0; padding: 0 var(--gutter); }
.k-hero__shot .k-shot { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.k-hero__caption { margin-top: 12px; padding-bottom: 20px; }
.k-hero--fixed { padding-top: 72px; }
.k-hero--fixed h1 { margin-top: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.06; }
.k-hero__fixed-lede { margin: 22px auto 0; max-width: 60ch; font-size: 19px; }
.k-hero__choices-label { margin: 38px 0 14px; color: var(--body); font-size: 14px; }
.k-hero--fixed .k-tabs { height: auto; min-height: 42px; flex-wrap: wrap; justify-content: center; padding: 5px; overflow: visible; border-radius: 24px; }
.k-hero--fixed .k-hero__message { margin-top: 24px; }
.k-hero--fixed .k-hero__variant-heading { font-size: clamp(26px, 3vw, 34px); line-height: 1.16; }
.k-hero--fixed .k-hero__lede { margin-top: 14px; font-size: 17px; max-width: 62ch; }
.k-hero__message:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 8px; border-radius: 4px; }
.k-hero--fixed .k-hero__shot { margin-top: 48px; }

@media (max-width: 720px) {
  .k-hero--fixed .k-hero__choices-label { margin-top: 30px; }
  .k-hero--fixed .k-tab { min-height: 38px; padding-inline: 12px; }
  .k-hero--fixed .k-hero__fixed-lede { font-size: 17px; }
}

.k-tabs {
  display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 5px;
  border-radius: 9999px; border: 1px solid rgba(17,17,18,.09); background: #fff;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.k-tabs::-webkit-scrollbar { display: none; }
.k-tab {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 9999px;
  border: 0; background: transparent; color: var(--muted); font-family: inherit;
  font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: background-color .14s var(--snap), color .14s var(--snap);
}
.k-tab:hover { background: var(--soft); color: var(--ink); }
.k-tab.is-on { background: var(--accent-bg); color: var(--accent-ink); }
.k-tab:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.k-hero-swap { animation: k-rise .5s var(--ease) both; }

/* A broad color field opens the page; the content keeps a readable measure. */
.k-hero.k-hero--carousel {
  --tint-field: #F5F5F6;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  width: calc(100% - var(--band-edge) * 2);
  max-width: none;
  margin: 16px auto 0;
  min-height: clamp(620px, 80svh, 800px);
  padding: 0;
  border-radius: var(--radius-band);
  background: var(--panel);
  text-align: center;
  transition: background-color .5s ease;
}
.k-hero--carousel .k-carousel__stage {
  display: grid;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 88px var(--gutter) 56px;
}
.wp-block-post-content > .k-hero.k-hero--carousel { margin-block-start: 16px; }
.k-hero--carousel .k-carousel__slide {
  display: grid;
  grid-area: 1 / 1;
  align-items: center;
  min-width: 0;
}
/* Keep the tallest slide in layout so autoplay never moves the controls or
   the content below. Visibility also keeps inactive slides out of the a11y tree. */
.k-hero--carousel .k-carousel__slide[hidden] {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}
.k-hero--carousel .k-carousel__content { position: relative; z-index: 1; width: 100%; max-width: 840px; margin-inline: auto; }
.k-hero--carousel .k-carousel__slide:not([hidden]) .k-carousel__content { animation: k-carousel-fade .4s ease both; }
/* Sparse continuous-line drawings, softened behind the reading column. Only
   this decorative layer clips; content and keyboard focus stay above it. */
.k-carousel__art {
  opacity: .55;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--radius-band);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  -webkit-mask-image: radial-gradient(ellipse at 50% 46%, rgba(0,0,0,.3) 12%, rgba(0,0,0,.65) 50%, #000 82%);
  mask-image: radial-gradient(ellipse at 50% 46%, rgba(0,0,0,.3) 12%, rgba(0,0,0,.65) 50%, #000 82%);
  pointer-events: none;
  user-select: none;
}
.k-carousel__slide:not([hidden]) .k-carousel__art { animation: k-carousel-art-fade .5s ease both; }
@keyframes k-carousel-art-fade { from { opacity: 0; } to { opacity: .55; } }
.k-hero--carousel .k-carousel__eyebrow {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  margin: 0 0 24px;
  color: var(--accent-ink, var(--muted));
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.k-hero--carousel .k-carousel__heading {
  margin: 0;
  max-width: 840px;
  color: var(--ink);
  font-size: clamp(48px, 5.1vw, 72px);
  font-weight: var(--display-weight-title);
  letter-spacing: var(--display-tracking);
  line-height: 1.04;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.k-hero--carousel .k-carousel__lede {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--body);
  font-size: 19px;
  line-height: 1.6;
  text-wrap: pretty;
}
.k-hero--carousel .k-carousel__actions {
  justify-content: center;
  margin-top: 32px;
}
.k-hero--carousel .k-carousel__actions .wp-block-buttons { justify-content: center; }
.k-hero--carousel .k-carousel__actions .k-actions { justify-content: center; }
.k-hero--carousel .k-carousel__controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) 28px;
}
.k-hero--carousel .k-carousel__controls[hidden] { display: none; }
.k-hero--carousel .k-carousel__dots,
.k-hero--carousel .k-carousel__nav { display: flex; align-items: center; }
.k-hero--carousel .k-carousel__dots { gap: 0; }
.k-hero--carousel .k-carousel__nav { gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.72); }
.k-hero--carousel .k-carousel__dot,
.k-hero--carousel .k-carousel__arrow,
.k-hero--carousel .k-carousel__rotation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #63655F;
}
.k-hero--carousel .k-carousel__dot::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: .35;
  content: "";
  transition: width .2s ease, opacity .2s ease;
}
.k-hero--carousel .k-carousel__dot[aria-current="true"]::before { width: 22px; opacity: 1; }
.k-hero--carousel .k-carousel__dot:hover::before { opacity: 1; }
.k-hero--carousel .k-carousel__arrow:hover,
.k-hero--carousel .k-carousel__rotation:hover { background: rgba(17, 17, 18, .055); color: var(--ink); }
.k-hero--carousel .k-carousel__arrow svg,
.k-hero--carousel .k-carousel__rotation svg { width: 18px; height: 18px; }
.k-hero--carousel .k-carousel__dot:focus-visible,
.k-hero--carousel .k-carousel__arrow:focus-visible,
.k-hero--carousel .k-carousel__rotation:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.k-hero--carousel .k-carousel__play-icon,
.k-hero--carousel.is-paused .k-carousel__pause-icon { display: none; }
.k-hero--carousel.is-paused .k-carousel__play-icon { display: block; }

@keyframes k-carousel-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 720px) {
  .k-hero.k-hero--carousel { width: calc(100% - var(--band-edge) * 2); margin-top: 8px; min-height: 640px; }
  .wp-block-post-content > .k-hero.k-hero--carousel { margin-block-start: 8px; }
  .k-hero--carousel .k-carousel__stage { padding: 40px 24px 32px; }
  .k-carousel__art { background-position: 12% center; }
  .k-hero--carousel .k-carousel__eyebrow { margin-bottom: 20px; font-size: 13px; }
  .k-hero--carousel .k-carousel__heading { font-size: clamp(34px, 7.4vw, 48px); letter-spacing: var(--display-tracking); line-height: 1.06; }
  .k-hero--carousel .k-carousel__lede { margin-top: 24px; font-size: 17px; line-height: 1.6; }
  .k-hero--carousel .k-carousel__actions { margin-top: 28px; }
  .k-hero--carousel .k-carousel__controls { flex-direction: column; gap: 8px; padding: 0 12px 20px; }
  .k-hero--carousel .k-carousel__nav { margin-inline: auto; }
  .k-hero--carousel .k-carousel__dot { flex-basis: 40px; width: 40px; }
}

@media (max-width: 370px) {
  .k-hero--carousel .k-carousel__controls { padding-inline: 6px; }
  .k-hero--carousel .k-carousel__dots { margin-inline: auto; }
  .k-hero--carousel .k-carousel__nav { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .k-hero.k-hero--carousel,
  .k-hero--carousel .k-carousel__dot::before { transition: none; }
  .k-hero--carousel .k-carousel__slide:not([hidden]) .k-carousel__content,
  .k-carousel__slide:not([hidden]) .k-carousel__art { animation: none; }
}

/* --- Page hero (inner pages) ------------------------------------------- */

.k-pagehero { padding: 0; }
.k-pagehero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 80px; align-items: end; margin-top: 26px;
}

/* The band ends flush with the hero: align-items:end puts the headline's last
   line and the CTA pill both on the bottom edge, and the band itself is laid
   out with no bottom space, so the next band's top padding is the whole gap.
   That holds while the next band is plain — but where it draws an edge at that
   boundary, a rule or a change of ground, the edge lands across the headline's
   descenders and cuts the buttons in half. There the hero carries its own
   clearance, and only there, so the plain pages keep the rhythm they have. */
.k-section:has(+ .k-section--border-top) .k-pagehero,
.k-section:has(+ .k-section--bg-surface) .k-pagehero,
.k-section:has(+ .k-section--bg-clay) .k-pagehero,
.k-section:has(+ .k-section--bg-dark) .k-pagehero { padding-bottom: 64px; }
.k-crumb { font-size: 13.5px; color: var(--muted); margin: 0; }
.k-crumb b { font-weight: 400; color: var(--signal); }

/* --- The first viewport of a sub-page ------------------------------------
   A visitor decides in a moment whether this page is about their problem,
   so every sub-page opening carries the same weight: the trail as a pill
   with the logo's status light, one large headline scale for every kind of
   page, and the parts arriving in order instead of waiting for a scroll
   reveal. The product screen right under a feature's opening stands on a
   stage and rises into the first view (feature-pages.css). */
:is(.is-style-feature-opening, .is-style-feature-lead, .is-style-technical-opening, .is-style-directory-opening,
  .is-style-company-opening, .is-style-company-directory-opening, .is-style-photo-opening) .k-crumb {
  display: inline-flex; align-items: center; gap: 0 10px; width: fit-content;
  padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--panel);
  color: var(--body); font-size: 13px; line-height: 1.4;
}
:is(.is-style-feature-opening, .is-style-feature-lead, .is-style-technical-opening, .is-style-directory-opening,
  .is-style-company-opening, .is-style-company-directory-opening, .is-style-photo-opening) .k-crumb::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 0 rgba(97, 81, 229, .45);
}
:is(.is-style-feature-opening, .is-style-feature-lead, .is-style-technical-opening, .is-style-directory-opening,
  .is-style-company-opening, .is-style-company-directory-opening, .is-style-photo-opening) .k-crumb b { font-weight: 500; }
:is(.is-style-feature-opening, .is-style-feature-lead, .is-style-technical-opening, .is-style-directory-opening,
  .is-style-company-opening, .is-style-company-directory-opening, .is-style-photo-opening) .k-pagehero h1 {
  font-size: clamp(36px, 4.7vw, 68px) !important; line-height: 1.04 !important;
  color: var(--ink); text-wrap: balance;
}
@media (prefers-reduced-motion: no-preference) {
  /* Arrival replaces the scroll reveal here: the opening is already in view. */
  :is(.is-style-feature-opening, .is-style-feature-lead, .is-style-technical-opening, .is-style-directory-opening,
    .is-style-company-opening, .is-style-company-directory-opening, .is-style-photo-opening) .k-pagehero .k-rv {
    opacity: 1; transform: none; transition: none;
  }
  :is(.is-style-feature-opening, .is-style-feature-lead, .is-style-technical-opening, .is-style-directory-opening,
    .is-style-company-opening, .is-style-company-directory-opening, .is-style-photo-opening) .k-pagehero :is(.k-crumb, h1, .k-lede, .k-actions) {
    animation: k-arrive .7s var(--glide) both;
  }
  :is(.is-style-feature-opening, .is-style-feature-lead, .is-style-technical-opening, .is-style-directory-opening,
    .is-style-company-opening, .is-style-company-directory-opening, .is-style-photo-opening) .k-pagehero h1 { animation-delay: .06s; }
  :is(.is-style-feature-opening, .is-style-feature-lead, .is-style-technical-opening, .is-style-directory-opening,
    .is-style-company-opening, .is-style-company-directory-opening, .is-style-photo-opening) .k-pagehero .k-lede { animation-delay: .16s; }
  :is(.is-style-feature-opening, .is-style-feature-lead, .is-style-technical-opening, .is-style-directory-opening,
    .is-style-company-opening, .is-style-company-directory-opening, .is-style-photo-opening) .k-pagehero .k-actions { animation-delay: .24s; }
  /* The light sends one ring out as the page arrives, then rests. */
  :is(.is-style-feature-opening, .is-style-feature-lead, .is-style-technical-opening, .is-style-directory-opening,
    .is-style-company-opening, .is-style-company-directory-opening, .is-style-photo-opening) .k-crumb::before {
    animation: k-light-ring 1.4s ease-out .5s 2;
  }
}
@keyframes k-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes k-light-ring { 0% { box-shadow: 0 0 0 0 rgba(97, 81, 229, .45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(97, 81, 229, 0); } }
/* The editor shows the opening at rest. */
.editor-styles-wrapper :is(.k-pagehero :is(.k-crumb, h1, .k-lede, .k-actions), .k-section > .k-wrap, .k-figure, .k-pagehero__photo, .k-pagehero__photo-image) { animation: none !important; }

/* --- Section intro ------------------------------------------------------ */

.k-intro { max-width: 600px; }
.k-intro__label { margin-bottom: 18px; }
.k-intro h2 { margin: 0; }
.k-intro .k-lede { margin-top: 20px; }
.k-intro--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; max-width: none; }
.k-intro--split.k-intro--bottom { align-items: end; }
.k-intro--split.k-intro--top { align-items: start; }
.k-intro--split .k-lede { margin-top: 0; }
.k-intro--wide { max-width: 780px; }

/* --- Grid --------------------------------------------------------------- */

.k-grid { display: grid; gap: 36px; }
.k-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.k-grid--ruled { border-top: 1px solid var(--line); }

/* --- Split (text next to a screenshot) ---------------------------------- */

.k-split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 80px; align-items: center; }
.k-split--flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.k-split--flip > *:last-child { order: -1; }
.k-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.k-split--top { align-items: start; }

/* --- Feature (one cell of a grid) --------------------------------------- */

.k-feature h4 { margin: 0; }
.k-feature p { margin: 10px 0 0; }
.k-feature__icon { display: block; margin-bottom: 16px; }
.k-feature__icon svg { stroke: var(--ink); }
.k-section--bg-dark .k-feature__icon svg { stroke: #fff; }
.k-feature--ruled { border-top: 1px solid var(--line); padding-top: 20px; }
.k-feature--ruled-soft { border-top: 1px solid #DDD9D2; padding-top: 20px; }
.k-feature__index { margin-bottom: 14px; }
.k-feature .k-link { margin-top: 16px; font-size: 14px; }
/* A linked page's picture (feature render.php) shows only where a section
   style places it. */
/* A card's picture is decoration under the card's own link: it never takes
   the pointer, so pointing at it or clicking it is pointing at the link. */
.k-feature__media { display: none; pointer-events: none; }

/* --- Entry rows --------------------------------------------------------- */

.k-entries { display: flex; flex-direction: column; gap: 12px; }
.k-entry {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 26px) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 24px);
  gap: 24px; align-items: center; padding: 28px; border: 0;
  border-radius: var(--radius-card); background: var(--cell-bg);
  transition: background-color .18s var(--snap);
}
.k-entries--wide .k-entry { grid-template-columns: minmax(0, 26px) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 24px); }
.k-entries > .k-entry:last-child { border-bottom: 0; }
.k-entry > * { position: relative; z-index: 1; }
.k-entry::before {
  content: none;
}
a.k-entry:hover { background: var(--cell-hover); }
.k-entry__index { font-family: var(--wp--preset--font-family--mono); font-size: 12px; color: var(--muted); }
.k-entry h3 { margin: 0; }
.k-entry p { margin: 0; }

/* A menu of destinations: name, what is there, and one arrow for the row.
   Names, descriptions and arrows each hold their own column, so the list is
   scanned down the names and read across. Ruled rather than filled, so a
   short menu does not become another block of colour on the page. */
.k-entries.is-style-ruled { gap: 0; border-bottom: 1px solid var(--line); }
.k-entries.is-style-ruled .k-entry {
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr) 42px;
  gap: 32px; align-items: baseline; padding: 26px 0;
  border-top: 1px solid var(--line); border-radius: 0; background: transparent;
}
.k-entries.is-style-ruled .k-entry__index:empty { display: none; }
.k-entries.is-style-ruled .k-entry h3 {
  font-size: 22px; line-height: 1.3; font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  transition: color .14s var(--snap);
}
.k-entries.is-style-ruled .k-entry p { color: var(--body); font-size: 16px; line-height: 1.55; }
/* The arrow sits in a hairline ring. Pointing at the row turns the ring and
   the name to the signal colour and draws the row's top rule across in it. */
.k-entries.is-style-ruled .k-entry > .k-arw {
  position: relative; z-index: 2;
  box-sizing: content-box; padding: 14px 13px; border: 1px solid var(--line); border-radius: 50%;
  align-self: center; justify-self: end; color: var(--ink); background: #fff;
  transition: border-color .3s var(--snap), color .3s var(--snap);
}
.k-entries.is-style-ruled a.k-entry::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--signal); transform: scaleX(0); transform-origin: left center;
  transition: transform .7s var(--glide);
}
.k-entries.is-style-ruled a.k-entry:hover { background: transparent; }
.k-entries.is-style-ruled a.k-entry:hover::after { transform: scaleX(1); }
.k-entries.is-style-ruled a.k-entry:hover h3 { color: var(--signal); }
.k-entries.is-style-ruled a.k-entry:hover > .k-arw { border-color: var(--signal); color: var(--signal); }
.k-entries.is-style-ruled a.k-entry:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 4px; }
/* A row leading to a page with a workplace photograph (entry render.php)
   opens a window onto it from the arrow: the ring widens to the left into a
   rounded frame that fills the row between its rules, the photograph settling
   inside it, while the arrow stays in its ring at the frame's end. The words
   keep clear of it, so nothing is read through a photograph. */
.k-entry__peek { display: none; }
@media (min-width: 1025px) and (hover: hover) {
  .k-entries.is-style-ruled:has(.k-entry__peek) .k-entry p { max-width: 46ch; }
  .k-entries.is-style-ruled .k-entry > .k-entry__peek {
    position: absolute; z-index: 1; right: 0; top: calc(50% - 22px); bottom: calc(50% - 22px); display: block;
    width: 44px; overflow: hidden; border-radius: 22px; background: var(--soft); opacity: 0; pointer-events: none;
    transition: width .35s var(--snap), top .35s var(--snap), bottom .35s var(--snap), border-radius .35s var(--snap), opacity .2s linear .15s;
  }
  .k-entries.is-style-ruled .k-entry__peek img {
    position: absolute; right: 0; top: 50%; translate: 0 -50%;
    display: block; width: 232px; height: auto; max-width: none; aspect-ratio: 3 / 2; object-fit: cover; scale: 1.12;
    transition: scale .35s var(--snap);
  }
  .k-entries.is-style-ruled a.k-entry:is(:hover, :focus-visible) .k-entry__peek {
    top: 12px; bottom: 12px; width: 232px; border-radius: 16px; opacity: 1;
    transition: width .7s var(--glide), top .7s var(--glide), bottom .7s var(--glide), border-radius .7s var(--glide), opacity .1s linear;
  }
  .k-entries.is-style-ruled a.k-entry:is(:hover, :focus-visible) .k-entry__peek img { scale: 1; transition: scale 1.2s var(--glide); }
  /* Over the picture the ring is a solid disc, so the arrow stays legible. */
  .k-entries.is-style-ruled a.k-entry:has(.k-entry__peek):is(:hover, :focus-visible) > .k-arw { border-color: #fff; margin-right: 10px; }
  .k-entries.is-style-ruled a.k-entry:has(.k-entry__peek) > .k-arw { transition: border-color .3s var(--snap), color .3s var(--snap), margin .7s var(--glide); }
}
@media (prefers-reduced-motion: reduce) {
  .k-entries.is-style-ruled .k-entry > .k-entry__peek,
  .k-entries.is-style-ruled a.k-entry:is(:hover, :focus-visible) .k-entry__peek { transition: opacity .2s linear; }
  .k-entries.is-style-ruled .k-entry__peek img { scale: 1; transition: none; }
}
@media (max-width: 720px) {
  .k-entries.is-style-ruled .k-entry { grid-template-columns: minmax(0, 1fr) 42px; gap: 6px 16px; padding: 20px 0; }
  .k-entries.is-style-ruled .k-entry h3 { grid-column: 1; font-size: 20px; }
  .k-entries.is-style-ruled .k-entry p { grid-column: 1; }
  .k-entries.is-style-ruled .k-entry > .k-arw { grid-column: 2; grid-row: 1 / span 2; }
}

/* --- Checklist (ruled one-line claims) ---------------------------------- */

.k-check { display: flex; flex-direction: column; margin: 32px 0 0; padding: 0; list-style: none; }
.k-check-item { padding: 16px 0; border-top: 1px solid var(--line); margin: 0; }
.k-check-item:last-child { border-bottom: 1px solid var(--line); }
.k-check-item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.k-check--tight .k-check-item { padding: 15px 0; }

/* --- Opening rows ------------------------------------------------------- */

/* Rounded rows keep the question and its answer in one surface. */
.k-acc { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.k-acc__item { padding-inline: 24px; border: 0; border-radius: var(--radius-card); background: var(--cell-bg); }
.k-acc__item:last-child { border-bottom: 0; }

.k-acc__head { margin: 0; font-size: inherit; font-weight: inherit; }
.k-acc__btn {
  display: flex; align-items: center; gap: 20px; width: 100%; padding: 20px 0;
  border: 0; background: none; font: inherit; color: var(--ink); text-align: left;
  cursor: pointer;
}
.k-acc__title { flex: 1 1 auto; font-size: 15px; line-height: 1.6; }
.k-acc__btn:hover .k-acc__title { color: var(--signal); }
.k-acc__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 12px; }

/* The mark is a plus that loses its upright stroke when the row is open. */
.k-acc__mark { position: relative; flex: none; width: 11px; height: 11px; margin-top: 6px; }
.k-acc__mark::before,
.k-acc__mark::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--muted); transition: transform .28s var(--snap), opacity .28s var(--snap);
}
.k-acc__mark::before { width: 100%; height: 1px; }
.k-acc__mark::after { width: 1px; height: 100%; }
.k-acc__btn:hover .k-acc__mark::before,
.k-acc__btn:hover .k-acc__mark::after { background: var(--signal); }
.k-acc__item.is-open .k-acc__mark::after { transform: rotate(90deg); opacity: 0; }

/* Without JavaScript every panel stays open, so the page still says everything
   it has to say. The collapsing only starts once the script marks the list. */
.k-acc__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .32s var(--snap); }
.k-acc__panelInner { overflow: hidden; }
.k-acc.is-ready .k-acc__item:not(.is-open) > .k-acc__panel { grid-template-rows: 0fr; }

.k-acc__text { margin: 0 0 18px; font-size: 15px; line-height: 1.62; color: var(--body); text-wrap: pretty; }
.k-acc__shot { margin-bottom: 22px; }
.k-acc__item--plain p.k-acc__plain { margin: 0; padding: 16px 0; font-size: 15px; line-height: 1.6; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .k-acc__panel { transition: none; }
  .k-acc__mark::before,
  .k-acc__mark::after { transition: none; }
}

/* --- Body copy ---------------------------------------------------------- */

.k-prose--lede { font-size: 18px; line-height: 1.62; color: var(--body); text-wrap: pretty; }
.k-prose--small { font-size: 15px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.k-prose strong { color: var(--ink); font-weight: 500; }
.k-section--bg-dark .k-prose strong { color: #fff; }

/* --- Figure / screenshot ------------------------------------------------ */

.k-figure { margin: 0; }
.k-figure--page { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.k-shot { display: block; border: 1px solid rgba(17,17,18,.08); border-radius: var(--radius-media); overflow: hidden; background: #fff; }
.k-shot img { width: 100%; height: auto; display: block; }
.k-figure--plain .k-shot { border: 0; border-radius: 0; }
.k-figure figcaption { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.k-figure figcaption strong { color: var(--ink); font-weight: 500; }
.k-figure--page figcaption { margin-top: 12px; padding-bottom: 20px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.k-figure__placeholder {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  background: var(--panel); color: var(--muted); font-size: 13.5px;
}

/* --- Stack (one column of a split or grid) ------------------------------ */

.k-stack { display: block; min-width: 0; }
.k-stack > * + * { margin-top: 0; }

/* --- Statement ---------------------------------------------------------- */

.k-statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.k-statement__head { margin: 0; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.06; }
.k-statement .k-intro__label { margin-bottom: 20px; }
.k-statement--unbalanced .k-statement__head { text-wrap: wrap; }
.k-statement__body > * + * { margin-top: 22px; }
.k-statement--top { align-items: start; }
.k-statement--top .k-statement__body { padding-top: 6px; }
.k-statement--top .k-statement__body > * + * { margin-top: 26px; }
.k-statement__emphasis { color: var(--ink); }
.k-section--bg-dark .k-statement__emphasis { color: #fff; }

/* --- CTA ---------------------------------------------------------------- */

.k-cta { text-align: center; }
.k-cta__inner { max-width: 840px; margin: 0 auto; padding: 0 var(--gutter); }
.k-cta h2 { margin: 0; }
.k-cta .k-lede { margin-inline: auto; }
.k-cta .k-actions { justify-content: center; }
.k-cta__steps { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; margin-top: 44px; }

/* --- Logo marquee ------------------------------------------------------- */

.k-marq {
  /* Escapes the section's measure so the row runs edge to edge. Done with
     margin alone: the block also carries .k-rv, whose finished state sets
     transform:none and would cancel a translate used for layout. */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.k-marq-row {
  display: flex; align-items: center; gap: 84px; width: max-content; padding-right: 84px;
  animation: k-slide var(--marq-duration, 60s) linear infinite;
}
.k-marq-row img { height: 38px; width: auto; max-width: none; flex: none; display: block; }
@keyframes k-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* A reader who points at the row gets to read it. */
.k-marq:hover .k-marq-row { animation-play-state: paused; }
.k-marq__head { display: flex; justify-content: space-between; align-items: baseline; gap: 60px; margin-bottom: 36px; }
.k-marq__head p { text-align: right; max-width: 44ch; margin: 0; }

/* --- Diagram ------------------------------------------------------------ */

.k-diagram { margin: 0; }
.k-diagram__mobile { display: none; }
.k-diagram svg { width: 100%; height: auto; font-family: inherit; }
.k-diagram .k-wire { stroke-dasharray: 760; stroke-dashoffset: 0; transition: stroke-dashoffset .9s ease-out; }
.k-rv .k-diagram .k-wire { stroke-dashoffset: 760; }
.k-rv.is-in .k-diagram .k-wire--1 { stroke-dashoffset: 0; transition-delay: .05s; }
.k-rv.is-in .k-diagram .k-wire--2 { stroke-dashoffset: 0; transition-delay: .2s; }
.k-rv.is-in .k-diagram .k-wire--3 { stroke-dashoffset: 0; transition-delay: .35s; }
.k-diagram figcaption { margin-top: 24px; max-width: 80ch; font-size: 15px; line-height: 1.6; color: var(--body); }
@media (prefers-reduced-motion: reduce) { .k-diagram .k-wire { stroke-dashoffset: 0 !important; transition: none !important; } }
.editor-styles-wrapper .k-diagram .k-wire { stroke-dashoffset: 0; }

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

.k-footer { padding-block: 72px; border-top: 0; }
.k-footer > .k-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.k-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
/* The columns are inner blocks; the wrapper hands them straight to the grid. */
.k-footer__cols { display: contents; }
.k-footcol h5 { font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 0 0 16px; letter-spacing: .01em; }
.k-footcol a {
  display: block; width: fit-content; font-size: 14.5px; color: var(--ink); margin-bottom: 10px;
  text-decoration: underline 1px transparent; text-underline-offset: .42em;
  transition: color .14s var(--snap), text-decoration-color .24s var(--snap), text-underline-offset .24s var(--snap);
}
.k-footcol a:hover { color: var(--signal); text-decoration-color: currentColor; text-underline-offset: .24em; }
.k-footcol a.is-current,
.k-footer__legal-links .is-current { color: var(--signal); }
.k-footcol.is-active h5 { color: var(--signal); }
.k-footer__brand p { margin: 14px 0 0; max-width: 24ch; }
.k-footer__brand .k-link { margin-top: 18px; }
.k-footer__legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.k-footer__legal-links { display: flex; gap: 24px; }

/* --- Back to the top ---------------------------------------------------- */

/* Shown only once there is a long way back (site.js adds .is-shown). Its ring
   fills with the page as it is read, so it also says how far there is to go. */
.k-top {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(17,17,18,.08), 0 10px 30px -10px rgba(17,17,18,.25);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .25s var(--snap), transform .45s var(--ease), visibility 0s linear .25s, background-color .2s var(--snap);
}
.k-top.is-shown {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .25s var(--snap), transform .45s var(--ease), visibility 0s, background-color .2s var(--snap);
}
.k-top:hover { background: #fff; }
.k-top:active { transform: scale(.94); }
.k-top:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.k-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.k-top__ring circle { fill: none; stroke-width: 1.5; }
.k-top__track { stroke: rgba(17,17,18,.08); }
.k-top__fill { stroke: var(--signal); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--read, 0)); }
.k-top__arrow { position: relative; width: 14px; height: 14px; transition: translate .35s var(--ease); }
.k-top:hover .k-top__arrow { translate: 0 -2px; }
@media (max-width: 720px) {
  .k-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .k-top, .k-top.is-shown, .k-top__arrow { transition: none; }
  .k-top { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .k-top { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media print { .k-top, .k-header__progress { display: none; } }

/* --- Selection ---------------------------------------------------------- */

::selection { background: rgba(97,81,229,.2); }
.k-section--bg-dark ::selection { background: rgba(169,162,247,.4); }

/* --- The soft treatment ------------------------------------------------- */

/* Most of this site is drawn with hairlines and square corners, because most
   of it is making an exact claim about somebody's estate. One page is not:
   the contact page, where the job is to be approachable. It is set softer, and
   two separate things carry that.

   `k-section--soft` is a band attribute an editor sets per section. The band's
   ground stops running edge to edge and becomes a panel with a large radius,
   and everything ruled inside it — the record rows, the feature cells, the
   claims, the opening rows — trades its hairline for the same rounded shape.
   It lives on the section, so the page editor draws a soft band exactly as the
   page does.

   `k-soft-page` is the ground those panels float on, which no single band can
   express because it is also what shows between them and around them. The
   template carries it, which is the one part of this a page editor cannot
   preview — the same limit the article measure has, and for the same reason.

   Every cell inside a panel takes its ground from `--soft-cell`, set once per
   panel ground below, so a soft band on the dark or the clay ground softens
   without a second copy of every rule. */

.k-soft-page { background: var(--panel); }

.k-section--soft {
  /* The ground moves off the band and onto the panel, and the band gains the
     side space a rounded corner needs to be seen against the page. */
  background: transparent;
  padding-inline: 24px;
  --soft-cell: var(--panel);
  --soft-cell-hover: var(--panel-hover);
}
.k-section--soft > .k-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding-block: 60px;
}

.k-section--soft.k-section--bg-surface > .k-wrap { background: #fff; }
.k-section--soft.k-section--bg-surface { --soft-cell: var(--panel); --soft-cell-hover: var(--panel-hover); }
.k-section--soft.k-section--bg-clay > .k-wrap { background: #fff; border-color: var(--panel-line); }
.k-section--soft.k-section--bg-clay { --soft-cell: var(--panel); --soft-cell-hover: var(--panel-hover); }
.k-section--soft.k-section--bg-dark > .k-wrap { background: var(--ink); border-color: var(--ink); }
.k-section--soft.k-section--bg-dark { --soft-cell: rgba(255,255,255,.055); --soft-cell-hover: rgba(255,255,255,.09); }

/* A panel draws its own edge, so a band rule has nothing left to separate. */
.k-section--soft.k-section--border-top,
.k-section--soft.k-section--border-bottom { border: 0; }

/* Ruled rows become rows of their own: the ground that used to appear under a
   row on hover is there from the start, and the hairline it sat between goes. */
.k-section--soft .k-entries { display: flex; flex-direction: column; gap: 10px; }
.k-section--soft .k-entry {
  border-top: 0; border-radius: 22px; padding: 26px 28px;
  background: var(--soft-cell);
  transition: background-color .16s var(--snap);
}
.k-section--soft .k-entries > .k-entry:last-child { border-bottom: 0; }
.k-section--soft .k-entry::before { content: none; }
.k-section--soft a.k-entry:hover { background: var(--soft-cell-hover); }

.k-section--soft .k-feature {
  background: var(--soft-cell); border-radius: 22px; padding: 26px 26px 28px;
}
.k-section--soft .k-feature--ruled,
.k-section--soft .k-feature--ruled-soft { border-top: 0; padding-top: 26px; }

.k-section--soft .k-check { display: flex; flex-direction: column; gap: 8px; }
.k-section--soft .k-check-item {
  border: 0; border-radius: 18px; padding: 15px 22px; background: var(--soft-cell);
}

.k-section--soft .k-acc { gap: 10px; }
.k-section--soft .k-acc__item {
  border: 0; border-radius: 22px; padding-inline: 24px; background: var(--soft-cell);
}
.k-section--soft .k-acc__btn:focus-visible { border-radius: 8px; }

.k-section--soft .k-shot { border-radius: 20px; }

/* A hero ends flush with the band under it, which works while that band is
   plain. A panel draws an edge at that boundary, so the hero above one needs
   the same clearance a rule or a change of ground already gets. */
.k-section:has(+ .k-section--soft) .k-pagehero { padding-bottom: 64px; }

@media (max-width: 1080px) {
  .k-section--soft { padding-inline: 16px; }
  .k-section--soft > .k-wrap { border-radius: 26px; padding-block: 44px; }
  .k-section--soft .k-entry { padding: 22px 20px; }
  .k-section--soft .k-feature { padding: 22px 20px 24px; }
  .k-section--soft .k-acc__item { padding-inline: 20px; }
}

/* ==========================================================================
   Writing — the blog index, the archives, and the post

   A post is the one place on this site made of core blocks rather than the
   theme's own, because its content comes from an editor writing prose, not
   from a designed page. So the rules below are written against core's class
   names, and everything an author can override — font size, colour, spacing —
   is set through :where(), which keeps this sheet at zero specificity for
   those properties and lets a block's own setting win.

   Nothing here is scoped to the front end, so the post editor shows the same
   article the reader gets.
   ========================================================================== */

/* --- Trail -------------------------------------------------------------- */

/* core/breadcrumbs, wearing the trail the designed pages draw by hand. */
.wp-block-breadcrumbs { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.wp-block-breadcrumbs a { color: var(--muted); transition: color .14s var(--snap); }
.wp-block-breadcrumbs a:hover { color: var(--ink); }
.wp-block-breadcrumbs > ol > li:not(:last-child)::after { margin: 0 .7em; opacity: 1; color: #C9C6C0; }
.wp-block-breadcrumbs [aria-current="page"] { color: var(--signal); }

/* --- The opening band of a blog page ------------------------------------ */

/* Same shape as .k-pagehero__grid: the claim on the left, what it is on the
   right, both sitting on the band's bottom edge. */
.k-blogtop {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 80px; align-items: end; margin-top: 26px;
}
.k-blogtop > * { margin-block: 0; }
.k-blogtop__main > * { margin-block: 0; }
.k-blogtop__main > .k-label { margin-bottom: 18px; }
.k-blogtop__aside > * { margin-block: 0; }
.k-blogtop__aside > * + * { margin-top: 22px; }
.k-blogtop .wp-block-query-title { margin: 0; }
.k-blogtop .wp-block-term-description { margin: 0; }
.k-blogtop .wp-block-term-description p { margin: 0; }

/* --- The category filter ------------------------------------------------ */

.k-filter { margin-bottom: 44px; }
/* The pill you are on is the filled one. A category fills with its own accent,
   sent down from kempu_category_accent_style(); "All articles" has no subject
   of its own, so it fills neutrally. */
/* The selected subject is a current item, not a category swatch, so it wears
   the signal — the same pale-indigo-on-indigo Platform gives its active nav. */
.k-filter .k-tabs { --accent-bg: var(--signal-tint); --accent-ink: var(--signal); }
.k-filter .k-tab__count { margin-left: 6px; opacity: .65; font-variant-numeric: tabular-nums; }

/* --- The post list ------------------------------------------------------ */

.k-postlist .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.k-postlist .wp-block-post-template > li {
  position: relative; margin: 0; border-top: 1px solid var(--line);
}
.k-postlist .wp-block-post-template > li:last-child { border-bottom: 1px solid var(--line); }

/* The ground that lights up bleeds past the measure, exactly as a ruled row
   does — and the title's link covers it, so the thing that highlights is the
   thing that is actually clickable. */
.k-postlist .wp-block-post-template > li::before {
  content: ''; position: absolute; left: -24px; right: -24px; top: 8px; bottom: 8px;
  border-radius: 16px; background: var(--panel); opacity: 0;
  transition: opacity .16s var(--snap);
}
.k-postlist .wp-block-post-template > li:hover::before { opacity: 1; }

.k-postrow {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 148px) minmax(0, 1fr) 13px;
  gap: 28px; align-items: start; padding: 30px 0; margin: 0;
}
.k-postrow > * { margin-block: 0; }
.k-postrow__meta { grid-column: 1; grid-row: 1; padding-top: 5px; }
.k-postrow__meta > * { margin-block: 0; }
.k-postrow__meta > * + * { margin-top: 9px; }
.k-postrow__body { grid-column: 2; grid-row: 1; min-width: 0; }
.k-postrow__body > * { margin-block: 0; }
.k-postrow__body > * + * { margin-top: 10px; }

.k-postrow::after {
  content: ''; grid-column: 3; grid-row: 1; align-self: center;
  width: 13px; height: 11px; background: var(--ink);
  -webkit-mask: var(--k-arrow) no-repeat center / contain;
  mask: var(--k-arrow) no-repeat center / contain;
  transition: transform .18s var(--snap);
}
.k-postlist .wp-block-post-template > li:hover .k-postrow::after { transform: translateX(4px); }

/* The category is its own destination, so it stays above the title's cover.
   On the Blog it arrives carrying the accent of its own subject; a list that
   sets no accent — search results — keeps the body colour. */
.k-postrow .wp-block-post-terms a { position: relative; z-index: 2; color: var(--accent-ink, var(--body)); }
.k-postrow .wp-block-post-terms a:hover { color: var(--accent-ink, var(--signal)); }

.k-postrow .wp-block-post-title { font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.3; }
.k-postrow .wp-block-post-title a { color: var(--ink); transition: color .14s var(--snap); }
.k-postlist .wp-block-post-template > li:hover .wp-block-post-title a { color: var(--signal); }
.k-postrow .wp-block-post-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.k-postrow .wp-block-post-excerpt__more-text { display: none; }
/* The excerpt renders its own <p>, which picks up the reading size the rest of
   the site sets on a paragraph. In a list row it is the caption, not the copy.
   Both classes count: core's `:root :where(p)` ties with a single class and is
   printed after this sheet, so it would win the tie. */
.k-postrow .wp-block-post-excerpt__excerpt {
  margin: 0; font-size: 15px; line-height: 1.6; color: var(--body);
}

/* --- Pagination and totals ---------------------------------------------- */

/* Three columns rather than space-between, so the numbers stay in the middle
   of the row on the first and last page, where one of the two links is gone. */
/* .is-layout-flex is in the selector to out-weigh the layout rule core prints
   beside the block, which lands after this sheet and would otherwise keep the
   row as a flex box. */
.wp-block-query-pagination,
.wp-block-query-pagination.is-layout-flex,
.wp-block-comments-pagination.is-layout-flex {
  margin-top: 44px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.wp-block-comments-pagination > .wp-block-comments-pagination-previous { grid-column: 1; justify-self: start; }
.wp-block-comments-pagination > .wp-block-comments-pagination-numbers { grid-column: 2; }
.wp-block-comments-pagination > .wp-block-comments-pagination-next { grid-column: 3; justify-self: end; }
.wp-block-query-pagination > .wp-block-query-pagination-previous { grid-column: 1; justify-self: start; }
.wp-block-query-pagination > .wp-block-query-pagination-numbers { grid-column: 2; }
.wp-block-query-pagination > .wp-block-query-pagination-next { grid-column: 3; justify-self: end; }
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: color .14s var(--snap);
}
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover { color: var(--signal); }

/* The same arrow every other link on the site carries, pointing the way the
   link goes. */
.wp-block-query-pagination-previous::before,
.wp-block-query-pagination-next::after,
.wp-block-comments-pagination-previous::before,
.wp-block-comments-pagination-next::after {
  content: ''; flex: none; width: 13px; height: 11px; background: currentColor;
  -webkit-mask: var(--k-arrow) no-repeat center / contain;
  mask: var(--k-arrow) no-repeat center / contain;
  transition: transform .18s var(--snap);
}
.wp-block-query-pagination-previous::before,
.wp-block-comments-pagination-previous::before { transform: scaleX(-1); }
.wp-block-query-pagination-next:hover::after,
.wp-block-comments-pagination-next:hover::after { transform: translateX(3px); }
.wp-block-query-pagination-previous:hover::before,
.wp-block-comments-pagination-previous:hover::before { transform: scaleX(-1) translateX(3px); }
.wp-block-query-pagination-numbers { display: flex; align-items: center; gap: 2px; }
.wp-block-query-pagination-numbers .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 9px; border-radius: 9999px;
  font-size: 14px; color: var(--body);
  transition: background-color .14s var(--snap), color .14s var(--snap);
}
.wp-block-query-pagination-numbers a.page-numbers:hover { background: var(--soft); color: var(--ink); }
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--ink); color: #fff; }
.wp-block-query-pagination-numbers .page-numbers.dots { min-width: 18px; color: var(--muted); }

.wp-block-query-no-results { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wp-block-query-no-results > :first-child { margin-top: 0; }
.wp-block-query-no-results > :last-child { margin-bottom: 0; }

/* --- The post's opening ------------------------------------------------- */

.k-articlehead {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 80px; align-items: end; margin-top: 26px;
}
.k-articlehead > * { margin-block: 0; }
.k-articlehead .wp-block-post-title { margin: 0; }
.k-articleaside > * { margin-block: 0; }
.k-articleaside > * + * { margin-top: 24px; }
.k-standfirst { margin: 0; }
:where(.k-standfirst) .wp-block-post-excerpt__excerpt {
  margin: 0; font-size: 19px; line-height: 1.6; color: var(--body); text-wrap: pretty;
}

/* Provenance: the date, how long it takes and who wrote it, in the mono face
   the rest of the site keeps for exactly this. */
.k-articlemeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.k-articlemeta > * {
  margin: 0;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11.5px; letter-spacing: -.01em; line-height: 1.5; color: var(--muted);
}
/* The separator trails its own item rather than leading the next one, so a
   line that wraps ends on the dot instead of starting with one. */
.k-articlemeta > *:not(:last-child) { position: relative; padding-right: 21px; }
.k-articlemeta > *:not(:last-child)::after { content: '·'; position: absolute; right: 8px; color: #C9C6C0; }
.k-articlemeta a { color: var(--muted); transition: color .14s var(--snap); }
.k-articlemeta a:hover { color: var(--signal); }

/* The lead picture gets the same frame every screenshot on the site has. */
.k-article__shot {
  margin: 0; border: 1px solid rgba(17,17,18,.11); border-radius: 12px;
  overflow: hidden; background: #fff;
}
.k-article__shot img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   What a post can contain

   Everything below is a core block an author can reach in the inserter,
   dressed in this design: hairlines instead of cards, one clay accent, mono
   only where a figure or a source is being named.
   ========================================================================== */

.k-entry-content { text-wrap: pretty; }
.k-entry-content > * { margin-block: 28px; }
.k-entry-content > :first-child { margin-block-start: 0; }
.k-entry-content > :last-child { margin-block-end: 0; }

/* --- Measure and the two ways out of it --------------------------------- */

/* The reading measure is the post-content block's own constrained layout, set
   to 720 and justified left, so the article runs down the same gutter as its
   headline instead of jumping to the middle of the page under it. That leaves
   this sheet only the two escapes: a wide block fills the band, which core
   already does, and a full one leaves the page, which it does not. Clipped by
   .wp-site-blocks, the same way the logo marquee escapes its section. */
.k-entry-content > .alignfull {
  width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw);
}
.k-entry-content > .alignfull:where(.wp-block-image, .wp-block-cover, .wp-block-gallery) img,
.k-entry-content > .alignfull:where(.wp-block-cover, .wp-block-group, .wp-block-columns) { border-radius: 0; }
/* A caption belongs to the copy, not to the picture's edge. */
.k-entry-content > .alignfull > figcaption {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
}

/* A float has to come back inside the measure: on its own it would go to the
   edge of the band and leave the text a third of the page away from it. */
.k-entry-content > .alignleft { float: left; margin: 8px 32px 24px 0; max-width: 300px; }
.k-entry-content > .alignright {
  float: right; margin: 8px 0 24px 32px; max-width: 300px;
  margin-right: max(0px, calc(100% - 720px));
}
.k-entry-content > .alignleft + *,
.k-entry-content > .alignright + * { margin-top: 0; }

/* --- Headings ----------------------------------------------------------- */

/* The article stays on the theme's own scale: the section heading for a part
   of the piece, the block title for a step inside it. */
:where(.k-entry-content) h2 { font-size: var(--wp--preset--font-size--large); }
:where(.k-entry-content) h3 { font-size: var(--wp--preset--font-size--block-title); }
:where(.k-entry-content) h4 { font-size: 17px; }
:where(.k-entry-content) h5 { font-size: 15px; }
:where(.k-entry-content) h6 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.k-entry-content :where(h2, h3, h4, h5, h6) { color: var(--ink); text-wrap: balance; }
.k-entry-content > h2 { margin-block: 60px 18px; line-height: 1.16; letter-spacing: var(--display-tracking); }
.k-entry-content > h3 { margin-block: 46px 14px; }
.k-entry-content > h4,
.k-entry-content > h5,
.k-entry-content > h6 { margin-block: 36px 12px; }
.k-entry-content > :where(h2, h3, h4, h5, h6):first-child { margin-block-start: 0; }

/* --- Body copy ---------------------------------------------------------- */

.k-entry-content :where(p) { text-wrap: pretty; }
.k-entry-content :where(strong, b) { color: var(--ink); font-weight: 500; }
.k-entry-content :where(em, i) { font-style: italic; }
.k-entry-content :where(mark) { background: var(--clay-tint); color: var(--ink); padding: .06em .24em; border-radius: 3px; }
.k-entry-content :where(abbr[title]) { text-decoration: underline dotted; text-underline-offset: .2em; cursor: help; }
.k-entry-content :where(sub, sup) { font-size: .72em; }
.k-entry-content :where(kbd) {
  font-family: var(--wp--preset--font-family--mono); font-size: .82em;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
  padding: .1em .38em; background: #fff; color: var(--ink);
}
.k-entry-content :where(del, s) { color: var(--muted); }
.k-entry-content :where(ins) { text-decoration: none; border-bottom: 1px solid var(--signal); }

/* Links inside prose carry the one accent, because in a wall of text the
   colour is the only thing that says a word is a destination. */
.k-entry-content :where(p, li, td, th, dd, dt, figcaption, blockquote, cite) a {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: rgba(180, 69, 31, .32);
  transition: text-decoration-color .14s var(--snap);
}
.k-entry-content :where(p, li, td, th, dd, dt, figcaption, blockquote, cite) a:hover { text-decoration-color: var(--signal); }

/* --- Lists -------------------------------------------------------------- */

:where(.k-entry-content) :where(ul, ol) { color: var(--body); font-size: 18px; line-height: 1.62; }
.k-entry-content :where(ul, ol) { padding-left: 1.35em; }
.k-entry-content :where(ul, ol) li { margin-block: .52em; padding-left: .18em; }
.k-entry-content :where(ul, ol) li::marker { color: var(--muted); }
.k-entry-content :where(ul, ol) :where(ul, ol) { margin-block: .5em; }
.k-entry-content :where(ul, ol) li > p { margin-block: .4em; }
.k-entry-content .wp-block-list.is-style-checkmark,
.k-entry-content ul.is-style-none { list-style: none; padding-left: 0; }

.k-entry-content :where(dl) { margin-block: 28px; }
.k-entry-content :where(dt) { color: var(--ink); font-weight: 500; border-top: 1px solid var(--line); padding-top: 16px; }
.k-entry-content :where(dd) { margin: 8px 0 20px; font-size: 16px; line-height: 1.6; color: var(--body); }

/* --- Quotes ------------------------------------------------------------- */

.k-entry-content .wp-block-quote {
  margin-block: 40px; padding: 2px 0 2px 28px;
  border-left: 1px solid #DCD9D4; border-right: 0;
}
:where(.k-entry-content) .wp-block-quote p { font-size: 20px; line-height: 1.55; color: var(--ink); }
.k-entry-content .wp-block-quote p + p { margin-top: 14px; }
.k-entry-content .wp-block-quote cite,
.k-entry-content .wp-block-quote .wp-block-quote__citation {
  display: block; margin-top: 16px; font-style: normal;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11.5px; letter-spacing: -.01em; color: var(--muted);
}
.k-entry-content .wp-block-quote.is-style-plain { border-left: 0; padding-left: 0; }
.k-entry-content .wp-block-quote.has-text-align-center { border-left: 0; border-right: 0; padding-inline: 0; }

.k-entry-content .wp-block-pullquote {
  margin-block: 52px; padding: 36px 0; text-align: left;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: inherit; background: none;
}
:where(.k-entry-content) .wp-block-pullquote p {
  font-size: 26px; line-height: 1.24; letter-spacing: var(--display-tracking); font-weight: var(--display-weight); color: var(--ink);
}
.k-entry-content .wp-block-pullquote cite {
  display: block; margin-top: 20px; font-style: normal; text-transform: none;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11.5px; letter-spacing: -.01em; color: var(--muted);
}

/* --- Code --------------------------------------------------------------- */

:where(.k-entry-content) :where(code, kbd, samp, var) {
  font-family: var(--wp--preset--font-family--mono);
  font-variant-ligatures: none;
}
.k-entry-content :where(p, li, td, th, dd, h2, h3, h4, h5, h6) code {
  font-size: .86em; background: var(--soft); color: var(--ink);
  padding: .12em .38em; border-radius: 5px;
}
.k-entry-content :where(.wp-block-code, .wp-block-preformatted, pre) {
  margin-block: 32px; padding: 22px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
:where(.k-entry-content) :where(.wp-block-code, .wp-block-preformatted, pre) {
  font-size: 13.5px; line-height: 1.65; color: var(--ink);
}
.k-entry-content :where(.wp-block-code, pre) code {
  background: none; padding: 0; border-radius: 0; font-size: inherit; color: inherit;
  white-space: pre; display: block;
}
.k-entry-content .wp-block-preformatted { white-space: pre-wrap; }
.k-entry-content .wp-block-verse {
  margin-block: 32px; padding: 0; background: none; border: 0;
  font-family: inherit; white-space: pre-wrap;
}
:where(.k-entry-content) .wp-block-verse { font-size: 17px; line-height: 1.75; color: var(--body); }

/* --- Tables ------------------------------------------------------------- */

.k-entry-content .wp-block-table { margin-block: 36px; overflow-x: auto; }
.k-entry-content .wp-block-table table { width: 100%; border-collapse: collapse; border: 0; }
.k-entry-content .wp-block-table :where(th, td) {
  padding: 14px 20px 14px 0; text-align: left; vertical-align: top;
  border: 0; border-top: 1px solid var(--line); word-break: normal;
}
.k-entry-content .wp-block-table tr > :last-child { padding-right: 0; }
:where(.k-entry-content) :where(.wp-block-table) th { font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: .005em; }
:where(.k-entry-content) :where(.wp-block-table) td { font-size: 15px; line-height: 1.6; color: var(--body); }
.k-entry-content .wp-block-table thead { border-bottom: 0; }
.k-entry-content .wp-block-table thead th { border-top: 0; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.k-entry-content .wp-block-table tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.k-entry-content .wp-block-table.is-style-stripes { background: none; }
.k-entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--panel); }
.k-entry-content .wp-block-table.is-style-stripes :where(th, td) { padding-inline: 16px; }
.k-entry-content .wp-block-table.is-style-stripes tr > :last-child { padding-right: 16px; }
.k-entry-content .wp-block-table figcaption { margin-top: 16px; }

/* --- Pictures ----------------------------------------------------------- */

.k-entry-content .wp-block-image { margin-block: 36px; }
.k-entry-content .wp-block-image img { border-radius: 12px; }
.k-entry-content .wp-block-image.is-style-rounded img { border-radius: 9999px; }
.k-entry-content .wp-block-image :where(figcaption) { margin-top: 14px; margin-bottom: 0; }
.k-entry-content .wp-block-gallery { margin-block: 36px; }
.k-entry-content .wp-block-gallery img { border-radius: 12px; }
.k-entry-content .wp-block-cover { margin-block: 36px; border-radius: 12px; overflow: hidden; }
:where(.k-entry-content) .wp-block-cover :where(p, h1, h2, h3, h4, h5, h6) { color: inherit; }

:where(.k-entry-content) figcaption {
  font-size: 15px; line-height: 1.6; color: var(--body); text-align: left; text-wrap: pretty;
}
.k-entry-content figcaption strong { color: var(--ink); font-weight: 500; }
.k-entry-content .wp-block-gallery > figcaption { text-align: left; }
.k-entry-content figcaption a { color: var(--signal); }

.k-entry-content :where(.wp-block-audio, .wp-block-video, .wp-block-embed) { margin-block: 36px; }
.k-entry-content .wp-block-video video,
.k-entry-content .wp-block-embed iframe { display: block; border-radius: 12px; }
.k-entry-content .wp-block-audio audio { width: 100%; }
.k-entry-content .wp-block-embed__wrapper { border-radius: 12px; overflow: hidden; }
.k-entry-content .wp-block-embed.is-type-wp-embed .wp-block-embed__wrapper { border: 1px solid var(--line); }

/* A file is a ruled row with a control on the end, like every other record. */
.k-entry-content .wp-block-file {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-block: 28px; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
:where(.k-entry-content) .wp-block-file > :where(a):not(.wp-block-file__button) { font-size: 15px; color: var(--ink); }
.k-entry-content .wp-block-file__button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 9999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500;
  transition: background-color .14s var(--snap);
}
.k-entry-content .wp-block-file__button:hover { background: var(--signal); color: #fff; }
.k-entry-content .wp-block-file .wp-block-file__embed { border-radius: 12px; overflow: hidden; }

/* --- Structure blocks --------------------------------------------------- */

.k-entry-content :where(.wp-block-columns) { margin-block: 36px; gap: 40px; }
.k-entry-content :where(.wp-block-column) > :first-child { margin-block-start: 0; }
.k-entry-content :where(.wp-block-column) > :last-child { margin-block-end: 0; }
.k-entry-content :where(.wp-block-media-text) { margin-block: 36px; }
.k-entry-content :where(.wp-block-media-text) img { border-radius: 12px; }
.k-entry-content :where(.wp-block-group.has-background) { padding: 32px; border-radius: 12px; }

.k-entry-content .wp-block-separator {
  margin-block: 48px; border: 0; height: 1px; background: var(--line);
  max-width: none; opacity: 1;
}
.k-entry-content .wp-block-separator.is-style-dots {
  background: none; height: auto; color: var(--muted); line-height: 1;
}
.k-entry-content .wp-block-separator.is-style-wide { max-width: none; }

.k-entry-content .wp-block-buttons { margin-block: 32px; gap: 12px; }
.k-entry-content :where(.wp-block-button__link) {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 9999px;
  font-size: 16px; font-weight: 500; letter-spacing: -.006em;
  background: var(--ink); color: #fff; border: 1px solid transparent;
  transition: background-color .14s var(--snap), border-color .14s var(--snap), color .14s var(--snap);
}
.k-entry-content .wp-block-button__link:hover { background: var(--signal); color: #fff; }
.k-entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff; color: var(--ink); border-color: #DCD9D4;
}
.k-entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: #A9A6A0; background: #fff; }

/* core/details and core/accordion are the same idea as the theme's own
   opening rows, so they are given the same hairline and the same mark. */
.k-entry-content .wp-block-details,
.k-entry-content .wp-block-accordion-item {
  margin-block: 0; border-top: 1px solid var(--line); padding: 0;
  background: none; border-left: 0; border-right: 0;
}
.k-entry-content .wp-block-details { margin-block: 28px; border-bottom: 1px solid var(--line); }
.k-entry-content .wp-block-accordion { margin-block: 32px; }
.k-entry-content .wp-block-accordion > :last-child { border-bottom: 1px solid var(--line); }
.k-entry-content .wp-block-details > summary,
.k-entry-content .wp-block-accordion-heading__toggle {
  padding: 16px 0; font-size: 15px; line-height: 1.6; font-weight: 400;
  color: var(--ink); cursor: pointer; list-style: none;
}
.k-entry-content .wp-block-details > summary::-webkit-details-marker { display: none; }
.k-entry-content .wp-block-details > summary::marker { content: ''; }
.k-entry-content .wp-block-details > summary:hover,
.k-entry-content .wp-block-accordion-heading__toggle:hover { color: var(--signal); }
.k-entry-content .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title { text-decoration: none; }
.k-entry-content .wp-block-details > summary { display: flex; align-items: baseline; gap: 20px; }
.k-entry-content .wp-block-details > summary::after {
  content: ''; order: 2; margin-left: auto; flex: none;
  width: 11px; height: 11px; align-self: center;
  background: var(--muted);
  -webkit-mask: var(--k-plus) no-repeat center / contain;
  mask: var(--k-plus) no-repeat center / contain;
  transition: transform .28s var(--snap);
}
.k-entry-content .wp-block-details[open] > summary::after { transform: rotate(45deg); }
.k-entry-content .wp-block-details > :not(summary) { margin-block: 0 18px; }
.k-entry-content .wp-block-details > summary + * { margin-top: 4px; }
.k-entry-content .wp-block-accordion-panel > * { margin-block: 0 18px; }

.k-entry-content .wp-block-tab-list { border-bottom: 1px solid var(--line); }
.k-entry-content .wp-block-tab-list button { padding: 12px 0; margin-right: 26px; font-size: 15px; color: var(--muted); }
.k-entry-content .wp-block-tab-list button[aria-selected="true"] { color: var(--ink); }
.k-entry-content .wp-block-tab-list button[aria-selected="true"]::before { border-bottom-color: var(--signal); }
.k-entry-content .wp-block-tab-panel { padding-top: 20px; }

.k-entry-content .wp-block-footnotes {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line);
  padding-left: 1.35em;
}
:where(.k-entry-content) .wp-block-footnotes li { font-size: 15px; line-height: 1.6; color: var(--body); }
.k-entry-content .wp-block-footnotes li a { color: var(--signal); text-decoration: none; }
.k-entry-content sup a,
.k-entry-content a.fn { color: var(--signal); text-decoration: none; }

.k-entry-content .wp-block-page-links,
.k-entry-content .page-links {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted);
}
.k-entry-content .page-links a,
.k-entry-content .page-links > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 9px; border-radius: 9999px; color: var(--body);
}
.k-entry-content .page-links a:hover { background: var(--soft); color: var(--ink); }
.k-entry-content .page-links > span:not(.page-links-title) { background: var(--ink); color: #fff; }

/* --- Widget blocks an author can drop into a post ----------------------- */

.k-entry-content :where(.wp-block-archives, .wp-block-categories, .wp-block-latest-posts, .wp-block-page-list, .wp-block-rss) {
  list-style: none; padding-left: 0; margin-block: 28px;
}
.k-entry-content :where(.wp-block-archives, .wp-block-categories, .wp-block-latest-posts, .wp-block-page-list, .wp-block-rss) li {
  margin: 0; padding: 13px 0; border-top: 1px solid var(--line);
}
.k-entry-content :where(.wp-block-archives, .wp-block-categories, .wp-block-latest-posts, .wp-block-page-list, .wp-block-rss) > li:last-child { border-bottom: 1px solid var(--line); }
:where(.k-entry-content) :where(.wp-block-archives, .wp-block-categories, .wp-block-latest-posts, .wp-block-page-list, .wp-block-rss) a { font-size: 15px; }
.k-entry-content :where(.wp-block-archives, .wp-block-categories, .wp-block-latest-posts, .wp-block-page-list, .wp-block-rss) li a { color: var(--ink); text-decoration: none; }
.k-entry-content :where(.wp-block-archives, .wp-block-categories, .wp-block-latest-posts, .wp-block-page-list, .wp-block-rss) li a:hover { color: var(--signal); }
.k-entry-content .wp-block-latest-posts__post-date,
.k-entry-content .wp-block-rss__item-publish-date {
  display: block; margin-top: 6px;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11.5px; color: var(--muted);
}
.k-entry-content .wp-block-latest-posts__post-excerpt { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); }

.k-entry-content .wp-block-latest-comments { list-style: none; padding-left: 0; margin-block: 28px; }
.k-entry-content .wp-block-latest-comments__comment { padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.k-entry-content .wp-block-latest-comments__comment-date { font-family: var(--wp--preset--font-family--mono); font-size: 11.5px; color: var(--muted); }

.k-entry-content .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 28px; }
.k-entry-content .wp-block-tag-cloud a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border-radius: 9999px; background: var(--panel); color: var(--body);
  text-decoration: none; font-size: 13.5px !important;
  transition: background-color .14s var(--snap), color .14s var(--snap);
}
.k-entry-content .wp-block-tag-cloud a:hover { background: var(--clay-tint); color: var(--signal); }

.k-entry-content .wp-block-calendar table { width: 100%; border-collapse: collapse; font-size: 14px; }
.k-entry-content .wp-block-calendar :where(th, td) { padding: 8px 4px; text-align: center; border: 0; border-top: 1px solid var(--line); color: var(--body); }
.k-entry-content .wp-block-calendar caption { padding-bottom: 12px; font-size: 13px; color: var(--muted); }
.k-entry-content .wp-block-calendar a { color: var(--signal); font-weight: 500; }

.k-entry-content .wp-block-social-links { gap: 8px; margin-block: 28px; }
.k-entry-content .wp-block-math { margin-block: 32px; color: var(--ink); }
.k-entry-content .wp-block-icon { color: var(--ink); }

/* Anything a plugin or the classic editor puts on the page keeps the measure
   rather than running past it. */
.k-entry-content :where(iframe, embed, object, video) { max-width: 100%; }
.k-entry-content .wp-block-freeform :where(img) { border-radius: 12px; }

/* --- Bands that only exist while they have something in them ------------ */

/* A section is a band of padding and a rule. Where its whole content is one
   core block that renders nothing — a post with no picture, no neighbour, no
   tags, comments that are closed — the band has to go with it, or the page
   ends in a run of empty ruled space. */
.k-band-shot:not(:has(.wp-block-post-featured-image)) { display: none; }
.k-band-postnav:not(:has(.wp-block-post-navigation-link)) { display: none; }
.k-band-comments:not(:has(.wp-block-comments)) { display: none; }
.k-band-related:has(.wp-block-query-no-results) { display: none; }

/* --- Tags, the writer, and what to read next ---------------------------- */

.k-taglist, .k-authorbox, .k-comments { max-width: 720px; }
.k-taglist { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.k-taglist a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border-radius: 9999px; background: var(--panel); color: var(--body); font-size: 13.5px;
  transition: background-color .14s var(--snap), color .14s var(--snap);
}
.k-taglist a:hover { background: var(--clay-tint); color: var(--signal); }
.k-taglist .wp-block-post-terms__separator { display: none; }

.k-taglist + .k-authorbox { margin-top: 44px; }
.k-authorbox { border-top: 1px solid var(--line); padding-top: 26px; }
.k-authorbox > * { margin-block: 0; }
.k-authorbox > * + * { margin-top: 10px; }
.k-authorbox .wp-block-post-author-name { font-size: 17px; font-weight: 500; color: var(--ink); }
.k-authorbox .wp-block-post-author-name a:hover { color: var(--signal); }
.k-authorbox .wp-block-post-author-biography { font-size: 15px; line-height: 1.6; color: var(--body); max-width: 62ch; }
.k-authorbox:not(:has(.wp-block-post-author-name, .wp-block-post-author-biography)),
.k-section:has(> .k-wrap > .k-authorbox:only-child):not(:has(.wp-block-post-author-name, .wp-block-post-author-biography)) { display: none; }

.k-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.k-postnav .wp-block-post-navigation-link {
  display: block; margin-block: 0; padding: 30px 24px 30px 0;
  border-top: 1px solid var(--line); min-height: 108px;
}
.k-postnav .wp-block-post-navigation-link:last-child {
  border-left: 1px solid var(--line); padding-left: 32px; padding-right: 0; text-align: right;
}
.k-postnav .wp-block-post-navigation-link a { display: block; color: var(--ink); }
.k-postnav .post-navigation-link__label {
  display: block; margin-bottom: 10px;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11.5px; letter-spacing: -.01em; color: var(--muted);
}
.k-postnav .post-navigation-link__title { font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.k-postnav .wp-block-post-navigation-link a:hover .post-navigation-link__title { color: var(--signal); }
.k-postnav .wp-block-post-navigation-link__arrow-previous,
.k-postnav .wp-block-post-navigation-link__arrow-next { display: none; }

/* --- Comments ----------------------------------------------------------- */

.k-comments > * { margin-block: 0; }
.k-comments > * + * { margin-top: 36px; }
.k-comments .wp-block-comments-title { font-size: 20px; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); color: var(--ink); margin: 0; }
.k-comments .wp-block-comment-template { list-style: none; margin: 0; padding: 0; }
.k-comments .wp-block-comment-template li { padding: 26px 0; border-top: 1px solid var(--line); }
.k-comments .wp-block-comment-template > li:last-child { border-bottom: 1px solid var(--line); }
.k-comments .wp-block-comment-template li ol { list-style: none; margin: 22px 0 0 0; padding-left: 28px; border-left: 1px solid var(--line); }
.k-comments .wp-block-comment-template li ol > li:first-child { border-top: 0; padding-top: 0; }
.k-comments .wp-block-comment-template li ol > li:last-child { border-bottom: 0; padding-bottom: 0; }
.k-comments .wp-block-comment-author-name { font-size: 15px; font-weight: 500; color: var(--ink); margin: 0; }
.k-comments .wp-block-comment-date,
.k-comments .wp-block-comment-edit-link {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11.5px; letter-spacing: -.01em; color: var(--muted); margin: 0;
}
.k-comments .k-commentmeta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 12px; }
.k-comments .wp-block-comment-content { margin: 0; }
.k-comments .wp-block-comment-content p { font-size: 16px; line-height: 1.62; color: var(--body); margin-block: 12px; }
.k-comments .wp-block-comment-content > :first-child { margin-top: 0; }
.k-comments .wp-block-comment-content > :last-child { margin-bottom: 0; }
.k-comments .wp-block-comment-reply-link { margin: 14px 0 0; font-size: 14px; font-weight: 500; }
.k-comments .wp-block-comment-reply-link a { color: var(--ink); }
.k-comments .wp-block-comment-reply-link a:hover { color: var(--signal); }
.k-comments .wp-block-comments-pagination { margin-top: 32px; gap: 20px; }
.wp-block-comments-pagination-previous,
.wp-block-comments-pagination-next {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: color .14s var(--snap);
}
.wp-block-comments-pagination-previous:hover,
.wp-block-comments-pagination-next:hover { color: var(--signal); }

/* --- Forms: the comment form and the search field ----------------------- */

.wp-block-post-comments-form { margin-top: 44px; }
.wp-block-post-comments-form .comment-reply-title {
  font-size: 20px; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); color: var(--ink); margin: 0 0 8px;
}
.wp-block-post-comments-form .comment-notes,
.wp-block-post-comments-form .logged-in-as { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }
.wp-block-post-comments-form .comment-form > p { margin-bottom: 18px; }
.wp-block-post-comments-form label {
  display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--muted);
}
.wp-block-post-comments-form :where(input[type="text"], input[type="email"], input[type="url"], textarea) {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid #DCD9D4; border-radius: 12px;
  padding: 12px 14px; box-shadow: none;
  transition: border-color .14s var(--snap);
}
.wp-block-post-comments-form :where(input, textarea):focus { outline: 0; border-color: var(--ink); }
.wp-block-post-comments-form textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.wp-block-post-comments-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 10px; }
.wp-block-post-comments-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; font-size: 14px; }
.wp-block-post-comments-form .form-submit { margin-top: 26px; }
.wp-block-post-comments-form :where(.wp-block-button__link, input[type="submit"]) {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 9999px;
  background: var(--ink); color: #fff; font-family: inherit; font-size: 16px; font-weight: 500;
  cursor: pointer; transition: background-color .14s var(--snap);
}
.wp-block-post-comments-form :where(.wp-block-button__link, input[type="submit"]):hover { background: var(--signal); }

.wp-block-search__label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.wp-block-search .wp-block-search__inside-wrapper { gap: 10px; }
.wp-block-search .wp-block-search__input {
  font-family: inherit; font-size: 15px; color: var(--ink); height: 48px;
  padding: 0 18px; background: #fff; border: 1px solid #DCD9D4; border-radius: 9999px;
  transition: border-color .14s var(--snap);
}
.wp-block-search .wp-block-search__input:focus { outline: 0; border-color: var(--ink); }
.wp-block-search .wp-block-search__button {
  height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 9999px;
  background: var(--ink); color: #fff; font-family: inherit; font-size: 16px; font-weight: 500;
  cursor: pointer; transition: background-color .14s var(--snap);
}
.wp-block-search .wp-block-search__button:hover { background: var(--signal); }
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
  border: 1px solid #DCD9D4; border-radius: 9999px; padding: 4px 4px 4px 8px; background: #fff;
}
.wp-block-search.wp-block-search__button-inside .wp-block-search__input { border: 0; height: 40px; }
.wp-block-search.wp-block-search__button-inside .wp-block-search__button { height: 40px; padding: 0 18px; font-size: 15px; }

/* --- Narrower screens --------------------------------------------------- */

@media (max-width: 1080px) {
  .k-blogtop, .k-articlehead { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .k-entry-content > .alignwide { width: 100%; margin-left: 0; }
}

@media (max-width: 720px) {
  .k-postrow { grid-template-columns: minmax(0, 1fr) 13px; gap: 12px 20px; padding: 24px 0; }
  .k-postrow__meta { grid-column: 1; grid-row: 1; padding-top: 0; }
  .k-postrow__meta > * { display: inline; }
  .k-postrow__meta > * + * { margin-top: 0; margin-left: 14px; }
  .k-postrow__body { grid-column: 1 / -1; grid-row: 2; }
  .k-postrow::after { grid-column: 2; grid-row: 1; align-self: start; margin-top: 4px; }

  .k-postnav { grid-template-columns: minmax(0, 1fr); }
  .k-postnav .wp-block-post-navigation-link { min-height: 0; padding: 24px 0; }
  .k-postnav .wp-block-post-navigation-link:last-child { border-left: 0; padding-left: 0; text-align: left; justify-content: flex-start; }

  .k-entry-content .alignleft,
  .k-entry-content .alignright { float: none; max-width: 100%; margin-inline: 0; }
  .k-entry-content :where(.wp-block-code, .wp-block-preformatted, pre) { padding: 18px; }
  .k-entry-content .wp-block-file { flex-direction: column; align-items: flex-start; gap: 14px; }
  .k-comments .wp-block-comment-template li ol { padding-left: 16px; }
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
  .k-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-split, .k-split--flip, .k-statement, .k-intro--split, .k-pagehero__grid { grid-template-columns: minmax(0, 1fr) !important; gap: 40px; }
  .k-split--flip > *:last-child { order: 0; }
  .k-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .k-hero { padding-top: 56px; }
}

@media (max-width: 720px) {
  .k-grid--2, .k-grid--3, .k-grid--4 { grid-template-columns: minmax(0, 1fr); }
  /* The brand takes its own row, so the link columns stop leaving a hole
     beside it and get the full measure for their labels. */
  .k-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
  .k-footer__brand { grid-column: 1 / -1; }
  .k-footer__brand p { max-width: none; }
  .k-entry { grid-template-columns: minmax(0, 24px) minmax(0, 1fr); gap: 8px 16px; padding: 24px 0; }
  .k-entry > svg, .k-entry > span:last-child:empty { display: none; }
  .k-entry p { grid-column: 2; }
  /* Smaller marks and a tighter gap, so more than two fit on a phone. */
  .k-marq-row { gap: 40px; padding-right: 40px; }
  .k-marq-row img { height: 30px; }
  .k-marq__head { flex-direction: column; gap: 12px; }
  .k-marq__head p { text-align: left; }
  .k-cta__steps { gap: 20px; }
}

/* Phone layouts give claims a clear reading order; supporting detail stays
   available without turning every desktop column into another long paragraph. */
@media (max-width: 720px) {
  :root, .editor-styles-wrapper { --gutter: 20px; --radius-panel: 28px; --radius-card: 20px; --radius-media: 14px; --band-edge: 8px; --radius-band: 20px; }
  .k-section {
    padding-top: min(var(--section-space-top), 64px);
    padding-bottom: min(var(--section-space-bottom), 64px);
  }
  .k-header__inner { gap: 12px; }
  .k-header__right { gap: 8px; }
  .k-header__toggle { width: 44px; height: 44px; }
  .k-header__left, .k-header__right { min-width: 0; }

  .k-lede, .k-prose--lede { font-size: 17px; line-height: 1.58; }
  .k-intro--split, .k-statement, .k-pagehero__grid { gap: 24px; }
  .k-split, .k-split--flip { gap: 32px; }
  .k-intro__label, .k-statement .k-intro__label { margin-bottom: 14px; }
  .k-intro .k-lede { margin-top: 16px; }
  .k-intro--split .k-lede { margin-top: 0; }
  .k-intro[style]:not(.is-style-open-story .k-intro) { margin-bottom: 28px !important; }
  .k-statement--top .k-statement__body { padding-top: 0; }
  .k-section .k-cta__inner { padding-inline: 0; }
  .k-cta__steps { flex-direction: column; gap: 8px; margin-top: 24px; }
  .k-actions .k-btn { max-width: 100%; min-height: 48px; height: auto; padding-block: 12px; white-space: normal; text-align: center; }
  .k-link { max-width: 100%; line-height: 1.45; }
  .k-section--soft > .k-wrap { padding-block: 32px; }

  .k-feature h4 { font-size: 18px; font-weight: 500; line-height: 1.35; text-wrap: pretty; }
  .k-feature .k-link { color: var(--signal); }
  .k-section--bg-dark .k-feature .k-link { color: #fff; }
  .k-grid--ruled:has(> .k-feature--ruled) { border-top: 0; padding-top: 0 !important; }

  .k-grid--feature-disclosure.is-mobile-disclosure { gap: 12px !important; border-top: 0; padding-top: 0 !important; }
  .is-mobile-disclosure > .k-feature--disclosure {
    display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px;
    padding: 0 16px; border-radius: var(--radius-card); border: 0; background: var(--cell-bg);
  }
  .is-mobile-disclosure > .k-feature--disclosure:last-child { border-bottom: 0; }
  .k-feature--disclosure > h4 { grid-column: 1 / -1; grid-row: 1; }
  .k-feature--disclosure:has(> .k-feature__icon) > h4,
  .k-feature--disclosure:has(> .k-feature__index) > h4 { grid-column: 2; }
  .k-feature--disclosure > .k-feature__icon,
  .k-feature--disclosure > .k-feature__index { grid-column: 1; grid-row: 1; margin: 0; padding-top: 22px; }
  .k-feature__toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    width: 100%; min-height: 64px; padding: 20px 0; border: 0; background: none;
    font: inherit; color: inherit; text-align: left;
  }
  .k-feature__toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 3px; }
  .k-feature__title { min-width: 0; }
  .k-feature__mark { margin: 0; }
  .k-feature--disclosure.is-open .k-feature__mark::after { transform: rotate(90deg); opacity: 0; }
  .k-feature__panel { grid-column: 1 / -1; padding-bottom: 22px; }
  .k-feature__panel[hidden] { display: none; }
  .k-feature__panel > p { margin: 0; }
  .k-feature__panel .k-link { margin-top: 12px; padding-block: 4px; }

  /* Match the wide variant's specificity: it must not keep four columns. */
  .k-entries .k-entry {
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    gap: 10px 12px; align-items: start; padding: 20px;
  }
  .k-entry::before { left: 0; right: 0; border-radius: 0; }
  .k-entry > .k-entry__index { grid-column: 1; grid-row: 1; padding-top: 3px; }
  .k-entry > h3 { grid-column: 2; grid-row: 1; font-size: 18px; line-height: 1.35; font-weight: 500; text-wrap: pretty; }
  .k-entry > p { grid-column: 2 / -1; grid-row: 2; }
  .k-entry > svg { display: block; grid-column: 3; grid-row: 1; margin-top: 6px; }
  .k-entry:has(> .k-entry__index:empty) { grid-template-columns: minmax(0, 1fr) 16px; }
  .k-entry > .k-entry__index:empty { display: none; }
  .k-entry:has(> .k-entry__index:empty) > h3 { grid-column: 1; }
  /* Ruled rows centre the arrow across both lines, so their text keeps column 1. */
  .k-entries:not(.is-style-ruled) > .k-entry:has(> .k-entry__index:empty) > p { grid-column: 1 / -1; }
  .k-entry:has(> .k-entry__index:empty) > svg { grid-column: 2; }
  .k-section--soft .k-entry { padding: 20px 16px; }

  .k-filter .k-tabs { display: flex; flex-wrap: wrap; height: auto; overflow: visible; gap: 6px; padding: 0; border: 0; border-radius: 0; }
  .k-filter .k-tab { min-height: 40px; height: auto; padding: 10px 12px; border: 1px solid var(--line); }
  .k-postrow .wp-block-post-title { --wp--preset--font-size--block-title: 20px; font-size: 20px; line-height: 1.3; }
  .k-entry-content :where(p, li, dd) { overflow-wrap: anywhere; }
  .k-entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100%; }
  .wp-block-post-comments-form :where(input:not([type="checkbox"]):not([type="radio"]), textarea) { font-size: 16px; }
  .wp-block-post-comments-form label { font-size: 14px; }

  .k-diagram__desktop { display: none; }
  .k-diagram__mobile { display: block; }
  .k-diagram__group { border-top: 1px solid var(--line); padding-top: 18px; }
  .k-diagram__label { font-size: 13px; font-weight: 500; color: var(--signal); line-height: 1.4; }
  .k-diagram__nodes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
  .k-diagram__group--clients .k-diagram__nodes,
  .k-diagram__group--machines .k-diagram__nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .k-diagram__node { margin: 0; padding: 0; }
  .k-diagram__node-title { display: block; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.4; }
  .k-diagram__node-subtitle, .k-diagram__routes { display: block; color: var(--body); font-size: 13.5px; line-height: 1.5; margin-top: 3px; }
  .k-diagram__edge { margin: 18px 0; color: var(--body); font-size: 12px; line-height: 1.5; }
  .k-diagram__group + .k-diagram__group { margin-top: 24px; }
  .k-diagram__group--hub { padding: 20px; background: var(--clay-tint); border: 0; border-radius: 12px; }
  .k-diagram__hub { margin-top: 12px; }
  .k-diagram__hub .k-diagram__node-title { font-size: 22px; }
  .k-diagram__hub-detail { margin-top: 10px; color: var(--body); font-size: 14px; line-height: 1.5; }
  .k-diagram figcaption { margin-top: 20px; font-size: 14px; }
}

@media (max-width: 359px) {
  .k-header__right > .k-btn { padding-inline: 12px; font-size: 13px; }
  .k-header__right > .k-btn .k-arw { display: none; }
}

@media (scripting: none) {
  .k-rv { opacity: 1; transform: none; }
}

/* --- Product presentation styles --------------------------------------- */

/* Opt-in styles share the existing blocks. The image has room to explain
   the product; the adjacent copy carries one clear point. */
:root, .editor-styles-wrapper { --k-presentation-tint: var(--pastel-clay); }
:where(.k-section, .k-figure).k-accent-green { --k-presentation-tint: var(--pastel-green); }
:where(.k-section, .k-figure).k-accent-blue { --k-presentation-tint: var(--pastel-blue); }
:where(.k-section, .k-figure).k-accent-violet { --k-presentation-tint: var(--pastel-violet); }
:where(.k-section, .k-figure).k-accent-amber { --k-presentation-tint: var(--pastel-amber); }
:where(.k-section, .k-figure).k-accent-rose { --k-presentation-tint: var(--pastel-rose); }
:where(.k-section, .k-figure).k-accent-teal { --k-presentation-tint: var(--pastel-teal); }

.k-section.is-style-story {
  position: relative; isolation: isolate;
  padding: min(var(--section-space-top), 32px) 0 min(var(--section-space-bottom), 32px);
  background: transparent; border: 0;
}
.k-section.is-style-story::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: min(var(--section-space-top), 32px) var(--band-edge) min(var(--section-space-bottom), 32px);
  border-radius: var(--radius-band); background: var(--panel);
}
.k-section.is-style-story > .k-wrap {
  max-width: var(--wrap); padding: 88px var(--gutter);
  border: 0; border-radius: 0; background: transparent;
}
/* Reversed stories sit on white, with color concentrated around the image. */
.k-section.is-style-story:not(.k-section--bg-dark):has(> .k-wrap > .k-split--flip)::before { content: none; }
.k-section.is-style-story .k-split {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center; gap: clamp(32px, 4.5vw, 64px);
}
.k-section.is-style-story .k-split--flip { grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); }
.k-section.is-style-story .k-intro { display: block; max-width: 38ch; }
.k-section.is-style-story .k-intro h2 {
  max-width: 18ch; font-size: clamp(36px, 3vw, 44px) !important;
  line-height: 1.16; letter-spacing: var(--display-tracking); font-weight: var(--display-weight); text-wrap: balance;
}
.k-section.is-style-story .k-intro__label {
  display: inline-flex; max-width: 100%; padding: 8px 12px; margin-bottom: 20px;
  border-radius: 999px; background: var(--panel); color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .06);
  font-size: 12px; font-weight: 500; line-height: 1.4;
}
.k-section.is-style-story .k-lede { max-width: 38ch; margin-top: 22px; font-size: 17px; line-height: 1.65; color: var(--body); }
.k-section.is-style-story .k-stack > .k-link { margin-top: 26px; }
.k-section.is-style-story .k-figure { min-width: 0; }
.k-section.is-style-story .k-shot {
  border-radius: var(--radius-media); border-color: rgba(17,17,18,.08); box-shadow: 0 12px 40px rgba(35,31,25,.055);
}
.k-section.is-style-story figcaption { font-size: 13px; line-height: 1.55; }

/* A centered opening claim; the screenshot remains an independent block. */
.k-section.is-style-page-opening {
  padding-top: min(var(--section-space-top), 88px); padding-bottom: min(var(--section-space-bottom), 72px);
}
.k-section.is-style-page-opening .k-pagehero { padding-bottom: 0; text-align: center; }
.k-section.is-style-page-opening .k-pagehero__grid { display: block; margin-top: 26px; }
.k-section.is-style-page-opening .k-pagehero h1 {
  max-width: 24ch; margin-inline: auto; font-size: clamp(40px, 4.2vw, 56px) !important;
  line-height: 1.14; letter-spacing: var(--display-tracking); font-weight: var(--display-weight-title);
}
.k-section.is-style-page-opening .k-pagehero .k-lede { max-width: 58ch; margin: 26px auto 0; font-size: 19px; line-height: 1.6; }
.k-section.is-style-page-opening .k-actions { justify-content: center; }
.k-section.is-style-page-opening .k-intro { max-width: 800px; margin-inline: auto; text-align: center; }
.k-section.is-style-page-opening .k-intro h2 { max-width: 22ch; margin-inline: auto; }
.k-section.is-style-page-opening .k-intro .k-lede { max-width: 58ch; margin-inline: auto; }

/* The real image is framed, never stretched or cropped by this style. */
.k-figure.is-style-showcase { padding: clamp(18px, 3vw, 40px); border-radius: 32px; background: var(--panel); }
.k-figure--page.is-style-showcase { width: calc(100% - var(--gutter) * 2); }
.k-figure.is-style-showcase .k-shot {
  border: 1px solid rgba(17,17,18,.09); border-radius: 14px; background: #fff;
  box-shadow: 0 12px 36px rgba(35,31,25,.07);
}
.k-figure.is-style-showcase figcaption { max-width: 64ch; padding-bottom: 0; margin: 16px auto 0; font-size: 13px; }
.k-section.is-style-story .k-figure.is-style-showcase { padding: 20px; border-radius: 24px; background: rgba(255,255,255,.55); }
.k-section.is-style-story:not(.k-section--bg-dark):has(> .k-wrap > .k-split--flip) .k-figure.is-style-showcase {
  padding: 32px; border-radius: 32px; background: var(--panel);
}

/* A flat summary band gives the page a break from the framed media. */
.k-figure.is-style-screenshot { background: transparent; }
.k-figure--page.is-style-screenshot { padding-bottom: 0; margin-bottom: 0; }
.k-figure.is-style-screenshot .k-shot { box-shadow: 0 8px 32px rgba(35,31,25,.045); }
.k-figure--page.is-style-screenshot:has(+ .k-section--border-top) .k-shot {
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.k-section:has(> .k-wrap > .k-grid.is-style-summary) { background: var(--panel); border: 0; box-shadow: var(--panel-edge); }
.k-grid.is-style-summary { gap: 48px !important; }
.k-grid.is-style-summary > .k-feature { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.k-section--bg-dark:has(> .k-wrap > .k-grid.is-style-summary) { background: var(--ink); }
.k-section--bg-dark .k-grid.is-style-summary > .k-feature { background: transparent; }
.k-section--bg-dark .k-grid.is-style-summary > .k-feature + .k-feature { border-color: rgba(255, 255, 255, .16); }
.k-section--bg-dark .k-grid.is-style-summary > .k-feature .k-small { color: rgba(255, 255, 255, .72); }
/* A summary is read across, like the columns of a page: hairlines between
   the columns, no cards and no marks. */
.k-grid.is-style-summary > .k-feature .k-feature__icon { display: none; }
.k-grid.is-style-summary > .k-feature + .k-feature { border-left: 1px solid var(--panel-line); padding-left: 40px; }
.k-grid.is-style-summary { gap: 40px !important; }
.k-grid.is-style-summary > .k-feature h4 { font-size: 22px; line-height: 1.25; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-wrap: balance; }
.k-grid.is-style-summary > .k-feature .k-small { max-width: 36ch; margin-top: 12px; font-size: 16px; line-height: 1.6; }
@media (max-width: 720px) {
  .k-grid.is-style-summary { gap: 24px !important; }
  .k-grid.is-style-summary > .k-feature + .k-feature { border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--panel-line); }
}

/* Linked tiles keep one focus stop and stay visible on phones. */
.k-grid.is-style-paths { gap: 16px !important; border: 0; padding-top: 0 !important; }
.k-grid.is-style-paths > .k-feature {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0; padding: 28px; border: 1px solid var(--card-line); border-radius: var(--radius-card); background: var(--card-bg); text-align: left;
}
.k-grid.is-style-paths > .k-feature:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.k-grid.is-style-paths > .k-feature h4 { font-size: 23px; line-height: 1.23; letter-spacing: var(--display-tracking); font-weight: var(--display-weight); }
.k-grid.is-style-paths > .k-feature .k-small { max-width: 34ch; margin-top: 12px; font-size: 15px; line-height: 1.55; }
.k-grid.is-style-paths > .k-feature .k-feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px;
  background: var(--accent-bg, var(--panel));
}
.k-grid.is-style-paths > .k-feature .k-feature__icon svg { stroke: var(--accent-ink, var(--ink)); }
.k-grid.is-style-paths > .k-feature .k-feature__index { margin: 0 0 16px; }
.k-grid.is-style-paths > .k-feature .k-link { margin-top: auto; padding-top: 22px; color: var(--ink); }
.k-grid.is-style-paths > .k-feature .k-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.editor-styles-wrapper .k-grid.is-style-paths > .k-feature .k-link::after { display: none; }
.k-section--bg-dark .k-grid.is-style-paths > .k-feature { background: #202123; border-color: #393A3D; }
.k-section--bg-dark .k-grid.is-style-paths > .k-feature:has(.k-link):hover { background: #28292C; }
.k-section--bg-dark .k-grid.is-style-paths > .k-feature .k-link { color: #fff; }

/* Quiet progression uses the feature's authored number. */
.k-grid.is-style-process { gap: 44px !important; border: 0; padding-top: 0 !important; }
.k-grid.is-style-process > .k-feature { position: relative; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; }
.k-grid.is-style-process > .k-feature:has(> .k-feature__index):has(~ .k-feature)::before {
  content: ""; position: absolute; height: 1px; left: 46px; right: -30px; top: 17px; background: var(--line);
}
.k-grid.is-style-process > .k-feature .k-feature__index {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  margin: 0 0 24px; border: 1px solid #D5D0C7; border-radius: 50%; color: #6C6254; background: #fff;
}
.k-grid.is-style-process > .k-feature h4 { max-width: 24ch; font-size: 23px; line-height: 1.25; letter-spacing: var(--display-tracking); font-weight: var(--display-weight); }
.k-grid.is-style-process > .k-feature .k-small { max-width: 34ch; margin-top: 12px; font-size: 16px; line-height: 1.6; }
.k-grid.is-style-process > .k-feature .k-link { margin-top: 18px; }

.k-section.is-style-related {
  padding-top: min(var(--section-space-top), 64px); padding-bottom: min(var(--section-space-bottom), 64px);
  background: #fff; border: 0; --cell-bg: var(--panel);
}
.k-section.is-style-related .k-intro { max-width: none; margin-inline: 0; text-align: left; }
.k-section.is-style-related .k-intro h2 { font-size: 28px !important; line-height: 1.2; letter-spacing: var(--display-tracking); }
.k-section.is-style-related .k-intro .k-lede { max-width: 58ch; font-size: 16px; line-height: 1.6; }
.k-section.is-style-related .k-entry { gap: 20px; padding-block: 22px; }
.k-section.is-style-related .k-entry h3 { font-size: 20px; line-height: 1.3; }
.k-section.is-style-related .k-entry p { font-size: 15px; line-height: 1.6; }
/* Related cards: the page's own picture, its name and line, and the arrow.
   The picture is the linked page's photograph, or its screenshot for a
   feature page (feature render.php); a card without one keeps its mark.
   Pointing at a card brings its picture slowly closer and lights the arrow
   in the signal colour, so the card wakes up without turning dark. */
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths { gap: 16px !important; }
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px 18px;
  grid-template-rows: auto 1fr; align-items: start; padding: 22px 24px;
  border: 0; border-radius: 20px; background: var(--panel);
  transition: background-color .3s var(--snap);
}
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature.has-media { grid-template-columns: 168px minmax(0, 1fr) 44px; align-items: center; padding: 12px 24px 12px 12px; }
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature:only-child { grid-column: 1 / -1; }
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature h4 {
  grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: var(--display-tracking);
}
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-small {
  grid-column: 2; grid-row: 2; align-self: start; margin: 0; max-width: 60ch; font-size: 15px; line-height: 1.55;
}
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-feature__icon {
  grid-column: 1; grid-row: 1 / span 2; margin: 0; padding: 0;
  width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-feature__icon svg { width: 20px; height: 20px; stroke: currentColor; }
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature.has-media .k-feature__icon { display: none; }
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-feature__media {
  grid-column: 1; grid-row: 1 / span 2; display: block; position: relative;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #fff;
}
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-feature__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: scale 1.2s var(--glide);
}
/* A screenshot is shown at a size where it still reads as the product: its
   top corner, not the whole screen shrunk to a thumbnail. */
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-feature__media--capture { box-shadow: inset 0 0 0 1px var(--panel-line); }
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-feature__media--capture img { width: max(100%, calc(var(--media-w, 2240) * .2px)); max-width: none; height: auto; object-fit: initial; }
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-link {
  grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-content: center;
  width: 44px; min-height: 44px; margin: 0; padding: 0; gap: 0; font-size: 0;
  border: 1px solid transparent; border-radius: 50%; background: #fff; color: var(--ink);
  transition: border-color .3s var(--snap), color .3s var(--snap);
}
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-link svg { width: 16px; height: 16px; }
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature:has(.k-link):hover { background: #ECE9FB; transform: none; box-shadow: none; }
.k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature:has(.k-link):hover .k-link { border-color: var(--signal); color: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
  .k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature:has(.k-link):hover .k-feature__media img { scale: 1.06; }
}
.editor-styles-wrapper .k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-link {
  grid-column: 2 / -1; grid-row: 3; width: auto; justify-content: flex-start;
  gap: 8px; font-size: 14px; background: transparent;
}
.k-section:is(.is-style-related, .is-style-technical-related).k-section--bg-dark .k-grid.is-style-paths > .k-feature { background: #242528; }
.k-section:is(.is-style-related, .is-style-technical-related).k-section--bg-dark .k-grid.is-style-paths > .k-feature .k-link { background: #34363A; color: #fff; }
.k-related-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }
.k-related-links > .k-link { margin: 0 !important; min-height: 44px; font-size: 17px; }

@media (max-width: 900px) {
  .k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths { grid-template-columns: minmax(0, 1fr); }
}

.k-section.is-style-quiet-proof {
  padding-top: min(var(--section-space-top), 72px); padding-bottom: min(var(--section-space-bottom), 72px);
  border: 0; background: transparent;
}
.k-section.is-style-quiet-proof .k-statement,
.k-section.is-style-quiet-proof .k-intro { display: block; max-width: 800px; margin-inline: auto; text-align: center; }
.k-section.is-style-quiet-proof .k-statement__head,
.k-section.is-style-quiet-proof .k-intro h2 { font-size: clamp(32px, 3.1vw, 44px) !important; line-height: 1.16; letter-spacing: var(--display-tracking); }
.k-section.is-style-quiet-proof .k-statement__body { padding-top: 0; margin-top: 22px; }
.k-section.is-style-quiet-proof .k-lede { max-width: 62ch; margin-inline: auto; font-size: 18px; line-height: 1.65; }
.k-section.is-style-quiet-proof .k-statement__emphasis { font-size: 15px; }
.k-section.is-style-quiet-proof .k-link { display: flex; width: fit-content; margin-inline: auto; }
.k-section.is-style-quiet-proof.k-section--bg-dark,
.k-section.is-style-related.k-section--bg-dark { background: var(--ink); }
.k-section.is-style-story.k-section--bg-dark::before { background: var(--ink); }
.k-section.is-style-story.k-section--bg-dark .k-lede,
.k-section.is-style-story.k-section--bg-dark figcaption { color: #D0D7D2; }
.k-section.is-style-story.k-section--bg-dark .k-intro__label { color: #B6C4BA; background: rgba(255,255,255,.08); }

/* The warm homepage surface also closes every product and company page. */
.k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender))) {
  --focus-ring: var(--signal-lit);
  position: relative; isolation: isolate;
  padding: 112px var(--gutter);
  border: 0; background: transparent; color: var(--ink);
}
.k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender)))::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 var(--band-edge); border-radius: var(--radius-band); background: var(--plate-close);
  box-shadow: var(--plate-gloss), var(--plate-lift);
}
.k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender))) > .k-wrap {
  padding: 0; border: 0; border-radius: 0; background: transparent;
}
.k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender))) .k-cta h2 {
  color: #fff; font-size: clamp(36px, 4vw, 56px) !important; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.16;
}
.k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender))) .k-cta .k-lede { color: rgba(255,255,255,.82); }
.k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender))) .k-cta :is(.k-src, .k-tiny) { color: rgba(255,255,255,.60); }
.k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender))) .k-btn--onlight { background: #fff; color: #0B0B0C; }
.k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender))) .k-btn--onlight:hover { background: #E4E4E7; }
.k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender))) .k-btn--ondark { border-color: rgba(255,255,255,.3); color: #fff; }
.k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender))) .k-btn--ondark:hover { background: rgba(255,255,255,.12); }

.k-marquee.is-style-static .k-marq { width: 100%; max-width: none; margin: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.k-marquee.is-style-static .k-marq-row {
  width: 100%; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 28px 44px; animation: none; transform: none;
}
.k-marquee.is-style-static .k-marq-row img { width: auto; max-width: 112px; height: 30px; object-fit: contain; }
.k-marquee.is-style-static .k-marq__head { display: block; max-width: 720px; margin: 0 auto 32px; text-align: center; }
.k-marquee.is-style-static .k-marq__head h3 { font-size: 20px !important; font-weight: 500; }
.k-marquee.is-style-static .k-marq__head p { max-width: 58ch; margin: 12px auto 0; text-align: center; }
.k-marquee.is-style-static > .k-small { margin-inline: auto; text-align: center; }
.k-section:has(> .k-wrap > .k-marquee.is-style-static) .k-link { display: flex; width: fit-content; margin-inline: auto; }

@media (max-width: 1080px) {
  .k-section.is-style-story > .k-wrap { padding: 64px calc(var(--gutter) + var(--band-edge)); }
  .k-section.is-style-story .k-split { gap: 36px; }
  .k-section.is-style-story .k-stack { max-width: 620px; }
  .k-section.is-style-story .k-intro, .k-section.is-style-story .k-lede { max-width: 52ch; }
  .k-section.is-style-story .k-intro h2 { max-width: 22ch; }
  .k-grid.is-style-paths > .k-feature { padding: 24px; }
  .k-grid.is-style-process { gap: 28px !important; }
  .k-grid.is-style-process > .k-feature:has(~ .k-feature)::before { right: -16px; }
}

@media (max-width: 720px) {
  .k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender))) { padding: 72px calc(var(--gutter) + var(--band-edge)); }
  .k-section:not(.is-style-open-story):not(:where(.is-style-company-close)):has(> .k-wrap > .k-cta):not(:has(> .k-wrap > :not(.k-cta, .block-list-appender))) .k-cta h2 { font-size: clamp(26px, 8vw, 36px) !important; overflow-wrap: anywhere; }
  .k-grid.is-style-summary { gap: 28px !important; }
  .k-grid.is-style-summary > .k-feature { padding: 0; }
  .k-acc__item { padding-inline: 20px; }
  .k-section.is-style-story { padding: min(var(--section-space-top), 24px) 0 min(var(--section-space-bottom), 24px); }
  .k-section.is-style-story::before { top: min(var(--section-space-top), 24px); bottom: min(var(--section-space-bottom), 24px); }
  .k-section.is-style-story > .k-wrap { padding: 48px calc(var(--gutter) + var(--band-edge)); border-radius: 0; }
  .k-section.is-style-story .k-split { gap: 28px; }
  .k-section.is-style-story .k-split > .k-stack { order: 0; }
  .k-section.is-style-story .k-split > .k-figure { order: 1; }
  .k-section.is-style-story .k-intro { max-width: none; }
  .k-section.is-style-story .k-intro[style] { margin-bottom: 0 !important; }
  .k-section.is-style-story .k-intro h2 { max-width: none; font-size: 30px !important; line-height: 1.18; }
  .k-section.is-style-story .k-intro__label { margin-bottom: 14px; }
  .k-section.is-style-story .k-lede { margin-top: 18px; font-size: 16px; line-height: 1.6; }
  .k-section.is-style-story .k-stack > .k-link { margin-top: 20px !important; }
  .k-section.is-style-story .k-figure { margin-top: 0 !important; }
  .k-section.is-style-story .k-shot { border-radius: var(--radius-media); }
  .k-section.is-style-story .k-figure.is-style-showcase { padding: 0; border-radius: 10px; background: transparent; }
  .k-section.is-style-story:not(.k-section--bg-dark):has(> .k-wrap > .k-split--flip) .k-figure.is-style-showcase { padding: 16px; border-radius: 24px; }
  .k-section.is-style-page-opening { padding-top: min(var(--section-space-top), 52px); padding-bottom: min(var(--section-space-bottom), 52px); }
  .k-section.is-style-page-opening .k-pagehero__grid { margin-top: 22px; }
  .k-section.is-style-page-opening .k-pagehero h1 { max-width: none; font-size: 36px !important; line-height: 1.16; }
  .k-section.is-style-page-opening .k-pagehero .k-lede { margin-top: 22px; font-size: 17px; line-height: 1.6; }
  .k-figure.is-style-showcase { padding: 14px; border-radius: 24px; }
  .k-figure.is-style-showcase .k-shot { border-radius: 10px; }
  .k-grid.is-style-paths { gap: 12px !important; }
  .k-grid.is-style-paths > .k-feature {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 8px 12px;
    padding: 20px; border-radius: var(--radius-card);
  }
  .k-grid.is-style-paths > .k-feature:last-child { border-bottom: 0; }
  .k-grid.is-style-paths > .k-feature h4 { grid-column: 2; grid-row: 1; margin: 0; font-size: 20px; line-height: 1.25; }
  .k-grid.is-style-paths > .k-feature .k-small { grid-column: 2; grid-row: 2; max-width: none; margin: 0; font-size: 15px; }
  .k-grid.is-style-paths > .k-feature .k-feature__icon,
  .k-grid.is-style-paths > .k-feature .k-feature__index { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin: 0; padding-top: 3px; }
  .k-grid.is-style-paths > .k-feature .k-feature__icon { width: 36px; height: 36px; padding: 0; border-radius: 12px; }
  .k-grid.is-style-paths > .k-feature .k-link {
    grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-content: center;
    width: 16px; min-height: 44px; margin: 0; padding: 0; gap: 0; font-size: 0;
  }
  .k-grid.is-style-paths > .k-feature .k-link svg { display: block; width: 16px; height: 16px; }
  .k-grid.is-style-paths > .k-feature .k-link::after { border-radius: var(--radius-card); }
  .k-grid.is-style-paths > .k-feature:not(:has(> .k-feature__icon, > .k-feature__index)) { grid-template-columns: minmax(0, 1fr) 16px; }
  .k-grid.is-style-paths > .k-feature:not(:has(> .k-feature__icon, > .k-feature__index)) :is(h4, .k-small) { grid-column: 1; }
  .k-grid.is-style-paths > .k-feature:not(:has(> .k-feature__icon, > .k-feature__index)) .k-link { grid-column: 2; }
  .k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature { padding: 20px; grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 12px; }
  .k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-feature__icon { grid-row: 1; align-self: center; width: 36px; height: 36px; border-radius: 12px; }
  .k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-link { grid-row: 1; width: 24px; background: transparent; }
  .k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature h4 { align-self: center; font-size: 18px; }
  .k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature .k-small { grid-column: 1 / -1; }
  /* With a picture the card keeps it beside the name; the line goes under both. */
  .k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature.has-media { grid-template-columns: 96px minmax(0, 1fr) 24px; padding: 10px 16px 16px 10px; align-items: center; }
  .k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature.has-media .k-feature__media { grid-row: 1; }
  .k-section:is(.is-style-related, .is-style-technical-related) .k-grid.is-style-paths > .k-feature.has-media .k-small { grid-column: 1 / -1; padding-left: 6px; }
  .k-grid.is-style-process { gap: 28px !important; }
  .k-grid.is-style-process > .k-feature { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px 18px; }
  .k-grid.is-style-process > .k-feature > :not(.k-feature__index) { grid-column: 2; margin: 0; }
  .k-grid.is-style-process > .k-feature .k-feature__index { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .k-grid.is-style-process > .k-feature:has(> .k-feature__index):has(~ .k-feature)::before { top: 44px; bottom: -18px; left: 16px; right: auto; width: 1px; height: auto; }
  .k-grid.is-style-process > .k-feature h4 { max-width: none; font-size: 22px; line-height: 1.25; }
  .k-grid.is-style-process > .k-feature .k-small { max-width: none; margin-top: 0; font-size: 15px; }
  .k-section.is-style-related { padding-top: min(var(--section-space-top), 44px); padding-bottom: min(var(--section-space-bottom), 44px); }
  .k-section.is-style-related .k-entry { gap: 8px 16px; padding-block: 20px; }
  .k-section.is-style-related .k-entry h3 { font-size: 19px; }
  .k-section.is-style-quiet-proof { padding-top: min(var(--section-space-top), 52px); padding-bottom: min(var(--section-space-bottom), 52px); }
  .k-section.is-style-quiet-proof .k-statement__head, .k-section.is-style-quiet-proof .k-intro h2 { font-size: 32px !important; }
  .k-section.is-style-quiet-proof .k-lede { font-size: 17px; }
  .k-marquee.is-style-static .k-marq-row { gap: 24px 28px; }
  /* Wide wordmarks are held by the width; the height gives squarer marks room to stay legible. */
  .k-marquee.is-style-static .k-marq-row img { width: calc((100% - 56px) / 3); max-width: 100px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .k-btn { transition: none; }
  .k-btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .k-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* A native modal enlarges the original image only when requested. Links still
   open the image directly without scripting or dialog support. */
.k-shot-link { position: relative; display: block; cursor: zoom-in; }
/* Pointing at a screenshot says it opens larger: a round enlarge mark rises
   into the corner. The link already names itself, so the mark is decoration. */
.k-shot-link::after {
  content: ""; position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%230B0B0C' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.75'/%3E%3Cpath d='M10.5 10.5 14 14M7 5v4M5 7h4'/%3E%3C/svg%3E") no-repeat center;
  box-shadow: 0 0 0 1px rgba(17,17,18,.08), 0 6px 18px rgba(17,17,18,.14);
  opacity: 0; transform: translateY(6px) scale(.86);
  transition: opacity .22s var(--snap), transform .45s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .k-shot-link:is(:hover, :focus-visible)::after { opacity: 1; transform: none; }
}
.k-shot-link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
html:has(.k-image-dialog[open]) { overflow: hidden; }
.k-image-dialog {
  position: fixed; inset: 0; width: min(1440px, calc(100vw - 40px)); height: min(1000px, calc(100dvh - 40px));
  max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid rgba(17,17,18,.12);
  border-radius: 20px; background: #F5F4F1; color: var(--ink); box-shadow: 0 24px 100px rgba(0,0,0,.2);
}
.k-image-dialog[open] { display: flex; flex-direction: column; }
.k-image-dialog::backdrop { background: rgba(17,17,18,.72); }
@keyframes k-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes k-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .k-image-dialog[open] { animation: k-dialog-in .42s var(--glide); }
  .k-image-dialog[open]::backdrop { animation: k-fade-in .3s ease-out; }
}
.k-image-dialog__toolbar { display: flex; flex: none; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.k-image-dialog__toolbar button {
  min-height: 44px; padding: 10px 18px; border: 1px solid #DAD7D1; border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.2;
}
.k-image-dialog__toolbar .k-image-dialog__close { background: var(--ink); border-color: var(--ink); color: #fff; }
.k-image-dialog__toolbar button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.k-image-dialog__toolbar button:disabled { opacity: .5; cursor: default; }
.k-image-dialog__viewport { flex: 1 1 0; min-height: 0; overflow: auto; overscroll-behavior: contain; display: grid; place-items: center; padding: 20px; }
.k-image-dialog__viewport:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -3px; }
.k-image-dialog__image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto; }
.k-image-dialog.is-zoomed .k-image-dialog__viewport { display: block; }
.k-image-dialog.is-zoomed .k-image-dialog__image { width: auto; height: auto; max-width: none; max-height: none; margin: 0; }
.k-image-dialog__failure { max-width: 42ch; padding: 24px; font-size: 17px; line-height: 1.6; }
.k-image-dialog__failure a { text-decoration: underline; }
.k-image-dialog [hidden] { display: none; }
@media (max-width: 720px) {
  .k-image-dialog { width: calc(100vw - 20px); height: calc(100dvh - 20px); border-radius: 16px; }
  .k-image-dialog__toolbar { padding: 10px; }
  .k-image-dialog__viewport { padding: 10px; }
}

/* Interactive demos (plugin block and player) in this theme's colours and type. */
body :is(.idemo, .idemo-player) {
  --idemo-ink: var(--ink);
  --idemo-body: var(--body);
  --idemo-muted: var(--muted);
  --idemo-line: var(--line);
  --idemo-soft: var(--soft);
  --idemo-accent: var(--signal);
  --idemo-accent-tint: var(--signal-tint);
  --idemo-panel: var(--panel);
  --idemo-panel-line: var(--panel-line);
  --idemo-focus: var(--focus-ring);
  --idemo-mono: var(--wp--preset--font-family--mono);
  --idemo-heading-weight: var(--display-weight);
  --idemo-heading-tracking: var(--display-tracking);
  --idemo-ease: var(--snap);
}
