/* ==========================================================================
   Knox Crawl Space: Guides (blog index, topic archive, single guide)
   Direction "Blueprint": every guide is an entry in a field manual.
   Mono entry codes, hairline registers, CSS-drawn schematic covers, spec-sheet
   meta, numbered sections, and a call-first service ticket.

   Namespaces: .kx-guides  .kx-ghero  .kx-tools  .kx-topics  .kx-glist
   .kx-grid  .kx-pcard  .kx-schem  .kx-ticket  .kx-pager  .kx-gcta  .kx-route
   .kx-core  .kx-post  .kx-spec  .kx-toc  .kx-tocm  .kx-method  .kx-relsvc
   .kx-related. Global elements and shared components are only touched inside
   these wrappers.
   ========================================================================== */

.kx-guides {
  --g-line-strong: #CDD1D6;            /* hairline one step darker than --line */
  --g-label: var(--kx-accent-deep);    /* small teal text: AA on paper and white */
  --g-on-dark: #2AA5C9;                /* teal lifted for ink backgrounds (6:1) */
  --g-grid-minor: rgba(16, 27, 41, .032);
  --g-grid-major: rgba(16, 27, 41, .066);
  --g-tick: rgba(16, 27, 41, .26);
  /* Drafting grid origin: line up the 64px grid with the container's
     content edge, so headlines start on a major line. */
  --g-x64: calc(50% - 556px);
  --g-x16: calc(50% - 580px);
}
@media (max-width: 1239px) { .kx-guides { --g-x64: 32px; --g-x16: 32px; } }
@media (max-width: 1024px) { .kx-guides { --g-x64: 24px; --g-x16: 24px; } }
@media (max-width: 768px)  { .kx-guides { --g-x64: 20px; --g-x16: 20px; } }
@media (max-width: 480px)  { .kx-guides { --g-x64: 16px; --g-x16: 16px; } }

/* Topbar meta for listing pages (guide count + freshness stamp). */
.kx-guides-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Section codes, mirroring the hub pages: [ CODE ] then a drawn dash, no dash glyph. */
.kx-guides .kx-section-code { align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; row-gap: 6px; }
.kx-guides .kx-section-code__num { color: var(--g-label); }
.kx-guides .kx-section-code__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kx-guides .kx-section-code__label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* Keyboard focus on dark and accent grounds. */
.kx-guides .kx-ticket--tile a:focus-visible,
.kx-guides .kx-gcta a:focus-visible { outline-color: #fff; }
/* GeneratePress paints a:focus #222, which beats .kx-btn-primary and left
   focused call buttons with dark text on teal. Restate inside our wrappers. */
.kx-guides .kx-btn-primary:focus,
.kx-guides .kx-btn-primary:active { color: #fff; }

/* ==========================================================================
   Shared drafting surfaces: grid paper + ruler edge
   ========================================================================== */
.kx-ghero,
.kx-post__headbg {
  position: relative;
  isolation: isolate;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}
/* The grid fades in from the left, so copy sits on near-clean paper and the
   drawing shows where the panel and ticket sit. */
.kx-ghero::before,
.kx-post__headbg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--g-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--g-grid-major) 1px, transparent 1px),
    linear-gradient(var(--g-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--g-grid-minor) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  background-position: 0 -1px, var(--g-x64) 0, 0 -1px, var(--g-x16) 0;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .55) 35%, #000 70%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .55) 35%, #000 70%);
}
/* Ruler ticks along the bottom edge: minor every 16px, major every 64px. */
.kx-ghero::after,
.kx-post__headbg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 11px;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--g-tick) 1px, transparent 1px) var(--g-x64) 100% / 64px 11px repeat-x,
    linear-gradient(90deg, rgba(16, 27, 41, .16) 1px, transparent 1px) var(--g-x16) 100% / 16px 5px repeat-x;
}

/* ==========================================================================
   Listing hero (index + topic archive)
   ========================================================================== */
.kx-ghero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 404px);
  gap: 40px 64px;
  align-items: end;
  padding-top: 64px;
  padding-bottom: 64px;
}
/* Topic archives: the topic glyph as a plan symbol, ahead of the code. */
.kx-ghero__sym {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: 2px;
  border-radius: 50%;
  border: 1px solid var(--kx-accent-deep);
  background: #fff;
  color: var(--kx-accent-deep);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(6, 91, 110, .28);
}
.kx-ghero__sym svg { width: 20px; height: 20px; }
.kx-ghero__title {
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  max-width: 13.5em;
}
.kx-ghero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 610px;
  margin: 0;
}
.kx-ghero__hook {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

/* Tools panel: drawn like a drawing's title block. */
.kx-tools {
  background: #fff;
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(16, 27, 41, .045);
}
.kx-tools__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px 14px;
  border-bottom: 1px solid var(--ink);
}
.kx-tools__title {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.kx-tools__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
  white-space: nowrap;
}
.kx-tools__list { list-style: none; margin: 0; padding: 0; }
.kx-tools__list li + li { border-top: 1px solid var(--line); }
.kx-tools__row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  min-height: 64px;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease;
}
.kx-tools__id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-align: center;
  color: var(--g-label);
  border: 1px solid currentColor;
  padding: 5px 0 4px;
}
.kx-tools__name { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.kx-tools__note { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.kx-tools__arrow { display: flex; color: var(--ink-3); transition: transform .15s ease, color .15s ease; }
.kx-tools__row:hover { background: var(--paper); color: var(--ink); }
.kx-tools__row:hover .kx-tools__arrow { color: var(--kx-accent); transform: translateX(3px); }
.kx-tools__row:focus-visible { outline-offset: -3px; }

/* ==========================================================================
   Topic navigation: a sheet index with plan symbols
   ========================================================================== */
.kx-topics { background: #fff; border-bottom: 1px solid var(--line); }
.kx-topics__inner {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: stretch;
}
/* Label runs up the margin, the way sheet titles do on a drawing border. */
.kx-topics__label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1;
}
.kx-topics__label span { writing-mode: vertical-rl; transform: rotate(180deg); }
.kx-topics__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-right: 1px solid var(--line);
}
.kx-topics__list li { border-left: 1px solid var(--line); }
.kx-topics__cell {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  row-gap: 5px;
  align-items: center;
  height: 100%;
  min-height: 92px;
  padding: 18px 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease;
}
.kx-topics__sym {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--g-line-strong);
  background: #fff;
  color: var(--kx-accent-deep);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.kx-topics__sym svg { width: 19px; height: 19px; }
.kx-topics__name {
  align-self: end;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
/* Narrow desktops: keep the longest topic name on one line. */
@media (min-width: 1101px) and (max-width: 1239px) { .kx-topics__name { font-size: 14px; } }
.kx-topics__meta {
  align-self: start;
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kx-topics__code { color: var(--g-label); }
.kx-topics__cell:hover { background: var(--paper); color: var(--ink); }
.kx-topics__cell:hover .kx-topics__sym { border-color: var(--kx-accent); }
.kx-topics__cell:focus-visible { outline-offset: -3px; }
/* Current topic: the cell reads as the open sheet. */
.kx-topics__cell.is-current { background: var(--paper); }
.kx-topics__cell.is-current::before {
  content: "";
  position: absolute;
  left: -1px;
  right: 0;
  top: -1px;
  height: 3px;
  background: var(--kx-accent);
}
.kx-topics__cell.is-current .kx-topics__sym { background: var(--kx-accent); border-color: var(--kx-accent); color: #fff; }

/* ==========================================================================
   Listing section + hairline register
   ========================================================================== */
.kx-glist { background: var(--paper-2); padding: 72px 0 88px; }
.kx-glist__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 28px;
}
.kx-glist__title {
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.kx-glist__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kx-glist__status b { color: var(--ink); font-weight: 600; }
.kx-glist__all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-top: 4px;
}

.kx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border-top: 1px solid var(--g-line-strong);
  border-left: 1px solid var(--g-line-strong);
}
.kx-grid > * {
  border-right: 1px solid var(--g-line-strong);
  border-bottom: 1px solid var(--g-line-strong);
}
/* Short last row (archives hold 0 to 200 guides): a hatched cell closes the
   register, the way a drawing hatches unused area. Wide items (featured,
   empty state) take two slots, so the count shifts by one for them. */
@media (min-width: 1024px) {
  .kx-grid::after {
    background:
      repeating-linear-gradient(135deg, rgba(16, 27, 41, .075) 0 1px, transparent 1px 10px),
      var(--paper);
    box-shadow: inset -1px -1px 0 var(--g-line-strong);
  }
  .kx-grid:not(:has(> .kx-pcard--feature, > .kx-gempty)):has(> :last-child:nth-child(3n+1))::after,
  .kx-grid:has(> .kx-pcard--feature, > .kx-gempty):has(> :last-child:nth-child(3n))::after { content: ""; grid-column: span 2; }
  .kx-grid:not(:has(> .kx-pcard--feature, > .kx-gempty)):has(> :last-child:nth-child(3n+2))::after,
  .kx-grid:has(> .kx-pcard--feature, > .kx-gempty):has(> :last-child:nth-child(3n+1))::after { content: ""; }
}
/* Empty topic: one wide cell beside the ticket, pointing at the core pages. */
.kx-gempty {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: #fff;
}
.kx-gempty .kx-schem { position: relative; aspect-ratio: 1; }
.kx-gempty__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 26px; line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.kx-gempty__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ==========================================================================
   Post card
   ========================================================================== */
.kx-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  padding: 20px 20px 0;
}
.kx-pcard__media {
  position: relative;
  aspect-ratio: 2 / 1;
  margin: 0 0 22px;
}
.kx-pcard__media--img .kx-pcard__img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
.kx-pcard__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.kx-pcard__code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kx-pcard__flag {
  background: var(--ink);
  color: #fff;
  padding: 5px 8px 4px;
}
.kx-pcard__cat {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;           /* full tap target, no layout cost */
  margin: -16px 0 -16px auto;
  color: var(--g-label);
  text-decoration: none;
}
.kx-pcard__cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.kx-pcard__title {
  font-size: 21px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-wrap: pretty;
}
.kx-pcard__link { color: var(--ink); text-decoration: none; }
.kx-pcard__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.kx-pcard__link:focus-visible { outline: none; }
.kx-pcard:has(.kx-pcard__link:focus-visible) { outline: 2px solid var(--kx-accent); outline-offset: -2px; z-index: 3; }
.kx-pcard__excerpt {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
}
.kx-pcard__foot {
  display: flex;
  align-items: stretch;
  margin: auto -20px 0;
  border-top: 1px solid var(--line);
}
.kx-pcard__meta { display: flex; flex: 1 1 auto; margin: 0; min-width: 0; }
.kx-pcard__meta > div { padding: 11px 20px 12px; border-right: 1px solid var(--line); }
.kx-pcard__meta > div:last-child { border-right: 0; }
.kx-pcard__meta dt,
.kx-spec dt,
.kx-method__spec dt {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 5px;
}
.kx-pcard__meta dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kx-pcard__go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 56px;
  margin-left: auto;
  padding: 0 16px;
  border-left: 1px solid var(--line);
  color: var(--ink-3);
  transition: background .15s ease, color .15s ease;
}
.kx-pcard:hover .kx-pcard__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--kx-accent); }
.kx-pcard:hover .kx-pcard__go { background: var(--kx-accent); color: #fff; }
.kx-pcard:hover .kx-schem__sym { border-color: var(--kx-accent); }

/* Featured (sticky) entry: two columns wide, big plate, boxed spec row. */
.kx-pcard--feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0 34px;
  padding: 24px;
}
.kx-pcard--feature .kx-pcard__media { aspect-ratio: auto; min-height: 340px; margin: 0; }
.kx-pcard--feature .kx-pcard__body { padding: 6px 0 0; }
.kx-pcard--feature .kx-pcard__code { margin-bottom: 18px; }
.kx-pcard--feature .kx-pcard__title {
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.kx-pcard--feature .kx-pcard__excerpt { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin-bottom: 24px; }
.kx-pcard--feature .kx-pcard__foot { flex-direction: column; margin: auto 0 0; border: 1px solid var(--ink); }
.kx-pcard--feature .kx-pcard__meta > div { flex: 1 1 0; padding: 11px 16px 12px; }
.kx-pcard__go--label {
  justify-content: space-between;
  min-height: 50px;
  margin: 0;
  padding: 0 18px;
  border-left: 0;
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   Schematic cover: drawn in CSS when a guide has no featured image.
   Blueprint-tint paper, 12/48 grid, ruler ticks on two edges, dash-dot
   centerlines, the topic glyph as a plan symbol, and a tiny title block.
   ========================================================================== */
.kx-schem {
  --s-bg: #F3F8F9;
  --s-minor: rgba(8, 127, 153, .075);
  --s-major: rgba(8, 127, 153, .15);
  --s-center: rgba(6, 91, 110, .42);
  --s-tick: rgba(16, 27, 41, .3);
  overflow: hidden;
  border: 1px solid #D5E3E7;
  background-color: var(--s-bg);
  background-image:
    /* ruler ticks, top edge */
    linear-gradient(90deg, var(--s-tick) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 27, 41, .18) 1px, transparent 1px),
    /* ruler ticks, left edge */
    linear-gradient(var(--s-tick) 1px, transparent 1px),
    linear-gradient(rgba(16, 27, 41, .18) 1px, transparent 1px),
    /* centerlines (long dash, gap, short dash, gap) */
    repeating-linear-gradient(90deg, var(--s-center) 0 14px, transparent 14px 19px, var(--s-center) 19px 21px, transparent 21px 26px),
    repeating-linear-gradient(180deg, var(--s-center) 0 14px, transparent 14px 19px, var(--s-center) 19px 21px, transparent 21px 26px),
    /* grid */
    linear-gradient(var(--s-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--s-major) 1px, transparent 1px),
    linear-gradient(var(--s-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--s-minor) 1px, transparent 1px);
  background-size:
    48px 9px, 12px 5px,
    9px 48px, 5px 12px,
    72% 1px, 1px 70%,
    48px 48px, 48px 48px, 12px 12px, 12px 12px;
  background-position:
    11px 0, 11px 0,
    0 11px, 0 11px,
    50% 50%, 50% 50%,
    11px 11px, 11px 11px, 11px 11px, 11px 11px;
  background-repeat:
    repeat-x, repeat-x,
    repeat-y, repeat-y,
    no-repeat, no-repeat,
    repeat, repeat, repeat, repeat;
}
.kx-schem__sym {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 1px solid var(--kx-accent-deep);
  background: #fff;
  color: var(--kx-accent-deep);
  box-shadow: 0 0 0 6px var(--s-bg), 0 0 0 7px rgba(6, 91, 110, .25);
  transition: border-color .15s ease;
}
.kx-schem__sym svg { width: 30px; height: 30px; overflow: visible; }
.kx-schem__sym svg path,
.kx-schem__sym svg circle { vector-effect: non-scaling-stroke; }
.kx-schem__tb {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  background: #fff;
  border: 1px solid rgba(16, 27, 41, .55);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink);
}
.kx-schem__tb span { padding: 6px 7px 5px; }
.kx-schem__tb span + span { border-left: 1px solid rgba(16, 27, 41, .3); color: var(--ink-3); }

/* Large plate (featured): bigger symbol, crop marks, a dimension line that
   measures the guide in minutes. */
.kx-schem--lg .kx-schem__sym {
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  box-shadow: 0 0 0 10px var(--s-bg), 0 0 0 11px rgba(6, 91, 110, .25);
}
.kx-schem--lg .kx-schem__sym svg { width: 52px; height: 52px; }
.kx-schem--lg::after {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  --c: rgba(16, 27, 41, .55);
  background:
    linear-gradient(var(--c), var(--c)) left top / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 14px no-repeat;
}
.kx-schem--lg .kx-schem__tb { right: 14px; bottom: 14px; font-size: 10.5px; }
.kx-schem__dim {
  position: absolute;
  left: 15%;
  right: 15%;
  top: calc(50% + 92px);
  height: 1px;
  background: var(--kx-accent-deep);
}
.kx-schem__dim::before,
.kx-schem__dim::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 1px;
  height: 13px;
  background: var(--kx-accent-deep);
  transform: rotate(45deg);
}
.kx-schem__dim::before { left: 0; }
.kx-schem__dim::after { right: 0; }
.kx-schem__dim span {
  position: absolute;
  left: 50%;
  top: -9px;
  transform: translateX(-50%);
  padding: 2px 10px;
  background: var(--s-bg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--kx-accent-deep);
}

/* ==========================================================================
   Service ticket: the call-first conversion module.
   Variants: --tile (dark, inside listings), --rail (single sidebar),
   --inline (mid-article AUTO-CTA). Same markup from one PHP helper.
   ========================================================================== */
.kx-ticket {
  --t-notch: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.kx-ticket__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 11px 16px 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kx-ticket__kind { display: inline-flex; align-items: center; gap: 9px; }
.kx-ticket__kind::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--g-on-dark);
}
.kx-ticket__ref { color: rgba(255, 255, 255, .78); white-space: nowrap; }
.kx-ticket__main { padding: 22px 20px 24px; }
.kx-ticket__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.kx-ticket__sub { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
/* The tear-off stub: perforation plus two punched notches. */
.kx-ticket__stub {
  position: relative;
  margin-top: auto;
  padding: 24px 20px 20px;
  border-top: 1px dashed rgba(16, 27, 41, .4);
}
.kx-ticket__stub::before,
.kx-ticket__stub::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--t-notch);
  border: 1px solid var(--ink);
}
.kx-ticket__stub::before { left: -11px; clip-path: inset(0 0 0 50%); }
.kx-ticket__stub::after { right: -11px; clip-path: inset(0 50% 0 0); }
.kx-ticket__call { display: grid; }
.kx-ticket .kx-callbtn { width: 100%; justify-content: center; font-size: 16px; }
/* Answer promise: centered under the number, wraps into balanced lines in
   the narrow rail instead of leaving the icon stranded. */
.kx-ticket .kx-answerline {
  display: block;
  margin: 11px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  color: var(--g-label);
}
.kx-ticket .kx-answerline svg { display: inline-block; margin-right: 5px; vertical-align: -2px; }
.kx-ticket__form { width: 100%; justify-content: center; margin-top: 18px; }
.kx-ticket__reassure {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: .05em;
  text-align: center;
  color: var(--ink-3);
}

/* Dark tile inside a listing register. Notches are real holes (masks), so
   they show whatever sits behind the tile at any grid position. */
.kx-ticket--tile { background: transparent; border-color: var(--ink); }
.kx-grid > .kx-ticket--tile { border-right-color: var(--ink); border-bottom-color: var(--ink); }
.kx-ticket--tile > * { background: var(--ink); }
.kx-ticket--tile .kx-ticket__strip { padding: 14px 22px 13px; border-bottom: 1px solid rgba(255, 255, 255, .13); color: rgba(255, 255, 255, .86); }
.kx-ticket--tile .kx-ticket__main { flex: 1 1 auto; padding: 26px 22px 30px; }
.kx-ticket--tile .kx-ticket__title { font-size: clamp(26px, 2.3vw, 31px); color: #fff; }
.kx-ticket--tile .kx-ticket__sub { color: rgba(255, 255, 255, .8); }
.kx-ticket--tile .kx-ticket__main {
  -webkit-mask: radial-gradient(circle 10px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 10px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.kx-ticket--tile .kx-ticket__stub {
  margin-top: 0;
  padding: 26px 22px 22px;
  border-top: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .34) 0 6px, transparent 6px 11px) 50% 0 / calc(100% - 28px) 1px no-repeat,
    var(--ink);
  -webkit-mask: radial-gradient(circle 10px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 10px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
}
.kx-ticket--tile .kx-ticket__stub::before,
.kx-ticket--tile .kx-ticket__stub::after { display: none; }
.kx-ticket--tile .kx-answerline { color: var(--g-on-dark); }
.kx-ticket--tile .kx-ticket__reassure { color: rgba(255, 255, 255, .7); }
.kx-ticket__btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
}
.kx-ticket__btn-ghost:hover,
.kx-ticket__btn-ghost:focus,
.kx-ticket__btn-ghost:active { background: rgba(255, 255, 255, .07); border-color: #fff; color: #fff; }

/* ==========================================================================
   Pagination (styles WordPress paginate_links() output)
   ========================================================================== */
.kx-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
}
.kx-pager__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kx-pager__status b { color: var(--ink); font-weight: 600; }
.kx-pager__links { display: flex; flex-wrap: wrap; gap: 8px; }
.kx-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--g-line-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease;
}
.kx-pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.kx-pager a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.kx-pager .next { padding: 0 18px; font-family: var(--font-body); font-size: 14px; font-weight: 600; }

/* ==========================================================================
   Final CTA band: the brand's accent band plus a routing table.
   ========================================================================== */
.kx-gcta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 372px);
  gap: 48px 64px;
  align-items: end;
}
.kx-gcta .kx-gcta__title { font-size: clamp(42px, 5.6vw, 82px); margin-bottom: 26px; max-width: 11.5em; }
/* AA on the accent: secondary copy goes full white here. */
.kx-gcta .kx-cta__bar,
.kx-gcta .kx-cta__sub,
.kx-gcta .kx-cta__reassure { color: #fff; }
.kx-gcta .kx-cta__bar { opacity: .92; }
.kx-gcta .kx-answerline { opacity: 1; }
.kx-route {
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(6, 91, 110, .42);
  color: #fff;
}
.kx-route__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 13px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.kx-route__table { margin: 0; }
.kx-route__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px 17px;
}
.kx-route__row + .kx-route__row { border-top: 1px solid rgba(255, 255, 255, .32); }
.kx-route dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
.kx-route dd { margin: 0; font-size: 15px; line-height: 1.5; color: #fff; }

/* ==========================================================================
   Core guides (topic archive): the evergreen hub pages, as a sheet index.
   ========================================================================== */
.kx-core { background: #fff; padding: 88px 0 96px; }
.kx-core__inner {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 40px 80px;
  align-items: start;
}
.kx-core__title {
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.kx-core__sub { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 360px; }
.kx-core__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.kx-core__list li { border-bottom: 1px solid var(--line); }
.kx-core__row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 6px;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease;
}
.kx-core__id { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--g-label); }
.kx-core__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.kx-core__arrow { display: flex; color: var(--ink-3); transition: transform .15s ease, color .15s ease; }
.kx-core__row:hover { background: var(--paper); color: var(--ink); }
.kx-core__row:hover .kx-core__arrow { color: var(--kx-accent); transform: translateX(4px); }
.kx-core__row:focus-visible { outline-offset: -3px; }
/* Services register: each row carries its topic's plan symbol. */
.kx-core__row--sym { grid-template-columns: 38px 74px minmax(0, 1fr) auto; }
.kx-core__sym {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--g-line-strong);
  color: var(--kx-accent-deep);
  transition: border-color .15s ease;
}
.kx-core__sym svg { width: 19px; height: 19px; }
.kx-core__row--sym:hover .kx-core__sym { border-color: var(--kx-accent); }
.kx-core--svc { border-top: 1px solid var(--line); }

/* Tool panel reused at the foot of a guide. */
.kx-post-foot .kx-tools { box-shadow: none; }
.kx-post-foot .kx-tools__title { font-family: var(--font-display); }

/* ==========================================================================
   Single guide: layout
   Full-bleed grid so the service ticket can sit on the header plate and
   stay pinned beside the text. Columns: contents | text | ticket.
   ========================================================================== */
.kx-post__grid {
  display: grid;
  grid-template-columns:
    [full-start] minmax(32px, 1fr)
    [toc-start] 184px [toc-end] 44px
    [body-start] minmax(0, 620px) [body-end] 44px
    [rail-start] 284px [rail-end]
    minmax(32px, 1fr) [full-end];
  grid-template-rows: auto auto;
  background: #fff;
}
.kx-post__headbg { grid-column: full-start / full-end; grid-row: 1; }
.kx-post-head { grid-column: toc-start / body-end; grid-row: 1; position: relative; padding: 64px 0 52px; }
.kx-toc { grid-column: toc-start / toc-end; grid-row: 2; }
.kx-tocm { display: none; }
.kx-post-body { grid-column: body-start / body-end; grid-row: 2; padding: 52px 0 96px; min-width: 0; }
.kx-post-rail { grid-column: rail-start / rail-end; grid-row: 1 / span 2; padding: 64px 0 96px; position: relative; }
.kx-post-rail .kx-ticket { position: sticky; top: 112px; }
/* The sidebar ticket carries the number while it is on screen. */
@media (min-width: 1024px) { body.single-post .kx-callchip { display: none; } }

/* Header */
.kx-post-head__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kx-post-head__entry { color: var(--g-label); }
.kx-post-head__cat {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px 0 9px;
  background: #fff;
  border: 1px solid var(--g-line-strong);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease;
}
.kx-post-head__cat svg { width: 17px; height: 17px; color: var(--kx-accent-deep); }
.kx-post-head__cat:hover { border-color: var(--ink); }
.kx-post-head__title {
  font-size: clamp(36px, 3.9vw, 54px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.038em;
  margin: 0 0 20px;
  max-width: 15.5em;
}
.kx-post-head__dek {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 36em;
}
/* Spec sheet: researched-by, dates, reading time in one ruled row. */
.kx-spec {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  margin: 0;
  max-width: 800px;
  background: #fff;
  border: 1px solid var(--ink);
}
.kx-spec__cell { padding: 12px 16px 13px; border-left: 1px solid var(--line); min-width: 0; }
.kx-spec__cell:first-child { border-left: 0; }
.kx-spec dd { margin: 0; font-size: 14.5px; line-height: 1.35; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.kx-spec__cell--upd dd { color: var(--g-label); font-weight: 600; }
.kx-spec__by { position: relative; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--g-line-strong); }
/* 44px hit areas for small standalone links, drawn as invisible overlays. */
.kx-spec__by::before,
.kx-method__spec a::before,
.kx-post-head__cat::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}
.kx-method__spec a { position: relative; }
.kx-spec__by:hover { border-color: var(--kx-accent); }

/* Contents rail (desktop) */
.kx-toc {
  position: sticky;
  top: 112px;
  align-self: start;
  margin-top: 56px;
  padding-bottom: 32px;
}
.kx-toc__label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.kx-toc__label span + span { color: var(--ink-3); }
.kx-toc__list { list-style: none; margin: 0; padding: 0; }
.kx-toc .kx-toc__list { position: relative; }
.kx-toc__link {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  padding: 11px 0 11px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.38;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s ease;
}
.kx-toc__num {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 19px;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.kx-toc__link:hover { color: var(--ink); }
.kx-toc__link:hover .kx-toc__num { color: var(--g-label); }
.kx-toc__link[aria-current] { color: var(--ink); font-weight: 600; }
.kx-toc__link[aria-current] .kx-toc__num { color: var(--g-label); }
.kx-toc__link[aria-current]::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--kx-accent);
}
/* Reading progress: a measuring line beside the contents (CSS only). */
.kx-toc .kx-toc__list::before,
.kx-toc .kx-toc__list::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.kx-toc .kx-toc__list::after { display: none; }
@supports (animation-timeline: view()) {
  .kx-post__grid { timeline-scope: --kx-read; }
  .kx-post-body { view-timeline: --kx-read block; }
  .kx-toc .kx-toc__list::after {
    display: block;
    width: 1px;
    background: var(--kx-accent);
    transform-origin: 50% 0;
    transform: scaleY(0);
    animation: kx-read linear both;
    animation-timeline: --kx-read;
    animation-range: contain 0% contain 100%;
  }
}
@keyframes kx-read { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.kx-toc__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
}
.kx-toc__back-link svg { transform: rotate(180deg); }

/* Contents (phones and tablets): one collapsible row */
.kx-tocm { background: #fff; border: 1px solid var(--ink); }
.kx-tocm__sum {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.kx-tocm__sum::-webkit-details-marker { display: none; }
.kx-tocm__count { color: var(--ink-3); }
.kx-tocm__sum::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: auto;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
}
.kx-tocm[open] .kx-tocm__sum::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat; }
.kx-tocm__sum:focus-visible { outline: 2px solid var(--kx-accent); outline-offset: 2px; }
.kx-tocm .kx-toc__list { border-top: 1px solid var(--line); }
.kx-tocm__link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px;
  align-items: baseline;
  min-height: 46px;
  padding: 12px 16px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
}
.kx-tocm .kx-toc__list li + li .kx-tocm__link { border-top: 1px solid var(--line); }

/* ==========================================================================
   Single guide: article typography (own namespace, not .kx-rich)
   ========================================================================== */
.kx-post-body {
  counter-reset: kx-sec;
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-2);
}
.kx-post-body > p { margin: 0 0 1.15em; font-size: 18px; line-height: 1.72; color: var(--ink-2); }
.kx-post-body > .kx-answer-card + p { font-size: 19.5px; line-height: 1.62; color: var(--ink); }
.kx-post-body a:not([class]) {
  color: var(--kx-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(8, 127, 153, .45);
}
.kx-post-body a:not([class]):hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.kx-post-body strong { color: var(--ink); font-weight: 600; }

/* H2: numbered section with a drafting callout, mirroring hub section codes. */
.kx-post-body > h2 {
  counter-increment: kx-sec;
  counter-reset: kx-sub;
  position: relative;
  margin: 64px 0 18px;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
  font-size: clamp(27px, 2.5vw, 33px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  scroll-margin-top: 112px;
}
.kx-post-body > h2::before {
  content: counter(kx-sec, decimal-leading-zero) " / " var(--kx-secs, "");
  position: absolute;
  top: -1px;
  left: 0;
  transform: translateY(-50%);
  padding: 0 12px 0 0;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--g-label);
}
.kx-post-body > h2::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 7px;
  height: 7px;
  background: var(--ink);
}
.kx-post-body > h3 {
  counter-increment: kx-sub;
  margin: 40px 0 10px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--ink);
  scroll-margin-top: 112px;
}
.kx-post-body > h3::before {
  content: counter(kx-sec, decimal-leading-zero) "." counter(kx-sub);
  display: inline-block;
  min-width: 50px;
  margin-right: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--g-label);
  vertical-align: 2px;
}

/* Lists: steps get numbered tags, bullets get the brand's square marker. */
.kx-post-body > ol,
.kx-post-body > ul { list-style: none; margin: 26px 0 30px; padding: 0; }
.kx-post-body > ol { counter-reset: kx-step; border-top: 1px solid var(--line); }
.kx-post-body > ol > li {
  counter-increment: kx-step;
  position: relative;
  margin: 0;
  padding: 14px 0 15px 52px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.kx-post-body > ol > li::before {
  content: counter(kx-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 26px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
}
.kx-post-body > ul > li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 28px;
  line-height: 1.6;
}
.kx-post-body > ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .66em;
  width: 7px;
  height: 7px;
  background: var(--kx-accent);
}

/* Table: spec table; the wrapper scrolls sideways on phones. */
.kx-post-table {
  margin: 30px 0 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ink);
  background: #fff;
}
.kx-post-table:focus-visible { outline: 2px solid var(--kx-accent); outline-offset: 2px; }
.kx-post-body table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.5;
}
.kx-post-table table { min-width: 540px; }
.kx-post-body th,
.kx-post-body td { border: 0; text-align: left; vertical-align: top; }
.kx-post-body th {
  padding: 12px 16px 11px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kx-post-body td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.kx-post-body tr:last-child td { border-bottom: 0; }
.kx-post-body td:first-child { font-weight: 600; color: var(--ink); }
.kx-post-body td:nth-child(2) { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; color: var(--ink); padding-top: 16px; }
.kx-post-body th + th,
.kx-post-body td + td { border-left: 1px solid var(--line); }

/* Pull quote */
.kx-post-body > blockquote {
  position: relative;
  margin: 40px 0;
  padding: 28px 0 28px 30px;
  border: 0;
  border-left: 3px solid var(--kx-accent);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.32;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: linear-gradient(90deg, var(--kx-accent-tint), rgba(230, 242, 245, 0) 85%);
}
.kx-post-body > blockquote p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }

/* Featured image (optional; the sample guide has none). Output as the first
   child of .kx-post-body: <figure class="kx-post-figure"><img><figcaption>. */
.kx-post-figure { margin: 0 0 34px; border: 1px solid var(--ink); background: #fff; }
.kx-post-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.kx-post-figure figcaption {
  padding: 10px 16px 9px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .05em;
  color: var(--ink-3);
}
.kx-post-figure figcaption::before { content: "Fig. 01 \00a0\00a0"; color: var(--g-label); text-transform: uppercase; letter-spacing: .1em; }

/* Direct answer card, restated as a spec callout. */
.kx-post-body .kx-answer-card {
  margin: 0 0 34px;
  padding: 0;
  border: 1px solid var(--ink);
  border-left: 4px solid var(--kx-accent);
  border-radius: 0;
  box-shadow: 8px 8px 0 rgba(16, 27, 41, .045);
  background: #fff;
}
.kx-post-body .kx-answer-card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 20px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--kx-accent-tint);
  color: var(--g-label);
  font-size: 11px;
}
.kx-post-body .kx-answer-card__label::after {
  content: "A.00";
  margin-left: auto;
  color: var(--ink-3);
  letter-spacing: .1em;
}
.kx-post-body .kx-answer-card__body { padding: 18px 22px 20px; font-size: 17.5px; line-height: 1.62; color: var(--ink); }
.kx-post-body .kx-answer-card__body p { margin: 0; color: var(--ink); }

/* KX note */
.kx-post-body .kx-note-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  max-width: none;
  margin: 32px 0;
  padding: 18px 22px;
  background: var(--kx-accent-tint);
  border-left: 3px solid var(--kx-accent);
}
.kx-post-body .kx-note-box__label { color: var(--g-label); padding-top: 4px; }
.kx-post-body .kx-note-box p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* FAQ: numbered questions */
.kx-post-body .kx-faq { counter-reset: kx-q; margin: 8px 0 0; border-top: 1px solid var(--ink); }
.kx-post-body .kx-faq details { counter-increment: kx-q; padding: 0; border-top: 0; border-bottom: 1px solid var(--line); }
.kx-post-body .kx-faq summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 18.5px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.kx-post-body .kx-faq summary::before {
  content: "Q." counter(kx-q, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--g-label);
}
.kx-post-body .kx-faq summary::after {
  content: "";
  width: 12px;
  height: 12px;
  justify-self: end;
  background:
    linear-gradient(var(--kx-accent), var(--kx-accent)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--kx-accent), var(--kx-accent)) center / 1.5px 12px no-repeat;
  transition: transform .2s ease;
}
.kx-post-body .kx-faq details[open] summary::after { content: ""; transform: rotate(45deg); }
.kx-post-body .kx-faq summary:hover { color: var(--ink); }
.kx-post-body .kx-faq summary:focus-visible { outline: 2px solid var(--kx-accent); outline-offset: 2px; }
.kx-post-body .kx-faq__body { margin: -4px 0 0; padding: 0 28px 20px 56px; max-width: none; }
.kx-post-body .kx-faq__body p { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); margin: 0; }

/* Mid-article ticket (AUTO-CTA): horizontal ticket with a tear-off stub. */
.kx-ticket--inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  grid-template-areas: "strip stub" "main stub";
  grid-template-rows: auto 1fr;
  margin: 48px 0 52px;
  box-shadow: 8px 8px 0 rgba(16, 27, 41, .045);
}
.kx-ticket--inline .kx-ticket__strip {
  grid-area: strip;
  background: none;
  color: var(--g-label);
  padding: 22px 24px 0;
}
.kx-ticket--inline .kx-ticket__kind::before { background: var(--kx-accent); }
.kx-ticket--inline .kx-ticket__ref { color: var(--ink-3); }
.kx-ticket--inline .kx-ticket__main { grid-area: main; padding: 14px 24px 24px; }
.kx-ticket--inline .kx-ticket__title { font-size: 24px; }
.kx-ticket--inline .kx-ticket__sub { font-size: 15.5px; }
.kx-ticket--inline .kx-ticket__stub {
  grid-area: stub;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 22px 20px;
  border-top: 0;
  border-left: 1px dashed rgba(16, 27, 41, .4);
  background: var(--paper);
}
.kx-ticket--inline .kx-ticket__stub::before { top: -11px; left: -10px; clip-path: inset(50% 0 0 0); }
.kx-ticket--inline .kx-ticket__stub::after { top: auto; bottom: -11px; right: auto; left: -10px; clip-path: inset(0 0 50% 0); }
.kx-ticket--inline .kx-ticket__form { margin-top: 14px; }
.kx-ticket--inline .kx-ticket__reassure { margin-top: 12px; }

/* After the text: method box + related service */
.kx-post-foot { margin-top: 64px; display: grid; gap: 16px; }
.kx-method { border: 1px solid var(--ink); background: #fff; }
.kx-method__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 11px 20px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--g-label);
}
.kx-method__label span + span { color: var(--ink-3); }
.kx-method__title {
  margin: 0;
  padding: 18px 20px 6px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kx-method__text { margin: 0; padding: 0 20px 18px; font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }
.kx-method__spec { margin: 0; border-top: 1px solid var(--line); }
.kx-method__spec > div {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
  padding: 11px 20px 12px;
  min-width: 0;
}
.kx-method__spec > div + div { border-top: 1px solid var(--line); }
.kx-method__spec dt { margin: 0; }
.kx-method__spec dd { margin: 0; font-size: 14.5px; line-height: 1.45; }
.kx-method__spec a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--g-line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.kx-method__spec a:hover { text-decoration-color: currentColor; }

.kx-relsvc__link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label arrow" "title arrow" "note arrow";
  align-items: center;
  column-gap: 20px;
  padding: 20px 22px 22px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: background .15s ease;
}
.kx-relsvc__label {
  grid-area: label;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--g-on-dark);
}
.kx-relsvc__title { grid-area: title; font-family: var(--font-display); font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.kx-relsvc__note { grid-area: note; margin-top: 6px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.kx-relsvc__arrow {
  grid-area: arrow;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.kx-relsvc__link:hover,
.kx-relsvc__link:focus { background: #172638; color: #fff; }
.kx-relsvc__link:hover .kx-relsvc__arrow { background: var(--kx-accent); border-color: var(--kx-accent); }
.kx-relsvc__link:focus-visible { outline: 2px solid var(--kx-accent); outline-offset: 3px; }

/* Related guides */
.kx-related { background: var(--paper-2); padding: 80px 0 88px; border-top: 1px solid var(--line); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Single: drop the contents rail below 1200px; contents goes inline. */
@media (max-width: 1199px) {
  .kx-post__grid {
    grid-template-columns:
      [full-start] minmax(24px, 1fr)
      [body-start] minmax(0, 640px) [body-end] 40px
      [rail-start] 272px [rail-end]
      minmax(24px, 1fr) [full-end];
    grid-template-rows: auto auto auto;
  }
  .kx-post-head { grid-column: body-start / body-end; }
  .kx-toc { display: none; }
  .kx-tocm { display: block; grid-column: body-start / body-end; grid-row: 2; margin-top: 36px; }
  .kx-post-body { grid-row: 3; padding-top: 40px; }
  .kx-post-rail { grid-row: 1 / span 3; }
  .kx-spec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kx-spec__cell--by { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .kx-spec__cell--by + .kx-spec__cell { border-left: 0; }
}

@media (max-width: 1100px) {
  .kx-ghero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px 44px; }
  .kx-topics__inner { grid-template-columns: 1fr; }
  .kx-topics__label { justify-content: flex-start; padding: 18px 0 10px; border-left: 0; }
  .kx-topics__label span { writing-mode: horizontal-tb; transform: none; }
  .kx-topics__list { border-top: 1px solid var(--line); }
  .kx-topics__cell { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 16px 14px; min-height: 0; row-gap: 8px; }
  .kx-topics__sym { grid-row: auto; width: 36px; height: 36px; }
  .kx-topics__name { align-self: start; }
}

@media (max-width: 1023px) {
  .kx-ghero__inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .kx-tools { max-width: 620px; }
  .kx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-grid--topic .kx-ticket--tile { grid-column: 1 / -1; }
  .kx-gempty { grid-column: 1 / -1; }
  .kx-grid--related > :last-child { display: none; }
  .kx-gcta__inner { grid-template-columns: 1fr; }
  .kx-route { max-width: 560px; }
  .kx-core__inner { grid-template-columns: 1fr; }
  .kx-core__sub { max-width: 560px; }

  /* Single: one column, ticket leaves the rail (inline ticket + bands carry it). */
  .kx-post__grid {
    grid-template-columns: [full-start] minmax(24px, 1fr) [body-start] minmax(0, 700px) [body-end] minmax(24px, 1fr) [full-end];
  }
  .kx-post-rail { display: none; }
  .kx-post-head { padding: 48px 0 40px; }
}

@media (max-width: 900px) {
  .kx-post-body > h2,
  .kx-post-body > h3 { scroll-margin-top: 20px; }
}

@media (max-width: 768px) {
  .kx-post__grid {
    grid-template-columns: [full-start] 20px [body-start] minmax(0, 1fr) [body-end] 20px [full-end];
  }
  .kx-glist { padding: 56px 0 64px; }
  .kx-core { padding: 64px 0 72px; }
  .kx-related { padding: 56px 0 64px; }
  .kx-pcard--feature { grid-template-columns: 1fr; gap: 0; }
  .kx-pcard--feature .kx-pcard__media { min-height: 0; aspect-ratio: 16 / 9; margin-bottom: 22px; }
  .kx-ticket--inline { grid-template-columns: 1fr; grid-template-areas: "strip" "main" "stub"; }
  .kx-ticket--inline .kx-ticket__stub { border-left: 0; border-top: 1px dashed rgba(16, 27, 41, .4); }
  .kx-ticket--inline .kx-ticket__stub::before { top: -10px; left: -11px; bottom: auto; clip-path: inset(0 0 0 50%); }
  .kx-ticket--inline .kx-ticket__stub::after { top: -10px; bottom: auto; left: auto; right: -11px; clip-path: inset(0 50% 0 0); }
  .kx-method__spec > div { grid-template-columns: 1fr; }
  /* Vertical ticket: the ink strip comes back. */
  .kx-ticket--inline .kx-ticket__strip { background: var(--ink); color: #fff; padding: 11px 16px 10px; }
  .kx-ticket--inline .kx-ticket__kind::before { background: var(--g-on-dark); }
  .kx-ticket--inline .kx-ticket__ref { color: rgba(255, 255, 255, .78); }
  .kx-ticket--inline .kx-ticket__main { padding-top: 22px; }
  .kx-ticket--inline .kx-ticket__stub { background: #fff; }
}

/* Phones */
@media (max-width: 639px) {
  .kx-ghero__inner { padding-top: 36px; padding-bottom: 40px; gap: 28px; }
  .kx-ghero__title { margin-bottom: 18px; }
  .kx-ghero__lede { font-size: 16.5px; line-height: 1.6; }
  .kx-ghero__hook { font-size: 19.5px; line-height: 1.32; margin-bottom: 12px; }
  .kx-tools { box-shadow: none; }
  .kx-tools__head { padding: 13px 16px 12px; }
  .kx-tools__row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 13px 16px; }

  /* Topic index becomes a list of rows. */
  .kx-topics__label { padding: 22px 0 10px; }
  .kx-topics__list { grid-template-columns: 1fr; border-right: 0; }
  .kx-topics__list li { border-left: 0; border-bottom: 1px solid var(--line); }
  .kx-topics__cell {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 14px;
    min-height: 56px;
    padding: 9px 2px;
  }
  .kx-topics__sym { width: 34px; height: 34px; }
  .kx-topics__sym svg { width: 18px; height: 18px; }
  .kx-topics__name { align-self: center; font-size: 16px; }
  .kx-topics__meta { align-self: center; }
  .kx-topics__cell.is-current::before { left: -2px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  /* Topic archive: compact strip that scrolls sideways. */
  .kx-topics--compact .kx-topics__inner { padding-right: 0 !important; }
  .kx-topics--compact .kx-topics__label { padding: 16px 0 8px; }
  .kx-topics--compact .kx-topics__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 16px 0;
    border-top: 0;
    scrollbar-width: none;
  }
  .kx-topics--compact .kx-topics__list::-webkit-scrollbar { display: none; }
  .kx-topics--compact .kx-topics__list li { flex: none; border: 0; }
  .kx-topics--compact .kx-topics__cell {
    grid-template-columns: 26px auto auto;
    column-gap: 9px;
    min-height: 46px;
    padding: 6px 14px 6px 8px;
    border: 1px solid var(--g-line-strong);
    white-space: nowrap;
  }
  .kx-topics--compact .kx-topics__cell.is-current { border-color: var(--ink); background: var(--ink); color: #fff; }
  .kx-topics--compact .kx-topics__cell.is-current::before { display: none; }
  .kx-topics--compact .kx-topics__cell.is-current .kx-topics__meta { color: rgba(255, 255, 255, .8); }
  .kx-topics--compact .kx-topics__cell.is-current .kx-topics__code { color: var(--g-on-dark); }
  .kx-topics--compact .kx-topics__sym { width: 26px; height: 26px; }
  .kx-topics--compact .kx-topics__sym svg { width: 15px; height: 15px; }
  .kx-topics--compact .kx-topics__name { font-size: 14.5px; }
  .kx-topics--compact .kx-topics__code,
  .kx-topics--compact .kx-topics__unit { display: none; }

  .kx-glist { padding: 44px 0 52px; }
  .kx-glist__head { margin-bottom: 20px; }
  .kx-grid { grid-template-columns: 1fr; }
  .kx-gempty { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px; }
  .kx-gempty .kx-schem { aspect-ratio: 2 / 1; }
  .kx-pcard--feature { grid-column: auto; padding: 16px; }
  .kx-pcard--feature .kx-pcard__media { aspect-ratio: 16 / 10; margin-bottom: 20px; }
  .kx-pcard--feature .kx-pcard__title { font-size: 26px; }
  .kx-pcard--feature .kx-pcard__excerpt { font-size: 16px; margin-bottom: 20px; }
  .kx-pcard--feature .kx-pcard__meta > div { padding: 10px 12px 11px; }
  .kx-pcard__go--label { min-height: 48px; padding: 0 16px; }
  .kx-schem--lg .kx-schem__sym { width: 80px; height: 80px; margin: -40px 0 0 -40px; box-shadow: 0 0 0 8px var(--s-bg), 0 0 0 9px rgba(6, 91, 110, .25); }
  .kx-schem--lg .kx-schem__sym svg { width: 38px; height: 38px; }
  /* Dimension line moves above the symbol, clear of the title block. */
  .kx-schem__dim { top: calc(50% - 64px); left: 16%; right: 16%; }
  .kx-pcard:not(.kx-pcard--feature) .kx-pcard__img { font-size: 0; }

  /* Register rows: text left, a small plate right. */
  .kx-pcard:not(.kx-pcard--feature) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    grid-template-areas: "code media" "title media" "excerpt excerpt" "foot foot";
    grid-template-rows: auto 1fr auto auto;
    column-gap: 16px;
    padding: 16px 16px 0;
  }
  .kx-pcard:not(.kx-pcard--feature) .kx-pcard__body { display: contents; }
  .kx-pcard:not(.kx-pcard--feature) .kx-pcard__media { grid-area: media; aspect-ratio: 1; margin: 2px 0 12px; align-self: start; }
  .kx-pcard:not(.kx-pcard--feature) .kx-pcard__code { grid-area: code; margin-bottom: 9px; }
  .kx-pcard:not(.kx-pcard--feature) .kx-pcard__cat { margin-left: 0; }
  .kx-pcard:not(.kx-pcard--feature) .kx-pcard__title { grid-area: title; font-size: 19px; line-height: 1.24; margin-bottom: 10px; }
  .kx-pcard:not(.kx-pcard--feature) .kx-pcard__excerpt { grid-area: excerpt; font-size: 15px; margin-bottom: 16px; }
  .kx-pcard:not(.kx-pcard--feature) .kx-pcard__foot { grid-area: foot; margin: 0 -16px; }
  .kx-pcard__meta > div { padding: 10px 16px 11px; }
  .kx-pcard:not(.kx-pcard--feature) .kx-schem {
    background-size:
      0 0, 0 0, 0 0, 0 0,
      80% 1px, 1px 80%,
      24px 24px, 24px 24px, 6px 6px, 6px 6px;
    background-position: 0 0, 0 0, 0 0, 0 0, 50% 50%, 50% 50%, 13px 13px, 13px 13px, 13px 13px, 13px 13px;
  }
  .kx-pcard:not(.kx-pcard--feature) .kx-schem__sym { width: 40px; height: 40px; margin: -20px 0 0 -20px; box-shadow: 0 0 0 4px var(--s-bg); }
  .kx-pcard:not(.kx-pcard--feature) .kx-schem__sym svg { width: 20px; height: 20px; }
  .kx-pcard:not(.kx-pcard--feature) .kx-schem__tb { display: none; }

  .kx-ticket--tile .kx-ticket__title { font-size: 27px; }
  .kx-pager { justify-content: center; }
  .kx-pager__status { width: 100%; text-align: center; }

  .kx-gcta .kx-gcta__title { font-size: 40px; line-height: .98; }
  .kx-route__row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px 15px; }
  .kx-gcta .kx-cta__btns .kx-btn { width: 100%; justify-content: center; }

  .kx-core__row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; min-height: 64px; padding: 12px 2px; }
  .kx-core__row--sym { grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "sym id arrow" "sym name arrow"; row-gap: 2px; }
  .kx-core__row--sym .kx-core__sym { grid-area: sym; width: 34px; height: 34px; }
  .kx-core__row--sym .kx-core__id { grid-area: id; font-size: 10.5px; }
  .kx-core__row--sym .kx-core__name { grid-area: name; }
  .kx-core__row--sym .kx-core__arrow { grid-area: arrow; }
  .kx-core__name { font-size: 18.5px; }

  /* Single */
  .kx-post-head { padding: 32px 0 30px; }
  .kx-post-head__code { margin-bottom: 18px; }
  .kx-post-head__dek { font-size: 17.5px; margin-bottom: 24px; }
  .kx-spec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kx-spec__cell { padding: 10px 12px 11px; }
  .kx-spec dd { font-size: 13.5px; }
  .kx-tocm { margin-top: 24px; }
  .kx-post-body { padding-top: 28px; padding-bottom: 64px; font-size: 17px; }
  .kx-post-body > p { font-size: 17px; line-height: 1.7; }
  .kx-post-body > .kx-answer-card + p { font-size: 18px; }
  .kx-post-body > h2 { margin-top: 52px; padding-top: 26px; font-size: 26px; }
  .kx-post-body > h3 { font-size: 19.5px; }
  .kx-post-body > h3::before { display: block; margin-bottom: 4px; }
  .kx-post-body > ol > li { padding-left: 46px; }
  .kx-post-body > blockquote { font-size: 21px; padding: 22px 0 22px 20px; }
  .kx-post-body .kx-answer-card { box-shadow: none; }
  .kx-post-body .kx-answer-card__body { padding: 16px 18px 18px; font-size: 16.5px; }
  .kx-post-body .kx-note-box { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .kx-post-body .kx-faq summary { grid-template-columns: 40px minmax(0, 1fr) 16px; font-size: 17px; }
  .kx-post-body .kx-faq__body { padding: 0 4px 18px 48px; }
  .kx-post-body .kx-faq__body p { font-size: 16px; }
  .kx-ticket--inline { box-shadow: none; margin: 40px 0 44px; }
  .kx-ticket--inline .kx-ticket__main { padding: 20px 18px 22px; }
  /* Sideways tables get a pinned caption so the swipe is discoverable. */
  .kx-post-table::after {
    content: "Swipe for the full table \2192";
    position: sticky;
    left: 0;
    display: block;
    padding: 9px 14px 8px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .kx-ticket--inline .kx-ticket__stub { padding: 22px 18px 18px; }
  .kx-post-foot { margin-top: 48px; }
  .kx-relsvc__link { padding: 18px 18px 20px; column-gap: 14px; }
  .kx-relsvc__title { font-size: 20px; }
}

/* main.css pins every H1 to 28px and turns on hyphenation at 480px. The
   listing and guide headlines carry the page, so they keep a little more
   size and never break mid-word. */
@media (max-width: 480px) {
  .kx-ghero__title,
  .kx-post-head__title {
    font-size: 32px !important;
    line-height: 1.06 !important;
    letter-spacing: -0.032em !important;
    hyphens: manual !important;
  }
  .kx-gcta .kx-gcta__title { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .kx-tools__row:hover .kx-tools__arrow,
  .kx-core__row:hover .kx-core__arrow { transform: none; }
}

@media print {
  .kx-post-rail,
  .kx-toc,
  .kx-tocm,
  .kx-ticket,
  .kx-gcta { display: none !important; }
}

/* Featured image on a single guide (most guides have none; the schematic
   language carries the page without one). */
.kx-post-media { margin: 0 0 32px; }
.kx-post-media__img { display: block; width: 100%; height: auto; border: 1px solid var(--g-line-strong); }
.kx-post-media figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
}

/* ---------- Nov 24, 2026: handoff fixes ---------- */
/* Long source URLs in the method box wrap instead of running off the screen. */
.kx-method__text,
.kx-method__spec dd,
.kx-method a { overflow-wrap: anywhere; word-break: normal; }
/* Topic strip on topic pages: the next topic peeks in, so the scroll is obvious. */
@media (max-width: 700px) {
  .kx-topics--compact .kx-topics__list { scroll-snap-type: x mandatory; }
  .kx-topics--compact .kx-topics__list li { flex: 0 0 72%; scroll-snap-align: start; }
}
/* Post tables: the 2nd column may wrap; on phones tables size to the column. */
.kx-post-body td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; min-width: 9ch; }
@media (max-width: 700px) {
  .kx-post-table table { min-width: 0; }
}
